code stringlengths 10 174k | nl stringlengths 3 129k |
|---|---|
public JSONObject put(String key,int value) throws JSONException {
this.put(key,new Integer(value));
return this;
}
| Put a key/int pair in the JSONObject. |
public VNXeCommandJob restoreSnap(String snapId){
SnapRequests req=new SnapRequests(_khClient);
return req.restoreSnap(snapId,null);
}
| Restore a snapshot |
public void addLayoutComponent(String name,Component comp){
}
| Adds the specified component with the specified name to the layout. |
public void addSample(int weight,float value){
ensureSortedByIndex();
Sample newSample=recycledSampleCount > 0 ? recycledSamples[--recycledSampleCount] : new Sample();
newSample.index=nextSampleIndex++;
newSample.weight=weight;
newSample.value=value;
samples.add(newSample);
totalWeight+=weight;
while (t... | Record a new observation. Respect the configured total weight by reducing in weight or removing the oldest observations as required. |
public ClientPropertiesBuilder withClientTimeout(Integer timeout){
properties.setProperty(CLIENT_CONNECTION_TIMEOUT,timeout.toString());
return this;
}
| Specify a timeout period for the client (in milliseconds). |
public ErrorDetails validateOwnerDetails(ErrorDetails errorDetails,final List<OwnerInformation> ownerDetailsList){
if (ownerDetailsList == null) {
errorDetails=new ErrorDetails();
errorDetails.setErrorCode(OWNER_DETAILS_REQ_CODE);
errorDetails.setErrorMessage(OWNER_DETAILS_REQ_MSG);
return errorDetail... | Validates owner details |
public DataTruncation(int index,boolean parameter,boolean read,int dataSize,int transferSize,Throwable cause){
super(THE_REASON,read ? THE_SQLSTATE_READ : THE_SQLSTATE_WRITE,THE_ERROR_CODE,cause);
this.index=index;
this.parameter=parameter;
this.read=read;
this.dataSize=dataSize;
this.transferSize=transferS... | Creates a DataTruncation. The Reason is set to "Data truncation", the error code is set to the SQLException default value and other fields are set to the values supplied on this method. |
public SimpleRegister(){
register=null;
}
| Constructs a new <tt>SimpleRegister</tt> instance. It's state will be invalid. Attempting to access this register will result in an IllegalAddressException(). It may be used to create "holes" in a Modbus register map. |
LDAPCertSelector(X509CertSelector selector,X500Principal certSubject,String ldapDN) throws IOException {
this.selector=selector == null ? new X509CertSelector() : selector;
this.certSubject=certSubject;
this.subject=new X500Name(ldapDN).asX500Principal();
}
| Creates an LDAPCertSelector. |
public FolderDescription(IFolder folder,boolean virtual){
super(folder);
this.virtual=virtual;
}
| Create a FolderDescription from the specified folder handle. Typically used when the folder handle represents a resource that actually exists, although it will not fail if the resource is non-existent. |
@Override public void updateScreen(){
tokenBox.updateCursorCounter();
}
| Called from the main game loop to update the screen. |
public Trie(){
clear();
}
| Create an emptry Trie. |
public NotificationChain basicSetExpression(Expression newExpression,NotificationChain msgs){
Expression oldExpression=expression;
expression=newExpression;
if (eNotificationRequired()) {
ENotificationImpl notification=new ENotificationImpl(this,Notification.SET,N4JSPackage.ARGUMENT__EXPRESSION,oldExpression,... | <!-- begin-user-doc --> <!-- end-user-doc --> |
public static void mapDatasource(Map map,List props){
String value=(String)map.get("type");
String jndiName="";
LogWriterI18n writer=TransactionUtils.getLogWriterI18n();
Object ds=null;
try {
jndiName=(String)map.get("jndi-name");
if (value.equals("PooledDataSource")) {
ds=DataSourceFactory.getP... | Binds a single Datasource to the existing JNDI tree. The JNDI tree may be The Datasource properties are contained in the map. The Datasource implementation class is populated based on properties in the map. |
public long allocateSlot(int slotNumber){
return toLong(bucketNum,slotNumber);
}
| Returns a given slot in the bucket, given a slot number |
public static boolean intersectLineSegmentTriangle(Vector3d p0,Vector3d p1,Vector3d v0,Vector3d v1,Vector3d v2,double epsilon,Vector3d intersectionPoint){
return intersectLineSegmentTriangle(p0.x,p0.y,p0.z,p1.x,p1.y,p1.z,v0.x,v0.y,v0.z,v1.x,v1.y,v1.z,v2.x,v2.y,v2.z,epsilon,intersectionPoint);
}
| Determine whether the line segment with the end points <code>p0</code> and <code>p1</code> intersects the triangle consisting of the three vertices <tt>(v0X, v0Y, v0Z)</tt>, <tt>(v1X, v1Y, v1Z)</tt> and <tt>(v2X, v2Y, v2Z)</tt>, regardless of the winding order of the triangle or the direction of the line segment betwee... |
private void visitFrame(final Frame f){
int i, t;
int nTop=0;
int nLocal=0;
int nStack=0;
int[] locals=f.inputLocals;
int[] stacks=f.inputStack;
for (i=0; i < locals.length; ++i) {
t=locals[i];
if (t == Frame.TOP) {
++nTop;
}
else {
nLocal+=nTop + 1;
nTop=0;
}
if (t ... | Visits a frame that has been computed from scratch. |
private void reserveStock(MPPOrderBOMLine[] lines){
for ( MPPOrderBOMLine line : lines) {
line.reserveStock();
line.saveEx();
}
}
| Reserve Inventory. |
static public double jn(int n,double x) throws ArithmeticException {
int j, m;
double ax, bj, bjm, bjp, sum, tox, ans;
boolean jsum;
final double ACC=40.0;
final double BIGNO=1.0e+10;
final double BIGNI=1.0e-10;
if (n == 0) return j0(x);
if (n == 1) return j1(x);
ax=Math.abs(x);
if (ax == 0.0) ... | Returns the Bessel function of the first kind of order <tt>n</tt> of the argument. |
@Override public SurfaceData restoreContents(){
acceleratedSurfaceLost();
return super.restoreContents();
}
| We're asked to restore contents by the accelerated surface, which means that it had been lost. |
public Object runSafely(Catbert.FastStack stack) throws Exception {
Show s=getShow(stack);
return (s == null) ? "" : s.getLanguage();
}
| Returns the language that the specified Show is in. |
private void assertWriteLittleEndian64(byte[] data,long value) throws Exception {
ByteArrayOutputStream rawOutput=new ByteArrayOutputStream();
CodedOutputStream output=CodedOutputStream.newInstance(rawOutput);
output.writeRawLittleEndian64(value);
output.flush();
assertEqualBytes(data,rawOutput.toByteArray())... | Parses the given bytes using writeRawLittleEndian64() and checks that the result matches the given value. |
private void drawX(Canvas canvas,Paint paint,float x,float y){
canvas.drawLine(x - size,y - size,x + size,y + size,paint);
canvas.drawLine(x + size,y - size,x - size,y + size,paint);
}
| The graphical representation of an X point shape. |
@SuppressWarnings({"unchecked"}) public RecordSet(Input input){
Deserializer deserializer=new Deserializer();
Map<String,Object> dataMap=input.readKeyValues(deserializer);
Object map=dataMap.get("serverinfo");
Map<String,Object> serverInfo=null;
if (map != null) {
if (!(map instanceof Map)) {
throw ... | Creates recordset from Input object |
public static void d(String tag,String s){
if (LDJSLOG.DEBUG >= LOGLEVEL) Log.d(tag,s);
}
| Debug log message. |
public void onTick(){
if (entity.isBurning()) {
lightLevel=15;
}
else {
lightLevel=getLightFromItemStack(entity.getEntityItem());
if (notWaterProof && entity.worldObj.getBlockState(new BlockPos(MathHelper.floor_double(entity.posX),MathHelper.floor_double(entity.posY),MathHelper.floor_double(entity.posZ... | Since they are IDynamicLightSource instances, they will already receive updates! Why do we need to do this? Because seperate Thread! |
public Column(String label,String variable,String type){
this.label=label;
this.variable=variable;
this.type=type;
}
| Creates a new column with the specified definition. |
public void createPictScenario11() throws Exception {
BillingIntegrationTestBase.setDateFactoryInstance(DateTimeHandling.calculateMillis("2013-07-31 00:00:00"));
String supplierAdminId="Pict11Supplier";
VOOrganization supplier=orgSetup.createOrganization(basicSetup.getPlatformOperatorUserKey(),supplierAdminId,"Pi... | See testcase #11 in BESBillingFactorCombinations.xlsx |
protected String loadSourceCode(URL sourceUrl){
InputStreamReader isr=null;
CodeStyler cv=new CodeStyler();
String styledCode="<html><body bgcolor=\"#ffffff\"><pre>";
try {
isr=new InputStreamReader(sourceUrl.openStream(),"UTF-8");
BufferedReader reader=new BufferedReader(isr);
String line=reader.re... | Reads the java source file at the specified URL and returns an HTML version stylized for display |
public static DateFormat toDateTimeFormat(String dateTimeFormat,TimeZone tz,Locale locale){
DateFormat df=null;
if (UtilValidate.isEmpty(dateTimeFormat)) {
df=DateFormat.getDateTimeInstance(DateFormat.SHORT,DateFormat.MEDIUM,locale);
}
else {
df=new SimpleDateFormat(dateTimeFormat,locale == null ? Locale... | Returns an initialized DateFormat object. |
public void flushBuffer() throws IOException {
log.debug("flush buffer @ CompressionServletResponseWrapper");
((CompressionResponseStream)stream).flush();
}
| Flush the buffer and commit this response. |
public static double isLeftOfLine(Coordinate c0,Coordinate c1,Coordinate c2){
return (c2.x - c1.x) * (c0.y - c1.y) - (c0.x - c1.x) * (c2.y - c1.y);
}
| tests whether coordinate c0 is located left of the infinite vector that runs through c1 and c2 |
public SaturationFilter(float amount){
this.amount=amount;
canFilterIndexColorModel=true;
}
| Construct a SaturationFilter. The amount of saturation change. |
public JythonScript(Document doc){
super(doc);
}
| Initializes the script. |
public int v1(){
return v1;
}
| Returns the first element (integer). |
private void deleteStorePath(){
FileFactory.FileType fileType=FileFactory.getFileType(this.hdfsStorePath);
CarbonFile carbonFile=FileFactory.getCarbonFile(this.hdfsStorePath,fileType);
deleteRecursiveSilent(carbonFile);
}
| this method will delete the store path |
public Object runSafely(Catbert.FastStack stack) throws Exception {
String s=getString(stack);
PseudoMenu currUI=(stack.getUIMgrSafe() == null) ? null : stack.getUIMgrSafe().getCurrUI();
if (currUI != null) currUI.repaintByWidgetName(s);
return null;
}
| Finds the Widget on the current menu who's name matches the argument and then redraws all UI elements, and their children for this Widget |
public static PsiClass findClass(PsiElement element){
return (element instanceof PsiClass) ? (PsiClass)element : PsiTreeUtil.getParentOfType(element,PsiClass.class);
}
| Returns the parent class of element. If element is a class, it returns element. If element is null, it returns null. |
public TDoubleHashSet(int initialCapacity){
super(initialCapacity);
}
| Creates a new <code>TDoubleHashSet</code> instance with a prime capacity equal to or greater than <tt>initialCapacity</tt> and with the default load factor. |
public static CWindowManager instance(){
return m_instance;
}
| Returns the only valid instance of the window manager class. |
@SideEffectFree public XMLStreamException(@Nullable String msg,Location location){
super("ParseError at [row,col]:[" + location.getLineNumber() + ","+ location.getColumnNumber()+ "]\n"+ "Message: "+ msg);
this.location=location;
}
| Construct an exception with the assocated message, exception and location. |
private boolean hasTargetConnection(){
return (this.target != null);
}
| Return whether the proxy currently holds a target Connection. |
public TemporalOMGraphicList(List<OMGraphic> list){
super(list);
}
| Construct an TemporalOMGraphicList around a List of OMGraphics. The TemporalOMGraphicList assumes that all the objects on the list are OMGraphics, and never does checking. Live with the consequences if you put other stuff in there. |
public XmlChecker(){
m_domParser=null;
m_onlyCheckValidity=true;
m_infoMsg=null;
m_valid=true;
}
| Construye un objeto de la clase. |
public boolean isDeclaredProvidedByRuntime(){
return declaredProvidedByRuntime;
}
| <!-- begin-user-doc --> <!-- end-user-doc --> |
protected static void validateDocuments(Map documents) throws ValidationException {
if (documents != null) {
for (Iterator itDoc=documents.keySet().iterator(); itDoc.hasNext(); ) {
String key=(String)itDoc.next();
FlushFdrDocument document=(FlushFdrDocument)documents.get(key);
if (document.getDo... | Metodo que valida los documentos |
public static MockMotor runningMotor(double speed){
return new MockMotor(speed);
}
| Create a running mock motor. |
private void processStart(final State current){
try {
if (!isFinalStage(current)) {
TaskUtils.sendSelfPatch(this,buildPatch(current.taskState.stage,null));
}
}
catch ( Throwable e) {
failTask(e);
}
}
| Does any additional processing after the start operation has been completed. |
@Override public BlockConsistencyGroupBulkRep queryBulkResourceReps(final List<URI> ids){
Iterator<BlockConsistencyGroup> _dbIterator=_dbClient.queryIterativeObjects(getResourceClass(),ids);
return new BlockConsistencyGroupBulkRep(BulkList.wrapping(_dbIterator,MapBlockConsistencyGroup.getInstance(_dbClient)));
}
| Retrieve volume representations based on input ids. |
public void runTest() throws Throwable {
Document doc;
NodeList testList;
Node commentNode;
String commentNodeName;
int nodeType;
doc=(Document)load("hc_staff",false);
testList=doc.getChildNodes();
for (int indexN10040=0; indexN10040 < testList.getLength(); indexN10040++) {
commentNode=(Node)testLis... | Runs the test case. |
public AVTPartSimple(String val){
m_val=val;
}
| Construct a simple AVT part. |
private void formatCheck(Formatter formatter) throws IOException {
List<File> problemFiles=new ArrayList<>();
for ( File file : target) {
getLogger().debug("Checking format on " + file);
if (!formatter.isClean(file)) {
problemFiles.add(file);
}
}
if (paddedCell) {
PaddedCellTaskMisc.check... | Checks the format. |
private static void generateGraph(IDataProcessStatus schmaModel,SchemaInfo info,String tableName,String partitionID,CarbonDataLoadSchema schema,String factStoreLocation,int currentRestructNumber,List<LoadMetadataDetails> loadMetadataDetails) throws GraphGeneratorException {
DataLoadModel model=new DataLoadModel();
... | generate graph |
public String globalInfo(){
return "Simple plain text format that places one statistcs result per line, as tab-separated " + "key-value pairs (separated by '=').";
}
| Description to be displayed in the GUI. |
public void accept(IBalancedVisitor<K,V> visitor){
if (root == null) return;
accept(null,root,visitor);
}
| Accept a visitor for a inorder traversal. |
public static void copyFolder(File srcFolder,File destFolder) throws CoreException, IOException {
for ( File file : srcFolder.listFiles()) {
if (file.isDirectory()) {
copyFolder(file,new File(destFolder.getAbsolutePath() + File.separator + file.getName()));
}
else {
ResourceUtils.copyFile(file,n... | Copies all the contents of srcFolder to destFolder. |
public String addStepsForMigrateVolumes(Workflow workflow,URI vplexURI,URI virtualVolumeURI,List<URI> targetVolumeURIs,Map<URI,URI> migrationsMap,Map<URI,URI> poolVolumeMap,URI newVpoolURI,URI newVarrayURI,boolean suspendBeforeCommit,boolean suspendBeforeDeleteSource,String opId,String waitFor) throws InternalException... | Adds steps in the passed workflow to migrate a volume. |
public void removeDragSourceMotionListener(DragSourceMotionListener dsml){
if (dsml != null) {
synchronized (this) {
motionListener=DnDEventMulticaster.remove(motionListener,dsml);
}
}
}
| Removes the specified <code>DragSourceMotionListener</code> from this <code>DragSource</code>. If a <code>null</code> listener is specified, no action is taken and no exception is thrown. If the listener specified by the argument was not previously added to this <code>DragSource</code>, no action is taken and no except... |
public static Box computeBoundingBox(Iterable<? extends Vec4> points){
if (points == null) {
String msg=Logging.getMessage("nullValue.PointListIsNull");
Logging.logger().severe(msg);
throw new IllegalArgumentException(msg);
}
Vec4[] axes=WWMath.computePrincipalAxes(points);
if (axes == null) {
S... | Compute a <code>Box</code> that bounds a specified list of points. Principal axes are computed for the points and used to form a <code>Box</code>. |
public void bindAllArgsAsStrings(String[] bindArgs){
if (bindArgs != null) {
for (int i=bindArgs.length; i != 0; i--) {
bindString(i,bindArgs[i - 1]);
}
}
}
| Given an array of String bindArgs, this method binds all of them in one single call. |
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. |
@Override protected void keyTyped(char par1,int par2){
if (par2 == 28 || par2 == 156) actionPerformed((GuiButton)buttonList.get(0));
}
| Fired when a key is typed. This is the equivalent of KeyListener.keyTyped(KeyEvent e). |
public boolean isValidAction(String action){
String[] options=getActionOptions();
for (int i=0; i < options.length; i++) {
if (options[i].equals(action)) return true;
}
return false;
}
| Is The Action Valid based on current state |
public static <T,A>ReaderTValue<T,A> of(final AnyMValue<Reader<T,A>> monads){
return new ReaderTValue<>(monads);
}
| Construct an MaybeT from an AnyM that wraps a monad containing Maybes |
@Override public Object createSerializableMapKeyInfo(Object key,AbstractSession session){
return key;
}
| INTERNAL: Creates the Array of simple types used to recreate this map. |
public Complex(double real,double imag){
re=real;
im=imag;
}
| Initializes a complex number from the specified real and imaginary parts. |
public EsriPolylineMList(int initialCapacity){
super(initialCapacity);
}
| Construct an EsriPolylineList with an initial capacity. |
public void runTest() throws Throwable {
Document doc;
NodeList elementList;
Node nameNode;
CharacterData child;
String childData;
doc=(Document)load("staff",true);
elementList=doc.getElementsByTagName("name");
nameNode=elementList.item(0);
child=(CharacterData)nameNode.getFirstChild();
child.insert... | Runs the test case. |
public void close(){
if (file != null) {
try {
trace("close",name,file);
file.close();
}
catch ( IOException e) {
throw DbException.convertIOException(e,name);
}
finally {
file=null;
}
}
}
| Close the file. |
public String post(String request,String content) throws IOException {
HttpPost httpPost=new HttpPost(getBaseURL() + request);
httpPost.setEntity(new StringEntity(content,ContentType.create("application/json",StandardCharsets.UTF_8)));
return getResponse(httpPost);
}
| Processes a POST request using a URL path (with no context path) + optional query params, e.g. "/schema/fields/newfield", PUTs the given content, and returns the response content. |
private void clearCachedValues(){
cachedTemplateNumberFormats=null;
cachedTemplateNumberFormat=null;
cachedTempDateFormatArray=null;
cachedTempDateFormatsByFmtStrArray=null;
cachedCollator=null;
cachedURLEscapingCharset=null;
cachedURLEscapingCharsetSet=false;
}
| Deletes cached values that meant to be valid only during a single template execution. |
private static List<BillingResult> createBillingResults(){
createBillingResultDataMock();
billingResults=new LinkedList<BillingResult>();
for (long subscriptionKey=1; subscriptionKey <= NUMBER_SUBSCRIPTIONS; subscriptionKey++) {
BillingResult billingResult=new BillingResult();
billingResult.setKey(10000 +... | Output of the first run |
public double entropyConditionalFirst(){
return (entropyJoint() - entropySecond());
}
| Get the conditional entropy of the first clustering. (not normalized, 0 = equal) |
public static void dispatchSocketTimeout(final boolean forceCloseSocket,final List<ISpeedTestListener> listenerList,final boolean isDownload,final String errorMessage){
if (!forceCloseSocket) {
if (isDownload) {
for (int i=0; i < listenerList.size(); i++) {
listenerList.get(i).onDownloadError(SpeedT... | dispatch socket timeout error. |
public static void checkTimestamp(Timestamp expected,IonValue actual){
checkType(IonType.TIMESTAMP,actual);
IonTimestamp v=(IonTimestamp)actual;
Timestamp actualTime=v.timestampValue();
if (expected == null) {
assertTrue("expected null value",v.isNullValue());
assertNull(actualTime);
}
else {
ass... | Checks that the value is an IonTimestamp with the given value. |
protected void read(UCharacterProperty ucharppty) throws IOException {
int count=INDEX_SIZE_;
m_propertyOffset_=m_dataInputStream_.readInt();
count--;
m_exceptionOffset_=m_dataInputStream_.readInt();
count--;
m_caseOffset_=m_dataInputStream_.readInt();
count--;
m_additionalOffset_=m_dataInputStream_.rea... | <p>Reads uprops.icu, parse it into blocks of data to be stored in UCharacterProperty.</P |
public LogStreamMerger(LogRequest req,LogSvcPropertiesLoader propertiesLoader){
logger.trace("LogStreamMerger()");
this.request=req;
LogFileFinder fileFinder=new LogFileFinder(propertiesLoader.getLogFilePaths(),propertiesLoader.getExcludedLogFilePaths());
Map<String,List<File>> groupedLogFiles=fileFinder.findFi... | Merges all logs on this node based on time stamp |
public static void load(final AbstractSQLProvider provider,final INaviView view,final List<INaviViewNode> nodes,final List<? extends INaviModule> modules) throws SQLException, CPartialLoadException {
Preconditions.checkNotNull(provider,"Error: provider argument can not be null");
Preconditions.checkNotNull(view,"Er... | Loads the code nodes of a view. |
static void FindPfStepTokens(Token[][] toks){
for (int k=0; k < toks.length; k++) {
Token[] input=toks[k];
Vector outputVec=new Vector(input.length);
int i=0;
while (i < input.length) {
if ((i < input.length - 2) && (input[i].string.equals("<")) && (input[i + 1].column == input[i].column + 1)&& ... | The method FindPfStepTokens replaces each sequence of three to five tokens created by TokenizeSpec for something like "<42>" or "<42>1a." into a single token of type PF_STEP. |
@Override public String toString(){
return value + " " + unit;
}
| Gets the standard string representation for such an object: <code>value " " unit</code> |
public int findRowIndex(String value,String columnName){
return findRowIndex(value,getColumnIndex(columnName));
}
| Return the row that contains the first String that matches. |
@DSSafe(DSCat.SAFE_LIST) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-08-13 13:14:22.051 -0400",hash_original_method="F7B998F5AE180E31090E44B8A03A92F7",hash_generated_method="08FF0ED30143F58CAB4DEB62E6201927") @Override public boolean equals(Object obj){
return (obj == this);
}
| Compares this factory with an object. There is only one instance of this class. |
public CModuleConfiguration(final INaviModule module,final SQLProvider provider,final ListenerProvider<IModuleListener> listeners,final int moduleId,final String name,final String comment,final Date creationDate,final Date modificationDate,final String md5,final String sha1,final IAddress fileBase,final IAddress imageB... | Creates a new configuration object. |
public static TranBlob createBlob(byte[] bytes){
return new TranBlob(new BlobImpl(bytes),false);
}
| Create a new <tt>Blob</tt>. The returned object will be initially immutable. |
public DailyTimeIntervalScheduleBuilder onDaysOfTheWeek(Integer... onDaysOfWeek){
Set<Integer> daysAsSet=new HashSet<Integer>(12);
Collections.addAll(daysAsSet,onDaysOfWeek);
return onDaysOfTheWeek(daysAsSet);
}
| Set the trigger to fire on the given days of the week. |
public ImmutableMultimap<State,Service> servicesByState(){
return state.servicesByState();
}
| Provides a snapshot of the current state of all the services under management. <p>N.B. This snapshot is guaranteed to be consistent, i.e. the set of states returned will correspond to a point in time view of the services. |
public void removeArchive(final int index){
this.archives.removeArchive(index);
}
| Removes the specified archive from the archive registry. |
public boolean isSetHeader(){
return this.header != null;
}
| Returns true if field header is set (has been assigned a value) and false otherwise |
public static void Init(PcalCharReader charR){
addedLabels=new Vector();
addedLabelsLocs=new Vector();
nextLabelNum=1;
charReader=charR;
allLabels=new Hashtable();
hasLabel=false;
hasDefaultInitialization=false;
currentProcedure=null;
procedures=new Vector();
pSyntax=false;
cSyntax=false;
plusLa... | This performs the initialization needed by the various Get... methods, including setting charReader. It is called only by GetAlgorithm. It's been made into a separate method for debugging, so the various Get methods can be tested without calling GetAlgorithm. ... |
public void removeAll(){
ioObjects.clear();
}
| Removes all Objects from this IOContainer. |
static MediaType createAudioType(String subtype){
return create(AUDIO_TYPE,subtype);
}
| Creates a media type with the "audio" type and the given subtype. |
protected IOContext _createContext(Object srcRef,boolean resourceManaged){
return new IOContext(_getBufferRecycler(),srcRef,resourceManaged);
}
| Overridable construction method that actually instantiates desired generator. |
public QueryExpression(){
super();
}
| Create a new QueryExpression. |
protected void parseq() throws ParseException, IOException {
current=reader.read();
skipSpaces();
boolean expectNumber=true;
for (; ; ) {
switch (current) {
default :
if (expectNumber) reportUnexpected(current);
return;
case '+':
case '-':
case '.':
case '0':
case '1':
case '2':
case '3':
case '... | Parses a 'q' command. |
public Mark popStream(){
if (includeStack.size() <= 0) {
return null;
}
IncludeState state=includeStack.pop();
cursor=state.cursor;
line=state.line;
col=state.col;
fileid=state.fileid;
fileName=state.fileName;
baseDir=state.baseDir;
stream=state.stream;
return this;
}
| /* Restores this mark's state to a previously stored stream. |
public Matrix4d shadow(Vector4dc light,double a,double b,double c,double d){
return shadow(light.x(),light.y(),light.z(),light.w(),a,b,c,d,this);
}
| Apply a projection transformation to this matrix that projects onto the plane specified via the general plane equation <tt>x*a + y*b + z*c + d = 0</tt> as if casting a shadow from a given light position/direction <code>light</code>. <p> If <tt>light.w</tt> is <tt>0.0</tt> the light is being treated as a directional lig... |
private static boolean isGooglePlayServicesLatest(){
return findTextView("Google Play services") == null;
}
| Checks whether the Google Play Services need update. |
public void removeLineHighlight(Object tag){
if (lineHighlightManager != null) {
lineHighlightManager.removeLineHighlight(tag);
}
}
| Removes a line highlight. |
public Ed25519EncodedFieldElement multiplyAndAddModQ(final Ed25519EncodedFieldElement b,final Ed25519EncodedFieldElement c){
final long a0=0x1FFFFF & threeBytesToLong(this.values,0);
final long a1=0x1FFFFF & (fourBytesToLong(this.values,2) >> 5);
final long a2=0x1FFFFF & (threeBytesToLong(this.values,5) >> 2);
... | Multiplies this encoded field element with another and adds a third. The result is reduced modulo the group order. <br> See the comments in the method modQ() for an explanation of the algorithm. |
public AccountHeaderBuilder withProfiles(@NonNull ArrayList<IProfile> profiles){
this.mProfiles=IdDistributor.checkIds(profiles);
return this;
}
| set the arrayList of DrawerItems for the drawer |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.