code
stringlengths
10
174k
nl
stringlengths
3
129k
public InputStream fetchMoverStats(final Argument argument,final Map<String,Object> keyMap,int index) throws VNXFilePluginException { _logger.info("VNX Mover Stats query"); InputStream iStream=null; List<QueryStats> statsList=new ArrayList<QueryStats>(); try { Set<String> movers=(Set<String>)keyMap.get(VNXF...
create Mover stats query and returns its stream after marshalling.
protected static void binarySearch(ModifiableDoubleDBIDList index,DoubleDBIDListIter iter,double val){ int left=0, right=index.size(); while (left < right) { final int mid=(left + right) >>> 1; final double curd=iter.seek(mid).doubleValue(); if (val < curd) { right=mid; } else if (val > c...
Seek an iterator to the desired position, using binary search.
public NokiaPictureMessage(OtaBitmap otaBitmap,String msg,boolean asUnicode){ this(otaBitmap.getBytes(),msg,asUnicode); }
Creates a Nokia Picture Message
public void deleteUser(String username) throws ServerRuntimeException { String _username=this.getApplicationSpecificUsername(username); this.authenticationInfo.setUsername(_username); SecurityHelper.deleteUserFromAuthenticationInfo(this.authenticationInfo); }
Delete a user from the password file
public JKeyIdentifier(String title,PublicKey publicKey){ this.title=title; this.publicKey=publicKey; initComponents(); }
Construct a JKeyIdentifier.
private Integer computeNumPaths(Map<URI,List<StoragePort>> initiatorPortMap,URI varray,StorageSystem array){ StoragePortsAssigner assigner=StoragePortsAssignerFactory.getAssigner(array.getSystemType()); int portsPerPath=assigner.getNumberOfPortsPerPath(); Map<URI,List<StoragePort>> arrayTargetMap=ConnectivityUtil...
Compute the number of paths to use on the back end array. This is done on a per Network basis and then summed together. Within each Network, we determine the number of ports available, and then convert to paths. Currently we don't allocate more paths than initiators.
protected ArrayList<ArrayList<DBIDs>> buildRanges(Relation<V> relation){ final int dim=RelationUtil.dimensionality(relation); final int size=relation.size(); final ArrayList<ArrayList<DBIDs>> ranges=new ArrayList<>(); ArrayModifiableDBIDs ids=DBIDUtil.newArray(relation.getDBIDs()); SortDBIDsBySingleDimension ...
Grid discretization of the data:<br /> Each attribute of data is divided into phi equi-depth ranges.<br /> Each range contains a fraction f=1/phi of the records.
public Period minusDays(long daysToSubtract){ return (daysToSubtract == Long.MIN_VALUE ? plusDays(Long.MAX_VALUE).plusDays(1) : plusDays(-daysToSubtract)); }
Returns a copy of this period with the specified days subtracted. <p> This subtracts the amount from the days unit in a copy of this period. The years and months units are unaffected. For example, "1 year, 6 months and 3 days" minus 2 days returns "1 year, 6 months and 1 day". <p> This instance is immutable and unaffec...
protected static BytesToNameCanonicalizer createRoot(int hashSeed){ return new BytesToNameCanonicalizer(DEFAULT_TABLE_SIZE,true,hashSeed); }
Factory method that should only be called from unit tests, where seed value should remain the same.
public synchronized int search(Object o){ final Object[] dumpArray=elementData; final int size=elementCount; if (o != null) { for (int i=size - 1; i >= 0; i--) { if (o.equals(dumpArray[i])) { return size - i; } } } else { for (int i=size - 1; i >= 0; i--) { if (dumpArray[i...
Returns the index of the first occurrence of the object, starting from the top of the stack.
@Override public void writeNdefCannotWriteTech(){ toast(getString(R.string.cannotWriteTechMessage)); }
Unable to write this type of tag.
private void releaseAllLocks(){ synchronized (read_notify) { read_notify.notifyAll(); } synchronized (write_notify) { write_notify.notifyAll(); } synchronized (state_notify) { state_notify.notifyAll(); } }
Releases all monitor objects so that the threads will check their "run flags"
private static boolean tooManyDigitsUsed(double source,int scale){ double decExp=Math.log10(source); return scale >= 308 || decExp + scale >= 14.5; }
Returns true if the rounding is considered to use too many digits of the double for a fast rounding
private CActionProxy(final Action action){ this.m_action=action; }
Creates a new action proxy object.
Item newLong(final long value){ key.set(value); Item result=get(key); if (result == null) { pool.putByte(LONG).putLong(value); result=new Item(index,key); index+=2; put(result); } return result; }
Adds a long to the constant pool of the class being build. Does nothing if the constant pool already contains a similar item.
public Builder addDataEvent(DataEvent dataEvent){ this.innerDataEventList.add(dataEvent); return this; }
Adding the data event to the transaction. There can be multiple bin log dml events per transation.
public int size(){ return processes.size(); }
Returns the number of known processes in the process list.
public void sortInstances(int columnIndex){ if ((columnIndex > 0) && (columnIndex < getColumnCount())) { addUndoPoint(); m_Data.stableSort(columnIndex - 1); notifyListener(new TableModelEvent(this)); } }
sorts the instances via the given attribute
@POST @Consumes({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON}) @Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON}) @Path("/{volume_id}/action") @CheckPermission(roles={Role.SYSTEM_MONITOR,Role.TENANT_ADMIN},acls={ACL.ANY}) public Object actionOnVolume(@PathParam("tenant_id") String openstackTenan...
Action could be either export or unexport volume NOTE: This is an asynchronous operation.
public CorePlusExtensionsParser(String defaultField,Analyzer analyzer){ this(defaultField,analyzer,null); }
Constructs an XML parser that creates a QueryParser for each UserQuery request.
private void handleGetRequest(HttpServletRequest req,HttpServletResponse resp,String queryUri,String authSubToken) throws ServletException, IOException { HttpURLConnection connection=null; try { connection=openConnectionFollowRedirects(queryUri,authSubToken); } catch ( GeneralSecurityException e) { resp...
Handles a GET request by issuing a GET to the requested feed with the AuthSub token attached in a header. The output from the server will be proxied back to the requestor. POST/PUT/DELETE can be handled in a similar manner except that the XML sent as part of the request should be sent to the server.
public ArrayList<BloomFilter<E>> searchBloomFilters(E o,SearchStatistics stat){ return findMatches(this.root,o,stat); }
Search for an object in the BFI and return the matching Bloom filters
public static <A>MaybeTSeq<A> of(final AnyMSeq<Maybe<A>> monads){ return new MaybeTSeq<>(monads); }
Construct an MaybeT from an AnyM that wraps a monad containing Maybes
void updateGrid(){ if (!gridValid) { relativeCells=false; multiRowCells=false; captionIndex=-1; rows.removeAllElements(); int n=getViewCount(); for (int i=0; i < n; i++) { View v=getView(i); if (v instanceof RowView) { rows.addElement((RowView)v); RowView rv=(RowVie...
Fill in the grid locations that are placeholders for multi-column, multi-row, and missing grid locations.
public void addIgnored(Class<?> c,String displayName){ HashSet<String> list; if (m_Ignored.contains(c)) { list=m_Ignored.get(c); } else { list=new HashSet<String>(); m_Ignored.put(c,list); } list.add(displayName); }
adds the given class with the display name of a property to the ignore list. I.e. this property is only ignored for this class.
public SpriteSheetDrawer rotateRegistration(float regX,float regY){ setRotateRegistration(regX,regY); return this; }
The left offset and y offset for this display object's registration point. For example, to make a 100x100px Bitmap rotate around its center, you would set regX and regY to 50.
private static String replaceOptionalVariable(String s,Movie movie,boolean forFilename){ Pattern regex=Pattern.compile("\\$.{1}"); Matcher mat=regex.matcher(s); if (mat.find()) { String rep=createDestination(mat.group(),movie,forFilename); if (rep.isEmpty()) { return ""; } else { return s...
replaces an optional variable, eg "{ Year $Y }"<br> if we have a year, "Year 2013" will be returned<br> if $Y replacement was empty, the complete optional tag will be empty.
public NTSidPrimaryGroupPrincipal(String name){ super(name); }
Create an <code>NTSidPrimaryGroupPrincipal</code> with a Windows NT group SID. <p>
public Builder withInitialResAllocs(Map<String,ResAllocs> resAllocs){ this.resAllocs=resAllocs; return this; }
Call this method to set the initial limitations on how many resources will be available to each task group.
public void updateParentId(int parentId,int archiveId,String entidad) throws Exception { boolean commit=false; boolean inTrans=false; if (_logger.isDebugEnabled()) _logger.debug("updateParentId"); DbConnection dbConn=new DbConnection(); try { dbConn.open(DBSessionManager.getSession(entidad)); if (!i...
Actualiza el padre del un archivador en concreto no es necesario que se carge el archivador previamente.
public SearchRequestBuilder clearRescorers(){ sourceBuilder().clearRescorers(); return this; }
Clears all rescorers from the builder.
public void paintValue(Graphics gfx,Rectangle box){ throw new java.lang.UnsupportedOperationException("Method paintValue() not yet implemented."); }
Paint a representation of the value into a given area of screen real estate. Note that the propertyEditor is responsible for doing its own clipping so that it fits into the given rectangle. <p> If the PropertyEditor doesn't honor paint requests (see isPaintable) this method should be a silent noop. <p> The given Graph...
public static void earlyProcessCommandLineArguments(){ for (int i=0; i < app_name_pos; i++) { String arg=args[i]; PrefixType type=arg_types[i]; if (type == PrefixType.INVALID_ARG) continue; Prefix p=findPrefix(type); if (DEBUG) VM.sysWriteln(" CommandLineArgs.earlyProcessCLA(" + p + arg+ "...
Stage1 processing of virtual machine directives appearing in argument list. We try to process as many classes of command line arguments as possible here. Only those command line arguments that require a more or less fully booted VM to handle are delayed until lateProcessCommandLineArguments.
@DSComment("Private Method") @DSBan(DSCat.PRIVATE_METHOD) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:33:13.105 -0500",hash_original_method="91EB591AB70C8A379D1426222FA143D7",hash_generated_method="12E40A961D71F26D2516FD836FFBE829") private SslErrorHandlerImpl(SslErrorHandler or...
Create a new error handler that will be passed to the client.
public static FunctionblockFactory init(){ try { FunctionblockFactory theFunctionblockFactory=(FunctionblockFactory)EPackage.Registry.INSTANCE.getEFactory(FunctionblockPackage.eNS_URI); if (theFunctionblockFactory != null) { return theFunctionblockFactory; } } catch ( Exception exception) { ...
Creates the default factory implementation. <!-- begin-user-doc --> <!-- end-user-doc -->
public static CXFormWithAlpha cxFormWithAlpha(double alphaMultiplier,double redMultiplier,double greenMultiplier,double blueMultiplier,double alphaOffset,double redOffset,double greenOffset,double blueOffset){ CXFormWithAlpha c=new CXFormWithAlpha(); c.alphaMultTerm=fixed8(alphaMultiplier); c.redMultTerm=fixed8(r...
Creates a SWF CXFormWithAlpha type for the given double precision values for ARGB multipliers and offsets. The multiplier values are converted into 8.8 fixed integers as required by the SWF format. The offset values are converted into integers in the range 0 to 255.
public Polyline2D(){ points=new ArrayList<Point2D>(); }
Creates a new empty polygon
protected POInfo initPO(Properties ctx){ POInfo poi=POInfo.getPOInfo(ctx,Table_ID,get_TrxName()); return poi; }
Load Meta Data
public void bind(int index,boolean value){ mPreparedStatement.bindLong(index,value ? 1 : 0); }
Bind the value to an index. A prepareForInsert() or prepareForReplace() without a matching execute() must have already have been called.
public ThrottledRunLater(Runnable runnable){ this.runnable=runnable; }
Created this way, the no-args runLater will execute the given runnable.
public NodeSet(Node node){ this(32); addNode(node); }
Create a NodeSet which contains the given Node.
@Override public void connectionNotification(String eventName,Object source){ if (connectionAllowed(eventName)) { m_listeneeTypes.add(eventName); m_listenees.put(source,source); } }
Notify this object that it has been registered as a listener with a source for recieving events described by the named event This object is responsible for recording this fact.
public Area createTransformedArea(AffineTransform t){ Area a=new Area(this); a.transform(t); return a; }
Creates a new <code>Area</code> object that contains the same geometry as this <code>Area</code> transformed by the specified <code>AffineTransform</code>. This <code>Area</code> object is unchanged.
private byte convertMapElement(byte[] curBBMap,int offset,int len,byte reftype){ byte bitmap=0; byte mask=JSR_MASK; for (int i=offset; i < offset + len; i++) { if (curBBMap[i] == reftype) { bitmap=(byte)(bitmap | mask); } mask=(byte)((0x000000ff & mask) >>> 1); } return bitmap; }
Convert a portion of an array word of Bytes into a bitmap of references.
private static void removeDependencySubsets(String swcLocation,Map<String,Set<String>> dependencyMap,SwcDependencyInfoImpl depInfo){ Set<String> removeSet=new HashSet<String>(); SwcExternalScriptInfo externalInfo=depInfo.getSwcExternalScriptInfo(swcLocation); Map<String,Set<String>> externalsBySwc=new HashMap<Str...
Look at the dependency information and remove swc dependencies that are subsets of other swc dependencies.
@Override public void write(byte[] out){ log.trace("RX: " + ProtUtils.hexDumpBuffer(new String(out).toCharArray())); try { mSerialIoManager.writeAsync(out); } catch ( Exception ex) { log.error("TX error",ex); connectionLost(); } }
TelegramWriter interface methods
private boolean rebuildItems(){ boolean updated=false; ItemsRange range=getItemsRange(); if (itemsLayout != null) { int first=recycle.recycleItems(itemsLayout,firstItem,range); updated=firstItem != first; firstItem=first; } else { createItemsLayout(); updated=true; } if (!updated) { ...
Rebuilds wheel items if necessary. Caches all unused items.
private TwitterHelper(){ throw new AssertionError(TwitterHelper.class.getName() + " is non-instantiable"); }
This class has only static methods and should not be instantiated.
@Override public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception { endpoints.authenticationManager(authenticationManager).tokenStore(tokenStore()).accessTokenConverter(tokenEnhancer()); }
Defines the authorization and token endpoints and the token services
public BasicDataFileStore(File directoryPath){ if (directoryPath == null) { String message=Logging.getMessage("nullValue.PathIsNull"); Logging.logger().severe(message); throw new IllegalArgumentException(message); } StringBuilder sb=new StringBuilder("<?xml version=\"1.0\"?>"); sb.append("<dataFileS...
Create an instance to manage a specified directory.
public void yypushback(int number){ if (number > yylength()) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos-=number; }
Pushes the specified amount of characters back into the input stream. They will be read again by then next call of the scanning method
public ArrayConverter(Class defaultType,Converter elementConverter){ super(); if (defaultType == null) { throw new IllegalArgumentException("Default type is missing"); } if (!defaultType.isArray()) { throw new IllegalArgumentException("Default type must be an array."); } if (elementConverter == null...
Construct an <b>array</b> <code>Converter</code> with the specified <b>component</b> <code>Converter</code> that throws a <code>ConversionException</code> if an error occurs.
@Override public void run(){ String inputFile=args[0]; if (inputFile.toLowerCase().contains(".dep")) { calculateRaster(); } else if (inputFile.toLowerCase().contains(".shp")) { calculateVector(); } else { showFeedback("There was a problem reading the input file."); } }
Used to execute this plugin tool.
private Bitmap handleBlendingOperation(int offsetX,int offsetY,byte blendOp,Bitmap frameBitmap,Bitmap baseBitmap){ if (enableVerboseLog) FLog.v("Create a new bitmap"); Bitmap redrawnBitmap=Bitmap.createBitmap(baseWidth,baseHeight,Bitmap.Config.ARGB_8888); Canvas canvas=new Canvas(redrawnBitmap); if (baseBitma...
Process Blending operation, and handle a final draw for this frame
public Boolean isVPMCSupported(){ return vpmcSupported; }
Gets the value of the vpmcSupported property.
private void initialize(){ Context context=getContext(); if (!sInitialized) { sInitialized=true; Resources resources=context.getApplicationContext().getResources(); sCropSize=resources.getDimensionPixelSize(R.dimen.photo_crop_width); sCropDimPaint=new Paint(); sCropDimPaint.setAntiAlias(true); ...
Initializes the header and any static values
protected EntryPointSpecImpl(){ super(); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public SmaliClassDetailLoader(ZipFile apkFile,boolean translateInstructions){ ArrayList<ZipEntry> dexEntries=new ArrayList<ZipEntry>(); dexEntries.add(apkFile.getEntry("classes.dex")); for (int i=2; i < 99; ++i) { final ZipEntry e=apkFile.getEntry("classes" + i + ".dex"); if (e != null) { dexEntries...
Create a loader that loads from an APK file (could contain multiple DEX files), optionally loading instructions
public final AC grow(float w){ return grow(w,curIx); }
Specifies the current row/column's grow weight within columns/rows with the same <code>grow priority</code>. <p> For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){ switch (featureID) { case ImPackage.PARAMETERIZED_TYPE_REF_IM__REWIRED_TARGET: if (resolve) return getRewiredTarget(); return basicGetRewiredTarget(); } return super.eGet(featureID,resolve,coreType); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public T accesskey(String value){ return attr("accesskey",value); }
Sets the <code>accesskey</code> attribute on the last started tag that has not been closed.
private void addToEvents(){ List<PricedEventRow> events=priceModelBean.getPricedEvents(); int addToIndex=0; if (index >= 0 && index < events.size()) { PricedEventRow row=events.get(index); VOPricedEvent pricedEvent=row.getPricedEvent(); addToIndex=1; if (row.getSteppedPrice() == null) { VOSt...
Add a new stepped price to the priced event table.
@Override protected void drawYLabels(Canvas c,float fixedPosition,float[] positions,float offset){ mAxisLabelPaint.setTypeface(mYAxis.getTypeface()); mAxisLabelPaint.setTextSize(mYAxis.getTextSize()); mAxisLabelPaint.setColor(mYAxis.getTextColor()); for (int i=0; i < mYAxis.mEntryCount; i++) { String text=m...
draws the y-labels on the specified x-position
protected Size2D arrangeRN(BlockContainer container,Graphics2D g2,RectangleConstraint constraint){ Size2D s1=arrangeNN(container,g2); if (constraint.getWidthRange().contains(s1.width)) { return s1; } else { RectangleConstraint c=constraint.toFixedWidth(constraint.getWidthRange().getUpperBound()); ret...
Arranges the block with a range constraint on the width, and no constraint on the height.
@CanIgnoreReturnValue @Override public int add(E element,int occurrences){ checkNotNull(element); if (occurrences == 0) { return count(element); } CollectPreconditions.checkPositive(occurrences,"occurences"); while (true) { AtomicInteger existingCounter=Maps.safeGet(countMap,element); if (existing...
Adds a number of occurrences of the specified element to this multiset.
public void accessTime(final long accessTime){ this.accessTime=accessTime; }
Set access time.
public TreeMap<Integer,Collection<Revisions>> listIDs(final String hostport,final int depth){ TreeMap<Integer,Collection<Revisions>> result=new TreeMap<>(); TreeMap<Integer,TreeSet<String>> list=directory.get(hostport); if (list != null) { for ( Map.Entry<Integer,TreeSet<String>> entry : list.entrySet()) {...
list the snapshots for a given host name
public static Map<String,Object> createPartyGroup(DispatchContext ctx,Map<String,? extends Object> context){ Map<String,Object> result=FastMap.newInstance(); Delegator delegator=ctx.getDelegator(); GenericValue userLogin=(GenericValue)context.get("userLogin"); Timestamp now=UtilDateTime.nowTimestamp(); String...
Creates a PartyGroup. If no partyId is specified a numeric partyId is retrieved from the Party sequence.
public String sizeTipText(){ return "Size of the compressed matrix. Should be \n" + "less than the number of labels and more than 1."; }
The tooltip for the size.
public static Collection<ClusterNode> aliveRemoteServerNodesWithCaches(final GridCacheSharedContext ctx,AffinityTopologyVersion topOrder){ return ctx.discovery().aliveRemoteServerNodesWithCaches(topOrder); }
Gets alive remote nodes with at least one cache configured.
public void finishTransitionImmediately(){ mTransitionState=TRANSITION_NONE; for (int i=0; i < mLayers.length; i++) { mAlphas[i]=mIsLayerOn[i] ? 255 : 0; } invalidateSelf(); }
Finishes transition immediately.
private static boolean isConstIntZeroOrKnownNull(RegisterSpec spec){ TypeBearer tb=spec.getTypeBearer(); if (tb instanceof CstLiteralBits) { CstLiteralBits clb=(CstLiteralBits)tb; return (clb.getLongBits() == 0); } return false; }
Returns true if the register contains an integer 0 or a known-null object reference
private boolean isUnderlyingTypeAValue(AnnotatedTypeMirror type){ return coveredClassStrings.contains(type.getUnderlyingType().toString()); }
Overloaded method for convenience of dealing with AnnotatedTypeMirrors. See isClassCovered(TypeMirror type) below
protected Path createBowtie(DrawContext dc){ LatLon center=this.circle.getCenter(); double dist=this.circle.getRadius() * 0.75; Angle distance=Angle.fromRadians(dist / dc.getGlobe().getRadius()); LatLon a=LatLon.greatCircleEndPosition(center,Angle.fromDegrees(-65.0),distance); LatLon b=LatLon.greatCircleEndPo...
Create a path to draw the bowtie graphic in the middle of the circle.
public void shutdown(){ ExecutorService executor=Executors.newScheduledThreadPool(0); executor.submit(createShutdown(0)); }
Shutdown all attached resources without waiting on the thread
public Deadtime(long deadtimePeriod,TimeUnit unit){ setPeriod(deadtimePeriod,unit); }
Create a new Deadtime Predicate <p> The first received tuple is always "accepted".
public void paintSliderThumbBorder(SynthContext context,Graphics g,int x,int y,int w,int h,int orientation){ paintBorder(context,g,x,y,w,h,orientation); }
Paints the border of the thumb of a slider.
private static Geometry createPolygon(Geometry[] parts){ LinearRing[] rings=new LinearRing[parts.length]; for (int i=0; i < parts.length; i++) { rings[i]=(LinearRing)parts[i]; } return createPolygon(rings); }
Wrapper function which creates a new array of LinearRings and calls the other function.
public long precision(){ return precision; }
Get the precision of this expression.
public MWFActivity(MWFProcess process,int next_ID,PO lastPO){ this(process,next_ID); if (lastPO != null) { if (lastPO.get_Table_ID() == getAD_Table_ID() && lastPO.get_ID() == getRecord_ID()) { m_po=lastPO; } } }
Parent Contructor
static String formatFlags(byte type,byte flags){ if (flags == 0) return ""; switch (type) { case TYPE_SETTINGS: case TYPE_PING: return flags == FLAG_ACK ? "ACK" : BINARY[flags]; case TYPE_PRIORITY: case TYPE_RST_STREAM: case TYPE_GOAWAY: case TYPE_WINDOW_UPDATE: return BINARY[flags]; } String result=flags < F...
Looks up valid string representing flags from the table. Invalid combinations are represented in binary.
public static ArrayList<Object> singletons(Instances instancesNoClass,Instances classes) throws Exception { ArrayList<Object> setOfItemSets=new ArrayList<Object>(); LabeledItemSet current; for (int i=0; i < instancesNoClass.numAttributes(); i++) { if (instancesNoClass.attribute(i).isNumeric()) { throw n...
Converts the header info of the given set of instances into a set of item sets (singletons). The ordering of values in the header file determines the lexicographic order. Each item set knows its class label.
@Override public CompilerPhase newExecution(IR ir){ return this; }
Return this instance of this phase. This phase contains no per-compilation instance fields.
public boolean isCurrent(String first,String second){ int start=pos; if (!forwardIfCurrent(first)) return false; removeSpace(); boolean rtn=isCurrent(second); pos=start; return rtn; }
Gibt zurueck ob first den folgenden Zeichen entspricht, gefolgt von Leerzeichen und second.
public boolean isVoid(){ return effects.isEmpty() || (type == RuleType.PROB && effects.size() == 1 && effects.containsKey(new Effect())); }
Returns true if the case is void (empty or with a single void effect)
public double sdTerm(int numObservations,int dimensions){ double constantTerm=Math.pow(Math.PI / 4.0,(double)dimensions / 2.0); double result=0.0; if (dimensions % 2 == 0) { for (int d=dimensions / 2; d > 1; d--) { result-=Math.log(d); } } else { constantTerm*=Math.pow(2.0,(double)(dimensions...
Returns the value of the Sd term Public for debugging purposes
public S3ManifestComparator(String key,S3Reader connection,S3ObjectWriter writer,S3Deleter deleter,S3StringWriter stringWriter){ this.key=key; this.versionedKey=newKey(1L).toJson(); this.reader=connection; this.writer=writer; this.deleter=deleter; this.stringWriter=stringWriter; backoff=500l; }
Create a ManifestComparator with the supplied distributed map client Data stored by ManifestComparator will be key : versioned key versioned key : actual data
public List<ValueSource> parseValueSourceList() throws SyntaxError { List<ValueSource> sources=new ArrayList<>(3); while (hasMoreArguments()) { sources.add(parseValueSource(true)); } return sources; }
Parse a list of ValueSource. Must be the final set of arguments to a ValueSource.
public Matrix3f rotateYXZ(float angleY,float angleX,float angleZ){ return rotateYXZ(angleY,angleX,angleZ,this); }
Apply rotation of <code>angleY</code> radians about the Y axis, followed by a rotation of <code>angleX</code> radians about the X axis and followed by a rotation of <code>angleZ</code> radians about the Z axis. <p> When used with a right-handed coordinate system, the produced rotation will rotate a vector counter-cloc...
public static EpisodeMatchingResult detectEpisodeFromFilenameAlternative(String name,String showname){ LOGGER.debug("parsing '" + name + "'"); EpisodeMatchingResult result=new EpisodeMatchingResult(); Pattern regex; Matcher m; String filename=FilenameUtils.getName(name); String extension=FilenameUtils.getEx...
Does all the season/episode detection
@Override public boolean isSquad(){ return false; }
Because they deploy in their vehicles rather than as infantry, crews (including MechWarriors) never count as squads.
@Override protected void onPause(){ super.onPause(); Log.d(TAG,"onPause() - another activity is taking focus (this activity is about to be \"paused\")"); }
Hook method called when an Activity loses focus but is still visible in background. May be followed by onStop() or onResume(). Delegate more CPU intensive operation to onStop for seamless transition to next activity. Save persistent state (onSaveInstanceState()) in case app is killed. Often used to release exclusive re...
public List<KrigingPoint> calcInterpolationPoints(){ double north, south, east, west; int nrows, ncols; double northing, easting; west=bMinX - 0.5 * resolution; north=bMaxY + 0.5 * resolution; nrows=(int)(Math.ceil((north - bMinY) / resolution)); ncols=(int)(Math.ceil((bMaxX - west) / resolution)); sout...
It calculates the location of each grid cell. the resolution should be set before calling this method
@Override public void run(){ amIActive=true; String inputFile; double x, y; int progress; int oldProgress; int i, n; double[][] vertices=null; int numPolys=0; ShapeType shapeType, outputShapeType=ShapeType.POLYLINE; int[] parts={0}; double psi=0; if (args.length <= 0) { showFeedback("Plugin ...
Used to execute this plugin tool.
public boolean isChargeFee(){ Object oo=get_Value(COLUMNNAME_ChargeFee); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; }
Get Charge fee.
public ModifyAtkSpell(String name,Nature nature,int amount,int atk,int cooldown,int def,double lifesteal,int mana,int minimumlevel,int range,int rate,int regen,double modifier){ super(name,nature,amount,atk,cooldown,def,lifesteal,mana,minimumlevel,range,rate,regen,modifier); }
Create a new ModifyAtkSpell
public OpenCouplingManagerAction(final SimbrainDesktop desktop){ super("Open Coupling Manager..."); this.desktop=desktop; putValue(SMALL_ICON,ResourceManager.getImageIcon("Coupling.png")); putValue(SHORT_DESCRIPTION,"Open coupling manager"); }
Create an open data world with the specified workspace.
private static String formatSQL(String sql){ if (!sql.endsWith(";")) sql+=";"; return sql; }
Formats the given SQL statement into an ANSI compatible form.
void deleteStreams(Transaction t,final Set<Long> streamIds){ if (streamIds.isEmpty()) { return; } Set<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow> smRows=Sets.newHashSet(); Multimap<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow,StreamTestStreamHashAidxTable.StreamTestStreamHashAidx...
This should only be used from the cleanup tasks.
public static synchronized void closeSessionFactories(){ log.trace("closeSessionFactories()"); Collection<SessionFactoryCtx> sessionFactories=new ArrayList<>(sessionFactoryCache.values()); for ( SessionFactoryCtx ctx : sessionFactories) { closeSessionFactory(ctx); } sessionFactoryCache.clear(); }
Closes all session factories in the cache. Should be called when the main program exits.