code stringlengths 10 174k | nl stringlengths 3 129k |
|---|---|
protected void guardaredicionExecuteLogic(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response){
AppUser appUser=getAppUser(request);
ServiceRepository services=ServiceRepository.getInstance(ServiceClient.create(appUser));
GestionPrestamosBI prestamosService=services.looku... | Guarda los cambios realizados en un prestamo. |
public void resetCreationTimestamp(){
createTimestamp.set(System.nanoTime());
}
| Resets creation timestamp to the current timestamp to prolong entry's lifespan |
public void clearPosition(){
_position=-_writeLength;
}
| Clears the position for statistics cases like a socket stream. |
public static Pane buttonsPane(Pos alignment,boolean dfltPadding,Button... btns){
HBox hb=hBox(10,dfltPadding,btns);
hb.setAlignment(alignment);
return hb;
}
| Create pane with buttons. |
private BinaryFile(InputReader inputReader){
this.inputReader=inputReader;
classCount++;
openCount++;
}
| Constructs a new BinaryFile with the specified inputReader as the input. |
public DocumentFragment parseFragment() throws ParseException {
return parseFragment(makeDocument(findDoctype(),null,domImpl));
}
| Parses a snippet of markup. The snippet need not be a single element as in an XML or HTML document. For HTML, this will create no implied HTML, HEAD, or BODY elements. If there is a DOCTYPE, it will be used to seed the default namespace. |
public static String[] addSuffix(String suffix,String[] array){
return addPrefixAndSuffix("",suffix,array);
}
| Adds suffix to each array element. |
public void learn(int[] exampleFeatures,double[] exampleValues,int[] exampleLabels,double[] labelValues){
}
| Dummy implementation of the abstract <code>learn(int[],double[],int[],double[])</code> signature for the compiler. Not to be used by the programmer. |
private static LambdaForm preparedFieldLambdaForm(MemberName m){
Class<?> ftype=m.getFieldType();
boolean isVolatile=m.isVolatile();
byte formOp;
switch (m.getReferenceKind()) {
case REF_getField:
formOp=AF_GETFIELD;
break;
case REF_putField:
formOp=AF_PUTFIELD;
break;
case REF_getStatic:
formOp=AF_GETSTATI... | Create a LF which can access the given field. Cache and share this structure among all fields with the same basicType and refKind. |
public boolean hasDataBounds(){
return dataStartPosition != 0 && dataSize != 0;
}
| Returns true if the data start position and size have been set. |
public DexData(RandomAccessFile raf){
mDexFile=raf;
}
| Constructs a new DexData for this file. |
public static Component createVerticalGlue(){
return new Filler(new Dimension(0,0),new Dimension(0,0),new Dimension(0,Short.MAX_VALUE));
}
| Creates a vertical glue component. |
@Override public GuacamoleReader acquireReader(){
readerLock.lock();
return getSocket().getReader();
}
| Acquires exclusive read access to the Guacamole instruction stream and returns a GuacamoleReader for reading from that stream. |
public void deletePendingAchievementDetails(String charname) throws SQLException {
DBTransaction transaction=TransactionPool.get().beginWork();
deletePendingAchievementDetails(transaction,charname);
TransactionPool.get().commit(transaction);
}
| Delete used records for a pending achievement for a given player |
@Override public boolean eIsSet(int featureID){
switch (featureID) {
case SGraphPackage.ENTRY__KIND:
return kind != KIND_EDEFAULT;
}
return super.eIsSet(featureID);
}
| <!-- begin-user-doc --> <!-- end-user-doc --> |
@Override public void writeNamespace(String prefix,String namespaceURI) throws XMLStreamException {
log.log(Level.FINE,"writeNamespace({0}, {1})",new Object[]{prefix,namespaceURI});
if (namespaceURI == null || namespaceURI.isEmpty()) {
return;
}
if (prefix == null || prefix.isEmpty() || prefix.equals(XMLCon... | Writes a namespace to the output stream If the prefix argument to this method is the empty string, "xmlns", or null this method will delegate to writeDefaultNamespace. In the WBXML implementation the prefix of the current element is updated to the one passed. |
private static int decode4to3(byte[] source,int srcOffset,byte[] destination,int destOffset,byte[] decodabet){
if (source[srcOffset + 2] == EQUALS_SIGN) {
int outBuff=((decodabet[source[srcOffset]] << 24) >>> 6) | ((decodabet[source[srcOffset + 1]] << 24) >>> 12);
destination[destOffset]=(byte)(outBuff >>> 16... | Decodes four bytes from array <var>source</var> and writes the resulting bytes (up to three of them) to <var>destination</var>. The source and destination arrays can be manipulated anywhere along their length by specifying <var>srcOffset</var> and <var>destOffset</var>. This method does not check to make sure your arra... |
protected void onCollision(Entity a,Entity b){
}
| Called if entities A and B are currently colliding. |
public static Context createContext(BridgeContext ctx,Element e){
return new DefaultContext(ctx,e);
}
| Creates a context for the specified element. |
public static int[] sampleArray(int n,int[] elements){
RandomSamplingAssistant assistant=new RandomSamplingAssistant(n,elements.length,null);
int[] sample=new int[n];
int j=0;
int length=elements.length;
for (int i=0; i < length; i++) {
if (assistant.sampleNextElement()) sample[j++]=elements[i];
}
... | Just shows how this class can be used; samples n elements from and int[] array. |
public ASN1InputStream(InputStream input,boolean lazyEvaluate){
this(input,StreamUtil.findLimit(input),lazyEvaluate);
}
| Create an ASN1InputStream where no DER object will be longer than limit, and constructed objects such as sequences will be parsed lazily. |
void maybeAddExport(Node exportsName){
if (isGoogModule) {
maybeAddGoogExport(exportsName);
}
else {
maybeAddProvidesExport(exportsName);
}
}
| Attempts to export the name exportsName. Does nothing if exportsName is an invalid export. |
protected double negativeLogLikelihood(double[][] dataYs,double[][] probs){
double logLikelihood=0;
for (int i=0; i < dataYs.length; i++) {
for (int j=0; j < m_numClasses; j++) {
if (dataYs[i][j] == 1.0) {
logLikelihood-=Math.log(probs[i][j]);
}
}
}
return logLikelihood;
}
| Returns the negative loglikelihood of the Y-values (actual class probabilities) given the p-values (current probability estimates). |
private static boolean contains(List urls,ParsedURL key){
Iterator iter=urls.iterator();
while (iter.hasNext()) {
if (key.equals(iter.next())) return true;
}
return false;
}
| Returns true if the specified list of ParsedURLs contains the specified url. |
public static List<BaseMqttMessage> processMessageLog(final List<LoggedMqttMessage> list,final ProgressUpdater progress,final long current,final long max){
final List<BaseMqttMessage> mqttMessageList=new ArrayList<BaseMqttMessage>();
long item=0;
for ( final LoggedMqttMessage loggedMessage : list) {
if (prog... | Turns the given list of LoggedMqttMessages into ReceivedMqttMessages. |
public CActionCopyAllReilCode(final JTextArea textArea){
super("Copy to Clipboard");
m_textArea=textArea;
}
| Creates a new action object. |
@Override public final boolean put(final byte[] key) throws SpaceExceededException {
assert (key != null);
final Row.Entry newentry=this.index.row().newEntry(key);
return this.index.put(newentry);
}
| Adds the key to the set |
public NceLight(String systemName,String userName,NceTrafficController tc,NceLightManager mgr){
super(systemName,userName);
this.tc=tc;
this.mgr=mgr;
initializeLight(systemName);
}
| Create a Light object, with both system and user names. <P> 'systemName' was previously validated in NceLightManager |
public boolean retainAll(Collection<?> c){
if (!(c instanceof RegularEnumSet)) return super.retainAll(c);
RegularEnumSet<?> es=(RegularEnumSet<?>)c;
if (es.elementType != elementType) {
boolean changed=(elements != 0);
elements=0;
return changed;
}
long oldElements=elements;
elements&=es.eleme... | Retains only the elements in this set that are contained in the specified collection. |
public static boolean isValid(@NotNull String environmentId){
return environmentId.matches(URL_REGEX);
}
| Checks if a field has a valid environment address. |
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException {
s.defaultReadObject();
}
| Adds semantic checks to the default deserialization method. This method must have the standard signature for a readObject method, and the body of the method must begin with "s.defaultReadObject();". Other than that, any semantic checks can be specified and do not need to stay the same from version to version. A readObj... |
@DSComment("From safe class list") @DSSafe(DSCat.SAFE_LIST) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:34:20.227 -0500",hash_original_method="9BFD91E842A11577904B0CB6F2A3F2B4",hash_generated_method="25A3A58DABAB0A14F7BA58894D4CE78B") public void drawARGB(int a,int r,int g,int b... | Fill the entire canvas' bitmap (restricted to the current clip) with the specified ARGB color, using srcover porterduff mode. |
@Override public boolean equals(Object obj){
if (obj == this) {
return true;
}
if (!(obj instanceof Hour)) {
return false;
}
Hour that=(Hour)obj;
if (this.hour != that.hour) {
return false;
}
if (!this.day.equals(that.day)) {
return false;
}
return true;
}
| Tests the equality of this object against an arbitrary Object. <P> This method will return true ONLY if the object is an Hour object representing the same hour as this instance. |
public static _Agent2008Status fromString(final String value) throws SOAPSerializationException {
return (_Agent2008Status)Enumeration.fromString(value,_Agent2008Status.VALUES_TO_INSTANCES);
}
| Gets the specific enumeration value in this class appropriate for the given XML attribute value. If no value is known, null is returned (_DEFAULT is not used; that value is for when the attribute is not present). |
private final static boolean isThaiBaseConsonant(int ch){
return (ch >= 0x0e01) && (ch <= 0x0e2e);
}
| Determine if a character is a Thai base consonant |
public PartialTrie(final Iterable<? extends T> elements,final long size,final int bucketSize,final TransformationStrategy<? super T> transformationStrategy,ProgressLogger pl){
Iterator<? extends T> iterator=elements.iterator();
Node node;
LongArrayBitVector curr=LongArrayBitVector.getInstance();
int pos, prefix... | Creates a partial compacted trie using given elements, bucket size and transformation strategy. |
public static ImmutableList<String> splitBySpace(String string){
return Strings.isNullOrEmpty(string) ? ImmutableList.<String>of() : ImmutableList.copyOf(Splitter.on(SPACE).omitEmptyStrings().splitToList(string));
}
| Splits the given string for each space that is found. |
public void printStackTrace(){
printStackTrace(new java.io.PrintWriter(System.err,true));
}
| Print the the trace of methods from where the error originated. This will trace all nested exception objects, as well as this object. |
public boolean isPerspectiveInitialized(){
return arenaPane.getPerspectiveManager().isPresent() && arenaPane.getPerspectiveManager().get().isInitialized();
}
| Determines whether or not ShootOFF has sufficient information to set a target's distance to a real world distance. |
public boolean isSetNodeId(){
return EncodingUtils.testBit(__isset_bitfield,__NODEID_ISSET_ID);
}
| Returns true if field nodeId is set (has been assigned a value) and false otherwise |
public static boolean isUseLongs(){
return useLongsDefault;
}
| Indicates that the parser will generate long objects and not just doubles for numeric values |
@SuppressWarnings("unchecked") @Override public void eSet(int featureID,Object newValue){
switch (featureID) {
case N4mfPackage.INIT_MODULES__INIT_MODULES:
getInitModules().clear();
getInitModules().addAll((Collection<? extends BootstrapModule>)newValue);
return;
}
super.eSet(featureID,newValue);
}
| <!-- begin-user-doc --> <!-- end-user-doc --> |
private int extractPCodeInfo(Document xmlDoc){
Postcode postcode=new Postcode();
int resultCode=0;
xmlDoc.getDocumentElement().normalize();
Element doc=xmlDoc.getDocumentElement();
NodeList DataElements=doc.getElementsByTagName("DataElement");
System.out.println("Number of DataElements: " + DataElements.get... | Extracts the information out of server postcode lookup response. |
@Override public String toString(){
return "DecimalStyle[" + zeroDigit + positiveSign+ negativeSign+ decimalSeparator+ "]";
}
| Returns a string describing this DecimalStyle. |
private static VMRequest common64Bit(boolean top){
return new VMRequest(REQUEST_EXTENT,Address.zero(),MAX_SPACE_EXTENT,0f,top);
}
| All spaces in the 64-bit layout are the same: a fixed size |
public void continueButtonActionPerformed(java.awt.event.ActionEvent e){
if (testRunning && testSuspended) {
testSuspended=false;
if (wrapTest) {
statusText1.setText("Running Wraparound Test");
statusText1.setVisible(true);
}
}
}
| Method to handle continue button in Diagnostic Frame |
private void showPopupUnchecked(int maxActivityCount){
if (mAdapter.getDataModel() == null) {
throw new IllegalStateException("No data model. Did you call #setDataModel?");
}
getViewTreeObserver().addOnGlobalLayoutListener(mOnGlobalLayoutListener);
final boolean defaultActivityButtonShown=mDefaultActivityBu... | Shows the popup no matter if it was already showing. |
@Override public void addBatch(String sql) throws SQLException {
try {
debugCodeCall("addBatch",sql);
throw DbException.get(ErrorCode.METHOD_NOT_ALLOWED_FOR_PREPARED_STATEMENT);
}
catch ( Exception e) {
throw logAndConvert(e);
}
}
| Calling this method is not legal on a PreparedStatement. |
public String toString(){
return "Approximate updater, evidence = " + evidence;
}
| Prints out the most recent marginal. |
public Calendar toCalendar(Locale locale){
if (locale == null) {
locale=Locale.getDefault();
}
DateTimeZone zone=getZone();
Calendar cal=Calendar.getInstance(zone.toTimeZone(),locale);
cal.setTime(toDate());
return cal;
}
| Get the date time as a <code>java.util.Calendar</code>, assigning exactly the same millisecond instant. The locale is passed in, enabling Calendar to select the correct localized subclass. <p> The JDK and Joda-Time both have time zone implementations and these differ in accuracy. Joda-Time's implementation is generally... |
void queueConnectMessage(){
byte[] buff=null;
if (m_support_wnd_scale) {
buff=new byte[4];
buff[1]=TCP_OPT_WND_SCALE & 0xFF;
buff[2]=1;
buff[3]=(byte)(m_rwnd_scale & 0xFF);
}
else {
buff=new byte[1];
}
buff[0]=CTL_CONNECT & 0xFF;
m_snd_wnd=buff.length;
queue(buff,0,buff.length,true);
... | Enqueues connect message |
public void endVisit(ReturnStatement node){
}
| End of visit the given type-specific AST node. <p> The default implementation does nothing. Subclasses may reimplement. </p> |
public CoordinatePrecisionReducerFilter(PrecisionModel precModel){
this.precModel=precModel;
}
| Creates a new precision reducer filter. |
private ScrollableJPopupMenu createContentAssistPopup(final JFormattedTextField field,final List<String> possibleValues,final boolean multipleValuesAllowed,final Class<? extends CellType> cellClass){
final ScrollableJPopupMenu popupMenu=new ScrollableJPopupMenu(ScrollableJPopupMenu.SIZE_SMALL);
popupMenu.setBackgro... | Creates the content assist popup. |
public static PlatformUser createUser(DataService mgr,String userId,Organization org) throws NonUniqueBusinessKeyException {
PlatformUser user=Organizations.createUserForOrg(mgr,org,false,userId);
return user;
}
| Creates a new platform user with the given user id. |
public ASN1Primitive toASN1Primitive(){
return id.toASN1Primitive();
}
| Produce an object suitable for an ASN1OutputStream. |
public void add(Column column){
String colName=column.getColumn();
if (colName.endsWith(".*")) column.setColumn(colName.substring(0,colName.length() - 2));
if (column.getColumn().equals("*") && column.getOp() == Operation.NONE) {
this.allColumns=true;
String table=column.getTable();
String tableAlia... | Adds a column to this heading, checking if the column exists as well as adding its type. |
public StyledTextCellEditor(){
}
| Creates a new text string cell editor with no control The cell editor value is the string itself, which is initially the empty string. Initially, the cell editor has no cell validator. |
public static String readAsciiLine(InputStream in) throws IOException {
StringBuilder result=new StringBuilder(80);
while (true) {
int c=in.read();
if (c == -1) {
throw new EOFException();
}
else if (c == '\n') {
break;
}
result.append((char)c);
}
int length=result.length();... | Returns the ASCII characters up to but not including the next "\r\n", or "\n". |
private static void addPrefixes(final WikibaseUris uris){
final Map<String,String> defaultDecls=PrefixDeclProcessor.defaultDecls;
for ( PropertyType p : PropertyType.values()) {
defaultDecls.put(p.prefix(),uris.property(p));
}
defaultDecls.put("wikibase",Ontology.NAMESPACE);
defaultDecls.put("wd",uris.en... | Add standard prefixes to the system. |
public void submitOne(final R resource) throws Exception {
lock.lock();
try {
final Callable<?> task=newParserTask(resource);
submitOne(resource,task);
}
finally {
lock.unlock();
}
}
| Submit a resource for processing. |
public ASTSortCriterion(Token t){
super(t);
}
| Creates a new instance of ASTSortCriterion |
public void printHelp(PrintWriter pw,int width,String cmdLineSyntax,String header,Options options,int leftPad,int descPad,String footer){
printHelp(pw,width,cmdLineSyntax,header,options,leftPad,descPad,footer,false);
}
| Print the help for <code>options</code> with the specified command line syntax. |
public void initObject() throws IOException {
print("initObject",null);
}
| Description of the Method |
@Provides @Config("whoisDisclaimer") public static String provideWhoisDisclaimer(){
return "WHOIS information is provided by Charleston Road Registry Inc. (CRR) solely for\n" + "query-based, informational purposes. By querying our WHOIS database, you are\n" + "agreeing to comply with these terms\n"+ "(http://www.regi... | Disclaimer displayed at the end of WHOIS query results. |
public ClusterNode taskNode(){
return taskNode;
}
| Get node where parent task of the job has originated. |
void buildFunctionNames(ActionList list,int version){
int size=list.size();
for (int i=0; i < size; i++) {
DummyAction a=(DummyAction)list.getAction(i);
MovieMetaData.walkActions(a.getActionList(),version,null,a.getClassName(),null);
}
}
| Go off and fill our DefineFunction records with function names. |
public ChebyshevDistance(){
super();
}
| Constructs an Chebyshev Distance object, Instances must be still set. |
public static void addPlugin(String interfaceName,String name,String concreteType){
if (PLUGINS.get(interfaceName) == null) {
Map<String,String> pluginsOfInterfaceType=new TreeMap<String,String>();
pluginsOfInterfaceType.put(name,concreteType);
PLUGINS.put(interfaceName,pluginsOfInterfaceType);
}
else ... | Add a plugin. |
public String buildUnionQuery(String[] subQueries,String sortOrder,String limit){
StringBuilder query=new StringBuilder(128);
int subQueryCount=subQueries.length;
String unionOperator=mDistinct ? " UNION " : " UNION ALL ";
for (int i=0; i < subQueryCount; i++) {
if (i > 0) {
query.append(unionOperator... | Given a set of subqueries, all of which are SELECT statements, construct a query that returns the union of what those subqueries return. |
public void init(boolean forEncryption,KeyParameter params){
WorkingKey=generateWorkingKey(params.getKey(),forEncryption);
this.forEncryption=forEncryption;
}
| initialise an AES cipher. |
public String[] validBaudRates(){
log.debug("validBaudRates should not have been invoked");
return null;
}
| Get an array of valid baud rates. |
public void onNewRenderer(MapPaneEvent ev){
}
| Called by the map pane when a new renderer has been set |
public boolean isFromDHCP(){
return fromDHCP;
}
| Ruft den Wert der fromDHCP-Eigenschaft ab. |
@Override public final void preTearDown() throws Exception {
client1.invoke(null);
client2.invoke(null);
server1.invoke(null);
server2.invoke(null);
closeCache();
}
| close the caches |
private boolean isValidServiceClassName(String name){
return name.endsWith("Factory.class") || name.endsWith("Service.class");
}
| Initial filter for class files to avoid loading all classes into the class loader. The method checks for class name ending with "Factory" or "Service", such as "ExampleFactory.class" |
public final CompletableFuture<PartitionReceiver> createEpochReceiver(final String consumerGroupName,final String partitionId,final String startingOffset,boolean offsetInclusive,final long epoch) throws ServiceBusException {
return PartitionReceiver.create(this.underlyingFactory,this.eventHubName,consumerGroupName,pa... | Create a Epoch based EventHub receiver with given partition id and start receiving from the beginning of the partition stream. The receiver is created for a specific EventHub Partition from the specific consumer group. <p> It is important to pay attention to the following when creating epoch based receiver: <ul> <li> ... |
public static String stringFor(int m){
switch (m) {
case cudaFilterModePoint:
return "cudaFilterModePoint";
case cudaFilterModeLinear:
return "cudaFilterModeLinear";
}
return "INVALID cudaTextureFilterMode: " + m;
}
| Returns the String identifying the given cudaTextureFilterMode |
private void init(){
mY=DensityUtil.applyDimensionOffset(mContext,TypedValue.COMPLEX_UNIT_DIP,64);
mGravity=Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM;
}
| set the default toast position |
public void dispose(){
}
| Not implemented - inherited by IBaseLabelProvider. |
@DSSource({DSSourceKind.SENSITIVE_UNCATEGORIZED}) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:55:36.587 -0500",hash_original_method="8A95B6782662E6180E39BCA19FEC79A2",hash_generated_method="E705090A3E61239D7EFB0BC96276E719") public byte[] encodeAsBytes(String transport){
byte[... | Encode this into a byte array. This is used when the body has been set as a binary array and you want to encode the body as a byte array for transmission. |
public static String convertSystemNameToAlternate(String systemName){
if (!validSystemNameFormat(systemName,systemName.charAt(1))) {
return "";
}
String altName="";
String s="";
int k=0;
boolean noB=true;
for (int i=2; (i < systemName.length()) && noB; i++) {
if (systemName.charAt(i) == 'B') {
... | Public static method to convert one format system name for the alternate format. If the supplied system name does not have a valid format, or if there is no representation in the alternate naming scheme, an empty string is returned. |
public static boolean isQueryProperty(Property predicate){
return SPIN.query.equals(predicate) || JenaUtil.hasSuperProperty(predicate,SPIN.query);
}
| Checks if a given Property is spin:query or a sub-property of it. |
static double computeFunction(double x){
return (x * x + 1.0) * x;
}
| the function to integrate |
public String toString(boolean includePrivateKeys,boolean includeTransactions,boolean includeExtensions,@Nullable AbstractBlockChain chain){
lock.lock();
try {
StringBuilder builder=new StringBuilder();
BigInteger estimatedBalance=getBalance(BalanceType.ESTIMATED);
BigInteger availableBalance=getBalance... | Formats the wallet as a human readable piece of text. Intended for debugging, the format is not meant to be stable or human readable. |
private MMovement importMInventoryMove(X_I_Movement imove){
final String whereClause=I_M_Movement.COLUMNNAME_MovementDate + "= ? AND " + I_M_Movement.COLUMNNAME_DocumentNo+ "=? AND "+ I_M_Movement.COLUMNNAME_C_DocType_ID+ "=?";
int oldID=new Query(Env.getCtx(),I_M_Movement.Table_Name,whereClause,get_TrxName()).setC... | Import Inventory Move using X_I_M_Movement table |
public void from(@Nonnull String dependencyNotation,Closure configClosure){
from(getProject().getDependencies().create(dependencyNotation,configClosure));
}
| Processes a dependency specified by name. |
protected void storeState(){
likelihoodCore.storeState();
super.storeState();
}
| Stores the additional state other than model components |
boolean isAvailable(){
return this.isAvailable;
}
| Test if this bulk cipher is available. For use by CipherSuite. |
public void loop(AbstractAutomaton a){
int i;
synchronized (automats) {
i=automats.indexOf(a);
}
notify("Count",null,Integer.valueOf(i));
}
| An AbstractAutomaton instance uses this method to notify interested parties that it's gone around it's handle loop again. |
@Override public void merge(MeasureAggregator aggregator){
AvgDoubleAggregator avgAggregator=(AvgDoubleAggregator)aggregator;
if (!avgAggregator.isFirstTime()) {
aggVal+=avgAggregator.aggVal;
count+=avgAggregator.count;
firstTime=false;
}
}
| This method merge the aggregated value, in average aggregator it will add count and aggregate value |
final public int loadUnsigned8(int addr){
try {
return readableMemory[AbstractMemory.getPTE(addr)][AbstractMemory.getOffset(addr)] & 0xFF;
}
catch ( NullPointerException e) {
throw new MemoryException("Memory not initialized trying to read data from address: 0x" + Integer.toHexString(addr));
}
}
| Perform a byte load where the zero extended result fills the return value |
@Override public void add(int index,T element){
return;
}
| Does nothing. Inserting at specific positions is not allowed in sorted lists |
@Override public Void visitCompilationUnit(CompilationUnitTree node,Void p){
Void r=scan(node.getPackageAnnotations(),p);
r=reduce(scan(node.getTypeDecls(),p),r);
return r;
}
| Override Compilation Unit so we won't visit package names or imports |
public static GridFieldVO create(Properties ctx,int WindowNo,int TabNo,int AD_Window_ID,int AD_Tab_ID,boolean readOnly,ResultSet rs){
GridFieldVO vo=new GridFieldVO(ctx,WindowNo,TabNo,AD_Window_ID,AD_Tab_ID,readOnly);
String columnName="ColumnName";
int AD_Field_ID=0;
try {
vo.ColumnName=rs.getString("Colum... | Create Field Value Object |
public void enableStencilBuffer(boolean stencilBuffer){
mStencilBuffer=stencilBuffer;
}
| Sets whether stencil buffer is enabled. |
public static void checkState(boolean expression){
com.google.common.base.Preconditions.checkState(expression);
}
| Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method. |
public void processingInstruction(String target,String data) throws SAXException {
if (DEBUG) System.out.println("processingInstruction: target: " + target + ", data: "+ data);
charactersFlush();
int exName=m_expandedNameTable.getExpandedTypeID(null,target,DTM.PROCESSING_INSTRUCTION_NODE);
int dataIndex=m_val... | Receive notification of a processing instruction. <p>By default, do nothing. Application writers may override this method in a subclass to take specific actions for each processing instruction, such as setting status variables or invoking other methods.</p> |
public T caseTryStatement(TryStatement object){
return null;
}
| Returns the result of interpreting the object as an instance of '<em>Try Statement</em>'. <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> |
@Override public void onAnimationEnd(Animator animation){
}
| For overriding |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.