code stringlengths 10 174k | nl stringlengths 3 129k |
|---|---|
public static Optional createOptional(Model model,ElementList elements){
Optional optional=model.createResource(SP.Optional).as(Optional.class);
optional.addProperty(SP.elements,elements);
return optional;
}
| Creates a new Optional as a blank node in a given Model. |
public void close() throws IOException {
}
| Does nothing |
public DenseDoubleMatrix2D(int rows,int columns){
setUp(rows,columns);
this.elements=new double[rows * columns];
}
| Constructs a matrix with a given number of rows and columns. All entries are initially <tt>0</tt>. |
public boolean isDefaultModel(){
return defaultModel;
}
| Checks if is default model. |
private void cancelAllObsoleteTimer(){
for ( Timer timer : ParameterizedTypes.iterable(ctx.getTimerService().getTimers(),Timer.class)) {
Serializable info=timer.getInfo();
if (info != null && info instanceof TimerType) {
TimerType type=(TimerType)info;
timer.cancel();
logger.logInfo(Log4jLo... | Determines all currently queued timers and cancels them. |
public boolean isMandatory(){
return mandatory;
}
| Is this parameter mandatory or not. |
public T casePrimitiveType(PrimitiveType object){
return null;
}
| Returns the result of interpreting the object as an instance of '<em>Primitive Type</em>'. <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> |
protected void parseRule(){
switch (scanner.getType()) {
case LexicalUnits.IMPORT_SYMBOL:
nextIgnoreSpaces();
parseImportRule();
break;
case LexicalUnits.NAMESPACE:
nextIgnoreSpaces();
parseNamespace();
break;
case LexicalUnits.AT_KEYWORD:
nextIgnoreSpaces();
parseAtRule();
break;
case LexicalUnits.FONT_FACE_SYMB... | Parses a rule. |
final V remove(Object key,int hash,Object value){
if (!tryLock()) scanAndLock(key,hash);
V oldValue=null;
try {
HashEntry<K,V>[] tab=table;
int index=(tab.length - 1) & hash;
HashEntry<K,V> e=entryAt(tab,index);
HashEntry<K,V> pred=null;
while (e != null) {
K k;
HashEntry<K,V> ne... | Remove; match on key only if value null, else match both. |
@DSComment("Private Method") @DSBan(DSCat.PRIVATE_METHOD) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 13:02:38.301 -0500",hash_original_method="2E63066111AD195377A7E087D5F90A5E",hash_generated_method="B1ECC6AC4E64132290709D619D40862C") private String readLine() throws IOException {... | Read a line of text and return it for possible parsing |
private static boolean isXPointerSlash(String uri){
if (uri.equals("#xpointer(/)")) {
return true;
}
return false;
}
| Method isXPointerSlash |
public List<Interface> showInterface() throws NetworkDeviceControllerException {
List<Interface> interfaces=new ArrayList<Interface>();
SSHPrompt[] prompts={SSHPrompt.POUND,SSHPrompt.GREATER_THAN};
StringBuilder buf=new StringBuilder();
SSHPrompt prompt=sendWaitFor(MDSDialogProperties.getString("MDSDialog.showI... | Issues the "show interface" command and collects in information into a list of interfaces. For now only parses fiber channel interfaces starting with "fc", e.g. fc1/1, fc2/20, ... This method is not currently used. |
public String toString(){
return serverAddress == null ? "null" : serverAddress.toString();
}
| Returns a string representation of this Server. |
public void addHeader(@NonNull View view){
if (view == null) {
throw new IllegalArgumentException("You can't have a null header!");
}
mHeaders.add(view);
}
| Adds a header view. |
public static XPath2FilterContainer newInstanceSubtract(Document doc,String xpath2filter){
return new XPath2FilterContainer(doc,xpath2filter,XPath2FilterContainer._ATT_FILTER_VALUE_SUBTRACT);
}
| Creates a new XPath2FilterContainer with the filter type "subtract". |
protected void extendElement(Element e){
SerialNode node=(SerialNode)SerialTrafficController.instance().getNode(0);
int index=1;
while (node != null) {
Element n=new Element("node");
n.setAttribute("name","" + node.getNodeAddress());
e.addContent(n);
n.addContent(makeParameter("transmissiondelay",... | Write out the SerialNode objects too |
public static boolean writeFile(String filePath,String content){
return writeFile(filePath,content,false);
}
| write file, the string will be written to the begin of the file |
public void evaluate(final EvolutionState state,final Individual[] ind,final boolean[] updateFitness,final boolean countVictoriesOnly,final int[] subpops,final int threadnum){
Individual[] gpi=new Individual[ind.length];
for (int i=0; i < gpi.length; i++) {
if (ind[i] instanceof GEIndividual) {
GEIndividu... | Default version assumes that every individual is a GEIndividual. The underlying problem.evaluate() must be prepared for the possibility that some GPIndividuals handed it are in fact null, meaning that they couldn't be extracted from the GEIndividual string. You should assign them bad fitness in some appropriate way. |
public void testGenerateMergedFileAddFile() throws Exception {
File mergedCodebaseLocation=new File("merged_codebase_7");
expect(fileSystem.getTemporaryDirectory("merged_codebase_")).andReturn(mergedCodebaseLocation);
File origFile=new File("orig/foo");
expect(orig.getFile("foo")).andReturn(origFile);
expect(... | Test generateMergedFile(...) in the case when the file exists only in mod. In this case, the file should simply be copied to the merged codebase. |
public synchronized boolean removeReceiver(SpanReceiver receiver){
SpanReceiver[] receivers=curReceivers;
for (int i=0; i < receivers.length; i++) {
if (receivers[i] == receiver) {
SpanReceiver[] newReceivers=new SpanReceiver[receivers.length - 1];
System.arraycopy(receivers,0,newReceivers,0,i);
... | Remove a span receiver. |
public void addModule(Module module){
mModules.add(module);
registerListeners(module);
registerProviders(module);
}
| Adds a module to the processing chain. Each module is tested for the interfaces that it supports and is registered or receives a listener to consume or produce the supported interface data type. All elements and events that are produced by any module are automatically routed to all other components that support the ... |
protected static void initVariables(VariableService variableService,Map<String,ConfigurationVariable> variables,EngineImportService engineImportService){
for ( Map.Entry<String,ConfigurationVariable> entry : variables.entrySet()) {
try {
Pair<String,Boolean> arrayType=JavaClassHelper.isGetArrayType(entry.g... | Adds configured variables to the variable service. |
public static Builder builder(){
return new Builder();
}
| Gets a new Builder for a CassandraConfig. |
public void delete(String url,RequestParams params,AsyncHttpResponseHandler responseHandler){
final HttpDelete delete=new HttpDelete(getUrlWithQueryString(isUrlEncodingEnabled,url,params));
sendRequest(httpClient,httpContext,delete,null,responseHandler,null);
}
| Perform a HTTP DELETE request. |
public DenseObjectMatrix3D(int slices,int rows,int columns){
setUp(slices,rows,columns);
this.elements=new Object[slices * rows * columns];
}
| Constructs a matrix with a given number of slices, rows and columns. All entries are initially <tt>0</tt>. |
public static boolean isRequestOngoing(){
checkInstanceNotNull();
return instance.isRequestOngoing();
}
| Checks is there is any permission request still ongoing. If so, state of permissions must not be checked until it is resolved or it will cause an exception. |
public static boolean isClaimable(final NamespaceId namespaceId){
NamespaceId current=namespaceId;
do {
if (NAMESPACE_ID_PARTS.contains(current.getLastPart())) {
return false;
}
current=current.getParent();
}
while (null != current);
return true;
}
| Gets a value indicating whether or not the given namespace id is claimable. |
private static String best(final int code){
String reason=RsWithStatus.REASONS.get(code);
if (reason == null) {
reason="Unknown";
}
return reason;
}
| Find the best reason for this status code. |
public void addPoint(Vector3 point1,Vector3 controlPoint1,Vector3 controlPoint2,Vector3 point2){
mPoint1=point1;
mControlPoint1=controlPoint1;
mControlPoint2=controlPoint2;
mPoint2=point2;
}
| Add a Curve |
private void formatCookieAsVer(final StringBuffer buffer,final Cookie cookie,final int version){
String value=cookie.getValue();
if (value == null) {
value="";
}
formatParam(buffer,new NameValuePair(cookie.getName(),value),version);
if ((cookie.getPath() != null) && cookie.isPathAttributeSpecified()) {
... | Return a string suitable for sending in a <tt>"Cookie"</tt> header as defined in RFC 2109 for backward compatibility with cookie version 0 |
public SendableVideoMessage.SendableVideoMessageBuilder replyTo(long replyTo){
this.replyTo=replyTo;
return this;
}
| *Optional Sets the ID of the message you want to reply to |
protected boolean isReadAllowed() throws IOException {
if (selfClosed) {
throw new IOException("Attempted read on closed stream.");
}
return (wrappedStream != null);
}
| Checks whether the underlying stream can be read from. |
void logTruncate(Session session,int tableId){
if (trace.isDebugEnabled()) {
trace.debug("log truncate s: " + session.getId() + " table: "+ tableId);
}
session.addLogPos(logSectionId,logPos);
logPos++;
Data buffer=getBuffer();
buffer.writeByte((byte)TRUNCATE);
buffer.writeVarInt(session.getId());
bu... | A table is truncated. |
public Object put(Object name,Object value){
return map.put((Attributes.Name)name,(String)value);
}
| Associates the specified value with the specified attribute name (key) in this Map. If the Map previously contained a mapping for the attribute name, the old value is replaced. |
private void blockByLocationMoves() throws BuildFailedException {
List<RouteLocation> routeList=_train.getRoute().getLocationsBySequenceList();
for ( RouteLocation rl : routeList) {
if (rl == _train.getTrainDepartsRouteLocation()) {
continue;
}
int possibleMoves=rl.getMaxCarMoves() - rl.getCarMov... | Blocks cars out of staging by assigning the largest blocks of cars to locations requesting the most moves. |
public static PcRunner serializableInstance(){
return PcRunner.serializableInstance();
}
| Generates a simple exemplar of this class to test serialization. |
public static float calculateAspectRatio(Rect rect){
final float aspectRatio=(float)rect.width() / (float)rect.height();
return aspectRatio;
}
| Calculates the aspect ratio given a rectangle. |
public List resources(){
if (this.resources != null) {
unsupportedIn2_3();
}
return this.resources;
}
| Returns the live ordered list of resources for this try statement. |
public int viewToModel(float x,float y,Shape a,Position.Bias[] bias){
Rectangle alloc=(Rectangle)a;
if (x < alloc.x + (alloc.width / 2)) {
bias[0]=Position.Bias.Forward;
return getStartOffset();
}
bias[0]=Position.Bias.Backward;
return getEndOffset();
}
| Provides a mapping from the view coordinate space to the logical coordinate space of the model. |
protected Iterator createValuesIterator(){
if (size() == 0) {
return EmptyIterator.INSTANCE;
}
return new ValuesIterator(this);
}
| Creates a values iterator. Subclasses can override this to return iterators with different properties. |
public boolean addRemoteTextFile(String url,String content){
URL mockURL;
try {
mockURL=MockURL.URL(url);
}
catch ( MalformedURLException e) {
return false;
}
if (mockURL.getProtocol().toLowerCase().equals("file")) {
return false;
}
String key=url.toString();
if (remoteFiles.containsKey(ke... | Create a new remote file that can be accessed by the given URL |
@Override public boolean isActive(){
return amIActive;
}
| Used by the Whitebox GUI to tell if this plugin is still running. |
private void updateProgress(String progressLabel,int progress){
if (myHost != null && ((progress != previousProgress) || (!progressLabel.equals(previousProgressLabel)))) {
myHost.updateProgress(progressLabel,progress);
}
previousProgress=progress;
previousProgressLabel=progressLabel;
}
| Used to communicate a progress update between a plugin tool and the main Whitebox user interface. |
public String(java.lang.StringBuffer buffer){
}
| Allocates a new string that contains the sequence of characters currently contained in the string buffer argument. The contents of the string buffer are copied; subsequent modification of the string buffer does not affect the newly created string. buffer - a StringBuffer. - If buffer is null. |
protected void processTuple(Object tuple){
if (keyMethod == null && keyField != "") {
pojoClass=tuple.getClass();
try {
keyMethod=generateGetterForKeyField();
}
catch ( NoSuchFieldException e) {
throw new RuntimeException("Field " + keyField + " is invalid: "+ e);
}
}
KeyedMessage ... | Write the incoming tuple to Kafka |
@Override public int read() throws IOException {
return in.read();
}
| Reads a single byte from the filtered stream and returns it as an integer in the range from 0 to 255. Returns -1 if the end of this stream has been reached. |
public void addALoad(int local){
xop(ByteCode.ALOAD_0,ByteCode.ALOAD,local);
}
| Load object from the given local into stack. |
public ChunkManager(GlowWorld world,ChunkIoService service,ChunkGenerator generator){
this.world=world;
this.service=service;
this.generator=generator;
biomeGrid=MapLayer.initialize(world.getSeed(),world.getEnvironment(),world.getWorldType());
}
| Creates a new chunk manager with the specified I/O service and world generator. |
public static void removeListener(ILogEventListener aListener){
loggerImpl.removeListener(aListener);
}
| Remove a previously added log listener |
public Boolean isAtBootIpV6Enabled(){
return atBootIpV6Enabled;
}
| Gets the value of the atBootIpV6Enabled property. |
@Override protected EClass eStaticClass(){
return DomPackage.Literals.LITERAL;
}
| <!-- begin-user-doc --> <!-- end-user-doc --> |
public static Function<String> jsonType(Object json){
return new JSONArgumentFunction<>("json_type",json);
}
| Wrapper for the json_type() SQL function |
private void heapifyDown(int cur,Object val){
final int stop=size >>> 1;
int twopos=0;
while (twopos < stop) {
int bestchild=(twopos << 1) + 1;
int best=twoheap[bestchild];
final int right=bestchild + 1;
if (right < size && best > twoheap[right]) {
bestchild=right;
best=twoheap[right];... | Invoke heapify-down for the root object. |
public Column addToTable(Table table) throws IOException {
return new TableUpdater((TableImpl)table).addColumn(this);
}
| Adds a new Column to the given Table with the currently configured attributes. |
public ReasonFlags(BitArray reasons){
this.bitString=reasons.toBooleanArray();
}
| Create a ReasonFlags with the passed bit settings. |
public boolean isAD_Override_Dict(){
Object oo=get_Value(COLUMNNAME_AD_Override_Dict);
if (oo != null) {
if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
| Get Update System Maintained Application Dictionary. |
public static void mergeSort(short[] a,int fromIndex,int toIndex,ShortComparator c){
rangeCheck(a.length,fromIndex,toIndex);
short aux[]=(short[])a.clone();
mergeSort1(aux,a,fromIndex,toIndex,c);
}
| Sorts the specified range of the specified array of elements according to the order induced by the specified comparator. All elements in the range must be <i>mutually comparable</i> by the specified comparator (that is, <tt>c.compare(e1, e2)</tt> must not throw a <tt>ClassCastException</tt> for any elements <tt>e1</tt... |
public void showMenu(){
mSlidingMenu.showMenu();
}
| Open the SlidingMenu and show the menu view. |
private String createRequestString(AuthnRequest authRequest,String relayState,Boolean isSigned,PrivateKey signingKey,String algorithmName) throws MarshallingException, IOException, NoSuchAlgorithmException, WebssoClientException {
Validate.notNull(authRequest,"AuthnRequest object");
if (isSigned && (signingKey == n... | Build part of redirect url that could be signed The portion is "SAMLRequest=<base64 encoded request>&SigAlg=<signature algorithm>" |
@Override public void bounce(Mail mail,String message,MailAddress bouncer) throws MessagingException {
if (mail.getSender() == null) {
if (log.isInfoEnabled()) log.info("Mail to be bounced contains a null (<>) reverse path. No bounce will be sent.");
return;
}
else {
if (log.isInfoEnabled()) l... | <p> This generates a response to the Return-Path address, or the address of the message's sender if the Return-Path is not available. Note that this is different than a mail-client's reply, which would use the Reply-To or From header. </p> <p> Bounced messages are attached in their entirety (headers and content) and th... |
public static void delete(long sync_id){
SYNCHRONIZER_SERVICE.removeSynchronizer(sync_id);
}
| Deletes a synchronizer having the given id. |
private Set<SRDFPoolMapping> fireSRDFPlacementRules(final Set<SRDFPoolMapping> srdfPoolMappings,final Integer resourceCount){
final String validatingSRDF="Validating storage systems to ensure they are capable of handling an SRDF configuration for %s production volume(s) with SRDF.";
_log.info(String.format(validati... | Executes a set of business rules against the <code>List</code> of <code>SRDFPoolMapping</code> objects to determine if they are capable to perform volume SRDF. We then use our knowledge of the storage systems to execute the following business rules: <p> <ul> <li>Business rules unimplemented at this time, we let all map... |
private void remove(ThreadLocal<?> key){
Entry[] tab=table;
int len=tab.length;
int i=key.threadLocalHashCode & (len - 1);
for (Entry e=tab[i]; e != null; e=tab[i=nextIndex(i,len)]) {
if (e.get() == key) {
e.clear();
expungeStaleEntry(i);
return;
}
}
}
| Remove the entry for key. |
@Override public void deleteRows(int row,int len) throws FitsException {
ensureData();
this.table.deleteRows(row,len);
this.nRow-=len;
}
| Delete rows from a table. |
public static boolean checkCameraHardware(Context context){
if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA)) {
return true;
}
else {
return false;
}
}
| Check if this device has a camera |
@DSComment("Private Method") @DSBan(DSCat.PRIVATE_METHOD) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:33:46.183 -0500",hash_original_method="5AF8C140309DC273491B33B4E92E1FA7",hash_generated_method="72BB942F4DB8CA23BC83A54E18388E68") private StatusUpdates(){
}
| This utility class cannot be instantiated |
public void clearEngineLocations(){
engineLoc.clear();
}
| Removes all engine locations |
@Override public NotificationChain eInverseRemove(InternalEObject otherEnd,int featureID,NotificationChain msgs){
switch (featureID) {
case UmplePackage.ANONYMOUS_LINKING_OP_3__CONSTRAINT_EXPR_1:
return ((InternalEList<?>)getConstraintExpr_1()).basicRemove(otherEnd,msgs);
}
return super.eInverseRemove(otherEnd,feat... | <!-- begin-user-doc --> <!-- end-user-doc --> |
HGHandle defineNewJavaTypeTransaction(HGHandle newHandle,Class<?> clazz){
HGAtomType inferredHGType=javaTypes.defineHGType(clazz,newHandle);
if (inferredHGType == null) return null;
HGHandle typeConstructor=graph.getTypeSystem().getTypeHandle(inferredHGType.getClass());
if (!typeConstructor.equals(graph.getTy... | We need to infer to HG type by introspection. We maintain the full inheritance tree of Java class and interfaces. Therefore, for each newly added Java type mapping, we navigate to parent classes etc. |
public boolean renameHttpSession(String oldName,String newName){
if (newName == null || newName.isEmpty()) {
log.warn("Trying to rename session from " + oldName + " illegal name: "+ newName);
return false;
}
HttpSession session=getHttpSession(oldName);
if (session == null) {
return false;
}
if (... | Renames a http session, making sure the new name is unique for the site. |
public void paint(Graphics g){
Graphics2D g2=(Graphics2D)g;
resetShapeBounds();
g2.setColor(Color.black);
g2.setStroke(stroke);
g2.draw(shape);
}
| Paints the rubberband. |
public void rebuildBottomUp(){
int[] nodes=new int[m_nodeCount];
int count=0;
for (int i=0; i < m_nodeCapacity; ++i) {
if (m_nodes[i].height < 0) {
continue;
}
DynamicTreeNode node=m_nodes[i];
if (node.child1 == null) {
node.parent=null;
nodes[count]=i;
++count;
}
else... | Build an optimal tree. Very expensive. For testing. |
public void clearImports(){
if (importLibraries != null) {
importLibraries.clear();
}
}
| Clear all the defined library imports |
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. |
ByteVector put11(final int b1,final int b2){
int length=this.length;
if (length + 2 > data.length) {
enlarge(2);
}
byte[] data=this.data;
data[length++]=(byte)b1;
data[length++]=(byte)b2;
this.length=length;
return this;
}
| Puts two bytes into this byte vector. The byte vector is automatically enlarged if necessary. |
public boolean last() throws SQLException {
throw new UnsupportedOperationException();
}
| Moves this <code>CachedRowSetImpl</code> object's cursor to the last row and returns <code>true</code> if the operation was successful. This method also notifies registered listeners that the cursor has moved. |
public boolean isPrinted(){
Object oo=get_Value(COLUMNNAME_IsPrinted);
if (oo != null) {
if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
| Get Printed. |
public AddModuleWizard(@Nullable Project project,String filePath,ProjectImportProvider... importProviders){
super(getImportWizardTitle(project,importProviders),project,filePath);
myImportProviders=importProviders;
myModulesProvider=DefaultModulesProvider.createForProject(project);
initModuleWizard(project,fileP... | Import mode |
public boolean isImage(){
return isImage;
}
| Method to check if Image is set from user. |
public Builder byHour(Integer... hours){
return byHour(Arrays.asList(hours));
}
| Adds one or more BYHOUR rule parts. |
private void createMenuBar(){
Action[] actionArray=editorPane.getActions();
Hashtable<Object,Action> actions=new Hashtable<Object,Action>();
for (int i=0; i < actionArray.length; i++) {
Object name=actionArray[i].getValue(Action.NAME);
actions.put(name,actionArray[i]);
}
for (int i=0; i < extraActions... | Create Menu Bar |
protected boolean isTouchInView(List<UITouch> touches){
for (int i=0, touchesLength=touches.size(); i < touchesLength; i++) if (touches.get(i).getView() != mGLSurfaceView) return false;
return true;
}
| touch methods |
public void testVerifyJBossHomeWhenValidConfiguration() throws Exception {
this.fsManager.resolveFile("ram:///jboss/bin/run.jar").createFile();
this.fsManager.resolveFile("ram:///jboss/bin/shutdown.jar").createFile();
this.fsManager.resolveFile("ram:///jboss/client/something").createFile();
this.fsManager.resol... | Test JBoss home when valid configuration. |
@Override public void onAutoHide(){
ColorPicker colorPicker=(ColorPicker)getControl();
JFXColorPickerSkin cpSkin=(JFXColorPickerSkin)colorPicker.getSkin();
cpSkin.syncWithAutoUpdate();
if (!colorPicker.isShowing()) super.onAutoHide();
}
| * Mouse Events handling (when losing focus) * |
public static boolean isInteger(String val){
for (int i=0; i < val.length(); i++) {
if (!Character.isDigit(val.charAt(i))) {
return false;
}
}
return true;
}
| Tests whether input is an integer or not |
public static void main(String[] args) throws Throwable {
HasUnsignedEntryTest test=new HasUnsignedEntryTest();
test.start();
}
| The test signs and verifies a jar that contains unsigned entries which have not been integrity-checked (hasUnsignedEntry). Warning message is expected. |
private void receiveFriends(){
CleartextFriends friendsReceived=lengthValueRead(in,CleartextFriends.class);
this.mFriendsReceived=friendsReceived;
if (mFriendsReceived != null && mFriendsReceived.friends != null) {
Set<String> myFriends=friendStore.getAllFriends();
Set<String> theirFriends=new HashSet(mFr... | Receive friends from the remote device. |
public Long toLong(){
return new Long(value);
}
| Converts the integer value to its <CODE>Long</CODE> form. |
public void paint(Graphics g){
Color bgColor=getBackground();
Dimension size=getSize();
g.setColor(getBackground());
g.fillRect(0,0,size.width,size.height);
if (getBasicSplitPaneUI().getOrientation() == JSplitPane.HORIZONTAL_SPLIT) {
int center=size.width / 2;
int x=center - hThumbWidth / 2;
int y... | Paints the divider. |
public synchronized void removeBatchAssociationRulesListener(BatchAssociationRulesListener al){
m_rulesListeners.remove(al);
}
| Remove a batch association rules listener |
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-03-25 15:47:15.474 -0400",hash_original_method="BB297CAFD750B39432B731757BB5A73D",hash_generated_method="9D20AEAC81BE3A83A5489A9767BF57A8") public void testPair(){
int iterations=BluetoothTestRunner.sPairIterations;
if (iterations == 0) {
... | Stress test for pairing and unpairing with a remote device. <p> In this test, the local device initiates pairing with a remote device, and then unpairs with the device after the pairing has successfully completed. |
private void addProcessorOptions(Map<PluginUtil.CheckerProp,Object> opts,IPreferenceStore store){
String skipUses=store.getString(CheckerPreferences.PREF_CHECKER_A_SKIP_CLASSES);
if (!skipUses.isEmpty()) {
opts.put(PluginUtil.CheckerProp.A_SKIP,skipUses);
}
String lintOpts=store.getString(CheckerPreferences... | Add options for type processing from the preferences |
private void readTopLevelBlock(BeautiOptions options,PartitionSubstitutionModel model,List<CharSet> charSets) throws ImportException, IOException {
boolean done=false;
while (!done) {
String command=readToken(";");
if (command.equalsIgnoreCase("ENDBLOCK") || command.equalsIgnoreCase("END")) {
done=tru... | This method reads a PAUP or MrBayes block |
public Attr removeAttributeNode(Attr oldAttr) throws DOMException {
error(XMLErrorResources.ER_FUNCTION_NOT_SUPPORTED);
return null;
}
| Unimplemented. See org.w3c.dom.Element |
private void addToken(int start,int end,int tokenType){
int so=start + offsetShift;
addToken(zzBuffer,start,end,tokenType,so);
}
| Adds the token specified to the current linked list of tokens. |
@SuppressWarnings("unchecked") <T extends MVMap<?,?>>T openMapVersion(long version,int mapId,MVMap<?,?> template){
MVMap<String,String> oldMeta=getMetaMap(version);
long rootPos=getRootPos(oldMeta,mapId);
MVMap<?,?> m=template.openReadOnly();
m.setRootPos(rootPos,version);
return (T)m;
}
| Open an old, stored version of a map. |
protected MouseMotionListener createMouseMotionListener(){
return getHandler();
}
| Creates the mouse motion listener which will be added to the combo box. <strong>Warning:</strong> When overriding this method, make sure to maintain the existing behavior. |
public Point(float x,float y){
mX=x;
mY=y;
}
| Instantiates a new point. |
public static GenericValue findWebSite(Delegator delegator,String webSiteId,boolean useCache){
GenericValue result=null;
try {
result=EntityQuery.use(delegator).from("WebSite").where("webSiteId",webSiteId).cache(useCache).queryOne();
}
catch ( GenericEntityException e) {
Debug.logError("Error looking up... | returns a WebSite-GenericValue |
public String undeploy(final String jarName) throws IOException {
JarClassLoader jarClassLoader=null;
verifyWritableDeployDirectory();
lock.lock();
try {
jarClassLoader=findJarClassLoader(jarName);
if (jarClassLoader == null) {
throw new IllegalArgumentException("JAR not deployed");
}
Clas... | Undeploy the given JAR file. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.