content
stringlengths
40
137k
"public void testBasicNotDetail4() throws Exception {\n this.GEN_add_filter = false;\n this.GEN_add_group = false;\n this.genBasicIV();\n this.closeArchiveWriter();\n DataEngineContext deContext2 = newContext(DataEngineContext.MODE_UPDATE, fileName, fileName);\n myPreDataEngine = DataEngine.newDataEng...
"public void paint(GC gc, Object value) {\n gc.setAntialias(SWT.ON);\n gc.setTransform(_transform);\n float[] original = { (float) getBounds().x - 2, (float) getBounds().y + (float) getBounds().height - 2 };\n _transformInv.transform(original);\n GridColumn column = (GridColumn) value;\n gc.setFont(co...
"protected List<IRepositoryViewObject> loadRepViewObjectWithOtherTypes() throws PersistenceException {\n List<IRepositoryViewObject> list = new ArrayList<IRepositoryViewObject>();\n List<IRepositoryViewObject> processList = getAllProcessTypeObjectsWithoutCurrentType();\n if (processList != null && !processList...
"public void run() {\n try {\n RenamerGUI frame = new RenamerGUI(MoviescraperPreferences.getInstance(), null);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n } catch (Exception e) {\n e.printStackTrace();\n }\n}\n"
"public Object take() throws NoSuchElementException {\n Object obj = null;\n try {\n if (isEmpty())\n throw new NoSuchElementException(\"String_Node_Str\");\n obj = _queueArray[_queueBack];\n _queueArray[_queueBack] = null;\n _queueBack++;\n if (_queueBack >= _queueAr...
"IOdaDataSourceDesign newOdaDataSource(OdaDataSourceHandle source) throws BirtException {\n setResourceIDtoDataSourceHandle(source);\n OdaDataSourceDesign dteSource = new OdaDataSourceDesign(source.getQualifiedName());\n IBaseDataSourceEventHandler eventHandler = new DataSourceScriptExecutor(source, context);\...
"public void shakeMouse() {\n m_queuer.invokeAndWait(\"String_Node_Str\", new IRunnable<Void>() {\n public Void run() throws StepExecutionException {\n final int mouseShakeOffset = 10;\n java.awt.Point origin = AUTServer.getInstance().getRobot().getCurrentMousePosition();\n Sw...
"public void evict(long now) {\n if (now - lastEvictionTime > 10000) {\n lastEvictionTime = now;\n Set<Map.Entry<Object, Record>> entries = mapCache.entrySet();\n List<Object> lsKeysToRemove = new ArrayList<Object>();\n for (Map.Entry<Object, Record> entry : entries) {\n Object...
"public void testGetRealm() throws InterruptedException, ExecutionException, TimeoutException {\n try {\n handler.getRealm().get(1, MINUTES);\n } catch (RequestException ex) {\n if (isNotServerside(ex))\n throw ex;\n }\n}\n"
"public void mouseDown(MouseEvent e) {\n DataManager dm = analysis.getContext().getConnection();\n if (dm == null) {\n masterPage.doSave(null);\n }\n IRepositoryNode patternFolderNode = null;\n AnalysisType analysisType = analysis.getParameters().getAnalysisType();\n ExecutionLanguage execution...
"public Response delete(final HttpServletRequest request, final String source, final String objectType, final String key, final String reason, final List<String> passwords, final String override) {\n checkForMainSource(request, source);\n final RpslObject originalObject = rpslObjectDao.getByKey(ObjectType.getByNa...
"public static void main(String[] args) {\n DescribeImageDense<ImageUInt8, TupleDesc_F64> desc = (DescribeImageDense) FactoryDescribeImageDense.surfFast(null, ImageUInt8.class);\n desc.configure(1, 8, 8);\n ComputeClusters<double[]> clusterer = FactoryClustering.kMeans_F64(null, MAX_KNN_ITERATIONS, 20, 1e-6);\...
"public double getX() {\n return (double) pos.getX() + 0.5D;\n}\n"
"public void showCompound() {\n System.out.println(\"String_Node_Str\");\n if (this.molId != -1) {\n System.out.println(\"String_Node_Str\" + this.molId);\n }\n if (this.chainIds != null) {\n System.out.println(\"String_Node_Str\" + this.chainIds);\n }\n if (this.molName != null) {\n ...
"private void btnLoginActionPerformed(java.awt.event.ActionEvent evt) {\n String username = fieldUsername.getText().trim();\n String password = new String(fieldPassword.getPassword());\n if (MainGUI.settingsManager.checkAuth(username, password)) {\n this.setVisible(false);\n } else {\n JOption...
"private void appendEquals(String key, String op, Object value) {\n Class<T> clazz = dao.getEntityClass();\n if (key.equals(Operator.ID)) {\n Object dbId = IdUtil.toDbId(clazz, (String) value);\n append(Operator.ID, op, dbId);\n } else if (key.indexOf(\"String_Node_Str\") != -1) {\n append...
"protected long getPageNumber(HttpServletRequest request, Oprand[] params, String documentName) throws RemoteException, ReportServiceException {\n long pageNumber = -1;\n if (params != null && params.length > 0) {\n for (int i = 0; i < params.length; i++) {\n if (IBirtConstants.OPRAND_PAGENO.equ...
"public void execute(User user, List<String> actions, CheckType type) {\n final String name = user.getName();\n for (String event : actions) {\n event = event.replaceAll(\"String_Node_Str\", name).replaceAll(\"String_Node_Str\", user.getPlayer().getWorld().getName()).replaceAll(\"String_Node_Str\", type.na...
"public void replaceValues(int[] min, int[] max, Integer[] replacement, Integer[] otherwise) throws TilerException {\n if (min.length != bufferBandCount || max.length != bufferBandCount || replacement.length != bufferBandCount || otherwise.length != bufferBandCount) {\n throw new IllegalArgumentException(\"St...
"public static String convertColor(String value) {\n if (value == null || \"String_Node_Str\".equalsIgnoreCase(value) || \"String_Node_Str\".equalsIgnoreCase(value)) {\n return null;\n } else\n return value.replace(\"String_Node_Str\", \"String_Node_Str\");\n}\n"
"private boolean setUpFrame(int verbosity) {\n int compiledMethodId = Magic.getCompiledMethodID(fp);\n if (compiledMethodId == ArchitectureSpecific.ArchConstants.INVISIBLE_METHOD_ID) {\n if (verbosity >= 2)\n Log.writeln(\"String_Node_Str\");\n return false;\n }\n compiledMethod = C...
"public static String getFullPathNoEndSeparator(final String aURLString) {\n final int pathnameStartIndex = aURLString.indexOf(UNIX_SEPARATOR);\n final int pathnameEndIndex = aURLString.lastIndexOf(UNIX_SEPARATOR);\n String aPath = aURLString.substring(0, pathnameEndIndex);\n return aPath;\n}\n"
"public void putFloat(final String key, final float value) {\n p.putFloat(safeKey(key), value);\n}\n"
"public static String getSignature(SootClass cl, String name, Type type) {\n StringBuffer buffer = new StringBuffer();\n buffer.append(\"String_Node_Str\" + Scene.v().quotedNameOf(cl.getName()) + \"String_Node_Str\");\n buffer.append(type.toQuotedString() + \"String_Node_Str\" + Scene.v().quotedNameOf(name) + ...
"private void addHadoopDBNode(RepositoryNode parentNode) {\n String id = parentNode.getObject().getId();\n Map<String, List<DatabaseConnectionItem>> dbItemMap = getLinkedDbMap(project).get(id);\n if (dbItemMap != null && dbItemMap.size() > 0) {\n Iterator<Entry<String, List<DatabaseConnectionItem>>> ite...
"public void I_define_the_property_of_capability_the_node_as_input_property(String propertyId, String capabilityId, String nodeTemplateId, String inputId) throws Throwable {\n String url = String.format(\"String_Node_Str\", Context.getInstance().getTopologyId(), nodeTemplateId, capabilityId, propertyId);\n List<N...
"public void resolve(Openable[] openables, HashSet localTypes, IProgressMonitor monitor) {\n try {\n int openablesLength = openables.length;\n CompilationUnitDeclaration[] parsedUnits = new CompilationUnitDeclaration[openablesLength];\n boolean[] hasLocalType = new boolean[openablesLength];\n ...
"public void handleEvent(Event event) {\n if (event.widget.equals(catLabelAttr)) {\n boolean isUnset = (event.detail == ChartElementUtil.PROPERTY_UNSET);\n switch(event.type) {\n case LabelAttributesComposite.VISIBILITY_CHANGED_EVENT:\n ChartElementUtil.setEObjectAttribute(ser...
"private void fireContentReceived(DefaultHttpSession session, HttpContentMessage content) throws Exception {\n IoBufferEx buffer = content.asBuffer();\n if (buffer != null && buffer.hasRemaining()) {\n if (!session.isIoRegistered() || session.isReadSuspended()) {\n session.addDeferredRead(buffer...
"protected final Perl5Substitution getRenameSubstitution(String newName) {\n if (substitutionsCache.containsKey(newName)) {\n return substitutionsCache.get(newName);\n }\n Perl5Substitution ps = new Perl5Substitution(newName + \"String_Node_Str\", Perl5Substitution.INTERPOLATE_ALL);\n substitutionsCa...
"public void update(String path, Map<Integer, Integer> map) {\n SQLiteDatabase db = null;\n try {\n db = db_open_helper.getWritableDatabase();\n } catch (Exception e) {\n Log.i(\"String_Node_Str\", e.toString());\n e.printStackTrace();\n }\n if (db == null) {\n return;\n }\...
"public Batch.Response submit() {\n validateActive();\n List<com.google.datastore.v1beta3.Mutation> mutationsPb = toMutationPbList();\n com.google.datastore.v1beta3.CommitRequest.Builder requestPb = com.google.datastore.v1beta3.CommitRequest.newBuilder();\n requestPb.setMode(com.google.datastore.v1beta3.Com...
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.main_activity, container, false);\n radioLayout = (LinearLayout) v.findViewById(R.id.radioAudio);\n tabletLayout = (LinearLayout) v.findViewById(R.id.tabletAudio);\n ...
"public String toString() {\n double prunedPercentage = (double) this.numTransformationsPruned / (double) this.numMaterializedTransformations * 100d;\n double materializedPercentage = (double) this.numMaterializedTransformations / (double) this.numTransformationsInSearchSpace * 100d;\n StringBuilder sb = new S...
"public void renderTileEntityAt(TileEntity t, double x, double y, double z, float f) {\n super.renderTileEntityAt(t, x, y, z, f);\n if (t instanceof TileEntityTurretBase) {\n TileEntityTurretBase tileEntity = (TileEntityTurretBase) t;\n GL11.glPushMatrix();\n GL11.glTranslatef((float) x + 0.5...
"private static void parseValue(PsiBuilder builder) {\n if (builder.getTokenType() == ShaderLabTokens.LBRACKET) {\n ShaderLabParser.parseBracketReference(builder);\n } else if (builder.getTokenType() == ShaderLabTokens.IDENTIFIER) {\n ShaderLabParser.validateIdentifier(builder, ourFactors);\n }\n...
"public void testImportFileWithoutManifest() throws PlatformImportException, DomainIdNullException, DomainAlreadyExistsException, DomainStorageException, IOException, PlatformInitializationException, InterruptedException {\n ByteArrayInputStream solutionInputStream = null;\n final File srcContentFile = new File(s...
"protected void createMainPart(Composite parent) {\n setMainTreeViewer(new TreeViewer(parent));\n DecoratingLabelProvider lp = new DecoratingLabelProvider(new GeneralLabelProvider(), Plugin.getDefault().getWorkbench().getDecoratorManager().getLabelDecorator());\n lp.setDecorationContext(new JBEditorDecorationC...
"private void ensureLoaded(int address) {\n if (loadedAddress < 0 || ((loadedAddress & 0xfff00) != (address & 0xfff00))) {\n try {\n if (DEBUG)\n System.out.println(\"String_Node_Str\" + (address & 0xfff00));\n file.seek(address & 0xfff00);\n file.readFully(read...
"public void onSuccess(AmendmentContainerDTO[] result) {\n amendmentControllers.removeAll(Arrays.asList(event.getAmendmentControllers()));\n for (int i = 0; i < result.length; i++) {\n AmendmentController amendmentController = event.getAmendmentControllers()[i];\n documentEventBus.fireEvent(new Amen...
"public static String getFctSignature(final ADQLFunction fct) {\n if (fct == null)\n return \"String_Node_Str\";\n StringBuffer buf = new StringBuffer(fct.getName().toLowerCase());\n buf.append('(');\n for (int i = 0; i < fct.getNbParameters(); i++) {\n if (fct.getParameter(i).isNumeric() && f...
"public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Object item = list.getAdapter().getItem(position);\n ((MainActivity) getActivity()).playRadio((Radio) item);\n}\n"
"private void refreshPage() {\n DataSourceDesign curDataSourceDesign = this.getDataSetDesign().getDataSourceDesign();\n if (curDataSourceDesign != prevDataSourceDesign) {\n RemoveAllAvailableDbObjects();\n resetJdbcInfo(curDataSourceDesign);\n setPageLayout();\n prevDataSourceDesign = ...
"public void transform(NodeType node) {\n ElementParameterType elemParamType = ComponentUtilities.getNodeProperty(node, \"String_Node_Str\");\n String propertiesString = elemParamType.getValue();\n Deserialized<ComponentProperties> fromSerialized = PropertiesImpl.fromSerialized(propertiesString, ComponentPrope...
"private String formatTagValue(final short tag, final Object value) {\n final String tagString = SAMTagUtil.getSingleton().makeStringTag(tag);\n if (value == null || value instanceof String) {\n return tagString + \"String_Node_Str\" + value;\n } else if (value instanceof Integer) {\n return tagS...
"public void testFormatterFromFormatterWithSpecifiedTZ() {\n final DateTimeFormatter yyyyMMdd = JodaHelper.getDateTimeFormatter(CsvColumnDefinition.IDENTITY.add(new JodaDateTimeFormatterProperty(DateTimeFormat.forPattern(\"String_Node_Str\").withZone(CHICAGO_TZ))).addTimeZone(TimeZone.getTimeZone(\"String_Node_Str\"...
"protected String addQuoteForSpecialChar(String expression, DbMapComponent component) {\n List<String> specialList = new ArrayList<String>();\n Map<String, List<String>> map = new HashMap<String, List<String>>();\n List<IConnection> inputConnections = (List<IConnection>) component.getIncomingConnections();\n ...
"public AjcTest.Suite.Spec readAjcSuite(File file) throws IOException, AbortException {\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n System.setProperty(\"String_Node_Str\", LOG[logLevel]);\n final Digester digester = makeDigester(file);\n SuiteHolder holder = new SuiteHolder();\n dig...
"public int schedule(SpoutTask task) {\n synchronized (scheduleLock) {\n addTask(task);\n if (!task.isSync()) {\n SpoutWorker worker = new SpoutWorker(task, this);\n addWorker(worker, task);\n worker.start();\n } else {\n taskQueue.add(task);\n ...
"private void exportJobForPOJO(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {\n File tmpJob = null;\n try {\n tmpJob = File.createTempFile(\"String_Node_Str\", \"String_Node_Str\", null);\n ProcessItem processItem = (ProcessItem) node.getObject().getProperty().get...
"private void killSelectedMovables(List<Integer> selectedMovables) {\n for (Integer currID : selectedMovables) {\n Movable curr = Movable.getMovableByID(currID);\n if (curr != null)\n curr.kill();\n }\n}\n"
"protected final void handleOutsideDataPoints(final IPrimitiveRenderer ipr, final SeriesRenderingHints srh, final double[] faX, final double[] faY, final boolean bShowAsTape) {\n final AutoScale scale = getAxisInternal().getScale();\n if ((scale.getType() & IConstants.PERCENT) == IConstants.PERCENT) {\n re...
"private SolrInputDocument index(Item item) throws SQLException, MetadataBindException, ParseException, XMLStreamException, WritingXmlException {\n SolrInputDocument doc = new SolrInputDocument();\n doc.addField(\"String_Node_Str\", item.getID());\n boolean pub = this.isPublic(item);\n doc.addField(\"String...
"public void selfRead() {\n UserService userService2 = setupCredentials(userService, UserService.class, \"String_Node_Str\", ADMIN_PWD);\n try {\n userService2.read(1L);\n fail();\n } catch (HttpClientErrorException e) {\n assertEquals(HttpStatus.FORBIDDEN, e.getStatusCode());\n }\n ...
"public Form read(IFile ifile) {\n if (ifile == null) {\n return null;\n }\n Form form = new Form();\n ArrayList<String> lines = null;\n try {\n lines = readFileLines(ifile);\n } catch (FileNotFoundException e) {\n System.out.println(\"String_Node_Str\");\n return null;\n ...
"public InputStream getInputStream() throws IOException {\n return serializer.getInputStream();\n}\n"
"public SortedSet<ScriptUpdate> getRegularPatchScriptUpdates() {\n SortedSet<ScriptUpdate> result = new TreeSet<ScriptUpdate>();\n for (ScriptUpdateType patchScriptUpdateType : ScriptUpdateType.getPatchScriptUpdateTypes()) {\n result.addAll(regularPatchScriptUpdates.get(patchScriptUpdateType));\n }\n ...
"private Class _checkArrayClass(StringBuffer name, boolean search) throws ClassNotFoundException {\n boolean isPrimitiveArray;\n int nameStart = 0;\n int arrayCount = 0;\n int nameEnd = name.length() - 1;\n if (name.charAt(nameStart) == '[') {\n while (name.charAt(nameStart) == '[') {\n ...
"private void initialise(Canvas canvas) {\n final double circleToSquare = 0.707106781;\n Rect2i region = canvas.getRegion();\n int sectionWidth = region.width() / 4;\n double offset = sectionWidth * 1.5;\n radius = sectionWidth * 2;\n sectionAngle = (Math.PI * 2) / sections.size();\n int infoSquare...
"private void compare(final int handlerIndex, final String key, final Properties properties, final Object... params) {\n final String expectedMessage = getFormattedProperty(key, properties, params);\n final String loggedMessage = HANDLER.getMessage(handlerIndex).replaceAll(LOGGER_ID_PATTERN, \"String_Node_Str\");...
"private String autophrase(String input) throws IOException {\n WhitespaceTokenizer wt = new WhitespaceTokenizer(Version.LUCENE_46, new StringReader(input));\n TokenStream ts = wt;\n if (ignoreCase) {\n ts = new LowerCaseFilter(Version.LUCENE_46, wt);\n }\n AutoPhrasingTokenFilter aptf = new AutoP...
"public void onMessage(Message message) {\n if (isDisabled()) {\n return;\n }\n lastMessage = message;\n if (!(message instanceof TextMessage)) {\n return;\n }\n final String text;\n try {\n text = ((TextMessage) message).getText();\n } catch (JMSException e) {\n e.pr...
"public long getPendingTime(long now) {\n long time = pastPendingTime;\n if (pendingNesting > 0) {\n time += now - pendingStartTime;\n }\n return time;\n}\n"
"private void touchGitResources(IProject project, IProgressMonitor monitor) {\n final SubMonitor progress = SubMonitor.convert(monitor, 1);\n try {\n project.accept(new IResourceProxyVisitor() {\n public boolean visit(IResourceProxy resource) throws CoreException {\n int type = re...
"protected void configure() {\n install(new ServiceModule());\n install(new IDFactoryModule());\n install(new MySQL5DAOModule());\n}\n"
"private Boolean checkAll(AbstractParseNode n, String v, IStrategoTerm constraint, AbstractParseNode[] kids, Map<String, Object> env) {\n if (atParseTime)\n return noValue();\n Stack<AbstractParseNode> all = new Stack<AbstractParseNode>();\n all.push(n);\n String sort = null;\n while (!all.isEmpty...
"public Iterator<OverlayEdgeWrapper<V, E>> safe_iterator() {\n return new OverlayEdgeIteratorWrapper<>(wrapper, wrapper.edgeRef(), wrappedEdges.iterator());\n}\n"
"public void renderGraphLabelBorders(Graph graph) {\n labelBorderGroupElem = createGroupElem(\"String_Node_Str\");\n svgRoot.insertBefore(labelBorderGroupElem, labelGroupElem);\n for (Node n : graph.getNodes()) {\n if (n.showLabel() && n.hasLabel() && n.showLabelBorders() && n.getLabel().getFont() != nu...
"private String getParameterName(String configVarName) {\n String paramName = null;\n List parameters = null;\n IReportRunnable runnable = (IReportRunnable) reportDesignHandle.getDesignObject();\n ModuleHandle model = runnable.getDesignHandle().getModuleHandle();\n if (model != null) {\n parameter...
"protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect) {\n Raster source = sources[0];\n Rectangle srcRect = source.getBounds();\n int formatTag = MediaLibAccessor.findCompatibleTag(sources, dest);\n MediaLibAccessor srcAccessor = new MediaLibAccessor(source, srcRect, formatT...
"private static ActionArtifact sawBuild2Action4_createUnCommittedConflictedAction(SkynetTransaction transaction) throws OseeCoreException {\n String title = \"String_Node_Str\";\n Collection<IAtsActionableItem> aias = DemoDbUtil.getActionableItems(new String[] { DemoDbAIs.SAW_Requirements.getAIName() });\n Dat...
"public static boolean isJobsFolder(String label) {\n if (label == null) {\n return false;\n }\n return ERepositoryObjectType.JOB_DOC != null && label.equalsIgnoreCase(new Path(ERepositoryObjectType.JOB_DOC.getFolder()).lastSegment());\n}\n"
"public static String formatXsdSource(String xsdSource) {\n try {\n SAXReader reader = new SAXReader();\n org.dom4j.Document document = reader.read(new StringReader(xsdSource));\n StringWriter writer = new StringWriter();\n OutputFormat format = OutputFormat.createPrettyPrint();\n ...
"private Map<String, SimpleReport> loadValidationResults(SignedDocumentValidator validator) {\n logger.debug(\"String_Node_Str\");\n Map<String, SimpleReport> simpleReports = new LinkedHashMap<>();\n Reports report = validate(validator);\n dssSignatureParameters.setDigestAlgorithm(report.getDiagnosticData()...
"public Boolean parse() throws InvalidStructureException, IOException, XmlPullParserException, UnfullfilledRequirementsException {\n try {\n String rootName = parser.getName();\n if (requiredRootEnvelope != null && !requiredRootEnvelope.equals(rootName)) {\n throw new InvalidStructureExcepti...
"private void readNextChunk() {\n ChannelBuffer readBuffer = readNext();\n more = readBuffer.readByte() == ChunkingChannelBuffer.CONTINUATION_MORE;\n if (!more && buffer == null) {\n buffer = readBuffer;\n } else {\n buffer = buffer == null ? ChannelBuffers.dynamicBuffer() : buffer;\n d...
"public void dispose() {\n Collection<Job> jobs = Collections.emptyList();\n synchronized (openRetryJobs) {\n jobs = openRetryJobs.values();\n }\n for (Job job : jobs) {\n LoadingJob loadingJob = (LoadingJob) job;\n IProgressMonitor monitor = loadingJob.getMonitor();\n monitor.se...
"private void removePackageDataLI(PackageParser.Package p, PackageRemovedInfo outInfo, int flags) {\n String packageName = p.packageName;\n if (outInfo != null) {\n outInfo.removedPackage = packageName;\n }\n removePackageLI(p, true);\n PackageSetting deletedPs;\n synchronized (mPackages) {\n ...
"private SpiderInfo readSpiderInfoFromInternet(EhConfig config) {\n try {\n SpiderInfo spiderInfo = new SpiderInfo();\n spiderInfo.gid = mGalleryInfo.gid;\n spiderInfo.token = mGalleryInfo.token;\n Request request = new EhRequestBuilder(EhUrl.getGalleryDetailUrl(mGalleryInfo.gid, mGallery...
"private Verse readPassageOsis(Key key, RawTextToXmlProcessor processor, final List<Content> content, T openFileState) throws BookException {\n Verse currentVerse = null;\n final Passage ref = KeyUtil.getPassage(key);\n final Iterator<Key> rit = ref.rangeIterator(RestrictionType.CHAPTER);\n while (rit.hasNe...
"public void debugHooks(int pc) {\n if (exiting) {\n throw new AbortException(\"String_Node_Str\");\n }\n if (DebugUtils.IS_DEBUG) {\n DebugUtils.println(\"String_Node_Str\" + pc + \"String_Node_Str\" + getFileLine(cc));\n for (int j = 0; j <= cc; j++) {\n DebugUtils.println(\"S...
"private Object[] buildParamList(Functor func, int indexOfParamToSetToNull) {\n Class<?>[] types = func.getParameterTypes();\n Object[] params = new Object[types.length];\n for (int i = 0; i < types.length; i++) {\n if (i != indexOfParamToSetToNull) {\n params[i] = defaults.get(types[i]);\n ...
"public Object validateValue(ReportDesign design, PropertyDefn defn, Object value) throws PropertyValueException {\n if (value == null)\n return null;\n if (value instanceof String) {\n if (StringUtil.isEmpty((String) value))\n return null;\n return value;\n throw new PropertyVa...
"public WriteFuture send(String request) throws IOException {\n session = connect();\n if (session == null) {\n int attempts = RETRY_ATTEMPTS;\n while (attempts > 0) {\n try {\n Thread.sleep(INTRA_CONNECT_SLEEP_MS);\n } catch (InterruptedException e) {\n ...
"public boolean equals(Object obj) {\n if (!(obj instanceof Interval)) {\n return false;\n }\n Interval<T, S> other = (Interval<T, S>) obj;\n if (start == null ^ other.start == null) {\n return false;\n }\n if (value == null ^ other.value == null) {\n return false;\n }\n if ...
"public void testBrokenPackage2() {\n runNegativeTest(new String[] { \"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\");\n}\n"
"private static String jsonifyTraceAndMessage(int maxFieldLength, String wlpUserDir, String serverName, String hostName, String eventType, Object event, String[] tags) {\n GenericData genData = (GenericData) event;\n StringBuilder sb = null;\n ArrayList<Pair> pairs = genData.getPairs();\n KeyValuePair kvp =...
"public void testDoesNotCloseDictionaryIfInputRestartsQuickly() {\n final EditorInfo editorInfo = TestableAnySoftKeyboard.createEditorInfoTextWithSuggestions();\n mAnySoftKeyboardUnderTest.onStartInput(editorInfo, false);\n mAnySoftKeyboardUnderTest.onCreateInputView();\n mAnySoftKeyboardUnderTest.onStartIn...
"private boolean loadCheckingAccount(int transId) {\n AccountTransactionRepository repo = new AccountTransactionRepository(this);\n AccountTransaction tx = repo.load(transId);\n if (tx == null)\n return false;\n mCommonFunctions.transactionEntity = tx;\n if (mCommonFunctions.mSplitTransactions == ...
"public TransformedData applyAndSetProperties(final Node transformation) {\n currentGroupify.clear();\n currentGroupify = transformer.apply(0L, transformation.getTransformation(), currentGroupify);\n if (transformation.hasProperty(Node.PROPERTY_ANONYMOUS) && config.getAbsoluteMaxOutliers() != 0) {\n cur...
"private String flip(String text) {\n return Bidi.writeReverse(text, Bidi.OUTPUT_REVERSE | Bidi.DO_MIRRORING);\n}\n"
"public int getIntSetting(final String settingName) throws EoulsanException {\n if (settingName == null)\n throw new EoulsanException(\"String_Node_Str\");\n final String value = getSetting(settingName);\n if (value == null)\n throw new EoulsanException(\"String_Node_Str\" + settingName + \"Strin...
"public void registerEventListeners() {\n super.registerEventListeners();\n togglePointTypeListener = new TogglePointTypeListener();\n togglePointTypeListener.setHandler(this);\n eventPublisher.addListener(TogglePointTypeEvent.class, togglePointTypeListener);\n resetSelectionListener = new ToggleMatrixVi...
"public String[] next() {\n if (!headerReturned) {\n headerReturned = true;\n return createHeader();\n }\n lastRow = it.next();\n String[] result = new String[indexes.length];\n for (int i = 0; i < indexes.length; i++) {\n result[i] = lastRow[indexes[i]];\n if (!types[i].isVal...
"public FormURLEncodedProperties readFrom(Class<FormURLEncodedProperties> type, MediaType mediaType, MultivaluedMap<String, String> headers, InputStream entityStream) throws IOException {\n String encoded = readFromAsString(entityStream);\n FormURLEncodedProperties map = new FormURLEncodedProperties();\n Strin...
"public void updateEntity() {\n if (!this.addedToNet)\n this.isRSActivated = worldObj.isBlockIndirectlyGettingPowered(xCoord, yCoord, zCoord);\n super.updateEntity();\n if (worldObj.isRemote) {\n return;\n int energyReq = ENERGY_MAX - currentEnergy;\n if (this.isRSActivated && currentBehavi...
"public boolean addAllUnique(int index, Object[] objects, int start, int end) {\n int collectionSize = end - start;\n if (collectionSize == 0) {\n return false;\n } else {\n if (isNotificationRequired()) {\n boolean oldIsSet = isSet();\n doAddAllUnique(index, objects, start,...
"public boolean performOperationWithMemRetry(String TAG, MemRelatedOperation operation, boolean failWithException) {\n reset();\n boolean retry = true;\n while (retry) {\n try {\n operation.operation();\n return true;\n } catch (OutOfMemoryError e) {\n Log.w(tag, ...
"private void create(final Composite parent) {\n table = new Table(parent, SWT.CHECK | SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER);\n table.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).span(2, 1).create());\n Button button = new Button(parent, SWT.PUSH);\n button.setLayoutData(SWTUtil.createG...
"public Iterable<DiscoveryNode> discoverNodes() {\n DiscoveryNode discoveryNode;\n MulticastMemberInfo multicastMemberInfo = multicastDiscoveryReceiver.receive();\n if (multicastMemberInfo == null) {\n return null;\n ArrayList<DiscoveryNode> arrayList = new ArrayList<DiscoveryNode>();\n try {\n ...