content
stringlengths
40
137k
"public void messageReceived(final ChannelHandlerContext ctx, MessageEvent event) throws Exception {\n if (channelClosed) {\n return;\n }\n final Channel inboundChannel = event.getChannel();\n Object msg = event.getMessage();\n if (msg instanceof HttpChunk) {\n if (chunkSender == null) {\n ...
"public static <T> T __intercept(AutoBean<?> bean, T returnValue) {\n AbstractRequestContext context = requestContext(bean);\n if (context == null || context.isLocked() || context.isDiffing()) {\n return returnValue;\n }\n if (returnValue instanceof BaseProxy) {\n T toReturn = (T) context.edit...
"public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) {\n unmarshalRecord.removeNullCapableValue(this);\n XMLField xmlField = (XMLField) xmlDirectMapping.getField();\n if (!xmlField.getLastXPathFragment().nameIsText) {\n return;\n }\n Object value;\n CharSequence...
"public void init() {\n getListener();\n}\n"
"public void buildContainerLaunchContext(ContainerLauncher launcher, AggregateConf instanceDefinition, Container container, ProviderRole providerRole, SliderFileSystem fileSystem, Path generatedConfPath, MapOperations resourceComponent, MapOperations appComponent, Path containerTmpDirPath) throws IOException, SliderExc...
"private void removeColumnFiles(CharSequence name) {\n try {\n ff.iterateDir(path.$(), (file, type) -> {\n nativeLPSZ.of(file);\n if (type == Files.DT_DIR && !IGNORED_FILES.contains(nativeLPSZ)) {\n path.trimTo(rootLen);\n path.concat(nativeLPSZ);\n ...
"public void updateAttributeWithObject(String attributeName, Object value) {\n DatabaseMapping mapping = this.query.getDescriptor().getObjectBuilder().getMappingForAttributeName(attributeName);\n if (mapping == null) {\n throw DescriptorException.mappingForAttributeIsMissing(attributeName, getDescriptor())...
"private void synchronize(double height) {\n XlsContainer rowContainer = getCurrentContainer();\n ContainerSizeInfo rowSizeInfo = rowContainer.getSizeInfo();\n int startCoordinate = rowSizeInfo.getStartCoordinate();\n int endCoordinate = rowSizeInfo.getEndCoordinate();\n int startColumnIndex = axis.getCo...
"private void parsePyxlTag() {\n final PsiBuilder.Marker pyxl = myBuilder.mark();\n myBuilder.advanceLexer();\n IElementType token = myBuilder.getTokenType();\n if (!parsePyxlTagName()) {\n myBuilder.error(\"String_Node_Str\");\n pyxl.done(PyxlElementTypes.PYXL_STATEMENT);\n return;\n ...
"public void updateStatus() {\n for (IElementParameter enableParallel : figureMap.keySet()) {\n if (connection.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA) && enableParallel != null) {\n if (enableParallel.getValue().equals(true)) {\n if (enableParallel.getName().eq...
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_PROGRESS);\n requestWindowFeature(Window.FEATURE_LEFT_ICON);\n setContentView(R.layout.compose_message_activity);\n setProgressBarVisibility(false);\n setTitle(\"String_Nod...
"public Set<String> getTags() {\n final Set<String> returnTags = new HashSet<>();\n if (this.tags != null) {\n return Sets.newHashSet(this.splitTags(this.tags));\n } else {\n return Sets.newHashSet();\n }\n return returnTags;\n}\n"
"public HasClickHandlers getAction() {\n return rosterItemDisplay.getAction();\n}\n"
"public static void onPlayerTeleport(PlayerTeleportEvent event) {\n if (event.getPlayer().getOpenInventory().getType() != InventoryType.CRAFTING) {\n event.getPlayer().closeInventory();\n }\n}\n"
"public static String getName(ItemStack itemStack, int maxLength) {\n String alias = Odd.getAlias(itemStack);\n String itemName = alias != null ? alias : itemStack.getType().toString();\n String data = DataValue.name(itemStack);\n String durability = \"String_Node_Str\";\n if (data == null) {\n if...
"public static <T> void awaitAll(ExecutorService pool, List<Future<T>> futures) {\n int count = 0;\n try {\n boolean[] isDone = new boolean[futures.size()];\n Arrays.fill(isDone, false);\n int i = 0;\n while (true) {\n if (count == futures.size()) {\n break;\n...
"public boolean isAnnotationPresent(JavaHasAnnotations element, Class annotationClass) {\n if (element == null || annotationClass == null) {\n return false;\n }\n JavaClass annoJavaClass = annotationJavaClasses.get(annotationClass);\n if (annoJavaClass != null) {\n return (element.getAnnotatio...
"protected void loadIngredientSearchStrategy(AstorCoreEngine approach) throws Exception {\n IngredientBasedRepairApproach ibra = (IngredientBasedRepairApproach) approach;\n IngredientSpace ingredientspace = ibra.getIngredientPool();\n IngredientSearchStrategy ingStrategy = null;\n String ingStrategySt = Con...
"public int[] getAccessibleSlotsFromSide(int side) {\n return access.isPublic() ? CoFHProps.SLOTS[getStorageIndex()] : TEProps.EMPTY_INVENTORY;\n}\n"
"public SparseVector multElementwiseInPlace(Vector vector) {\n checkVectorSize(vector);\n if (vector.type() != VectorType.SPARSE) {\n for (int key : hashMap.keys().elements()) {\n this.set(key, hashMap.get(key) * vector.get(key));\n }\n } else {\n if (this.numberOfNonzeroElement...
"public void addRecipe(Block previousTier) {\n ShapedOreRecipe recipe = null;\n if (blockLevel == ToolHelper.LEVEL_STONE) {\n recipe = new ShapedOreRecipe(new ItemStack(this), new Object[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", 's', Blocks.STONE, 'c', previousTier, 'p', Items.STON...
"public static String sendCredentials(Project project, String username, String password) throws ServerException, IOException, URISyntaxException {\n URIBuilder requestUri = MMSUtils.getServiceUri(project);\n if (requestUri == null) {\n return null;\n }\n requestUri.setPath(requestUri.getPath() + \"St...
"public void addMainParameters(final List<ElementParameter> listParam, INode node) {\n ElementParameter param;\n param = new ElementParameter(node);\n param.setName(EParameterName.UNIQUE_NAME.getName());\n param.setValue(\"String_Node_Str\");\n param.setDisplayName(EParameterName.UNIQUE_NAME.getDisplayNa...
"private JPanel constructView() {\n final SortedList<Issue> issuesSortedList = new SortedList<Issue>(issuesEventList, null);\n FilterList<Issue> filteredIssues = new FilterList<Issue>(issuesSortedList, filterPanel.getMatcherEditor());\n SeparatorList<Issue> separatedIssues = new SeparatorList<Issue>(filteredIs...
"public ExecutionResult execute(Item item) {\n ILibraryManagerService libService = null;\n if (GlobalServiceRegister.getDefault().isServiceRegistered(ILibraryManagerService.class)) {\n libService = (ILibraryManagerService) GlobalServiceRegister.getDefault().getService(ILibraryManagerService.class);\n }\...
"public static byte[] rgb2bilevelDither(int[] rgb, int imageWidth, int imageHeight, int err_limit) {\n byte[] pixels = new byte[rgb.length];\n int sum = 0;\n for (int i = 0; i < rgb.length; i++) {\n if ((rgb[i] >>> 24) < 0x80) {\n pixels[i] = (byte) 0xff;\n else\n pixels[i] ...
"private final void bringDownServiceLocked(ServiceRecord r) {\n for (int conni = r.connections.size() - 1; conni >= 0; conni--) {\n ArrayList<ConnectionRecord> c = r.connections.valueAt(conni);\n for (int i = 0; i < c.size(); i++) {\n ConnectionRecord cr = c.get(i);\n cr.serviceDe...
"private void checkBowTieFile(String dir, String fileName) throws ProcessException {\n File bowTie = new File(dir);\n if (!bowTie.exists() || bowTie.length() == 0) {\n throw new ProcessException(\"String_Node_Str\" + fileName + bowTie.exists() + bowTie.length() + \"String_Node_Str\" + dir);\n }\n}\n"
"GenericTopLevel copy(String URIprefix, String displayId, String version) {\n if (this.checkDescendantsURIcompliance() && isURIprefixCompliant(URIprefix) && isDisplayIdCompliant(displayId) && isVersionCompliant(version)) {\n GenericTopLevel cloned = this.deepCopy();\n cloned.setWasDerivedFrom(this.getI...
"public boolean isUsable() {\n return OutPutStatusEnum.UTXO_CONFIRMED_UNSPENT == status || OutPutStatusEnum.UTXO_UNCONFIRMED_UNSPENT == status;\n}\n"
"protected Configuration getConfiguration(IPreferenceStore store, ISelection selection) {\n Configuration config = null;\n StructuredSelection structuredSelection = null;\n if (selection instanceof StructuredSelection) {\n structuredSelection = (StructuredSelection) selection;\n }\n if (!isNotSele...
"public int readUnsignedByte() {\n byte b;\n if (bitOffset != 0) {\n b = (byte) ((data[byteOffset] << bitOffset) | ((data[byteOffset + 1] & 0xFF) >> (8 - bitOffset)));\n } else {\n b = data[byteOffset];\n }\n byteOffset++;\n return b & 0xFF;\n}\n"
"public void run() {\n log.info(\"String_Node_Str\");\n while (true) {\n try {\n WalletSaveRequest req = walletRefs.poll(5, TimeUnit.SECONDS);\n if (req == null) {\n if (walletRefs.size() == 0) {\n break;\n } else {\n ...
"public void setFields(HFSPlusCatalogFile cf) {\n int i;\n recordTypeField.setText(\"String_Node_Str\" + Util.toHexStringBE(cf.getRecordType()));\n fileLockedBox.setSelected(cf.getFileLockedFlag());\n threadExistsBox.setSelected(cf.getThreadExistsFlag());\n reserved1Field.setText(\"String_Node_Str\" + Ut...
"public void initializePersistenceStrategy(Context ctx, SessionManager smBean, ServerConfigLookup serverConfigLookup) {\n super.initializePersistenceStrategy(ctx, smBean, serverConfigLookup);\n if (this.getPersistenceScope().equals(\"String_Node_Str\")) {\n setupReplicationWebEventPersistentManager(SimpleM...
"public static boolean matchVariable(List<CtVariable> varContext, CtVariableAccess vartofind) {\n try {\n CtTypeReference typeToFind = vartofind.getType();\n List<CtVariable> types = compatiblesSubType(varContext, typeToFind);\n for (CtVariable ctVariableWithTypes : types) {\n boolean...
"static <D extends DynamicObject<D>> Set<Object> cachedKeys(Class<D> type) {\n return Arrays.stream(type.getMethods()).flatMap(Reflection::getCachedKeysForMethod).collect(toSet());\n}\n"
"public boolean contains(Class cls, Object primaryKey) {\n this.emf.verifyOpen();\n Vector pk = createPKVector(cls, primaryKey);\n ClassDescriptor descriptor = this.serversession.getDescriptor(cls);\n CacheKey key = ((org.eclipse.persistence.internal.sessions.IdentityMapAccessor) this.accessor).getCacheKeyF...
"public void explodeBuffer(World world, int x, int y, int z) {\n for (final ItemStackWrapper item : inventory) {\n InventoryUtils.spawnItemStackInWorld(item.getItemStack(), world, x, y, z);\n }\n}\n"
"protected List<Inequality> _destinationTypeConstraints(TypedIOPort source) {\n Iterator<IOPort> destinationPorts;\n List<Inequality> result = new LinkedList<Inequality>();\n boolean srcUndeclared = source.getTypeTerm().isSettable();\n if (source.isInput() && source.isOutput()) {\n List<IOPort> sinks...
"public boolean matches(ResolvedTypeX matchType, ResolvedTypeX aspectType) {\n return isWithinType(matchType).alwaysTrue() && !matchType.isInterface();\n}\n"
"public void addRole(String name, Role<? extends Agent> role, Agent agent) {\n RoleAgent roleAgent = new RoleAgent(name, role, agent);\n boolean first = roleAgent.isFirst();\n boolean last = roleAgent.isLast();\n String after = roleAgent.getAfter();\n if (first) {\n roleList.add(0, roleAgent);\n ...
"public void test() {\n ReadAllQuery query1 = new ReadAllQuery();\n query1.setReferenceClass(Employee.class);\n Vector resultSet = null;\n ReadAllQuery query2 = new ReadAllQuery();\n query2.setReferenceClass(Employee.class);\n if (TYPE_SCROLL_INSENSITIVE_isSupported && CONCUR_UPDATABLE_isSupported) {\...
"public static String getPaymentType(Operation op, String amount, ChatColor colour) {\n if (useEconomy) {\n if (useIconomy()) {\n return ServerEconomyInterface.format(amount);\n } else {\n return ItemInterface.getCurrency(op);\n }\n } else {\n return \"String_Node...
"private Document toXML(Collection files) {\n Document doc = new DOMDocument();\n Element packageElement = new DOMElement(\"String_Node_Str\");\n doc.setRootElement(packageElement);\n Element infoElement = new DOMElement(\"String_Node_Str\");\n packageElement.add(infoElement);\n addInfoElements(infoEl...
"public int compare(DSpaceObject dso1, DSpaceObject dso2) {\n if (dso1 == dso2) {\n return 0;\n } else if (dso1 == null) {\n return -1;\n } else if (dso2 == null) {\n return 1;\n } else {\n String name1 = StringUtils.trimToEmpty(dso1.getName());\n String name2 = StringUtil...
"protected void contructFloor(Node n) {\n Point start = roomInstance.getCoordinates().get(0);\n for (Point p : roomInstance.getCoordinates()) {\n int piece = 2;\n float yAngle = 0;\n boolean N = roomInstance.hasCoordinate(new Point(p.x, p.y - 1));\n boolean E = roomInstance.hasCoordina...
"public void setDark(boolean dark, boolean fade, long delay) {\n if (dark == mDark && mDarkInitialized) {\n return;\n }\n super.setDark(dark, fade, delay);\n setPictureGrayscale(dark, fade, delay);\n setProgressBarDark(dark, fade, delay);\n}\n"
"private void sendPacket(byte opCode, Closure closure) throws IOException {\n socketWait.incrementAndGet();\n synchronized (socketOut) {\n sendByte(opCode);\n closure.run();\n }\n if (socketWait.addAndGet(-1) == 0) {\n socketOut.flush();\n }\n}\n"
"private static String getLogFile(IGameCreator mapcreator, String suffix) {\n final String dateAndMap = getLogDateFormatter().format(new Date()) + \"String_Node_Str\" + mapcreator.getMapName().replace(\"String_Node_Str\", \"String_Node_Str\");\n final String logFolder = \"String_Node_Str\" + dateAndMap + \"String...
"public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((expression == null) ? 0 : expression.hashCode());\n result = prime * result + ((isCount() || parameter == null) ? 0 : parameter.hashCode());\n return result;\n}\n"
"private void sendMailMessageWithInlineAttachment() throws MessagingException {\n MimeMessage message = newEmailTo(newEmailSession(false), emailAddress, \"String_Node_Str\");\n MimeBodyPart textPart = new MimeBodyPart();\n textPart.setContent(\"String_Node_Str\", \"String_Node_Str\");\n textPart.setDisposit...
"void saveClayBlocks() {\n LinkedList<SaveBlock> glocations = new LinkedList<SaveBlock>();\n Collection<ClayDelay> cblock = clayblocks.values();\n for (ClayDelay theblock : cblock) {\n glocations.add(new SaveBlock(theblock));\n }\n try {\n ObjectOutputStream out = new ObjectOutputStream(new...
"public static void downloadUpdate(Update update) {\n ModContainer mod = ModHelper.getModContainer(update.MOD_ID);\n if (mod != null) {\n String fileName = \"String_Node_Str\";\n if (update.newFileName != null && !update.newFileName.isEmpty()) {\n fileName = mod.getSource().getParent() + ...
"private Set<NamespacedEntityId> getSortedEntities(List<MetadataEntry> results, SortInfo sortInfo) {\n if (SortInfo.SortOrder.WEIGHTED != sortInfo.getSortOrder()) {\n Set<NamespacedEntityId> entities = new LinkedHashSet<>(results.size());\n for (MetadataEntry metadataEntry : results) {\n if ...
"private void setupMapUI() {\n GoogleMap mMap = getMap();\n if (mMap != null) {\n mMap.setMyLocationEnabled(true);\n UiSettings mUiSettings = mMap.getUiSettings();\n mUiSettings.setMyLocationButtonEnabled(true);\n mUiSettings.setCompassEnabled(true);\n mUiSettings.setTiltGesture...
"public Rigger getRigger() {\n return rigger;\n}\n"
"protected void updateUrlCombo(CloudURL lastAddedEditedUrl) {\n String newSelection = null;\n String oldSelection = null;\n if (urlCombo.getSelectionIndex() >= 0) {\n oldSelection = urlCombo.getItem(urlCombo.getSelectionIndex());\n } else {\n if (cfServer != null && cfServer.getUrl() != null) ...
"public void check(List<Marker> markers, IContext context) {\n if (this.superType != null) {\n IClass superClass = this.superType.getTheClass();\n if (superClass != null) {\n int modifiers = superClass.getModifiers();\n if ((modifiers & Modifiers.CLASS_TYPE_MODIFIERS) != 0) {\n ...
"public void setShowToolbar(boolean preferenceValue) {\n setBooleanValue(Key.showToolbar, Boolean.valueOf(preferenceValue));\n}\n"
"protected Map<String, String> applyExtendedSql(StringBuilder sqlSb, boolean isSubquery, boolean isEmbedded, StringBuilder withClause, String[] returningColumns, Map<DbmsModificationState, String> includedModificationStates) {\n return dbmsDialect.appendExtendedSql(sqlSb, statementType, isSubquery, isEmbedded, withC...
"private File buildDependencyJar(File targetDir) throws IOException {\n Location tempLocation = new LocalLocationFactory(targetDir).create(CDAP_SPARK_JAR);\n final HadoopClassExcluder hadoopClassExcluder = new HadoopClassExcluder();\n ApplicationBundler appBundler = new ApplicationBundler(new ClassAcceptor() {...
"private Map<String, String> readProperties(BufferedReader reader) throws IOException {\n String line = reader.readLine();\n if (line != null) {\n line = line.trim();\n }\n if (\"String_Node_Str\".equals(line)) {\n return null;\n }\n Map<String, String> properties = new HashMap<String, S...
"public List<ItemToItemMap> getSourceToTargetMaps() {\n return sourceToCdmMaps;\n}\n"
"public Property getProperty(Object object) {\n try {\n return (Concept) getPropertyTerm(object).getValue();\n } catch (IllegalActionException ex) {\n return null;\n }\n}\n"
"public CredentialsFactoryConfig getMemberCredentialsConfig() {\n return staticSecurityConfig.getMemberCredentialsConfig();\n}\n"
"public static Object validateWithLocale(String dataType, String format, String value, Locale locale, TimeZone timeZone) throws ValidationValueException {\n Object obj = null;\n if (value == null || IBirtConstants.NULL_VALUE.equals(value)) {\n return null;\n }\n try {\n if (format == null) {\n...
"public String file(MultipartFile file) throws IOException {\n byte[] bytes = new byte[0];\n if (file != null) {\n if (file.getSize() > 1024) {\n bytes = new byte[1024];\n InputStream inputStream = file.getInputStream();\n inputStream.read(bytes);\n byte[] buffer...
"public void showDeckEditor(DeckEditorMode mode, Deck deck, UUID tableId, int time) {\n String name;\n if (mode == DeckEditorMode.SIDEBOARDING || mode == DeckEditorMode.LIMITED_BUILDING) {\n name = \"String_Node_Str\" + tableId.toString();\n } else {\n if (deck != null) {\n name = \"St...
"public static void saveChatMessage(Context context, MessageCache messageCache, boolean fromHistory) {\n int countUnreadMessagesLocal;\n boolean ownMessage = AppSession.getSession().getUser().getId() == messageCache.getSenderId();\n ContentValues values = new ContentValues();\n MessagesNotificationType mess...
"protected void handlePageBreakInterval() {\n if (tableExecutor.breakOnDetailBand) {\n BandDesign band = (BandDesign) design;\n if (band.getBandType() == BandDesign.BAND_DETAIL) {\n if (tableExecutor.softBreakBefore) {\n IStyle style = content.getStyle();\n if (...
"public static void main(String[] args) throws Exception {\n config = getUpdatedConfig(config);\n config.junitVersion = JUnitVersion.version3;\n boolean hasFirstArg = (args != null && args.length > 0 && args[0] != null);\n String dirOrFile = hasFirstArg ? args[0] : config.directoryPathOfProductSourceCode;\n...
"private void _readPingWindows(Process process, String testIP) {\n JSONObject device = null;\n BufferedReader stdOut = null;\n try {\n stdOut = new BufferedReader(new InputStreamReader(process.getInputStream(), \"String_Node_Str\"));\n StringBuffer data = new StringBuffer();\n String line;...
"public static int getJavaTypeBySqlType(String sqlType) {\n if (\"String_Node_Str\".equalsIgnoreCase(sqlType.trim())) {\n return Types.DATE;\n } else if (sqlType.trim().equals(\"String_Node_Str\")) {\n return Types.BIGINT;\n } else if (sqlType.trim().equals(\"String_Node_Str\")) {\n return...
"private void parseEvent(XMLStreamReader xmlStreamReader) throws SAXException {\n switch(xmlStreamReader.getEventType()) {\n case XMLStreamReader.START_ELEMENT:\n {\n depth++;\n String prefix = xmlStreamReader.getPrefix();\n String localName = xmlStreamR...
"public Intent getUninstallScreen(String packageName) {\n if (!isUnattended()) {\n return null;\n }\n Intent intent = new Intent(context, UninstallDialogActivity.class);\n intent.putExtra(Installer.EXTRA_PACKAGE_NAME, packageName);\n return intent;\n}\n"
"public void testWriteRecPosNoLenient() {\n try {\n Configuration config = new Configuration();\n config.setString(RecordOutputFormat.FILE_PARAMETER_KEY, this.tempFile.toURI().toString());\n config.setString(RecordOutputFormat.FIELD_DELIMITER_PARAMETER, \"String_Node_Str\");\n config.setI...
"public void ajustWidth(Widget aChild, int aValue) {\n if (aChild != null) {\n if (aChild.getParent() instanceof PlatypusFieldSet)\n aChild.getParent().setPixelSize(aValue, Sizer.getWidgetHeight(aChild));\n else\n aChild.setPixelSize(aValue, Sizer.getWidgetHeight(aChild));\n ...
"public static synchronized void loop() {\n System.out.print(\"String_Node_Str\");\n try {\n currentCode = reader.readLine();\n TokenIterator tokens = Dlex.tokenIterator(currentCode + \"String_Node_Str\");\n REPLContext.newClassName();\n if (parser.parse(null, tokens, new DyvilUnitPars...
"private void addLayersToList(INode parent, List<ILayerNode> layers) {\n if (parent instanceof ILayerNode && !parent.isTransient()) {\n layers.add((ILayerNode) parent);\n }\n for (int i = 0; i < parent.getChildCount(); i++) {\n addLayersToList(parent.getChild(i), layers);\n }\n}\n"
"public HeadsUpEntry getTopEntry() {\n if (mHeadsUpEntries.isEmpty()) {\n return null;\n }\n HeadsUpEntry topEntry = null;\n for (HeadsUpEntry entry : mHeadsUpEntries.values()) {\n if (topEntry == null || entry.compareTo(topEntry) == -1) {\n topEntry = entry;\n }\n }\n ...
"public long getDeviceIdleModeTime(int mode, long elapsedRealtimeUs, int which) {\n switch(mode) {\n case DEVICE_IDLE_MODE_LIGHT:\n return mDeviceIdleModeLightTimer.getTotalTimeLocked(elapsedRealtimeUs, which);\n case DEVICE_IDLE_MODE_DEEP:\n return mDeviceIdleModeFullTimer.getTot...
"public void registerTileEntities() {\n super.registerTileEntities();\n ClientRegistry.bindTileEntitySpecialRenderer(TileGenericPipe.class, PipeRendererTESR.INSTANCE);\n}\n"
"protected void generateCanonicalModelClass(Element element, PersistenceUnit persistenceUnit) throws IOException {\n Writer writer = null;\n try {\n ClassAccessor accessor = persistenceUnit.getClassAccessor(element);\n String qualifiedName = accessor.getAccessibleObjectName();\n String classN...
"public void shortcutReceived(GlobalShortcutEvent evt) {\n AWTKeyStroke keystroke = evt.getKeyStroke();\n GlobalKeybindingSet set = keybindingsService.getGlobalBindings();\n if (keystroke == null)\n return;\n try {\n for (Map.Entry<String, List<AWTKeyStroke>> entry : set.getBindings().entrySet...
"public void paint(Graphics g) {\n g.setFont(new Font(\"String_Node_Str\", Font.BOLD, 11));\n for (int i = 0; i < 16; i++) {\n int currentY = height - startY - (15 - i) * (barHeight + whiteSpaceHeight);\n String rank = i + 1 + \"String_Node_Str\";\n if (i < 9)\n rank = \"String_Nod...
"protected void updateHandlersForUnassign(final AttributeDefinition handlerAttribute, final ModelNode operation, final ModelNode model) throws OperationFailedException {\n final String handlerName = getHandlerName(operation);\n if (handlerExists(handlerName, handlerAttribute, model)) {\n final ModelNode cu...
"public String[] getDistinctValuesOrdered(int column, Hierarchy hierarchy) {\n final String[] list = getDistinctValues(column);\n final String attribute = handle.getAttributeName(column);\n final DataType<?> datatype = handle.getDataType(attribute);\n final int level = handle.getGeneralization(attribute);\n...
"public long getEndTime() {\n return fTraceEndTime;\n}\n"
"private void applySslSettings() {\n try {\n KeyManager[] keyManagers = null;\n TrustManager[] trustManagers = null;\n HostnameVerifier hostnameVerifier = null;\n if (!verifyingSsl) {\n TrustManager trustAll = new X509TrustManager() {\n public void checkClientTru...
"public boolean isRefresh() throws Exception {\n try {\n cluster = clusterRestClient.get(id, realTime);\n if (cluster != null) {\n List<NodeGroupRead> nodeGroups = cluster.getNodeGroups();\n if (nodeGroups != null) {\n return checkOutputUpdate(nodeGroups);\n ...
"public void testCreateDeletedFolderViewObject() throws Exception {\n ERepositoryObjectType type = null;\n String path = \"String_Node_Str\";\n String folderName = \"String_Node_Str\";\n List<IRepositoryViewObject> children = new ArrayList<IRepositoryViewObject>();\n List<IRepositoryViewObject> spychildr...
"public URL configure(URL url) {\n if (configuratorUrl == null || configuratorUrl.getHost() == null || url == null || url.getHost() == null) {\n return url;\n }\n if (configuratorUrl.getPort() != 0) {\n if (url.getPort() == configuratorUrl.getPort()) {\n return configureIfMatch(url.get...
"public void runViewstackRunnable() {\n getSupportFragmentManager().popBackStack();\n mRpc.ping(new FutureCallback<PopcornTimeRpcClient.RpcResponse>() {\n public void onCompleted(Exception e, PopcornTimeRpcClient.RpcResponse result) {\n if (e == null) {\n mGetViewstackRunnable.run...
"public List<InferredEdge> getIncomingTransferableEdges() {\n List<InferredEdge> result = Lists.newArrayList();\n for (Edge edge : this.startVertex.getIncoming()) {\n Set<Edge> tmpResults = Sets.newHashSet();\n if (edge.getGeometry() == null) {\n tmpResults.addAll(edge.getFromVertex().get...
"public void getConsoleOutput(final GetConsoleOutputType request) throws EucalyptusCloudException {\n VmInstance v = null;\n try {\n v = VmInstances.lookup(request.getInstanceId());\n } catch (final NoSuchElementException e2) {\n try {\n v = VmInstances.lookup(request.getInstanceId());...
"public void display(Mod element) {\n if (element != null) {\n try {\n super.display(element);\n BufferedImage image = imageManager.getImage(element.getCachedImagePath(config));\n if (image != null) {\n Dimension size = imageManager.scaleToFit(image, new Dimensi...
"private String valueToStreamString(PropertyType propertyType, Object value) {\n String result;\n if (value == null) {\n result = getBatchNull();\n } else {\n switch(propertyType) {\n case ZONEDDATETIME:\n ZonedDateTime zonedDateTime = (ZonedDateTime) value;\n ...
"public GlimpseLayout getLayout() {\n EmptyPlot2D plot = new EmptyPlot2D();\n plot.getAxis().set(0, 500, 0, 500);\n plot.addPainter(new FillPainter());\n return plot;\n}\n"
"public static void generateHTMLFile(String tempFolderPath, String xslFilePath, String xmlFilePath, String htmlFilePath) {\n FileOutputStream output = null;\n Writer writer = null;\n try {\n File xmlFile = new File(xmlFilePath);\n Reader reader = new InputStreamReader(new FileInputStream(xmlFile)...