content
stringlengths
40
137k
"public static RootStatement codeToJava(StructMethod mt, VarProcessor varproc) throws IOException {\n StructClass cl = mt.getClassStruct();\n boolean isInitializer = \"String_Node_Str\".equals(mt.getName());\n mt.expandData();\n InstructionSequence seq = mt.getInstructionSequence();\n ControlFlowGraph gr...
"static String stackTraceAllStr(int numFrames) {\n Set<Map.Entry<Thread, StackTraceElement[]>> traces = Thread.getAllStackTraces().entrySet();\n StringBuilder buf = new StringBuilder();\n for (Thread th : traces.keySet()) {\n buf.append(th.toString());\n buf.append(LINE_SEPARATOR);\n buf.a...
"public void putMapping(String index, String type, String mapping) throws IOException {\n logger.debug(\"String_Node_Str\", index, type);\n StringEntity entity = new StringEntity(mapping, StandardCharsets.UTF_8);\n Response restResponse = client.performRequest(\"String_Node_Str\", \"String_Node_Str\" + index +...
"public synchronized boolean addDownload(Collection<? extends RemoteFileDesc> c, boolean cache) {\n if (stopped || isCompleted())\n return false;\n List<RemoteFileDesc> l = new ArrayList<RemoteFileDesc>(c.size());\n for (RemoteFileDesc rfd : c) {\n if (allowAddition(rfd)) {\n if (hostI...
"public final void toSQL(RenderContext context) {\n if (context.declareFields() || context.declareTables()) {\n if (wrapInParentheses) {\n context.sql(\"String_Node_Str\");\n }\n context.sql(aliasProvider);\n if (wrapInParentheses) {\n context.sql(\"String_Node_Str\"...
"public final void parameters(final String[] par, final SnipeData v) {\n if (par.length == 0) {\n v.sendMessage(TextColors.RED, \"String_Node_Str\");\n return;\n }\n if (par[0].equalsIgnoreCase(\"String_Node_Str\")) {\n v.sendMessage(TextColors.GOLD, \"String_Node_Str\");\n v.sendMe...
"protected void _parseArgs(String[] args) throws Exception {\n for (int i = 0; i < args.length; i++) {\n String arg = args[i];\n if (_parseArg(arg) == false) {\n if (arg.trim().startsWith(\"String_Node_Str\")) {\n if (i >= (args.length - 1)) {\n throw new Il...
"public void saveMonitor(PlayOrmMonitor monitor) {\n MonitorDbo m = CopyUtil.copy(monitor);\n NoSqlEntityManager mgr = factory.createEntityManager();\n mgr.put(m, false);\n mgr.flush();\n}\n"
"public void activeData() {\n if (SE_ID.equals(perspectiveId)) {\n IFolder folder = ResourcesPlugin.getWorkspace().getRoot().getProject(org.talend.dataquality.PluginConstant.getRootProjectName()).getFolder(DQStructureManager.getMetaData()).getFolder(DQStructureManager.DB_CONNECTIONS);\n List<TdDataProv...
"public void mutableMethodsOutsideTransactions() {\n for (CollectionMutatorMethod method : CollectionMutatorMethod.values()) {\n Class<? extends Throwable> expected = IllegalStateException.class;\n if (collectionClass == ManagedCollection.REALMRESULTS || isSnapshot(collectionClass)) {\n swit...
"private void updateROMDataSetParams(DataSetParameterAdapter setParamAdapter, DataSetParameters cachedParameters) throws SemanticException {\n List newParams = setParamAdapter.newROMSetParams(cachedParameters);\n OdaDataSetHandle setHandle = setParamAdapter.getSetHandle();\n PropertyHandle propHandle = setHand...
"public static String getNormalizeParameterValue(INode node, IElementParameter ep) {\n String value = \"String_Node_Str\";\n List<EParameterFieldType> needQuoteList = Arrays.asList(EParameterFieldType.CLOSED_LIST, EParameterFieldType.OPENED_LIST, EParameterFieldType.COMPONENT_LIST, EParameterFieldType.COLUMN_LIST...
"public void testBadCallSynch() throws Exception {\n final IRemoteService service = registerAndGetRemoteService();\n try {\n service.callSynch(createRemoteCall(\"String_Node_Str\", new Object[] { \"String_Node_Str\", \"String_Node_Str\" }));\n fail();\n } catch (ECFException e) {\n }\n try ...
"protected void _execute() throws Exception {\n super._execute();\n link.setHead(newLinkHead);\n if (relationNameToAdd != null) {\n ComponentRelation relation = (ComponentRelation) container.getRelation(relationNameToAdd);\n link.setRelation(relation);\n } else {\n link.setRelation(null...
"public void registerDimensionPerspective(DimensionPerspective dimensionPerspective) {\n if (dimensionPerspective.getPerspectiveID() == null)\n throw new IllegalStateException(\"String_Node_Str\" + dimensionPerspective);\n hashDimensionPerspectives.put(dimensionPerspective.getID(), dimensionPerspective);\n...
"private void processExceptionHandled(OperationReport report) {\n for (String datId : datIdsCoveredByException) {\n Matcher matcher = Pattern.compile(\"String_Node_Str\").matcher(datId);\n matcher.find();\n String itemDatId = matcher.group();\n DispoItemData item = datIdToItem.get(itemDat...
"public void testSelectPhoneNumberAreaCodeWithEmployee() {\n org.eclipse.persistence.jpa.JpaEntityManager em = (org.eclipse.persistence.jpa.JpaEntityManager) createEntityManager();\n ExpressionBuilder employees = new ExpressionBuilder();\n Expression exp = employees.get(\"String_Node_Str\").equal(\"String_Node...
"public static void main(String[] args) {\n final InputStream initialInput = new Base64InputStream(System.in);\n final PrintStream initialError = System.err;\n try {\n Class.forName(ConsoleHandler.class.getName(), true, ConsoleHandler.class.getClassLoader());\n } catch (Throwable ignored) {\n }\n ...
"protected void doPreService(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n String format = ParameterAccessor.getFormat(request);\n String openType = ParameterAccessor.getOpenType(request);\n if (IBirtConstants.SERVLET_PATH_DOWNLOAD.equalsIgnoreCase(request.g...
"private MetricsFile<TestMetric, Integer> writeThenReadBack(MetricsFile<TestMetric, Integer> in) throws Exception {\n File f = File.createTempFile(\"String_Node_Str\", \"String_Node_Str\");\n f.deleteOnExit();\n FileWriter out = new FileWriter(f);\n in.write(out);\n MetricsFile<METRIC, Integer> retval = ...
"public void onSneakClick(ItemStack stack, World world, EntityPlayer shooter) {\n if (isEmpty(stack)) {\n if (searchInventoryForAmmo(shooter, false) != null) {\n searchInventoryForAmmo(shooter, true);\n if (!world.isRemote) {\n System.out.println(searchInventoryForAmmo(sho...
"public void onSetupConfig(AppSetup setup) throws Config.BadConfigurationException {\n if (setup.getConfig().getOption(OPT_DFA_CACHE_DIR) != null) {\n this.cacheDir = new File(setup.getConfig().getOption(OPT_DFA_CACHE_DIR));\n }\n}\n"
"public static Set<WrappedStack> getRecipeInputs(IRecipe recipe) {\n List<WrappedStack> recipeInputs = new ArrayList<>();\n if (recipe instanceof ShapedRecipes) {\n recipeInputs.addAll(Arrays.asList(((ShapedRecipes) recipe).recipeItems).stream().filter(itemStack -> itemStack != null && !itemStack.isEmpty()...
"public List<String> getList(final Request request, final String key) {\n final List<String> result = new ArrayList<String>();\n final String compound = get(request, key);\n if (StringUtils.hasText(compound)) {\n String[] items = compound.split(\"String_Node_Str\");\n if (items != null) {\n ...
"protected void get(HttpServletRequest req) {\n this.cache = dataCached.get();\n this.lastModified = System.currentTimeMillis();\n}\n"
"public ExpressionDef internalVisitExpressionDefinition(cqlParser.ExpressionDefinitionContext ctx) {\n String identifier = parseString(ctx.identifier());\n ExpressionDef def = libraryBuilder.resolveExpressionRef(identifier);\n if (def == null) {\n libraryBuilder.pushExpressionDefinition(identifier);\n ...
"private void summariseResults(HashMap<Integer, FilterCandidates> filterCandidates, long runTime, PreprocessedPeakResult[] preprocessedPeakResults) {\n createTable();\n StoredDataStatistics distanceStats = new StoredDataStatistics();\n StoredDataStatistics depthStats = new StoredDataStatistics();\n createFi...
"public ScriptNode createContainer(String componentId, String folderType, Object permissions) {\n ScriptNode container = null;\n try {\n QName folderQName = (folderType == null) ? null : QName.createQName(folderType, serviceRegistry.getNamespaceService());\n final NodeRef containerNodeRef = this.sit...
"public static void act(Long id, Point2D pos) {\n if (pos == null) {\n return;\n }\n Unit target = getUnit(id);\n Group group = new Group(selection);\n for (Unit u : group) {\n u.group.remove(u);\n u.group = group;\n }\n if (target != null && target.faction != selection.get(0)....
"public void execute(ReportItemDesign item, IContentEmitter emitter) {\n BirtTimer timer = new BirtTimer();\n timer.start();\n TableItemDesign tableDesign = (TableItemDesign) item;\n tableInfo = new TABLEINFO(tableDesign);\n logger.log(Level.FINEST, \"String_Node_Str\");\n ITableContent tableContent =...
"public void characters(CharSequence characters) throws SAXException {\n if (null != characters) {\n String string = characters.toString();\n characters(string.toCharArray(), 0, string.length());\n }\n}\n"
"private void generateEEEvent(String name) {\n if ((null != name) && !\"String_Node_Str\".equals(name)) {\n eventQueue.add(new EndElementEvent(createQName(name), new StaxLocation(lexer)));\n }\n}\n"
"protected NodeRef getCustomModelRef(String uri) {\n if ((uri.equals(\"String_Node_Str\")) || (uri.equals(RecordsManagementModel.RM_CUSTOM_URI))) {\n return RM_CUSTOM_MODEL_NODE_REF;\n } else {\n List<NodeRef> modelRefs = getDictionaryRepositoryBootstrap().getModelRefs();\n for (NodeRef model...
"public void streamLineage(HttpRequest request, HttpResponder responder, String namespaceId, String stream, long start, long end, int levels) throws Exception {\n checkArguments(start, end, levels);\n Id.Stream streamId = Id.Stream.from(namespaceId, stream);\n Lineage lineage = lineageGenerator.computeLineage(...
"private void initializeGrid() {\n createIndicatorLabelColumn();\n createRowSelectColumn();\n for (int index = 0; index < _modelElementIndicators.length; index++) {\n ModelElementIndicator _modelElementIndicator = _modelElementIndicators[index];\n final GridColumn newCol = new GridColumn(this, SW...
"protected void setupPageBreak(PolicyNode node) {\n ReportItemDesign item = node.design;\n IStyle style = item.getStyle();\n if (style != null) {\n CSSValue masterPage = style.getProperty(IStyle.STYLE_MASTER_PAGE);\n CSSValue pageBreakBefore = style.getProperty(IStyle.STYLE_PAGE_BREAK_BEFORE);\n ...
"public void sendRosterRemove(ID userID) throws ECFException {\n try {\n if (!(userID instanceof XMPPID))\n throw new ECFException(\"String_Node_Str\");\n final XMPPID xmppID = (XMPPID) userID;\n getConnectionOrThrowIfNull().sendRosterRemove(xmppID.getUsernameAtHost());\n } catch (...
"public void start() throws ExecuteException, IOException {\n TaskController controller = new TaskController();\n DataGeneratorController dataController = new DataGeneratorController();\n String suiteID = generateSuiteID();\n Integer expID = 0;\n String[] datasetsIDV = config.getStringArray(COMMON.CONFIG...
"public BlockLocation[] getBlockLocations(String src, long start, long length) throws IOException, UnresolvedLinkException {\n LocatedBlocks blocks = getLocatedBlocks(src, start, length);\n return DFSUtil.locatedBlocks2Locations(blocks);\n}\n"
"public void run() {\n Iterator groupsIter = getServerStoredContactListRoot().subgroups();\n while (groupsIter.hasNext()) {\n ContactGroupSipImpl group = (ContactGroupSipImpl) groupsIter.next();\n Iterator contactsIter = group.contacts();\n while (contactsIter.hasNext()) {\n Contac...
"protected void doRun() {\n if (repositoryNode == null) {\n repositoryNode = getCurrentRepositoryNode();\n }\n if (isToolbar()) {\n if (repositoryNode != null && repositoryNode.getContentType() != getNodeType()) {\n repositoryNode = null;\n }\n if (repositoryNode == null)...
"private JsExpression mapUnaryVariant(Node unOp) throws JsParserException {\n switch(unOp.getIntDatum()) {\n case TokenStream.SUB:\n return mapPrefixOperation(JsUnaryOperator.NEG, unOp);\n case TokenStream.NOT:\n return mapPrefixOperation(JsUnaryOperator.NOT, unOp);\n case ...
"private void validateGeneratedValueAnnotation(final Class<?> clazz, Field field) {\n Table table = clazz.getAnnotation(Table.class);\n String schemaName = table.schema();\n if (schemaName != null && schemaName.indexOf(\"String_Node_Str\") > 0) {\n schemaName = schemaName.substring(0, schemaName.indexOf...
"private Consumer<SpecificRecordBase> getTaxonomyRecordConverter() {\n return record -> {\n TaxonRecord taxon = (TaxonRecord) record;\n List<RankedName> classifications = taxon.getClassification();\n if (classifications != null && !classifications.isEmpty()) {\n Map<Rank, String> map ...
"void endOfTreatment(BuildResult buildResult, int exitCode, boolean success) {\n buildResult.setEndDate(new Date());\n buildResult.setSuccess(success);\n buildResult.setExitCode(exitCode);\n try {\n String message = \"String_Node_Str\";\n if (success) {\n message = String.format(\"S...
"protected String getFileExtension(String fileName, String mimeType) {\n if (fileName != null) {\n String[] dotSplit = fileName.split(\"String_Node_Str\");\n if (dotSplit.length > 1) {\n return dotSplit[dotSplit.length - 1];\n }\n }\n return MimeTypeMapping.lookupExtension(mimeT...
"private static Map<String, List<XmlBindings>> processBindingFile(Map<String, List<XmlBindings>> originalBindings, Object bindingHandle, ClassLoader classLoader) {\n Map<String, List<XmlBindings>> bindingMap = originalBindings;\n XmlBindings binding = getXmlBindings(bindingHandle, classLoader, properties);\n i...
"public int addNode(HitEnum hitEnum, Map<String, Object> params) {\n int id = getHitEnumId(hitEnum);\n graph.append(\"String_Node_Str\").append(id).append(\"String_Node_Str\").append(hitEnum.getClass().getSimpleName()).append(\"String_Node_Str\").append(\"String_Node_Str\").append(hitEnum.position()).append(\"Str...
"static List<TaggedAlgorithm<List<DoubleSolution>>> configureAlgorithmList(List<Problem<DoubleSolution>> problemList) {\n List<TaggedAlgorithm<List<DoubleSolution>>> algorithms = new ArrayList<>();\n for (int run = 0; run < 4; run++) {\n for (int i = 0; i < problemList.size(); i++) {\n Algorithm...
"public static void main(String[] args) throws WikapidiaException, DaoException, ConfigurationException {\n Language lang = Language.getByLangCode(\"String_Node_Str\");\n Env env = new EnvBuilder().build();\n Configurator configurator = env.getConfigurator();\n LocalPageDao pdao = configurator.get(LocalPage...
"public void updateEntity() {\n ForgeDirection[] directions = new ForgeDirection[5];\n int i = 0;\n for (ForgeDirection direction : ForgeDirection.values()) {\n if (direction != myDir() && direction != ForgeDirection.UP) {\n directions[i] = direction;\n i++;\n }\n }\n ...
"public void deleteComment(TurboComment comment) {\n try {\n stopContentUpdate();\n ServiceManager.getInstance().deleteComment(comment.getId());\n removeCachedItem(comment.getId());\n commentsUpdater.startCommentsListUpdate();\n } catch (IOException e) {\n e.printStackTrace();\n...
"public void render(DriverRequest httpRequest, String content, Writer out) throws IOException, HttpErrorPage {\n LOG.debug(\"String_Node_Str\" + name + \"String_Node_Str\" + page);\n this.out = pOut;\n if (content == null) {\n if (params != null) {\n for (String value : params.values()) {\n ...
"public PIX24 readPIX24() throws IOException {\n PIX24 ret = new PIX24();\n ret.reserved = readUI8();\n ret.red = readUI8();\n ret.green = readUI8();\n ret.blue = readUI8();\n return ret;\n}\n"
"public void watch(GameEvent event, Game game) {\n if (event.getType() == GameEvent.EventType.MANA_PAYED) {\n if (event.getSourceId().equals(this.getSourceId()) && event.getFlag()) {\n Spell spell = game.getStack().getSpell(event.getTargetId());\n if (spell != null) {\n Ca...
"protected void populateItem(final ListItem<ConnConfProperty> item) {\n final ConnConfProperty property = item.getModelObject();\n final Label label = new Label(\"String_Node_Str\", property.getSchema().getDisplayName() == null || property.getSchema().getDisplayName().isEmpty() ? property.getSchema().getName() : ...
"private void generateMRCAChildOfs() {\n System.out.print(\"String_Node_Str\");\n long z = new Date().getTime();\n System.out.print(\"String_Node_Str\" + nestedChildren.size() + \"String_Node_Str\");\n Transaction tx = gdb.beginTx();\n for (int parentId = 0; parentId < bipart.size(); parentId++) {\n ...
"private CellArea createEmptyCell(CellArea upperCell, int columnId, RowArea row) {\n ICellContent cellContent = null;\n int rowSpan = 1;\n if (upperCell != null) {\n cellContent = (ICellContent) upperCell.getContent();\n rowSpan = upperCell.getRowSpan() - 1;\n }\n if (cellContent == null) {...
"public int[][] getAlignmentMatrix(int[] proteinIndices, List<Atom[]> structures) throws StructureException {\n if (proteinIndices.length != structures.size()) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n int[][] alignMat = new int[proteinIndices.length][];\n for (int prot = 0; ...
"public HashSet<Integer> getRegions(SAMRecord sam, int read1Ref) {\n int readLength = sam.getReadLength();\n int beginpos1 = sam.getAlignmentStart();\n HashSet<Integer> keys = new HashSet();\n if (read1Ref >= 0)\n Collections.addAll(keys, getKey(sam.getReferenceName(), beginpos1, endpos1));\n retu...
"public void decode(FacesContext context, UIComponent component) {\n Panel panel = (Panel) component;\n decodeBehaviors(context, panel);\n String clientId = panel.getClientId(context);\n String collapseStateId = clientId.replace(\"String_Node_Str\", \"String_Node_Str\") + \"String_Node_Str\";\n String su...
"public void clearCreateNewProjectError() {\n createNewProjectErrorMsg = null;\n if (!showErrorMessage()) {\n loginDialog.clearErrorMessage();\n }\n}\n"
"public void onFail(RetrofitError error) {\n stopRefresh();\n if (getListAdapter() == null || getListAdapter().getCount() == 0) {\n setEmpty();\n }\n ErrorHandler.onRetrofitError(getActivity(), \"String_Node_Str\", error);\n}\n"
"private void drawPoints(Renderer renderer, int gidx, RenderProps props, boolean selected) {\n Shading savedShading = renderer.setPointShading(props);\n renderer.setPointColoring(props, selected);\n PointStyle style = props.getPointStyle();\n switch(style) {\n case POINT:\n {\n ...
"private Position decodeAlternative(Channel channel, String sentence) {\n Matcher parser = pattern.matcher(sentence);\n if (!parser.matches()) {\n return null;\n }\n Position position = new Position();\n ExtendedInfoFormatter extendedInfo = new ExtendedInfoFormatter(\"String_Node_Str\");\n Inte...
"public void host(PlayNetGame png) throws Exception {\n ServerSocket serverSocket = null;\n try {\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n Socket clientSocket = null;\n while (clientSocket == null) {\n try {\n PlayGame.resetTimers();\n c...
"private void fetch() {\n while (nextEntry == null && iterator.hasNext()) {\n Map.Entry<Object, RICachedValue> entry = iterator.next();\n RICachedValue cachedValue = entry.getValue();\n K key = (K) RICache.this.keyConverter.fromInternal(entry.getKey());\n lockManager.lock(key);\n t...
"private static int indexOfEOS(byte[] data, int fromIndex, int encodingByte) {\n int terminationPos = indexOf(data, fromIndex, (byte) 0);\n if (encodingByte == ID3_TEXT_ENCODING_ISO_8859_1 || encodingByte == ID3_TEXT_ENCODING_UTF_8) {\n return terminationPos;\n }\n while (terminationPos < data.length...
"protected byte[] exportShortIDs(List<Download> downloads) {\n byte[] res = new byte[SHORT_ID_SIZE * downloads.size()];\n for (int i = 0; i < downloads.size(); i++) {\n Download download = downloads.get(i);\n downloadData download_data = (downloadData) download.getUserData(BuddyPluginTracker.class);...
"public void onClick(View v) {\n if ((selectedPassphrasetype != Passphrase.INDEX_PASSPHRASE_TYPE_NONE && selectedPassphrasetype != Passphrase.INDEX_PASSPHRASE_TYPE_PATTERN && passphraseEditText.getText().toString().equals(\"String_Node_Str\")) || selectedPassphrasetype == Passphrase.INDEX_PASSPHRASE_TYPE_PATTERN && ...
"public void open(Topic topic) throws TopicMapException, OpenTopicNotSupportedException {\n openedTopic = topic;\n if (currentDockable == null) {\n if (!dockedTopicPanels.isEmpty()) {\n currentDockable = dockedTopicPanels.keySet().iterator().next();\n }\n }\n if (currentDockable == ...
"protected void init() {\n String currentDataSet = getDataServiceProvider().getBoundDataSet();\n if (currentDataSet != null) {\n cmbDataSet.setItems(getDataServiceProvider().getAllDataSets());\n cmbDataSet.setText((currentDataSet == null) ? BLANK_DATASET : currentDataSet);\n useReportDataSet(...
"public static org.hl7.fhir.dstu3.model.ParameterDefinition convertParameterDefinition(org.hl7.fhir.r4.model.ParameterDefinition src) throws FHIRException {\n if (src == null)\n return null;\n org.hl7.fhir.dstu3.model.ParameterDefinition tgt = new org.hl7.fhir.dstu3.model.ParameterDefinition();\n copyEl...
"public void test() {\n ReadAllQuery query = new ReadAllQuery();\n query.setReferenceClass(Employee.class);\n ExpressionBuilder builder = new ExpressionBuilder();\n Expression exp = builder.get(\"String_Node_Str\").like(\"String_Node_Str\");\n query.setSelectionCriteria(exp);\n if (TYPE_SCROLL_INSENSI...
"public void setGhostMode() {\n head.setColor(Config.GHOSTMODE_COLOR);\n body.setColor(Config.GHOSTMODE_COLOR);\n}\n"
"public void ready(VirtualConnection inVC) {\n if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {\n Tr.entry(tc, \"String_Node_Str\" + this + \"String_Node_Str\" + inVC);\n }\n this.myTSC = (TCPConnectionContext) getDeviceLink().getChannelAccessor();\n HttpInboundServiceContextImpl sc...
"public boolean compositeObjectMarshal(XMLRecord record, Object object, XMLField field, AbstractSession session) {\n if (marshalNullRepresentation.equals(XMLNullRepresentationType.XSI_NIL)) {\n record.put(field, XMLRecord.NIL);\n return true;\n } else {\n if (getMarshalNullRepresentation().eq...
"public void bindView(View view, final Context context, Cursor cursor) {\n attachMessageRelativeLayout = (RelativeLayout) view.findViewById(R.id.attach_message_relativelayout);\n timeAttachMessageTextView = (TextView) view.findViewById(R.id.time_attach_message_textview);\n progressRelativeLayout = (RelativeLay...
"public void updateTags() {\n PathResolver pathResolver = projectOperations.getPathResolver();\n LogicalPath webappPath = WebProjectUtils.getWebappPath(projectOperations);\n OperationUtils.updateDirectoryContents(\"String_Node_Str\", pathResolver.getIdentifier(webappPath, \"String_Node_Str\"), fileManager, con...
"public TopicMap process(TopicMap tm, Logger logger) throws TopicMapException {\n log(\"String_Node_Str\");\n Topic fiLang = tm.getTopic(\"String_Node_Str\");\n Topic swLang = tm.getTopic(\"String_Node_Str\");\n Topic enLang = tm.getTopic(\"String_Node_Str\");\n Topic work = tm.getTopic(\"String_Node_Str...
"public static void main(String[] args) throws JMetalException {\n Problem problem;\n Algorithm algorithm;\n CrossoverOperator crossover;\n MutationOperator mutation;\n SelectionOperator selection;\n String problemName;\n if (args.length == 1) {\n problemName = args[0];\n } else {\n ...
"private Chart getConvertedChart(Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension) {\n Chart helperModel = currentChart.copyInstance();\n helperModel.eAdapters().addAll(currentChart.eAdapters());\n ChartCacheManager.getInstance().cacheSeries(ChartUIUtil.getAllOrthogonalS...
"public void onHeaderClick(StickyListHeadersListView l, View header, int itemPosition, long headerId, boolean currentlySticky) {\n Toast.makeText(getActivity(), \"String_Node_Str\" + headerId, Toast.LENGTH_SHORT).show();\n mStickyList.smoothScrollToPositionFromTop(mAdapter.getSectionStart(itemPosition) + mStickyL...
"public FPSCamera rotateY(float angle) {\n Quaternion tempQuat = Quaternion.REUSABLE_STACK.pop();\n Quaternion yRot = tempQuat.set(Vector3.AXIS_Y, angle);\n rotation.set(yRot.multiplySelf(rotation));\n Quaternion.REUSABLE_STACK.push(tempQuat);\n return this;\n}\n"
"private void writeBody(TypeRegistry registry, IndentedAppendable writer, List<RamlMediaType> mediaTypes, RamlEntity bodyType) throws IOException {\n Class type = (Class) bodyType.getType();\n writer.appendLine(\"String_Node_Str\" + type.getSimpleName());\n registry.registerType(type.getSimpleName(), bodyType,...
"public Convention getCon() {\n if (this.con != null) {\n return con;\n }\n Cursor c = this.mDatabase.query(CondroidDatabase.CON_TABLE, null, null, null, null, null);\n Convention co = new Convention();\n while (c.moveToNext()) {\n co.setCid(c.getInt(c.getColumnIndex(\"String_Node_Str\")));...
"public void of(CairoConfiguration configuration, Path path, CharSequence name, AppendMemory mem1, AppendMemory mem2, long columnTop) {\n this.columnTop = columnTop;\n try {\n this.writer.of(configuration, path, name);\n this.mem.of(mem1);\n } catch (CairoException e) {\n this.close();\n ...
"public void addMember(final Node n) {\n if (!isEditable()) {\n LOGGER.warn(\"String_Node_Str\" + n + \"String_Node_Str\" + this);\n return;\n }\n if (n == null || n.getTLModelObject() == null) {\n LOGGER.warn(\"String_Node_Str\" + n);\n return;\n }\n if (!(n.getTLModelObject(...
"public void testCreateBusFueledVehicle() {\n int prePersistBusCountBefore = 0;\n int postPersistBusCountBefore = 0;\n int prePersistBusListenerCountBefore = BusListener.PRE_PERSIST_COUNT;\n int postPersistBusListenerCountBefore = BusListener.POST_PERSIST_COUNT;\n int prePersistBusListener2CountBefore = ...
"public LineElement next() {\n if (current == null) {\n throw LAST_ELEMENT_REACHED;\n }\n LineElement next = current;\n current = current.next;\n return next;\n}\n"
"private static List<Class<?>> populateClasses(File objectDir, String packageName) {\n List<Class<?>> classes = new ArrayList<Class<?>>();\n File[] classFiles = objectDir.listFiles();\n for (File classFile : classFiles) {\n if (!classFile.isDirectory())\n classes.add(getClassFor(classFile, pa...
"public boolean hasUncachedDescendants(final BuildContext context) throws IOException {\n if (hasUncachedDescendants.isSet()) {\n return hasUncachedDescendants.asBoolean();\n }\n if (!isCached(context)) {\n hasUncachedDescendants = TriState.TRUE;\n } else {\n hasUncachedDescendants = Tr...
"private void updateNotificationIcons() {\n if (mNotificationsContainer.getVisibility() != View.VISIBLE) {\n mNotificationsContainer.setVisibility(View.VISIBLE);\n }\n NotificationHub notificationHub = NotificationHub.getInstance();\n int iconSize = getResources().getDimensionPixelSize(R.dimen.small_...
"private static String getMatchResultString(TournamentPlayer p1, TournamentPlayer p2, Match match) {\n MatchPlayer mp1 = match.getPlayer(p1.getPlayer().getId());\n MatchPlayer mp2 = match.getPlayer(p2.getPlayer().getId());\n StringBuilder matchResult = new StringBuilder();\n matchResult.append(p2.getPlayer(...
"public void drawHighlighted(Canvas c, Highlight[] indices) {\n int setCount = mChart.getBarData().getDataSetCount();\n for (int i = 0; i < indices.length; i++) {\n Highlight h = indices[i];\n int index = h.getXIndex();\n int dataSetIndex = h.getDataSetIndex();\n BarDataSet set = mChar...
"private PathFragment checkForWorkspace(PathFragment path) {\n sawWorkspaceName = sawWorkspaceName || path.getSegment(0).equals(workspaceName.getPathString());\n return path;\n}\n"
"public void flowStepFinished(String executionId, IComponent component, Throwable error, boolean cancelled) {\n super.flowStepFinished(executionId, component, error, cancelled);\n ExecutionStep step = steps.get(component.getFlowStep().getId());\n if (step != null) {\n step.setEndTime(new Date());\n ...
"public Object evaluate(ScriptContext scriptContext, ICompiledScript compiledScript) throws BirtException {\n assert (compiledScript instanceof CompiledJavascript);\n try {\n Script script = ((CompiledJavascript) compiledScript).getCompiledScript();\n Object value = script.exec(context, getJSScope(s...
"private JSONObject getOembedData(URL url) {\n BufferedReader bufferedReader;\n try {\n bufferedReader = new BufferedReader(new InputStreamReader(url.openStream()));\n StringBuffer stringBuffer = new StringBuffer();\n String eachLine = null;\n while ((eachLine = bufferedReader.readLine...
"public static ICubeQueryDefinition load(String queryResultID, DataEngineContext context) throws DataException, IOException {\n DataInputStream dis = null;\n IDocArchiveReader reader = context.getDocReader();\n int version;\n if (context.hasInStream(null, null, DataEngineContext.VERSION_INFO_STREAM) == fals...