code
stringlengths
10
174k
nl
stringlengths
3
129k
public ValidationException(String message,Throwable cause){ super(message,cause); }
Constructs new ValidationException with a String message and a Throwable cause.
protected void validateAlternateName(java.lang.String[] param){ }
validate the array for AlternateName
public String toString(){ return name; }
Converting the rule to a string ( the name )
public static void wtf(String msg){ log(LEVEL.ASSERT,null,msg,null); }
Send a What a Terrible Failure log message
public static String toString(final int value){ return Integer.toString(value); }
Converts the given value to the XML string value.
RosterGroup(String name,Connection connection){ this.name=name; this.connection=connection; entries=new ArrayList<RosterEntry>(); }
Creates a new roster group instance.
@Override public void didBeginAnimation(Object sender,PLICamera camera,PLCameraAnimationType type){ switch (type) { case PLCameraAnimationTypeLookAt: mView.setValidForCameraAnimation(true); break; default : break; } PLViewListener listener=mView.getListener(); if (listener != null) listener.onDidBeginCameraAnimat...
PLCameraListener methods
public void dropDatabase(Handler<ExtendedAsyncResult<Void>> fut){ cli.getCollections(null); }
Drop all (relevant?) collections. The idea is that we can start our integration tests on a clean slate
public Object runSafely(Catbert.FastStack stack) throws Exception { return DShowDVDPlayer.getDVDAudioDecoderFilter(); }
Gets the name of the DirectShow audio decoder filter that's used for DVD playback (Windows only)
public void compose(StylesheetRoot sroot) throws TransformerException { if (null == m_selectPattern && sroot.getOptimizer()) { XPath newSelect=ElemVariable.rewriteChildToExpression(this); if (null != newSelect) m_selectPattern=newSelect; } m_qnameID=sroot.getComposeState().getQNameID(m_qname); super...
This function is called after everything else has been recomposed, and allows the template to set remaining values that may be based on some other property that depends on recomposition.
public BarChart(final String title,final String xAxisLabel,final String yAxisLabel,final String[] categories){ super(title,xAxisLabel,yAxisLabel); this.dataset=new DefaultCategoryDataset(); this.chart=createChart(title,xAxisLabel,yAxisLabel,this.dataset); this.plot=this.chart.getCategoryPlot(); this.categorie...
Creates a new BarChart with the specified category-labels.
public List<Object> readField(Map<String,Object> source,String name){ final List<String> keys=Arrays.asList(name.split("\\.")); List<Object> values=new ArrayList<>(); if (!keys.isEmpty()) { readField(source.get(keys.get(0)),keys.subList(1,keys.size()),values); } final List<Object> result; if (!values.is...
Read field from document source.
public void paint(Graphics a,JComponent b){ for (int i=0; i < uis.size(); i++) { ((ComponentUI)(uis.elementAt(i))).paint(a,b); } }
Invokes the <code>paint</code> method on each UI handled by this object.
protected String columnToTypeString(Column c,String tableType){ switch (c.getType()) { case Types.TINYINT: return "SMALLINT"; case Types.SMALLINT: return "SMALLINT"; case Types.INTEGER: return "INTEGER"; case Types.BIGINT: return "BIGINT"; case Types.CHAR: { if (c.getLength() == 1) return "CHAR(5)"; else return ...
Converts column types according to standard Vertica names.
public Builder t(){ this.withThread=true; this.threadSet=true; return this; }
Enable thread info.
private Hop fuseDatagenAndBinaryOperation(Hop hi) throws HopsException { if (hi instanceof BinaryOp) { BinaryOp bop=(BinaryOp)hi; Hop left=bop.getInput().get(0); Hop right=bop.getInput().get(1); if (left instanceof DataGenOp && ((DataGenOp)left).getOp() == DataGenMethod.RAND && right instanceof Litera...
Handle removal of unnecessary binary operations over rand data rand*7 -> rand(min*7,max*7); rand+7 -> rand(min+7,max+7); rand-7 -> rand(min+(-7),max+(-7)) 7*rand -> rand(min*7,max*7); 7+rand -> rand(min+7,max+7);
public void encode(OutputStream out) throws IOException { DerOutputStream tmp=new DerOutputStream(); if (this.extensionValue == null) { this.extensionId=PKIXExtensions.KeyUsage_Id; this.critical=true; encodeThis(); } super.encode(tmp); out.write(tmp.toByteArray()); }
Write the extension to the DerOutputStream.
public static OEmbed createOEmbed(final String rawJSON) throws TwitterException { try { final JSONObject json=new JSONObject(rawJSON); return oembedConstructor.newInstance(json); } catch ( final InstantiationException e) { throw new TwitterException(e); } catch ( final IllegalAccessException e) { ...
Constructs an OEmbed object from rawJSON string.
public boolean startsWith(String prefix){ return m_str.startsWith(prefix); }
Tests if this string starts with the specified prefix.
final void forgetNext(){ UNSAFE.putObject(this,nextOffset,this); }
Links node to itself to avoid garbage retention. Called only after CASing head field, so uses relaxed write.
public static void main(String[] args){ Rectangle r1=new Rectangle(3,5,"blue",true); Rectangle r2=new Rectangle(5,3,"gray",false); Rectangle r3=new Rectangle(3.1,5,"blue",true); System.out.println("Rectangle1 Area :" + r1.getArea()); System.out.println("Rectangle2 Area :" + r2.getArea()); System.out.println...
Main method
public static List<PlanElement> linkParentPlansToGivenPlanElements(List<PlanElement> planElements){ Map<Id<Operator>,HashMap<Id<PPlan>,PlanElement>> operatorId2planId2planElement=new HashMap<Id<Operator>,HashMap<Id<PPlan>,PlanElement>>(); for ( PlanElement planElement : planElements) { Id<Operator> operatorId=...
Add a pointer from each child to its parent.
public byte[] genBytecode() throws Exception { ClassWriter cw=new ClassWriter(ClassWriter.COMPUTE_MAXS); FieldVisitor fv; MethodVisitor mv; final boolean itf=false; cw.visit(V1_8,ACC_FINAL + ACC_SUPER,arrayImplClassName,null,"java/lang/Object",new String[]{arrayInterfaceClassName}); { fv=cw.visitField(ACC...
Generate bytecodes for runtime class
public Taxi(){ super(); }
Needed by CGLib
public void testAddServletWithNameAndClass() throws Exception { String xml=WEBAPP_TEST_HEADER + "" + "</web-app>"; this.builder.build(new ByteArrayInputStream(xml.getBytes("UTF-8"))); WebXml webXml=WebXmlIo.parseWebXml(new ByteArrayInputStream(xml.getBytes("UTF-8")),getEntityResolver()); WebXmlUtils.addServlet(...
Tests whether a single servlet can be added using the method that takes a string for the servlet name and a string for the servlet class.
public static long parseLong(CharSequence csq){ return parseLong(csq,10); }
Parses the whole specified character sequence as a signed decimal <code>long</code>.
private void cleanupDestination(State state,int finalStatus){ closeDestination(state); if (state.mFilename != null && DownloaderService.isStatusError(finalStatus)) { new File(state.mFilename).delete(); state.mFilename=null; } }
Called just before the thread finishes, regardless of status, to take any necessary action on the downloaded file.
public static int hash(int item){ return item; }
Hash an int value.
private void processMatchableNode(Element element){ if (!processedMatchableNode.contains(element)) { try { processedMatchableNode.add(element); AnnotationMirror mirror=findAnnotationMirror(element,matchableNodesTypeMirror); if (mirror == null) { mirror=findAnnotationMirror(element,matcha...
Build up the type table to be used during parsing of the MatchRule.
void lineLine(){ int lineCount=1; int lineIncrement=1; int njplsStart; int jplsStart; njplsStart=readNumber(); if (sdePeek() == '#') { sdeAdvance(); currentFileId=readNumber(); } if (sdePeek() == ',') { sdeAdvance(); lineCount=readNumber(); } if (sdeRead() != ':') { syntax(); }...
Parse line translation info. Syntax is <NJ-start-line> [ # <file-id> ] [ , <line-count> ] : <J-start-line> [ , <line-increment> ] CR
public void installUI(JComponent a){ for (int i=0; i < uis.size(); i++) { ((ComponentUI)(uis.elementAt(i))).installUI(a); } }
Invokes the <code>installUI</code> method on each UI handled by this object.
public void endVisit(CastExpression node){ }
End of visit the given type-specific AST node. <p> The default implementation does nothing. Subclasses may reimplement. </p>
public static byte[] altBase64ToByteArray(String s){ return base64ToByteArray(s,true); }
Translates the specified "alternate representation" Base64 string into a byte array.
public void addTimeToBounds(TimeBounds timeBounds){ addTimeToBounds(timeBounds.getStartTime()); addTimeToBounds(timeBounds.getEndTime()); }
Add the start and end times of provided TimeBounds to this TimeBounds.
public RangeQueryBuilder to(double to){ this.to=to; return this; }
The to part of the range query. Null indicates unbounded.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:30:41.868 -0500",hash_original_method="5FFF4B907A3EDB23E7C228BF47F3F987",hash_generated_method="76D5886473A7D16C3BEA42F2523EF201") public void startTest(Test test){ mTimingValid=true; mStartTime=System.currentTimeMillis(); }
send a status for the start of a each test, so long tests can be seen as "running"
public static byte[] loadData(final AbstractSQLProvider provider,final CModule module) throws CouldntLoadDataException { Preconditions.checkNotNull(provider,"IE01265: Provider argument can not be null"); Preconditions.checkNotNull(module,"IE01266: Module argument can not be null"); Preconditions.checkArgument(mod...
Loads the data of a module from the database. The module must be a module stored in the database.
public long optLong(String key){ return this.optLong(key,0); }
Get an optional long value associated with a key, or zero if there is no such key or if the value is not a number. If the value is a string, an attempt will be made to evaluate it as a number.
public boolean isPerVmSwapFiles(){ return perVmSwapFiles; }
Gets the value of the perVmSwapFiles property.
final boolean cannotPrecede(boolean haveData){ boolean d=isData; Object x; return d != haveData && (x=item) != this && (x != null) == d; }
Returns true if a node with the given mode cannot be appended to this node because this node is unmatched and has opposite data mode.
public static void main(String[] args){ if (args.length < 1) { throw new IllegalArgumentException("No configuration file specified"); } String configPath=args[0]; File configFile=new File(configPath); if (System.getProperty("log.name") == null) { String logName=StringUtils.substringBefore(configFile.g...
System properties needed to launch this: -Dproduct.home=<path to working dir> (in eclipse: ${workspace_loc:runtime}/working) -Djava.net.preferIPv4Stack=true
private Properties loadProperties(String subDirectory) throws Exception { File jettyBase=new File("target/jetty-base"); assertTrue(jettyBase + " is not a directory",jettyBase.isDirectory()); File propertiesFile=new File(jettyBase,subDirectory + "/test.properties"); assertTrue(propertiesFile + " is not a file",p...
Load properties
public CreateSubscriptionResponse CreateSubscription(CreateSubscriptionRequest req) throws ServiceFaultException, ServiceResultException { return (CreateSubscriptionResponse)channel.serviceRequest(req); }
Synchronous CreateSubscription service request.
public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { request.getSession().setAttribute("school","xdkj"); response.sendRedirect("servlet/SchoolServlet"); return; }
The doGet method of the servlet. <br> This method is called when a form has its tag value method equals to get.
public BytecodeOffsetTag(int offset){ this.offset=offset; }
Constructs a tag from the index offset.
public void advance(){ moveToNextIndex(); }
Moves the iterator forward to the next entry in the underlying map.
public void deleteImageSharings2(ContactId contact) throws RemoteException { if (contact == null) { throw new ServerApiIllegalArgumentException("contact must not be null!"); } mRichcallService.tryToDeleteImageSharings(contact); }
Deletes image sharing with a given contact from history and abort/reject any associated ongoing session if such exists
public boolean dynInit() throws Exception { log.config(""); super.dynInit(); dialog.setTitle(getTitle()); initBPartner(true); bPartnerField.addVetoableChangeListener(this); loadRMA(); return true; }
Dynamic Init
public static <T1,T2,T3,T4,T5,T6,T7,T8,R>QuintFunction<T4,T5,T6,T7,T8,R> partial8(final T1 t1,final T2 t2,final T3 t3,final OctFunction<T1,T2,T3,T4,T5,T6,T7,T8,R> octFunc){ return null; }
Returns a QuintFunction with 3 arguments applied to the supplied OctFunction
private static boolean isASCIISuperset(String encoding) throws Exception { String chkS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" + "abcdefghijklmnopqrstuvwxyz-_.!~*'();/?:@&=+$,"; byte[] chkB={48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,1...
Test the named character encoding to verify that it converts ASCII characters correctly. We have to use an ASCII based encoding, or else the NetworkClients will not work correctly in EBCDIC based systems. However, we cannot just use ASCII or ISO8859_1 universally, because in Asian locales, non-ASCII characters may be e...
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-02-25 10:38:02.846 -0500",hash_original_method="18514752AF9765DC2B592BA63E6E31BB",hash_generated_method="0BBE24FD00D06DA5CCB82C2749A74814") @DSVerified @DSSafe(DSCat.SAFE_OTHERS) public SMTPConnectionClosedException(){ super(); }
Constructs a SMTPConnectionClosedException with no message
private ModelMBeanInfo createModelMBeanInfo() throws Exception { String descriptionOp1Set="ManagedResource description setter"; Class[] paramsSet1={Class.forName("java.lang.Object"),Class.forName("java.lang.String")}; Method oper1Set=RequiredModelMBean.class.getMethod("setManagedResource",paramsSet1); ModelMBea...
Returns a ModelMBeanInfo with two operations: setManagedResource addAttributeChangeNotificationListener
void execute(String command) throws XAException { try { connection.createStatement().execute(command); } catch ( SQLException sqle) { throw mapXaException(sqle); } }
Execute a query.
public int scale(){ if (scale == null) return 1; return scale; }
Query for the current scale value.
public URL find(String classname){ try { URLConnection con=openClassfile0(classname); InputStream is=con.getInputStream(); if (is != null) { is.close(); return con.getURL(); } } catch ( IOException e) { } return null; }
Returns the URL.
private ListenableFuture sendSingleGetData(GetDataMessage getdata){ Preconditions.checkArgument(getdata.getItems().size() == 1); GetDataRequest req=new GetDataRequest(getdata.getItems().get(0).hash,SettableFuture.create()); getDataFutures.add(req); sendMessage(getdata); return req.future; }
Sends a getdata with a single item in it.
public JSONArray put(int value){ this.put(new Integer(value)); return this; }
Append an int value. This increases the array's length by one.
public double value(final Array x){ functionEvaluation_++; return costFunction_.value(x); }
Call cost function computation and increment evaluation counter
public static int dialogUnitYAsPixel(int dluY,Component component){ return dluY == 0 ? 0 : getUnitConverter().dialogUnitYAsPixel(dluY,component); }
Converts vertical dialog units and returns pixels. Honors the resolution, dialog font size, platform, and l&amp;f.
MethodHandle linkMethodHandleConstant(byte refKind,Class<?> defc,String name,Object type) throws ReflectiveOperationException { if (!(type instanceof Class || type instanceof MethodType)) throw new InternalError("unresolved MemberName"); MemberName member=new MemberName(refKind,defc,name,type); MethodHandle mh=...
Hook called from the JVM (via MethodHandleNatives) to link MH constants:
public ScriptEditor(){ textArea=new RSyntaxTextArea(DEFAULT_HEIGHT,DEFAULT_WIDTH); initPanel(); }
Construct the main frame.
public void changeStarted(GraphicsNodeChangeEvent gnce){ GraphicsNode gn=gnce.getGraphicsNode(); WeakReference gnWRef=gn.getWeakReference(); boolean doPut=false; if (dirtyNodes == null) { dirtyNodes=new HashMap(); doPut=true; } else if (!dirtyNodes.containsKey(gnWRef)) doPut=true; if (doPut) { ...
Receives notification of a change to a GraphicsNode.
public boolean isSetSwPortTuple(){ return this.swPortTuple != null; }
Returns true if field swPortTuple is set (has been assigned a value) and false otherwise
public TestHiveServer(int localThreadCount){ serverAddress="local[" + localThreadCount + "]"; }
Makes a TestHiveServer backed with a local spark instance on a requested number of threads.
private void appendMultiPointText(MultiPoint multiPoint,int level,Writer writer) throws IOException { if (multiPoint.isEmpty()) { writer.write("EMPTY"); } else { writer.write("("); for (int i=0; i < multiPoint.getNumGeometries(); i++) { if (i > 0) { writer.write(", "); indentCoord...
Converts a <code>MultiPoint</code> to &lt;MultiPoint Text&gt; format, then appends it to the writer.
public void addHistoryChangedListener(HistoryChangedListener l){ m_ConnectionPanel.addHistoryChangedListener(l); m_QueryPanel.addHistoryChangedListener(l); }
adds the given listener to the list of listeners.
@Override public void run(){ amIActive=true; if (args.length < 2) { showFeedback("Plugin parameters have not been set properly."); return; } String inputHeader=args[0]; String outputHeader=args[1]; if ((inputHeader == null) || (outputHeader == null)) { showFeedback("One or more of the input para...
Used to execute this plugin tool.
private void computeDefaultVisibilityMap(JsonObject jsonObj){ defaultVisibilityMap=new TreeMap<String,Boolean>(); JsonElement visibility=jsonObj.get("visibility"); if (visibility != null && visibility.isJsonObject()) { for ( Map.Entry<String,JsonElement> entry : visibility.getAsJsonObject().entrySet()) { ...
Computes the default visibility map from the 'visibility' property of the top-level Json object for the indicator.
public NetView(NetView other,int viewId){ this.creator=other.creator; this.viewId=viewId; this.members=new ArrayList<>(other.members); this.hashedMembers=new HashSet<>(other.members); this.failureDetectionPorts=new int[other.failureDetectionPorts.length]; System.arraycopy(other.failureDetectionPorts,0,this....
Create a new view with the contents of the given view and the specified view ID
protected void cascade(Component comp){ Dimension paneSize=getSize(); int targetWidth=(3 * paneSize.width) / 4; int targetHeight=(3 * paneSize.height) / 4; DesktopManager manager=getDesktopManager(); if (manager == null) { comp.setBounds(0,0,targetWidth,targetHeight); return; } if (((nextX + targe...
Method cascade.
@Override public boolean isBusy(){ return m_busy; }
Returns true if we are doing something
public boolean isAddressLinesReverse(){ Object oo=get_Value(COLUMNNAME_IsAddressLinesReverse); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; }
Get Reverse Address Lines.
private TopDocs searchByVersion(String selfLink,IndexSearcher s,Long version) throws IOException { Query tqSelfLink=new TermQuery(new Term(ServiceDocument.FIELD_NAME_SELF_LINK,selfLink)); BooleanQuery.Builder builder=new BooleanQuery.Builder(); builder.add(tqSelfLink,Occur.MUST); if (version != null) { Quer...
Find the document given a self link and version number. This function is used for two purposes; find given version to... 1) load state if the service state is not yet cached 2) filter query results to only include the given version In case (1), authorization is applied in the service host (either against the cached sta...
void uploadSessionFinished(){ uploadAborted=false; if (!errorOccured && !artifactUploadState.isStatusPopupMinimized()) { clearWindow(); } artifactUploadState.setUploadCompleted(true); minimizeButton.setEnabled(false); closeButton.setEnabled(true); confirmDialog.getWindow().close(); UI.getCurrent().r...
Automatically close if not error has occured.
public Long addState(String name,String shortName,int code){ try { States st=new States(); st.setName(name); st.setShortName(shortName); st.setCode(code); st.setStarttime(new Date()); st.setDeleted("false"); st=em.merge(st); Long id=st.getState_id(); log.debug("added id " + id); ...
adds a new State to the states table
private int[] readTypeAnnotations(final MethodVisitor mv,final Context context,int u,boolean visible){ char[] c=context.buffer; int[] offsets=new int[readUnsignedShort(u)]; u+=2; for (int i=0; i < offsets.length; ++i) { offsets[i]=u; int target=readInt(u); switch (target >>> 24) { case 0x00: case 0x01: ...
Parses a type annotation table to find the labels, and to visit the try catch block annotations.
private static Object[] splitLine(String line,Pattern delim,char quote,BufferedReader in,int numColumns) throws IOException { List<String> tokens=new ArrayList<String>(); StringBuilder sb=new StringBuilder(); Matcher m=delim.matcher(line); int idx=0; while (idx < line.length()) { if (line.charAt(idx) == q...
Splits the given line using the given delimiter pattern and quote character. May read additional lines for quotes spanning newlines.
private void testAdd() throws Exception { LOG.info("add"); long msgCount=messageMapper.countMessagesInMailbox(MBOXES.get(1)); LOG.info(msgCount + " " + MESSAGE_NO.size()); assertEquals(MESSAGE_NO.size(),msgCount); }
Test of add method, of class HBaseMessageMapper.
public boolean isDirectory(){ return getWrappedPath().isDirectory(); }
Tests if the path refers to a directory.
public static boolean containsAny(CharSequence cs,CharSequence searchChars){ if (searchChars == null) { return false; } return containsAny(cs,toCharArray(searchChars)); }
Checks if the CharSequence contains any character in the given set of characters.
public Query(final String indexName,final QueryBuilder queryBuilder,String order_field,int timezoneOffset,int resultCount,long histogram_interval,String histogram_timefield,int aggregationLimit,String... aggregationFields){ SearchRequestBuilder request=elasticsearchClient.prepareSearch(indexName).setSearchType(Search...
Search the local message cache using a elasticsearch query.
public static void register(){ DdmServer.registerHandler(CHUNK_HELO,mInstance); DdmServer.registerHandler(CHUNK_FEAT,mInstance); }
Register for the messages we're interested in.
public MutableTriple(){ super(); }
Create a new triple instance of three nulls.
public static <E extends Comparable<E>>E max(ArrayList<E> list){ E max=list.get(0); for (int i=1; i < list.size(); i++) { if (max.compareTo(list.get(i)) < 0) max=list.get(i); } return max; }
Method returns the largest element in an ArrayList
public void start(){ stop(); for (int i=0; i < mDispatchers.length; i++) { DownloadDispatcher networkDispatcher=new DownloadDispatcher(mUnFinishQueue,mDownloadQueue); mDispatchers[i]=networkDispatcher; networkDispatcher.start(); } }
Start polling the download queue, a one of the implementation of the download task, if you have started to poll the download queue, then it will stop all the threads, to re create thread execution.
public NoRouteToHostException(String detailMessage){ super(detailMessage); }
Constructs a new instance with the given detail message.
@Override @SuppressWarnings("unchecked") public Object invoke(Object object,Method nativeMethod,Object[] objects) throws Throwable { log.debug("Invoked. NativeMethod={}, method args length={}",nativeMethod.getName(),objects.length); E event=(E)createGenericEvent(objects[0]); try { log.debug("Created event {}"...
Handles the invocation
private void startShadowAnimation(){ animator=ObjectAnimator.ofFloat(view,"scaleX",1,1.5f,1); animator.setInterpolator(new AccelerateInterpolator()); animator.setRepeatCount(ObjectAnimator.INFINITE); animator.setDuration(jumpingView.getmDuration() * 2).start(); }
shadow start animation with jump view
public Salsa(BipartiteGraph bipartiteGraph,int expectedNodesToHit,StatsReceiver statsReceiver){ SalsaInternalState salsaInternalState=new SalsaInternalState(bipartiteGraph,new SalsaStats(),expectedNodesToHit); this.salsaIterations=new SalsaIterations<BipartiteGraph>(salsaInternalState,new LeftSalsaIteration(salsaIn...
This initializes all the state needed to run SALSA. Note that the object can be reused for answering many different queries on the same graph, which allows for optimizations such as reusing internally allocated maps etc.
public boolean zoneExportRemoveInitiators(List<NetworkZoningParam> zoningParams,String stepId) throws ControllerException { if (zoningParams.isEmpty()) { _log.info("zoningParams is empty, returning"); WorkflowStepCompleter.stepSucceded(stepId); return true; } NetworkFCContext context=new NetworkFCCont...
This will remove zones for all the initiators in the NetworkZoningParam zoneMap. Note: these arguments (except stepId) must match zoneExportRemoveInitiatorsMethod above. This routine executes as a Workflow Step.
public long postGraphML(final String path) throws Exception { final UUID uuid=UUID.randomUUID(); final ConnectOptions opts=mgr.newConnectOptions(sparqlEndpointURL,uuid,tx); opts.addRequestParam("blueprints"); JettyResponseListener response=null; try { final File file=new File(path); if (!file.exists()...
Post a GraphML file to the blueprints layer of the remote bigdata instance.
public static ByteList Traits(ByteList bytes,ObjectList<ByteList> traits){ for ( ByteList list : traits) { bytes.addAll(list); } return bytes; }
Make a traits table
public void leaveGroup(SocketAddress groupAddress,NetworkInterface netInterface) throws IOException { checkJoinOrLeave(groupAddress,netInterface); impl.leaveGroup(groupAddress,netInterface); }
Removes this socket from the specified multicast group.
@Override public void refresh(){ }
Discard any cached data
public static synchronized void loadMacro(Macro macro){ currentMacro=macro; }
Loads a macro to be used by all <code>RTextArea</code>s in the current application.
public JPanelButtons(String sConfigKey,JPanelTicket panelticket){ initComponents(); tnbmacro=new ThumbNailBuilder(18,18,"uk/chromis/images/run_script.png"); this.panelticket=panelticket; props=new Properties(); events=new HashMap<>(); String sConfigRes=panelticket.getResourceAsXML(sConfigKey); if (sConfig...
Creates new form JPanelButtons
public void toRootSIFT(){ double max=0; for (int i=0; i < descriptor.length; i++) { max=Math.max(max,Math.abs(descriptor[i])); } for (int i=0; i < descriptor.length; i++) { descriptor[i]=Math.sqrt(Math.abs(descriptor[i]) / max); } }
Method to convert SIFT to RootSIFT as described in Arandjelovic, Relja, and Andrew Zisserman. "Three things everyone should know to improve object retrieval." Computer Vision and Pattern Recognition (CVPR), 2012 IEEE Conference on. IEEE, 2012.
@Override public boolean doesGuiPauseGame(){ return false; }
Returns true if this GUI should pause the game when it is displayed in single-player
@Override public void relocate(){ int w=310, h=255; int x=(this.getWidth() - w) / 2, y=(this.getHeight() - h) / 2; taskLimitationsLabel.setLocation(x,y); articleTaskLabel.setLocation(x,y + 30); articleTaskLimitField.setLocation(x + 110,y + 30); diffTaskLabel.setLocation(x,y + 60); diffTaskLimitField.setLo...
A call of this method should validate the positions of the panels components.
public RedisReport(final ConnectionManager connectionManager,final String name){ super(new RedisReportCodec(),new CommandSyncService(connectionManager),null == name || name.trim().isEmpty() ? DEFAULT_NAME : name); this.connectionManager=connectionManager; }
Instantiate a new Redis-backed report using the provided connection manager and name.