content
stringlengths
40
137k
"private void sendBasicHelpPage(CommandSender sender, String page) {\n int pageNum = Integer.valueOf(page);\n switch(pageNum) {\n case 1:\n sender.sendMessage(ChatColor.GOLD + \"String_Node_Str\" + Citizens.getVersion() + \"String_Node_Str\");\n sender.sendMessage(\"String_Node_Str\")...
"private String getPreferNaturalLanguage(HttpServletRequest request) {\n final String DEFAULT_LANGUAGE = \"String_Node_Str\";\n final String[] supportedLanguages = { \"String_Node_Str\", \"String_Node_Str\" };\n Locale browserLocale = getBrowserLocale(request);\n for (String supportedLanguage : supportedLan...
"private void setupConfig(final Configuration conf, final Job job) throws DataProviderException {\n try {\n zoomLevel = context.getZoomlevel();\n if (zoomLevel != 0) {\n conf.set(MrGeoAccumuloConstants.MRGEO_ACC_KEY_ZOOMLEVEL, Integer.toString(zoomLevel));\n }\n if (doBulk || f...
"public void enableInteraction(InteractionEvent ie) throws ChartException {\n if (_iun == null) {\n logger.log(ILogger.WARNING, Messages.getString(\"String_Node_Str\", getLocale()));\n return;\n }\n Trigger[] triggers = ie.getTriggers();\n if (triggers == null) {\n return;\n }\n f...
"Person init(int age, int height, int bound) {\n\tif (age < 0 || height < 0)\n\t\treturn null;\n\treturn new Person(age, Math.max(height - bound, 0.0));\n}\n"
"public synchronized boolean ticketsFound() {\n if (currentShowclixEventID > lastShowclixEventID) {\n return ShowclixReader.isPaxPage(currentShowclixEventID);\n } else {\n return false;\n }\n}\n"
"protected void start(boolean isFirst) {\n context.getPageBufferManager().startContainer(content, isFirst, tableEmitter, true);\n}\n"
"public static void read(int pos) {\n if (Dungeon.level instanceof DeadEndLevel) {\n GameScene.show(new WndMessage(TXT_DEAD_END));\n } else {\n int index = Dungeon.depth - 1;\n if (index < TIPS.length) {\n GameScene.show(new WndMessage(TIPS[index]));\n if (index >= 21) {...
"private boolean ccw(Point a, Point b, Point c) {\n double dx1 = b.x - a.x;\n double dx2 = c.x - b.x;\n double dy1 = b.y - a.y;\n double dy2 = c.y - b.y;\n double gradient1 = dy2 * dx1;\n double gradient2 = dy1 * dx2;\n if (ChartUtil.mathEqual(gradient1, gradient2)) {\n return (dx1 * dx2 >= ...
"public Collection<Entity> getEntities(String token, EntityFormatConfiguration config) {\n Query query = new Vocabulary.Query.Builder(token).build();\n List<Concept> terms = vocabulary.getConceptsFromTerm(query);\n Set<Entity> entities = newHashSet();\n for (Concept term : terms) {\n if (shouldAnnota...
"public void checkValidity(String paramId, Object value, ElementCache elementCache) throws InPUTException {\n if (isOfValidPlainType(value)) {\n checkPlainValueValidity(paramId, value, elementCache);\n } else if (value.getClass().isArray()) {\n checkValidArrayType(paramId, value, elementCache);\n ...
"public boolean hasGameEnded() {\n if (hasThreeSameHorizontalCells() || hasThreeSameVerticalCells() || hasThreeSameDiagonalCells()) {\n winner.setValue(currentPlayer);\n return true;\n }\n if (isBoardFull()) {\n winner.setValue(null);\n return true;\n }\n return false;\n}\n"
"public void uploadFile(String urlString, File localFile) throws Exception {\n HttpURLConnection conn = getHTTPConnection(urlString, \"String_Node_Str\");\n OutputStream out = null;\n InputStream in = null;\n BufferedReader br = null;\n try {\n out = conn.getOutputStream();\n in = new FileI...
"public void testComparison() throws SAXException, IOException, TransformerException {\n String expected = \"String_Node_Str\";\n String actual = expected;\n HtmlHelper.assertSameHtml(actual, expected);\n actual = \"String_Node_Str\";\n HtmlHelper.assertSameHtml(expected, actual);\n expected = \"Strin...
"private void putEntities() {\n PartSecurity sec = new PartSecurity();\n sec.setId(\"String_Node_Str\");\n sec.setSecurityType(\"String_Node_Str\");\n mgr.put(sec);\n PartSecurity sec2 = new PartSecurity();\n sec2.setId(\"String_Node_Str\");\n sec2.setSecurityType(\"String_Node_Str\");\n mgr.put...
"public static String joinAndUrlEncode(Collection<String> list) throws UnsupportedEncodingException {\n if (list == null || list.isEmpty()) {\n return \"String_Node_Str\";\n }\n return encode(Joiner.on(\"String_Node_Str\").join(list));\n}\n"
"private void importRequirements(IOseeBranch branch, String rootArtifactName, IArtifactType requirementType, String filename) throws Exception {\n if (DEBUG) {\n OseeLog.logf(Activator.class, Level.INFO, \"String_Node_Str\", folderName, branch);\n }\n Artifact systemReq = ArtifactQuery.getArtifactFromTy...
"public void run() {\n if (mVideoDecoderTrack >= 0) {\n while (mCodecFlag && !videoDecodeStep()) ;\n mGLThreadFlag = false;\n try {\n mSem.release();\n mGLThread.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n if ...
"public byte getTeamId() {\n return playerAndTeamid;\n}\n"
"private Filter createFilter() {\n ColumnSelector leftSelector = new ColumnSelector(new ColumnName(CATALOG_CONSTANT, TABLE1_CONSTANT.getName(), COLUMN1_CONSTANT));\n StringSelector rightSelector = new StringSelector(DATA_CONSTANT);\n Relation relation = new Relation(leftSelector, Operator.EQ, rightSelector);\n...
"private JScrollPane content(List<MetaInfo> infoList, String syntax) {\n try {\n Object[] columnNames = { \"String_Node_Str\" };\n List<String[]> values = new ArrayList<String[]>();\n for (MetaInfo info : infoList) {\n if (!Strings.isBlank(info.getName())) {\n values.ad...
"public String createFileTree(String tree, String type, String fileName, String width, String height) {\n Objects.requireNonNull(fileName);\n if (!fileName.endsWith(\"String_Node_Str\") && !\"String_Node_Str\".equalsIgnoreCase(type))\n return;\n if (\"String_Node_Str\".equalsIgnoreCase(type)) {\n ...
"protected void drawLinear(Canvas c, LineDataSet dataSet, List<Entry> entries) {\n int dataSetIndex = mChart.getLineData().getIndexOfDataSet(dataSet);\n Transformer trans = mChart.getTransformer(dataSet.getAxisDependency());\n float phaseX = mAnimator.getPhaseX();\n float phaseY = mAnimator.getPhaseY();\n ...
"public void handleFree(DownloadLink downloadLink) throws Exception, PluginException {\n requestFileInformation(downloadLink);\n br.setFollowRedirects(false);\n String finallink = br.getRegex(DLLINKREGEX).getMatch(0);\n if (finallink == null) {\n logger.warning(\"String_Node_Str\");\n throw ne...
"public static void main(String[] args) {\n WebGenerator generator = new WebGenerator();\n String fileContents = \"String_Node_Str\";\n String previewContents = \"String_Node_Str\";\n int numSurveys = 0;\n String[] lines;\n List<String> toQuestion = new ArrayList<String>();\n ArrayList<String[]> al...
"private String buildXPathStatement(String relPath, String value, AuthorizableType type, boolean exact) {\n StringBuilder stmt = new StringBuilder();\n String searchRoot = namePathMapper.getJcrPath(QueryUtil.getSearchRoot(type, config));\n if (!\"String_Node_Str\".equals(searchRoot)) {\n stmt.append(sea...
"public static String getDefaultPrefixes() {\n return Parser.createPrefix(\"String_Node_Str\", Omn.getURI()) + Parser.createPrefix(\"String_Node_Str\", Omn_lifecycle.getURI()) + Parser.createPrefix(\"String_Node_Str\", RDF.getURI()) + Parser.createPrefix(\"String_Node_Str\", RDFS.getURI()) + Parser.createPrefix(\"St...
"public void invalidId() {\n verifySemanticException(QualifierType.ID, \"String_Node_Str\");\n}\n"
"private void informListenersForNewBlock(final Block block, final NewBlockType newBlockType, final List<Sha256Hash> filteredTxHashList, final Map<Sha256Hash, Transaction> filteredTxn, final StoredBlock newStoredBlock) throws VerificationException {\n boolean first = true;\n Set<Sha256Hash> falsePositives = Sets.n...
"public IType resolve(MarkerList markers, IContext context) {\n if (this.theClass != null) {\n return this;\n }\n IClass iclass;\n IType t = resolvePrimitive(this.name);\n if (t != null) {\n if (this.arrayDimensions == 0) {\n return t;\n }\n return t.getArrayType(th...
"public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final StringNonce other = (StringNonce) obj;\n if (this.nonce == null || !this.nonce.equals(other.getNonce())) {\n return false;\n }\n re...
"public AvailableStatus requestFileInformation(DownloadLink downloadLink) throws PluginException {\n this.setBrowserExclusive();\n br.getHeaders().put(\"String_Node_Str\", \"String_Node_Str\");\n String basicauth = HTACCESSController.getInstance().get(downloadLink.getDownloadURL());\n if (basicauth == null)...
"public void close() throws IOException {\n inputBuffer.clear();\n for (final String path : createdFiles) {\n log.info(\"String_Node_Str\", path);\n if (!new File(path).delete()) {\n log.warn(\"String_Node_Str\", path);\n }\n }\n}\n"
"public IStatement rotateLeft() {\n EnumFacing face = direction.getAxis() == Axis.Y ? direction : direction.rotateY();\n return BuildCraftTransport.actionPipeDirection[face.ordinal()];\n}\n"
"public void testShutdown() throws Exception {\n Executor executor = ExecutorsHelper.newProcessingQueue(\"String_Node_Str\");\n SSLContext context = SSLContext.getInstance(\"String_Node_Str\");\n context.init(null, null, null);\n final SSLReadWriteChannel clientChannel = new SSLReadWriteChannel(context, exe...
"public void refreshMetadata() throws javax.xml.bind.JAXBException {\n JAXBContextState newState = newContextState();\n if (newState != null) {\n contextState = newState;\n }\n}\n"
"private static BufferedImage imageFromTriangles(List<Triangle> tris, int width, int height, Matrix3 transform, Color color) {\n BufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n if (bgColor != null) {\n for (int i = 0; i < width; i++) {\n for (int j = 0; j < h...
"public List<Submission> parse(User user, String url) {\n String cookie = (user == null) ? null : user.getCookie();\n List<Submission> submissions = new LinkedList<Submission>();\n Response r = restClient.get(url, cookie);\n if (r == null) {\n System.err.println(\"String_Node_Str\");\n return ...
"public boolean hasNext() {\n return cur < end;\n}\n"
"public static <T> CompletableFuture<Stream<T>> sequence(Stream<CompletableFuture<T>> futures) {\n List<CompletableFuture<T>> futureList = futures.filter(f -> f != null).collect(Collectors.toList());\n CompletableFuture<Void> allDoneFuture = CompletableFuture.allOf(futureList.toArray(new CompletableFuture[futureL...
"private Node buildNode(String label, String id) {\n Node newNode = Lookup.getDefault().lookup(GraphController.class).getModel().factory().newNode();\n getGraph().setId(newNode, id);\n newNode.getNodeData().setLabel(label);\n return newNode;\n}\n"
"protected Float convertObjectToFloat(Object sourceObject) throws ConversionException {\n if (sourceObject instanceof String) {\n if (XMLConstants.POSITIVE_INFINITY.equals(sourceObject)) {\n return new Float(Float.POSITIVE_INFINITY);\n } else if (XMLConstants.NEGATIVE_INFINITY.equals(sourceO...
"public void T_setInteger_2() throws IOException {\n IColumn column = new PrimitiveColumn(ColumnType.INTEGER, \"String_Node_Str\");\n column.add(ColumnType.INTEGER, new IntegerObj(100), 0);\n column.add(ColumnType.INTEGER, new IntegerObj(200), 1);\n column.add(ColumnType.INTEGER, new IntegerObj(255), 5);\n ...
"public void performApply(ILaunchConfigurationWorkingCopy configuration) {\n configuration.setAttribute(ATTR_REPORT_FILE_NAME, fMainText.getText());\n configuration.setAttribute(ATTR_ENGINE_HOME, fEngineHome.getText());\n configuration.setAttribute(ATTR_TEMP_FOLDER, fTempFolder.getText());\n configuration.s...
"public CommandResult execute(GetReportElements cmd, User user) throws CommandException {\n final Query reportElementsQuery = em.createQuery(\"String_Node_Str\");\n final Query reportListElementsQuery = em.createQuery(\"String_Node_Str\");\n List<ReportElement> reportElements = reportElementsQuery.getResultLis...
"public HostVirtualSwitch getVirtualSwitchByName(String vSwitchName) throws Exception {\n List<HostVirtualSwitch> vSwitchs = getHostVirtualSwitch();\n if (vSwitchs != null) {\n for (HostVirtualSwitch vSwitch : vSwitchs) {\n if (vSwitch.getName().equals(vSwitchName))\n return vSwit...
"public void forwardAndBackward(FgNode parent, Messages[] msgs, Messages[] msgsAdj, boolean isForward) {\n Algebra s = msgs[0].message.getAlgebra();\n Tensor tmTrueIn = getMsgs(parent, msgs, LinkVar.TRUE, CUR_MSG, IN_MSG, s);\n Tensor tmFalseIn = getMsgs(parent, msgs, LinkVar.FALSE, CUR_MSG, IN_MSG, s);\n T...
"public void onErrorResponse(VolleyError error) {\n updateRefreshMap(StatsViewType.VISITORS_AND_VIEWS, -1);\n AppLog.e(T.STATS, \"String_Node_Str\");\n}\n"
"public void layTile(MapHex hex, TileI tile, int orientation) {\n if (!(round instanceof OperatingRound))\n return;\n oRound = (OperatingRound) round;\n if (tile == null) {\n oRound.skip(orCompName);\n } else {\n int cost = oRound.getLastTileLayCost();\n tileCost[orCompIndex].set...
"public void formatTo(Formatter formatter, int flags, int width, int precision) {\n final boolean rereadable = (FormattableFlags.ALTERNATE & flags) == 0;\n final String stringToWrite;\n if (rereadable) {\n final PossibleSymbolTypes possible = Lexer.determine_possible_symbol_types_for_string(getValue());...
"private void modifySourceMethod(MultiTextEdit root) {\n ASTRewrite sourceRewriter = ASTRewrite.create(sourceTypeDeclaration.getAST());\n AST ast = sourceMethodDeclaration.getAST();\n MethodInvocation extractedMethodInvocation = ast.newMethodInvocation();\n sourceRewriter.set(extractedMethodInvocation, Meth...
"public static void visitControllerActions(final Project project, ControllerActionVisitor visitor, String prefix) {\n Collection<PhpClass> allSubclasses = new HashSet<PhpClass>() {\n {\n addAll(PhpIndex.getInstance(project).getAllSubclasses(\"String_Node_Str\"));\n addAll(PhpIndex.getIns...
"public void run() {\n try {\n getContext().write(STREAM, ByteBuffer.wrap(Bytes.toBytes(\"String_Node_Str\")));\n getContext().write(STREAM, new StreamEventData(ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\"), ByteBuffer.wrap(Bytes.toBytes(\"String_Node_Str\"))));\n File tempDir = File...
"public void loadProject(File projectFile) throws IOException {\n File oldProjectFile = this.projectFile;\n this.projectFile = projectFile;\n if (checkProjectStructure()) {\n try {\n DinamicClassPath.addFile(projectFile.getAbsolutePath() + \"String_Node_Str\");\n DinamicClassPath.a...
"public boolean isMandatory() {\n return isBooleanAsCharacter(mandatory);\n}\n"
"private void addBrowseJumpNavigation(Division div, BrowseInfo info, BrowseParams params) throws WingException {\n String type = info.getBrowseIndex().getName();\n Map<String, String> queryParams = new HashMap<String, String>();\n queryParams.putAll(params.getCommonParameters());\n queryParams.putAll(params...
"private void testUniprot(String uniprotID) throws Exception {\n ProteinSequence seq = getUniprot(uniprotID);\n AminoAcidCompoundSet compoundSet = AminoAcidCompoundSet.getAminoAcidCompoundSet();\n assertTrue(compoundSet.isValidSequence(seq));\n Jronn.getDisorderScores(seq);\n}\n"
"private static String getNewVariableNameFromMethod(final MethodCall methodCall) {\n String variableName;\n final IMethodName invokedMethod = methodCall.getInvokedMethod();\n if (invokedMethod.isInit()) {\n variableName = String.format(\"String_Node_Str\", getTypeIdentifier(invokedMethod.getDeclaringTyp...
"public TableCell<Background.Category, Boolean> call(TableColumn<Background.Category, Boolean> p) {\n return new CategoryButtonCell(categoryList, bservice, windowManager.getStage());\n}\n"
"private void bindTexture(GL gl, Texture texture, float xmin, float xmax, float ymin, float ymax) {\n texture.enable(gl);\n texture.bind(gl);\n TextureCoords coords = texture.getImageTexCoords();\n gl.getGL2().glBegin(GL2.GL_POLYGON);\n gl.getGL2().glTexCoord2f(coords.left(), coords.top());\n gl.getGL...
"public void fireRuningItemChanged(boolean status) {\n currentEditor.setRunActionButtonState(status);\n if (status) {\n refresh();\n }\n}\n"
"public final void seek(final long position) throws IOException {\n long p = position - bufferOffset;\n if (p >= 0 && p <= buffer.limit()) {\n buffer.position((int) p);\n clearBitOffset();\n } else if (channel instanceof SeekableByteChannel) {\n flush();\n ((SeekableByteChannel) cha...
"private void initFile(File file, String rootName) throws IOException {\n Document doc = new Document();\n doc.setRootElement(new Element(rootName));\n file.setWritable(true);\n FileWriter writer = new FileWriter(file);\n RandomAccessFile f = new RandomAccessFile(file, \"String_Node_Str\");\n f.getCha...
"private void refreshUpdateVersionViews() {\n boolean isUpdateAvailable = PluginUtils.isUpdateAvailable(mPlugin, mWPOrgPlugin);\n if (isUpdateAvailable && !mIsUpdatingPlugin) {\n mUpdateTextView.setVisibility(View.VISIBLE);\n } else {\n mUpdateTextView.setVisibility(View.GONE);\n }\n if (mI...
"private TwillPreparer prepareExploreContainer(TwillPreparer preparer) {\n if (!isExploreEnabled) {\n return preparer;\n }\n try {\n Set<File> jars = ExploreServiceUtils.traceExploreDependencies();\n for (File jarFile : jars) {\n LOG.trace(\"String_Node_Str\", jarFile.getName())...
"public void render(final StringBuilder sb, Entity<?> en) {\n if (null != en) {\n EntityField ef = en.getField(name);\n sb.append(null != ef ? ef.getColumnName() : name);\n } else\n sb.append(name);\n if (\"String_Node_Str\".equals(op)) {\n sb.append(\"String_Node_Str\");\n i...
"public void onClick(DialogInterface dialog, int which) {\n boolean error = false;\n if (textViewNodeId.getText().toString().matches(\"String_Node_Str\")) {\n Toast.makeText(mContext, getString(R.string.add_error_missing_nodeID), Toast.LENGTH_SHORT).show();\n error = true;\n } else if (textViewSi...
"public void endNormalContainer() {\n XlsContainer container = getCurrentContainer();\n if (container.isEmpty()) {\n Data data = createData(EMPTY, container.getStyle(), Data.STRING);\n data.setSizeInfo(container.getSizeInfo());\n addData(data);\n }\n engine.applyContainerBottomStyle();\...
"protected static boolean hasUniqueCatchBlock(SSAAbstractInvokeInstruction call, IR ir) {\n ISSABasicBlock[] bb = ir.getBasicBlocksForCall(call.getCallSite());\n if (bb.length == 1) {\n Iterator<ISSABasicBlock> it = ir.getControlFlowGraph().getExceptionalSuccessors(bb[0]).iterator();\n if (it.hasNex...
"public CharSequence getFlyweightStrB(int col) {\n long readAddress = addressOf(col);\n final int len = Unsafe.getUnsafe().getInt(readAddress);\n if (len < 0)\n return null;\n return Unsafe.arrayGet(csB, col).of(readAddress + 4, readAddress + 4 + len * 2);\n}\n"
"private void updateFutures(GL gl) {\n List<Future<Object[]>> remove1 = new ArrayList<Future<Object[]>>();\n for (Future<Object[]> f : futures) {\n if (f.isDone() || f.isCancelled()) {\n remove1.add(f);\n try {\n TileInfo o = f.get();\n submitedTiles.remo...
"public Set<UUID> getPlayerDefenders(Game game) {\n Set<UUID> playerDefenders = new HashSet<UUID>();\n for (CombatGroup group : groups) {\n if (group.defenderIsPlaneswalker) {\n Permanent permanent = game.getPermanent(group.getDefenderId());\n if (permanent != null) {\n ...
"private ClassDef parse(InputStream is) throws IOException {\n DocClassVisitor visitor = new DocClassVisitor(showDeprecated);\n new ClassReader(is).accept(visitor, 0);\n return visitor.isConfigured() ? visitor.getClassDef() : null;\n}\n"
"public final Address allocCopy(ObjectReference original, int bytes, int align, int offset, int allocator) throws InlinePragma {\n if (Assert.VERIFY_ASSERTIONS) {\n Assert._assert(bytes <= Plan.LOS_SIZE_THRESHOLD);\n Assert._assert(allocator == GenMS.ALLOC_MATURE_MINORGC || allocator == GenMS.ALLOC_MAT...
"public static Date parse(String source) throws BirtException, ParseException {\n if (source == null || source.trim().length() == 0) {\n return null;\n }\n Date resultDate = null;\n source = cleanDate(source);\n Object simpleDateFormatter = DateFormatFactory.getPatternInstance(PatternKey.getPatter...
"public X set(String attributeName, Object value) {\n JpaUtils.getBasicAttributePath(getMetamodel(), entityType, attributeName);\n String attributeValue = setAttributes.get(attributeName);\n if (attributeValue != null) {\n throw new IllegalArgumentException(\"String_Node_Str\" + attributeName + \"String...
"public void print() {\n if (columns.size() == 0) {\n DLogger.warning(\"String_Node_Str\");\n return;\n }\n int columnCount = columns.size();\n int columnWidth = (Constants.COLS - columnCount + 1) / columnCount;\n int rowCount = columns.get(0).rows.size();\n StringBuilder builder = new S...
"public String getHoverInfo(ITextViewer textViewer, IRegion hoverRegion) {\n IAnnotationModel model = getAnnotationModel(sourceViewer);\n if (model == null) {\n return null;\n }\n Iterator<?> e = model.getAnnotationIterator();\n while (e.hasNext()) {\n Annotation a = (Annotation) e.next();\...
"private void lexTagBody(String string, List<Token> tokens) {\n while (pos < string.length()) {\n Matcher matcher = closeTagRe.matcher(string.substring(pos));\n if (matcher.find()) {\n pos += matcher.group(0).length();\n mode = LexerMode.IN_RAW;\n return;\n } els...
"public void testUpdateImbalance() throws Exception {\n MigratableHandler selector1Handler1 = mock(MigratableHandler.class);\n when(selector1Handler1.getEventCount()).thenReturn(0l).thenReturn(100l);\n when(selector1Handler1.getOwner()).thenReturn(selector1);\n loadTracker.addHandler(selector1Handler1);\n ...
"public Graph transform(Graph graph) {\n Node root = selectRoot(graph, rootSelector);\n Node tempNodeFromList;\n Integer[] edges;\n Node[] nodes = graph.getNodes();\n int depth;\n LinkedList<Node> todoList = new LinkedList<Node>();\n LinkedList<Integer> linkedNodes = new LinkedList<Integer>();\n ...
"private void compileTopLevel(GlobalContext context, LocatedModule mainModule) throws UserException, UndefinedFunctionException, ModuleLoadException {\n Pair<ParsedModule, Boolean> loadedMainModule = modules.loadIfNeeded(context, mainModule);\n assert (!loadedMainModule.val2);\n varAnalyzer.walkTopLevel(contex...
"private void updateROMResultSets(OdaDataSetHandle setHandle, List structList) throws SemanticException {\n List columns = new ArrayList();\n List hints = new ArrayList();\n ResultSetColumnInfo.updateResultSetColumnList(structList, columns, hints);\n PropertyHandle propHandle = setHandle.getPropertyHandle(O...
"public DataStore initialize(Map<String, Object> dsInfos) {\n Long clusterId = (Long) dsInfos.get(\"String_Node_Str\");\n Long podId = (Long) dsInfos.get(\"String_Node_Str\");\n Long zoneId = (Long) dsInfos.get(\"String_Node_Str\");\n String url = (String) dsInfos.get(\"String_Node_Str\");\n String provi...
"public void actionPerformed(ActionEvent arg0) {\n final String choice = (String) ai.getSelectedItem();\n File file = new File(\"String_Node_Str\" + choice);\n if (ai.getSelectedItem() == null) {\n JOptionPane.showMessageDialog(null, \"String_Node_Str\", \"String_Node_Str\", JOptionPane.ERROR_MESSAGE);\...
"public List<String> getExpressionFilter(IExternalData nodeData) {\n List<String> ret = new ArrayList<String>();\n if (nodeData instanceof ExternalMapperData) {\n ExternalMapperData mapperData = (ExternalMapperData) nodeData;\n List<ExternalMapperTable> mapperTables = mapperData.getInputTables();\n ...
"public static void main(String[] args) {\n JarClassLoader serverClassLoader = createClassLoader();\n Thread.currentThread().setContextClassLoader(serverClassLoader);\n ProtectionDomain domain = Main.class.getProtectionDomain();\n URL location = domain.getCodeSource().getLocation();\n try {\n invo...
"private void changeScreenState(boolean screenState) {\n if (mPowerManager == null)\n mPowerManager = (PowerManager) getActivity().getSystemService(Context.POWER_SERVICE);\n boolean modeChange = false;\n String state = (screenState == true) ? \"String_Node_Str\" : \"String_Node_Str\";\n Log.d(TAG, \"...
"public List<FileInfo> getFileInfos() {\n if (file_infos == null) {\n file_infos = new LinkedList<FileInfos>();\n }\n return file_infos;\n}\n"
"public void run() {\n try {\n float centroidX = 0;\n float centroidY = 0;\n int len = 0;\n float sizes = 0;\n float r = 0;\n float g = 0;\n float b = 0;\n Node group = graph.groupNodes(newGroup.toArray(new Node[0]));\n group.getNodeData().setLabel(\"Str...
"public View getView(int position, View convertView, ViewGroup parent) {\n if (convertView == null) {\n convertView = dialogInflater.inflate(android.R.layout.simple_list_item_2, parent, false);\n }\n final ValuesDelta structuredName = this.getItem(position);\n final String displayName = structuredNam...
"private void handleElementProp(ElementPropertyInfo<T, C> ep, ExplicitGroup compositor) {\n QName ename = ep.getXmlName();\n Occurs occurs = null;\n if (ep.isValueList()) {\n TypeRef<T, C> t = ep.getTypes().get(0);\n LocalElement e = compositor.element();\n QName tn = t.getTagName();\n ...
"private void initComponents(boolean isPlayback) {\n inCheck = new JLabel(\"String_Node_Str\");\n inCheck.setHorizontalTextPosition(inCheck.CENTER);\n inCheck.setForeground(Color.RED);\n undoItem = new JButton(\"String_Node_Str\");\n undoItem.addActionListener(new ActionListener() {\n public void ...
"public void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n setContentView(R.layout.filelist);\n getListView().setOnCreateContextMenuListener(this);\n getListView().setEmptyView(findViewById(R.id.empty));\n mDirectoryButtons = (LinearLayout) findViewById(R.id.directory_buttons);\n mEditFilename...
"public static double similarity(String s1, String s2) {\n if (s1.equals(s2)) {\n return 1.0;\n }\n return (longerLength - editDistance(longer, shorter)) / (double) longerLength;\n}\n"
"public String resolveNamespacePrefix(Node contextNode, String namespacePrefix) throws XMLPlatformException {\n if (null == namespacePrefix) {\n if (null == contextNode.getPrefix()) {\n return contextNode.getNamespaceURI();\n }\n } else if (namespacePrefix.equals(contextNode.getPrefix()))...
"public void sendInstantMessage(Contact to, Message message) throws IllegalStateException, IllegalArgumentException {\n if (!(to instanceof ContactSipImpl))\n throw new IllegalArgumentException(\"String_Node_Str\" + to);\n assertConnected();\n if (to.getPresenceStatus().equals(sipStatusEnum.getStatus(Si...
"public void init(Game game) {\n target = game.newBombTarget(game.getGameType().getDefender(), position);\n if (rotated) {\n target.rotate90();\n }\n}\n"
"public int[] getRowBreaks() {\n if (rowBreaks == null) {\n return new int[0];\n }\n int[] arr = new int[rowBreaks.size()];\n Iterator<Integer> iter = rowBreaks.iterator();\n for (int i = 0; i < arr.length; i++) {\n arr[i] = iter.next();\n }\n return arr;\n}\n"
"public void createPartControl(Composite parent) {\n super.createPartControl(parent);\n createGLCanvas();\n view = new GLBucket(glCanvas, parentComposite, serializedView.getViewFrustum());\n initializeView();\n createPartControlGL();\n}\n"