content
stringlengths
40
137k
"private XSElementDecl getSoleElementReferer(XSType t) {\n Set<XSComponent> referer = builder.getReferer(t);\n XSElementDecl sole = null;\n for (XSComponent r : referer) {\n if (r instanceof XSElementDecl) {\n XSElementDecl x = (XSElementDecl) r;\n if (!x.isGlobal())\n ...
"public Raster computeTile(int tileX, int tileY) {\n Point org = new Point(tileXToX(tileX), tileYToY(tileY));\n WritableRaster dest = createWritableRaster(sampleModel, org);\n Rectangle destRect = getTileRect(tileX, tileY).intersection(getBounds());\n if (destRect.isEmpty()) {\n if (setBackground) {\...
"public static String getContainerMetrics(Plus1BannerView view) {\n float density = ((Activity) view.getContext()).getResources().getDisplayMetrics().density;\n return String.format(\"String_Node_Str\", (int) (view.getLayoutParams().width / density + 0.5f), (int) (view.getLayoutParams().height / density + 0.5f));...
"static String processLogin(DataInputStream in, DataOutputStream out, PassthroughConnection ptc, KillableThread thread, boolean auth, ClientInfo clientInfo) {\n Packet02Handshake CtSHandshake = new Packet02Handshake(in, ptc, thread);\n if (CtSHandshake.packetId == null || CtSHandshake.read(in, ptc, thread, true, ...
"protected static String sdbmHash(String str) {\n long hash = 0;\n for (int c : str.toCharArray()) {\n hash = c + (hash << 6) + (hash << 16) - hash;\n }\n return hash;\n}\n"
"public CSharpUsingListChild[] getUsingStatements() {\n List<CSharpUsingListChild> listChildren = new SmartList<>();\n for (String usingListChild : myUsingNamespaceChildren) {\n GlobalSearchScope resolveScope = myContext.getResolveScope();\n DotNetNamespaceAsElement namespace = DotNetPsiSearcher.get...
"public void whenInvalidConfigLocationAsUri_thenFails() throws URISyntaxException {\n cachingProvider.getCacheManager(new URI(\"String_Node_Str\"), null);\n}\n"
"public void onStateEvent(FMLStateEvent event) {\n if (!event.getClass().equals(FMLConstructionEvent.class)) {\n SpongeImpl.postEvent((Event) event, true);\n }\n}\n"
"public final static void writeMap(DataOutputStream dos, Map map) throws IOException {\n if (map == null) {\n writeInt(dos, TYPE_NULL);\n return;\n } else {\n writeInt(dos, TYPE_MAP);\n }\n int size = map.size();\n writeInt(dos, size);\n if (size == 0)\n return;\n Iterat...
"public void documentEnd() {\n if (current_chain != null) {\n current_chain.addGroup(current_group);\n if (isKnownChain(current_chain.getChainID(), current_model) == null) {\n current_model.add(current_chain);\n }\n } else {\n if (DEBUG) {\n System.err.println(\"S...
"public void onUpdate() {\n super.onUpdate();\n boolean canDrive = (getEngineTemperature() > 70 && getTurnedOn() && Config.isFuelRequired(gauge));\n if (world.isRemote) {\n boolean hasFuel = (this.getLiquidAmount() > 0 || !Config.isFuelRequired(gauge));\n if (ConfigSound.soundEnabled) {\n ...
"public void start() {\n serverCommand = PropertiesManager.getProperty(KURENTO_SERVER_COMMAND_PROP, KURENTO_SERVER_COMMAND_DEFAULT);\n gstPlugins = PropertiesManager.getProperty(KURENTO_GST_PLUGINS_PROP, KURENTO_GST_PLUGINS_DEFAULT);\n try {\n workspace = Files.createTempDirectory(\"String_Node_Str\").t...
"public org.eclipse.swt.graphics.Color getBackground(Object element, int columnIndex) {\n int grpSizeValue = getGrpSize(((String[]) element)[gidColumn]);\n return COLOR_LIST[grpSizeValue % COLOR_LIST.length];\n}\n"
"private static Iterator predefinedThemeNames() {\n try {\n return getThemeNames(ResourceLoader.getRootPackageAsFile(ThemeManager.class).getChild(PathUtils.removeLeadingSeparator(RuntimeConstants.THEMES_PATH, \"String_Node_Str\")));\n } catch (IOException e) {\n return Collections.emptyList().iterat...
"public Tree getTree() {\n if (tree == null) {\n TreeFactory factory = new LabeledScoredTreeFactory();\n tree = factory.newTreeNode(\"String_Node_Str\", new ArrayList<Tree>());\n for (int i = 0; i < sentences.size(); i++) {\n tmpTree1.addChild(sentences.get(i).getRootNode());\n ...
"public AppLayout getAppLayout() {\n if (variant == null) {\n variant = Behaviour.LEFT_RESPONSIVE;\n notificationHolder = new DefaultNotificationHolder(newStatus -> {\n });\n badgeHolder = new DefaultBadgeHolder();\n }\n reloadNotifications();\n if (!variant.isTop()) {\n L...
"public Object getProperty(FilePropertyKey property) {\n FileDesc fd = uploader.getFileDesc();\n if (fd != null) {\n switch(property) {\n case NAME:\n return FileUtils.getFilenameNoExtension(fd.getFileName());\n case DATE_CREATED:\n long ct = fd.lastModif...
"public String toString() {\n return \"String_Node_Str\" + mId + \"String_Node_Str\" + mName;\n}\n"
"public void before() {\n cryptCodex = new CryptCodexImpl();\n cryptIO = new CryptIOImpl();\n x509ExtReader = new X509ExtensionsReaderImpl(cryptCodex);\n baltimoreCyberTrustCodeSigningRoot = cryptIO.readX509PEM(new InputStreamReader(X509ExtensionsReaderTest.class.getResourceAsStream(RSRC_NAME_BALTIMORE_CRYB...
"private void updateSize() {\n if (this.getText() == null && this.actions.isEmpty())\n return;\n if (this.getGraphics() == null)\n return;\n this.hasSize = true;\n Rectangle2D labelRect = null;\n if (this.getText() != null && !this.getText().isEmpty()) {\n labelRect = this.getLongest...
"public static double getFailureRate() {\n return .6 / 100.0;\n}\n"
"public void serverCutText(String str, int len) {\n setContents(str);\n SecurityManager sm = System.getSecurityManager();\n try {\n if (sm != null)\n sm.checkSystemClipboardAccess();\n Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();\n if (cb != null) {\n ...
"protected Control createContents(Composite parent) {\n String title = Messages.getString(\"String_Node_Str\");\n getShell().setText(title);\n if (showNodeId != null) {\n setDefaultNode(showNodeId);\n }\n Control control = super.createContents(parent);\n UIUtil.bindHelp(control, IHelpContextIds...
"private int getHeight() {\n return cardHeight + (size() - 1) * stackSpacingY + cardSpacingY + ATTACHMENT_DY_OFFSET * maxAttachedCount;\n}\n"
"public void actionPerform(Database database, IdeFacade ideFacade) throws LiquibaseException {\n StringWriter writer = new StringWriter();\n String changeLogFile = ideFacade.selectChangeLogFile();\n if (changeLogFile == null) {\n return;\n }\n ideFacade.getMigrator(changeLogFile, database).futureR...
"public void actionPerformed(ActionEvent evt) {\n d.dispose();\n}\n"
"public static void main(String[] args) throws Exception {\n int timOut = 10000;\n Server[] ser = new Server[2];\n ser[0] = new Server(Integer.valueOf(args[0]), timOut);\n ser[1] = new Server(Integer.valueOf(args[0]) + 1, timOut);\n double[] dbl = new double[1];\n for (int i = 0; i < dbl.length; i++) ...
"public static void saveXML(Object o, String fileName) {\n XStreamClassLoader loader = new BoofcvClassLoader();\n XStream xstream = new XStream(new PureJavaReflectionProvider(), new DomDriver(), loader, null, new DefaultConverterLookup(), null);\n xstream.registerConverter(new JavaBeanConverter(xstream.getMapp...
"public int getNumJobsFired() {\n return numJobsFired.get();\n}\n"
"public void handleSelectionChanged(ISelection selection) {\n List modelList = getModelList(selection);\n if (modelList == null || modelList.size() == 0)\n return;\n pageGenerator = builder.getPageGenerator(modelList);\n if (container != null && !container.isDisposed()) {\n pageGenerator.creat...
"public void testfillUIConnParams_DB2ZOS() throws Exception {\n java.sql.Connection sqlConnection = mock(java.sql.Connection.class);\n IMetadataConnection metadataBean = mock(IMetadataConnection.class);\n DatabaseConnection connection = mock(DatabaseConnection.class);\n EList<TaggedValue> taggedValues = new...
"protected void execAction3D(THMotionEvent e) {\n Actionable<DLAction> a = null;\n if (e instanceof GenericDOF1Event)\n a = (DOF_1Action) ((GenericDOF1Event<?>) e).getAction();\n if (e instanceof GenericDOF2Event)\n a = (DOF_2Action) ((GenericDOF2Event<?>) e).getAction();\n if (e instanceof Ge...
"public String toString() {\n return \"String_Node_Str\" + runnable.toString();\n}\n"
"public void processJoin(Player player) {\n if (!player.isOnline()) {\n return;\n }\n String name = player.getName();\n j2.irc.processJoin(name);\n j2.ip.processJoin(name);\n j2.warps.processJoin(name);\n j2.damage.processJoin(name);\n j2.jail.processJoin(player);\n this.playerReset(na...
"public IEditorInput computeEditorInput(boolean isOpenItemEditorAction) throws BusinessException {\n IEditorInput result = null;\n if (repViewObj != null) {\n String key = repViewObj.getRepositoryObjectType().getKey();\n Item item = repViewObj.getProperty().getItem();\n if (item instanceof TD...
"public static void createFolders(IContainer container) throws CoreException {\n if (!container.exists()) {\n if (container instanceof IFolder) {\n createFolders(container.getParent());\n ((IFolder) container).create(true, true, null);\n }\n }\n}\n"
"protected Map<String, String> parseParameters(String content) throws AggregationSyntaxException {\n Map<String, String> result = new HashMap<String, String>();\n Tag openTag = Tag.find(\"String_Node_Str\", content);\n while (openTag != null) {\n if (openTag.countTokens() != 2)\n throw new Ag...
"private void createDialog() {\n Document doc = getDocument();\n Element rootElement = doc.getRootElement();\n XulWindow window = null;\n if (rootElement != this) {\n window = (XulWindow) rootElement;\n }\n if (window != null) {\n frame = (JFrame) window.getManagedObject();\n dial...
"protected void beforeHookedMethod(MethodHookParam param) throws Throwable {\n Object systemSensorManager = XposedHelpers.getObjectField(param.thisObject, \"String_Node_Str\");\n SparseArray<Sensor> sensors = getSensors(systemSensorManager);\n int handle = (Integer) (param.args[0]);\n Sensor sensor = sensor...
"public static ConstantInfo createFromConstant(ConstantPool cp, Constant constant) {\n Signature sig;\n MethodRef methodRef;\n ConstantNameAndType nRef;\n AppInfo appInfo = AppInfo.getSingleton();\n byte tag = constant.getTag();\n switch(tag) {\n case Constants.CONSTANT_Class:\n Clas...
"public static void teleportHero(Hero hero) {\n int count = 10;\n int pos;\n do {\n pos = Dungeon.level.randomRespawnCell();\n if (count-- <= 0) {\n break;\n }\n } while (pos == -1);\n if (pos == -1 || Dungeon.bossLevel()) {\n GLog.w(TXT_NO_TELEPORT);\n } else {\...
"public void run() {\n if (ConfigurationManager.isQuitWarningShown()) {\n MessageDialog dialog = new MessageDialog(null, Messages.getI18NString(\"String_Node_Str\").getText(), Messages.getI18NString(\"String_Node_Str\").getText(), false);\n if (dialog.showDialog() == MessageDialog.OK_DONT_ASK_CODE)\n ...
"public void afterParse(CoinData coinData, Transaction tx) {\n UtxoData utxoData = (UtxoData) coinData;\n if (null != utxoData.getInputs()) {\n for (UtxoInput input : utxoData.getInputs()) {\n input.setTxHash(tx.getHash());\n }\n }\n if (tx instanceof LockNulsTransaction) {\n ...
"public IParameterMetaData getParameterMetaData() throws OdaException {\n assertNotNull(callStat);\n if (this.cachedParameterMetaData != null)\n return this.cachedParameterMetaData;\n int[] positionArray = paramUtil.getParameterPositions();\n List paramMetaList1 = this.getCallableParamMetaData();\n ...
"public Image getImage(Object element) {\n if (isRecycleBin(element)) {\n RepositoryNode recyclebinNode = (RepositoryNode) element;\n if (recyclebinNode.getChildren().isEmpty()) {\n return ImageProvider.getImage(ECoreImage.RECYCLE_BIN_EMPTY_ICON);\n } else {\n return ImageP...
"private String getText(Item item) {\n if (item instanceof ContainerItem) {\n return getConainerItemText(item);\n }\n if (item instanceof MDMServerObjectItem) {\n String label = getServerObjectItemText(item);\n if (label == null)\n return item.getProperty().getLabel();\n }\n ...
"private void readjustBounds(PWA3DComputeContext context, Bounds adjustedBounds, Bounds bo) throws ChartException {\n Rectangle rectl = this.getBoundsOfAllAxisLabels();\n double new_top = adjustedBounds.getTop();\n double new_height = adjustedBounds.getHeight();\n double new_left = adjustedBounds.getLeft();...
"public static Structure getBiologicalAssembly(String pdbId, int biolAssemblyNr) throws IOException, StructureException {\n pdbId = pdbId.toLowerCase();\n BioUnitDataProvider provider = BioUnitDataProviderFactory.getBioUnitDataProvider();\n checkInitAtomCache();\n provider.setAtomCache(cache);\n Structur...
"static final int readHeader(final byte[] in, final GifImage img) throws ParseException {\n if (in.length < 6) {\n throw new IOException(\"String_Node_Str\");\n }\n img.header = new String(in, 0, 6);\n if (!img.header.equals(\"String_Node_Str\") && !img.header.equals(\"String_Node_Str\")) {\n ...
"synchronized boolean isModelLoaded() {\n return (mModelState == MODEL_LOADED || mModelState == MODEL_STARTED);\n}\n"
"public void testSetTags() {\n Assert.assertNull(this.c.getTags());\n final Set<String> tags = new HashSet<>();\n tags.add(\"String_Node_Str\");\n tags.add(\"String_Node_Str\");\n this.c.setTags(tags);\n Assert.assertEquals(tags, this.c.getTags());\n}\n"
"public void testRootForSourceFile() throws IOException {\n File testFile = openFile(\"String_Node_Str\");\n IProgramElement node = Ajde.getDefault().getStructureModelManager().getHierarchy().findElementForSourceFile(testFile.getAbsolutePath());\n assertTrue(\"String_Node_Str\", node != null);\n IProgramEle...
"public void execute() {\n try {\n updatePoliticalPlayers();\n } catch (Exception e) {\n System.out.println(\"String_Node_Str\" + e.getMessage());\n }\n repaint();\n if (this.outputdirectory != null && (PublicEnvironmentConnection.getInstance().getRoundsPassed() % 50 == 0)) {\n write...
"public void invalidate(Timeline timeline) throws ExoPlaybackException, IOException {\n Timeline oldTimeline = this.timeline;\n this.timeline = timeline;\n eventHandler.obtainMessage(MSG_TIMELINE_CHANGED, timeline).sendToTarget();\n if (playingPeriod != null) {\n int index = timeline.getIndexOfPeriod...
"private void validate(List<SurveyAnswer> answers, Survey survey) {\n Map<String, SurveyQuestion> questions = getQuestionsMap(survey);\n for (int i = 0; i < answers.size(); i++) {\n SurveyAnswer answer = answers.get(i);\n SurveyQuestion question = questions.get(answer.getQuestionGuid());\n Su...
"private boolean executeUnion(UnionStep unionStep, JavaRDD<Cells> rdd) throws ExecutionException {\n boolean unionSucceed = false;\n if (unionStep instanceof Join) {\n Join joinStep = (Join) unionStep;\n String joinLeftTableName = joinStep.getSourceIdentifiers().get(0);\n JavaRDD<Cells> leftR...
"protected void displayLores(WritableImage screen, int xOffset, int y, int rowAddress) {\n int c1 = ((RAM128k) computer.getMemory()).getMainMemory().readByte(rowAddress + xOffset) & 0x0FF;\n if ((y & 7) < 4) {\n c1 &= 15;\n } else {\n c1 >>= 4;\n }\n Color color = Palette.color[c1];\n Pi...
"public Collection<org.osgi.service.remoteserviceadmin.ImportReference> getImportedEndpoints() {\n Collection<org.osgi.service.remoteserviceadmin.ImportReference> results = new ArrayList<org.osgi.service.remoteserviceadmin.ImportReference>();\n synchronized (importedRegistrations) {\n if (importedRegistrat...
"protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n if (mDirtyHierarchy) {\n mDirtyHierarchy = false;\n sortChildren();\n }\n int myWidth = -1;\n int myHeight = -1;\n int width = 0;\n int height = 0;\n final int widthMode = MeasureSpec.getMode(widthMeasureSpec);...
"void generate(MethodType methodType) {\n this.mv.visitCode();\n if (AnonymousClassLMF.this.implKind == MethodHandleInfo.REF_newInvokeSpecial) {\n this.visitTypeInsn(NEW, AnonymousClassLMF.this.implMethodClassName);\n this.visitInsn(DUP);\n }\n for (int i = 0; i < AnonymousClassLMF.this.argNam...
"public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {\n if ((null != namespaceURI) && (\"String_Node_Str\".equals(namespaceURI))) {\n namespaceURI = null;\n }\n if (qName == null) {\n qName = localName;\n if (namespaceURI != n...
"public void setUp() throws Exception {\n possiblePhoneCountIndicatorImpl = new PossiblePhoneCountIndicatorImpl();\n IndicatorParameters createIndicatorParameters = IndicatorsFactory.eINSTANCE.createIndicatorParameters();\n TextParameters textParameters = IndicatorsFactory.eINSTANCE.createTextParameters();\n ...
"public Blacklist3_30 call() throws XfsException {\n Blacklist3_30 result;\n XfsInfoCommand<CimInfoCommand> command = new XfsInfoCommand<CimInfoCommand>(cimService, CimInfoCommand.GET_BLACKLIST);\n WFSResult wfsResult = null;\n try {\n wfsResult = command.call();\n result = CimFactory.create(c...
"public ActionResult perform(IUnit thisUnit, IUnit targetUnit, GenericItem item) {\n ActionResult retval = ActionResult.SUCCESS;\n thisUnit.changeActionPoints(-1);\n return retval;\n}\n"
"public void enableInteraction(InteractionEvent iev) throws ChartException {\n if (_iun == null) {\n logger.log(ILogger.INFORMATION, Messages.getString(\"String_Node_Str\", getULocale()));\n return;\n }\n final Trigger[] tga = iev.getTriggers();\n if (tga == null) {\n return;\n }\n ...
"private int maxScore(Role role, MachineState state) throws GoalDefinitionException, MoveDefinitionException, TransitionDefinitionException {\n if (stateMachine.isTerminal(state))\n return stateMachine.getGoal(state, role);\n int bestValue = Integer.MIN_VALUE;\n for (Move move : stateMachine.getLegalMov...
"public void selectionChanged(SelectionChangedEvent<CoreVersionAction> se) {\n final CoreVersionAction action = se.getSelectedItem();\n if (action == currentCoreVersion || action == null) {\n return;\n }\n switch(action.getType()) {\n case FUNCTION_COMPARE:\n eventBus.navigateReques...
"public void wrapup() throws IllegalActionException {\n super.wrapup();\n if (_debugListeners != null && _debugListeners.size() > 0) {\n for (Object listener : _debugListeners) {\n _certiRtig.removeDebugListener((DebugListener) listener);\n }\n }\n _strucuralInformation.clear();\n ...
"public GitlabProject load(String userId) throws Exception {\n final GitlabAPI api = GitLabContext.sure(local.getShared()).connect();\n String tailUrl = GitlabProject.URL + \"String_Node_Str\" + projectId;\n if (!userId.isEmpty()) {\n tailUrl += \"String_Node_Str\" + userId;\n }\n return api.retri...
"public IdentifiedDataSerializable createNew(Integer arg) {\n return new TxnPutBackupOperation();\n}\n"
"private void createGeneralTab(CTabFolder tabFolder) {\n CTabItem tabItem1 = new CTabItem(tabFolder, SWT.NULL);\n tabItem1.setText(\"String_Node_Str\");\n Composite parent = new Composite(tabFolder, SWT.NULL);\n parent.setLayout(SWTUtil.createGridLayout(2, false));\n parent.setLayoutData(SWTUtil.createFi...
"public boolean replaceEvent(GameEvent event, Ability source, Game game) {\n Permanent target = ((EntersTheBattlefieldEvent) event).getTarget();\n if (target != null) {\n target.addCounters(CounterType.P1P1.createInstance(), source, game, event.getAppliedEffects());\n }\n return false;\n}\n"
"public void testLateRootTask() throws InterruptedException {\n final String rootTaskId = \"String_Node_Str\";\n final String[] childTaskIds = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n final AtomicInteger numMsgs = new AtomicInteger(0);\n final EStage<GroupCommunicati...
"public void updated(String pid, Dictionary properties) throws ConfigurationException {\n if (properties != null) {\n Properties props = new Properties();\n props.put(Constants.SERVICE_PID, pid);\n DnsSdDiscoveryLocator locator = new DnsSdDiscoveryLocator();\n DnsSdServiceTypeID targetID ...
"private void updatePoolLayer() {\n float fSelectedScaling = 1;\n float fYAdd = 0;\n int iSelectedViewIndex = poolLayer.getPositionIndexByElementId(iMouseOverViewID);\n for (int iViewIndex = 0; iViewIndex < poolLayer.getCapacity(); iViewIndex++) {\n if (iViewIndex == iSelectedViewIndex) {\n ...
"public int readInt() throws IOException {\n byte[] ch = new byte[4];\n this.readFully(ch, 0, 4);\n int ret = 0;\n for (int i = 0; i < ch.length; i++) ret = ((ret << 8) & 0xFFFFFF00) | (ch[i] & 0x000000FF);\n return ret;\n}\n"
"public static List<String> extractFilePathFromRepresentationPreservationMetadata(StoragePath path) {\n String container = path.getContainerName();\n List<String> directoryPath = path.getDirectoryPath();\n if (container.equals(RodaConstants.STORAGE_CONTAINER_AIP) && directoryPath.size() > 4 && directoryPath.ge...
"public void expectLinkFlowRespondWithTransfer(final HeaderDescribedType headerDescribedType, final MessageAnnotationsDescribedType messageAnnotationsDescribedType, final PropertiesDescribedType propertiesDescribedType, ApplicationPropertiesDescribedType appPropertiesDescribedType, final DescribedType content, final in...
"public static void main(String[] args) throws Exception {\n if (args.length != 2) {\n usage();\n }\n File input = new File(args[0]);\n if (!input.exists())\n error(\"String_Node_Str\" + input.getAbsolutePath() + \"String_Node_Str\");\n if (!input.canRead())\n error(\"String_Node_Str...
"public int getFieldTag(String name) {\n Integer tag = (Integer) names.get(name);\n return tag != null ? tag.intValue() : -1;\n}\n"
"public void update(ItemContainer container) {\n if (container != this.container) {\n return;\n }\n inv_layer.clear();\n BaseItem[] items = (BaseItem[]) container.items.toArray(new BaseItem[0]);\n for (int i = 0; i < items.length; i++) {\n BaseItem item = (BaseItem) items[i];\n NE_GU...
"protected void run() throws Exception {\n LOG.info(\"String_Node_Str\", workflowSpec);\n WorkflowToken token = new BasicWorkflowToken(cConf.getInt(Constants.AppFabric.WORKFLOW_TOKEN_MAX_SIZE_MB));\n executeAll(workflowSpec.getNodes().iterator(), program.getApplicationSpecification(), new InstantiatorFactory(f...
"public static String splitLines(String string) {\n String lines = \"String_Node_Str\";\n for (int i = 0; i < string.length(); i += splitLinesAt) {\n lines = lines + string.substring(i, Math.min(string.length(), i + splitLinesAt));\n lines = lines + \"String_Node_Str\";\n }\n return lines;\n}\...
"private void appendTestMethod(StackTraceElement current) {\n content.append(\"String_Node_Str\");\n content.append(current.getClassName()).append('#');\n content.append(LESS_THAN_CHAR.matcher(current.getMethodName()).replaceFirst(\"String_Node_Str\")).append(\"String_Node_Str\");\n content.append(current.g...
"public boolean checkSpider(Player player, double y) {\n if (y <= LADDER_Y_MAX && y >= LADDER_Y_MIN && !Utilities.isOnLadder(player)) {\n return true;\n }\n return false;\n}\n"
"public void testCrossReferencesMmCif() throws IOException, StructureException {\n AtomCache cache = new AtomCache();\n cache.setUseMmCif(true);\n FileParsingParameters params = new FileParsingParameters();\n params.setAlignSeqRes(false);\n cache.setFileParsingParams(params);\n StructureIO.setAtomCach...
"public void setSecurityGroup(LoadBalancerSecurityGroup group) {\n this.security_group = group;\n}\n"
"protected void onCreate(Bundle savedInstanceState) {\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n super.onCreate(savedInstanceState);\n setContentView(R.layout.grant_credentials_permission);\n mInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n final Bundle extras = g...
"public static void navigateToArtistDetail(Context context, ImageView view, String transName, String artistName, long artistId, int albumNum, int songNum) {\n Fragment fragment = ArtistDetailFragment.newInstance(transName, artistName, artistId, albumNum, songNum);\n FragmentTransaction transaction = ((AppCompatAc...
"public void removeFriend(int userId) throws Exception {\n roster.unsubscribe(userId);\n clearRosterEntry(userId);\n deleteFriend(userId);\n QBChatMessage chatMessage = ChatUtils.createNotificationMessageForRemoveFriendsRequest(context);\n sendNotificationToFriend(chatMessage, userId);\n}\n"
"protected void removeParticipant(IUser p) {\n if (p != null) {\n ID id = p.getID();\n if (id != null) {\n appendText(new ChatLine(\"String_Node_Str\" + getDateTime() + \"String_Node_Str\" + trimUserID(id) + \"String_Node_Str\", null));\n memberViewer.remove(p);\n }\n }\...
"private Object[] getOwnedWhereRuleFiles(TableIndicator tableIndicator, IFolder whereRuleFolder) {\n ArrayList<IFile> ret = new ArrayList<IFile>();\n Indicator[] indicators = tableIndicator.getIndicators();\n for (Indicator indicator : indicators) {\n Object obj = indicator.getIndicatorDefinition();\n ...
"public void testDecodeAndTrimDecodedStr() {\n String result = DomainUtil.decodeAndTrimAndReplaceAsciiToLowercase(\"String_Node_Str\");\n assertEquals(\"String_Node_Str\", result);\n}\n"
"public int compile(String[] args, Context context, List<JavaFileObject> fileObjects, Iterable<? extends Processor> processors) {\n if (options == null)\n options = Options.instance(context);\n filenames = new ListBuffer<File>();\n classnames = new ListBuffer<String>();\n JavaCompiler comp = null;\n ...
"public int getStyleId(StyleEntry entry) {\n if (entry == null) {\n return 0;\n }\n int styleId = 0;\n Integer id = style2id.get(entry);\n if (id != null) {\n styleId = id.intValue();\n } else {\n styleId = styleID;\n style2id.put(entry, new Integer(styleId));\n styl...
"protected void printRatioCell(boolean failed, Coverage ratio, StringBuilder buf) {\n if (ratio != null && ratio.isInitialized()) {\n String bgColor = \"String_Node_Str\";\n if (JacocoHealthReportThresholds.RESULT.BETWEENMINMAX == healthReports.getResultByTypeAndRatio(ratio)) {\n bgColor = \...
"protected void computeReplacementProposals(char[][] namedParameterNames, char[][] positionalParameterNames, int indexOfLastClosure) {\n boolean guess = (fInvocationContext.getCoreContext().isExtended() && fPreferences.isEnabled(PreferenceConstants.CODEASSIST_GUESS_METHOD_ARGUMENTS));\n char[][] parameterTypes = ...
"protected final void invalidAllFilter() {\n if (parent != null)\n maskInvalid.set(0, getTable().getDataSize());\n}\n"
"public Vector2 rotateSelf(float angle) {\n float cos = MathUtils.cos(angle);\n float sin = MathUtils.sin(angle);\n return set(x * cos - y * sin, x * sin + y * cos);\n}\n"
"private boolean checkValus() {\n boolean ret = true;\n String msg = \"String_Node_Str\";\n String cl = getCriticalityLevelText().getText();\n if (cl == null || \"String_Node_Str\".equals(cl)) {\n ret = false;\n msg += DefaultMessagesImpl.getString(\"String_Node_Str\") + \"String_Node_Str\";\n...