content
stringlengths
40
137k
"public Object doWork() throws Exception {\n String avmPath = buildAVMPath(store, path);\n try {\n String[] parts = AVMNodeConverter.SplitBase(avmPath);\n String[] dirs = parts[0].split(\"String_Node_Str\");\n String parentPath = dirs[0] + \"String_Node_Str\" + dirs[1];\n int index = 2...
"private void run() throws Exception {\n String mapFilepath = commandLine.getOptionValue(\"String_Node_Str\");\n File mapFile = new File(mapFilepath);\n checkExistsAndCanReadSystemExit(mapFile);\n System.err.println(\"String_Node_Str\" + mapFile.getAbsolutePath() + \"String_Node_Str\");\n PrintStream out...
"private void upgradeVmwareLabels(Connection conn) {\n String newLabel;\n String trafficType = null;\n String trafficTypeVswitchParam;\n String trafficTypeVswitchParamValue;\n try (PreparedStatement pstmt = conn.prepareStatement(\"String_Node_Str\")) {\n try (ResultSet rsParams = pstmt.executeQuer...
"public long stepInstructions(int count) throws EmulationException {\n if (isRunning()) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n setRunning(true);\n while (count-- > 0 && isRunning()) {\n int pc = emulateOP(-1);\n if (pc >= 0) {\n if (execCounter != nul...
"public void setTime(int hours, int minutes) {\n checkParams(hours, minutes);\n clockDrawable.animate(new ClockTime(hours, minutes));\n}\n"
"public static <A, B> boolean areHopcroftKarpEquivalent(SFA<A, B> aut1, SFA<A, B> aut2, BooleanAlgebra<A, B> ba) {\n DisjointSet ds = new DisjointSet();\n int offset = aut1.stateCount();\n ds.mergeSets(aut1.initialState, aut2.initialState + offset);\n LinkedList<Pair<Integer, Integer>> toVisit = new LinkedL...
"public void setRepeatColumnHeader(boolean repeat) {\n if (runningState == RunningState.CREATE) {\n content.setHeaderRepeat(repeat);\n } else if (runningState == RunningState.RENDER) {\n throw new UnsupportedOperationException(\"String_Node_Str\");\n } else {\n throw new UnsupportedOperati...
"private TSpanChunk toSpanChunk(TSpan span) {\n final TSpanChunk spanChunk = new TSpanChunk();\n spanChunk.setSpanEventList(Collections.<TSpanEvent>emptyList());\n spanChunk.setSpanEventListIsSet(true);\n spanChunk.setAgentId(span.getAgentId());\n spanChunk.setAgentIdIsSet(true);\n spanChunk.setApplic...
"public void actionPerformed(ActionEvent ev) {\n String script = userDefinition.getText();\n if (script != null && !script.equals(\"String_Node_Str\")) {\n try {\n String result = Repository.getRPCClient().execute(\"String_Node_Str\", new Object[] { script }) + \"String_Node_Str\";\n } ca...
"protected void calculateOffsets() {\n float legendRight = 0f, legendBottom = 0f;\n if (mDrawLegend && mLegend != null && mLegend.getPosition() != LegendPosition.NONE) {\n if (mLegend.getPosition() == LegendPosition.RIGHT_OF_CHART || mLegend.getPosition() == LegendPosition.RIGHT_OF_CHART_CENTER) {\n ...
"public static int run(String[] args, ClassLoader classLoader) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {\n final Options options = new Options();\n if (args.length == 0) {\n usage();\n return -1;\n }\n for (String arg : args) {\n ...
"public boolean execute(ScriptEntry theCommand) {\n if (plugin.getCommandRegistry().getCommand(theCommand.getCommand()) != null) {\n Command command = plugin.getCommandRegistry().getCommand(theCommand.getCommand());\n if (plugin.debugMode)\n plugin.getLogger().log(Level.INFO, \"String_Node_S...
"protected void backup() {\n String startBackupMessage = pSystem.getStringProperty(STRING_START_BACKUP_MESSAGE);\n System.out.println(startBackupMessage);\n server.broadcastMessage(startBackupMessage);\n ConsoleCommandSender ccs = new ConsoleCommandSender(server);\n server.dispatchCommand(ccs, \"String_N...
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller == null) {\n return false;\n }\n for (UUID playerId : controller.getInRange()) {\n Player player = game.getPlayer(playerId);\n if (player != null) {\n ...
"private void createSpecNamePropertyDescriptor() {\n if (m_specNamePropDesc == null) {\n PropertyDescriptor propDes = new PropertyDescriptor(new SpecNameController(), P_SPECNAME_DISPLAY_NAME);\n propDes.setLabelProvider(new DisabledLabelProvider());\n m_specNamePropDesc = propDes;\n }\n ad...
"public int getPacketId() {\n return packet.n();\n}\n"
"private boolean shouldIgnore(Path path) {\n Path normalizedPath = path.normalize();\n for (Path prefix : ignoredPrefixes) {\n if (normalizedPath.startsWith(prefix)) {\n return true;\n }\n }\n return false;\n}\n"
"public void onSuccess(long personID, int localTableBlogId) {\n if (personType == Person.PersonType.USER) {\n AnalyticsUtils.trackWithCurrentBlogDetails(AnalyticsTracker.Stat.PERSON_REMOVED);\n }\n PeopleTable.deletePerson(personID, localTableBlogId, personType);\n String message = getString(R.string...
"public Void visitMethodInvocation(MethodInvocationTree mi, Void _) {\n ExpressionTree ms = mi.getMethodSelect();\n Element e = TreeUtil.getElement(mi);\n if (e != null) {\n Name methodName = e.getSimpleName();\n long ep = srcPos.getEndPosition(cu, ms);\n if (ep >= 0) {\n gen.ad...
"public void testCursorOnCountry() throws OLAPException, BirtException {\n ICubeQueryDefinition cqd = creator.createMirroredQueryDefinition();\n IBinding rowGrandTotal = new Binding(\"String_Node_Str\");\n rowGrandTotal.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);\n rowGrandTotal.setExpression(new S...
"public List<BodyCompilationData> chooseMixinsToBeUsed(List<BodyCompilationData> compiledMixins, final MixinReference reference) {\n int normalMixinsCnt = ArraysUtils.count(compiledMixins, GuardValue.USE.filter());\n int ifNotCnt = ArraysUtils.count(compiledMixins, GuardValue.USE_IF_NOT_DEFAULT.filter());\n in...
"public void testUDFEnoughInput() throws Exception {\n Tuple tuple = TupleFactory.getInstance().newTuple(31);\n for (int i = 0; i < 31; i++) {\n tuple.set(i, 0);\n }\n tuple.set(0, \"String_Node_Str\");\n DataBag dataBag = instance.exec(tuple);\n Assert.assertEquals(30, dataBag.size());\n As...
"public String resolveNamespacePrefix(String prefix) {\n if (null == prefix) {\n return defaultNamespaceURI;\n }\n String uri = prefixesToNamespaces.get(prefix);\n if (null != uri) {\n return uri;\n } else if (XMLConstants.XML_NAMESPACE_PREFIX.equals(prefix)) {\n return XMLConstants....
"public byte[] handle(String path) {\n String[] parts = path.split(\"String_Node_Str\");\n try {\n MetadataRequest request = new MetadataRequest(parts[0], parts.length == 2 ? parts[1] : \"String_Node_Str\");\n if (instanceMetadataEndpoints.containsKey(request.getMetadataName()) && request.isInstance...
"public void onPlayerEnterOnIsland(IslandEnterEvent e) {\n Player player = plugin.getServer().getPlayer(e.getPlayer());\n processPerms(player, e.getIslandLocation());\n}\n"
"final Object handleInvocation(Object mock, int mockAccess, String mockClassDesc, String mockNameAndDesc, String genericSignature, boolean withRealImpl, Object[] args) {\n if (pendingError != null) {\n recordAndReplay.setErrorThrown(pendingError);\n pendingError = null;\n return null;\n }\n ...
"public void setColorNormal(int colorNormal) {\n mColorNormal = getColor(colorNormal);\n updateBackground();\n}\n"
"public static ConnectionStatus testConnection(String dbType, String url, String username, String pwd, String schema, final String driverClassName, final String driverJarPath, String dbVersionString, String additionalParam) {\n Connection connection = null;\n ConnectionStatus connectionStatus = new ConnectionStat...
"SelectableChannel doConnect() throws IOException, InterruptedException {\n final DatagramChannel server = DatagramChannel.open();\n server.socket().setBroadcast(true);\n server.configureBlocking(false);\n try {\n synchronized (UdpReplicator.this.closeables) {\n if (details.isMultiCast) {\...
"private void deleteFolder(final RepositoryNode node, final IProxyRepositoryFactory factory, final DeleteActionCache deleteActionCache) {\n if (node.getObject().isDeleted()) {\n try {\n deleteElements(factory, deleteActionCache, node);\n } catch (Exception e) {\n ExceptionHandler....
"private void addNextElement(ImapRequestLineReader command, FetchRequest fetch) throws ProtocolException {\n char next = nextCharInLine(command);\n StringBuilder element = new StringBuilder();\n while (next != ' ' && next != '[' && next != ')') {\n element.append(next);\n command.consume();\n ...
"static public void suggestWallpaperDimension(Resources res, final SharedPreferences sharedPrefs, WindowManager windowManager, final WallpaperManager wallpaperManager) {\n final Point defaultWallpaperSize = getDefaultWallpaperSize(res, windowManager);\n new AsyncTask<Void, Void, Void>() {\n\n public void r...
"public void setLayoutDirection(int layoutDirection) {\n if (layoutDirection != View.LAYOUT_DIRECTION_LTR && layoutDirection != View.LAYOUT_DIRECTION_RTL)\n return;\n if (layoutDirection != this.mLayoutDirection) {\n this.mLayoutDirection = layoutDirection;\n this.mNeedResolution = isMarginRe...
"public long read(long numBytes, int timeout) throws IOException {\n long readCount = 0;\n H2StreamProcessor p = muxLink.getStreamProcessor(streamID);\n try {\n p.getReadLatch().await(timeout, TimeUnit.MILLISECONDS);\n readCount = p.readCount(numBytes, this.getBuffers());\n } catch (Interrupte...
"private void calculateNext() {\n if (next_verse == null) {\n next_range = null;\n return;\n }\n Verse start = next_verse;\n Verse end = next_verse;\n findnext: while (true) {\n if (!it.hasNext()) {\n next_verse = null;\n break;\n }\n next_verse = ...
"public void initialize(AbstractSession session) {\n super.initialize(session);\n if (!this.shouldUseClassNameAsIndicator() && (namespaceResolver != null)) {\n Iterator<Map.Entry> entries = new HashMap(getClassIndicatorMapping()).entrySet().iterator();\n while (entries.hasNext()) {\n Map....
"public void addPitch(Pitch pitch, double time, MotionParams motion) {\n pitchs.put(time, new MotionAndObject<InterpolatablePitch>(new InterpolatablePitch(pitch), new Motion(motion)));\n dirty = true;\n}\n"
"private void loadSection1() {\n addPreferencesFromResource(R.xml.conficolor_prefs);\n ColorPickerDialog selectedColors = (ColorPickerDialog) findPreference(KEY_PRESELECTED_CONFIGS);\n invalidateColorPreference(selectedColors);\n selectedColors.setColorPreference(activity.getColorPreference(), activity.getA...
"public void testFormat() {\n VanillaDateCache dc = new VanillaDateCache(\"String_Node_Str\", 86400000, GMT);\n String str = dc.formatFor(16067);\n assertEquals(\"String_Node_Str\", str);\n String str1 = dc.formatFor(1);\n assertEquals(\"String_Node_Str\", str1);\n}\n"
"public static void debug() throws Exception {\n JsonObject response = HRequest.GET(\"String_Node_Str\" + internalipaddress + \"String_Node_Str\" + username + \"String_Node_Str\");\n Debug.info(\"String_Node_Str\", \"String_Node_Str\" + response.get(\"String_Node_Str\").getAsString(), \"String_Node_Str\" + respon...
"public void save() {\n PrintWriter writer = null;\n try {\n File commandsFolder = new File(\"String_Node_Str\");\n if (!commandsFolder.exists()) {\n commandsFolder.mkdirs();\n }\n File saveFile = new File(commandsFolder, command + \"String_Node_Str\");\n if (saveFile...
"protected static void _outputConfig() throws Exception {\n if (_configName != null) {\n SourceOutputStream stream = SourceOutputStream.getStream(_configName, _overwrite);\n Set<String> classSet = new HashSet<String>();\n classSet.addAll(_classes);\n ConfigParser parser = new ConfigParser...
"public String buildShareLink(Entity entity) {\n return appUtils.getEntityUrl(entity);\n}\n"
"protected void internalSendRequestThrift(Request<Object> request, final Class<JsonElement> resultClass, final Continuation<Response<JsonElement>> continuation) {\n LOG.info(\"String_Node_Str\", request);\n if (request.getMethod().equals(\"String_Node_Str\")) {\n JsonObject params = (JsonObject) request.ge...
"public static final List<String> getPDBresnum(int structNum, MultipleAlignment multAln, Atom[] ca) {\n List<String> lst = new ArrayList<String>();\n if (aligPos > 1) {\n System.err.println(\"String_Node_Str\");\n return lst;\n }\n int blockNum = afpChain.getBlockNum();\n int[] optLen = afp...
"public final void proxy(String relUrl, HttpServletRequest request, HttpServletResponse response, Renderer... renderers) throws IOException, HttpErrorPage {\n ResourceContext resourceContext = new ResourceContext(this, relUrl, null, request);\n request.setCharacterEncoding(config.getUriEncoding());\n resourceC...
"public List<String> connectFromCustomModuleName() {\n preparModuleInit();\n SalesforceModuleParseAPI salesforceAPI = new SalesforceModuleParseAPI();\n String[] types = null;\n DescribeGlobalSObjectResult[] dgsrs = null;\n DescribeGlobalResult describeGlobalResult = null;\n boolean socksProxy = false;...
"public void testErrorLogFile2() throws Exception {\n PrintWriter w = new PrintWriter(new FileWriter(PIG_FILE));\n w.println(\"String_Node_Str\" + INPUT_FILE + \"String_Node_Str\");\n w.println(\"String_Node_Str\");\n w.println(\"String_Node_Str\" + OUTPUT_FILE + \"String_Node_Str\");\n w.close();\n t...
"private void setRelativeDrawablesIfNeeded(Drawable start, Drawable end) {\n boolean hasRelativeDrawables = (start != null) || (end != null);\n if (hasRelativeDrawables) {\n Drawables dr = mDrawables;\n if (dr == null) {\n mDrawables = dr = new Drawables(getContext());\n }\n ...
"protected View updateDataImpl(JsonObject data) {\n this.isViewUpdating = true;\n if (this.bindings != null) {\n for (Binding binding : this.bindings) {\n this.handleBinding(binding);\n }\n }\n if (getChildren() != null) {\n for (ProteusView proteusView : getChildren()) {\n ...
"public boolean isEmpty() {\n return fileQueue.isEmpty() && fileQueue.peek() != null;\n}\n"
"private List<List<double[]>> calculateMeasures(List<List<int[]>> matchingCounts) {\n List<List<double[]>> measures = new ArrayList<List<double[]>>(matchingCounts.size());\n List<double[]> localMeasures;\n double[] singleMeasures;\n for (List<EvaluationCounts> counts : matchingCounts) {\n if (counts....
"private Element getTopicDoc(final String absolutePathToFile) {\n final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder;\n try {\n builder = factory.newDocumentBuilder();\n final Document doc = builder.parse(absolutePathToFile);\n return doc...
"protected byte[] parseFCIProprietaryTemplate(final byte[] pData) throws CommunicationException {\n byte[] data = TlvUtil.getValue(pData, EmvTags.SFI);\n if (data != null) {\n int sfi = BytesUtils.byteArrayToInt(data);\n if (LOGGER.isDebugEnabled()) {\n LOGGER.info(\"String_Node_Str\" + s...
"public void loadTurboMilestones(List<TurboMilestone> list) {\n milestones.clear();\n milestones.addAll(list);\n}\n"
"public void beginRendering() {\n renderer.beginRendering(drawable.getViewportWidth(), drawable.getViewportHeight());\n}\n"
"private Set<String> publishMockData(final String tradesQ) {\n Set<String> tradeIds = new LinkedHashSet<>();\n try (ChronicleQueue queue = SingleChronicleQueueBuilder.binary(TRADES_Q).build()) {\n ExcerptAppender excerptAppender = queue.acquireAppender();\n MockTradeGenerator mockTrade = new MockTra...
"public void run() {\n for (String channel : getConfig().getChannels()) {\n if (getChannel(channel) == null) {\n sendIRC().joinChannel(channel);\n }\n }\n}\n"
"public static DataStream<DynamicDataInstance> generate(int seed, int nSamples, int nDiscreteAtts, int nContinuousAttributes) {\n DynamicBayesianNetworkGenerator.setSeed(seed);\n DynamicBayesianNetworkGenerator.setNumberOfContinuousVars(nContinuousAttributes);\n DynamicBayesianNetworkGenerator.setNumberOfDiscr...
"public String getMediaUrl(Item item) {\n item = feedManager.loadItem(item.getKey());\n if (item == null) {\n return null;\n }\n String file = null;\n Enclosure enclosure = item.getEnclosure();\n if (enclosure != null) {\n if (item.getFeed().isExternal()) {\n file = item.getEn...
"private VmSchema getVmSchema(BaseNode vNode) {\n VmSchema schema = vNode.getVmSchema();\n schema.diskSchema.setParent(getTemplateVmId());\n schema.diskSchema.setParentSnap(Constants.ROOT_SNAPSTHOT_NAME);\n return schema;\n}\n"
"public String toString() {\n return new StringBuilder().append(\"String_Node_Str\").append(remotePath).append(\"String_Node_Str\").append(\"String_Node_Str\").append(fileSystemBlockSize).append(',').append(\"String_Node_Str\").append(fundamentalFileSystemBlockSize).append(',').append(\"String_Node_Str\").append(fil...
"private String[] getDataSets() {\n return (String[]) DEUtil.getDataSets().toArray(new String[0]);\n}\n"
"public void benchmarkTranslate(TranslateState state, Blackhole blackhole) {\n MvccMetainfoRepository mvccMetainfoRepository = new MvccMetainfoRepository(initialView);\n MutableMetaSnapshot mutableSnapshot;\n try (SnapshotStage snapshot = mvccMetainfoRepository.startSnapshotStage()) {\n mutableSnapshot ...
"protected void doSchedule(Runnable task, long delayInMillis, TaskPriority priority) {\n OneTimeTaskWrapper taskWrapper = new OneTimeTaskWrapper(task, delayInMillis);\n if (delayInMillis == 0) {\n addToExecuteQueue(taskWrapper);\n } else {\n addToScheduleQueue(taskWrapper);\n }\n}\n"
"public void testNullBuffer() {\n if (Looper.myLooper() == null) {\n Looper.prepare();\n }\n SdlRouterService router = new SdlRouterService();\n SdlRouterService.RegisteredApp app = router.new RegisteredApp(APP_ID, messenger);\n app.buffer = null;\n app.handleMessage(TransportConstants.BYTES_TO...
"final public static Statement make(final Statement statement, final Term subj, final Term pred, int order) {\n return make(statement.operator(), subj, pred);\n}\n"
"protected synchronized void _informOfMutationBlock() {\n _mutationBlockCount++;\n notifyAll();\n}\n"
"private void openXtextEditor(RepositoryNode repositoryNode, IProject fsProject) {\n try {\n if (ProjectManager.getInstance().isInCurrentMainProject(repositoryNode)) {\n IFile linkedFile = createWorkspaceLink(fsProject, fsProject.getFolder(ERepositoryObjectType.getFolderName(ERepositoryObjectType.J...
"public void render(Renderer renderer, int flags) {\n RenderProps props = getRenderProps();\n if (props == null) {\n return;\n }\n if (!(renderer instanceof GL2Viewer)) {\n return;\n }\n GL2Viewer viewer = (GL2Viewer) renderer;\n GL2 gl = viewer.getGL2();\n gl.glPushMatrix();\n ...
"private static PostListingController.Sort getOrder(String sort, String t) {\n if (sort == null) {\n return null;\n }\n sort = General.asciiLowercase(sort);\n t = t != null ? General.asciiLowercase(t) : null;\n if (sort.equals(\"String_Node_Str\")) {\n return PostListingController.Sort.HOT;...
"public void resolveTypes(MarkerList markers, IContext context) {\n if (this.annotations != null) {\n this.annotations.resolveTypes(markers, context, this);\n }\n if (this.lowerBound != null) {\n this.lowerBound = this.lowerBound.resolveType(markers, context);\n }\n if (this.upperBound == n...
"final void checkPositionThatChangedPlayer(ShortPoint2D position) {\n if (!isInBounds(position.x, position.y)) {\n return;\n }\n EnclosedBlockedAreaFinderAlgorithm.checkLandmark(enclosedBlockedAreaFinderGrid, position);\n Movable movable = movableGrid.getMovableAt(position.x, position.y);\n if (mo...
"private void populateN(Context cx) throws DataException {\n Object o = ScriptEvalUtil.evalExpr(((IConditionalExpression) expr).getOperand1(), cx, scope, ScriptExpression.defaultID, 0);\n this.N = Double.valueOf(o.toString()).doubleValue();\n}\n"
"public void componentResized(ComponentEvent e) {\n logger.fine(\"String_Node_Str\" + e);\n Component comp = e.getComponent();\n if (comp != null) {\n setSize(comp.getSize());\n }\n}\n"
"public void messageReceived(final IoSession session, final Object message) throws Exception {\n if (message instanceof MetricRequest) {\n final MetricRequest request = (MetricRequest) message;\n if (request.getValid()) {\n Future<MetricResponse.Status> future = null;\n for (final...
"public String getSqlKeyword() {\n String fieldKeyword = field != null ? field.toString() : DEFAULT_ID_FIELD;\n if (model != null) {\n return Utility.getTableName(model) + \"String_Node_Str\" + fieldKeyword;\n } else {\n return fieldKeyword;\n }\n}\n"
"public void onDestroy() {\n super.onDestroy();\n for (DPApi dpApi : dpApiStore) {\n dpApi.destroy();\n }\n dpApiStore.clear();\n for (AndroidMavLinkConnection conn : mavConnections.values()) {\n conn.disconnect();\n conn.removeAllMavLinkConnectionListeners();\n }\n mavConnecti...
"private void commitRoute(BlockBuffer buffer, Net net, Node solution) {\n log(\"String_Node_Str\");\n for (Node n = solution; n != null && n.parent != null; n = n.parent) {\n if (skipFirst) {\n skipFirst = false;\n continue;\n }\n log(\"String_Node_Str\" + getCoordText(n...
"protected void modifyHandleMetadata(Context context, Item item, String handle) throws SQLException, IOException, AuthorizeException {\n String handleref = getCanonicalForm(handle);\n itemService.clearMetadata(context, item, MetadataSchema.DC_SCHEMA, \"String_Node_Str\", \"String_Node_Str\", Item.ANY);\n for (...
"public boolean onPreferenceClick(Preference preference) {\n ((SettingsActivity) getActivity()).mHelper.launchPurchaseFlow(getActivity(), \"String_Node_Str\", 5, ((SettingsActivity) getActivity()).mPurchaseFinishedListener, \"String_Node_Str\");\n return true;\n}\n"
"public BootstrapService getService(Activity activity) throws IOException, AccountsException {\n return new BootstrapService(keyProvider.getAuthKey(activity), userAgentProvider);\n}\n"
"protected void drawBorder(IFigure figure, Graphics g, int side, int style, int[] width, int color, Insets insets) {\n Rectangle r = figure.getBounds().getCopy().crop(insets);\n if (style != 0) {\n g.setForegroundColor(ColorManager.getColor(color));\n BorderUtil.drawBorderLine(g, side, style, width,...
"protected void createTabToolButtons(CTabFolder tabFolder) {\n List<IButtonHandler> buttons = wizardBase.getTabToolButtons();\n if (buttons.size() == 0) {\n return;\n }\n ToolBar toolbar = new ToolBar(tabFolder, SWT.FLAT | SWT.WRAP);\n tabFolder.setTopRight(toolbar);\n for (IButtonHandler btnHa...
"protected void notifyUploadListenerStarted(UploadItem uploadItem) {\n MFConfiguration.getStaticMFLogger().logMessage(TAG, \"String_Node_Str\");\n if (uiListener != null) {\n uiListener.onStarted(uploadItem);\n }\n}\n"
"public final CodeContext code() throws RecognitionException {\n CodeContext _localctx = new CodeContext(_ctx, getState());\n enterRule(_localctx, 4, RULE_code);\n try {\n int _alt;\n enterOuterAlt(_localctx, 1);\n {\n setState(28);\n _errHandler.sync(this);\n ...
"public Boolean call() throws Exception {\n try {\n LOGGER.info(String.format(\"String_Node_Str\", nodeName, privateIp));\n HostConfig hostConfig = new HostConfig();\n hostConfig.setPrivileged(true);\n hostConfig.setRestartPolicy(RestartPolicy.alwaysRestart());\n Ports ports = new ...
"private boolean canMoveValue(Node n) {\n if (n == null || NodeUtil.isLiteralValue(n, true) || n.isFunction()) {\n return true;\n } else if (n.isCall()) {\n Node functionName = n.getFirstChild();\n return functionName.isName() && (functionName.getString().equals(CrossModuleMethodMotion.STUB_M...
"private void writeMeta(Table table, Id.Artifact artifactId, ArtifactData data) throws IOException {\n ArtifactCell artifactCell = new ArtifactCell(artifactId);\n table.put(artifactCell.rowkey, artifactCell.column, Bytes.toBytes(GSON.toJson(data)));\n byte[] artifactColumn = new ArtifactColumn(artifactId).getC...
"public int[] getReorderMap() {\n int[] reorderMap = masterSequence.getReorderMap(atomicCount);\n if (reorderMap == null)\n throw new IllegalStateException(\"String_Node_Str\");\n currentBlock = null;\n rowIndex = -5;\n blockCount = 0;\n if (atomicCount >= masterSequence.getAtomicCount()) {\n ...
"private Diff setupImplicationBetweenConflicts() throws IOException {\n final Resource origin = input.getConflictAndPseudoConflictImplicationsAncestor();\n final Resource left = input.getConflictAndPseudoConflictImplicationsLeft();\n final Resource right = input.getConflictAndPseudoConflictImplicationsRight();...
"public void setLineWidth(float lineWidth) {\n if (lineWidth <= 0.0) {\n stroke = null;\n } else {\n if ((stroke == null) || (lineWidth != ((BasicStroke) stroke).getLineWidth())) {\n stroke = AbstractPaintedGraphic.getStroke(lineWidth);\n }\n }\n}\n"
"private void sortPlatesAction() {\n PlateAttributeDialog dialog = new PlateAttributeDialog(heatMapModel);\n dialog.setVisible(true);\n String[] selectedAttributes = dialog.getSelectedAttributeTitles();\n for (int i = selectedAttributes.length - 1; i >= 0; i--) {\n PlateAttribute attribute = PlateUti...
"public static void updateColumnCache(DataSetHandle dataSetHandle, boolean holdEvent) {\n try {\n if (dataSetHandle.getModuleHandle() instanceof ReportDesignHandle) {\n EngineConfig ec = new EngineConfig();\n ReportEngine engine = (ReportEngine) new ReportEngineFactory().createReportEngi...
"protected void processSSI(HttpServletRequest req, HttpServletResponse res, URL resource, HtmlEntityEncoder htmlEntityEncoder) throws IOException {\n SSIExternalResolver ssiExternalResolver = new SSIServletExternalResolver(getServletContext(), req, res, isVirtualWebappRelative, debug, inputEncoding);\n SSIProcess...
"public void onRestoreInstanceState(Parcelable state) {\n SavedState ss = (SavedState) state;\n mCurrentDate.set(ss.getSelectedYear(), ss.getSelectedMonth(), ss.getSelectedDay());\n mCurrentView = ss.getCurrentView();\n mMinDate.setTimeInMillis(ss.getMinDate());\n mMaxDate.setTimeInMillis(ss.getMaxDate()...
"public void writePayload(int id, PacketBufferBC buffer, Side side) {\n super.writePayload(id, buffer, side);\n if (side == Side.SERVER) {\n if (id == NET_RENDER_DATA) {\n writePayload(NET_FLUID_DELTA, buffer, side);\n } else if (id == NET_FLUID_DELTA) {\n buffer.writeInt(tank....
"protected List<CombinationMessage> buildCombinationMessagesListByDate(long createDate, boolean moreDate) {\n if (dialog == null) {\n Log.d(\"String_Node_Str\", \"String_Node_Str\" + dialog);\n return new ArrayList<>();\n }\n List<Message> messagesList = dataManager.getMessageDataManager().getMes...
"public void update(PathStateDistribution prior, Vector data) {\n if (prior.getPathState().isOnRoad()) {\n if (!this.path.isOnPath(prior.getMean().getElement(0))) {\n final Vector mean = prior.getMean().clone();\n mean.setElement(0, prior.getPathState().getPath().clampToPath(prior.getMea...
"public org.hl7.fhir.dstu2.model.ElementDefinition.ElementDefinitionBindingComponent convertElementDefinitionBindingComponent(org.hl7.fhir.dstu3.model.ElementDefinition.ElementDefinitionBindingComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.mode...