content
stringlengths
40
137k
"protected Element getKeyboardSelectedElement() {\n int rowIndex = getKeyboardSelectedRow();\n if (rowIndex >= 0 && childContainer.getChildCount() > rowIndex) {\n return childContainer.getChild(rowIndex).cast();\n }\n return null;\n}\n"
"private static void selectOldest(State[] a, int i, int j, int k) {\n int ii, jj, kk;\n if (i >= k)\n return;\n jj = i + random.nextInt() % (k - i);\n swap(a, i, jj);\n for (ii = jj = kk = i + 1; kk < k; ++kk) {\n if (a[kk].time <= a[i].time) {\n swap(a, jj++, kk);\n }\n ...
"public void action(String actionName, Player player) {\n if (getCitizen() != null) {\n if (getCitizen().hasTrait(AssignmentTrait.class))\n DenizenAPI.getCurrentInstance().getNPCRegistry().getActionHandler().doAction(actionName, this, player, getAssignmentTrait().getAssignment());\n }\n}\n"
"public void addSearchProgressListener(HistorySearchProgressListener listener) {\n synchronized (progressListeners) {\n progressListeners.add(listener);\n }\n}\n"
"public void userThreadFinished(final Thread userThread) {\n if (this.encapsulatedRuntimeTask != null) {\n this.encapsulatedRuntimeTask.userThreadFinished(userThread);\n } else {\n LOG.error(\"String_Node_Str\");\n }\n}\n"
"public void onBlockPlace(BlockPlaceEvent event) {\n User user = plugin.userManager.getUser(event.getPlayer());\n Plot plot = plugin.plotManager.getPlotAtLocation(event.getBlock().getLocation());\n if (plot != null && !plot.getOwner().equals(player.getDisplayName())) {\n event.setCancelled(true);\n ...
"public void setExtension(String newExtension) {\n String oldExtension = extension;\n extension = newExtension;\n if (eNotificationRequired()) {\n eNotify(new ENotificationImpl(this, Notification.SET, PropertiesPackage.FILE_ITEM__EXTENSION, oldExtension, extension));\n}\n"
"public Insets getPaddingAndBorder() {\n Border b = border;\n Insets m = null;\n if (b instanceof EmptyBorder) {\n m = ComponentFactoryHelper.getBorderInsetsForNoComponent(b);\n b = null;\n }\n return ((ChangesRecorder) scriptable.getChangesRecorder()).getPaddingAndBorder(size.height, b, m,...
"public static String[] featureCounts(String bin, String gffFile, String bamFile, String outFile, int numberOfThreads, String customArgs) {\n ArrayList<String> command = new ArrayList<>();\n if (bin.endsWith(\"String_Node_Str\"))\n command.add(bin + featureCountsCommand);\n else\n command.add(bin...
"public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) {\n TileEntity te = world.getTileEntity(x, y, z);\n boolean result = !world.isRemote;\n if (te != null && te instanceof IFluidHandler && !player.isSneaking() && !...
"public void testMaxResolution() throws Exception {\n InMemoryTableService.create(\"String_Node_Str\");\n InMemoryTableService.create(\"String_Node_Str\");\n int resolution = Integer.MAX_VALUE;\n int rollTimebaseInterval = 3600;\n FactTable table = new FactTable(new InMemoryMetricsTable(\"String_Node_Str...
"public void onServiceConnected(ComponentName className, IBinder service) {\n mBoundService = ((CommCareSessionService.LocalBinder) service).getService();\n synchronized (mBoundService) {\n mBoundService.logIn(key, user);\n }\n mIsBound = true;\n mIsBinding = false;\n if (database != null && da...
"synchronized void submitNewJobs() {\n try {\n for (JobPriority priority : JobPriority.values()) {\n if (isQueueEmpty(JobChannelUtil.getChannel(priority))) {\n submitNextNewJob(priority);\n }\n }\n }\n if (numberOfSubmittedJobs > 0) {\n log.info(\"Strin...
"public static void explodeJar(File source, File destination) throws IOException {\n JarFile jarFile = null;\n String fileSystemName = null;\n try {\n jarFile = new JarFile(source);\n Enumeration<JarEntry> e = jarFile.entries();\n while (e.hasMoreElements()) {\n JarEntry entry =...
"protected static void registerMock(MockedType mockedType, Object mock) {\n TestRun.getExecutingTest().registerMock(mockedType, mock);\n}\n"
"public boolean isEnabled() {\n IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n if (window == null) {\n return false;\n }\n IWorkbenchPage page = window.getActivePage();\n IWorkbenchPart part = page.getActivePart();\n if (!(part instanceof FilterView)) {\n ...
"private void store(final ItemStack stack) {\n if (!storeItemStack(stack)) {\n ChunkCoordinates coordinates = turtle.getPosition();\n int direction = turtle.getDirection();\n int x = coordinates.posX + Facing.offsetsXForSide[direction];\n int y = coordinates.posY + Facing.offsetsYForSide[...
"public void analyseCollectorData() {\n log.debug(\"String_Node_Str\");\n now = System.currentTimeMillis();\n findJvmStates();\n for (JvmState jvmState : jvmStates.values()) {\n if (jvmState.getInvocationDataUploadedAt() == 0L) {\n FileUtils.resetAllConsumedInvocationDataFiles(jvmState.get...
"public void createServiceFunctionForwarder(ServiceFunction serviceFunction) {\n LOG.debug(\"String_Node_Str\", Thread.currentThread().getStackTrace()[1]);\n InstanceIdentifier<ServiceFunctionForwarder> sffIID;\n ServiceFunctionForwarderKey serviceFunctionForwarderKey = new ServiceFunctionForwarderKey(serviceF...
"public List<Record> getRecordByDate(Context context, Date date) {\n RecordDao recordDao = getDaoSession(context).getRecordDao();\n return recordDao.queryBuilder().where(RecordDao.Properties.IsDel.eq(false)).where(RecordDao.Properties.RecordDate.eq(date)).whereOr(RecordDao.Properties.RecordType.eq(Constant.Record...
"private void postAchievementUnlockedEvent(final String achievementName) {\n mHandler.postDelayed(new Runnable() {\n public void run() {\n Games.Achievements.unlock(mGoogleApi, achievementName);\n }\n }, ONE_SEC_IN_MILLISECONDS);\n }\n}\n"
"private Chart getChart(String[] notes, Spectrum<Complex[]>... fs) {\n double[] xData = new double[fs[0].getState().length];\n double[][] yData = new double[fs.length][fs[0].getState().length];\n final float timelapseInTheCepstrum = fs[0].getState().length * 1.0f / fs[0].getSampleRate();\n for (int i = 10; ...
"public void init() throws Exception {\n _node1 = new ServerDispatcher(Listener.NULL_LISTENER);\n _node2 = new ServerDispatcher(Listener.NULL_LISTENER);\n _fd1 = new FailureDetectorImpl(5000, FailureDetectorImpl.OPEN_PIN);\n _tport1 = new TransportImpl(_fd1);\n _node1.init(_tport1);\n _tport2 = new Tr...
"public void add(Widget w) {\n Element container = createWidgetContainer();\n DOM.appendChild(getElement(), container);\n initChildWidget(w);\n initWidgetContainer(container);\n super.add(w, container);\n}\n"
"private void initUIWithUsersData() {\n loadAvatar();\n fullNameEditText.setText(user.getFullName());\n if (TextUtils.isEmpty(user.getEmail())) {\n emailLinearLayout.setVisibility(View.GONE);\n } else {\n emailLinearLayout.setVisibility(View.VISIBLE);\n emailTextView.setText(user.getEma...
"protected String getNodeLabel() {\n return repObjType.getLabel();\n}\n"
"public void doExecute() throws BuildException {\n try {\n if (pomFile == null) {\n throw new BuildException(\"String_Node_Str\");\n }\n if (ivyFile == null) {\n throw new BuildException(\"String_Node_Str\");\n }\n ModuleDescriptor md = PomModuleDescriptorPars...
"public Object getValue(int index, int selector, Object parameters) {\n if (index == 1) {\n return getLogicalName();\n }\n if (index == 2) {\n return GXDLMSClient.changeType(GXCommon.getBytes(getCalendarNameActive()), DataType.OCTET_STRING);\n }\n if (index == 3) {\n ByteArrayOutputS...
"protected void initConnectionParametersWithContext(IElement element, IContext context) {\n if (connParameters == null) {\n connParameters = new ConnectionParameters();\n }\n Object value = elem.getPropertyValue(\"String_Node_Str\");\n IElementParameter compList = elem.getElementParameterFromField(EP...
"public String getDcTitle(String name, DLNAResource dlna) {\n if (line_w == -1) {\n String s = getTextWrap();\n line_w = getIntAt(s, \"String_Node_Str\", 0);\n if (line_w > 0) {\n line_h = getIntAt(s, \"String_Node_Str\", 0);\n indent = getIntAt(s, \"String_Node_Str\", 0);\...
"public static String getSecurityMechanismString(CSIV2TaggedComponentInfo tCI, CompoundSecMech[] list, String name) {\n StringBuffer b = new StringBuffer();\n b.append(\"String_Node_Str\" + name);\n try {\n for (int i = 0; list != null && i < list.length; i++) {\n CompoundSecMech m = list[i];...
"public void handledPostLoad(PersonEventDispatch user) {\n if (user != null) {\n user.setLastName(\"String_Node_Str\");\n }\n}\n"
"public ListBoxModel doFillProfileItems(String endpointUrl, String token, String workspace, String box) {\n LOGGER.log(Level.FINE, \"String_Node_Str\" + endpointUrl + \"String_Node_Str\" + workspace + \"String_Node_Str\" + box);\n ListBoxModel profiles = new ListBoxModel();\n try {\n if (StringUtils.isE...
"public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts) {\n try {\n Field xmlField = (Field) xmlBinaryDataCollectionMapping.getField();\n XPathFragment lastFragment = xmlField.getLastXPathFragment();\n if (!lastFragment.isAttribute()) {\n ...
"private void generateSetterMethodForStateField() {\n ASTRewrite sourceRewriter = ASTRewrite.create(sourceTypeDeclaration.getAST());\n AST contextAST = sourceTypeDeclaration.getAST();\n ListRewrite contextBodyRewrite = sourceRewriter.getListRewrite(sourceTypeDeclaration, TypeDeclaration.BODY_DECLARATIONS_PROPE...
"private void populateData(IRowResultSet rowResultSet, IResultClass rsMeta, SortSpec sortSpec, StopSign stopSign) throws DataException {\n long startTime = System.currentTimeMillis();\n SizeOfUtil sizeOfUtil = new SizeOfUtil(rsMeta);\n long memoryCacheSize = CacheUtil.computeMemoryBufferSize(eventHandler.getAp...
"public boolean isType(IType type) {\n if (type.isArrayType()) {\n IType elementType = type.getElementType();\n return this.isElementType(elementType);\n }\n if (type.isSuperClassOf(RANGE)) {\n IType iterableType = type.resolveType(IterableForStatement.ITERABLE_TYPE);\n return this....
"private int sendBackups(BackupAwareOperation backupAwareOp) throws Exception {\n final Operation op = (Operation) backupAwareOp;\n final boolean returnsResponse = op.returnsResponse();\n final int maxBackups = Math.min(node.getClusterService().getSize(), PartitionInfo.MAX_REPLICA_COUNT) - 1;\n int syncBack...
"public static VFSItem resolveFile(VFSContainer rootContainer, String path) {\n path = VFSManager.sanitizePath(path);\n if (path.equals(\"String_Node_Str\")) {\n return rootContainer;\n }\n if (rootContainer instanceof LocalFolderImpl) {\n LocalFolderImpl l = (LocalFolderImpl) rootContainer;\n...
"public void fireMouseEvent(Widget sender, Event event) {\n final Element senderElem = sender.getElement();\n int x = DOM.eventGetClientX(event) - DOM.getAbsoluteLeft(senderElem) + DOM.getElementPropertyInt(senderElem, \"String_Node_Str\") + Window.getScrollLeft();\n int y = DOM.eventGetClientY(event) - DOM.ge...
"public void startPage(IPageContent page) {\n pageNo++;\n if (pageNo > 1 && outputMasterPageContent == false) {\n writer.openTag(\"String_Node_Str\");\n writer.closeTag(\"String_Node_Str\");\n }\n writer.openTag(HTMLTags.TAG_DIV);\n if (page != null) {\n StringBuffer styleBuffer = ne...
"public static void startGCspyServer() throws InterruptiblePragma {\n int port = getGCspyPort();\n Log.write(\"String_Node_Str\");\n Log.write(port);\n Log.write(\"String_Node_Str\");\n Log.writeln(getGCspyWait());\n if (port > 0) {\n ActivePlan.global().startGCspyServer(port, getGCspyWait());\...
"public static Cut[] getCuts(int k, Subproblem subproblem, int[] dim, boolean anchor0) {\n Cut[] cuts;\n int m = subproblem.getQueryEndIndex() - subproblem.getQueryStartIndex() - (anchor0 ? 1 : 0);\n if (k < m) {\n cuts = new Cut[k];\n for (int i = 0; i < k; i++) {\n cuts[i] = new Cut(...
"public boolean isConcernedByUserStory(UserStory userStory) {\n Task referencedTask = getTask();\n if (referencedTask != null) {\n return referencedTask.isConcernedByUserStory(userStory);\n }\n return false;\n}\n"
"void doubleBufferedPaint(GC dest) {\n final Point size = getSize();\n if (size.x <= 0 || size.y <= 0)\n return;\n if (buffer != null) {\n final Rectangle bufferBounds = buffer.getBounds();\n if (bufferBounds.width != size.x || bufferBounds.height != size.y) {\n buffer.dispose()...
"public void contextDestroyed(ServletContextEvent sce) {\n try {\n System.err.println(\"String_Node_Str\");\n if (main != null) {\n main.destroy();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n}\n"
"public DiscoveryStrategy newDiscoveryStrategy(DiscoveryNode discoveryNode, ILogger logger, Map<String, Comparable> properties) {\n return new LifecycleDiscoveryStrategy(startLatch, stopLatch, discoveryNode, discoveryNodes, logger, properties);\n}\n"
"public InformedSearchProblem<WeightedEdge, V, Double> in(final HipsterDirectedGraph<V, WeightedEdge> graph) {\n return new InformedSearchProblem<WeightedEdge, V, Double>() {\npublic Iterable<ActionState<WeightedEdge, V>> transitionsFrom(V state) {\n Set<ActionState<WeightedEdge, V>> as = new HashSet<ActionState<...
"public void Load() {\n String[] rs = context.LoadBaseline(this);\n String c = (rs[1].matches(\"String_Node_Str\") ? \"String_Node_Str\" : \"String_Node_Str\") + (rs[1].matches(\"String_Node_Str\") ? rs[1] : rs[1] + \"String_Node_Str\" + this.pvob);\n logger.debug(\"String_Node_Str\" + c);\n String s = \"St...
"private static void neglectingWarn(final String fileName, final String elt, final int size) {\n if (size > 1) {\n LOG.warn(fileName + \"String_Node_Str\" + elt + \"String_Node_Str\" + \"String_Node_Str\");\n }\n}\n"
"public void testDecode() throws Exception {\n Gl200TextProtocolDecoder decoder = new Gl200TextProtocolDecoder(new Gl200Protocol());\n verifyAttributes(decoder, buffer(\"String_Node_Str\"));\n verifyAttributes(decoder, buffer(\"String_Node_Str\"));\n verifyPosition(decoder, buffer(\"String_Node_Str\"));\n ...
"private StoragePool createNfsStoragePool(Connect conn, StoragePoolVO pool) {\n String targetPath = _mountPoint + File.separator + pool.getUuid();\n LibvirtStoragePoolDef spd = new LibvirtStoragePoolDef(poolType.NFS, pool.getUuid(), pool.getUuid(), pool.getHostAddress(), pool.getPath(), targetPath);\n _storage...
"private void doValidateConstraints(SurveyQuestion question, Constraints con, Errors errors) {\n if (con.getDataType() == null) {\n errors.reject(\"String_Node_Str\");\n return;\n }\n UIHint hint = question.getUiHint();\n if (hint == null) {\n rejectField(errors, \"String_Node_Str\", \"...
"private ServiceFunctionChain findServiceFunctionChain(String name) {\n ServiceFunctionChainKey key = new ServiceFunctionChainKey(name);\n InstanceIdentifier<ServiceFunctionChain> serviceFunctionChainInstanceIdentifier = InstanceIdentifier.builder(ServiceFunctionChains.class).child(ServiceFunctionChain.class, key...
"private void _checkMissingConstraints() {\n StringBuffer errorMessage = new StringBuffer(_eol + \"String_Node_Str\" + getUseCaseName() + \"String_Node_Str\" + _eol);\n boolean hasError = false;\n for (String trainedValue : _trainedConstraints) {\n errorMessage += \"String_Node_Str\" + trainedValue + \"...
"public void validateClusterCreate(List<String> failedMsgList, List<String> warningMsgList, final List<String> distroRoles) {\n boolean namenodeHACheck = false;\n int masterCount = 0, jobtrackerCount = 0, hbasemasterCount = 0, zookeeperCount = 0, workerCount = 0, numOfJournalNode = 0;\n boolean appendWarningSt...
"protected void setUp() throws Exception {\n super.setUp();\n if (database != null) {\n if (!database.getConnection().getAutoCommit()) {\n database.rollback();\n }\n createMigrator(completeChangeLog).forceReleaseLock();\n }\n}\n"
"public static void printSensorData(String sensorname, StringTokenizer st, PrintStream writer) {\n switch(sensorname) {\n case \"String_Node_Str\":\n String angle = st.nextToken();\n Double potValue = Double.parseDouble(angle);\n potValue = -(potValue + OFFSET) / ARD_TO_DEG;\n...
"final void killServicesLocked(ProcessRecord app, boolean allowRestart) {\n if (false) {\n if (app.services.size() > 0) {\n Iterator<ServiceRecord> it = app.services.iterator();\n while (it.hasNext()) {\n ServiceRecord r = it.next();\n for (int conni = r.con...
"private Stock getStockFromStockApiResponse(StockApiResponse stockApiResponse) {\n Stock stock = new Stock();\n if (stockApiResponse.getErrorMessage() != null) {\n stock.setValidStock(false);\n return stock;\n }\n stock.setValidStock(true);\n DecimalFormat df = new DecimalFormat(\"String_No...
"public static ExpressionButton createExpressionButton(Composite parent, int style, boolean allowConstant) {\n ExpressionButton button = new ExpressionButton(parent, style, allowConstant);\n IExpressionButtonProvider provider = (IExpressionButtonProvider) ElementAdapterManager.getAdapter(button, IExpressionButton...
"public void process(ResponseBuilder rb) throws IOException {\n if (activated) {\n SolrParams params = rb.req.getParams();\n Integer original_limit = params.getInt(\"String_Node_Str\", params.getInt(\"String_Node_Str\"));\n SolrQueryRequest req = rb.req;\n SolrQueryResponse rsp = rb.rsp;\...
"public boolean isInstanceOfMockedClass(Object mockedInstance) {\n Class<?> mockedClass = mockedInstance.getClass();\n return findClassAssignableFrom(mockedClasses, mockedClass) != null;\n}\n"
"public LogisticRegressionParams doCompute(WorkerContext<LogisticRegressionParams, LogisticRegressionParams> context) {\n if (context.isFirstIteration()) {\n return new LogisticRegressionParams();\n } else {\n this.weights = context.getLastMasterResult().getParameters();\n double[] gradients ...
"private void handleCharacters() {\n if (context.expectText()) {\n if (firstCIIChunk && fastInfosetStreamReader.getTextAlgorithmBytes() == null) {\n buffer.append(fastInfosetStreamReader.getTextCharacters(), fastInfosetStreamReader.getTextStart(), fastInfosetStreamReader.getTextLength());\n ...
"final void appNotResponding(ProcessRecord app, ActivityRecord activity, ActivityRecord parent, boolean aboveSystem, final String annotation) {\n ArrayList<Integer> firstPids = new ArrayList<Integer>(5);\n SparseArray<Boolean> lastPids = new SparseArray<Boolean>(20);\n if (mController != null) {\n try {...
"private static void registerStatusLogger(final MBeanServer mbs, final Executor executor) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException {\n final StatusLoggerAdmin mbean = new StatusLoggerAdmin(executor);\n register(mbs, mbean, mbean.getObjectName());\n}\n"
"public void compute(double x, double y, double z, Point2D_F64 out) {\n double[] radial = distortion.radial;\n double t1 = distortion.t1;\n double t2 = distortion.t2;\n double r2 = x * x + y * y;\n double ri2 = r2;\n double sum = 0;\n for (int i = 0; i < radial.length; i++) {\n sum += radial...
"public void run() {\n List<FOXTreeNode> list = new ArrayList<FOXTreeNode>();\n FileDialog f = new FileDialog(shell);\n String file = f.open();\n if (file != null) {\n boolean clickOk = false;\n TreeNode treeNodeRoot = null;\n String detailedMessage = \"String_Node_Str\";\n try {...
"public String generateVariableDeclaration() throws IllegalActionException {\n StringBuffer code = new StringBuffer();\n CompositeActor container = (CompositeActor) _director.getContainer();\n GenericCodeGenerator codeGenerator = getCodeGenerator();\n {\n NamedProgramCodeGeneratorAdapter adapterObjec...
"protected void addDependency(final AbstractWorkflowStep step) {\n checkNotNull(step, \"String_Node_Str\");\n if (step == this)\n throw new EoulsanRuntimeException(\"String_Node_Str\" + step.getId());\n if (this.getWorkflow() != step.getWorkflow())\n throw new EoulsanRuntimeException(\"String_Nod...
"private void cleanResources(HazelcastException response) {\n final Iterator<Map.Entry<Integer, ClientCallFuture>> iter = callIdMap.entrySet().iterator();\n while (iter.hasNext()) {\n final Map.Entry<Integer, ClientCallFuture> entry = iter.next();\n iter.remove();\n entry.getValue().notify(re...
"private void cannotSubtractConstantBackgroundAndComputeLogLikelihoodRatio(BaseNonLinearFunction nlf1, BaseNonLinearFunction nlf2, BaseNonLinearFunction nlf3) {\n int n = maxx * maxx;\n double[] a = new double[] { 1 };\n nlf1.initialise(a);\n nlf2.initialise(a);\n nlf3.initialise(a);\n RandomDataGener...
"private void initConfig() {\n ConfigEntry ce, conditionEntry;\n final SubConfiguration subConfig = getPluginConfig();\n config.setGroup(new ConfigGroup(getHost(), getIconKey()));\n config.addEntry(conditionEntry = new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, subConfig, ExtractionConstants.CONFIG_KEY_USE_...
"public CalculationResultMap evaluate(Collection<Integer> cohort, Map<String, Object> parameterValues, PatientCalculationContext context) {\n Boolean onIpt = false;\n Program iptProgram = MetadataUtils.existing(Program.class, IPTMetadata._Program.IPT);\n Set<Integer> alive = Filters.alive(cohort, context);\n ...
"public void splitChunks(InputStream in, String identifier) {\n outputs.clear();\n BufferedReader br = null;\n List<String[]> lines = new ArrayList<>(maxChunkSize);\n log.log(Level.INFO, \"String_Node_Str\" + identifier);\n try {\n br = new BufferedReader(new InputStreamReader(in));\n Strin...
"private void configureProperties(final Properties properties, final Object object, final String prefix) throws IOException {\n final List<String> propertyNames = getStringCsvList(properties, getKey(prefix, \"String_Node_Str\"));\n final Class<? extends Object> objClass = object.getClass();\n final Iterator<St...
"private void syncImpl() {\n ArrayList<AvatarConfigFile> uploadList = new ArrayList();\n ArrayList<AvatarConfigFile> downloadList = new ArrayList();\n try {\n List<ContentNode> avatarList = avatarsDir.getChildren();\n for (ContentNode a : avatarList) {\n if (a instanceof ContentResourc...
"public void evaluate() throws Throwable {\n ProcessBuilder builder = new ProcessBuilder();\n builder.command(buildCommand());\n builder.redirectErrorStream(true);\n System.out.println(\"String_Node_Str\" + System.getProperty(\"String_Node_Str\"));\n System.out.println(\"String_Node_Str\" + builder.comma...
"public String getPartName() {\n if (item != null) {\n IRepositoryView viewPart = RepositoryManagerHelper.findRepositoryView();\n if (viewPart != null) {\n RepositoryNode repositoryNode = rEditorInput.getRepositoryNode();\n if (repositoryNode != null) {\n return get...
"public void parse(IParserManager pm, IToken token) {\n if (this.mode == END) {\n if (this.value != null) {\n this.field.setValue(this.value);\n }\n pm.popParser(true);\n return;\n }\n int type = token.type();\n switch(type) {\n case Symbols.SEMICOLON:\n ...
"public void processGlobalElements(Project project) {\n if (this.globalElements == null) {\n return;\n }\n Iterator<QName> keys = this.globalElements.keySet().iterator();\n while (keys.hasNext()) {\n QName next = keys.next();\n ElementDeclaration nextElement = this.globalElements.get(ne...
"protected void actionDispatch() {\n final Intent thisIntent = getIntent();\n final String action = thisIntent.getAction();\n Intent callbackIntent = getIntent();\n int callbackResult = RESULT_CANCELED;\n PassList.setMasterKey(masterKey);\n CategoryList.setMasterKey(masterKey);\n if (ch == null) {\...
"public ResponseStatus handleResponse(Player p, String r) {\n System.out.println(\"String_Node_Str\" + p.getDisplayName() + \"String_Node_Str\" + r);\n SpoutPlayer player = (SpoutPlayer) p;\n int optionOffset = 0;\n if (MenuMetaMod.debug)\n System.out.println(\"String_Node_Str\" + r);\n InGameHUD ...
"private void exportJobForPOJO(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {\n File tmpJob = null;\n try {\n tmpJob = File.createTempFile(\"String_Node_Str\", \"String_Node_Str\", null);\n exportChoiceMap.put(ExportChoice.binaries, true);\n exportChoiceMap...
"private void loadIssuesFromDB() {\n initIssueMap();\n for (Issue i : _db.getIssues(this)) {\n _log.debug(\"String_Node_Str\" + i.getName() + \"String_Node_Str\");\n _issues.put(i.getName(), i);\n }\n}\n"
"private void renderAttribute(StringBuilder buffer, Attribute attribute) {\n buffer.append(attribute.getName()).append(\"String_Node_Str\").append(escapeAttributeValue(attribute.getValue())).append(\"String_Node_Str\");\n}\n"
"private void checkConflict(ItemRecord record) {\n Property property = record.getProperty();\n if (property != null) {\n try {\n List<IRepositoryViewObject> allObjects = DqRepositoryViewService.getAllRepositoryResourceObjects(true);\n for (IRepositoryViewObject object : allObjects) {\...
"public void testMissing() throws IOException, GeoIp2Exception {\n WebServiceClient client = new WebServiceClient.Builder(42, \"String_Node_Str\").testTransport(this.transport).locales(Arrays.asList(\"String_Node_Str\")).build();\n CityIspOrgResponse cio = client.cityIspOrg(InetAddress.getByName(\"String_Node_Str...
"private void addDoneButton() {\n FlexTable buttonPanel = new FlexTable();\n Button done = new Button(messages.done());\n done.addStyleName(\"String_Node_Str\");\n done.addClickHandler(new ClickHandler() {\n public void onClick(ClickEvent event) {\n History.newItem(ChooseStepCase3Pilot.gen...
"public boolean apply(Game game, Ability source) {\n Permanent permanent = game.getPermanent(source.getTargets().getFirstTarget());\n if (permanent != null) {\n if (permanent.sacrifice(source.getSourceId(), game)) {\n Player permanentController = game.getPlayer(permanent.getControllerId());\n ...
"private Body getBodyFromMethodSource(String phaseName) {\n MethodSource ms = this.ms;\n if (this.activeBody == null) {\n if (ms == null)\n throw new RuntimeException(\"String_Node_Str\" + this.getSignature());\n return ms.getBody(this, phaseName);\n } else\n return this.activeB...
"Triple<List<ColumnOp>, SqlConvertible, Map<Integer, String>> createBaseQueryForReplacement(AggMeta sourceAggMeta, ExecutionInfoToken token) {\n Map<Integer, String> multipleTierTableTierInfo = new HashMap<>();\n List<ColumnOp> aggColumnlist = new ArrayList<>();\n List<HyperTableCube> cubes = sourceAggMeta.get...
"protected Long convertObjectToLong(Object sourceObject) throws ConversionException {\n if (sourceObject instanceof String && ((String) sourceObject).length() > 0 && ((String) sourceObject).charAt(0) == PLUS) {\n return super.convertObjectToLong(((String) sourceObject).substring(1));\n }\n return super....
"public boolean apply(Game game, Ability source) {\n Permanent creature = game.getPermanent(getTargetPointer().getFirst(game, source));\n if (creature != null) {\n Player controller = game.getPlayer(creature.getControllerId());\n if (controller != null) {\n int power = creature.getPower()...
"public static synchronized void writeChanges(Properties changes) throws IOException {\n Properties homeProps = new Properties();\n InputStream homeStream = loadHomeProps();\n if (homeStream != null) {\n homeProps.load(homeStream);\n homeStream.close();\n }\n for (Map.Entry<Object, Object> ...
"public String getNormalizedForm(String word) {\n StringBuilder res = new StringBuilder();\n boolean first = true;\n ArrayList<String> singleWords = new ArrayList<String>();\n Collections.addAll(singleWords, word.trim().split(\"String_Node_Str\"));\n for (String w : singleWords) {\n try {\n ...
"public void loginWithFacebook() {\n TipsManager.setIsJustLogined(true);\n Session session = Session.getActiveSession();\n if (!session.isOpened() && !session.isClosed()) {\n session.openForRead(new Session.OpenRequest(activity).setPermissions(Arrays.asList(\"String_Node_Str\")).setCallback(facebookStat...
"public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {\n if (args.length == 0) {\n sender.sendMessage(\"String_Node_Str\" + Bukkit.getName() + \"String_Node_Str\" + Bukkit.getVersion() + \"String_Node_Str\" + Bukkit.getBukkitVersion() + \"String_Node_Str\");\n } ...
"public JClassType[] getUpperBounds() {\n if (lazyUpperBounds == null) {\n if (isUpperBound()) {\n lazyUpperBounds = new JClassType[] { getFirstBound() };\n } else {\n lazyUpperBounds = new JClassType[] { getOracle().getJavaLangObject() };\n }\n }\n return lazyUpperBo...