code stringlengths 10 174k | nl stringlengths 3 129k |
|---|---|
public boolean hasAnyPositionInfo(){
return hasAnyPositionInfo;
}
| Returns whether any of the instructions added to this instance come with position info. |
@Override protected void installDefaults(){
LayoutManager layout=spinner.getLayout();
if (layout == null || layout instanceof UIResource) {
spinner.setLayout(createLayout());
}
updateStyle(spinner);
}
| Initializes the <code>JSpinner</code> <code>border</code>, <code>foreground</code>, and <code>background</code>, properties based on the corresponding "Spinner.*" properties from defaults table. The <code>JSpinners</code> layout is set to the value returned by <code>createLayout</code>. This method is called by <code>... |
public void allowMultiple(){
this.allowMultiple=true;
}
| Allows you to select multiple images at once. This will only work for the applications that support multiple image selection. |
protected ClassDefinition parseClassBody(IdentifierToken nm,int mod,int ctx,String doc,Vector ext,Vector impl,long p) throws SyntaxError, IOException {
IdentifierToken sup=null;
if ((mod & M_INTERFACE) != 0) {
if (impl.size() > 0) {
env.error(((IdentifierToken)impl.elementAt(0)).getWhere(),"intf.impl.intf... | Parse the body of a class or interface declaration, starting at the left brace. |
public void addBitmapToCache(final String data,final Bitmap bitmap){
if (data == null || bitmap == null) {
return;
}
addBitmapToMemCache(data,bitmap);
if (mDiskCache != null) {
final String key=hashKeyForDisk(data);
OutputStream out=null;
try {
final DiskLruCache.Snapshot snapshot=mDiskCac... | Adds a new image to the memory and disk caches |
public HGHandle add(Object atom,HGHandle type,int flags){
return add(graph.add(atom,type,flags));
}
| Add to global graph and mark as member of this subgraph. |
@DSSink({DSSinkKind.SENSITIVE_UNCATEGORIZED}) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:55:20.448 -0500",hash_original_method="4DF3A9A601EFF55EEB4CCC4D0E1A4382",hash_generated_method="13E408CCF65C1FF11D071DDA160B148B") public void putInMergeTable(SIPServerTransaction sipTransa... | Put this into the merge request table. |
public static OMLine read(DataInputStream dis,LinkProperties propertiesBuffer) throws IOException {
OMLine line=null;
float lat_1=0.0f;
float lon_1=0.0f;
float lat_2=0.0f;
float lon_2=0.0f;
int x1=0;
int y1=0;
int x2=0;
int y2=0;
int nsegs=-1;
int renderType=dis.readByte();
switch (renderType) {
c... | Read the line Link protocol off a DataInputStream, and create an OMLine from it. Assumes that the header has already been read. |
private static void createKeyStore() throws KeyStoreException, IOException {
if (sKeyStore != null) {
return;
}
try {
sKeyStore=KeyStore.getInstance(getKeystoreType());
synchronized (KeyStoreManager.class) {
sKeyStore.load(null,KEYSTORE_PASSWORD.toCharArray());
}
saveKeyStoreToFile(sKeyStore... | Create the RCS keystore |
public void removeListener(final LoginListener listener){
listeners.remove(listener);
}
| Removes a LoginListener. |
public ToStringBuilder append(final boolean[] array){
style.append(buffer,null,array,null);
return this;
}
| <p>Append to the <code>toString</code> a <code>boolean</code> array.</p> |
@POST @Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON}) @Path("/{id}/protection/snapshots/{sid}/resynchronize") @CheckPermission(roles={Role.TENANT_ADMIN},acls={ACL.OWN,ACL.ALL}) public TaskResourceRep resynchronizeConsistencyGroupSnapshot(@PathParam("id") final URI consistencyGroupId,@PathParam("sid") ... | Resynchronize the specified consistency group snapshot |
public DeafServer() throws IOException {
InetSocketAddress addr=new InetSocketAddress(0);
server=HttpServer.create(addr,0);
HttpHandler handler=new DeafHandler();
server.createContext("/",handler);
server.setExecutor(Executors.newCachedThreadPool());
server.start();
}
| Create and start the HTTP server. |
private void _serializeDateTime(DateTime dateTime,StringBuilder sb) throws ConverterException {
try {
sb.append(goIn());
sb.append("createDateTime(");
sb.append(DateFormat.call(null,dateTime,"yyyy,m,d"));
sb.append(',');
sb.append(TimeFormat.call(null,dateTime,"H,m,s,l,\"z\""));
sb.append(')')... | serialize a DateTime |
public void add(String key,Serializable value){
List<Serializable> entries=data.get(key);
if (entries == null) {
entries=new ArrayList<Serializable>();
data.put(key,entries);
}
entries.add(value);
}
| Adds the data to the sequence of observations with the specified key. |
public static VertexStructure[] construct(int numVertices){
VertexStructure struct[]=new VertexStructure[numVertices];
for (int i=0; i < numVertices; i++) {
struct[i]=new VertexStructure();
}
return struct;
}
| Construct an array of VertexStructure objects, where each element is pre-initialized to a new VertexStructure. |
@POST public Response createOrder(Order order){
String id=orderService.createOrder(order);
return Response.ok(id).build();
}
| The POST create order operation |
public static boolean compare(final Long me,final Long you){
if (me == you) {
return true;
}
if (me == null) {
return false;
}
return me.equals(you);
}
| Compare two longs. |
private static void generateSuper(ClassFileWriter cfw,String genName,String superName,String methodName,String methodSignature,Class<?>[] parms,Class<?> returnType){
cfw.startMethod("super$" + methodName,methodSignature,ClassFileWriter.ACC_PUBLIC);
cfw.add(ByteCode.ALOAD,0);
int paramOffset=1;
for (int i=0; i <... | Generates a method called "super$methodName()" which can be called from JavaScript that is equivalent to calling "super.methodName()" from Java. Eventually, this may be supported directly in JavaScript. |
public static AsymmetricKeyParameter createKey(byte[] keyInfoData) throws IOException {
return createKey(SubjectPublicKeyInfo.getInstance(ASN1Primitive.fromByteArray(keyInfoData)));
}
| Create a public key from a SubjectPublicKeyInfo encoding |
protected final void readHeaderFile(){
DataInputStream in=null;
BufferedReader br=null;
boolean byteOrderRead=false;
String delimiter="\t";
try {
FileInputStream fstream=new FileInputStream(this.headerFile);
in=new DataInputStream(fstream);
br=new BufferedReader(new InputStreamReader(in));
if ... | Reads the contents of the header file and fills the properties of the Whitebox grid. |
public MyPBKDF2SecretKey(String passPhrase,String algo,byte[] salt1,int iterationCount,int keySize) throws InvalidKeySpecException, NoSuchAlgorithmException {
algorithm=algo;
salt=salt1;
itereationCount=iterationCount;
pass=passPhrase;
PBEKeySpec spec=new PBEKeySpec(passPhrase.toCharArray(),salt,iterationCoun... | The key is generating by SecretKeyFactory and its value just copying in the key field of MySecretKey class. So, this is real key derived using the given algo. |
@Override protected EClass eStaticClass(){
return GamlPackage.Literals.VARIABLE_REF;
}
| <!-- begin-user-doc --> <!-- end-user-doc --> |
private static String toHttp2Path(URI uri){
final StringBuilder pathBuilder=new StringBuilder(length(uri.getRawPath()) + length(uri.getRawQuery()) + length(uri.getRawFragment())+ 2);
if (!isNullOrEmpty(uri.getRawPath())) {
pathBuilder.append(uri.getRawPath());
}
if (!isNullOrEmpty(uri.getRawQuery())) {
... | Generate a HTTP/2 {code :path} from a URI in accordance with <a href="https://tools.ietf.org/html/rfc7230#section-5.3">rfc7230, 5.3</a>. |
public static S2Point trueCentroid(S2Point a,S2Point b,S2Point c){
double sina=S2Point.crossProd(b,c).norm();
double sinb=S2Point.crossProd(c,a).norm();
double sinc=S2Point.crossProd(a,b).norm();
double ra=(sina == 0) ? 1 : (Math.asin(sina) / sina);
double rb=(sinb == 0) ? 1 : (Math.asin(sinb) / sinb);
doub... | Returns the true centroid of the spherical triangle ABC multiplied by the signed area of spherical triangle ABC. The reasons for multiplying by the signed area are (1) this is the quantity that needs to be summed to compute the centroid of a union or difference of triangles, and (2) it's actually easier to calculate th... |
protected void removeThumbnailData(){
clearThumbnailAndStrips();
mIfdDatas[IfdId.TYPE_IFD_1]=null;
}
| Removes the thumbnail and its related tags. IFD1 will be removed. |
public RaftParameters withRpcFailureBackoff(int rpcFailureBackoff){
this.rpcFailureBackoff=rpcFailureBackoff;
return this;
}
| Rpc failure backoff in milliseconds |
public static Module forObject(Object object){
if (object instanceof ProviderMethodsModule) {
return Modules.EMPTY_MODULE;
}
return new ProviderMethodsModule(object);
}
| Returns a module which creates bindings for provider methods from the given object. This is useful notably for <a href="http://code.google.com/p/google-gin/">GIN</a> |
@Override public void onRefreshFromStart(){
if (remote) {
loadFromRemote();
}
else {
loadFromLocal(QueryDirectionEnum.QUERY_OLD);
}
}
| *************** OnRefreshListener |
public Date parseMathLenient(Date now,String val,SolrQueryRequest req){
String math=null;
final DateMathParser p=new DateMathParser();
if (null != now) p.setNow(now);
if (val.startsWith(NOW)) {
math=val.substring(NOW.length());
}
else {
final int zz=val.indexOf(Z);
if (0 < zz) {
math=val.... | Parses a String which may be a date followed by an optional math expression. |
public static boolean isValidDisplacement(IGame game,int entityId,Coords src,Coords dest){
final Entity entity=game.getEntity(entityId);
final IHex srcHex=game.getBoard().getHex(src);
final IHex destHex=game.getBoard().getHex(dest);
final ArrayList<Coords> intervening=Coords.intervening(src,dest);
final int d... | Can the defending unit be displaced from the source to the destination? |
public void primitivePaint(Graphics2D g2d){
if (shapePainter != null) {
shapePainter.paint(g2d);
}
}
| Paints this node without applying Filter, Mask, Composite, and clip. |
private void updateSelectedPerspective(final SpyPerspective selectedPerspective){
switch (selectedPerspective) {
case BASIC:
basicPerspective.setSelected(true);
break;
case DETAILED:
detailedPerspective.setSelected(true);
break;
case SPY:
spyPerspective.setSelected(true);
break;
case SUPER_SPY:
superSpyPerspectiv... | Sets the perspective. |
public static final Intent newShareFileIntent(Context context,long trackId,String filePath,TrackFileFormat trackFileFormat){
Track track=MyTracksProviderUtils.Factory.get(context).getTrack(trackId);
String trackDescription=track == null ? "" : new DescriptionGeneratorImpl(context).generateTrackDescription(track,nul... | Creates an intent to share a track file with an app. |
@Override public DimensionColumnDataChunk readDimensionChunk(FileHolder fileReader,int blockIndex){
byte[] dataPage=null;
int[] invertedIndexes=null;
int[] invertedIndexesReverse=null;
int[] rlePage=null;
dataPage=COMPRESSOR.unCompress(fileReader.readByteArray(filePath,dimensionColumnChunk.get(blockIndex).get... | Below method will be used to read the chunk based on block index |
public int size(){
return size;
}
| Returns the number of key-value mappings in this map. |
@NotNull @Deprecated @ObjectiveCName("requestStartAnonymousAuthWithUserName:") public Command<AuthState> requestStartAnonymousAuth(String userName){
return modules.getAuthModule().requestStartAnonymousAuth(userName);
}
| Request user name anonymous auth |
private void addPathElementToListAsVirtualFile(String pathElement,ArrayList<VirtualFile> list,ConfigurationValue cv) throws ConfigurationException {
try {
VirtualFile vf=getVirtualFile(pathElement,cv);
list.add(vf);
}
catch ( ConfigurationException e) {
if (cv == null) {
throw new ConfigurationE... | Helper method for getLocaleFileList(). |
public Iterable<T> findByIds(List<URI> ids,boolean activeOnly) throws DataAccessException {
return client.findByIds(clazz,ids,activeOnly);
}
| Finds by IDs and filters out inactive. Note that the number of results could be less than IDs requested. |
public void visitLineNumber(int line,Label start){
if (mv != null) {
mv.visitLineNumber(line,start);
}
}
| Visits a line number declaration. |
private static List<Byte> flatten(final ConditionNode root,final Map<ConditionNode,Integer> nodeIds){
final List<Byte> flattenedTree=new ArrayList<Byte>();
addAll(flattenedTree,getType(root));
final List<Byte> payload=getPayload(root);
addAll(flattenedTree,ByteHelpers.toBigEndianDword(payload.size()));
flatte... | Flattens a condition tree into a byte list. |
public RequestHandle delete(Context context,String url,ResponseHandlerInterface responseHandler){
final HttpDelete delete=new HttpDelete(URI.create(url).normalize());
return sendRequest(httpClient,httpContext,delete,null,responseHandler,context);
}
| Perform a HTTP DELETE request. |
protected boolean isDefaultRemoteAddress(){
return fieldDefaultRemoteAddress;
}
| Returns the defaultRemoteAddress. |
Goal(String goal){
this.goal=goal;
}
| Instantiates a new goal. |
public boolean isCreateDurableQueue(){
return createDurableQueue;
}
| Returns whether this role can create durable queues bound to the address. |
public void close() throws IOException {
clientSocket.close();
clientSocket=null;
clientInput=null;
clientOutput=null;
}
| Close an open connection to the client. |
String rrToString(){
StringBuffer sb=new StringBuffer();
sb.append(footprint);
sb.append(" ");
sb.append(alg);
sb.append(" ");
sb.append(digestid);
if (digest != null) {
sb.append(" ");
sb.append(base16.toString(digest));
}
return sb.toString();
}
| Converts rdata to a String |
public Boolean kickUser(String SID_Admin,Long room_id){
try {
Boolean salida=false;
salida=userManagement.kickUserByStreamId(SID_Admin,room_id);
if (salida == null) salida=false;
return salida;
}
catch ( Exception err) {
log.error("[kickUser]",err);
}
return null;
}
| kick all uses of a certain room |
public String toString(){
return toXML(false);
}
| Devuelve los valores de la instancia en una cadena de caracteres. |
@Override int lookForSelectablePosition(int position,boolean lookDown){
final ListAdapter adapter=mAdapter;
if (adapter == null || isInTouchMode()) {
return INVALID_POSITION;
}
final int count=adapter.getCount();
if (!mAreAllItemsSelectable) {
if (lookDown) {
position=Math.max(0,position);
... | Find a position that can be selected (i.e., is not a separator). |
public void validate(ElemTemplateElement elem,StylesheetHandler handler) throws SAXException {
String msg="";
while (elem != null) {
if (elem instanceof ElemExsltFuncResult && elem.getNextSiblingElem() != null && !(elem.getNextSiblingElem() instanceof ElemFallback)) {
msg="func:result has an illegal follo... | Non-recursive traversal of FunctionElement tree based on TreeWalker to verify that there are no literal result elements except within a func:result element and that the func:result element does not contain any following siblings except xsl:fallback. |
@SuppressWarnings("deprecation") public static void init(Context context){
if (context == null) {
mMinimumFlingVelocity=ViewConfiguration.getMinimumFlingVelocity();
mMaximumFlingVelocity=ViewConfiguration.getMaximumFlingVelocity();
Log.e("MPChartLib-Utils","Utils.init(...) PROVIDED CONTEXT OBJECT IS NULL"... | initialize method, called inside the Chart.init() method. |
private final void noise2(final double[] noise,double vec0,double vec1){
int b0, b1;
final int i, j;
final double rx0, rx1, ry0, ry1, sx, sy;
vec0+=PerlinN;
b0=((int)vec0) & BM;
i=latticeSelector[b0];
j=latticeSelector[b0 + 1];
rx0=vec0 - (int)vec0;
rx1=rx0 - 1.0;
sx=s_curve(rx0);
vec1+=PerlinN;
... | Generate a pixel of noise corresponding to the point vec0,vec1. See class description for a high level discussion of method. This handles cases where channels <= 4. |
public String toString(){
return "\nName: " + name + "\nAddress: "+ address+ "\nPhone number: "+ phone+ "\nEmail address: "+ email;
}
| Return a string discription of the class |
public static CMSSignedData replaceCertificatesAndCRLs(CMSSignedData signedData,Store certificates,Store attrCerts,Store crls) throws CMSException {
CMSSignedData cms=new CMSSignedData(signedData);
ASN1Set certSet=null;
ASN1Set crlSet=null;
if (certificates != null || attrCerts != null) {
List certs=new Arr... | Replace the certificate and CRL information associated with this CMSSignedData object with the new one passed in. |
@Override public int eBaseStructuralFeatureID(int derivedFeatureID,Class<?> baseClass){
if (baseClass == ReactiveElement.class) {
switch (derivedFeatureID) {
case SGraphPackage.STATECHART__LOCAL_REACTIONS:
return SGraphPackage.REACTIVE_ELEMENT__LOCAL_REACTIONS;
default :
return -1;
}
}
if (baseClass == Scop... | <!-- begin-user-doc --> <!-- end-user-doc --> |
protected void bcsPreDeserializationHook(ObjectInputStream ois) throws IOException, ClassNotFoundException {
super.bcsPreDeserializationHook(ois);
synchronized (services) {
serializable=ois.readInt();
for (int i=0; i < serializable; i++) {
Object serviceClass=ois.readObject();
Object bcssProvider=... | Deserializes all serializable services and their providers before the children of this context is deserialized. <p> First a <code>int</code> is read, indicating the number of services to read. Then pairs of service class and service provider are read one by one. </p> |
public static Object stringToValue(String string){
Double d;
if (string.equals("")) {
return string;
}
if (string.equalsIgnoreCase("true")) {
return Boolean.TRUE;
}
if (string.equalsIgnoreCase("false")) {
return Boolean.FALSE;
}
if (string.equalsIgnoreCase("null")) {
return JSONObject.NU... | Try to convert a string into a number, boolean, or null. If the string can't be converted, return the string. |
public int compareTo(MySQLEventId eventId){
long indexDiff=this.fileIndex - eventId.getFileIndex();
if (indexDiff != 0) return (indexDiff > 0) ? 1 : -1;
long offsetDiff=this.offset - eventId.getOffset();
if (offsetDiff < 0) return -1;
else if (offsetDiff == 0) return 0;
else return 1;
}
| Compares two event IDs using the file index and offset as determinants for collation. |
boolean isPersisted(int id){
int bit=1 << id;
return (persisted & bit) != 0;
}
| Returns true if this setting was persisted. |
public boolean isMultiParty(){
return mMultiParty;
}
| Checks if call is an active call in a conference mode (aka multi party). |
private void checkFailureRate(float currentFailureRate){
if (currentFailureRate >= failureRateThreshold) {
stateMachine.transitionToOpenState(CircuitBreaker.StateTransition.CLOSED_TO_OPEN,circuitBreakerMetrics);
}
}
| Checks if the current failure rate is above the threshold. If the failure rate is above the threshold, transitions the state machine to OPEN state. |
public MotionBlurOp(float distance,float angle,float rotation,float zoom){
this.distance=distance;
this.angle=angle;
this.rotation=rotation;
this.zoom=zoom;
}
| Construct a MotionBlurOp. |
public void drawLine(int x1,int y1,int x2,int y2){
DebugGraphicsInfo info=info();
if (debugLog()) {
info().log(toShortString() + " Drawing line: from " + pointToString(x1,y1)+ " to "+ pointToString(x2,y2));
}
if (isDrawingBuffer()) {
if (debugBuffered()) {
Graphics debugGraphics=debugGraphics();
... | Overrides <code>Graphics.drawLine</code>. |
private void internalSend(String uuid,String message,RequestCallback callback) throws WebSocketException {
checkWebSocketConnectionState();
if (callback != null) {
requestCallbackMap.put(uuid,callback);
}
send(message);
}
| Send text message. |
public void dispose(){
if (isDisposed()) {
return;
}
setDisposed(true);
if (!menu) {
super.dispose();
}
}
| Closes the current form and returns to the previous form, releasing the EDT in the process |
@Override public boolean supportsNonNullableColumns(){
debugCodeCall("supportsNonNullableColumns");
return true;
}
| Returns whether columns with NOT NULL are supported. |
public MultiAdaptersCreator map(@NonNull Class objectClass,@NonNull Class<? extends BindableLayout> viewClass){
mapper.add(objectClass,viewClass);
return this;
}
| Binds the models to their views. The views should inherit from BindableLayout, so their bind methods assign the values from the model to the view widgets. |
public WriteBuffer position(int newPosition){
buff.position(newPosition);
return this;
}
| Set the position. |
public ServerHelloDone(){
}
| Creates outbound message |
public void addExtension(final String description,final String extension){
exts.put(extension,description);
}
| Adds an extension with the provided description to the filenamefilter. |
public static @NonNull CubeAnimation create(@Direction int direction,boolean enter,long duration){
switch (direction) {
case UP:
case DOWN:
return new VerticalCubeAnimation(direction,enter,duration);
case LEFT:
case RIGHT:
default :
return new HorizontalCubeAnimation(direction,enter,duration);
}
}
| Create new Animation. |
public SQLTransactionRollbackException(String reason,String sqlState,int vendorCode){
super(reason,sqlState,vendorCode);
}
| Creates an SQLTransactionRollbackException object. The Reason string is set to the given reason string, the SQLState string is set to the given SQLState string and the Error Code is set to the given error code value. |
@SuppressWarnings("unchecked") public static <E>List<E> of(){
return (List<E>)ImmutableCollections.List0.EMPTY_LIST;
}
| Returns an immutable list containing zero elements. See <a href="#immutable">Immutable List Static Factory Methods</a> for details. |
public void load(Context context,int svgResource){
if (mSvg != null) return;
try {
mSvg=SVG.getFromResource(context,svgResource);
mSvg.setDocumentPreserveAspectRatio(PreserveAspectRatio.UNSCALED);
}
catch ( SVGParseException e) {
Log.e(LOG_TAG,"Could not load specified SVG resource",e);
}
}
| Loading the svg from the resources. |
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){
switch (featureID) {
case EipPackage.SERVICE_REF__NAME:
return getName();
case EipPackage.SERVICE_REF__REFERENCE:
return getReference();
case EipPackage.SERVICE_REF__OPERATIONS:
return getOperations();
}
return super.eGet(featureID,reso... | <!-- begin-user-doc --> <!-- end-user-doc --> |
public void remove(int index){
Component comp=getComponent(index);
if (comp == leftComponent) {
leftComponent=null;
}
else if (comp == rightComponent) {
rightComponent=null;
}
super.remove(index);
revalidate();
repaint();
}
| Removes the <code>Component</code> at the specified index. Updates the <code>leftComponent</code> and <code>rightComponent</code> instance variables as necessary, and then messages super. |
public void initParam(ScannerParam param){
int targets=param.getTargetParamsInjectable();
this.getChkInjectableQueryString().setSelected((targets & ScannerParam.TARGET_QUERYSTRING) != 0);
this.getChkInjectableUrlPath().setSelected((targets & ScannerParam.TARGET_URLPATH) != 0);
this.getChkInjectablePostData().se... | Initialises the panel (that is, the options shown in it) with the given options. |
@Override public void eSet(int featureID,Object newValue){
switch (featureID) {
case UmplePackage.ANONYMOUS_CONSTRAINT_EXPR_1__INDEX_1:
setIndex_1((String)newValue);
return;
}
super.eSet(featureID,newValue);
}
| <!-- begin-user-doc --> <!-- end-user-doc --> |
@DSSource({DSSourceKind.SENSITIVE_UNCATEGORIZED}) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:33:33.153 -0500",hash_original_method="4111120C74906E4EF74CC0B96E5C85EA",hash_generated_method="5CE4857D25FF91B9771ACE3CA8E56D49") public boolean isObbMounted(String filename){
if (fi... | Check whether an Opaque Binary Blob (OBB) is mounted or not. |
public byte[] retrieve(String fileName) throws IOException {
ByteArrayOutputStream buff=new ByteArrayOutputStream();
retrieve(fileName,buff,0);
return buff.toByteArray();
}
| Read a file. |
public HashMap<String,String> readFile(String fileName){
HashMap<String,String> storage=new HashMap<String,String>();
try {
InputStream is=new FileInputStream(fileName);
int c=is.read();
StringBuffer str=new StringBuffer();
int i=0;
while (c != -1) {
if ((char)c == SEPARATOR_DATA) {
... | Initialize the SAXParserTest reference by filling in the data from the file passed to the method. This will be the reference to compare against with the output of the parser. |
public boolean isGNULongNameEntry(){
return linkFlag == LF_GNUTYPE_LONGNAME && name.toString().equals(GNU_LONGLINK);
}
| Indicate if this entry is a GNU long name block |
public GrammarException(String message){
super(message);
}
| Constructs an exception indicating an error while parsing or processing grammars. |
public TermVectorsRequest preference(String preference){
this.preference=preference;
return this;
}
| Sets the preference to execute the search. Defaults to randomize across shards. Can be set to <tt>_local</tt> to prefer local shards, <tt>_primary</tt> to execute only on primary shards, or a custom value, which guarantees that the same order will be used across different requests. |
public boolean isClosed(StateAccessor<?> state){
return readFinishedBits(state.access(FINISHED_BITS_TAG)).isFinished(rootTrigger);
}
| Return true if the trigger is closed in the window corresponding to the specified state. |
private void writeQName(javax.xml.namespace.QName qname,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
java.lang.String namespaceURI=qname.getNamespaceURI();
if (namespaceURI != null) {
java.lang.String prefix=xmlWriter.getPrefix(namespaceURI);
if (prefix == null) {... | method to handle Qnames |
private boolean isMinimized(){
return (getExtendedState() & ICONIFIED) == ICONIFIED;
}
| Checks if the main window is currently minimized. |
private void save(Tuple tuple){
byte[] rowKey=mapper.rowKey(tuple);
ColumnList cols=mapper.columns(tuple);
Durability durability=writeToWAL ? Durability.SYNC_WAL : Durability.SKIP_WAL;
Optional<Long> ttl=mapper.getTTL(tuple);
if (ttl.isPresent()) {
hbaseClient.addMutation(rowKey,cols,durability,ttl.get())... | Saves an operation for later. |
public void putAll(K key,Collection<V> values){
if (values.isEmpty()) {
return;
}
key=sanitizeKey(key);
List<V> list=map.get(key);
if (list == null) {
list=new ArrayList<V>();
map.put(key,list);
}
list.addAll(values);
}
| Adds multiple values to the multimap. |
public static double[] times(double[]... v){
double[] array=fill(v[0].length,1.0);
for (int j=0; j < v.length; j++) for (int i=0; i < v[j].length; i++) array[i]*=v[j][i];
return array;
}
| Element-wise product of any number of arrays. Each array must be same size. |
@Override public void load(InputStream inStream){
throw new UnsupportedOperationException("ProtectedProperties cannot be modified!");
}
| Overrides a method to prevent the properties from being modified. |
public boolean nullable(){
return _nullable;
}
| Nullability of this non terminal. |
void updateMask(){
if (getFormat() != null) {
Document doc=getFormattedTextField().getDocument();
validMask=false;
if (doc != null) {
try {
string=doc.getText(0,doc.getLength());
}
catch ( BadLocationException ble) {
string=null;
}
if (string != null) {
... | Updates the AttributedCharacterIterator by invoking <code>formatToCharacterIterator</code> on the <code>Format</code>. If this is successful, <code>updateMask(AttributedCharacterIterator)</code> is then invoked to update the internal bitmask. |
public boolean isInfo(){
return fSeverity == IStatus.INFO;
}
| Returns if the status' severity is INFO. |
public static ToHitData toHit(IGame game,int attackerId,Targetable target,Coords src){
final Entity ae=game.getEntity(attackerId);
if (ae == null) {
throw new IllegalArgumentException("Attacker is null");
}
if (target == null) {
return new ToHitData(TargetRoll.IMPOSSIBLE,"Target is null");
}
int tar... | To-hit number for a death from above attack, assuming that movement has been handled |
private static boolean rangeIsValid(BasicBlock start,BasicBlock end,BlockAddresses addresses){
if (start == null) {
throw new NullPointerException("start == null");
}
if (end == null) {
throw new NullPointerException("end == null");
}
int startAddress=addresses.getLast(start).getAddress();
int endAd... | Gets whether the address range for the given two blocks is valid for a catch handler. This is true as long as the covered range is under 65536 code units. |
public QuestStartedCondition(final String questname){
this.questname=checkNotNull(questname);
}
| Creates a new QuestStartedCondition. |
public TsFciOrient(SepsetProducer sepsets,IndependenceTest independenceTest){
this.sepsets=sepsets;
this.independenceTest=independenceTest;
}
| Constructs a new FCI search for the given independence test and background knowledge. |
public DataStoreTextClusteringModelsImpl(){
}
| Create the instance of the class. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.