content
stringlengths
40
137k
"protected void parse_medialist(List<ContentValues> medien, Document doc, int offset) throws ClientProtocolException, IOException {\n Elements copytrs = doc.select(\"String_Node_Str\");\n doc.setBaseUri(opac_url);\n SimpleDateFormat sdf = new SimpleDateFormat(\"String_Node_Str\");\n int trs = copytrs.size()...
"public void initialize() throws IllegalActionException {\n CompositeActor container = (CompositeActor) getContainer();\n if (container != null) {\n Enumeration allactors = container.deepGetEntities();\n while (allactors.hasMoreElements()) {\n Actor actor = (Actor) allactors.nextElement()...
"public void shutdown() {\n executor.execute(() -> {\n peerGroup.removePeerFilterProvider(manager);\n peerGroup.removeEventListener(manager);\n });\n}\n"
"private void preWrite(MethodWriter writer, IValue instance, IArguments arguments, int localCount) {\n if (!this.preProcessed) {\n this.preProcessed = true;\n this.preProcess();\n }\n for (int i = 0; i < this.storedParameters; i++) {\n final IType type = IntrinsicData.writeArgument(writer,...
"public boolean tryCreate(World world, BlockPos pos) {\n for (BlockPos activationLocation : this.componentPositions) {\n for (Rotation rot : Rotation.values()) {\n BlockPos origin = pos.subtract(activationLocation.rotate(rot));\n boolean valid = true;\n for (BlockPos offset : ...
"private void changeForMultipleMergeComponents(INode graphicalNode) {\n String hashMergeOutput = \"String_Node_Str\";\n String hashMergeInput = \"String_Node_Str\";\n INode mergeDataNode = buildCheckMap.get(graphicalNode);\n IComponent hashMergeOutputComponent = ComponentsFactoryProvider.getInstance().get(h...
"public void initialize(WBBlobHandler blobHandler, WBCacheInstances cacheInstances) {\n this.cacheInstances = cacheInstances;\n this.cloudFileStorage = cloudFileStorage;\n}\n"
"public synchronized void openTab(IChatMessageSender messageSender, ITypingMessageSender typingSender, ID localID, ID remoteID) {\n openTab(messageSender, typingSender, localID, remoteID, getLocalName(remoteID));\n}\n"
"public InputStream getInputStream(ResourceLocation location) throws IOException {\n if (!data.containsKey(location)) {\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n String[] str = getStr(location);\n JsonElement element;\n ResourceLocation nonProxiedLoc =...
"public void usingSetLensDistortion() {\n rectangles.add(new Rectangle2D_I32(30, 30, 60, 60));\n rectangles.add(new Rectangle2D_I32(90, 30, 120, 60));\n rectangles.add(new Rectangle2D_I32(30, 90, 60, 120));\n rectangles.add(new Rectangle2D_I32(90, 90, 120, 120));\n transform.set(0.8, 0, 0, 0.8, 1, 2);\n ...
"public void draw(GLDrawContext gl, Color color, float multiply) {\n if (color == null) {\n gl.color(multiply, multiply, multiply, 1);\n } else {\n gl.color(color.getRed() * multiply, color.getGreen() * multiply, color.getBlue() * multiply, color.getAlpha());\n }\n int textureIndex = getTextur...
"public MockConditionQueryBuilder appendCreation(String modelClassName) {\n return appendEmptyCreation(modelClassName).append(\"String_Node_Str\");\n}\n"
"public void launch(String filePath) {\n try {\n Class<?> claexten = Class.forName(\"String_Node_Str\");\n Field saTypes = claexten.getDeclaredField(\"String_Node_Str\");\n saTypes.setAccessible(true);\n saTypes.set(null, new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_N...
"public void animateBlurOpacity(float opacity, long duration) {\n if (mBlurredBitmap == null) {\n mBlurredBitmap = applyBlur();\n mBlurImageView.setImageBitmap(mBlurredBitmap);\n }\n if (opacity < 0f)\n opacity = 0f;\n else if (opacity > 1f)\n opacity = 1f;\n AlphaAnimation al...
"private void checkPortAvailability(Connector connector) {\n Object address = connector.getProperty(\"String_Node_Str\");\n String hostName = (address != null) ? ((InetAddress) address).getHostAddress() : null;\n if (hostName == null) {\n if (!NetUtils.isPortAvailable(connector.getPort())) {\n ...
"protected void receiveMessage(MPIMessage currentMessage, Object object) {\n MessageHeader header = currentMessage.getHeader();\n int messageDestId = currentMessage.getHeader().getDestinationIdentifier();\n if (!isLast(messageDestId) && partialReceiver != null) {\n partialReceiver.onMessage(header, obje...
"protected ContactDTO execute(DedupeContact command, UserDispatch.UserExecutionContext context) throws CommandException {\n Contact targetedContact = contactDAO.findById(command.getTargetedContactId());\n if (command.getOriginContactId() != null) {\n Contact originContact = contactDAO.findById(command.getO...
"public Query<T> order(String condition) {\n sort = BasicDBObjectBuilder.start();\n String[] sorts = condition.split(\"String_Node_Str\");\n for (String s : sorts) {\n condition = condition.trim();\n int dir = 1;\n if (condition.startsWith(\"String_Node_Str\")) {\n dir = -1;\n ...
"protected void internalParseXml(Element element) throws IOException {\n Element librariesElement = XmlHelper.getDistinctElementByName(element, KEY_ELEM_LIBRARIES);\n NodeList libraries = librariesElement.getElementsByTagName(KEY_ELEM_LIBRARY);\n this.libs = new ArrayList<>();\n for (int i = 0; i < librarie...
"private void givenWhenFunctionReturns(boolean result) {\n given(lookupFunction.call()).willReturn(result);\n}\n"
"protected Object getRedoAwareResult() {\n Object result = waitAndGetResult();\n if (result == OBJECT_REDO) {\n request.redoCount++;\n if (request.redoCount > 19 && (request.redoCount % 10 == 0)) {\n final CountDownLatch l = new CountDownLatch(1);\n final Request reqCopy = requ...
"public void drawButton(Minecraft mc, int mouseX, int mouseY) {\n if (GuiWDLChunkOverrides.this.mode == this.mode) {\n drawRect(this.x - 2, this.y - 2, this.x + width + 2, this.y + height + 2, 0xFF007F00);\n }\n super.drawButton(mc, mouseX, mouseY);\n GlStateManager.color(1.0f, 1.0f, 1.0f);\n mc.g...
"public boolean isWindowedFullscreen() {\n return displayModeSetting.getCurrent() == DisplayModeSetting.WINDOWED_FULLSCREEN;\n}\n"
"private void setIconAndAlign(final ImageParagraph component, Element aTag) throws Exception {\n if (aTag.hasAttribute(\"String_Node_Str\")) {\n String text = aTag.getAttribute(\"String_Node_Str\");\n boolean html = text != null && text.startsWith(\"String_Node_Str\");\n if (html) {\n ...
"public void setProperty(String key, Object value) {\n if (key == null || value == null) {\n throw new IllegalArgumentException(\"String_Node_Str\" + \"String_Node_Str\" + key + \"String_Node_Str\" + \"String_Node_Str\" + value);\n }\n nodeManager.acquireLock(this, LockType.WRITE);\n boolean success ...
"public ResultSet getTables(String catalog, String schema, String tableNamePattern, String[] types) throws SQLException {\n if (hiveObject == null) {\n throw new SQLException(\"String_Node_Str\");\n }\n String hiveCat = catalog;\n if (StringUtils.isBlank(hiveCat)) {\n hiveCat = HIVE_SCHEMA_DEF...
"public void subscriptionRequested(int userId) {\n try {\n createFriendWithStatusFrom(userId);\n } catch (QBResponseException e) {\n Log.e(TAG, SUBSCRIPTION_ERROR, e);\n }\n}\n"
"public void waitReceiveFinish() {\n Client.logger.info(\"String_Node_Str\");\n while (!NettyClient.finished) {\n NettyClient.finishedLock.lock();\n if (!NettyClient.finished) {\n try {\n NettyClient.finishedConditionWait.await();\n Client.logger.info(\"Strin...
"protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {\n Parser parser = new Parser(PATTERN, (String) msg);\n if (!parser.matches()) {\n return null;\n }\n Position position = new Position();\n position.setProtocol(getProtocolName());\n position.se...
"public void changedMessageDate(final Long number, final Date date) throws SQLException {\n final long start = System.currentTimeMillis();\n final Connection conn = Database.connection();\n try {\n final PreparedStatement stmt = conn.prepareStatement(\"String_Node_Str\");\n Utc.setTimestamp(stmt,...
"public void testTwo() {\n double epsilon = 0.4;\n BnBDmvTrainer trainer = new BnBDmvTrainer(epsilon, getDefaultBrancher(), new File(\"String_Node_Str\"));\n SentenceCollection sentences = new SentenceCollection();\n sentences.addSentenceFromString(\"String_Node_Str\");\n sentences.addSentenceFromString(...
"ClusterState executeCreateIndices(ClusterState currentState, BulkCreateIndicesRequest request) throws Exception {\n List<String> indicesToCreate = new ArrayList<>(request.indices().size());\n String removalReason = null;\n String testIndex = null;\n try {\n validateAndFilterExistingIndices(currentSt...
"public void run() {\n oldValue = recordStore.getMapEntryData(dataKey).getValue();\n final Object valueBeforeProcess = mapService.toObject(oldValue);\n final MapEntrySimple entry = new MapEntrySimple(mapService.toObject(dataKey), valueBeforeProcess);\n response = mapService.toData(entryProcessor.process(ent...
"public void delete(PushApplication pushApplication) {\n PushApplication entity = entityManager.find(PushApplication.class, pushApplication.getId());\n final List<Variant> variants = entity.getVariants();\n if (!variants.isEmpty()) {\n entityManager.createQuery(\"String_Node_Str\").setParameter(\"String...
"public void setScaleEnabled(boolean enabled) {\n this.mScaleXEnabled = enabled;\n this.mScaleYEnabled = enabled;\n}\n"
"public void linkingObjects_IllegalStateException_ifNotYetLoaded() {\n final Realm realm = looperThread.getRealm();\n realm.executeTransaction(new Realm.Transaction() {\n public void execute(Realm realm) {\n final BacklinksTarget target = realm.createObject(BacklinksTarget.class);\n t...
"public static Test suite() {\n TestSuite suite = new TestSuite(\"String_Node_Str\");\n suite.addTestSuite(CaretPositionTest.class);\n suite.addTestSuite(CaretPositionInEmptyTextTest.class);\n return suite;\n}\n"
"private void deletePiece() {\n PieceType pieceType = mPieceList.getSelectedValue();\n Preconditions.checkState(!PieceTypeManager.INSTANCE.isSystemPiece(pieceType.getInternalId()));\n if (FileManager.INSTANCE.deletePiece(pieceType)) {\n PieceTypeManager.INSTANCE.unregisterPieceType(pieceType.getInternal...
"public void activate() {\n Char target = Actor.findChar(pos);\n if (target == null) {\n for (Char ch : Actor.chars()) {\n Ballistica bolt = new Ballistica(pos, ch.pos, Ballistica.PROJECTILE);\n if (bolt.collisionPos == ch.pos && (target == null || Dungeon.level.distance(pos, ch.pos) ...
"public ExecutionResult execute(Item item) {\n ConnectionItem connectionItem = (ConnectionItem) item;\n DatabaseConnection connection = (DatabaseConnection) connectionItem.getConnection();\n if (connection != null) {\n if (connection.getDatabaseType().equals(\"String_Node_Str\")) {\n if (conn...
"private void insertServers() throws SQLException {\n String serversToCrawlStr = configuration.getProperty(\"String_Node_Str\");\n String[] serversToCrawl = serversToCrawlStr.split(\"String_Node_Str\");\n for (String server : serversToCrawl) {\n CrawlerHelper.insertServer(server, dataSource);\n }\n}\...
"protected void paintToVertical(GL gl, int width, int height, Rectangle2D textBounds) {\n int xText = padding;\n int yText = padding;\n double textWidth = textBounds.getWidth();\n double textHeight = textBounds.getHeight();\n int halfTextWidth = (int) (textWidth / 2d);\n int halfTextHeight = (int) (te...
"private void putLong(byte[] name, long value) {\n response.put(STAT);\n response.put(name);\n response.put(stringToBytes(String.valueOf(value)));\n response.put(RETURN);\n}\n"
"public void setItems(ObservableList<String> items) {\n listeners.clear();\n ObservableList<BetterCheckListItem> newItems = FXCollections.observableArrayList();\n WeakReference<BetterCheckListView> that = new WeakReference<>(this);\n for (int i = 0; i < items.size(); i++) {\n final int j = i;\n ...
"public void drop(DropTargetDropEvent dtde) {\n Point location = dtde.getLocation();\n TreePath path = cellHierarchyTree.getPathForLocation(location.x, location.y);\n if (path == null) {\n dtde.rejectDrop();\n return;\n }\n dtde.acceptDrop(DnDConstants.ACTION_MOVE);\n Transferable transf...
"protected IPageHint getPageHint(ReportPageExecutor executor, long pageNumber) {\n try {\n return executor.getLayoutPageHint(pageNumber);\n } catch (IOException ex) {\n executionContext.addException(new EngineException(MessageConstants.PAGE_HINT_LOADING_ERROR, ex));\n return null;\n }\n}\n...
"public void createCell(DeployedModel deployedModel) {\n CellServerState state = deployedModel.getCellServerState();\n PositionComponentServerState pcss = (PositionComponentServerState) state.getComponentServerState(PositionComponentServerState.class);\n BoundingVolume boundsHint = null;\n if (pcss != null)...
"private SDOTypeHelperDelegate getSDOTypeHelperDelegate() {\n return (SDOTypeHelperDelegate) SDOHelperContext.getHelperContext().getTypeHelper();\n}\n"
"public boolean addMapping(SchemaMapping mapping) {\n if (this.mappings == null) {\n this.mappings = new ArrayList<SchemaMapping>();\n return this.mappings.contains(mapping) || this.mappings.add(mapping);\n}\n"
"private void selectFindingSource(ValidationFinding finding) {\n Validatable findingSource = getNodeMappableFindingSource(finding);\n String validationIdentity = findingSource.getValidationIdentity();\n if (validationIdentity == null)\n return;\n Node n = NodeFinders.findNodeByValidationIentity(valid...
"public static boolean handleSingleSelectionAction(final SimpleFileListFragment navigator, MenuItem mItem, FileHolder fItem, Context context) {\n DialogFragment dialog;\n Bundle args;\n switch(mItem.getItemId()) {\n case R.id.menu_open:\n navigator.openInformingPathBar(fItem);\n re...
"protected int doLexicallyScopedRead(CAstNode node, WalkContext context, String name) {\n Symbol S = context.currentScope().lookup(name);\n Scope definingScope = S.getDefiningScope();\n CAstEntity E = definingScope.getEntity();\n addExposedName(E, E, name, definingScope.lookup(name).valueNumber(), false);\n...
"private void initEntityClass() {\n String[] fromArray = from.split(\"String_Node_Str\");\n if (fromArray.length != 2) {\n throw new PersistenceException(\"String_Node_Str\" + from);\n }\n StringTokenizer tokenizer = new StringTokenizer(getResult(), \"String_Node_Str\");\n while (tokenizer.hasMore...
"protected void saveWFSName(String wfsName, String fileName) throws IOException {\n File wfsFile = new File(getBaseDir(), fileName);\n PrintWriter out = new PrintWriter(new FileWriter(wfsFile));\n if (wfsName != null) {\n out.println(wfsName);\n }\n out.close();\n}\n"
"public void setFloatAttribute(String key, float value) {\n throw notSupportedOnClient();\n}\n"
"protected void updateTrackMetaData() {\n SonosMetaData currentTrack = getTrackMetadata();\n if (currentTrack != null) {\n String artist = null;\n if (currentTrack.getAlbumArtist().equals(\"String_Node_Str\")) {\n artist = currentTrack.getCreator();\n } else {\n artist =...
"public CacheableLocator createLocator(AnnotatedElement annotatedElement) {\n TimeOutDuration customDuration;\n if (annotatedElement.isAnnotationPresent(WithTimeout.class)) {\n WithTimeout withTimeout = annotatedElement.getAnnotation(WithTimeout.class);\n customDuration = new TimeOutDuration(withTim...
"private EsInfo readEsInfo(ParsableByteArray data, int length) {\n int descriptorsEndPosition = data.getPosition() + length;\n int streamType = -1;\n int audioType = -1;\n String language = null;\n while (data.getPosition() < descriptorsEndPosition) {\n int descriptorTag = data.readUnsignedByte();...
"public void run() {\n try {\n Log.i(TAG, \"String_Node_Str\" + mURL.getHost());\n URLConnection connection = mURL.openConnection();\n connection.setDoOutput(true);\n connection.connect();\n FileOutputStream fileOutput = new FileOutputStream(mOutputFile);\n InputStream input...
"protected DependencyDescriptor getDefaultConfMappingDescriptor() {\n if (_defaultConfMappingDescriptor == null) {\n _defaultConfMappingDescriptor = new DefaultDependencyDescriptor(ModuleRevisionId.newInstance(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"), false);\n parseDepsConfs(_def...
"public void testShardingStrategyMonthly() throws ShardStrategyException {\n ShardingStrategyMonthly subject = new ShardingStrategyMonthly();\n DateTime d = new DateTime(2013, 2, 22, 1, 0, 0, DateTimeZone.UTC);\n long actual = subject.getShardKey(d.getMillis());\n assertEquals(\"String_Node_Str\", 158, actu...
"public boolean onBreak(Player p, Block b, SlimefunItem item, UnregisterReason reason) {\n BlockMenu inv = BlockStorage.getInventory(b);\n if (inv != null) {\n for (int slot : getFuelSlots()) {\n if (inv.getItemInSlot(slot) != null) {\n b.getWorld().dropItemNaturally(b.getLocation...
"private String createTableSelect() {\n TableNode node = (TableNode) _selectedNodes[0];\n StringBuffer query = new StringBuffer(\"String_Node_Str\");\n String sep = \"String_Node_Str\";\n List columnNames = node.getColumnNames();\n Iterator it = columnNames.iterator();\n while (it.hasNext()) {\n ...
"public void execute(WebScriptRequest req, WebScriptResponse res) throws IOException {\n ContentReader textReader = null;\n Exception transformException = null;\n String nodeIDString = req.getParameter(\"String_Node_Str\");\n if (nodeIDString == null) {\n throw new WebScriptException(\"String_Node_St...
"public boolean isPageComplete() {\n setMessage(pageDetails.getPageDescription());\n boolean result = super.isPageComplete();\n if (!result) {\n return result;\n }\n setErrorMessage(null);\n setMessage(\"String_Node_Str\");\n boolean oneFieldHasValue = false;\n for (Field field : schema.g...
"void markAsFinished() {\n mIsStarted = false;\n}\n"
"public long getWriteOffsetWithChecks(long length) {\n if (cachePageLo + length > cachePageHi) {\n allocateAddressChecked((cachePageLo + length) >>> bits, length);\n }\n return (cachePageLo += length) - length;\n}\n"
"private boolean hasTimedOut(Service osd) {\n long lastUpdate = Long.parseLong(osd.getData().get(\"String_Node_Str\"));\n return lastUpdate > maxOfflineTime;\n}\n"
"private final void crossValues(Key key, final Iterator<Value> values, final Collector<Key, Value> out) {\n Key copyKey;\n Value outerVal;\n Value innerVal;\n int bufferValCnt;\n for (bufferValCnt = 0; bufferValCnt < VALUE_BUFFER_SIZE; bufferValCnt++) {\n if (values.hasNext()) {\n valBu...
"public void attributeChanged(Attribute attribute) throws IllegalActionException {\n if (attribute == directorClass) {\n final String newDirectorClassName = directorClass.stringValue();\n final Director director = getDirector();\n ChangeRequest request = new ChangeRequest(this, \"String_Node_Str...
"public void determineAccessRights(String page, State currentState) {\n if (currentState.getUserProjectRole() == ProjectRole.Acquisition_Organization_Engineer) {\n currentState.setMode(GwtModesType.NoAccess);\n } else if (currentState.getUserProjectRole() == ProjectRole.Contractor) {\n currentState....
"public MultivaluedMap<String, Object> getMetadataOptimal(HttpRequestContext request, MediaType contentType) {\n if (headers != null)\n return headers;\n headers = new OutBoundHeaders();\n if (values.length == 0 && contentType != null) {\n headers.putSingle(ResponseBuilderImpl.getHeader(ResponseB...
"private void createPreviewArea() {\n Composite cmpPreview = new Composite(foSashForm, SWT.NONE);\n cmpPreview.setLayout(new GridLayout());\n GridData gridData = new GridData(GridData.FILL_BOTH);\n gridData.horizontalSpan = 2;\n gridData.heightHint = 270;\n cmpPreview.setLayoutData(gridData);\n Lab...
"private void createTableViewer(Composite parent) {\n tableViewer = new TableViewer(parent, SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL);\n Table table_1 = tableViewer.getTable();\n GridData gd_table_1 = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n gd_table_1.heightHint = 217;\n table_1.set...
"public void setPassword(String password) {\n this.password = StringUtils.getUTF8Bytes(password);\n}\n"
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n if (value instanceof XMLRoot) {\n XMLRoot root = (XMLRoot) value;\n for (DatabaseFie...
"public XPathNodeset eval(FormInstance m, EvaluationContext evalContext) {\n TreeReference genericRef = getReference();\n if (genericRef.isAbsolute() && m.getTemplatePath(genericRef) == null) {\n throw new XPathTypeMismatchException(\"String_Node_Str\" + genericRef.toString() + \"String_Node_Str\");\n }...
"private void writeObjects(File objectFile) {\n try {\n List<? extends MetaMenu> menuList = MetaMenu.all().filter(\"String_Node_Str\", group).order(\"String_Node_Str\").order(\"String_Node_Str\").fetch();\n log.debug(\"String_Node_Str\", menuList.size());\n generateMenuGraph(menuList);\n ...
"public void drawSprite(int cornerX, int cornerY) {\n if (!isDefined())\n return;\n GL11.glDisable(GL11.GL_LIGHTING);\n if (getItemStack() != null)\n drawStack(getItemStack());\n else if (getTexture() != null && !getTexture().equals(\"String_Node_Str\")) {\n int texture = mc.renderEngin...
"public static Vector getCachedMessages() {\n return CACHE().getCachedMessages();\n}\n"
"public void run() {\n Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();\n MessageDialog.openInformation(shell, UIText.MergeAction_MergeResultTitle, op.getResult().toString());\n}\n"
"protected void render(GLGraphics g, float w, float h, ISpacingLayout spacing) {\n final EDimension dim = getDimension();\n List<Integer> ids = data.getData(dim);\n for (int i = 0; i < ids.size(); ++i) {\n final Integer id = ids.get(i);\n Double v = id2double.apply(id);\n if (v == null || ...
"public void write(int address, int data, boolean word, long cycles) {\n memory[address] = data & 0xff;\n if (word) {\n memory[address + 1] = (data >> 8) & 0xff;\n }\n int iAddress = address - offset;\n if (DEBUG) {\n try {\n System.out.println(\"String_Node_Str\" + getName() + \...
"public void beginLine(int iTextSize) {\n pil = new PrintItemLine(iTextSize, getBaseFont(), getFontHeight());\n}\n"
"public void expandNode(TreeViewer viewer, IRepositoryNode repoNode, int expandLevel) {\n if (repoNode != null && viewer != null) {\n RepositoryNode parent = repoNode.getParent();\n if (parent != null) {\n if (parent instanceof ProjectRepositoryNode && parent.getParent() == null) {\n ...
"public static void start(Activity activity, Uri originalUri) {\n Intent intent = new Intent(activity, ImageCropperActivity.class);\n intent.putExtra(QBServiceConsts.EXTRA_FILE_PATH, originalUri);\n activity.startActivityForResult(intent, INTENT_RESULT_CODE);\n}\n"
"public static InstanceField getField(final String fqn, final Object obj) {\n final String[] fields = fqn.split(\"String_Node_Str\");\n Class<?> curClass = obj instanceof Class ? (Class<?>) obj : obj.getClass();\n Object curObject = obj instanceof Class ? null : obj;\n Field curField = null;\n Object las...
"boolean isDragResizing() {\n final Task task = getTask();\n return mService.mTaskPositioner != null && mService.mTaskPositioner.isTaskResizing(task);\n}\n"
"public static WebArchive createDeployment() {\n return ShrinkWrap.create(WebArchive.class).addClass(InterfaceWithProvidersDefined.class).addPackage(TestClientResponseFilter.class.getPackage());\n}\n"
"private void processCSSUpdates(ScheduledExecutorService executor) {\n if (cssUpdates.size() > 0) {\n final Object cssUpdator = cssUpdaterLock;\n Runnable bundleUpdater = new Runnable() {\n public void run() {\n synchronized (cssUpdator) {\n Iterator<CSSUpda...
"private void monitor(String memberUuid, ClientEndpointImpl clientEndpoint) {\n if (clientEndpoint.isFirstConnection() && ClientType.CPP.equals(clientEndpoint.getClientType())) {\n return;\n }\n final Connection connection = clientEndpoint.getConnection();\n final long lastTimePacketReceived = connec...
"protected boolean canBeConst() {\n for (Type _t : _ts) if (!_t.canBeConst())\n return false;\n return _inf.canBeConst();\n}\n"
"protected void createQueryForShowIfBlank() {\n IQueryResultSet blankRset = new BlankResultSet();\n rset = blankRset;\n context.setResultSet(rset);\n rsetEmpty = false;\n}\n"
"protected boolean hideAction(RepositoryNode node) {\n HadoopClusterConnectionItem hcConnectionItem = HCRepositoryUtil.getHCConnectionItemFromRepositoryNode(node);\n if (hcConnectionItem != null) {\n HadoopClusterConnection hcConnection = (HadoopClusterConnection) hcConnectionItem.getConnection();\n ...
"public void updateStoryReadState(final String storyId, final boolean read) {\n realm.executeTransactionAsync(new Realm.Transaction() {\n\n public void execute(Realm realm) {\n NYTimesStory persistedStory = realm.where(NYTimesStory.class).equalTo(NYTimesStory.URL, storyId).findFirst();\n ...
"private void toggleKey(int keyCode, boolean isPressed) {\n if (!isIgnoreInput()) {\n if (keyCode == KeyEvent.VK_Z && isAzertyCountry || keyCode == KeyEvent.VK_W && !isAzertyCountry || keyCode == KeyEvent.VK_UP) {\n up.toggle(isPressed);\n }\n if (keyCode == KeyEvent.VK_Q && isAzertyC...
"private static List<CAlternative> resolveCAlts(List<Alternative> alts, TypeMappingParam param) {\n List<CAlternative> ret = new ArrayList<CAlternative>();\n for (Alternative a : alts) {\n List<EleType> ms = eleListToTypeList(a.getElements(), param);\n ret.add(new CAlternative(ms, a.getAction(), a.g...
"public void register(ExtensionBuilder builder) {\n builder.observer(CubeConfigurator.class).observer(CubeClientCreator.class).observer(CubeRegistrar.class).observer(CubeLifecycleController.class).observer(CubeSuiteLifecycleController.class).observer(CubeContainerLifecycleController.class).observer(RemapContainerCon...
"private void noncommutative(OPT_Instruction s, OPT_Operator opCode, OPT_IR ir) {\n OPT_RegisterOperand result = Binary.getClearResult(s);\n OPT_Operand op1 = Binary.getClearVal1(s);\n OPT_Operand op2 = Binary.getClearVal2(s);\n if (result.similar(op1)) {\n OPT_DefUse.removeUse(op1.asRegister());\n ...
"public void writeText(Data d) {\n writer.openTag(\"String_Node_Str\");\n if (d.getDatatype().equals(Data.NUMBER)) {\n if (d.getText().equals(NAN_STRING) || d.isBigNumber()) {\n writer.attribute(\"String_Node_Str\", \"String_Node_Str\");\n } else {\n writer.attribute(\"String_N...