code stringlengths 10 174k | nl stringlengths 3 129k |
|---|---|
protected String createLabelText(){
StringBuilder sb=new StringBuilder();
sb.append(this.getGraphicLabel());
String text=this.getText();
if (!WWUtil.isEmpty(text)) {
sb.append("\n");
sb.append(this.getText());
}
return sb.toString();
}
| Create the text for the main label on this graphic. |
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:34:43.647 -0500",hash_original_method="E278B7FDC712595C2D25226C12B41BCD",hash_generated_method="0538ACDB60E00F86ADA8439C53BD785B") public void clearAndReadState(){
synchronized (mAuthorities) {
mAuthorities.clear();
mAccounts.c... | public for testing |
public TcpWorker(final int actorMaxOperationTimeoutSec,final TcpMeta tcpMeta,final String targetHost){
super();
this.actorMaxOperationTimeoutSec=actorMaxOperationTimeoutSec;
this.tcpMeta=tcpMeta;
this.targetHost=targetHost;
}
| Instantiates a new tcp worker. |
public synchronized void addNextState(TLCState s1,long fp1,TLCState s2,long fp2){
for (int soln=0; soln < solutions.length; soln++) {
OrderOfSolution os=solutions[soln];
BEGraph bgraph=bgraphs[soln];
int slen=os.getCheckState().length;
int alen=os.getCheckAction().length;
if (!os.hasTableau()) {
... | This method adds new nodes into the behavior graph when a new state is generated. The argument s2 is the new state. The argument s1 is parent state of s2. |
public boolean isSet(){
return set;
}
| Is the search for set? |
public synchronized void handleLostConnection(final HostConfiguration config){
final HostConnectionPool hostPool=getHostPool(config,true);
hostPool.numConnections--;
if ((hostPool.numConnections == 0) && hostPool.waitingThreads.isEmpty()) {
mapHosts.remove(config);
}
numConnections--;
notifyWaitingThrea... | Handles cleaning up for a lost connection with the given config. Decrements any connection counts and notifies waiting threads, if appropriate. |
public DefaultTlsSRPGroupVerifier(Vector groups){
this.groups=groups;
}
| Specify a custom set of acceptable group parameters. |
public Reference<String> newLiteralReference(String s){
return new WeakReference<String>(s);
}
| A reference that must be manually cleared. |
public static ScheduledTour newInstance(Tour tour,CarrierVehicle vehicle,double departureTime){
return new ScheduledTour(tour,vehicle,departureTime);
}
| Returns a new instance of ScheduledTour. <p>Look at the builder. It might be easier to build a scheduled tour. You get the builder this way: ScheduledTour.Builder.newInstance(carrierVehicle). |
private void createFullScreenVao(){
this.vao=glGenVertexArrays();
int vbo=glGenBuffers();
glBindVertexArray(vao);
glBindBuffer(GL_ARRAY_BUFFER,vbo);
ByteBuffer bb=BufferUtils.createByteBuffer(4 * 2 * 6);
FloatBuffer fv=bb.asFloatBuffer();
fv.put(-1.0f).put(-1.0f);
fv.put(1.0f).put(-1.0f);
fv.put(1.0f)... | Creates a VAO with a full-screen quad VBO. |
private long startTime(){
long start=log.getDate().getTime();
for ( Task<?> task : tasks.getTasks()) {
if (task.getStartTime() != null) {
start=Math.min(start,task.getStartTime().getTimeInMillis());
}
}
return start;
}
| Gets the start time of the first task. |
public APIUserWrapper(APIUser apiUser){
this.apiUser=apiUser;
}
| Wrap a given APIUser to expose as a User. |
public SortedDocValuesTermsEnum(SortedDocValues values){
this.values=values;
scratch=new BytesRefBuilder();
}
| Creates a new TermsEnum over the provided values |
public Object jjtAccept(SyntaxTreeBuilderVisitor visitor,Object data) throws VisitorException {
return visitor.visit(this,data);
}
| Accept the visitor. |
private SynapsePropertiesSimple(final Collection<Synapse> synapseList,final Window parent,final boolean displayIDInfo){
this.synapseList=synapseList;
this.parent=parent;
this.displayIDInfo=displayIDInfo;
detailTriangle=new DropDownTriangle(UpDirection.LEFT,false,"More","Less",parent);
extraDataPanel=new Synap... | Construct the panel. |
public int numWritten(){
return size;
}
| Returns the number of elements written to the buffer so far (after the last reset()). |
public ClearCacheRequest(Cache cache,Runnable callback){
super(Method.GET,null,null);
mCache=cache;
mCallback=callback;
}
| Creates a synthetic request for clearing the cache. |
public boolean isPickFrustumClippingEnabled(){
return this.iconRenderer.isPickFrustumClippingEnabled();
}
| Indicates whether picking volume clipping is performed. |
public static boolean hasLollipop(){
return Build.VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP;
}
| API 21 |
protected void initializeAllLiveAttributes(){
super.initializeAllLiveAttributes();
initializeLiveAttributes();
}
| Initializes all live attributes for this element. |
public Eights(){
Deck deck=new Deck("Deck");
deck.shuffle();
int handSize=5;
one=new Player("Allen");
deck.deal(one.getHand(),handSize);
two=new Player("Chris");
deck.deal(two.getHand(),handSize);
discardPile=new Hand("Discards");
deck.deal(discardPile,1);
drawPile=new Hand("Draw pile");
deck.deal... | Initializes the state of the game. |
boolean canIncrement(Object field,int cursorPosition){
return (field != null);
}
| Returns true if <code>field</code> is non-null. Subclasses that wish to allow incrementing to happen outside of the known fields will need to override this. |
public char nextChar(){
return (char)(next(16));
}
| For completeness' sake, though it's not in java.util.Random. |
@DSVerified @DSBan(DSCat.DROIDSAFE_INTERNAL) public void droidsafeSubActivityCallbackHook(){
droidsafeOnOthersHook();
}
| addition hooks to allow subactivity onXYZ to be called from droidsafe runtime |
public static void close(ZipFile zipFile){
try {
if (zipFile != null) {
zipFile.close();
}
}
catch ( IOException ex) {
LOGGER.warn(String.format(LOG_FORMAT,"zipFile"));
}
}
| Safely close a zip file. |
public boolean testMergeable(CSSClassManager other){
for ( CSSClass clss : other.getClasses()) {
CSSClass existing=store.get(clss.getName());
if (existing != null && existing.getOwner() != null && clss.getOwner() != null && existing.getOwner() != clss.getOwner()) {
return false;
}
}
return true... | Check whether or not CSS classes of two plots can be merged |
public String maxInstInLeafTipText(){
return "The max number of instances in a leaf.";
}
| Tip text for this property. |
public IterationExample(IterationObject sample){
oredCriteria=new ArrayList<Criteria>();
Criteria criteria=this.or();
if (sample.getCreated() != null) {
criteria.andCreatedEqualTo(sample.getCreated());
}
if (sample.getStatus() != null) {
criteria.andStatusEqualTo(sample.getStatus());
}
if (sample.... | This method was generated by MyBatis Generator. This method corresponds to the database table iteration |
public IPv4AddrIV(final String hostAddress) throws UnknownHostException {
super(DTE.Extension);
this.hostAddress=hostAddress;
final Matcher matcher=pattern.matcher(hostAddress);
final boolean matches=matcher.matches();
if (matches) {
final String ip=matcher.group(1);
if (log.isDebugEnabled()) log.... | Ctor with host address specified. |
public void hide(Animation anim){
hide(true,anim);
}
| Make the badge non-visible in the UI. |
public static int reflectionHashCode(int initialNonZeroOddNumber,int multiplierNonZeroOddNumber,Object object,boolean testTransients,Class reflectUpToClass,String[] excludeFields){
if (object == null) {
throw new IllegalArgumentException("The object to build a hash code for must not be null");
}
HashCodeBuild... | <p> This method uses reflection to build a valid hash code. </p> <p> It uses <code>AccessibleObject.setAccessible</code> to gain access to private fields. This means that it will throw a security exception if run under a security manager, if the permissions are not set up correctly. It is also not as efficient as testi... |
public boolean isNavigationAtBottom(){
return (mSmallestWidthDp >= 600 || mInPortrait);
}
| Should a navigation bar appear at the bottom of the screen in the current device configuration? A navigation bar may appear on the right side of the screen in certain configurations. |
public boolean onHitTarget(EntityLivingBase entity){
entity.setArrowCountInEntity(((EntityLivingBase)entity).getArrowCountInEntity() + 1);
worldObj.playSoundAtEntity(this,"random.bowhit",1.0F,1.2F / (rand.nextFloat() * 0.2F + 0.9F));
return true;
}
| fired when the arrow strikes an Entity |
public void showAlertDialogDeleteAllNotes(MenuItem menuItem){
alertDialogDeleteAll.show();
}
| Method used to show AlertDialog when delete all notes button is clicked |
public static String of(String[] headers,String[][] data){
if (headers == null) throw new NullPointerException("headers == null");
if (headers.length == 0) throw new IllegalArgumentException("Headers must not be empty.");
if (data == null) throw new NullPointerException("data == null");
return new FlipTab... | Create a new table with the specified headers and row data. |
final int internalNextInt(int origin,int bound){
int r=mix32(nextSeed());
if (origin < bound) {
int n=bound - origin, m=n - 1;
if ((n & m) == 0) r=(r & m) + origin;
else if (n > 0) {
for (int u=r >>> 1; u + m - (r=u % n) < 0; u=mix32(nextSeed()) >>> 1) ;
r+=origin;
}
else {
... | The form of nextInt used by IntStream Spliterators. Exactly the same as long version, except for types. |
@Override public void onExitScope(){
Logger.d("Navigation scope exit");
dispatcher.kill();
scope=null;
}
| Scope associated to navigator is destroyed Everything will be destroyed |
public static void createDocumentTypes(Properties ctx,int AD_Client_ID,SvrProcess sp,String trxName){
s_log.info("AD_Client_ID=" + AD_Client_ID);
String sql="SELECT rl.Value, rl.Name " + "FROM AD_Ref_List rl " + "WHERE rl.AD_Reference_ID=183"+ " AND rl.IsActive='Y' AND NOT EXISTS "+ " (SELECT * FROM C_DocType dt WH... | Create Missing Document Types |
ConfProxyUtilDelSigningKey(){
super("confproxy-del-signing-key");
getOptions().addOption(PROXY_INSTANCE).addOption("k","key-id",true,"Id of the signing key to delete");
}
| Constructs a confproxy-del-signing-key utility program instance. |
public TextFormatter(){
}
| Creates a new instance of TextFormatter |
public static String stringFor(int n){
switch (n) {
case CU_JIT_MAX_REGISTERS:
return "CU_JIT_MAX_REGISTERS";
case CU_JIT_THREADS_PER_BLOCK:
return "CU_JIT_THREADS_PER_BLOCK";
case CU_JIT_WALL_TIME:
return "CU_JIT_WALL_TIME";
case CU_JIT_INFO_LOG_BUFFER:
return "CU_JIT_INFO_LOG_BUFFER";
case CU_JIT_INFO_LOG_BUFFE... | Returns the String identifying the given CUjit_option |
protected String encodeCookie(SerializableHttpCookie cookie){
if (cookie == null) return null;
ByteArrayOutputStream os=new ByteArrayOutputStream();
try {
ObjectOutputStream outputStream=new ObjectOutputStream(os);
outputStream.writeObject(cookie);
}
catch ( IOException e) {
Log.d(LOG_TAG,"IOExc... | Serializes Cookie object into String |
public static Border createEtchedBorder(){
return sharedEtchedBorder;
}
| Creates a border with an "etched" look using the component's current background color for highlighting and shading. |
@Override public int compareTo(final Game g){
return date.compareTo(g.date);
}
| Implements an order of the game date. |
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:33:14.292 -0500",hash_original_method="5020D7570AC9675C7FDC286174BD125E",hash_generated_method="3307EC3ACAFF9D192A5DFA1BA6459FE9") public CallbackProxy(Context context,WebView w){
mContext=context;
mWebView=w;
mBackForwardList=ne... | Construct a new CallbackProxy. |
private void addSolutionUsersToGroup(String groupName,Collection<PrincipalId> users) throws Exception {
throw new NotImplementedError("Adding solution users to a group is not yet implemented");
}
| Utility method for adding solution users to a group |
protected void addFromEndpointPropertyDescriptor(Object object){
itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),getResourceLocator(),getString("_UI_Channel_fromEndpoint_feature"),getString("_UI_PropertyDescriptor_description","_UI_Channel_f... | This adds a property descriptor for the From Endpoint feature. <!-- begin-user-doc --> <!-- end-user-doc --> |
private void notifyListener(){
Iterator<ChangeListener> iter;
iter=m_ChangeListeners.iterator();
while (iter.hasNext()) {
iter.next().stateChanged(new ChangeEvent(this));
}
}
| notfies all listener of the change |
public Graph search(){
topGraphs.clear();
lookupArrows=new ConcurrentHashMap<>();
final List<Node> nodes=new ArrayList<>(variables);
if (adjacencies != null) {
adjacencies=GraphUtils.replaceNodes(adjacencies,nodes);
}
addRequiredEdges(graph);
if (initialGraph != null) {
graph.clear();
graph.tr... | Greedy equivalence search: Start from the empty graph, add edges till model is significant. Then start deleting edges till a minimum is achieved. |
protected Object entryInitialFlow(){
LocalTypeSet ret=(LocalTypeSet)emptySet.clone();
return ret;
}
| Returns a new, aggressive (local,type) set. |
public static void arrayCopy(int[][] src,int srcStartRow,int srcStartCol,int[][] dest,int destStartRow,int destStartCol,int rows,int cols){
for (int r=0; r < rows; r++) {
System.arraycopy(src[srcStartRow + r],srcStartCol,dest[destStartRow + r],destStartCol,cols);
}
}
| Copies the required rows and columns between two double arrays |
public static ArrayList svgHorizontalCoordinateArrayToUserSpace(Element element,String attrName,String valueStr,BridgeContext ctx){
UnitProcessor.Context uctx=UnitProcessor.createContext(ctx,element);
ArrayList values=new ArrayList();
StringTokenizer st=new StringTokenizer(valueStr,", ",false);
while (st.hasMor... | Returns the float list that represents a set of horizontal values or percentage. |
protected boolean checkLowTierGraph(StructuredGraph graph){
return true;
}
| Can be overridden by unit tests to verify properties of the graph. |
public CorrectPredictionCondition(){
}
| Creates a new condition. |
public EqualsLayout(int gap){
this(RIGHT,gap);
}
| Instantiates a new equals layout. |
@Deprecated public void readObject(ObjectInputStream s) throws IOException {
}
| Reads the object stream. |
public boolean hasAvailableData() throws IOException {
if (this.bitsInBuffer > 0) {
return true;
}
return loadNextByteInBuffer() >= 0;
}
| Check that there is available data to read from stream. NB: It will read one byte from the stream and will save it into inside bit buffer. |
public String commandTopic(String command){
if (command == null) {
command="+";
}
return cmdTopic.replace("{COMMAND}",command);
}
| Get the MQTT topic for a command. |
private static Field findField(Object instance,String name) throws NoSuchFieldException {
for (Class<?> clazz=instance.getClass(); clazz != null; clazz=clazz.getSuperclass()) {
try {
Field field=clazz.getDeclaredField(name);
if (!field.isAccessible()) {
field.setAccessible(true);
}
... | Locates a given field anywhere in the class inheritance hierarchy. |
@Override public boolean hasNext(){
return current < len;
}
| Checks if the array has next element, stores reference to the current element and increments cursor. This is required since an element may be removed between hasNext() and next() method calls |
public EducationalBackground degree(String degree){
this.degree=degree;
return this;
}
| Sets the user's degree. |
protected void cleanupAfterExecution(){
restoreInputsInSymbolTable();
}
| Perform any necessary cleanup operations after program execution. |
public static Optional<String> createInputDialog(final Window owner,final String title,final String label){
final TextInputDialog dialog=new TextInputDialog();
dialog.setTitle(title);
dialog.setHeaderText(null);
dialog.setContentText(label);
dialog.initOwner(owner);
return dialog.showAndWait();
}
| Asks the user for input. |
public InternalStatisticsDisabledException(Throwable cause){
super(cause);
}
| Constructs an instance of <code>StatisticsDisabledException</code> with the specified cause. |
public Observable(){
obs=new Vector();
}
| Construct an Observable with zero Observers. |
public boolean cancel(boolean mayInterruptIfRunning){
for ( Future<T> f : components) if (!f.cancel(mayInterruptIfRunning)) return false;
return true;
}
| <p>Canceling an aggregate future succeeds only if canceling all of its components succeeds. Note that during the process some components may be canceled while others not which would lead to an inconsistent state.</p> |
public void testImplicitCommit() throws Exception {
File logDir=prepareLogDir("testCommitVisibility");
DiskLog log=new DiskLog();
log.setLogDir(logDir.getAbsolutePath());
log.setReadOnly(false);
log.setFlushIntervalMillis(500);
log.prepare();
LogConnection conn=log.connect(false);
SimpleLogReader reader... | Confirm that records written to the log become visible automatically when implicit commit is enabled by setting the flush interval to a value greater than zero. |
public synchronized void write(byte[] buf,int off,int len) throws IOException {
super.write(buf,off,len);
crc.update(buf,off,len);
}
| Writes array of bytes to the compressed output stream. This method will block until all the bytes are written. |
public NotificationChain basicSetInitSequence(Sequence newInitSequence,NotificationChain msgs){
Sequence oldInitSequence=initSequence;
initSequence=newInitSequence;
if (eNotificationRequired()) {
ENotificationImpl notification=new ENotificationImpl(this,Notification.SET,SexecPackage.EXECUTION_STATE__INIT_SEQU... | <!-- begin-user-doc --> <!-- end-user-doc --> |
private void replaceTransaction(HGLiveHandle lHandle,final HGPersistentHandle pHandle,final Object atom,final HGHandle typeHandle){
Object newValue=atom;
if (atom instanceof HGValueLink) newValue=((HGValueLink)atom).getValue();
HGPersistentHandle[] layout=store.getLink(pHandle);
HGPersistentHandle oldValueHan... | Replace an atom with a new value. Recursively replace the values of type atoms. |
protected void load(){
if (!loaded) {
try {
update();
}
catch ( AcmeRetryAfterException ex) {
}
catch ( AcmeException ex) {
throw new AcmeProtocolException("Could not load lazily",ex);
}
}
}
| Lazily updates the object's state when one of the getters is invoked. |
private boolean updatedFromBefore(String version){
return Version.compareVersions(settings.getString("currentVersion"),version) == 1;
}
| Checks whether the current version (the version saved in the "currentVersion" setting, which is overwritten with Chatty.VERSION on every start) is smaller than the given one. This basicially means that if the user last used a version smaller than the given one, this returns true. Usually the current version would be us... |
public List<Long> selectResendMessage() throws ServiceException {
try {
return messageBoxDao.selectMessageBox(new Date());
}
catch ( DaoException e) {
throw new ServiceException(e);
}
}
| Description: <br> |
public GuildBanAddHandler(ImplDiscordAPI api){
super(api,true,"GUILD_BAN_ADD");
}
| Creates a new instance of this class. |
public static String useLnfForPlatform(){
String lnfClassName=null;
if (OperatingSystem.isMacOs()) {
lnfClassName=UIManager.getSystemLookAndFeelClassName();
}
else if (OperatingSystem.isWindows()) {
lnfClassName=WindowsLookAndFeel.class.getName();
}
else {
String xdgCurrentDesktop=System.getenv(... | Use the appropriate look and feel for the current platform. |
public void store(long value){
if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED);
}
| Stores a <code>long</code> value in the memory location pointed to by the current instance. |
public void testBug80615() throws Exception {
final int prepStmtCacheSize=5;
final int maxPrepStmtCount=25;
final int testRepetitions=maxPrepStmtCount + 5;
int maxPrepStmtCountOri=-1;
try {
Connection checkConn=getConnectionWithProps("useServerPrepStmts=true");
PreparedStatement checkPstmt=checkConn.p... | Tests fix for Bug#80615 - prepared statement leak when rewriteBatchedStatements=true and useServerPrepStmt. There are two bugs here: 1. A server prepared statement leakage by not actually closing the statement on server when .close() is called in the client side. This occurs when setting 'cachePrepStmts=true&useServerP... |
public BinaryBitmap crop(int left,int top,int width,int height){
LuminanceSource newSource=binarizer.getLuminanceSource().crop(left,top,width,height);
return new BinaryBitmap(binarizer.createBinarizer(newSource));
}
| Returns a new object with cropped image data. Implementations may keep a reference to the original data rather than a copy. Only callable if isCropSupported() is true. |
private String addEnableImageAccessStep(Workflow workflow,ProtectionSystem rpSystem,Map<URI,Integer> snapshots,String waitFor) throws InternalException {
String stepId=workflow.createStepId();
Workflow.Method enableImageAccessExecuteMethod=new Workflow.Method(METHOD_ENABLE_IMAGE_ACCESS_STEP,rpSystem.getId(),snapsho... | Method that adds the steps to the workflow to enable image access |
public final void addAllHelperTexts(@NonNull final Collection<CharSequence> helperTexts){
ensureNotNull(helperTexts,"The collection may not be null");
for ( CharSequence helperText : helperTexts) {
addHelperText(helperText);
}
}
| Adds all helper texts, which are contained by a specific collection. The helper texts are added in the given order. |
public void sendForward(final WorkflowAnnotation anno){
if (anno == null) {
throw new IllegalArgumentException("anno must not be null!");
}
model.getProcessAnnotations(anno.getProcess()).sendForward(anno);
fireProcessUpdate(anno);
model.fireAnnotationMiscChanged(anno);
}
| Brings the given annotation one layer forward. |
public static boolean isClassAvailableForProject(@NotNull Project project,@NotNull String className){
PsiClass classInModule=JavaPsiFacade.getInstance(project).findClass(className,new EverythingGlobalScope(project));
return classInModule != null;
}
| Check whether classpath of a the whole project contains given class. This is only fallback for wrongly setup projects. |
public Date(){
super(DTG_REGEX,false,1.0);
}
| New instance. |
GeneralRange<T> reverse(){
GeneralRange<T> result=reverse;
if (result == null) {
result=new GeneralRange<T>(Ordering.from(comparator).reverse(),hasUpperBound,getUpperEndpoint(),getUpperBoundType(),hasLowerBound,getLowerEndpoint(),getLowerBoundType());
result.reverse=this;
return this.reverse=result;
}... | Returns the same range relative to the reversed comparator. |
@Override public boolean equals(Object obj){
if (obj == this) {
return true;
}
if (!(obj instanceof XYBoxAndWhiskerRenderer)) {
return false;
}
if (!super.equals(obj)) {
return false;
}
XYBoxAndWhiskerRenderer that=(XYBoxAndWhiskerRenderer)obj;
if (this.boxWidth != that.getBoxWidth()) {
... | Tests this renderer for equality with another object. |
public static List<String> parseModsList(String text){
int start=text.indexOf(":") + 1;
List<String> modsList=new ArrayList<>();
if (start > 1 && text.length() > start) {
String mods=text.substring(start);
if (!mods.trim().isEmpty()) {
String[] modsArray=mods.split(",");
for ( String mod ... | Prase the list of mods as returned from the Twitch Chat. The comma-seperated list should start after the first colon ("The moderators of this room are: .."). |
protected void pasteSelectedBean(){
if (Debug.debugging("beanbox")) Debug.output("Enter> pasteSelectedBean");
if (serBean == null) {
clearSelection();
if (Debug.debugging("beanbox")) Debug.output("Exit> pasteSelectedBean");
return;
}
BeanInfo beanInfo=(BeanInfo)beanInfoMap.get(selectedBean.get... | This method is called when the user chooses to paste by some means (such by pressing Ctrl-V) a previously copied or cut bean. This method tries to deserialize the previously serialized bean. If the bean in question was cut, this method also removes it from from the source beanbox. The paste operation is treated the sam... |
private StringUtil(){
throw new Error("Do not need instantiate!");
}
| Don't let anyone instantiate this class. |
public synchronized void statusMessage(String message){
m_StatusLab.setText(message);
}
| Sends the supplied message to the status line. |
public synchronized void clear(){
Object[] theSockets=sockets.toArray();
sockets.clear();
for (int i=0; i < theSockets.length; i++) {
Socket socket=((Socket)theSockets[i]);
if (socket != null) {
try {
socket.close();
}
catch ( IOException e) {
}
}
}
}
| Clears and closes all registered sockets. |
@Override public boolean eIsSet(int featureID){
switch (featureID) {
case UmplePackage.CONSTRAINT___ANONYMOUS_CONSTRAINT_11:
return anonymous_constraint_1_1 != null && !anonymous_constraint_1_1.isEmpty();
case UmplePackage.CONSTRAINT___CONSTRAINT_BODY_1:
return constraintBody_1 != null && !constraintBody_1.isEmpt... | <!-- begin-user-doc --> <!-- end-user-doc --> |
public String hoeffdingTieThresholdTipText(){
return "Theshold below which a split will be forced to break ties.";
}
| Returns the tip text for this property |
public void generateFileList(File node){
if (node.isFile()) {
fileList.add(generateZipEntry(node.getAbsoluteFile().toString()));
}
if (node.isDirectory()) {
String[] subNote=node.list();
for ( String filename : subNote) {
generateFileList(new File(node,filename));
}
}
}
| Traverse a directory and get all files, and add the file into fileList |
private void loadTrl(){
if (Env.isBaseLanguage(getCtx(),"AD_Workflow") || get_ID() == 0) return;
final String sql="SELECT Name, Description, Help FROM AD_WF_Node_Trl" + " WHERE AD_WF_Node_ID=? AND AD_Language=?";
PreparedStatement pstmt=null;
ResultSet rs=null;
try {
pstmt=DB.prepareStatement(sql,get_Tr... | Load Translation |
public Metadata.Property.Builder clear(){
Metadata_Property_Builder _defaults=new Metadata.Property.Builder();
type=_defaults.type;
boxedType=_defaults.boxedType;
name=_defaults.name;
capitalizedName=_defaults.capitalizedName;
allCapsName=_defaults.allCapsName;
getterName=_defaults.getterName;
codeGener... | Resets the state of this builder. |
public JSONException(final Throwable cause){
super(cause.getMessage(),cause);
}
| Constructs a new JSONException with the specified cause. |
public Builder failListener(@NonNull OnExternalResourcesLoadFailedListener listener){
if (null == listener) {
throw new IllegalArgumentException("Listener must not be null.");
}
if (null != this.listener) {
throw new IllegalStateException("Listener already set.");
}
this.listener=listener;
return th... | Set a listener which will be trigger if it's impossible to load external resources. |
private void updateProgress(int progress){
if (myHost != null && progress != previousProgress) {
myHost.updateProgress(progress);
}
previousProgress=progress;
}
| Used to communicate a progress update between a plugin tool and the main Whitebox user interface. |
public void visitAttribute(final Attribute attr){
buf.setLength(0);
buf.append(tab).append("ATTRIBUTE ");
appendDescriptor(-1,attr.type);
if (attr instanceof Textifiable) {
((Textifiable)attr).textify(buf,null);
}
else {
buf.append(" : unknown\n");
}
text.add(buf.toString());
}
| Prints a disassembled view of the given attribute. |
public void reinitializeContacts(final EvolutionState state){
return;
}
| Doesn't do anything. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.