content
stringlengths
40
137k
"protected ResultSet getResultSetFromTableInfo(TableInfoParameters tableInfo, String namePattern, IMetadataConnection iMetadataConnection, String schema) throws SQLException {\n ResultSet rsTables = null;\n String tableNamePattern = \"String_Node_Str\".equals(namePattern) ? null : namePattern;\n String[] types...
"protected final void updateIONApplication(final String domain, final Application application) {\n final ClientResponse response = createBuilder(domain).type(MediaType.APPLICATION_JSON_TYPE).put(ClientResponse.class, application);\n final ClientResponse.Status status = response.getClientResponseStatus();\n if ...
"public void run() throws IOException {\n initContext();\n if (inputDataStore == null) {\n LOGGER.error(\"String_Node_Str\");\n throw new IOException(\"String_Node_Str\");\n }\n if (isUseTime()) {\n ByteArrayId adapterByte = null;\n if (adapterId != null) {\n adapterBy...
"public void compute() throws VerdictException {\n VerdictSQLParser p = StringManipulations.parserOf(queryString);\n VerdictSQLBaseVisitor<TableUniqueName> visitor = new VerdictSQLBaseVisitor<TableUniqueName>() {\n private TableUniqueName tableName;\n protected TableUniqueName defaultResult() {\n ...
"public List<String> getWailaBody(ItemStack itemStack, List<String> currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config) {\n TileRefinery refinery = (TileRefinery) accessor.getTileEntity();\n if (!refinery.isPartOfMultiblock()) {\n currenttip.add(Utils.localize(\"String_Node_Str\"));\n }...
"public void reduceStockLevelFor(final Commodity commodity, int quantity, Date date) {\n StockItem stockItem = commodity.reduceStockOnHandBy(quantity);\n StockItemSnapshot siss = saveStockLevel(commodity, stockItem, date);\n categoryService.clearCache();\n}\n"
"public final boolean setOccupyableBuilding(IOccupyableBuilding building) {\n if (canOccupyBuilding()) {\n return ((SoldierStrategy) strategy).setOccupyableBuilding(building);\n } else {\n return false;\n }\n}\n"
"public ListBoxModel doFillProfileItems(String cloud, String workspace, String box) {\n logger.log(Level.FINE, \"String_Node_Str\" + cloud + \"String_Node_Str\" + workspace + \"String_Node_Str\" + box);\n ListBoxModel profiles = new ListBoxModel();\n try {\n if (StringUtils.isEmpty(cloud) || StringUtils...
"void fromValueClick() {\n valueKeyboard.setInputTextView(fromValue);\n valueKeyboard.setVisibility(View.VISIBLE);\n valueKeyboard.setEntry(fromValue.getText().toString());\n fromLayout.setAlpha(Constants.ACTIVE_ALPHA);\n toLayout.setAlpha(Constants.INACTIVE_ALPHA);\n AccountAdapter.Item item = fromAc...
"private void renderGeneNode(GL2 gl, PathwayVertexRep vertexRep) {\n float[] nodeColor;\n float width = pixelGLConverter.getGLWidthForPixelWidth(vertexRep.getWidth());\n float height = pixelGLConverter.getGLHeightForPixelHeight(vertexRep.getHeight());\n gl.glLineWidth(1);\n gl.glEnable(GL.GL_STENCIL_TEST...
"public void addInformation(ItemStack stack, World world, List list, ITooltipFlag flag) {\n list.add(I18n.translateToLocal(\"String_Node_Str\"));\n list.add(I18n.translateToLocal(\"String_Node_Str\"));\n if (stack.getTagCompound() != null && stack.getTagCompound().hasKey(\"String_Node_Str\")) {\n int[] ...
"public Control newEditorOn(Composite parent, int columnIndex, final PropertyDescriptor<?> desc, final Rule rule, final ValueChangeListener listener) {\n if (columnIndex == 0)\n return addLabel(parent, desc);\n if (columnIndex == 1) {\n final Text textWidget = new Text(parent, SWT.SINGLE | SWT.BORDE...
"private void addTo(final int[] poss, final boolean move) {\n long plid = UiUtils.isUserPlaylist(mPlid) ? mPlid : DB.INVALID_PLAYLIST_ID;\n MusicsAdapter adpr = getAdapter();\n final long[] mids = new long[poss.length];\n for (int i = 0; i < mids.length; i++) mids[i] = adpr.getItemId(poss[i]);\n UiUtils....
"private void initStartLoadDialogMessages() {\n if (dialog != null) {\n startLoadDialogMessages(dialog, chatJidId, Consts.ZERO_LONG_VALUE);\n }\n}\n"
"public void onServiceUpChanged(Entity member, Boolean serviceUp) {\n Set<Entity> seeds = getSeeds();\n int quorum = getQuorumSize();\n boolean isViable = isViableSeed(member);\n boolean maybeAdd = isViable && seeds.size() < quorum;\n boolean maybeRemove = seeds.contains(member) && !isViable;\n if (ma...
"public LocalMapStatsImpl createLocalMapStats(String mapName) {\n final NodeEngine nodeEngine = this.nodeEngine;\n final MapContainer mapContainer = mapServiceContext.getMapContainer(mapName);\n final LocalMapStatsImpl localMapStats = getLocalMapStatsImpl(mapName);\n if (!mapContainer.getMapConfig().isStati...
"private void moveViewToLast() {\n chart.setVisibleXRangeMinimum(120);\n chart.setVisibleXRangeMaximum(120);\n chart.moveViewToX(Math.max(0f, chartXValues.size() - 1));\n}\n"
"private void testFactTableSaveAndLoad3(IDocumentManager documentManager) throws IOException, BirtException, DataException {\n Dimension[] dimensions = new Dimension[3];\n String[] levelNames = new String[3];\n levelNames[0] = \"String_Node_Str\";\n levelNames[1] = \"String_Node_Str\";\n levelNames[2] = ...
"private void editOrderXML_crawlerTraps(Domain d) throws ArgumentNotValid {\n List<String> crawlerTraps = d.getCrawlerTraps();\n if (crawlerTraps.size() == 0) {\n return;\n }\n String filterMapXpath = HeritrixTemplate.EXCLUDE_FILTER_MAP_XPATH;\n Node filterMapNode = orderXMLdoc.selectSingleNode(fi...
"private BodyConsumer deployApplication(final HttpResponder responder, final Id.Namespace namespace, final String appId, final String archiveName, final String configString) throws IOException {\n Location namespaceHomeLocation = namespacedLocationFactory.get(namespace);\n if (!namespaceHomeLocation.exists()) {\n...
"public boolean isIncludeRoot() {\n if (isApplicationJSON()) {\n return includeRoot;\n }\n return true;\n}\n"
"public void testDeployApplicationInNamespace() throws Exception {\n Id.Namespace namespace = createNamespace(\"String_Node_Str\");\n ClientConfig clientConfig = new ClientConfig.Builder(getClientConfig()).build();\n deployApplication(namespace, TestApplication.class);\n ClientConfig defaultClientConfig = n...
"protected String getRelativeRequestURI(Command command) {\n List<String> argumentList = command.getArgumentList();\n throwExceptionIfArguementIsEmpty(argumentList);\n String uri = \"String_Node_Str\";\n String OPTION_FN = CommandOption.ENTITY_SEARCH_FN.getOption();\n String OPTION_HANDLE = CommandOption...
"public void initializeApplication(ApplicationDefinition oldAppDef, ApplicationDefinition appDef) {\n checkServiceState();\n Tenant tenant = Tenant.getTenant(appDef);\n m_olap.createApplication(tenant, appDef.getAppName());\n}\n"
"private void getGroupRoundData() {\n for (Map.Entry<String, PublicGroupDataModel> entry : trackedGroups.entrySet()) {\n try {\n wrap.groupRound(idMap.get(entry.getKey()), round, entry.getValue());\n } catch (NullPointerException ex) {\n logger.log(Level.WARNING, \"String_Node_Str...
"protected IStatus run(IProgressMonitor monitor) {\n senatorList.clear();\n Display.getDefault().syncExec(new Runnable() {\n public void run() {\n selectedCongress = congresses[sCmbCongress.getSelectionIndex()];\n }\n });\n try {\n ArrayList<String> temp = new ArrayList<Strin...
"public boolean performFinish() {\n if (!canFinish())\n return false;\n if (useTransaction) {\n Utility.getCommandStack().startTrans(CREATE_DATA_SET_TRANS_NAME);\n }\n dataSetHandle = dataSetPage.createSelectedDataSet();\n if (dataSetHandle != null) {\n if (dataSetHandle instanceof S...
"private void duplicateSingleVersionItem(final Item item, final IPath path, final String newName) {\n RepositoryWorkUnit<Object> rwu = new RepositoryWorkUnit<Object>(this.getText(), this) {\n protected void run() throws LoginException, PersistenceException {\n try {\n final Item newI...
"public ResourceLocation checkVampireTexture(Entity entity, ResourceLocation loc) {\n if (entity instanceof AbstractClientPlayer) {\n if (Configs.modify_vampire_player_texture && VampirePlayer.get((EntityPlayer) entity).getLevel() > 0) {\n ResourceLocation vamp = new ResourceLocation(\"String_Node_...
"private void sendEventToSync(WorkerDoneEvent event) throws IOException, InterruptedException {\n if (log.isInfoEnabled()) {\n log.info(formatLogString(\"String_Node_Str\" + WorkerDoneEvent.class.getSimpleName() + \"String_Node_Str\"));\n }\n getSyncOutput().publishEvent(event);\n}\n"
"private void setVersion(int version) {\n mVersion = version;\n if (mGeofenceHardwareSink != null) {\n mGeofenceHardwareSink.setVersion(version);\n }\n}\n"
"private void checkMaxima(Comparable<Comparable<?>> theValue, Ranges evaluatedRanges) {\n Comparable<?>[] extremas = evaluatedRanges.getStrongTypedMax();\n if (extremas == null || extremas.length == 0)\n return;\n Comparable<?> violated = null;\n for (Comparable<?> extrema : extremas) {\n if (...
"public Axis1D getOrthogonalAxis() {\n return parent.getOrthogonalAxis(this.layout.getAxis());\n}\n"
"private static void fireResizedImpl() {\n if (resizeHandlersInitialized) {\n int width = getClientWidth();\n int height = getClientHeight();\n if (lastResizeWidth != width || lastResizeHeight != height) {\n lastResizeWidth = width;\n lastResizeHeight = height;\n ...
"public void updateHeader(String id, String currTitle, boolean isHide) {\n final TableViewerCreatorColumnNotModifiable funColumn = getTableViewerCreator().getColumn(id);\n if (isHide) {\n final TableEditorContentNotModifiable tableEditorContent = funColumn.getTableEditorContent();\n if (tableEditorC...
"public void scan(final ProcessAnnotatedType<Object> event) {\n AnnotatedType<Object> originalType = event.getAnnotatedType();\n AnnotatedType<Object> newType;\n List<AnnotatedMethod> obsoleteMethods = new ArrayList<AnnotatedMethod>();\n List<AnnotatedMethod> replacementMethods = new ArrayList<AnnotatedMeth...
"public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n checkFuture();\n if (mDateItem.shouldShowYearFirst())\n mYear.performClick();\n else\n mDate.performClick();\n}\n"
"private void sendPingMessage(WebSocketSession session, TextMessage pingMessage) {\n try {\n session.sendMessage(pingMessage);\n } catch (Exception e) {\n logger.warn(e.getMessage(), e);\n }\n}\n"
"public void loadDefaultClasses() {\n ConfigUtils.addMissingNodes(config, \"String_Node_Str\", \"String_Node_Str\");\n}\n"
"private ConnectorObjectBuilder buildConnectorObject(Set<WSAttributeValue> attributes) {\n ConnectorObjectBuilder bld = new ConnectorObjectBuilder();\n String uid = null;\n for (WSAttributeValue attribute : attributes) {\n if (attribute.isKey()) {\n uid = attribute.getStringValue();\n ...
"public void putToMap(Map map, Object key, Object value) {\n if (clustered) {\n ILock lock = null;\n try {\n IMap imap = (IMap) map;\n lock = acquireDistributedLock(imap.getName());\n imap.set(key, value);\n } finally {\n releaseDistributedLock(lock);\...
"public ActionResult execute(Context c, XmlWorkflowItem wfi, Step step, HttpServletRequest request) throws SQLException, AuthorizeException, IOException {\n if (request.getParameter(\"String_Node_Str\") != null || request.getParameter(\"String_Node_Str\") != null) {\n WorkflowRequirementsManager.addClaimedUse...
"protected void thisMustFail() throws Throwable {\n E byKey = ds.getByKey(E.class, save);\n}\n"
"public int dealDamage(GameCharacter target) {\n int totalDamage = 0, totalPhysicalDamage = 0, totalMagicalDamage = 0;\n double elementalDamageModifier = getWeaponElement().getDamageModifierAgainst(target.getArmorElement());\n int basePhysicalDamage = (int) getTotalStat(ATK);\n if (GameMath.checkChance((int...
"protected boolean isActive(TriggerGenericData trigger) {\n boolean result = super.isActive(trigger);\n if (checked) {\n return result;\n }\n result = false;\n float target = 0;\n int value = 0;\n Party party = (Party) parent;\n TriggerGeneric.TargetType targetType = trigger.getType();\n ...
"public static IMessageProvider getMessageProvider(ContentResolver contentResolver) {\n if (mProvider == null) {\n mProvider = new SmsMessageProvider(context, contentResolver);\n }\n return mProvider;\n}\n"
"public void pauseTrigger(TriggerKey triggerKey) throws SchedulerException {\n invoke(\"String_Node_Str\", new Object[] { triggerKey }, new String[] { TriggerKey.class.getName() });\n}\n"
"private void verify123() {\n NavigableMap<byte[], NavigableMap<Long, byte[]>> rowFromGet = InMemoryTableService.get(\"String_Node_Str\", new byte[] { 1 }, new Transaction(1L, 2L, new long[0], new long[0], 1L));\n Assert.assertEquals(1, rowFromGet.size());\n Assert.assertArrayEquals(new byte[] { 2 }, rowFromGe...
"String getValueCodeInstanciation() {\n if (AnnotationFieldKind.ANNOTATION.equals(this.kind)) {\n return \"String_Node_Str\";\n } else if (isArray) {\n return String.format(\"String_Node_Str\", TypeHelper.rawTypeFrom(type.toString()), Joiner.on(\"String_Node_Str\").join((List) value));\n } else {...
"public void func_73863_a(int p_73863_1_, int p_73863_2_, float p_73863_3_) {\n this.func_146276_q_();\n int spaceAvailable = this.field_146295_m - 38 - 20;\n int spaceRequired = Math.min(spaceAvailable, 10 + 6 * 10 + missingItems.size());\n int offset = 10 + (spaceAvailable - spaceRequired) / 2;\n this....
"private final void checkLandmarks(ISPosition2D startPos, short startPartition, EDirection startDirection) {\n EDirection blockedDir = startDirection;\n ISPosition2D blocked = blockedDir.getNextHexPoint(startPos);\n ISPosition2D currBase = startPos;\n LinkedList<ISPosition2D> blockedBorder = new LinkedList<...
"private Project buildProject() {\n Project topLinkProject = new Project();\n topLinkProject.setName(\"String_Node_Str\");\n topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.handles.MWClassHandle.legacy60BuildDescriptor());\n topLinkProject.addDescriptor(org.eclipse.persist...
"public List<ApplicationRecord> getApps(final NamespaceId namespace, com.google.common.base.Predicate<ApplicationRecord> predicate) throws Exception {\n List<ApplicationRecord> appRecords = new ArrayList<>();\n Set<ApplicationId> appIds = new HashSet<>();\n for (ApplicationSpecification appSpec : store.getAllA...
"public void receive_request(ServerRequestInfo ri) throws ForwardRequest {\n SecurityContext seccontext = null;\n ServiceContext sc = null;\n int status = 0;\n boolean raise_no_perm = false;\n if (_logger.isLoggable(Level.FINE)) {\n _logger.log(Level.FINE, \"String_Node_Str\" + prname + \"String_N...
"public void init() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\");\n }\n String errorText = \"String_Node_Str\";\n if (policyResources != null && policyResources.size() > 0 && serviceDef != null) {\n Set<String> policyResourceKeySet = policyResources.keySet();\n Range...
"public void handleMessage(Message msg) {\n super.handleMessage(msg);\n if (msg.what == Constant.MSG_ERROR) {\n SnackBarUtil.showSnackInfo(mTilUserId, LoginActivity.this, msg.obj.toString());\n } else {\n SnackBarUtil.showSnackInfo(mTilUserId, LoginActivity.this, \"String_Node_Str\");\n ne...
"private NodeRef createOrResolveRecordFolder(Action action, NodeRef actionedUponNodeRef) {\n NodeRef context = filePlanService.getFilePlan(actionedUponNodeRef);\n if (context == null) {\n throw new AlfrescoRuntimeException(\"String_Node_Str\");\n } else if (nodeService.exists(context) == false) {\n ...
"public String[] getSupportedExtensions() {\n return new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n}\n"
"private void handleMasterNodeChange() {\n try {\n synchronized (clusterHasActiveMaster) {\n if (ZKUtil.watchAndCheckExists(watcher, watcher.getZNodePaths().masterAddressZNode)) {\n LOG.trace(\"String_Node_Str\");\n clusterHasActiveMaster.set(true);\n } else...
"public FlowExecutionContext updateSubstitution(Application application, ApplicationEnvironment environment, Topology topology, String nodeId, String resourceTemplateId) {\n FlowExecutionContext executionContext = new FlowExecutionContext(deploymentConfigurationDao, topology, new EnvironmentContext(application, envi...
"private Composite createBottomButtonArea(Composite parent) {\n Composite composite = new Composite(parent, SWT.NONE);\n GridLayout gridLayout = new GridLayout();\n gridLayout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING * 4);\n composite.setLayout(gridLayout);\n ...
"private static void fillSynonmsForMSSQL(IMetadataConnection iMetadataConnection, List<TdColumn> metadataColumns, NamedColumnSet table, String tableName, DatabaseMetaData dbMetaData) throws SQLException {\n String str = tableName;\n String TABLE_SCHEMA = null;\n String TABLE_NAME = null;\n String splitstr =...
"private static Artifact createShuffleJarActions(RuleContext ruleContext, boolean makeDexArchives, Artifact proguardedJar, ImmutableList<Artifact> shards, AndroidCommon common, Artifact inclusionFilterJar, List<String> dexopts, AndroidSemantics semantics, JavaTargetAttributes attributes, Function<Artifact, Artifact> de...
"public List<Dag> split() {\n List<Dag> dags = new ArrayList<>();\n Set<String> remainingNodes = new HashSet<>(nodes);\n Set<String> possibleNewSources = Sets.union(sources, connectors.keySet());\n Set<String> possibleNewSinks = Sets.union(sinks, connectors.keySet());\n for (String reduceNode : reduceNod...
"public void setEnabled(int pane, boolean enabled) {\n boolean wasEnabled = isEnabled(pane);\n if (wasEnabled != enabled) {\n setDirty(true);\n }\n disabledPanes.set(pane, !enabled);\n}\n"
"public void write(JavaWriter javaWriter) throws IOException {\n String insertConflictName = insertConflictActionName;\n if (!insertConflictName.isEmpty()) {\n insertConflictName = String.format(\"String_Node_Str\", insertConflictName);\n }\n QueryBuilder stringBuilder = new QueryBuilder(\"String_Nod...
"protected boolean isWithRowCountIndicator() {\n if (!units.isEmpty()) {\n Indicator indicator = units.get(0).getIndicator();\n ModelElement currentAnalyzedElement = indicator.getAnalyzedElement();\n InternalEObject eIndicator = (InternalEObject) indicator;\n AnalysisResult result = (Anal...
"private void setValidatorHandler(XMLReader xmlReader) {\n Schema schema = null;\n try {\n schema = getSAXParserFactory().getSchema();\n } catch (UnsupportedOperationException e) {\n }\n if (null != schema) {\n ValidatorHandler validatorHandler = schema.newValidatorHandler();\n xmlRe...
"private XMLDBModel _fetchHierarchyForModel(XMLDBModel model) throws DBExecutionException, XMLDBModelParsingException {\n String referencesXML = _getParentHierarchiesForModelFromDB(model);\n if (referencesXML != null) {\n Document document = (Document) Utilities.parseXML(referencesXML);\n Node first...
"public List<OFFlowMod> managedFlows(OFFlowMod flowMod) {\n log.debug(\"String_Node_Str\" + flowMod.toString() + \"String_Node_Str\");\n List<OFFlowMod> flows = new ArrayList<OFFlowMod>();\n OFMatch match = flowMod.getMatch();\n if (match == null) {\n return flows;\n }\n if (match.getWildcardOb...
"public TextArea getNextArea(int maxLineWidth) {\n if (!hasNextArea()) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n TextArea textArea = getNextTextArea(maxLineWidth);\n offset += textArea.getTextLength();\n if (lineBreakCollapse == LINE_BREAK_COLLAPSE_OCCUPIED) {\n lineBreakCo...
"public void setOptions(String options) throws Exception {\n if (options == null)\n return;\n _options = StringUtility.trim(options, '\\\"');\n JSONObject json = null;\n try {\n json = new JSONObject(_options);\n } catch (Exception ex) {\n throw new ParseException(ex.getMessage(), 0)...
"public void draw(double[] mag, long frequency, int sampleRate, int frameRate, double load) {\n if (virtualFrequency < 0)\n virtualFrequency = frequency;\n if (virtualSampleRate < 0)\n virtualSampleRate = sampleRate;\n float samplesPerHz = (float) mag.length / (float) sampleRate;\n long freque...
"private void sendFile(Connection c, String path, Data d) {\n if (path.startsWith(File.separator)) {\n File f = new File(path);\n if (f.exists()) {\n if (DEBUG) {\n LOGGER.debug(DBG_PREFIX + \"String_Node_Str\" + c.hashCode() + \"String_Node_Str\" + path + \"String_Node_Str\" ...
"public LoggingAdvisingAppendable appendLoggingFunctionInvocation(LoggingFunctionInvocation funCall, ImmutableList<Function<String, String>> escapers) throws IOException {\n delegate.appendLoggingFunctionInvocation(funCall, escapers);\n return this;\n}\n"
"protected void drawRangeCrosshair(Graphics2D g2, Rectangle2D dataArea, PlotOrientation orientation, double value, ValueAxis axis, Stroke stroke, Paint paint) {\n if (axis.getRange().contains(value)) {\n Line2D line;\n if (orientation == PlotOrientation.HORIZONTAL) {\n double xx = axis.value...
"public static boolean isHiddenByVisibility(IColumn column, String format) {\n String columnFormats = column.getVisibleFormat();\n if (columnFormats != null) {\n if (hiddenMask) {\n if (contains(columnFormats, BIRTConstants.BIRT_ALL_VALUE)) {\n return true;\n }\n ...
"public void update(List<Endpoint> conferenceEndpoints) {\n if (conferenceEndpoints == null) {\n conferenceEndpoints = dest.getConferenceSpeechActivity().getEndpoints();\n } else {\n conferenceEndpoints = new ArrayList<>(conferenceEndpoints);\n }\n long bweBps = Long.MAX_VALUE;\n EndpointBi...
"public static boolean isNumber(String val) {\n NumberFormat nf = NumberFormat.getInstance();\n try {\n new BigDecimal(val);\n return true;\n } catch (Exception e) {\n return false;\n }\n}\n"
"private void handleNodeAccess(String nodeName, NodeType nodeType) {\n switch(nodeType) {\n case ITEM_LOCATION:\n String item = itemRandomizer.getItem(nodeName);\n if (!Settings.getCurrentRemovedItems().contains(item)) {\n queuedUpdates.add(item);\n }\n ...
"public void testAggrSort1() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = columnEdge...
"private List<SimpleFeature> inputFeatureHandler(SimpleFeatureCollection inputCollection, String featureName, int level, SimpleFeatureType outputFeatureType, Multimap<String, String> relation) {\n GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory();\n List<Geometry> geometryList = new ArrayLis...
"void setProtocol(final String protocol) {\n final CountDownLatch latch = new CountDownLatch(1);\n ioSelector.addTaskAndWakeup(new Runnable() {\n\n public void run() {\n createWriter(protocol);\n latch.countDown();\n }\n });\n ioSelector.wakeup();\n try {\n latc...
"public void dispose() {\n super.dispose();\n getOWLModelManager().removeListener(this.listener);\n if (this.swrlRuleEngineModel != null)\n this.swrlRuleEngineModel.unregisterOntologyListener();\n}\n"
"static void verify(DatasetModuleMeta moduleMeta, String moduleName, Class moduleClass, List<String> types, List<String> usesModules, Collection<String> usedByModules) {\n Assert.assertEquals(moduleName, moduleMeta.getName());\n Assert.assertEquals(moduleClass.getName(), moduleMeta.getClassName());\n Assert.as...
"public void drawHighlight(TSCanvas canvas, Color color) {\n Graphics2D g2d = canvas.getGraphics2D();\n double rs = canvas.getCoordinates().dxToWorld(radius_ + 5);\n Ellipse2D e = new Ellipse2D.Double(stop_.getWorldX() - rs, stop_.getWorldY() - rs, rs * 2, rs * 2);\n Path2D p = new Path2D.Double(e);\n p....
"public static void lineExecuted(int fileIndex, int line) {\n if (terminated)\n return;\n synchronized (TestRun.class) {\n CoverageData coverageData = CoverageData.instance();\n PerFileLineCoverage fileData = coverageData.getFileData(fileIndex).lineCoverageInfo;\n CallPoint callPoint =...
"public EnumDefinition lookupEnum(String name) {\n Definition def = lookupDefinition(name);\n return (EnumDefinition) ((def instanceof EnumDefinition) ? def : null);\n}\n"
"public void should_UpdateProduct_WhenPutRequestMadeWithWrongPost() throws Exception {\n final String requestUrl = String.format(\"String_Node_Str\", STUBS_URL, \"String_Node_Str\");\n final String content = \"String_Node_Str\";\n final HttpRequest request = HttpUtils.constructHttpRequest(HttpMethods.PUT, requ...
"public static List<String> getChildElementNames(XSDElementDeclaration decl) throws Exception {\n List<String> childNames = new ArrayList<String>();\n XSDTypeDefinition type = decl.getTypeDefinition();\n if (type instanceof XSDComplexTypeDefinition) {\n XSDComplexTypeDefinition cmpType = (XSDComplexType...
"public void roundAndCleanExpression() {\n if (isInvalid() || isEmpty())\n return;\n BigDecimal bd;\n bd = new BigDecimal(mExpression, mMcDisp);\n mPreciseResult = mExpression;\n if (lastNumbExponent() < mIntDisplayPrecision)\n replaceExpression(bd.toPlainString());\n else\n repla...
"public PrintStream printf(String str, Object... args) {\n StringBuilder sb = new StringBuilder();\n Formatter formatter = new Formatter(sb, locale);\n formatter.format(str, args);\n print(sb.toString());\n return null;\n}\n"
"public void loadDefinitionsFromXML(InputStream stream) throws ParserConfigurationException, IOException, SAXException {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = dbFactory.newDocumentBuilder();\n Document document = builder.parse(stream);\n Eleme...
"public void clear() {\n Object oldObj = HandleAdapterFactory.getInstance().getLibraryHandleAdapter().getOldEditorModel();\n SetCurrentEditModelCommand c = new SetCurrentEditModelCommand(oldObj);\n Object obj = HandleAdapterFactory.getInstance().getLibraryHandleAdapter().getCurrentEditorModel();\n if (obj i...
"public void loadNewEnemy(final float X, final float Y, final int type) {\n final Enemy newEnemy;\n switch(type) {\n case 1:\n newEnemy = GestureDefence.this.getEnemyPool(1).obtainPoolItem();\n newEnemy.setXY(X, Y);\n newEnemy.setType1();\n break;\n case 2...
"public void setValue(Object val) {\n if (val == null) {\n System.out.println(\"String_Node_Str\");\n }\n value = val;\n System.out.println(type.name() + \"String_Node_Str\" + value);\n}\n"
"public synchronized void preloadPlan(RecentsTaskLoader loader, int runningTaskId, boolean includeFrontMostExcludedTask) {\n Resources res = mContext.getResources();\n ArrayList<Task> allTasks = new ArrayList<>();\n if (mRawTasks == null) {\n preloadRawTasks(includeFrontMostExcludedTask);\n }\n Sp...
"protected void initializeInternal(DataDefinition definition, Data input, GeneralizationHierarchy[] hierarchies, ARXConfiguration config) {\n super.initializeInternal(definition, input, hierarchies, config);\n RowSet subset = null;\n if (config.containsCriterion(DPresence.class)) {\n Set<DPresence> crit...
"public Object getRaw(String name) throws PropertyException {\n throw new RuntimeException(\"String_Node_Str\");\n}\n"
"public Object getValueAt(int rowIndex, int columnIndex) {\n if (rowIndex < allLinks.size()) {\n DownloadLink downloadLink = allLinks.get(rowIndex);\n switch(columnIndex) {\n case COL_INDEX:\n return rowIndex;\n case COL_NAME:\n if (downloadLink.getFi...