content
stringlengths
40
137k
"public void testNewProject() throws Exception {\n int originalProjectCount = ProjectManager.getInstance(this.getTestConfig()).listAllProjects().size();\n int originalCubeCount = CubeManager.getInstance(this.getTestConfig()).listAllCubes().size();\n int originalCubeCountInDefault = ProjectManager.getInstance(t...
"public void close() throws IOException {\n if (realStore != null)\n realStore.close();\n if (tmpPath != null && tmpPath.canRead()) {\n if (!tmpPath.renameTo(finalPath))\n throw new IOException(\"String_Node_Str\" + finalPath);\n }\n realStore = null;\n finalPath = tmpPath = null...
"public ICustomerDataset getCustomerDataset() {\n Map<IndicatorEnum, Double> map = new HashMap<IndicatorEnum, Double>();\n CustomerDefaultCategoryDataset customerdataset = new CustomerDefaultCategoryDataset();\n for (IndicatorUnit unit : units) {\n if (Java2SqlType.isNumbericInSQL(sqltype)) {\n ...
"void startAttribute(StandaloneNode attrName) {\n maybeFinishPendingAttribute(attrName.getSourceLocation().getBeginPoint());\n checkNotNull(attrName);\n checkState(attributeName == null);\n if (startingState == State.BEFORE_ATTRIBUTE_VALUE) {\n errorReporter.report(attrName.getSourceLocation(), BLOCK...
"void writeAll(final SocketChannel socketChannel, final ReplicatedSharedHashMap.ModificationIterator modificationIterator) throws InterruptedException, IOException {\n for (; ; ) {\n if (start != 0)\n Log.info(\"String_Node_Str\");\n final boolean wasDataRead = modificationIterator.nextEntry...
"protected void fillSynonyms(IMetadataConnection metadataConnection, List<TdColumn> metadataColumns, NamedColumnSet table, String tableName, DatabaseMetaData dbMetaData) throws SQLException {\n if (metadataConnection == null || dbMetaData == null) {\n return;\n }\n if (dbMetaData.getDatabaseProductName(...
"protected void doPaintTo(GlimpseContext context) {\n GL3 gl = context.getGL().getGL3();\n GlimpseBounds bounds = getBounds(context);\n float inset_PX = 0.5f * style.thickness_PX;\n float x = inset_PX;\n float y = inset_PX;\n float width = bounds.getWidth() - 2 * inset_PX;\n float height = bounds.g...
"protected double getAggregate() {\n double[] values = getValues();\n double[] weights = getWeights();\n double result = 1.0d;\n for (int i = 0; i < values.length; i++) {\n result *= Math.pow((values[i] > 0d ? values[i] : 1d) * weights[i], 1.0d / (double) values.length);\n }\n return result;\n}...
"public void processClassesAndProperties(JavaClass[] classes) {\n init();\n preBuildTypeInfo(classes);\n classes = postBuildTypeInfo(classes);\n processJavaClasses(classes);\n}\n"
"private Token getToken(String verb, List<Object> statement, int index, Map<String, Object> namespace, Set<TokenStorageType> storageTypes, Set<TokenType> tokenTypes) {\n Object item;\n Token token;\n try {\n item = statement.get(index);\n } catch (IndexOutOfBoundsException e) {\n throw new Inv...
"protected final DataSet resourceData(ContentPreferences contentPreferences) throws ApplicationExecutionException {\n DataSet dataSet = super.resourceData(contentPreferences);\n if (contentPreferences.isMinimalInclusionRequired()) {\n List<Individual<?, ?>> toClean = new ArrayList<Individual<?, ?>>();\n ...
"public synchronized List<TdColumn> returnMetadataColumnsFormTable(IMetadataConnection metadataConnection, String tableLabel, boolean... dontCreateClose) {\n List<TdColumn> metadataColumns = new ArrayList<TdColumn>();\n boolean needCreateAndClose = dontCreateClose.length == 0 || !dontCreateClose[0];\n DriverSh...
"public int getEndLine() {\n if (-1 == endLine) {\n endLine = ProblemHandler.searchLineNumber(result.lineSeparatorPositions, endPos);\n }\n return endLine;\n}\n"
"private static CGImage getCGImage(String name) {\n int ix = name.lastIndexOf('/');\n if (ix != -1)\n name = name.substring(ix);\n UIImage uiImage = UIImage.getImage(name);\n return uiImage.getCGImage();\n}\n"
"public void handleStatement(Statement st) {\n if (st.getObject() instanceof Literal)\n invalidTriples++;\n } else {\n validTriples++;\n String subject = UriTransformer.shorten(triple.subject());\n String predicate = UriTransformer.shorten(triple.predicate());\n String object = ...
"synchronized void nContextDestroy() {\n validate();\n ReentrantReadWriteLock.WriteLock wlock = mRWLock.writeLock();\n wlock.lock();\n int curCon = mContext;\n mContext = 0;\n wlock.unlock();\n rsnContextDestroy(curCon);\n}\n"
"FlowScope getOutcomeFlowScope(Token nodeType, boolean outcome) {\n if ((nodeType == Token.AND && outcome) || (nodeType == Token.OR && !outcome)) {\n return rightScope;\n } else {\n return getJoinedFlowScope();\n }\n}\n"
"private void parseLevelIndex(IBaseCubeQueryDefinition queryDefintion, Chart cm) {\n fCategoryInnerLevelIndex = -1;\n fYOptionalInnerLevelIndex = -1;\n if (queryDefintion instanceof ICubeQueryDefinition) {\n List<String> rowLevelNames = Collections.emptyList();\n List<String> colLevelNames = Coll...
"protected void end(boolean finished) {\n if (emitter != null) {\n context.getPageBufferManager().endContainer(pageContent, finished, emitter, true);\n }\n}\n"
"public void test() throws IOException, InterruptedException {\n map1.put(1, \"String_Node_Str\");\n map2.put(2, \"String_Node_Str\");\n map3.put(3, \"String_Node_Str\");\n map3.remove(2);\n map3.put(3, \"String_Node_Str\");\n map4.put(4, \"String_Node_Str\");\n waitTillEqual(1000);\n assertEqua...
"public void run() {\n currentlobbycount--;\n if (currentlobbycount == 60 || currentlobbycount == 30 || currentlobbycount == 15 || currentlobbycount == 10 || currentlobbycount < 6) {\n for (String p_ : a.getAllPlayers()) {\n if (Validator.isPlayerOnline(p_)) {\n Player p = Bukkit....
"public static Address decodeBase58(String address) throws SDKException {\n byte[] data = Base58.decode(address);\n if (data.length != 25) {\n throw new SDKException(ErrorCode.ParamError + \"String_Node_Str\");\n }\n if (data[0] != COIN_VERSION_ONT) {\n throw new SDKException(ErrorCode.ParamEr...
"private static String getPathForFileUri(String hint, long contentLength) throws GenerateSaveFileError {\n if (!isExternalMediaMounted()) {\n throw new GenerateSaveFileError(Downloads.STATUS_DEVICE_NOT_FOUND_ERROR, \"String_Node_Str\");\n }\n String path = Uri.parse(hint).getPath();\n if (path.endsWi...
"public Expression getScalingExpression(String attribute) {\n if (attribute == null) {\n return null;\n }\n String function = this.functions.get(attribute);\n if (function == null || function.equals(\"String_Node_Str\")) {\n return null;\n }\n return getExpression(function);\n}\n"
"private InputSource locateEntity(String systemId, String publicId) throws IOException {\n URL xsdOrDtdLocation = null;\n if (publicId != null && schemaURLsPerPublicId.containsKey(publicId)) {\n xsdOrDtdLocation = schemaURLsPerPublicId.get(publicId);\n }\n if (systemId == null) {\n return null...
"public boolean hasHostChart() {\n return hostChartHandle != null;\n}\n"
"public void testTimeStampTZDST() {\n int year = 2008, month = 2, date = 10, hour = 11, minute = 0, second = 0;\n Integer tsId;\n Calendar originalCal, dbCal;\n String zoneIdRemote = \"String_Node_Str\";\n EntityManager em = createEntityManager(\"String_Node_Str\");\n beginTransaction(em);\n try {\...
"protected void prepareBarHighlight(float x, float y, float barspace, float from, Transformer trans) {\n float barWidth = 0.5f;\n float left = x - barWidth + barspaceHalf;\n float right = x + barWidth - barspaceHalf;\n float top = y >= from ? y : from;\n float bottom = y <= from ? y : from;\n mBarRect...
"public void showPlace(PlaceViewModel placeViewModel) {\n this.placeViewModel = placeViewModel;\n nameTextView.setText(placeViewModel.getName());\n Picasso.with(getActivity()).load(placeViewModel.getPhoto()).placeholder(R.drawable.maps_placeholder).into(photoImageView);\n}\n"
"public void testIsContainsTableConnectionSchemaString() {\n String schemaName = \"String_Node_Str\";\n String tablePattern = null;\n boolean containsTable = false;\n Connection dataProvider = null;\n DatabaseMetaData metaData = null;\n java.sql.Connection sqlConn = null;\n Schema schema = null;\n ...
"private void retryOnException(Callable<?> c) throws Exception {\n final int maxRetries = 5;\n final long initialDelayMillis = 0;\n final long delayMillis = 1000;\n int tries = 0;\n while (tries <= maxRetries) {\n try {\n acksReceivedSinceLastRetry.set(0);\n c.call();\n ...
"public Map<String, Object> getParameterMap() {\n return this.parameterMap == null ? Collections.EMPTY_MAP : this.parameterMap;\n}\n"
"public void reset() {\n this.table.setRedraw(false);\n this.headerImages.clear();\n this.gridLayer = new TableGridLayerStack(new HandleDataProvider(null));\n this.handle = null;\n this.data = null;\n this.rows = null;\n this.table.setLayer(gridLayer);\n this.table.refresh();\n this.gridLayer...
"public void testExtractDisplayId11() {\n String extractedDisplayId = extractDisplayId(uri6);\n assertNull(extractedDisplayId);\n}\n"
"public void asyncExecute(String queryId, LogicalWorkflow workflow, IResultHandler resultHandler) throws UnsupportedException, ExecutionException {\n validateLogicalWorkflow(queryId, workflow, resultHandler);\n try {\n connectorProcessHandler.startProcess(queryId, initProcess(queryId, workflow, resultHandl...
"private void verify() {\n String email = emailText.getText().trim();\n if (email.equals(\"String_Node_Str\")) {\n setErrorMessage(Messages.MSNConnectWizardPage_EmailAddressRequired);\n } else {\n Matcher matcher = emailPattern.matcher(email);\n if (!matcher.matches()) {\n setEr...
"public String getPrefix(IPlayer player) {\n String bpprefix = null;\n Plugin p = plugin.getProxy().getPluginManager().getPlugin(\"String_Node_Str\");\n if (p != null) {\n BungeePerms bp = BungeePerms.getInstance();\n try {\n PermissionsManager pm = bp.getPermissionsManager();\n ...
"public void deactivate(final Remoting remoting) throws IOException {\n if (thread != null)\n thread.interrupt();\n this.remoting = null;\n}\n"
"protected boolean hasRequired(final Player player, final String challenge, final String type) {\n final String[] reqList = plugin.getChallengeConfig().getString(\"String_Node_Str\" + challenge + \"String_Node_Str\").split(\"String_Node_Str\");\n if (type.equalsIgnoreCase(\"String_Node_Str\")) {\n List<Ite...
"public boolean remove(LPSZ name) {\n if (counter > 0 && (Chars.endsWith(name, \"String_Node_Str\") || Chars.endsWith(name, \"String_Node_Str\"))) {\n counter--;\n return false;\n }\n return super.remove(name);\n}\n"
"private void maybeCheckForMultisize(Product product) {\n final Product resampledProduct = MultiSizeIssue0.maybeResample(product);\n if (resampledProduct != null) {\n productListModel.setSelectedItem(resampledProduct);\n } else {\n productListModel.setSelectedItem(null);\n for (int i = 0; ...
"public Map<String, PropertyType> getTableFor(SchemaTable schemaTable) {\n z_internalReadLock();\n try {\n Optional<Schema> schemaOptional = getSchema(schemaTable.getSchema());\n if (schemaOptional.isPresent()) {\n return schemaOptional.get().getTableFor(schemaTable);\n }\n ...
"public void startNode(Node node, HashMap<Element, StyleProperties> cssStyles) {\n String nodeName = node.getNodeName();\n HashMap cssStyle = (HashMap) cssStyles.get(node);\n writer.openTag(nodeName);\n NamedNodeMap attributes = node.getAttributes();\n if (attributes != null) {\n for (int i = 0; i...
"private void notifyUserByEmail() throws ServiceException, JSONException, IOException {\n final String adminEmail = preferenceQueryService.getPreference().getString(Preference.ADMIN_EMAIL);\n final MailService.Message message = new MailService.Message();\n message.setFrom(adminEmail);\n message.addRecipient...
"public void setSize(int width, int height) {\n imageGraphics = ImageGraphics.createInstance(width, height, 0);\n surfaceWidth = width;\n surfaceHeight = height;\n imageGraphics.setBackground(Color.WHITE);\n imageGraphics.setColor(Color.WHITE);\n imageGraphics.fillRect(0, 0, width, height);\n updat...
"public View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final Context context = container.getContext();\n sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);\n fi...
"public static void main(String[] args) {\n File toolsJar = new File(new File(System.getProperty(\"String_Node_Str\")), \"String_Node_Str\");\n if (!toolsJar.exists()) {\n toolsJar = new File(new File(System.getProperty(\"String_Node_Str\")), \"String_Node_Str\");\n }\n if (!toolsJar.exists()) {\n ...
"public void receivedByte(byte data) {\n if (cca)\n setCCA(false);\n if (stateMachine == STATE_RX_SFD_SEARCH) {\n if (data == 0) {\n zero_symbols++;\n return;\n }\n if (zero_symbols == 4) {\n if (data == 0x7A) {\n setSFD(true);\n ...
"private void init(String title, String body, ArrayList<String> textArray, final String version) {\n titleTextView.setText(title);\n bodyTextView.setText(body);\n if (textArray != null) {\n StringBuilder strbuilder = new StringBuilder();\n strbuilder.append(\"String_Node_Str\" + \"String_Node_Str...
"void synchronizeModelEntry(final IProgressMonitor monitor) {\n final IFile workspaceFile = findFileInWorkspace();\n if (workspaceFile == null)\n return;\n clean();\n try {\n final Resource model = findModel();\n if (ModelUtil.isPhysical(model)) {\n if (!this.getSourceInfo()....
"public String GetNote() {\n return \"String_Node_Str\";\n}\n"
"private void parseShapefile(LayerStruct struct) throws WikiBrainException {\n ShapefileReader shpReader;\n DbaseFileReader dbfReader;\n Geometry curGeometry;\n ShpFiles shpFile;\n LOG.log(Level.INFO, \"String_Node_Str\" + struct.getDataFile().getName());\n try {\n shpFile = new ShpFiles(struct...
"private static GProtocolName checkGlobalProtocolArg(JobContext jcontext, String simpname) {\n GProtocolName simpgpn = new GProtocolName(simpname);\n ProtocolDecl<?> pd = jcontext.getMainModule().getProtocolDecl(simpgpn);\n if (pd == null || !pd.isGlobal()) {\n throw new CommandLineException(\"String_No...
"private static int findMatchingItems(InventoryCrafting workInventory, Map<IItemKey, ItemStack> undo, int i, ItemStack stack, int count, IItemSource itemSource, boolean strictDamage) {\n for (Pair<IItemKey, ItemStack> pair : itemSource.getItems()) {\n ItemStack input = pair.getValue();\n if (input != n...
"public void testPreLaunchWithExistingRun() throws Exception {\n ILaunchConfiguration configuration = mock(ILaunchConfiguration.class);\n String mode = ILaunchManager.RUN_MODE;\n IProgressMonitor monitor = mock(IProgressMonitor.class);\n RunTestsView runTestsView = mock(RunTestsView.class);\n when(mocked...
"private Operand visitLogic(BinaryExprNode node) {\n Function function = currentBasicBlock.getParentFunction();\n ExprOps op = node.getOp();\n Operand left = visit(node.getLeft());\n BasicBlock next = new BasicBlock(function, currentSymbolTable, \"String_Node_Str\");\n switch(op) {\n case AND:\n ...
"public void addUniform(String statement) {\n if (statement == null)\n return;\n Editable e = getText();\n Matcher m = PATTERN_INSERT_UNIFORM.matcher(e);\n int start;\n if (m.find())\n start = Math.max(0, m.end() - 1);\n else {\n if ((start = endIndexOfLastEndIf(e)) > -1)\n ...
"protected Bitmap doInBackground(Void... params) {\n int orientation = ImageUtils.getImageOrientation(MediaPreviewActivity.this, mMediaUri);\n byte[] bytes = ImageUtils.createThumbnailFromUri(MediaPreviewActivity.this, Uri.parse(mMediaUri), mSize, null, orientation);\n if (bytes != null) {\n return Bitm...
"private static void getNeededLibraries(final IProcess process, boolean withChildrens, Set<ProcessItem> searchItems, Set<String> neededLibraries, Set<String> bundleDefinedLibraries, boolean... isExportOSGI) {\n boolean exportOSGI = false;\n if (isExportOSGI != null && isExportOSGI.length == 1) {\n exportOS...
"public void testSelectTwoSpecificColumnOfEmbeddable() {\n persist();\n String query2 = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"Stri...
"private void updateImage() {\n lastImageViewSize = imageView.getBounds().getSize();\n double scale = UIScreen.getMainScreen().getScale();\n CGSize targetSize = new CGSize(imageView.getBounds().getWidth() * scale, imageView.getBounds().getHeight() * scale);\n PHImageRequestOptions options = new PHImageReque...
"public void setTitleBarImage(final File imageFile) {\n if (this.iconFile == null || !this.iconFile.equals(imageFile)) {\n this.iconFile = imageFile;\n try {\n if (imageFile != null) {\n Image image = new ImageIcon(ImageIO.read(imageFile)).getImage();\n image.fl...
"public void clipSave() {\n gSave();\n}\n"
"public boolean convert(String world) {\n if (!createFolders(world)) {\n return false;\n }\n if (!downloadMinecraft()) {\n return false;\n }\n if (!createServerProperties(world)) {\n return false;\n }\n if (!createBans()) {\n return false;\n }\n if (!createOps(worl...
"public Map<String, Object> executeImpl(WebScriptRequest req, Status status, Cache cache) {\n String reqContentAsString;\n try {\n reqContentAsString = req.getContent().getContent();\n } catch (IOException iox) {\n throw new WebScriptException(Status.STATUS_BAD_REQUEST, \"String_Node_Str\", iox);...
"public BundleContext getProxyServiceFactoryBundleContext(EndpointDescription endpointDescription) {\n return proxyServiceFactoryBundleContext;\n}\n"
"public Long createCluster(ClusterCreate createSpec) throws Exception {\n SoftwareManager softMgr = softwareManagerCollector.getSoftwareManager(createSpec.getAppManager());\n HadoopStack stack = clusterConfigMgr.filterDistroFromAppManager(softMgr, createSpec.getDistro());\n createSpec.setDistroVendor(stack.get...
"protected void formOK(UserRequest ureq) {\n checkbox.setTitle(titleEl.getValue());\n String releaseKey = releaseEl.getSelectedKey();\n checkbox.setRelease(CheckboxReleaseEnum.valueOf(releaseKey));\n String labelKey = labelEl.getSelectedKey();\n checkbox.setLabel(CheckboxLabelEnum.valueOf(labelKey));\n ...
"private void handleBackspaceWhileInBatchEdit(final int spaceState, final InputConnection ic) {\n mVoiceProxy.handleBackspace();\n mHandler.postUpdateShiftKeyState();\n if (mEnteredText != null && sameAsTextBeforeCursor(ic, mEnteredText)) {\n ic.deleteSurroundingText(mEnteredText.length(), 0);\n ...
"public Report execute(IndexService index, ModelService model, StorageService storage, List<Serializable> list) throws PluginException {\n IndexedPreservationAgent agent = null;\n try {\n boolean notify = true;\n agent = PremisUtils.createPremisAgentBinary(this, RodaConstants.PRESERVATION_AGENT_TYPE...
"protected void checkNotRemoved(Oparg o, Set<String> removeVars) {\n if (o.type == OpargType.VAR) {\n checkNotRemoved(o.getVar(), removeVars);\n }\n}\n"
"private void updateGAStatus() {\n IJ.showStatus(ga_statusPrefix + ga_iteration);\n}\n"
"public void onResponseReceived(final Request request, final Response response) {\n if (response.getStatusCode() != Response.SC_OK) {\n GWT.log(\"String_Node_Str\" + url + \"String_Node_Str\" + response.getStatusCode() + \"String_Node_Str\" + response.getText());\n callback.onFailure(getErrorAsThrowabl...
"public TransformedData applyAndSetProperties(final Node transformation) {\n currentGroupify = transformer.apply(0L, transformation.getTransformation(), currentGroupify);\n currentGroupify.analyze();\n if (currentGroupify.isAnonymous() && config.getAbsoluteMaxOutliers() != 0) {\n currentGroupify.markOut...
"public void testStringCaseTransform() throws Exception {\n String inputName = \"String_Node_Str\";\n String outputName = \"String_Node_Str\";\n ETLStage source = new ETLStage(\"String_Node_Str\", MockSource.getPlugin(inputName));\n ETLStage sink = new ETLStage(\"String_Node_Str\", MockSink.getPlugin(output...
"private String getDestinationString() {\n final RepositorySelection repoSelection = repoPage.getSelection();\n final String destination;\n if (repoSelection.isConfigSelected())\n destination = repoSelection.getConfigName();\n else\n destination = repoSelection.getURI(true).toString();\n re...
"protected String getQuery() {\n Request request = ObjectModelHelper.getRequest(objectModel);\n String query = URLDecode(request.getParameter(\"String_Node_Str\"));\n if (query == null)\n return \"String_Node_Str\";\n return query;\n}\n"
"private final void showBottomValue(IPrimitiveRenderer ipr, Location lo, Label la, int iLabelPosition, boolean bShadow) {\n Graphics2D g2d = (Graphics2D) ((IDeviceRenderer) ipr).getGraphicsContext();\n FontDefinition fd = la.getCaption().getFont();\n double dAngleInDegrees = fd.getRotation();\n Color clrTex...
"public void run() {\n try {\n for (IFile file : folder) {\n if (!file.exists()) {\n BusinessException createBusinessException = ExceptionFactory.getInstance().createBusinessException(file.getName());\n throw createBusinessException;\n }\n }\n ...
"protected void doInit(TwillContext context) {\n this.user = DEFAULT_USER;\n CConfiguration cConf = getCConfiguration();\n Configuration hConf = getConfiguration();\n cConf.set(Constants.Dataset.Executor.ADDRESS, context.getHost().getHostName());\n injector = Guice.createInjector(new ConfigModule(cConf, ...
"public void setCalibration(CameraPinholeRadial paramVisual, Point2Transform2_F32 visToDepth) {\n PointToPixelTransform_F32 visToDepth_pixel = new PointToPixelTransform_F32(visToDepth);\n sparse3D.configure(LensDistortionOps.narrow(paramVisual), visToDepth_pixel);\n Point2Transform2_F64 leftPixelToNorm = narro...
"protected void operateCell(Grid src, Grid dst, int col, int row) {\n int nCols = src.getCols();\n int nRows = src.getRows();\n if (maskGrid.getValue(col, row) == maskValue) {\n float total = 0;\n int counter = 0;\n for (int i = 0; i < 9; i++) {\n int c = col + DX[i];\n ...
"public final Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException, WebApplicationException {\n try {\n Class<?> domainClass = getDomainClass(genericType);\n JAXBCont...
"public long getTotalInvokeReturnMissCosts(CallString callString) {\n if (analysisType == AnalysisType.ALWAYS_HIT)\n return 0;\n int size = 0;\n for (MethodInfo method : appInfo.findImplementations(callString)) {\n size = Math.max(size, method.getCode().getNumberOfWords());\n }\n WCETProces...
"public AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState) {\n AxisState info = new AxisState(cursor);\n if (isVisible()) {\n info = super.draw(g2, cursor, plotArea, dataArea, edge, plotState);\n }\n if (this.gridB...
"private void onOK() {\n try {\n File temp = File.createTempFile(\"String_Node_Str\", \"String_Node_Str\");\n bw = new BufferedWriter(new FileWriter(temp));\n bw.write(txtDeckList.getText());\n bw.close();\n tmpPath = temp.getPath();\n } catch (IOException e) {\n e.printS...
"private void processTeamHunts() {\n for (HuntingTeam team : storedHuntResults.keySet()) {\n Map<Food, List<String>> hunters = new HashMap<Food, List<String>>();\n for (TeamHuntEvent h : storedHuntResults.get(team)) {\n if (!hunters.containsKey(h.getFood())) {\n hunters.put(h....
"public static void setupProgram(String[] args) {\n boolean doUpdate = PreferenceHandler.getBooleanPreference(Preference.TYPES.LOAD_UPDATES);\n boolean checkPax = true;\n boolean checkShowclix = true;\n boolean checkTwitter = true;\n boolean deepCheckShowclix = false;\n boolean autoStart = false;\n ...
"private Class discoverType() {\n Class type = field.getType();\n Type gType = field.getGenericType();\n TypeVariable<GenericDeclaration> tv = null;\n ParameterizedType pt = null;\n if (gType instanceof TypeVariable)\n tv = (TypeVariable<GenericDeclaration>) gType;\n else if (gType instanceof P...
"private RunStats collectAndWriteRunStats(final URI test, final ScriptInstrumenter instrumenter, final NativeObject allCoverageData) throws IOException {\n final RunStats runStats = new RunStats(test);\n runStats.setSortBy(config.getSortBy());\n runStats.setOrder(config.getOrder());\n for (final ScriptData ...
"private void initAdditionalGrids() {\n this.graphicsGrid = new GraphicsGrid();\n this.landmarksCorrection = new LandmarksCorrectingThread(new LandmarksThreadGrid());\n this.constructionMarksGrid = new ConstructionMarksGrid();\n this.bordersThread = new BordersThread(new BordersThreadGrid());\n this.guiI...
"public void draw() {\n Entity riding = mc.player.getRidingEntity();\n if (riding == null) {\n return;\n }\n if (!(riding instanceof LocomotiveSteam)) {\n return;\n }\n LocomotiveSteam loco = (LocomotiveSteam) riding;\n drawGauge(0xAA0F0FFF, ((float) loco.getLiquidAmount()) / Fluid.BU...
"private void onParameterChanged(int row) {\n if (editingProcessor != null && editingProcessor == getSelectedProcessor()) {\n String key = parametersTableModel.getValueAt(row, 0).toString();\n Object value = parametersTableModel.getValueAt(row, 1);\n if (value instanceof Color) {\n ed...
"public MasterPageHandle getMasterPageHandle(ModuleHandle handle) {\n return getFirstMasterPageHandle(handle);\n}\n"
"public static <S extends Sequence<C>, C extends Compound> int[] runPairwiseScorers(List<PairwiseSequenceScorer<S, C>> scorers) {\n int n = 1, all = scorers.size();\n List<Future<Double>> futures = new ArrayList<Future<Double>>();\n for (PairwiseSequenceScorer<S, C> scorer : scorers) {\n futures.add(Con...
"public Iterable<Pair<String, Integer>> predictiveSearchWithTermId(String query) {\n List<Pair<String, Integer>> ret = new ArrayList<Pair<String, Integer>>();\n char[] chars = query.toCharArray();\n int charsLen = chars.length;\n int nodeId = 0;\n Range r = new Range();\n TailCharIterator tci = tailAr...
"static IDataEntity createDataset(EIndicatorChartType chartType, List<IndicatorUnit> indicatorUnitList) {\n CustomerDataset dataset = new CustomerDataset();\n for (int index = 0; index < indicatorUnitList.size(); index++) {\n IndicatorUnit unit = indicatorUnitList.get(index);\n IndicatorCommonUtil.c...
"protected void initOutgoingSocket() throws IOException {\n super.initOutgoingSocket();\n tlsLayer = new SSLReadWriteChannel(SSLUtils.getTLSContext(), SSLUtils.getExecutor(), NIODispatcher.instance().getBufferCache(), NIODispatcher.instance().getScheduledExecutorService());\n}\n"
"private final void renderResource(String relUrl, Output output, Context context) throws IOException, ResourceNotFoundException {\n String httpUrl = getUrlForHttpResource(relUrl, context);\n String fileUrl = getUrlForFileResource(relUrl, context);\n MultipleOutput multipleOutput = new MultipleOutput();\n mu...
"public void makePreviewFilter(String imgOriginalPath) {\n LOGGER.info(\"String_Node_Str\" + imgOriginalPath);\n try {\n String imgPath = filterService.resize(imgOriginalPath, 80, 80);\n int counter = 1;\n List<String> allfilters = filterService.getExistingFilters();\n double imageFilt...