code
stringlengths
10
174k
nl
stringlengths
3
129k
@DSComment("constructor") @DSSafe(DSCat.SAFE_OTHERS) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:28:37.738 -0500",hash_original_method="2D581361992135FCD53B75EF54E93588",hash_generated_method="B1E537B79598D41770319712D233687F") public MatrixCursor(String[] columnNames,int initia...
Constructs a new cursor with the given initial capacity.
private ComparableTimSort(Object[] a){ this.a=a; int len=a.length; @SuppressWarnings({"unchecked","UnnecessaryLocalVariable"}) Object[] newArray=new Object[len < 2 * INITIAL_TMP_STORAGE_LENGTH ? len >>> 1 : INITIAL_TMP_STORAGE_LENGTH]; tmp=newArray; int stackLen=(len < 120 ? 5 : len < 1542 ? 10 : len < 119151...
Creates a TimSort instance to maintain the state of an ongoing sort.
public int phenotype(int position,int[] genome){ if (position >= numNodes * (maxArity + 1)) return GENE_OUTPUT; return position % (maxArity + 1) == 0 ? GENE_FUNCTION : GENE_ARGUMENT; }
From the given genome position, determine the phenotype (int version)
public static void error(String errMsg){ IWorkbenchPage page=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); IWorkbenchPart part=page.getActivePart(); IActionBars bars=null; if (part instanceof IViewPart) { bars=((IViewPart)part).getViewSite().getActionBars(); } else if (part inst...
Displays the given error message in the status line.
@Override public EdgeDecorator<E> createEdge(E delegate){ return new EdgeDecorator<E>(delegate); }
Creates and returns an edge decorator that decorates <tt>delegate</tt>.
public DefaultInputHandler(){ bindings=currentBindings=new Hashtable(); }
Creates a new input handler with no key bindings defined.
public void onBlueButtonClick(View v){ if (isSubscribed()) { final SharedPreferences settings=getSharedPreferencesForCurrentUser(); boolean entitled=settings.getBoolean(BLUE_BUTTON,false); if (!entitled) { String requestId=PurchasingManager.initiatePurchaseRequest(getResources().getString(R.string.e...
Called when the customer presses the blue swatch If the customer has not purchased it, then the app will initiate a purchase. If the customer has purchased the color, the button changes to that color.
protected POInfo initPO(Properties ctx){ POInfo poi=POInfo.getPOInfo(ctx,Table_ID,get_TrxName()); return poi; }
Load Meta Data
@SuppressWarnings("fallthrough") private int findHeaderEnd(byte[] bs){ boolean newline=true; int len=bs.length; for (int i=0; i < len; i++) { switch (bs[i]) { case '\r': if (i < len - 1 && bs[i + 1] == '\n') i++; case '\n': if (newline) return i + 1; newline=true; break; default : newline=fa...
Find the length of header inside bs. The header is a multiple (>=0) lines of attributes plus an empty line. The empty line is included in the header.
public boolean isQueueInitialized(){ return this.initialized.get(); }
returns true if the queue has been fully initialized
protected double BFfactor(int c,int r){ double sum=0; double multiplier=1.0; for (int i=0; i < r; i++) { sum+=multiplier * Math.exp((c * Math.log(r - i) - (SpecialFunctions.lnFactorial(i) + SpecialFunctions.lnFactorial(r - i)))); multiplier*=-1.0; } return sum; }
Compute factor for Bonferroni correction. This is based on Equation 3.2 in Kass (1980).
public SQLFeatureNotSupportedException(Throwable cause){ super(cause); }
Creates an SQLFeatureNotSupportedException object. The Reason string is set to the null if cause == null or cause.toString() if cause!=null,and the cause Throwable object is set to the given cause Throwable object.
@Override public void computeScroll(){ if (!isInEditMode() && dragHelper.continueSettling(true)) { ViewCompat.postInvalidateOnAnimation(this); } }
This method is needed to calculate the auto scroll when the user slide the view to the max limit, this starts a animation to finish the view.
@Override protected EClass eStaticClass(){ return N4JSPackage.Literals.ADDITIVE_EXPRESSION; }
<!-- begin-user-doc --> <!-- end-user-doc -->
public void testFloatsCompare(){ BytesRef left=new BytesRef(new byte[Float.BYTES]); BytesRef right=new BytesRef(new byte[Float.BYTES]); for (int i=0; i < 10000; i++) { float leftValue=Float.intBitsToFloat(random().nextInt()); NumericUtils.intToSortableBytes(NumericUtils.floatToSortableInt(leftValue),left....
check sort order of random floats consistent with Float.compare
public static <E extends Comparable<E>>void printList(DoubleLinkedNode<E> node){ DoubleLinkedNode<E> curr=node; out.print("["); if (curr == null) { out.println("]"); return; } while (curr.next != null) { out.print(curr.item.toString() + ","); curr=curr.next; } out.println(curr.item.toStrin...
Prints the list.
public void runTest() throws Throwable { Document doc; Document newDoc; DocumentType docType=null; DOMImplementation domImpl; Attr attribute; String namespaceURI="http://www.w3.org/XML/1998 /namespace"; String qualifiedName="xml:root"; doc=(Document)load("staffNS",false); domImpl=doc.getImplementation...
Runs the test case.
@Override public void eSet(int featureID,Object newValue){ switch (featureID) { case ExpressionsPackage.HEX_LITERAL__VALUE: setValue((Integer)newValue); return; } super.eSet(featureID,newValue); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public PaymentInfoMagcard(String sHolderName,String sCardNumber,String sExpirationDate,String sTransactionID,double dTotal){ this(sHolderName,sCardNumber,sExpirationDate,null,null,null,sTransactionID,dTotal); }
Creates a new instance of PaymentInfoMagcard
public static <S>Builder<S> builder(S state){ return new Builder<>(state); }
EventStream builder
public String compressOutputTipText(){ return "Optional compression of the output data"; }
Returns the tip text for this property
public ActionForward executeAction(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response){ StringBuffer sbUrl=new StringBuffer(); try { sbUrl.append(WebAuthenticationHelper.getWebAuthDesconectURL(request)); request.getSession().invalidate(); response.sendRedirect(...
Method execute
public String toString(){ StringBuilder sb=new StringBuilder(); sb.append(String.format("numerator = %d, denominator = %d%n",this.numerator,this.denominator)); return sb.toString(); }
A method that returns a string representation of a Rational object
public static void copyIntoColumn(int[][] destination,int column,int[] source) throws Exception { if (source.length != destination.length) { throw new Exception("Destination column is not of the same length as the source (" + destination.length + " vs "+ source.length+ ")"); } for (int r=0; r < destination.le...
Copies the given source array into the required column number of the destination
public void testBadStreamSize(){ SplittableRandom r=new SplittableRandom(); executeAndCatchIAE(null); executeAndCatchIAE(null); executeAndCatchIAE(null); executeAndCatchIAE(null); executeAndCatchIAE(null); executeAndCatchIAE(null); }
Invoking sized ints, long, doubles, with negative sizes throws IllegalArgumentException
public JToggleGroup(int type,Object[] data){ this(type,new DefaultListModel(),new DefaultListSelectionModel()); DefaultListModel model=(DefaultListModel)m_data; for (int i=0; i < data.length; ++i) { model.addElement(data[i]); } initUI(); }
Create a new JToggleGroup.
public long add(long instant,long value){ throw unsupported(); }
Always throws UnsupportedOperationException
private void doGenKeyPair(String alias,String dname,String keyAlgName,int keysize,String sigAlgName) throws Exception { if (keysize == -1) { if ("EC".equalsIgnoreCase(keyAlgName)) { keysize=256; } else if ("RSA".equalsIgnoreCase(keyAlgName)) { keysize=2048; } else { keysize=1024; ...
Creates a new key pair and self-signed certificate.
public boolean isGL(){ return false; }
Return true if this renderer does rendering through OpenGL. Defaults to false.
public final Hashtable initializeConstants(){ Vect consts=this.config.getConstants(); if (consts == null) { return new Hashtable(); } return this.makeConstantTable(consts); }
Initialize the spec constants using the config file.
public ToStringBuilder append(String fieldName,float value){ style.append(buffer,fieldName,value); return this; }
<p>Append to the <code>toString</code> an <code>float</code> value.</p>
public boolean hasAdminRole(){ return getUserRoles().contains(UserRoleType.ORGANIZATION_ADMIN); }
Checks whether the user is an administrator of his organization.
public CGotoOffsetAction(final CDebugPerspectiveModel debugPerspectiveModel,final IAddress offset){ super(String.format("Goto offset %s",offset.toHexString())); Preconditions.checkNotNull(debugPerspectiveModel,"IE01106: Debug perspective model argument can not be null"); m_debugPerspectiveModel=debugPerspectiveMo...
Creates a new Goto Offset action object.
public void shutdown(int statusCode) throws IOException { synchronized (spdyWriter) { int lastGoodStreamId; synchronized (this) { if (shutdown) { return; } shutdown=true; lastGoodStreamId=this.lastGoodStreamId; } spdyWriter.goAway(0,lastGoodStreamId,statusCode); } }
Degrades this connection such that new streams can neither be created locally, nor accepted from the remote peer. Existing streams are not impacted. This is intended to permit an endpoint to gracefully stop accepting new requests without harming previously established streams.
public boolean hasThumbnail(){ return hasExtension(MediaThumbnail.class); }
Returns whether it has the media thumbnail.
public static RefactoringStatus checkMethodInHierarchy(ITypeBinding type,String methodName,ITypeBinding returnType,ITypeBinding[] parameters){ RefactoringStatus result=new RefactoringStatus(); IMethodBinding method=Bindings.findMethodInHierarchy(type,methodName,parameters); if (method != null) { boolean retur...
Checks if the new method somehow conflicts with an already existing method in the hierarchy. The following checks are done: <ul> <li> if the new method overrides a method defined in the given type or in one of its super classes. </li> </ul>
default <U,R>Zippable<R> zip(final Stream<? extends U> other,final BiFunction<? super T,? super U,? extends R> zipper){ return zip((Iterable<? extends U>)ReactiveSeq.fromStream(other),zipper); }
Zip (combine) this Zippable with the supplied Stream, using the supplied combining function
public void alignHorizontal(){ double min=Double.MAX_VALUE; for ( Neuron neuron : getSelectedModelNeurons()) { if (neuron.getY() < min) { min=neuron.getY(); } } for ( Neuron neuron : getSelectedModelNeurons()) { neuron.setY(min); } repaint(); }
Aligns neurons horizontally.
public static int showDialog(String message,@NotNull @Nls(capitalization=Nls.Capitalization.Title) String title,@NotNull String[] options,int defaultOptionIndex,int focusedOptionIndex,@Nullable Icon icon,@Nullable DialogWrapper.DoNotAskOption doNotAskOption){ if (isApplicationInUnitTestOrHeadless()) { return ourT...
Use this method only if you do not know project or component
public ActivateSessionResponse activate() throws ServiceResultException { UserIdentityToken token=EndpointUtil.createAnonymousIdentityToken(session.getEndpoint()); return activate(token,null); }
Activate session using anonymous access
private void cleanupDiscovery(StorageSystem system){ try { system.setReachableStatus(false); _dbClient.persistObject(system); } catch ( DatabaseException e) { _logger.error("discoverStorage failed. Failed to update discovery status to ERROR.",e); } }
If discovery fails, then mark the system as unreachable. The discovery framework will remove the storage system from the database.
public long readLong(){ return scanner.nextLong(); }
Read and return the next long.
public CoreContainer(NodeConfig config){ this(config,new Properties()); }
Create a new CoreContainer using the given SolrResourceLoader, configuration and CoresLocator. The container's cores are not loaded.
public void close(){ if (_consumer != null) { _consumer.shutdown(); } }
close the Config
void down(int nFrames) throws IncompatibleThreadStateException { setCurrentFrameIndex(currentFrameIndex - nFrames); }
Change the current stackframe to be one or more frames lower (as in, toward the current program counter).
public JsonArrayRequest(String url,Listener<JSONArray> listener,ErrorListener errorListener){ super(Method.GET,url,null,listener,errorListener); }
Creates a new request.
protected void addPolyForIntersection(OMPoly poly1,OMPoly poly2,double dist,OMAreaList ret){ double[] p1Coords=poly1.getLatLonArray(); double[] p2Coords=poly2.getLatLonArray(); List<Geo> results=new LinkedList<Geo>(); Geo a1, a2, b1, b2; Geo intersect=null; int index1=0, index2=0; for (; index2 + 3 < p2Co...
Called to handle BENDS_LEFT, concave corners. RuntimeException is thrown when one of the legs is much shorter than the other and the mid-point is still in the buffer of one of the legs. In that special case, the intersection point is not found.
public KMLVertexDescriptor(Graph graph){ kDistr=Degree.getInstance().values(graph.getVertices()); }
Creates a new vertex descriptor.
public boolean isSetIntegerlist(){ return this.integerlist != null; }
Returns true if field integerlist is set (has been assigned a value) and false otherwise
public WrappedRuntimeException(Exception e){ super(e.getMessage()); m_exception=e; }
Construct a WrappedRuntimeException from a checked exception.
protected void removeAllSpecifiers(){ m_Specifiers.clear(); }
Removes all specifiers.
public QueryBuilder(){ }
Constructs a new empty QueryBuilder.
public b removeElement(String hashcode){ removeElementFromRegistry(hashcode); return (this); }
Removes an Element from the element.
public static boolean contentEquals(Reader input1,Reader input2) throws IOException { input1=toBufferedReader(input1); input2=toBufferedReader(input2); int ch=input1.read(); while (EOF != ch) { int ch2=input2.read(); if (ch != ch2) { return false; } ch=input1.read(); } int ch2=input2.r...
Compare the contents of two Readers to determine if they are equal or not. <p> This method buffers the input internally using <code>BufferedReader</code> if they are not already buffered.
public static JCStatement generateNullCheck(JavacTreeMaker maker,JavacNode variable,JavacNode source){ NullCheckExceptionType exceptionType=source.getAst().readConfiguration(ConfigurationKeys.NON_NULL_EXCEPTION_TYPE); if (exceptionType == null) exceptionType=NullCheckExceptionType.NULL_POINTER_EXCEPTION; JCVari...
Generates a new statement that checks if the given variable is null, and if so, throws a specified exception with the variable name as message.
public GeneralAlgorithmRunner(DataWrapper dataWrapper,GraphSource graphSource,GeneralAlgorithmRunner runner,Parameters parameters,KnowledgeBoxModel knowledgeBoxModel){ this(dataWrapper,graphSource,parameters,knowledgeBoxModel,null); this.algorithm=runner.algorithm; }
Constructs a wrapper for the given DataWrapper. The DatWrapper must contain a DataSet that is either a DataSet or a DataSet or a DataList containing either a DataSet or a DataSet as its selected model.
public GeneralPath(int rule){ super(rule,INIT_SIZE); }
Constructs a new <code>GeneralPath</code> object with the specified winding rule to control operations that require the interior of the path to be defined.
public static void dumbDeleteRecursive(File file) throws IOException { if (file.isDirectory()) { File[] fileList=file.listFiles(); if (fileList == null) { return; } for ( File entry : fileList) { dumbDeleteRecursive(entry); } } if (!file.delete() && file.exists()) { throw ne...
Delete a directory and its contents. WARNING: Java APIs do not let us distinguish directories from symbolic links to directories. Consequently, if the directory contains symbolic links to directories, we will attempt to delete the contents of pointed-to directories.
public static Point layerToScreen(Layer layer,float x,float y){ Point into=new Point(x,y); return layerToScreen(layer,into,into); }
Converts the supplied point from coordinates relative to the specified layer to screen coordinates.
static public String formatUInt8(byte b){ return String.format("%#4x",new Byte(b).intValue() & 0xFF); }
Utility method to print a byte in hexa 0x
public void visitVarInsn(int opcode,int var){ if (mv != null) { mv.visitVarInsn(opcode,var); } }
Visits a local variable instruction. A local variable instruction is an instruction that loads or stores the value of a local variable.
public void simulateMethod(SootMethod method,ReferenceVariable thisVar,ReferenceVariable returnVar,ReferenceVariable params[]){ String subSignature=method.getSubSignature(); { defaultMethod(method,thisVar,returnVar,params); return; } }
Implements the abstract method simulateMethod. It distributes the request to the corresponding methods by signatures.
public static void writeAvailableByte(Object o,byte val){ Magic.setByteAtOffset(o,AVAILABLE_BITS_OFFSET,val); }
Non-atomic write of byte containing available bits
public static <A extends Annotation>A generateAnnotation(Attribute.Compound anno,Class<A> annoType){ AnnotationProxyMaker apm=new AnnotationProxyMaker(anno,annoType); return annoType.cast(apm.generateAnnotation()); }
Returns a dynamic proxy for an annotation mirror.
private boolean formMatches(String glyphUnicode,String glyphForm,AttributedCharacterIterator aci,int currentIndex){ if (aci == null || glyphForm == null || glyphForm.length() == 0) { return true; } char c=aci.setIndex(currentIndex); Integer form=(Integer)aci.getAttribute(GVTAttributedCharacterIterator.TextA...
Returns true if the glyph form matches that of the current character in the aci.
public AbIocEventListener itemClick(String method){ this.itemClickMethod=method; return this; }
Item click.
public NecronomiconCreationRitual(String unlocalizedName,int bookType,int dimension,float requiredEnergy,ItemStack item,Object... offerings){ this(unlocalizedName,bookType,dimension,requiredEnergy,false,item,offerings); }
A Necronomicon Creation Ritual
@Deprecated public Map<String,Object> templateParams(){ return template == null ? null : template.getParams(); }
Template parameters used for rendering
@DELETE @Path("{entity}") public Response removeCredentialEntity(@PathParam("entity") String entity) throws IOException, IllegalArgumentException { String user=SecurityUtils.getPrincipal(); logger.info("removeCredentialEntity for user {} entity {}",user,entity); if (credentials.removeCredentialEntity(user,entity)...
Remove Entity of User Credential entity REST API
private MemoryExampleTable performInnerJoin(ExampleSet leftExampleSet,ExampleSet rightExampleSet,List<AttributeSource> originalAttributeSources,List<Attribute> unionAttributeList,Pair<Attribute[],Attribute[]> keyAttributes) throws ProcessStoppedException { MemoryExampleTable unionTable=new MemoryExampleTable(unionAtt...
Performs an inner join, i.e. the result table contains all examples from the source example sets whose key attributes match.
public Fits(){ }
Create an empty Fits object which is not associated with an input stream.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:30:10.414 -0500",hash_original_method="D30344A99981D107D0972206045C7C70",hash_generated_method="CCD5696868A6D4B61DC4FA02D7346CDA") public static void writeTexture(ETC1Texture texture,OutputStream output) throws IOException { ByteBuff...
Helper function that writes an ETC1Texture to an output stream formatted as a PKM file.
public void dispose(){ mYellow=null; super.dispose(); }
Remove references to and from this object, so that it can eventually be garbage-collected.
protected Object execute() throws IOException { init(); if (!getSelectedRemote()) { return null; } Codenvy codenvy=getMultiRemoteCodenvy().getCodenvy(remoteName); if (codenvy == null) { Ansi buffer=Ansi.ansi(); buffer.fg(RED); buffer.a(format("Please login into the remote %s",remoteName)); ...
Deletes the given factory
public void addVetoableChangeListener(VetoableChangeListener listener){ if (listener == null) { return; } if (listener instanceof VetoableChangeListenerProxy) { VetoableChangeListenerProxy proxy=(VetoableChangeListenerProxy)listener; addVetoableChangeListener(proxy.getPropertyName(),proxy.getListener(...
Add a VetoableChangeListener to the listener list. The listener is registered for all properties. The same listener object may be added more than once, and will be called as many times as it is added. If <code>listener</code> is null, no exception is thrown and no action is taken.
public void acceptAlert(){ WebDriverWait wait=(WebDriverWait)new WebDriverWait(appiumDriver,maxWaitTime,500); wait.until(ExpectedConditions.alertIsPresent()); Alert alrt=appiumDriver.switchTo().alert(); alrt.accept(); }
Accept the alert
synchronized public void sendX10Sequence(X10Sequence s,SerialListener l){ s.reset(); X10Sequence.Command c; while ((c=s.getCommand()) != null) { SerialMessage m; if (c.isAddress()) { m=SpecificMessage.getAddress(c.getHouseCode(),((X10Sequence.Address)c).getAddress()); } else if (c.isFunctio...
Send a sequence of X10 messages <p> Makes them into the local messages and then queues in order
public boolean replaceValue(float value,float newValue){ if (Float.isNaN(value)) { for (int i=0; i < count; i++) { if (Float.isNaN(data[i])) { data[i]=newValue; return true; } } } else { int index=index(value); if (index != -1) { data[index]=newValue; return ...
Replace the first instance of a particular value
public void addColumn(ColumnInfo info){ WTableColumn tableColumn; tableColumn=new WTableColumn(); tableColumn.setHeaderValue(Util.cleanAmp(info.getColHeader())); setColumnVisibility(tableColumn,info.getVisibility()); m_tableColumns.add(tableColumn); return; }
Add Table Column. after adding a column, you need to set the column classes again (DefaultTableModel fires TableStructureChanged, which calls JTable.tableChanged .. createDefaultColumnsFromModel
public void end(){ AppContext.setSecurityContext(null); }
End authenticated block of code, i.e. remove user session from the execution thread.
private Ref clip() throws PageException { return checker(); }
Verarbeitet Ausdruecke die inerhalb einer Klammer stehen. <br /> EBNF:<br /> <code>("(" spaces impOp ")" spaces) | checker;</code>
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 synthesize(String[] arguments){ Log.i(TAG,"Start requesting TTS... (" + this.codec + ")"); try { parseParams(arguments); } catch ( Exception e) { e.printStackTrace(); } if (this.codec == CODEC_WAV) { this.sampleRate=CODEC_WAV_SAMPLE_RATE; } else { this.sampleRate=CODEC_OPUS_SA...
Text to speech
public void clearRecentlyPlayedList(){ recentlyPlayedVideos.clear(); videoListAdapter.notifyDataSetChanged(); }
Clears recently played list items
public String shortFormat(Date dt){ if (dt == null) { return ""; } Date now=new Date(); dt=new Date(dt.getTime()); if (mDate.format(now).equals(mDate.format(dt))) { return sTime.format(dt); } else if (Math.abs(now.getTime() - dt.getTime()) < ONE_YEAR) { return sDate.format(dt); } else { ...
Format a date using a really short format.
@SuppressWarnings("unchecked") public CompositeComparator(Comparator<? super T> comparator1,Comparator<? super T> comparator2){ this(new Comparator[]{comparator1,comparator2}); }
Constructs a comparator based on the specified underlying comparators.
@VisibleForTesting Optional<Boolean> checkForPAssertSuccess(DataflowPipelineJob job,@Nullable JobMetrics metrics) throws IOException { State state=job.getState(); if (state == State.FAILED || state == State.CANCELLED) { LOG.info("The pipeline failed"); return Optional.of(false); } if (metrics == null ||...
Check that PAssert expectations were met. <p>If the pipeline is not in a failed/cancelled state and no PAsserts were used within the pipeline, then this method will state that all PAsserts succeeded.
private static Point2D.Double v2SubII(Point2D.Double a,Point2D.Double b){ Point2D.Double c=new Point2D.Double(); c.x=a.x - b.x; c.y=a.y - b.y; return (c); }
Subtract Vector a from Vector b.
@Override public void provideParam(String qualifier,Object paramValue){ for ( String context : contexts) { provideParamForContext(context,qualifier,paramValue); } }
Method making the user capable of providing params to the bus
public ProtocolVersion(String version){ if (version == null) { throw new IllegalArgumentException("null can not parsed to version"); } Matcher versionMatcher=VERSION_PAT.matcher(version); if (versionMatcher.find()) { majorVersion=Integer.parseInt(versionMatcher.group(1)); minorVersion=Integer.parseI...
RFB protocol parser (RFB ([0-9]{3}).([0-9]{3}))
static Runnable logFailure(final Runnable runnable,Logger logger){ return null; }
Returns a wrapped runnable that logs and rethrows uncaught exceptions.
private RegisterAttributes attributes(Register reg){ return registerAttributes[reg.number]; }
Gets an object describing the attributes of a given register according to this register configuration.
private File launchReport(KeyNamePair pp,HttpServletRequest request,GridTab m_curTab,MQuery m_query){ WebSessionCtx wsc=WebSessionCtx.get(request); MPrintFormat pf=MPrintFormat.get(wsc.ctx,pp.getKey(),false); File file=launchReport(pf,request,m_curTab,m_query); return file; }
Launch Report
public static boolean isNumber(final LuaValue target){ return target != null && target.type() == LuaValue.TNUMBER; }
is number
private InetAddress socksGetServerAddress() throws UnknownHostException { String proxyName; InetSocketAddress addr=(InetSocketAddress)proxy.address(); proxyName=addr.getHostName(); if (proxyName == null) { proxyName=addr.getAddress().getHostAddress(); } return InetAddress.getByName(proxyName); }
Gets the InetAddress of the SOCKS proxy server.
public VarDefinition basicGetRef(){ return ref; }
<!-- begin-user-doc --> <!-- end-user-doc -->
@Transactional public ReceiptHeader persistChallan(final ReceiptHeader receiptHeader,final Position position,final String actionName,final String approvalRemarks) throws ApplicationRuntimeException { final Integer validUpto=Integer.valueOf(collectionsUtil.getAppConfigValue(CollectionConstants.MODULE_NAME_COLLECTIONS_...
This method persists the given <code>ReceiptPayeeDetails</code> entity. If the receipt number for all of the receipts is generated, if not already present.
private int findToken(final String in,int start,MarkToken token){ int pos=start; while (pos < in.length()) { if (this.getToken(in,pos) == token) { return pos; } pos++; } return -1; }
Finds the position of the given Token in the given String.
private static byte[] readFileToByteArray(final File file) throws IOException { InputStream in=null; try { in=openInputStream(file); return IOUtils.toByteArray(in); } finally { IOUtils.closeQuietly(in); } }
FROM: Apache Reads the contents of a file into a byte array. The file is always closed.
public static Map<String,Object> pullAndReportEntitySyncData(DispatchContext dctx,Map<String,? extends Object> context){ EntitySyncContext esc=null; Locale locale=(Locale)context.get("locale"); try { esc=new EntitySyncContext(dctx,context); Debug.logInfo("Doing pullAndReportEntitySyncData for entitySyncId...
Pull and Report Entity Sync Data - Called Remotely to Push Results from last pull, the Pull next set of results.