code stringlengths 10 174k | nl stringlengths 3 129k |
|---|---|
public Pair<Pair<String,String[]>,List<String>> rewrite(List<String> results){
String commandId=null;
String[] args=null;
List<String> rewrittenResults=new ArrayList<>();
for ( String result : results) {
Triple triple=rewrite(result);
rewrittenResults.add(triple.mStr);
commandId=triple.mId;
arg... | Rewrites and returns the given results. TODO: improve this |
public boolean contains(Object o1,Object o2){
return table.get(o1,o2) != null;
}
| Returns whether the given keys are in the set. |
@Override public void drawItem(Graphics2D g2,CategoryItemRendererState state,Rectangle2D dataArea,CategoryPlot plot,CategoryAxis domainAxis,ValueAxis rangeAxis,CategoryDataset dataset,int row,int column,int pass){
if (!getItemVisible(row,column)) {
return;
}
int visibleRow=state.getVisibleSeriesIndex(row);
... | This function is taken directly from JFreeChart with adjustments to draw differently colored items. When updating JFreeChart this function must probably be adapted. |
private Object readResolve() throws java.io.ObjectStreamException {
switch (type) {
case ANCHOR_START:
return START;
case ANCHOR_MIDDLE:
return MIDDLE;
case ANCHOR_END:
return END;
default :
throw new Error("Unknown Anchor type");
}
}
| This is called by the serialization code before it returns an unserialized object. To provide for unicity of instances, the instance that was read is replaced by its static equivalent. See the serialiazation specification for further details on this method's logic. |
@Override public void remove(EatStatus status,StatusList statusList){
statusList.removeInternal(status);
}
| removes a status |
public static final CButton createNewButton(String text){
AppsAction aa=new AppsAction(A_NEW,KeyStroke.getKeyStroke(KeyEvent.VK_F2,0),text);
CButton button=(CButton)aa.getButton();
button.setMargin(s_insets);
return button;
}
| Create New Button with label text - F2 |
protected Node newNode(){
return new SVGOMFEGaussianBlurElement();
}
| Returns a new uninitialized instance of this object's class. |
private void writeIonValue(IonValue value) throws IonException {
final int valueOffset=myBuffer.length - myOffset;
switch (value.getType()) {
case BLOB:
writeIonBlobContent((IonBlob)value);
break;
case BOOL:
writeIonBoolContent((IonBool)value);
break;
case CLOB:
writeIonClobContent((IonClob)value);
break;
case ... | Writes the IonValue and its nested values recursively, including annotations. |
public Builder shouldStartZK(boolean startZK){
this._shouldStartZK=startZK;
return this;
}
| Whether to start zookeeper? By default is true. |
public static String genRandomString(){
return genRandomString(6);
}
| generate a random string with fixed length |
public void updateScrollBars(){
if (vertical != null && visibleLines != 0) {
vertical.setValues(firstLine,visibleLines,0,getLineCount());
vertical.setUnitIncrement(2);
vertical.setBlockIncrement(visibleLines);
}
int width=painter.getWidth();
if (horizontal != null && width != 0) {
horizontal.set... | Updates the state of the scroll bars. This should be called if the number of lines in the document changes, or when the size of the text are changes. |
private void loadDomoticzServers(){
String serverSettings=prefs.getString(SERVER_PREFS,"");
if (!UsefulBits.isEmpty(serverSettings)) {
mServerList=new ArrayList<>();
String JSON_VALUE_PAIRS="nameValuePairs";
String JSON_CONFIG_INFO="configInfo";
String JSON_OBJECT="jsonObject";
String serverUpda... | Load settings from sharedprefs |
protected void command(short val) throws ParseException {
if (cindex == c.length) {
cs.add(c);
c=new short[c.length * 2 + 1];
cindex=0;
}
c[cindex++]=val;
ccount++;
}
| Adds a path command to the list. |
@Override void doConstrainedOutsideScores(Grammar grammar,boolean viterbi,boolean logScores){
short[] numSubStatesArray=grammar.numSubStates;
double initVal=(logScores) ? Double.NEGATIVE_INFINITY : 0.0;
for (int diff=length; diff >= 1; diff--) {
for (int start=0; start + diff <= length; start++) {
int e... | Fills in the oScore array of each category over each span of length 2 or more. This version computes the posterior outside scores, not the Viterbi outside scores. |
public boolean isNextCharOnNewLine(){
return nextCharOnNewLine;
}
| Returns the nextCharOnNewLine. |
public static boolean uninstallNormal(Context context,String packageName){
if (packageName == null || packageName.length() == 0) {
return false;
}
Intent i=new Intent(Intent.ACTION_DELETE,Uri.parse(new StringBuilder(32).append("package:").append(packageName).toString()));
i.addFlags(Intent.FLAG_ACTIVITY_NEW... | uninstall package normal by system intent |
public void addImage(Image image){
addProperty(image);
}
| Adds an image that is associated with the event. |
public static BufferedImage loadCompatibleImage(URL resource) throws IOException {
BufferedImage image=ImageIO.read(resource);
return toCompatibleImage(image);
}
| <p>Returns a new compatible image from a URL. The image is loaded from the specified location and then turned, if necessary into a compatible image.</p> |
@Override public void updateStatus(JobContext jobContext) throws Exception {
DbClient dbClient=jobContext.getDbClient();
try {
if (status == JobStatus.IN_PROGRESS) {
return;
}
String opId=getTaskCompleter().getOpId();
StringBuilder logMsgBuilder=new StringBuilder(String.format("Updating status... | Called to update the job status when the volume create job completes. This is common update code for volume create operations. |
public static void checkArgument(boolean expression,String errorMessageTemplate,Object... errorMessageArgs){
if (!expression) {
throw new IllegalArgumentException(format(errorMessageTemplate,errorMessageArgs));
}
}
| Ensures the truth of an expression involving one or more parameters to the calling method. |
protected void createClasificadoresPorDefecto(NodeIterator clasificadoresNodeIt,String idClfPadre){
if (clasificadoresNodeIt != null) {
for (Node clasificadorNode=clasificadoresNodeIt.nextNode(); clasificadorNode != null; clasificadorNode=clasificadoresNodeIt.nextNode()) {
DocClasificadorVO clasificador=cre... | Crea los clasificadores por defecto. |
public static boolean isConnected(Context context){
NetworkInfo info=Connectivity.getNetworkInfo(context);
return (info != null && info.isConnected());
}
| Check if there is any connectivity |
Reading makeReading(String s) throws IOException {
if (first) {
log.info("RPS starts, using protocol version " + version);
first=false;
}
if (version == 1) {
java.io.StringReader b=new java.io.StringReader(s);
com.csvreader.CsvReader c=new com.csvreader.CsvReader(b);
c.readRecord();
int co... | Convert input line to Reading object |
public JsEditorConfiguration(Set<AutoEditStrategyFactory> autoEditStrategyFactories,DefaultCodeAssistProcessor defaultProcessor){
this.autoEditStrategyFactories=autoEditStrategyFactories;
this.defaultProcessor=defaultProcessor;
}
| Build a new Configuration with the given set of strategies. |
public static String[] toStringArray(Enumeration<String> enumeration){
if (enumeration == null) {
return null;
}
List<String> list=Collections.list(enumeration);
return list.toArray(new String[list.size()]);
}
| Copy the given Enumeration into a String array. The Enumeration must contain String elements only. |
@Override public void clear(){
long max=Math.max(1,maxMemory / segmentCount);
for (int i=0; i < segmentCount; i++) {
segments[i]=new Segment<K,V>(this,max,stackMoveDistance,8);
}
}
| Remove all entries. |
public static byte[] decodeBase64(byte[] base64Data){
base64Data=discardNonBase64(base64Data);
if (base64Data.length == 0) {
return new byte[0];
}
int numberQuadruple=base64Data.length / FOURBYTE;
byte decodedData[]=null;
byte b1=0, b2=0, b3=0, b4=0, marker0=0, marker1=0;
int encodedIndex=0;
int dat... | Decodes Base64 data into octects |
public void insertUpdate(DocumentEvent changes,Shape a,ViewFactory f){
super.insertUpdate(changes,adjustAllocation(a),f);
updateVisibilityModel();
}
| Gives notification that something was inserted into the document in a location that this view is responsible for. |
public BarRenderer3D(double xOffset,double yOffset){
super();
this.xOffset=xOffset;
this.yOffset=yOffset;
this.wallPaint=DEFAULT_WALL_PAINT;
ItemLabelPosition p1=new ItemLabelPosition(ItemLabelAnchor.INSIDE12,TextAnchor.TOP_CENTER);
setBasePositiveItemLabelPosition(p1);
ItemLabelPosition p2=new ItemLabelP... | Constructs a new renderer with the specified '3D effect'. |
protected boolean shouldInterceptContextMenuDownload(String url){
return mDownloadDelegate.shouldInterceptContextMenuDownload(url);
}
| Check whether the context menu download should be intercepted. |
@Override public boolean isCurrency(int columnIndex){
return false;
}
| Returns false. |
@SuppressWarnings("deprecation") @Deprecated public final void stop(){
if (stopHelper()) {
Thread.currentThread().stop();
}
}
| Stops every thread in this group and recursively in all its subgroups. |
protected static BufferedImage createBufferedImage(int width,int height,ImageContent contentType,int type){
BufferedImage image;
image=new BufferedImage(width,height,type);
boolean hasAlpha=image.getColorModel().hasAlpha();
switch (contentType) {
case RANDOM:
for (int y=0; y < height; y++) {
for (int x=... | Helper routines |
public double[][][] computeLocalFromPreviousObservations(int states[][][],int offsetOfDestFromSources[][]){
return computeLocalFromPreviousObservations(states,offsetOfDestFromSources,false);
}
| Computes local separable information for the given states, using pdfs built up from observations previously sent in via the addObservations method. This method to be used for homogeneous agents only since it assumes offsets are same for all destinations and includes them all in the calculation |
public static CodedInputByteBufferNano newInstance(final byte[] buf,final int off,final int len){
return new CodedInputByteBufferNano(buf,off,len);
}
| Create a new CodedInputStream wrapping the given byte array slice. |
void claimStorageVolumes(Map<VolumeInfo,VPlexStorageVolumeInfo> storageVolumeInfoMap,boolean preserveData) throws VPlexApiException {
URI requestURI=_vplexApiClient.getBaseURI().resolve(VPlexApiConstants.URI_CLAIM_VOLUME);
s_logger.info("Claim storage volumes URI is {}",requestURI.toString());
Iterator<Entry<Volu... | Claims the VPlex volumes in the passed map. |
public static String truncate(final String string,final int maxLen){
if (string.length() <= maxLen) return string;
else return string.substring(0,maxLen);
}
| Returns a truncated string, up to the maximum number of characters |
public void mousePressed(MouseEvent e){
getHandler().mousePressed(e);
}
| Invoked when the mouse has been clicked on the menu. This method clears or sets the selection path of the MenuSelectionManager. |
public void mouseMove(MouseEvent e){
}
| mouseMove, Override this function to catch standard mouse move events. |
public PrevisionVO abrirPrevision(String idPrevision){
PrevisionVO prevision=_previsionDbEntity.getInfoPrevision(idPrevision);
getPrevisionAuthorizationHelper().configurePrevision(prevision);
return prevision;
}
| Pone una prevision a disposicion del usuario que solicita la apertura de manera que unicamente dicho usuario puede realizar acciones sobre la prevision |
public static ConstantNode forIntegerStamp(Stamp stamp,long value){
if (stamp instanceof IntegerStamp) {
IntegerStamp intStamp=(IntegerStamp)stamp;
return forIntegerBits(intStamp.getBits(),value);
}
else {
return forIntegerKind(stamp.getStackKind(),value);
}
}
| Returns a node for a constant integer that's compatible to a given stamp. |
public void initRouteSelector(){
routeCombo=new CheckComboBox<>();
routeCombo.layoutBoundsProperty().addListener(null);
}
| Initializes the control for choosing/creating maps |
void registerSubtype(HGHandle superType,HGHandle subType){
List<HGIndexer<?,?>> forSuperType=indexers.get(superType);
if (forSuperType == null) return;
else if (forSuperType.isEmpty()) indexers.remove(forSuperType);
List<HGIndexer<?,?>> forSubType=indexers.get(subType);
if (forSubType == null) {
forS... | <p> Register a newly created sub-type for indexing along with a super-type. All indexers of the parent type will also apply to the sub-type. This binding of indexers to the sub-types of a type for which they were originally defined is normally done at startup time. However, when a sub-type is created, of a type that i... |
public NodeSecurity findNodeSecurity(String id){
return findNodeSecurity(id,false);
}
| Lookup a node_security in the database, which contains private information used to authenticate. |
public LazyPQueueX<T> with(int i,T element){
return stream(Fluxes.insertAt(Fluxes.deleteBetween(flux(),i,i + 1),i,element));
}
| PStackX methods |
public static XContentType xContentType(CharSequence content){
int length=content.length() < GUESS_HEADER_LENGTH ? content.length() : GUESS_HEADER_LENGTH;
if (length == 0) {
return null;
}
char first=content.charAt(0);
if (first == '{') {
return XContentType.JSON;
}
if (length > 2 && first == Smil... | Guesses the content type based on the provided char sequence. |
public void doSaveAs() throws IOException {
JFileChooser fileChooser=new JFileChooser();
fileChooser.setCurrentDirectory(this.defaultDirectoryForSaveAs);
FileNameExtensionFilter filter=new FileNameExtensionFilter(localizationResources.getString("PNG_Image_Files"),"png");
fileChooser.addChoosableFileFilter(filte... | Opens a file chooser and gives the user an opportunity to save the chart in PNG format. |
public void execute(StepInstance stepInstance,String temporaryFileDirectory){
InputStream inputStream=null;
final String fileName=stepInstance.buildFullyQualifiedFilePath(temporaryFileDirectory,superFamilyBinaryOutputFileName);
Set<RawProtein<SuperFamilyHmmer3RawMatch>> rawProteins;
int count=0;
RawMatch repr... | Parse the output file from the SuperFamily binary and persist the results in the database. |
public void delete(String name) throws IOException {
if (name.equalsIgnoreCase(ALGORITHM)) {
algId=null;
}
else {
throw new IOException("Attribute name not recognized by " + "CertAttrSet:CertificateAlgorithmId.");
}
}
| Delete the attribute value. |
private void traverse(GroovySourceAST t,List l,Iterator itr){
while (t != null) {
if (l != null) {
l.add(new LineColumn(t.getLine(),t.getColumn()));
}
if (itr != null && itr.hasNext()) {
LineColumn lc=(LineColumn)itr.next();
if (t.getLineLast() == 0) {
int nextLine=lc.getLine();
... | traverse an AST node |
public BatchContains(){
}
| De-serialization ctor. |
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-09-03 15:01:22.957 -0400",hash_original_method="F239F6C289BCD2F4BC55F0B83883F380",hash_generated_method="0B62545A3C3BEE8E8076FDE47AEDF4BD") public Phaser(){
this(null,0);
}
| Creates a new phaser with no initially registered parties, no parent, and initial phase number 0. Any thread using this phaser will need to first register for it. |
private static String toCurl(HttpUriRequest request,boolean logAuthToken) throws IOException {
StringBuilder builder=new StringBuilder();
builder.append("curl ");
for ( Header header : request.getAllHeaders()) {
if (!logAuthToken && (header.getName().equals("Authorization") || header.getName().equals("Cookie... | Generates a cURL command equivalent to the given request. |
public void addRangeWithWidth(int lonm1,int width){
int lonm2;
if (width < 0) {
lonm2=lonm1;
lonm1=lonm2 + width;
}
else {
lonm2=lonm1 + width;
}
addRange(lonm1,lonm2);
}
| Add a range using a starting position and width |
public void publish(String message,Level level){
try {
publish(new LogRecord(level,message));
}
catch ( Exception e) {
throw new RuntimeException("Error writing a log-like message.",e);
}
}
| Print a message as if it were logged, without going through the full logger. |
private static int encode(int n){
return n < 0 ? ((-n << 1) + 1) : (n << 1);
}
| Encodes an integer so it can be inserted into the set. |
public DialogueState(BNetwork network){
super();
super.reset(network);
evidence=new Assignment();
parameterVars=new HashSet<String>();
incrementalVars=new HashSet<String>();
}
| Creates a new dialogue state that contains the Bayesian network provided as argument. |
public AbTitleBar(Context context){
super(context);
ininTitleBar(context);
}
| Instantiates a new ab title bar. |
public static void main(String[] args){
runClassifier(new NaiveBayesMultinomialUpdateable(),args);
}
| Main method for testing this class. |
public Object runSafely(Catbert.FastStack stack) throws Exception {
return sage.plugin.CorePluginManager.getInstance().getPluginProgress();
}
| Returns a progress based status message regarding any current plugin installation. This is for non-localhost connected SageTVClients regarding client plugin installation. There is no progress messages for plugin uninstalls since they should happen relatively quickly. |
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:32:46.635 -0500",hash_original_method="C444A575AEA295F9C8E995BA1405A425",hash_generated_method="F4FA90B78B2EB701CCA6C72BBED426F8") public void onSelectionStringChange(String selectionString){
if (DEBUG) {
Log.d(LOG_TAG,"Selection... | Called when the <code>selectionString</code> has changed. |
public static double gaussian(double mean,double stddev){
return mean + stddev * gaussian();
}
| Returns a real number from a gaussian distribution with given mean and stddev |
@LargeTest public void testErrorUnhandledHttpCode() throws Exception {
Uri uri=getServerUri(DEFAULT_FILENAME);
enqueueResponse(buildResponse(HTTP_PARTIAL_CONTENT));
doErrorTest(uri,DownloadManager.ERROR_UNHANDLED_HTTP_CODE);
}
| Tests the download failure error from an unhandled HTTP status code |
protected BaseDuration(long startInstant,long endInstant){
super();
iMillis=FieldUtils.safeAdd(endInstant,-startInstant);
}
| Creates a duration from the given interval endpoints. |
public void run(){
try {
ServerSocket serverSocket=new ServerSocket(serverPort);
Socket socket;
System.out.println("LinkServerStarter: running on port " + serverPort);
while (true) {
socket=serverSocket.accept();
System.out.println("LinkServer: fielding connection");
((Thread)startNe... | The method of the parent server that is listening for clients. When a contact is made, a child thread is spawned off to handle the client. |
private static boolean less(Comparable v,Comparable w){
return v.compareTo(w) < 0;
}
| Helper sorting functions. |
public ClusterConfig(List<Node> nodes,short thisNodeId,AuthScheme authScheme,String keyStorePath,String keyStorePassword) throws SyncException {
init(nodes,thisNodeId,authScheme,keyStorePath,keyStorePassword);
}
| Initialize a cluster config using a list of nodes |
public boolean isBypass(){
return bypass;
}
| Does this module bypass class searching? If the 'Toast-Plugin-Class' entry exists in the MANIFEST.MF file of this module, the RobotLoader will skip searching for the ToastModule class and jump directly to the one specified in this entry. This makes loading times shorter for larger modules, but the user has to make sure... |
public double entropyNMISqrt(){
if (entropyFirst() * entropySecond() <= 0) {
return entropyMutualInformation();
}
return (entropyMutualInformation() / Math.sqrt(entropyFirst() * entropySecond()));
}
| Get the sqrt-normalized mutual information (normalized, 0 = unequal) |
protected void uninstallDefaults(){
LookAndFeel.installColorsAndFont(comboBox,"ComboBox.background","ComboBox.foreground","ComboBox.font");
LookAndFeel.uninstallBorder(comboBox);
}
| Uninstalls the default colors, default font, default renderer, and default editor from the combo box. |
public static void main(String[] argv){
runFilter(new RemoveType(),argv);
}
| Main method for testing this class. |
@Override protected EClass eStaticClass(){
return N4JSPackage.Literals.NUMERIC_LITERAL;
}
| <!-- begin-user-doc --> <!-- end-user-doc --> |
public DiscoveryNode localNode(){
return nodes.get(localNodeId);
}
| Get the local node |
public IIRFilter init(final float freq,float q){
float theta=sampleRateRadians * freq;
float si=sinTable.sin(theta);
float co=sinTable.cos(theta);
alpha=si / q;
a0=1f / (1 + alpha);
a1=-2 * co;
a2=1 - alpha;
switch (type) {
case LOWPASS:
b0=b2=(1f - co) * 0.5f;
b1=1f - co;
break;
case HIGHPASS:
b0=b... | Initializes the filter to the given cutoff frequency and Q (resonance) settings. This function needs to be called at least once before the filter can be used. |
private void parseArguments(final String[] args){
if (args.length == 0) {
System.out.println("Too few arguments.");
System.exit(1);
}
Iterator<String> argIter=new ArgumentParser(args).iterator();
String arg=argIter.next();
if (arg.equals("-h") || arg.equals("--help")) {
System.exit(0);
}
else {... | Parses all arguments and sets the corresponding members. |
public static void serializeTo(Object obj,HeapDataOutputStream hdos) throws IOException {
final int startBytes=hdos.size();
final long start=startSerialization();
DataSerializer.writeObject(obj,hdos);
endSerialization(start,hdos.size() - startBytes);
}
| A blob is a serialized Object. This method serializes the object into the given HeapDataOutputStream. |
void ensureExistenceRepoRootInWorkingDirectory() throws GitException {
if (isInsideWorkTree()) {
final EmptyGitCommand emptyGitCommand=nativeGit.createEmptyGitCommand();
emptyGitCommand.setNextParameter("rev-parse").setNextParameter("--git-dir").execute();
final String gitDir=emptyGitCommand.getText();
... | Ensure existence repository root directory inside working directory and in our virtual file system |
public void connect(Navigator navigator){
if (navigator != null && navigator != this) {
addNavigationListener(navigator);
navigator.addNavigationListener(this);
}
}
| Couples the actions of the current and the specified navigator. All actions applied to this navigator will be also applied to the specified navigator and vice versa. |
private void showMessage(String number,String order){
Intent intent=new Intent(MainActivity.this,OrderActivity.class);
intent.putExtra("ORDER_NUMBER",number);
intent.putExtra("ORDER_MESSAGE",order);
startActivity(intent);
}
| Display the message to user. |
private void showFeedback(String feedback){
if (myHost != null) {
myHost.showFeedback(feedback);
}
else {
System.out.println(feedback);
}
}
| Used to communicate feedback pop-up messages between a plugin tool and the main Whitebox user-interface. |
private static IAbstractNode convertOr(final CommonTree ast) throws RecognitionException {
final List<IAbstractNode> children=new ArrayList<IAbstractNode>();
for ( final Object childObject : ast.getChildren()) {
children.add(convert((CommonTree)childObject));
}
return new CAbstractOrExpression(children);
}... | Converts an ANTRL OR AST into a filter OR AST. |
public static String toString(Object object,String tagName) throws JSONException {
StringBuilder sb=new StringBuilder();
int i;
JSONArray ja;
JSONObject jo;
String key;
Iterator<String> keys;
int length;
String string;
Object value;
if (object instanceof JSONObject) {
if (tagName != null) {
... | Convert a JSONObject into a well-formed, element-normal XML string. |
public PathMatcherTerm(PathMatcher pathMatcher,boolean recursive,boolean cumulative){
this.term=pathMatcher;
this.recursive=recursive;
this.cumulative=cumulative;
}
| Creates a new object with the filter specified by <code>pathMatcher</code>. Depending on parameters, this term may be recursive and/or cumulative. |
private void updateAmtHeader(){
MCommissionAmt amt=new MCommissionAmt(getCtx(),getC_CommissionAmt_ID(),get_TrxName());
amt.calculateCommission();
amt.saveEx();
}
| Update Amt Header |
public void filledCircle(double x,double y,double r){
if (r < 0) throw new IllegalArgumentException("circle radius can't be negative");
double xs=scaleX(x);
double ys=scaleY(y);
double ws=factorX(2 * r);
double hs=factorY(2 * r);
if (ws <= 1 && hs <= 1) pixel(x,y);
else offscreen.fill(new Ellipse2D.D... | Draws a filled circle of radius r, centered on (x, y). |
private int contentMoveDown(int dy,RecyclerView.Recycler recycler){
int actualDy=dy;
int maxHeightItemIndex=getMaxHeightLayoutPositionInLine(0);
View maxHeightItem=getChildAt(maxHeightItemIndex);
int offScreenTop=topVisibleEdge() - getDecoratedTop(maxHeightItem);
if (offScreenTop > Math.abs(actualDy)) {
o... | Contents move down to bottom |
public static void initDefaultFlowMod(OFFlowMod fm,String entryName){
fm.setIdleTimeout((short)0);
fm.setHardTimeout((short)0);
fm.setBufferId(OFPacketOut.BUFFER_ID_NONE);
fm.setCommand((short)0);
fm.setFlags((short)0);
fm.setOutPort(OFPort.OFPP_NONE.getValue());
fm.setCookie(computeEntryCookie(fm,0,entry... | Sets defaults for an OFFlowMod |
public BitemporalCondition vtFrom(Object vtFrom){
this.vtFrom=vtFrom;
return this;
}
| Sets the valid time start. |
@Override public NotificationChain eInverseRemove(InternalEObject otherEnd,int featureID,NotificationChain msgs){
switch (featureID) {
case GamlPackage.SIF__ELSE:
return basicSetElse(null,msgs);
}
return super.eInverseRemove(otherEnd,featureID,msgs);
}
| <!-- begin-user-doc --> <!-- end-user-doc --> |
@SideEffectFree @Override public ImmutableSet<Map.Entry<K,V>> entries(){
ImmutableSet<Map.Entry<K,V>> result=entries;
return (result == null) ? (entries=ImmutableSet.copyOf(super.entries())) : result;
}
| Returns an immutable collection of all key-value pairs in the multimap. Its iterator traverses the values for the first key, the values for the second key, and so on. |
public Builder(Context context){
this.context=context;
}
| Constructs a Builder. |
public boolean isDone(){
return false;
}
| Always process all intersections |
@Override public void show(float translationX,float translationY){
}
| Shows the FAB and sets the FAB's translation. |
public ContainerInfo inspectContainer(String container) throws IOException {
return doInspectContainer(container,dockerDaemonUri);
}
| Gets detailed information about docker container. |
public OptionGroup(String name,String key){
this.name=name;
this.key=key;
}
| Creates new OptionGroup |
AudioCapabilities(int[] supportedEncodings,int maxChannelCount){
if (supportedEncodings != null) {
this.supportedEncodings=Arrays.copyOf(supportedEncodings,supportedEncodings.length);
Arrays.sort(this.supportedEncodings);
}
else {
this.supportedEncodings=new int[0];
}
this.maxChannelCount=maxChanne... | Constructs new audio capabilities based on a set of supported encodings and a maximum channel count. |
public StackedViewAction(final VisionWorld visionWorld){
super("Stacked view");
if (visionWorld == null) {
throw new IllegalArgumentException("visionWorld must not be null");
}
putValue(SMALL_ICON,ResourceManager.getImageIcon("gridOffset.png"));
this.visionWorld=visionWorld;
}
| Create a new stacked view action. |
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:36:29.508 -0500",hash_original_method="A6495E0C14482D9554C3F987B616D040",hash_generated_method="F7D2B2F3DFF01541550944824DDBFEE7") public void onRinging(SipSession session,SipProfile caller,String sessionDescription){
}
| Called when an INVITE request is received. |
private void returnData(Object ret){
if (myHost != null) {
myHost.returnData(ret);
}
}
| Used to communicate a return object from a plugin tool to the main Whitebox user-interface. |
public static List<String> readLines(URL self,String charset) throws IOException {
return IOGroovyMethods.readLines(newReader(self,charset));
}
| Reads the URL contents into a list, with one element for each line. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.