content
stringlengths
40
137k
"public void handle(Message<JsonObject> res) {\n if (\"String_Node_Str\".equals(res.body().getString(\"String_Node_Str\"))) {\n JsonArray r = Neo.resultToJsonArray(res.body().getObject(\"String_Node_Str\"));\n processTemplate(request, \"String_Node_Str\", new JsonObject().putArray(\"String_Node_Str\", ...
"public void onModelChanged(ModelChangedEvent<LogEventFilterModel, LogEventFilterModelReasonForChange> event) {\n try {\n switch(event.getReasonForChange()) {\n case filterAdded:\n {\n createEditor((LogEventFilter) event.getObjects()[0]);\n break...
"public String getDir() {\n return _auxinf != null ? _auxinf.dir : NORMAL;\n}\n"
"protected String execute(Channel responseChannel, String clientId, ConcurrentHashMap<String, String> clientState, String request, String cmd, String[] args) throws Exception {\n StringBuffer rsb = new StringBuffer();\n if (null == clientState.get(GraphServerHandler.ST_DB)) {\n rsb.append(GraphServerProtoc...
"public void list(String[] args, User user) {\n Player[] playerList = plugin.getServer().getOnlinePlayers();\n if (playerList.length == 1 && !user.isServer()) {\n user.sendMessage(ChatColor.GREEN + \"String_Node_Str\");\n } else {\n String playerString = \"String_Node_Str\";\n for (Player ...
"private static PipedHttpHandler getSecurityHandlerChain(final PipedHttpHandler next, final IdentityManager identityManager, final AccessManager accessManager, final boolean challenging) {\n PipedHttpHandler handler = null;\n if (identityManager != null) {\n final List<AuthenticationMechanism> mechanisms =...
"public ConfListVo transfer(Config input) {\n String appNameString = app.getName();\n String envName = env.getName();\n ZkDisconfData zkDisconfData = null;\n if (myzkDataMap != null && myzkDataMap.keySet().contains(input.getName())) {\n zkDisconfData = myzkDataMap.get(input.getName());\n }\n Co...
"public String getText(Object element) {\n String tableOwner = null;\n if (element instanceof ModelElement) {\n tableOwner = ColumnSetHelper.getTableOwner((ModelElement) element);\n }\n if (element instanceof AbstractFolderNode) {\n if (((IFolderNode) element).getChildren() != null) {\n ...
"public void run() {\n Thread.currentThread().setName(selectedResource.getResource().getName() + \"String_Node_Str\");\n try {\n selectedResource.getResource().start();\n notifyCompleted();\n } catch (Exception e) {\n logger.error(\"String_Node_Str\", e);\n ErrorManager.warn(\"Strin...
"public void process() throws AxelorException {\n Preconditions.checkNotNull(invoice.getPartner());\n setDate();\n setInvoiceId();\n updatePaymentSchedule();\n setMove();\n setStatus();\n}\n"
"public void testGetPermanentDirectoryWhenNotSet() {\n final ServletContext servletContext = getMockery().mock(ServletContext.class);\n getMockery().checking(new Expectations() {\n {\n oneOf(servletContext).getAttribute(\"String_Node_Str\");\n will(returnValue(servletTmpDir));\n ...
"public int compareTo(final RegisteredDeploymentUnitProcessor o) {\n final int rel = Integer.signum(priority - o.priority);\n return rel == 0 ? processor.getClass().getName().compareTo(o.processor.getClass().getName()) : rel;\n}\n"
"protected void doUpdate(final AnalysisContextRisk context) {\n final RiskEstimateBuilderInterruptible baseBuilder = getBuilder(context);\n if (!this.isEnabled() || baseBuilder == null) {\n if (manager != null) {\n manager.stop();\n }\n this.setStatusEmpty();\n return;\n ...
"public boolean undo() {\n assert done;\n if (mods.isEmpty()) {\n return false;\n }\n for (int i = mods.size() - 1; i >= 0; i--) {\n Mod mod = mods.get(i);\n Block block = world.getBlock(mod.x, mod.y, mod.z);\n int meta = world.getBlockMetadata(mod.x, mod.y, mod.z);\n if (...
"public void positionReached() {\n if (worldObj.isRemote) {\n return;\n }\n if (isQuarriableBlock(targetX, targetY - 1, targetZ)) {\n if (BuildCraftAPI.isSoftBlock(worldObj, targetX, targetY - 1, targetZ)) {\n miner = null;\n stage = Stage.IDLE;\n worldObj.setBloc...
"private Driver findDriver(String className, Collection<String> driverClassPath, boolean refreshClassLoader) throws OdaException {\n Class driverClass = null;\n try {\n driverClass = Class.forName(className);\n logger.info(\"String_Node_Str\" + className);\n } catch (ClassNotFoundException e) {\n...
"public boolean isDeleted() {\n return SubItemHelper.isDeleted(query);\n}\n"
"protected Boolean evaluate(Object constrainedObject, boolean complainIfFails) {\n boolean gotNull = false;\n isConsistent = true;\n errorMessage = null;\n for (Element constraint : getConstrainingElements()) {\n Object res = null;\n try {\n res = OclEvaluator.evaluateQuery(constrai...
"public void fullDescription(String msg) {\n String out = \"String_Node_Str\";\n out = out + \"String_Node_Str\" + msg;\n out = out + \"String_Node_Str\" + (double) ((double) m_totalTime / (double) m_totalNumStarts);\n out = out + \"String_Node_Str\" + m_totalNumStarts;\n out = out + \"String_Node_Str\" ...
"public boolean[] filter(final IFilter filter, final boolean[] filterArray) throws IOException {\n switch(filter.getFilterType()) {\n case NOT_NULL:\n if (columnType != ((INullFilter) filter).getTargetColumnType()) {\n return null;\n }\n for (int i = 0; i < filt...
"public static Transducer createTransducer(RuntimeNonElementRef ref) {\n Transducer t = ref.getTarget().getTransducer();\n RuntimePropertyInfo src = ref.getSource();\n ID id = src.id();\n if (id == ID.IDREF)\n return RuntimeBuiltinLeafInfoImpl.STRING;\n if (id == ID.ID)\n t = new IDTransduc...
"public static boolean hasItems() {\n return Bukkit.getServer().getPluginManager().getPlugin(\"String_Node_Str\") != null;\n}\n"
"public void add(String payloadDataName, String payloadDataValue) {\n if (completePayloadDataBuilder.length() > 0) {\n completePayloadDataBuilder.append(\"String_Node_Str\");\n }\n additionalPayloadDataBuilder.append(payloadDataName + \"String_Node_Str\" + payloadDataValue);\n}\n"
"public void run(IAction action) {\n store = getIPreferenceStore();\n Configuration config = getConfiguration(store, selection);\n PropertiesLoader props = getPropertiesLoader(store.getString(Preference.lang));\n StructuredSelection structuredSelection = null;\n try {\n if (selection instanceof St...
"public final void processStarted(ParsingContext context) {\n super.processStarted(context);\n splitter.reset();\n batchCount = 0;\n batchesProcessed = 0;\n}\n"
"public static IJstNode look4ActualBinding(final JstExpressionBindingResolver resolver, final IJstType type, final GroupInfo groupInfo) {\n if (type == null) {\n return null;\n } else if (type instanceof JstArray) {\n look4ActualBinding(resolver, ((JstArray) type).getComponentType(), groupInfo);\n ...
"public void operationComplete(final ChannelFuture f) {\n String expectedScript = scriptDoneFuture.getExpectedScript();\n String observedScript = scriptDoneFuture.getObservedScript();\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\" + name + \"String_Node_Str\");\n }\n sendFinis...
"public MWModelGroup modelGroup(String namespaceUrl, String modelGroupDefName) {\n if (namespaceUrl == null || \"String_Node_Str\".equals(namespaceUrl)) {\n namespaceUrl = targetNamespaceUrl();\n }\n return this.modelGroupDefinition(namespaceUrl, modelGroupDefName).getModelGroup();\n}\n"
"public String toString() {\n StringBuffer sb = new StringBuffer();\n if (null != context) {\n sb.append(context);\n sb.append(LangUtil.EOL);\n }\n if (sourceFile != ISourceLocation.NO_FILE) {\n sb.append(sourceFile.getPath());\n sb.append(\"String_Node_Str\");\n }\n sb.app...
"public Conditional<Instruction> execute(FeatureExpr ctx, final ThreadInfo ti) {\n pushValue = One.valueOf(0);\n final StackFrame frame = ti.getModifiableTopFrame();\n final Instruction thisInstruction = this;\n Conditional<Integer> aref = frame.peek(ctx, 1);\n final ArrayLoadInstruction instruction = th...
"private void runStackSplit() throws Exception {\n final int stackId = Integer.valueOf(nextArgRequired());\n final String splitDirection = nextArgRequired();\n Intent intent = null;\n try {\n intent = makeIntent(UserHandle.USER_CURRENT);\n } catch (IllegalArgumentException e) {\n }\n try {\n...
"private ObjectAnimator createMatrixAnimator(final ImageView imageView, Matrix startMatrix, final Matrix endMatrix) {\n return AnimatorUtils.ofObject(new ImageAnimator(imageView), new MatrixUtils.MatrixEvaluator(), startMatrix, endMatrix);\n}\n"
"public ImagePlus applyClassifier(final FeatureStackArray fsa, int numThreads, boolean probabilityMaps) {\n if (numThreads == 0)\n numThreads = Prefs.getThreads();\n ArrayList<String> classNames = null;\n if (null != loadedClassNames)\n classNames = loadedClassNames;\n else {\n classNam...
"protected final void _validate() {\n Workspace workspace = getContainer().workspace();\n long workspaceVersion = workspace.getVersion();\n if (_functionDependencyVersion != workspaceVersion) {\n try {\n workspace.getReadAccess();\n _constructDependencyGraph();\n _functi...
"public void _testOverridingFinalMethod() {\n runConformTest(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\" + \"String_Node_Str\" }, \"String_Node_Str\");...
"public void shouldLoadFromServerWithClient() {\n RecordingCacheLoader<String> recordingCacheLoader = new RecordingCacheLoader<String>();\n CacheLoaderServer<String, String> serverCacheLoader = new CacheLoaderServer<String, String>(10000, recordingCacheLoader);\n try {\n serverCacheLoader.open();\n ...
"public final Object getAttribute(final String name) throws AttributeNotFoundException {\n Object result = null;\n if (name == null) {\n throw new AttributeNotFoundException(\"String_Node_Str\" + getObjectName());\n }\n try {\n result = getAttributeInternal(name);\n } catch (AttributeNotFou...
"public Long WQWeightByTraversal(Tripartition trip, CondensedTraversalWeightCalculator algorithm) {\n long t = System.nanoTime();\n long weight = 0;\n long[] sx = new long[3], sxy = new long[3];\n int[] q;\n int[] from, to;\n BitSet[] b = new BitSet[] { trip.cluster1.getBitSet(), trip.cluster2.getBitS...
"public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs) throws XmlPullParserException, IOException {\n final GradientState st = mGradientState;\n TypedArray a = r.obtainAttributes(attrs, com.android.internal.R.styleable.GradientDrawable);\n super.inflateWithAttributes(r, parser, a, com.andr...
"protected void _markContentsDerived(int depth) {\n depth = depth + 1;\n Iterator objects = containedObjectsIterator();\n while (objects.hasNext()) {\n NamedObj containedObject = (NamedObj) objects.next();\n if (depth < containedObject._derivedLevel) {\n containedObject._derivedLevel =...
"public final long getStartTime() {\n return joinStartTime.get();\n}\n"
"public static List<GeneratingMethodInfo> getMethodNames(IFile javaFile) throws Exception {\n List<GeneratingMethodInfo> methodStringInfos = new ArrayList<GeneratingMethodInfo>();\n boolean enabled = Activator.getDefault().getPreferenceStore().getBoolean(STR.Preference.TestMethodGen.ENABLE);\n if (enabled) {\n...
"public static String sentence(String text) {\n if (!ModCommonProxy.hardcoreEnderbacon)\n return text;\n String lc = StatCollector.translateToLocal(\"String_Node_Str\"), fc = Character.toUpperCase(lc.charAt(0)) + lc.substring(1), uc = lc.toUpperCase(Locale.ENGLISH);\n text = lcword.matcher(text).replace...
"public String getFinderPrefix() {\n String finderPrefix = getElement().getAttribute(FINDER_PREFIX);\n return StringUtils.hasText(finderPrefix) ? finderPrefix : parent.getFinderPrefix();\n}\n"
"private HeaderPositionHelper myGetColumnPositionHelper(Worksheet sheet, int maxcol) {\n HelperContainer<HeaderPositionHelper> helpers = (HelperContainer) getAttribute(COLUMN_SIZE_HELPER_KEY);\n if (helpers == null) {\n setAttribute(COLUMN_SIZE_HELPER_KEY, helpers = new HelperContainer<HeaderPositionHelper...
"public List<VirtualRouter> applyDhcpEntry(Network network, NicProfile nic, VirtualMachineProfile<UserVm> profile, DeployDestination dest, ReservationContext context, List<DomainRouterVO> routers) throws ConcurrentOperationException, InsufficientCapacityException, ResourceUnavailableException {\n List<VirtualRouter>...
"private long parseIndex(String text) throws IOException {\n try {\n Number q = FMT_INDEX.get().parse(text);\n return (long) (q.doubleValue() * Values.Quote.factor());\n } catch (ParseException e) {\n throw new IOException(e);\n }\n}\n"
"public static String snippet(JCas jCas, int snippetBegin, int snippetEnd, Annotation a1, Annotation a2) {\n final String T_BEGIN = \"String_Node_Str\";\n final String T_END = \"String_Node_Str\";\n String s = jCas.getDocumentText().substring(snippetBegin, snippetEnd);\n String sError = s;\n try {\n ...
"public Connection getConnection(IDatabaseInfo dbInfo) throws Exception {\n Class.forName(JDBC_DRIVER);\n if (firstTime.compareAndSet(true, false)) {\n Pair<String, Integer> addressAndPort = OseeProperties.getOseeDbEmbeddedServerAddress();\n if (addressAndPort != null) {\n int webPort = O...
"public static AbstractAlgorithm create(final Lattice lattice, final INodeChecker checker, final FLASHStrategy strategy) {\n ARXConfiguration config = checker.getConfiguration();\n Metric<?> metric = checker.getMetric();\n Monotonicity monotonicityMetric;\n if (metric.isMonotonic() || config.getMaxOutliers(...
"private SessionImplementor wrapSession(SessionImplementor session, boolean generatedKeys, String[][] columns, HibernateReturningResult<?> returningResult) {\n Object transactionCoordinator = hibernateAccess.getTransactionCoordinator(session);\n JdbcCoordinator jdbcCoordinator = (JdbcCoordinator) ExpressionUtils....
"public ModelAndView dbExport() {\n Connection conn = DataSourceUtils.getConnection(dataSource);\n InputStream dbPropsStream = null;\n String dbSchema = null;\n try {\n dbPropsStream = getClass().getResourceAsStream(\"String_Node_Str\");\n Properties dbProps = new Properties();\n dbProp...
"public void testRuntimeArgs() throws Exception {\n ServiceId service = fakeAppId.service(PrefixedEchoHandler.NAME);\n ServiceId serviceV1 = fakeAppIdV1.service(PrefixedEchoHandler.NAME);\n String serviceName = String.format(\"String_Node_Str\", FakeApp.NAME, PrefixedEchoHandler.NAME);\n String serviceArgum...
"private void refreshResumingConnections() {\n if (propName.equals(EParameterName.RESUMING_CHECKPOINT.getName()) || this.elem instanceof Connection) {\n if (((Connection) this.elem).getConnectionTrace() != null && !propName.equals(EParameterName.CONDITION)) {\n ((Connection) this.elem).getConnectio...
"private void _removeEditorIcons() {\n for (Object editorIconObject : attributeList(EditorIcon.class)) {\n EditorIcon editorIcon = (EditorIcon) editorIconObject;\n GTTools.getDeletionChangeRequest(this, editorIcon).execute();\n }\n}\n"
"public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {\n try {\n if (isStartElementOpen) {\n writer.write('>');\n }\n if (!isLastEventText) {\n writer.write(CR);\n for (int x = 0; x < numberOfTabs; x+...
"public String getText(Object element) {\n return ((OrderMatchRule) element).getName();\n}\n"
"private String addTypesToSql(String sql, String[] types, String and) {\n String result = sql;\n if (types != null && types.length > 0) {\n typeClause += \"String_Node_Str\";\n int len = types.length;\n boolean isTable = false;\n for (int i = 0; i < len; ++i) {\n String comm...
"private void convertClusterConfig(ClusterEntity clusterEntity, ClusterCreate clusterConfig, boolean needAllocIp) {\n logger.debug(\"String_Node_Str\" + clusterEntity.getName());\n clusterConfig.setDistroVendor(clusterEntity.getDistroVendor());\n clusterConfig.setDistroVersion(clusterEntity.getDistroVersion())...
"public IValue withType(IType type, ITypeContext typeContext, MarkerList markers, IContext context) {\n if (type == Types.LONG) {\n return this;\n }\n if (type.isSuperTypeOf(Types.LONG)) {\n return new BoxedValue(this, Types.LONG.boxMethod);\n }\n if (type.getTheClass().getAnnotation(LONG_C...
"public static List getList(Object obj, Class listItemClass) {\n if (!isArray(obj)) {\n throw new IllegalArgumentException(\"String_Node_Str\" + obj);\n }\n List<Object> convertedList = new ArrayList<>();\n if (obj.getClass().isAssignableFrom(Bundle[].class)) {\n for (Object bundle : (Object[]...
"protected void checkResourceAttachment(Match match) {\n final Comparison comparison = match.getComparison();\n if (comparison.getMatchedResources().isEmpty()) {\n return;\n }\n if (match.getLeft() == null && match.getRight() == null) {\n final String uri = match.getOrigin().eResource().getURI...
"protected void updateContent(Object ancestor, Object left, Object right) {\n super.updateContent(ancestor, left, right);\n getLeftMergeViewer().getGraphicalViewer().flush();\n getRightMergeViewer().getGraphicalViewer().flush();\n getAncestorMergeViewer().getGraphicalViewer().flush();\n if (left instance...
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n Intent intent = getIntent();\n Log log = getLogFromIntent(intent);\n vm = new LogCaptureViewModel(android.text.format.DateFormat.getLongDateFormat(this), android.text.format.DateFormat.getTimeFormat(this), this);\n ...
"public void execute(AdminCommandContext context) {\n ActionReport report = context.getActionReport();\n StringBuilder msg = new StringBuilder();\n Node theNode = null;\n logger = context.getLogger();\n NodeUtils nodeUtils = new NodeUtils(habitat, logger);\n theNode = nodes.getNode(name);\n if (the...
"public IPackageFragmentRoot[] getPackageFragmentRoots(IProgressMonitor monitor) throws CoreException {\n IType type = getMainType(monitor);\n IPath[] classpathEntries = null;\n ILaunchConfiguration configuration = null;\n try {\n configuration = createConfiguration(type);\n classpathEntries =...
"public static Method findRequiredMethod(final DeploymentReflectionIndex deploymentReflectionIndex, final ClassReflectionIndex classReflectionIndex, final Method method) throws DeploymentUnitProcessingException {\n if (method == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n fi...
"private void handleSystemQueryOptionTop(final String top) throws UriParserException {\n try {\n uriResult.setTop(Integer.valueOf(top));\n } catch (NumberFormatException e) {\n throw new UriParserException(\"String_Node_Str\" + top + \"String_Node_Str\", e);\n }\n}\n"
"public boolean commitTx() throws Exception {\n getQueue().ack(dequeuedKeys, config);\n committed = true;\n return true;\n}\n"
"public static File createTempFile(final String name) {\n try {\n final File file = File.createTempFile(name, \"String_Node_Str\");\n try (FileOutputStream fos = new FileOutputStream(file);\n OutputStreamWriter writer = new OutputStreamWriter(fos, Charset.forName(\"String_Node_Str\").newEnco...
"public final HandlerRegistration addWiresMoveHandler(final WiresMoveHandler handler) {\n Objects.requireNonNull(handler);\n return m_events.addHandler(WiresMoveEvent.TYPE, handler);\n}\n"
"private ZonedDateTime previousClosestMatch(ZonedDateTime date) throws NoSuchValueException {\n ExecutionTimeResult newdate = new ExecutionTimeResult(date, false);\n do {\n newdate = potentialPreviousClosestMatch(newdate.getTime());\n } while (!newdate.isMatch());\n return newdate.getTime();\n}\n"
"public static void sendRecipeMessage(Player player, HumanNPC npc, int page) {\n Alchemist alchemist = npc.getType(\"String_Node_Str\");\n int currentRecipe = alchemist.getCurrentRecipeID();\n PageInstance instance = PageUtils.newInstance(player);\n instance.header(ChatColor.GREEN + StringUtils.listify(Stri...
"public Boolean isVmAlive(VirtualMachine vm, Host host) {\n Status status = isAgentAlive(host);\n if (status == null) {\n throw new UnknownVM();\n }\n if (status == Status.Up) {\n return true;\n } else {\n throw new UnknownVM();\n }\n return status == Status.Up ? true : null;\n...
"protected void getColumnTypeAndDefValue(Column columnInfo, ResultSet rs, Database database) throws SQLException, DatabaseException {\n String columnTypeName = rs.getString(\"String_Node_Str\");\n String columnName = rs.getString(\"String_Node_Str\");\n String tableName = rs.getString(\"String_Node_Str\");\n ...
"public void spawnWeed() {\n this.crossCrop = false;\n this.clearPlant();\n this.weed = true;\n this.markDirtyAndMarkForUpdate();\n}\n"
"public boolean equals(Object o) {\n if (this == o)\n return true;\n if (o == null || getClass() != o.getClass())\n return false;\n ForeignKey that = (ForeignKey) o;\n return getForeignKeyColumns().equalsIgnoreCase(that.getForeignKeyColumns()) && foreignKeyTable.equals(that.foreignKeyTable) &&...
"private void insertCard(Class<? extends Card> type, int slot) throws NoSuchMethodException, IllegalArgumentException, InvocationTargetException {\n if (getMemory().getCard(slot).isPresent()) {\n if (getMemory().getCard(slot).get().getClass().equals(type)) {\n return;\n }\n getMemory(...
"ClassDefinition createClassDefinition(byte[] compressedBinary) throws IOException {\n final ContextAwareDataOutput out = pop();\n final byte[] binary;\n try {\n decompress(compressedBinary, out);\n binary = out.toByteArray();\n } finally {\n push(out);\n }\n final ClassDefinition...
"private static HyperLogLogPlus decodeBytes(DataInputStream oi) throws IOException {\n int p = Varint.readUnsignedVarInt(oi);\n int sp = Varint.readUnsignedVarInt(oi);\n int formatType = Varint.readUnsignedVarInt(oi);\n if (formatType == 0) {\n int size = Varint.readUnsignedVarInt(oi);\n byte[...
"private void addExpectedResult(final ExpectedResultDTO result) {\n if (result == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n final LogFrameGroupDTO group = result.getGroup();\n RowsGroup<LogFrameGroupDTO> g = (RowsGroup<LogFrameGroupDTO>) expectedResultsView.getGroup(group.g...
"public static String sign(Number number, DBAccessor dba, User user) {\n try {\n user = SMSUtility.getUser(dba, user);\n return signWithUser(number, user);\n } catch (InvalidDatabaseStateException e) {\n e.printStackTrace();\n }\n return null;\n}\n"
"public void testHttpEndPoint() throws KurentoMediaFrameworkException, InterruptedException {\n final PlayerEndPoint player = mediaPipeline.createPlayerEndPoint(\"String_Node_Str\");\n HttpEndPoint httpEndPoint = mediaPipeline.createHttpEndPoint(0, 0);\n player.connect(httpEndPoint, KmsMediaType.VIDEO);\n f...
"public void testAsyncDeploy() throws Exception {\n long start = System.currentTimeMillis();\n long delay = 1000;\n MyAsyncVerticle verticle = new MyAsyncVerticle(f -> {\n vertx.setTimer(delay, id -> {\n f.setResult(null);\n });\n }, f -> f.setResult(null));\n vertx.deployVerticl...
"private int insertMission(DownloadMission mission) {\n int i = -1;\n DownloadMission m = null;\n if (mMissions.size() > 0) {\n do {\n m = mMissions.get(++i);\n } while (m.timestamp > mission.timestamp && i < mMissions.size() - 1);\n } else {\n i = 0;\n }\n mMissions.ad...
"private synchronized void done() {\n mode = Mode.INACTIVE;\n bindings.removeActionMap(PICK_TAGS_MAP);\n bindings.removeInputMap(PICK_TAGS_MAP);\n renderer.removeOverlayRenderer(overlay);\n panel.repaint();\n}\n"
"private void onWrite() throws IOException {\n if (pendingRule != null) {\n pendingRule.performAction();\n if (pendingRule != null)\n return;\n }\n boolean keepScanning = true;\n RESCAN: while (keepScanning) {\n if (isDeleteMode()) {\n if (buffer.deleteUntil(delete...
"public String getName() {\n return name.substring(Prefix.ATOMIC_LONG.length());\n}\n"
"public void activate() {\n initializeActionBaseSecurityElements();\n initializeAvailableUsers(null);\n initializeAvailableSystemRoles(null);\n}\n"
"private boolean eq(KeyWriter keyWriter, long offset) {\n long a = kStart + offset;\n long b = keyWriter.startAddr;\n if (Unsafe.getUnsafe().getInt(a) != Unsafe.getUnsafe().getInt(b)) {\n return false;\n }\n long lim = b + keyWriter.len;\n a += keyDataOffset;\n b += keyDataOffset;\n while...
"public synchronized String getConfigProperty(Config.ConfigProperty configProperty) {\n SeLionLogger.getLogger().entering(configProperty);\n checkArgument(configProperty != null, \"String_Node_Str\");\n String propValue = null;\n if (baseConfig.containsKey(configProperty.getName())) {\n propValue = b...
"protected void performCreation(int button) {\n DNDService.getInstance().performDrop(getTemplate(), getTargetEditPart(), DND.DROP_DEFAULT, new DNDLocation(getLocation()));\n}\n"
"void bootstrapTree(Asset asset, Subscriber<TopologicalEvent> subscriber) throws InvalidSubscriberException {\n asset.forEachChild(c -> {\n subscriber.onMessage(ExistingAssetEvent.of(asset.fullName(), c.name(), c.viewTypes()));\n bootstrapTree(c, subscriber);\n });\n}\n"
"private void check(String agentId0, long l1) {\n TSpan span = new TSpan();\n span.setAgentId(agentId0);\n span.setStartTime(l1);\n byte[] traceIndexRowKey = SpanUtils.getAgentIdTraceIndexRowKey(span.getAgentId(), span.getStartTime());\n String agentId = BytesUtils.toString(traceIndexRowKey, 0, PinpointC...
"private void setData(int count, float range) {\n ArrayList<String> xVals = new ArrayList<String>();\n for (int i = 0; i < count; i++) {\n xVals.add((i) + \"String_Node_Str\");\n }\n ArrayList<Entry> yVals = new ArrayList<Entry>();\n for (int i = 0; i < count; i++) {\n float mult = (range +...
"public void update() {\n if (worldObj.isRemote) {\n return;\n }\n checkCounter--;\n if (checkCounter > 0) {\n return;\n }\n checkCounter = 10;\n boolean newout = false;\n EnumFacing inputSide = getFacing(worldObj.getBlockState(getPos())).getInputSide();\n BlockPos newpos = getP...
"private void markStartAllRefs(String prefix) throws IOException, MissingObjectException, IncorrectObjectTypeException {\n for (Entry<String, Ref> refEntry : input.getRepository().getRefDatabase().getRefs(prefix).entrySet()) {\n Ref ref = refEntry.getValue();\n if (ref.isSymbolic())\n contin...
"public void addToElement(Element root) {\n Element section = root.addElement(\"String_Node_Str\");\n section.addAttribute(\"String_Node_Str\", this.ident);\n section.addAttribute(\"String_Node_Str\", this.title);\n QTIObject obj_duration = this.getDuration();\n if (obj_duration != null) {\n obj_d...
"jedd.internal.RelationContainer callGraph() {\n return new jedd.internal.RelationContainer(new jedd.Attribute[] { tgtm.v(), stmt.v(), srcm.v() }, new jedd.PhysicalDomain[] { MT.v(), ST.v(), MS.v() }, (\"String_Node_Str\" + \"String_Node_Str\"), callGraph);\n}\n"
"private static void expandTransitiveImportArg(Artifact artifact, Consumer<String> args) {\n args.accept(\"String_Node_Str\" + ProtoCommon.getPathIgnoringRepository(artifact).toString() + \"String_Node_Str\" + artifact.getExecPathString());\n}\n"