code stringlengths 10 174k | nl stringlengths 3 129k |
|---|---|
public static void offerBusyBox(Activity activity){
getInternals().offerBusyBox(activity);
}
| This will launch the Android market looking for BusyBox |
public static Short[] valuesOf(short[] array){
Short[] dest=new Short[array.length];
for (int i=0; i < array.length; i++) {
dest[i]=Short.valueOf(array[i]);
}
return dest;
}
| Converts to object array. |
public void beforeAggregation(StructDescription desc,List<StructFieldDeclaration> fieldDecls){
}
| Last chance to remove field declarations |
public static double max(double... numbers){
if (numbers.length < 1) {
throw new IllegalArgumentException();
}
double max=numbers[0];
for (int i=1; i < numbers.length; i++) {
if (numbers[i] > max) {
max=numbers[i];
}
}
return max;
}
| Returns the biggest number contained in the provided array. |
public void endVisit(EnumConstantDeclaration node){
}
| End of visit the given type-specific AST node. <p> The default implementation does nothing. Subclasses may reimplement. </p> |
public final double SFEntropyGain(){
return m_delegate.SFEntropyGain();
}
| Returns the total SF, which is the null model entropy minus the scheme entropy. |
public void testStringArrayToNumber(){
IntegerConverter intConverter=new IntegerConverter();
ArrayConverter arrayConverter=new ArrayConverter(int[].class,intConverter);
String[] array=new String[]{"10"," 11","12 "," 13 "};
ArrayList list=new ArrayList();
for (int i=0; i < array.length; i++) {
list.add... | Test Converting a String[] to integer array (with leading/trailing whitespace) |
private PrincipalId updateSolutionUserDetail(String tenantName,String accountName,SolutionDetail detail) throws Exception {
try {
ValidateUtil.validateNotEmpty(tenantName,"tenantName");
ServerUtils.validateNotEmptyUsername(accountName);
ValidateUtil.validateNotNull(detail,"solution user detail");
Vali... | Updates a service principal account in the tenant The service principal will be located in the system domain of the tenant |
public InjectedAuthenticationProvider(JDBCInjectorProvider injectorProvider,Class<? extends AuthenticationProviderService> authProviderServiceClass) throws GuacamoleException {
Injector injector=injectorProvider.get();
authProviderService=injector.getInstance(authProviderServiceClass);
}
| Creates a new AuthenticationProvider that delegates all calls to an underlying AuthenticationProviderService. The behavior of the AuthenticationProvider is defined by the given AuthenticationProviderService implementation, which will be injected by the Guice Injector provided by the given JDBCInjectorProvider. |
public Period withFields(ReadablePeriod period){
if (period == null) {
return this;
}
int[] newValues=getValues();
newValues=super.mergePeriodInto(newValues,period);
return new Period(newValues,getPeriodType());
}
| Creates a new Period instance with the fields from the specified period copied on top of those from this period. <p> This period instance is immutable and unaffected by this method call. |
public boolean isAllNodesDoneInstallation(){
return actionListener.getTask().isClusterInstallDone();
}
| Checks if all nodes in the cluster finish local installation/configuration. |
public T caseInfoModelPropertySource(InfoModelPropertySource object){
return null;
}
| Returns the result of interpreting the object as an instance of '<em>Info Model Property Source</em>'. <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> |
public final String yytext(){
return new String(zzBuffer,zzStartRead,zzMarkedPos - zzStartRead);
}
| Returns the text matched by the current regular expression. |
protected void locate(){
int i;
m_Attributes=new BitSet(m_AllowedIndices.length);
m_Locators=new ArrayList<AttributeLocator>();
for (i=0; i < m_AllowedIndices.length; i++) {
if (m_Data.attribute(m_AllowedIndices[i]).type() == Attribute.RELATIONAL) m_Locators.add(new AttributeLocator(m_Data.attribute(m_A... | sets up the structure |
void postInit(XCreateWindowParams params){
if (log.isLoggable(PlatformLogger.Level.FINE)) {
log.fine("WM name is " + getWMName());
}
updateWMName();
initClientLeader();
}
| Called after window creation, descendants should override to initialize Window with class-specific values and perform post-initialization actions. |
public void addRequire(final String require){
if (require != null && require.trim().length() > 0) {
requires.add(require.trim());
}
}
| Adds a ruby require to the ruby script to be run by this RubySassEngine. It's safe to add the same require twice. |
public TypeReference(int typeRef){
this.value=typeRef;
}
| Creates a new TypeReference. |
public static boolean isNormal(GeoTimeSerie gts,int buckets,double pcterror,boolean bessel){
if (0 == gts.values) {
return true;
}
if (TYPE.DOUBLE != gts.type && TYPE.LONG != gts.type) {
return false;
}
double[] musigma=musigma(gts,bessel);
double mu=musigma[0];
double sigma=musigma[1];
if (0.0D... | Determine if a GTS' values are normally distributed. Works for numerical GTS only |
public IndexedColor(PDFColorSpace base,int count,PDFObject stream) throws IOException {
count++;
this.count=count;
byte[] data=stream.getStream();
int nchannels=base.getNumComponents();
boolean offSized=(data.length / nchannels) < count;
table=new int[count];
float comps[]=new float[nchannels];
int loc=... | create a new IndexColor PDFColorSpace based on another PDFColorSpace, a count of colors, and a stream of values. Every consecutive n bytes of the stream is interpreted as a color in the base ColorSpace, where n is the number of components in that color space. |
private void generateDependenciesForExtension(SourceWriter sw,JClassType extension) throws UnableToCompleteException {
if (extension.getConstructors().length == 0) {
throw new UnableToCompleteException();
}
sw.println("List<DependencyDescription> deps = new ArrayList<>();");
JConstructor jConstructor=extens... | Writes dependency gathering code, like: <p/> Array<DependencyDescription> deps = Collections.<DependencyDescription> createArray(); deps.add(new DependencyDescription("ide.api.ui.menu", "")); deps.add(new DependencyDescription("extension.demo", "1.0.0-alpha")); |
public void clear(){
super.clear();
while (queue.poll() != null) {
}
}
| Clears this map. |
public ChatMessage(final String source,final String message,final String timestamp,final String messagetype){
this.source=source;
this.message=message;
this.timestamp=timestamp;
this.messagetype=messagetype;
}
| a chat message from a source at a time. |
private static void decodeTextSegment(BitSource bits,StringBuilder result) throws FormatException {
boolean upperShift=false;
int[] cValues=new int[3];
int shift=0;
do {
if (bits.available() == 8) {
return;
}
int firstByte=bits.readBits(8);
if (firstByte == 254) {
return;
}
p... | See ISO 16022:2006, 5.2.6 and Annex C, Table C.2 |
private void waitForNoResults(int maxTimeLimitSeconds,SolrParams params) throws SolrServerException, InterruptedException, IOException {
final TimeOut timeout=new TimeOut(maxTimeLimitSeconds,TimeUnit.SECONDS);
long numFound=cluster.getSolrClient().query(COLLECTION,params).getResults().getNumFound();
while (0L < n... | Executes a query over and over against the cloudClient every 5 seconds until the numFound is 0 or the maxTimeLimitSeconds is exceeded. Query is guaranteed to be executed at least once. |
public boolean add(E e){
hashCodeUpToDate=false;
ensureCapacityInternal(size + 1);
elementData[size++]=e;
return true;
}
| Appends the specified element to the end of this list. |
@Override public void configureZone(StendhalRPZone zone,Map<String,String> attributes){
buildSemosNorthPlainsArea(zone);
}
| Configure a zone. |
@Override public boolean equals(Object o){
return (o instanceof RuleOutput && effects.equals(((RuleOutput)o).effects));
}
| Returns true if the object is a identical rule case, and false otherwise. |
public String post(Context context,String url,RequestParams params) throws HttpException {
return post(context,url,paramsToEntity(params),null);
}
| Perform a HTTP POST request and track the Android Context which initiated the request. |
public void removeOrderedHandler(Object topic){
if (orderedHandlers.remove(topic) != null) {
cctx.gridIO().removeMessageListener(topic);
if (log != null && log.isDebugEnabled()) log.debug("Unregistered ordered cache communication handler for topic:" + topic);
}
else if (log != null) U.warn(log,"Fai... | Removed ordered message handler. |
public static SecurityServerId create(String xRoadInstance,String memberClass,String memberCode,String serverCode){
validateField("xRoadInstance",xRoadInstance);
validateField("memberClass",memberClass);
validateField("memberCode",memberCode);
validateField("serverCode",serverCode);
return new SecurityServerI... | Factory method for creating a new SecurityServerId. |
public static void main(String[] args){
Scanner input=new Scanner(System.in);
double[] numbers=new double[10];
System.out.print("Enter ten numbers: ");
for (int i=0; i < numbers.length; i++) {
numbers[i]=input.nextDouble();
}
System.out.println("The minimum number is: " + min(numbers));
}
| Main method |
public String evaluatorTipText(){
return "Determines how attributes/attribute subsets are evaluated.";
}
| Returns the tip text for this property |
public static double computeOverlaySnapTolerance(Geometry g){
double snapTolerance=computeSizeBasedSnapTolerance(g);
PrecisionModel pm=g.getPrecisionModel();
if (pm.getType() == PrecisionModel.FIXED) {
double fixedSnapTol=(1 / pm.getScale()) * 2 / 1.415;
if (fixedSnapTol > snapTolerance) snapTolerance... | Estimates the snap tolerance for a Geometry, taking into account its precision model. |
@Override public void updateDate(int columnIndex,Date x) throws SQLException {
try {
if (isDebugEnabled()) {
debugCode("updateDate(" + columnIndex + ", x);");
}
update(columnIndex,x == null ? (Value)ValueNull.INSTANCE : ValueDate.get(x));
}
catch ( Exception e) {
throw logAndConvert(e);
}
... | Updates a column in the current or insert row. |
public void write(PrintStream stream){
this.output=stream;
dispatch(base,false);
stream.flush();
}
| Writes the error to the specified <code>PrintStream</code>. |
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-09-18 12:05:54.606 -0400",hash_original_method="FD2BA800170C8DC42E379DABFFB5EFE5",hash_generated_method="B239975B85A9B21DC60FCDFB76323183") public static ActivityOptionsCompat makeCustomAnimation(Context context,int enterResId,int exitResId){
... | Create an ActivityOptions specifying a custom animation to run when the activity is displayed. |
public void clear(){
m_textArea.setText("");
}
| Clears the output area. |
public String outlierFactorTipText(){
return "The factor for determining the thresholds for outliers.";
}
| Returns the tip text for this property |
void writeTo(OutputStream out) throws IOException {
flush();
ByteArrayOutputStream byteOut=(ByteArrayOutputStream)this.out;
byteOut.writeTo(out);
byteOut.reset();
}
| Writes contents of the internal byte array stream to the stream passed in. |
public static InputStream fromInputStream(InputStream src,StatsLogger statsLogger) throws IOException {
src.mark(VERSION_LENGTH);
byte version=new DataInputStream(src).readByte();
src.reset();
EnvelopedEntry entry=new EnvelopedEntry(version,statsLogger);
entry.readFully(new DataInputStream(src));
return new... | Return an InputStream that reads from the provided InputStream, decompresses the data and returns a new InputStream wrapping the underlying payload. Note that src is modified by this call. |
public static long[] join(long[] arrayA,long... arrayB){
if ((arrayB == null) || (arrayB.length == 0)) {
return arrayA;
}
if ((arrayA == null) || (arrayA.length == 0)) {
return arrayB;
}
long[] array=new long[arrayA.length + arrayB.length];
System.arraycopy(arrayA,0,array,0,arrayA.length);
System.... | Joins 2 arrays together, if any array is null or empty then other array will be retuned without coping anything. |
private void instrumentForms(final InstrumentationClassFinder finder){
final ArrayList formsToInstrument=myFormFiles;
if (formsToInstrument.size() == 0) {
log("No forms to instrument found",Project.MSG_VERBOSE);
return;
}
final HashMap class2form=new HashMap();
for (int i=0; i < formsToInstrument.size... | Instrument forms |
public static String bytesToHex(byte[] bytes){
char[] hexChars=new char[bytes.length * 2];
for (int j=0; j < bytes.length; j++) {
int v=bytes[j] & 0xFF;
hexChars[j * 2]=hexArray[v >>> 4];
hexChars[j * 2 + 1]=hexArray[v & 0x0F];
}
return new String(hexChars);
}
| conver bytes to hex string |
public void addLineNumber(char startPc,char lineNumber){
if (lineDebugInfo) {
if (lineInfo.nonEmpty() && lineInfo.head[0] == startPc) lineInfo=lineInfo.tail;
if (lineInfo.isEmpty() || lineInfo.head[1] != lineNumber) lineInfo=lineInfo.prepend(new char[]{startPc,lineNumber});
}
}
| Add a line number entry. |
public boolean isAcceptable(GeneralName gname){
if (this.tag != gname.getTag()) {
return false;
}
switch (this.tag) {
case RFC822_NAME:
return ((String)gname.getName()).toLowerCase(Locale.US).endsWith(((String)name).toLowerCase(Locale.US));
case DNS_NAME:
String dns=(String)name;
String _dns=(String)gname... | Checks if the other general name is acceptable by this object. The name is acceptable if it has the same type name and its name value is equal to name value of this object. Also the name is acceptable if this general name object is a part of name constraints and the specified name is satisfied the restriction provided ... |
public ObjectStreamConnection(String host,int port,int id){
super(host,port,id);
}
| Creates new Client connection |
public SmoothMoves(){
cycleStart=System.nanoTime() / 1000000;
startTimer(currentResolution);
}
| Creates a new instance of SmoothAnimation |
public static void initUrbanSimZoneWriter(){
try {
log.info("Initializing UrbanSimParcelCSVWriter ...");
parcelWriter=IOUtils.getBufferedWriter(InternalConstants.MATSIM_4_OPUS_TEMP + FILE_NAME);
log.info("Writing data into " + InternalConstants.MATSIM_4_OPUS_TEMP + FILE_NAME+ " ...");
parcelWriter.wri... | writes the header for zones csv file |
public dt removeElement(String hashcode){
removeElementFromRegistry(hashcode);
return (this);
}
| Removes an Element from the element. |
public static QueryStorageLuns parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception {
QueryStorageLuns object=new QueryStorageLuns();
int event;
java.lang.String nillableValue=null;
java.lang.String prefix="";
java.lang.String namespaceuri="";
try {
while (!reader.isStartElement() &... | static method to create the object Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable If this object is not an element, it is a complex type and the reader is at the event just after the outer start element Postcondition: If t... |
private boolean compareAndDecrementWorkerCount(int expect){
return ctl.compareAndSet(expect,expect - 1);
}
| Attempts to CAS-decrement the workerCount field of ctl. |
public static int extractHighSignedNibble(int value){
return (value << 24) >> 28;
}
| Extracts the high signed 4-bit nibble from the least significant byte of the given value |
@Override public boolean needsMaterialization(){
return false;
}
| Because we this is a fully inlined URI, we do not need the materialized URI to answer the URI interface methods. |
@Override public synchronized void initialize(){
if (!mRootDirectory.exists()) {
if (!mRootDirectory.mkdirs()) {
VolleyLog.e("Unable to create cache dir %s",mRootDirectory.getAbsolutePath());
}
return;
}
File[] files=mRootDirectory.listFiles();
if (files == null) {
return;
}
for ( Fil... | Initializes the DiskBasedCache by scanning for all files currently in the specified root directory. Creates the root directory if necessary. |
public static AnnotationMirror buildAnnoMirrorWithSpecificPrefix(final ProcessingEnvironment env,final Class<? extends Annotation> annoClass,final Prefix p){
if (env == null || annoClass == null || p == null) {
return null;
}
AnnotationBuilder builder=new AnnotationBuilder(env,annoClass);
builder.setValue("... | Creates an AnnotationMirror representing a unit defined by annoClass, with the specific Prefix p |
private int handleGH(String value,DoubleMetaphoneResult result,int index){
if (index > 0 && !isVowel(charAt(value,index - 1))) {
result.append('K');
index+=2;
}
else if (index == 0) {
if (charAt(value,index + 2) == 'I') {
result.append('J');
}
else {
result.append('K');
}
ind... | Handles 'GH' cases |
@Override public void execute(org.apache.commons.exec.CommandLine cmd,Map<String,String> env,ExecuteResultHandler erh) throws IOException {
int code=execute(cmd);
if (code != 0) throw new RuntimeException("Failed to execute cmd: " + joinArgs(cmd.getArguments()));
}
| Override the call to execute a command asynchronously to occur synchronously during a unit test. |
public void updateTimeout(int newValue){
this.timeout=newValue;
}
| Used to update the timeout when a durable client comes back to a server |
public boolean containsProperty(String name){
return properties.containsKey(name);
}
| Check if a directly owned property with the given name exists in the view. |
private void initializeLiveAttributes(){
method=createLiveAnimatedEnumeration(null,SVG_METHOD_ATTRIBUTE,METHOD_VALUES,(short)1);
spacing=createLiveAnimatedEnumeration(null,SVG_SPACING_ATTRIBUTE,SPACING_VALUES,(short)2);
startOffset=createLiveAnimatedLength(null,SVG_START_OFFSET_ATTRIBUTE,SVG_TEXT_PATH_START_OFFSE... | Initializes the live attribute values of this element. |
private void clearComposeState(){
m_composeState=null;
}
| Clear the compose state. |
public static boolean isSubclass(Class<?> superclass,Class<?> otherclass){
Class<?> currentclass;
boolean result;
result=false;
currentclass=otherclass;
do {
result=currentclass.equals(superclass);
if (currentclass.equals(Object.class)) {
break;
}
if (!result) {
currentclass=curren... | Checks whether the "otherclass" is a subclass of the given "superclass". |
private void updateErrorSections(){
HttpServletRequest request=JSFUtils.getRequest();
Set<?> sectionsToExpand=(Set<?>)request.getAttribute(SECTIONS_TO_EXPAND);
if (sectionsToExpand != null) {
for ( Object o : sectionsToExpand) {
put(o.toString(),Boolean.TRUE.toString());
}
}
}
| Check if sections should be expanded due to an error. |
public SVGOMTitleElement(String prefix,AbstractDocument owner){
super(prefix,owner);
}
| Creates a new SVGOMTitleElement object. |
public static InsertIntoClause create(String streamName,String... columns){
return new InsertIntoClause(streamName,columns);
}
| Creates the insert-into clause. |
public BuildImageParams withDoForcePull(boolean doForcePull){
this.doForcePull=doForcePull;
return this;
}
| Adds force flag to this parameters. |
public void afterPropertiesSet() throws Exception {
String platform=System.getProperty("os.name");
if (platformPrefixMappings != null) {
platformPrefix=(String)platformPrefixMappings.get(platform);
}
if (platformPrefix == null) {
platformPrefix=(String)DEFAULT_PLATFORM_PREFIX_MAPPINGS.get(platform);
}... | Attempt to determine the prefix to use for this platform. First check any user defined prefix mappings. If no match then check the default platform mappings. |
private StyledAttributesUtils(){
}
| non instantiable class. |
public boolean canChangeWarehouse(){
if (getQtyDelivered().signum() != 0) {
log.saveError("Error",Msg.translate(getCtx(),"QtyDelivered") + "=" + getQtyDelivered());
return false;
}
if (getQtyReserved().signum() != 0) {
log.saveError("Error",Msg.translate(getCtx(),"QtyReserved") + "=" + getQtyReserved(... | Can Change Warehouse |
public QueryService limit(Integer limit){
this.limit=limit;
return this;
}
| Setting the limit value. |
public void addLeaf(CatalogTreeLeaf leaf){
_leaves.add(leaf);
}
| Append leaf to the end of the leaves list |
private List<Statistics> removeSucceeded(List<Statistics> statistics){
List<Statistics> result=new ArrayList<>();
for ( Statistics statistic : statistics) {
if (!statistic.getSucceeded()) result.add(statistic);
}
return result;
}
| Returns a list which contains the failed Statistic objects of the given statistics list |
public void renameDivider(int divId,String name) throws Exception {
m_fdr.getDocumentTree().renameDivider(divId,name);
}
| Modifica el nombre de un clasificador |
@Override protected boolean isSwitchFor(EPackage ePackage){
return ePackage == modelPackage;
}
| Checks whether this is a switch for the given package. <!-- begin-user-doc --> <!-- end-user-doc --> |
private Settings(){
}
| You are not supposed to instantiate this class. |
@RequestMapping(value="/businessObjectData/unregistered/invalidation",method=RequestMethod.POST,consumes={"application/xml","application/json"}) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DATA_UNREGISTERED_INVALIDATE) public BusinessObjectDataInvalidateUnregisteredResponse invalidateUnregisteredBusinessObjectData(@R... | Registers data as INVALID for objects which exist in S3 but are not registered in herd. <p> Requires WRITE permission on namespace </p> |
public String toString(){
String result;
int i;
result="";
for (i=0; i < m_Elements.size(); i++) {
if (i > 0) result+=".";
result+=m_Elements.get(i);
}
return result;
}
| returns the structure again as a dot-path |
public void evictAll(){
List<Connection> connections;
synchronized (this) {
connections=new ArrayList<Connection>(this.connections);
this.connections.clear();
}
for ( Connection connection : connections) {
Util.closeQuietly(connection);
}
}
| Close and remove all connections in the pool. |
@Override public void serviceAdded(ServiceEvent event){
synchronized (this) {
ServiceInfo info=event.getInfo();
if ((info != null) && (info.hasData())) {
_infos.put(event.getName(),info);
}
else {
String subtype=(info != null ? info.getSubtype() : "");
info=((JmDNSImpl)event.getDNS()).res... | A service has been added. |
public static TypesTree createPrototypeDndTypesTree(INaviFunction function,TypeManager typeManager){
Preconditions.checkNotNull(function,"Error: function argument can not be null");
Preconditions.checkNotNull(typeManager,"Error: typeManager argument can not be null");
final TypesTree typesTree=CreateDragAndDropTy... | Creates a types tree model, sets the model to only include the prototype of the corresponding function and install drag'n'drop support. |
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:28:38.480 -0500",hash_original_method="BF59FB26E066BD2B7E2B2FCD96B9B9F3",hash_generated_method="982BE1730A7A2D298BBB05287D16F5B6") static public void createDbFromSqlStatements(Context context,String dbName,int dbVersion,String sqlState... | Creates a db and populates it with the sql statements in sqlStatements. |
private void deleteManager(HttpServletRequest request,TimetableManagerForm frm){
sessionContext.checkPermission(frm.getUniqueId(),"TimetableManager",Right.TimetableManagerEdit);
TimetableManagerDAO mgrDao=new TimetableManagerDAO();
Session hibSession=mgrDao.getSession();
TimetableManager mgr=mgrDao.get(new Long... | Delete Manager |
public Builder entity(Entity entity){
if (entities == null) {
entities=new ArrayList<Entity>();
}
entities.add(entity);
return this;
}
| Adds an entity to the list of entities to be send as part of the request. |
public static <T>int upperBound(final List<T> valueList,int fromIdx,int toIdx,final Comparable<T> value){
int len=toIdx - fromIdx + (toIdx > fromIdx ? 1 : 0);
int from=fromIdx;
int half;
int middle;
while (len > 0) {
half=len >> 1;
middle=from;
middle=middle + half;
if (value.compareTo(valueLi... | This method is equivalent to C++ std:upper_bound function Returns an index pointing to the first element in the ordered collection which is greater than passed value |
@Override public double assortativity(Graph g){
SampledGraph graph=(SampledGraph)g;
double product=0;
double sum=0;
double squareSum=0;
double M=0;
for ( SampledEdge e : graph.getEdges()) {
SampledVertex v_i=e.getVertices().getFirst();
SampledVertex v_j=e.getVertices().getSecond();
if (v_i.isSa... | Calculated the Pearson correlation coefficient of the degrees on either end of all sampled edges, i.e., edges where both vertices are sampled. |
public GridStripedReadWriteLock(int concurrencyLevel){
locks=new ReadWriteLock[concurrencyLevel];
for (int i=0; i < concurrencyLevel; i++) locks[i]=new ReentrantReadWriteLock();
}
| Creates new instance with the given concurrency level (number of locks). |
@PUT @Path("internal/certificate-version") @Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON}) public Response incrementCertificateVersion() throws Exception {
PropertyInfoRestRep targetPropInfo=getTargetPropsCommon();
String versionStr=targetPropInfo.getProperty(CERTIFICATE_VERSION);
Integer versio... | Update system configuration properties |
private boolean waitForEnableToComplete(FunctionalAPIImpl port,ConsistencyGroupCopyUID groupCopy,ImageAccessMode accessMode,TimeFrame timeFrame) throws FunctionalAPIActionFailedException_Exception, FunctionalAPIInternalError_Exception, InterruptedException, RecoverPointException {
final int transactionTimeout=3 * MAX... | Wait for an enable image access to complete. |
public FileVirtualPoolRestRep create(FileVirtualPoolParam input){
return client.post(FileVirtualPoolRestRep.class,input,baseUrl);
}
| Creates a file virtual pool. <p> API Call: <tt>POST /file/vpools</tt> |
@Override public void mouseExited(MouseEvent e){
}
| This method cannot be called directly. |
private void fetchFolded(){
fetchBlockScalar('>');
}
| Fetch a folded scalar, denoted with a greater-than sign. This is the type best used for long content, such as the text of a chapter or description. |
@DSComment("Private Method") @DSBan(DSCat.PRIVATE_METHOD) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:59:01.594 -0500",hash_original_method="2F4529BDEA4C79E5E2F449E50272F3AC",hash_generated_method="9DF69ACE1D900389CAFBC50DAB16AEBE") private boolean isCarrierOtaSpNum(String dialS... | The following function checks if a dial string is a carrier specified OTASP number or not by checking against the OTASP number schema stored in PROPERTY_OTASP_NUM_SCHEMA. Currently, there are 2 schemas for carriers to specify the OTASP number: 1) Use system selection code: The schema is: SELC,the # of code pairs,min1,m... |
public APIConnectionException(String message){
super(message);
}
| Create APIConnectionException with message. |
public static float[][] calc(float[] xpoints,float[] ypoints,boolean geometryClosed){
return calc(xpoints,ypoints,geometryClosed,12);
}
| The proper access for these classes, using default steps. |
public static String toString(int[] a){
if (a == null) return "null";
int iMax=a.length - 1;
if (iMax == -1) return "[]";
StringBuilder b=new StringBuilder();
b.append('[');
for (int i=0; ; i++) {
b.append(a[i]);
if (i == iMax) return b.append(']').toString();
b.append(", ");
}
}
| Returns a string representation of the contents of the specified array. The string representation consists of a list of the array's elements, enclosed in square brackets (<tt>"[]"</tt>). Adjacent elements are separated by the characters <tt>", "</tt> (a comma followed by a space). Elements are converted to strings as... |
public void putStatusWord(long statusWord){
fInvalid=((statusWord & 1) == 1);
fDenormalized=((statusWord & 2) == 2);
fZeroDivide=((statusWord & 4) == 4);
fOverflow=((statusWord & 8) == 8);
fUnderflow=((statusWord & 16) == 16);
fPrecision=((statusWord & 32) == 32);
fStackFault=((statusWord & 64) == 64);
... | sets the FPU's flags from a given word value such as the one produced by getStatusWord(). |
public DeleteBlockStats checkDeleteBlocks(final AbstractJournal journal){
final DeleteBlockStats stats=new DeleteBlockStats();
final IIndex commitRecordIndex=journal.getReadOnlyCommitRecordIndex();
if (commitRecordIndex == null) {
return stats;
}
@SuppressWarnings("unchecked") final ITupleIterator<CommitR... | Utility to check the deleteBlocks associated with each active CommitRecord |
@Override public void printStackTrace(){
printStackTrace(System.err);
}
| Prints the stack trace to the standard error stream. |
public int nodeNumber(int position,int[] genome){
if (phenotype(position,genome) == GENE_OUTPUT) return numInputs + numNodes + (position - (numNodes * (maxArity + 1)));
return numInputs + (position / (maxArity + 1));
}
| Determine the node number from the given genome position. Function arguments refer to node numbers. Inputs are numbered from [0, numInputs - 1]. Function nodes are numbered from [numInputs, numInputs + numNodes - 1]. Output nodes are numbered from [numInputs + numNodes, numInputs + numNodes + numOuputs - 1]. |
private void ensureHasCurrentRow() throws SQLException {
if (curr == null) throw new SQLException("Result set is not positioned on a row.");
}
| Ensures that result set is positioned on a row. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.