code stringlengths 10 174k | nl stringlengths 3 129k |
|---|---|
public HMacSP800DRBG(Mac hMac,int securityStrength,EntropySource entropySource,byte[] personalizationString,byte[] nonce){
if (securityStrength > Utils.getMaxSecurityStrength(hMac)) {
throw new IllegalArgumentException("Requested security strength is not supported by the derivation function");
}
if (entropySo... | Construct a SP800-90A Hash DRBG. <p> Minimum entropy requirement is the security strength requested. </p> |
public void monitorExit(){
mv.visitInsn(Opcodes.MONITOREXIT);
}
| Generates the instruction to release the monitor of the top stack value. |
synchronized boolean goToWifiSettingsIfDisconnected(){
final NetworkInfo info=mConnectivityManager.getActiveNetworkInfo();
if (info == null || !info.isConnected()) {
Toast.makeText(this,getString(R.string.wifi_unavailable_error_message),Toast.LENGTH_LONG).show();
final Intent intent=new Intent(Settings.ACTI... | Navigates the user to the wifi settings if there is a connection problem |
private NetworkFCZoneInfo placeZones(URI exportGroupUri,URI varrayUri,String protocol,String initiatorPort,StoragePort storagePort,String hostName,List<Zone> existingZones,boolean checkZones) throws DeviceControllerException {
initiatorPort=formatWWN(initiatorPort);
String storagePortWwn=formatWWN(storagePort.getPo... | Select the network device and VSAN or Brocade Fabric for the host/volume zoning. The selection is based on the end points (initiator and storage port) and the availability of a network device that has ports connections to both end points. If a fabric can't be identified with both endpoints, we fall back to looking for ... |
protected List createParentBoundables(List childBoundables,int newLevel){
Assert.isTrue(!childBoundables.isEmpty());
int minLeafCount=(int)Math.ceil((childBoundables.size() / (double)getNodeCapacity()));
ArrayList sortedChildBoundables=new ArrayList(childBoundables);
Collections.sort(sortedChildBoundables,xComp... | Creates the parent level for the given child level. First, orders the items by the x-values of the midpoints, and groups them into vertical slices. For each slice, orders the items by the y-values of the midpoints, and group them into runs of size M (the node capacity). For each run, creates a new (parent) node. |
public TerritoryEffectAttachment(final String name,final Attachable attachable,final GameData gameData){
super(name,attachable,gameData);
}
| Creates new TerritoryEffectAttachment |
private void assign(BigInteger val){
assign(val.toByteArray());
}
| assigns to this element the value <tt>val</tt>. |
public static String buildCpimMessageWithoutDisplayedImdn(String from,String to,String messageId,String content,String contentType,long timestampSent){
return CpimMessage.HEADER_FROM + ": " + formatCpimSipUri(from)+ CRLF+ CpimMessage.HEADER_TO+ ": "+ formatCpimSipUri(to)+ CRLF+ CpimMessage.HEADER_NS+ ": "+ ImdnDocume... | Build a CPIM message with IMDN delivered header |
@Override public void write(byte[] buf,int offset,int length) throws IOException {
final byte[] buffer=_writeBuffer;
final int bufferLength=buffer.length;
StreamImpl source=_source;
while (true) {
final int writeLength=_writeLength;
if (writeLength == 0 && bufferLength <= length) {
if (source != n... | Writes a byte array |
public boolean isPointOval(){
return pointOval;
}
| Get the oval setting given to OMPoint objects. |
public Nfaa(int viewportWidth,int viewportHeight){
setup(viewportWidth,viewportHeight);
}
| Create a NFAA with the viewport size |
private URI findRepoUri() throws Exception {
URI updateSiteUri=URI.create(updateSiteUrl);
Path updateSitePath=getPath(updateSiteUri);
URI[] repos=getProvisioningUI().getRepositoryTracker().getKnownRepositories(getProvisioningUI().getSession());
for ( URI repo : repos) {
if (repo != null && repo.getHost() !... | Finds the repository for the update site (matching the update site value that this plugin was compiled with.) |
public CategoricalDistribution likelihoodWeighting(RandomVariable[] X,AssignmentProposition[] e,BayesianNetwork bn,int N){
double[] W=new double[ProbUtil.expectedSizeOfCategoricalDistribution(X)];
for (int j=0; j < N; j++) {
Pair<Map<RandomVariable,Object>,Double> x_w=weightedSample(bn,e);
W[ProbUtil.indexO... | The LIKELIHOOD-WEIGHTING algorithm in Figure 14.15. For answering queries given evidence in a Bayesian Network. |
private void onRelease(Event event){
if (this.wasPressed) {
if (this.clickAction != null) {
this.clickAction.run();
this.clickAction=null;
}
CircleMenu.this.hide();
}
event.consume();
}
| Handles a release event for this button. |
public CheckBoxListModel(Object[] listData){
for ( Object element : listData) {
addElement(element);
}
}
| Constructs a CheckBoxListModel from an array of objects and then applies setModel to it. |
public EchoBreakpointHitReply(final int packetId,final int errorCode,final long tid,final RegisterValues registerValues){
super(packetId,errorCode,tid,registerValues);
}
| Creates a new echo breakpoint hit reply object. |
public void addListener(final IAddressSpaceContentListener listener){
m_listeners.addListener(listener);
}
| Adds a listener that is notified about changes in the content. |
public void init(AuthenticatedUser user,LDAPConnection ldapConnection) throws GuacamoleException {
userDirectory=new SimpleDirectory<User>(userService.getUsers(ldapConnection));
connectionDirectory=new SimpleDirectory<Connection>(connectionService.getConnections(user,ldapConnection));
rootGroup=new SimpleConnecti... | Initializes this UserContext using the provided AuthenticatedUser and LDAPConnection. |
@PostConstruct public void initApplication() throws IOException {
if (env.getActiveProfiles().length == 0) {
log.warn("No Spring profile configured, running with default configuration");
}
else {
log.info("Running with Spring profile(s) : {}",Arrays.toString(env.getActiveProfiles()));
Collection active... | Initializes 21points. <p/> Spring profiles can be configured with a program arguments --spring.profiles.active=your-active-profile <p/> <p> You can find more information on how profiles work with JHipster on <a href="http://jhipster.github.io/profiles.html">http://jhipster.github.io/profiles.html</a>. </p> |
public RegionClearedException(Throwable cause){
super(cause);
}
| Constructs a new <code>RegionClearedException</code> with a cause. |
public boolean hasConstraint(){
return getWhereClause() != null;
}
| Checks if this optional path expression has a constraint. |
private void handlePossibleCancellationInterrupt(int s){
if (s == INTERRUPTING) while (state == INTERRUPTING) Thread.yield();
}
| Ensures that any interrupt from a possible cancel(true) is only delivered to a task while in run or runAndReset. |
public ArrayList<BloomFilter<E>> naivefindMatches(BFINode<E> node,E o,SearchStatistics stat){
ArrayList<BloomFilter<E>> result=new ArrayList<BloomFilter<E>>();
stat.nbBFChecks++;
if (node.isLeaf()) {
if (node.value.contains(o)) {
result.add(node.value);
}
return result;
}
for (int i=0; i < n... | Search for an object in the subtree rooted at given node and return the Bloom filters matching the value, it does so using a naive approach where only leaf nodes are checked |
@Override public void close() throws IOException {
mSeqData.close();
mPointers.close();
if (mQualData != null) {
mQualData.close();
}
}
| Closes OutputStreams |
public void clearEdges(){
for ( String s : connectivity.keySet()) {
SortedSet<LaggedFactor> set=connectivity.get(s);
set.clear();
}
}
| Removes all edges from the graph. |
public void destroy(){
threadStop();
for ( JspServletWrapper jsw : jsps.values()) {
jsw.destroy();
}
}
| Process a "destory" event for this web application context. |
public CLEvent unmap(CLQueue queue,Pointer<T> buffer,CLEvent... eventsToWaitFor){
}
| #documentCallsFunction("clEnqueueUnmapMemObject") #documentQueue() |
public static boolean isDerivedDatatype(IRI datatype){
return datatype.equals(XMLSchema.NORMALIZEDSTRING) || datatype.equals(XMLSchema.TOKEN) || datatype.equals(XMLSchema.LANGUAGE)|| datatype.equals(XMLSchema.NMTOKEN)|| datatype.equals(XMLSchema.NMTOKENS)|| datatype.equals(XMLSchema.NAME)|| datatype.equals(XMLSchema.... | Checks whether the supplied datatype is a derived XML Schema datatype. |
private boolean removeBadSplitNodes(SplitCriterion criterion,Node currentNode,double lastCheckRatio,double lastCheckSDR,double lastCheckE){
boolean isBad=false;
if (currentNode == null) {
return true;
}
if (currentNode.left != null) {
isBad=removeBadSplitNodes(criterion,currentNode.left,lastCheckRatio,l... | Recursive method that first checks all of a node's children before deciding if it is 'bad' and may be removed |
@Override public void addPropertyChangeListener(PropertyChangeListener l){
m_customEditor.m_Support.addPropertyChangeListener(l);
}
| Adds a PropertyChangeListener who will be notified of value changes. |
public boolean isReturnValue(){
return hasFlag(RETURN_VAL);
}
| Was this value marked as a possibly null return value? |
public void plus(Closure c){
if (parent() == null) {
throw new UnsupportedOperationException("Adding sibling nodes to the root node is not supported");
}
appendNodes(c);
}
| Adds sibling nodes (defined using builder-style notation via a Closure) after the current node. |
protected void readChangeLogNode(XmlPullParser parser,ChangeLog changeLog) throws Exception {
if (parser == null || changeLog == null) return;
parser.require(XmlPullParser.START_TAG,null,TAG_CHANGELOG);
Log.d(TAG,"Processing main tag=");
String bulletedList=parser.getAttributeValue(null,ATTRIBUTE_BULLETEDLIST... | Parse changelog node |
public final boolean sendMessageAtFrontOfQueue(Message msg){
return mExec.sendMessageAtFrontOfQueue(msg);
}
| Enqueue a message at the front of the message queue, to be processed on the next iteration of the message loop. You will receive it in callback, in the thread attached to this handler. <b>This method is only for use in very special circumstances -- it can easily starve the message queue, cause ordering problems, or ha... |
@Override public void addAttribute(String name,String value){
if (value != null) {
((Element)current).setAttribute(name,value);
}
}
| Adds an attribute to current element of the DOM Document. |
private void createCottbusFirst(final int HOME_END_TIME){
int currentId=1;
int duration=(int)(0.5 * 3600);
final int DEFAULT_CARS_PER_HOUR_PER_LANE=2000;
currentId=addCommodity("701","324",HOME_END_TIME,duration,(int)(0.1 * DEFAULT_CARS_PER_HOUR_PER_LANE),"26 27 28 29 30 32",currentId);
currentId=addCommodity... | generates agents for cottbus scenario |
public void fwdDctInPlaceNxN(double[][] coeffs){
int u=0;
int v=0;
double two_over_sqrtncolsnrows=2.0 / Math.sqrt((double)this.N * this.M);
for (u=0; u <= this.M - 1; u++) {
fctNoScale(coeffs[u]);
}
for (v=0; v <= this.N - 1; v++) {
for (u=0; u <= this.M - 1; u++) {
this.nxnTmp[u]=coeffs[u][v]... | Perform forward DCT in place for N x N matrix |
public void error(SAXParseException e) throws SAXException {
}
| Receives notification of recoverable parser error. The default behaviour is to take no action. |
@Override public void giveProduct(final EventRaiser npc,final Player player){
final String orderString=player.getQuest(mithrilcloak.getQuestSlot());
final String[] order=orderString.split(";");
final int numberOfProductItems=Integer.parseInt(order[1]);
final long orderTime=Long.parseLong(order[3]);
final long... | This method is called when the player returns to pick up the finished product. It checks if the NPC is already done with the order. If that is the case, the player is told to get the product from another NPC. Otherwise, the NPC asks the player to come back later. |
public SetMovieDetails(int movieid,Integer playcount,Double rating){
super();
addParameterToRequest("movieid",movieid);
if (playcount != null) addParameterToRequest("playcount",playcount);
if (rating != null) addParameterToRequest("rating",rating);
}
| Update the given movie with the given details |
public void add(NameValuePair pair){
throwIfImmutable();
if (pair == null) {
throw new NullPointerException("pair == null");
}
CstString name=pair.getName();
if (elements.get(name) != null) {
throw new IllegalArgumentException("name already added: " + name);
}
elements.put(name,pair);
}
| Add an element to the set of (name, value) pairs for this instance. It is an error to call this method if there is a preexisting element with the same name. |
private void updateQueryRange(QueryTask.Query query,long lowerBound,long upperBound){
for ( QueryTask.Query queryTerm : query.booleanClauses) {
if (queryTerm != null && queryTerm.term != null && queryTerm.term.propertyName != null) {
if (queryTerm.term.propertyName.equals(HostService.State.FIELD_NAME_SCHED... | Update the range in the query, so we find a different set of hosts. |
public void removeCoalescingKey(long downTime){
mDownTimeToCoalescingKey.delete((int)downTime);
}
| Stops tracking a new coalescing key corresponding to the gesture with this down time. |
public boolean gaussianElimination(final long[] solution){
assert solution.length == numVars;
LongArrayBitVector solutions=LongArrayBitVector.ofLength(numVars * 2);
if (!gaussianElimination(solutions)) return false;
final LongBigList list=solutions.asLongBigList(2);
for (int i=solution.length; i-- != 0; ) ... | Solves the system using Gaussian elimination and write the solution in an array of longs (mainly for testing purposes). |
public void write(char buf[]) throws IOException {
write(buf,0,buf.length);
}
| Write an array of characters. This method cannot be inherited from the Writer class because it must suppress I/O exceptions. |
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-09-03 14:59:47.717 -0400",hash_original_method="818E0B883DC58DC995B22E0761F71440",hash_generated_method="5852B7F78978A6F35354CA318266DEE1") public void trace(Object message){
}
| Do nothing |
public static float abs(final float x){
return Float.intBitsToFloat(MASK_NON_SIGN_INT & Float.floatToRawIntBits(x));
}
| Absolute value. |
public static void dftProduct(double[] kernel,double[] transform,double sign){
if (kernel.length != transform.length) throw new IllegalArgumentException("kernel and transform arrays must have the same size");
int n=kernel.length;
int half=n / 2;
transform[0]*=kernel[0];
transform[half]*=kernel[half];
doub... | Calculates the product of two conjugate symmetric dfts of the same length and stores the result in the second dft. <p>This is a convenience method to support convolution and correlation operations using the Fast Fourier Transform. Example of use to compute the convolution of two sequences: </p> <p> <font face="courier"... |
public static long New(){
return IrredPoly;
}
| Return the fingerprint of the empty string. |
@DSComment("Private Method") @DSBan(DSCat.PRIVATE_METHOD) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:33:22.488 -0500",hash_original_method="91DADCDFBE7734A1949A5AEB67A00312",hash_generated_method="839D85A97D79476EA9F57FB8F73F918E") private Patterns(){
}
| Do not create this static utility class. |
public static int clear(int mod,int clearBit){
return mod & ~clearBit;
}
| Clears a specified bit in <code>mod</code>. |
private void addToken(int tokenType){
addToken(zzStartRead,zzMarkedPos - 1,tokenType);
}
| Adds the token specified to the current linked list of tokens. |
private boolean checkForEnhancedZoneSession(String[] lines,Integer retryCount) throws NetworkDeviceControllerException {
return checkForZoneSession(lines,retryCount,false);
}
| Scans the lines looking for evidence that an Enhanced zone session was created. |
public Bag(int capacity){
numObjs=0;
objs=new Object[capacity];
}
| Creates a Bag with a given initial capacity. |
public static RHExtension hasRHExtensions(ConfigImpl config,ExtensionDefintion ed) throws PageException, SAXException, IOException {
XMLConfigAdmin admin=new XMLConfigAdmin(config,null);
return admin._hasRHExtensions(config,ed);
}
| returns the version if the extension is available |
public boolean isAutoAcceptInRoamingEnabled() throws RcsGenericException {
try {
return mIFtServiceConfig.isAutoAcceptInRoamingEnabled();
}
catch ( Exception e) {
throw new RcsGenericException(e);
}
}
| Is file transfer invitation automatically accepted while in roaming. <p> This parameter is only applicable if auto accept is active for File Transfer in normal conditions (see isAutoAcceptEnabled). |
protected List<ColladaMeshShape> createShapes(){
if (WWUtil.isEmpty(this.geometries)) return Collections.emptyList();
List<ColladaMeshShape> shapes=new ArrayList<ColladaMeshShape>();
for ( ColladaInstanceGeometry geometry : this.geometries) {
this.createShapesForGeometry(geometry,shapes);
}
return shap... | Create shapes to render this node. |
private static void updateFormatCache(Long key,String value){
if (value == null) {
return;
}
if (formatCache.size() > CACHE_SIZE) {
formatCache.clear();
}
formatCache.put(key,value);
}
| Update cache. |
public void removeScrollListener(ScrollListener l){
if (scrollListeners == null) {
return;
}
scrollListeners.removeListener(l);
if (!scrollListeners.hasListeners()) {
scrollListeners=null;
}
}
| Deregisters interest in receiving callbacks for scroll gained events |
@POST @Consumes({Servlets.JSON_MEDIA_TYPE,MediaType.APPLICATION_JSON}) @Produces(Servlets.JSON_MEDIA_TYPE) public Response submit(@Context HttpServletRequest request){
String entityJson=null;
AtlasPerfTracer perf=null;
try {
if (AtlasPerfTracer.isPerfTraceEnabled(PERF_LOG)) {
perf=AtlasPerfTracer.getPer... | Submits the entity definitions (instances). The body contains the JSONArray of entity json. The service takes care of de-duping the entities based on any unique attribute for the give type. |
public void runTest() throws Throwable {
Document doc;
Element element;
boolean state;
Attr attribute;
Attr newAttribute;
doc=(Document)load("staff",false);
element=doc.createElementNS("http://www.w3.org/DOM","elem");
attribute=doc.createAttributeNS("http://www.w3.org/DOM/Test/createAttributeNS","attr")... | Runs the test case. |
public void init(SecuritySpecModel securitySpec){
if (fSecuritySpec != null) {
for ( String className : fProcessedClasses) {
ClassMarkerProcessor classProcessor=get(className);
classProcessor.removeAllDroidsafeTextMarkers();
}
}
fClassProcessorMap=new HashMap<String,ClassMarkerProcessor>();... | Initializes the fields using the information stored in the given security spec model. Displays the droidsafe text markers for the currently viewed Java source in the editor if the Java class belongs to the underlying project. |
public static void enable(boolean enableLogging){
if (enableLogging) setLevel(s_currentLevel);
else {
Level level=s_currentLevel;
setLevel(Level.OFF);
s_currentLevel=level;
}
}
| Enable/Disable logging (of handlers) |
public int compare(Value a,Value b){
return a.compareTo(b,compareMode);
}
| Compare two values with the current comparison mode. The values may not be of the same type. |
private static boolean isPlaystateActive(int playState){
switch (playState) {
case RemoteControlClient.PLAYSTATE_PLAYING:
case RemoteControlClient.PLAYSTATE_BUFFERING:
case RemoteControlClient.PLAYSTATE_FAST_FORWARDING:
case RemoteControlClient.PLAYSTATE_REWINDING:
case RemoteControlClient.PLAYSTATE_SKIPPING_BACKWARDS:... | Returns true if the given playback state is considered "active", i.e. it describes a state where playback is happening, or about to |
public boolean isNodeDescendant(DefaultMutableTreeNode anotherNode){
if (anotherNode == null) return false;
return anotherNode.isNodeAncestor(this);
}
| Returns true if <code>anotherNode</code> is a descendant of this node -- if it is this node, one of this node's children, or a descendant of one of this node's children. Note that a node is considered a descendant of itself. If <code>anotherNode</code> is null, returns false. This operation is at worst O(h) where h ... |
public void pushFrame(LocalVariableMap vars,DMLProgramCounter pc){
callStack.push(new DMLFrame(vars,pc));
}
| Put current frame into stack due to function call |
public static boolean asBoolean(Boolean bool){
return bool;
}
| Coerce a Boolean instance to a boolean value. |
public void show(boolean animate){
show(animate,fadeIn);
}
| Make the badge visible in the UI. |
public static <T>Select<T> from(Class<T> dataObjectClass){
return new Select<>(dataObjectClass);
}
| The data model object that will be selected from |
public static IStatus validatePackageName(String name,String sourceLevel,String complianceLevel){
if (name == null) {
return new Status(IStatus.ERROR,org.eclipse.jdt.core.JavaCore.PLUGIN_ID,-1,Messages.convention_package_nullName,null);
}
int length;
if ((length=name.length()) == 0) {
return new Status(... | Validate the given package name for the given source and compliance levels. <p> The syntax of a package name corresponds to PackageName as defined by PackageDeclaration (JLS2 7.4). For example, <code>"java.lang"</code>. <p> Note that the given name must be a non-empty package name (that is, attempting to validate the d... |
public static boolean isPkgManager(){
return "@REPL_PKGMANAGER@".equals("true");
}
| determines, if this release was compiled and installed by a package manager |
public static List<String> tokenize(String arguments){
return tokenize(arguments,false);
}
| Tokenizes the given String into String tokens |
protected EnumConstruct(XmlNamespace namespace,String tagName,String attrName,Set<String> values){
this(namespace,tagName,attrName,values,null);
}
| Constructs a new EnumConstruct instance associated with a particular XML representation and set of expected values. |
static long[] toLongs(long data,int length){
if (data == 0) {
return null;
}
long[] res=new long[length];
for (int i=0; i < length; i++, data+=getLongSize()) {
res[i]=getLong(data);
}
return res;
}
| Converts length bytes of data pointed by <code>data</code> into byte array Returns null if data is zero |
public boolean hasAccept(){
return accept != null;
}
| Checks if the Accept option is present. |
public Integer read(){
Queue<Integer> txFifo=isTxFifo1() ? fifo1 : fifo2;
if (!isScrTxeSet()) {
if (logSerialMessages) System.err.println("FrSerialInterface.read() was called while Tx is disabled");
return 0;
}
if (txFifo == null) {
setSsrTdre();
if (isScrTieSet()) {
requestInterrupt(... | Gets the data transmitted via Serial port This can only be called by external software to simulate data reading by another device |
public static void sendTempFile(File file,HttpServletResponse response,String mimeType) throws IOException {
if (file.exists()) {
BufferedInputStream bis=new BufferedInputStream(new FileInputStream(file));
if (mimeType != null) {
response.setHeader("Content-Type",mimeType);
}
response.setHeader(... | Binary streams the specified file to the HTTP response in 1KB chunks. |
public void addDimension(Dimension dimension){
getDimensions().add(dimension);
}
| Adds a new dimension. |
public final int yystate(){
return zzLexicalState;
}
| Returns the current lexical state. |
@Override public boolean isRasterFormat(){
return true;
}
| Used to check if the file is raster format. |
private void enqueue(E x){
last=last.next=new Node<E>(x);
}
| Creates a node and links it at end of queue. |
public static <T>T checkNotNull(final T reference,final Object errorMessage){
if (reference == null) {
throw new NullPointerException(String.valueOf(errorMessage));
}
return reference;
}
| Ensures that an object reference passed as a parameter to the calling method is not null. |
@POST @Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON}) @Path("/{id}/protection/snapshots/{sid}/restore") @CheckPermission(roles={Role.TENANT_ADMIN},acls={ACL.OWN,ACL.ALL}) public TaskResourceRep restoreConsistencyGroupSnapshot(@PathParam("id") final URI consistencyGroupId,@PathParam("sid") final URI sn... | Restore the specified consistency group snapshot |
public String optString(String key){
return optString(key,"");
}
| Get an optional string associated with a key. It returns an empty string if there is no such key. If the value is not a string and is not null, then it is coverted to a string. |
public boolean processIt(String processAction){
m_processMsg=null;
DocumentEngine engine=new DocumentEngine(this,getDocStatus());
return engine.processIt(processAction,getDocAction());
}
| Process document |
@DSComment("From safe class list") @DSSafe(DSCat.SAFE_LIST) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:34:07.630 -0500",hash_original_method="4D8DFD32FB0492CC10F2A4C48D6AABE0",hash_generated_method="B71DB3D06622A0296C91FB46F93540CF") public final boolean isStrikeThruText(){
r... | Helper for getFlags(), returning true if STRIKE_THRU_TEXT_FLAG bit is set |
@CanIgnoreReturnValue public static <T>T readLines(URL url,Charset charset,LineProcessor<T> callback) throws IOException {
return asCharSource(url,charset).readLines(callback);
}
| Streams lines from a URL, stopping when our callback returns false, or we have read all of the lines. |
public void updateCircle(float latPoint,float lonPoint,float radius,int units,int nverts,LinkProperties properties,int graphicUpdateMask) throws IOException {
writeGraphicGestureHeader(graphicUpdateMask);
LinkCircle.write(latPoint,lonPoint,radius,units,nverts,properties,link.dos);
}
| Write a circle in the response. |
public void addPutfield(CtClass c,String name,String desc){
addPutfield0(c,null,name,desc);
}
| Appends PUTFIELD. |
protected static int compareValues(Object valueOne,Object valueTwo,boolean isDescending){
if (valueOne == null || valueTwo == null) {
if (valueOne == null && valueTwo == null) {
return 0;
}
if (valueOne == null) {
if (isDescending) {
return 1;
}
return -1;
}
if (isD... | Compares two nullable values. |
@HLEFunction(nid=0xFC6FC07B,version=150) public int sceNetAdhocPtpConnect(@CheckArgument("checkPtpId") int id,int timeout,int nonblock){
return ptpObjects.get(id).connect(timeout,nonblock);
}
| Wait for connection created by sceNetAdhocPtpOpen() |
public void message(CanMessage m){
}
| Don't pay attention to messages |
@Override public void flush() throws IllegalStateException {
log.i("flush");
trackHandlerGate.close();
Message msg=trackHandler.obtainMessage(MSG_FLUSH_TRACK);
if (log.allowDebug()) {
log.d("Sending flush Directtrack handler thread");
}
trackHandler.sendMessage(msg);
trackHandlerGate.block();
if (lo... | FLush will block until previous (possibly write) messages to handler Thread are executed. |
public InvalidResponseException(String message){
super(message);
}
| Construct with specified message. |
public DownExpandAnimation(View view,int duration){
setDuration(duration);
mAnimatedView=view;
mViewLayoutParams=(LayoutParams)view.getLayoutParams();
mIsVisibleAfter=(view.getVisibility() == View.VISIBLE);
mMarginStart=mViewLayoutParams.bottomMargin;
mMarginEnd=(mMarginStart == 0 ? (0 - view.getHeight()) :... | Initialize the animation |
private Node createExternalNode(Node source,Taxon taxon){
ReRootedNode node=new ReRootedNode(source,taxon);
externalNodes.put(taxon,node);
return node;
}
| Creates a new external node with the given taxon. See createInternalNode for a description of how to use these methods. |
private void printModifiers(List<IExtendedModifier> ext){
for (Iterator<IExtendedModifier> it=ext.iterator(); it.hasNext(); ) {
ASTNode p=(ASTNode)it.next();
p.accept(this);
this.fBuffer.append(" ");
}
}
| Appends the text representation of the given modifier flags, followed by a single space. Used for 3.0 modifiers and annotations. |
protected Anonymous_numExpr_2_Impl(){
super();
}
| <!-- begin-user-doc --> <!-- end-user-doc --> |
private LogbackAppenderAccessor wrapAppender(Object appender){
try {
if (appender == null) {
throw new IllegalArgumentException("appender is null");
}
LogbackAppenderAccessor appenderAccessor=new LogbackAppenderAccessor();
appenderAccessor.setTarget(appender);
appenderAccessor.setLoggerAcces... | Wrap appender. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.