content
stringlengths
40
137k
"private float getUnigramProbability(WordSequence wordSequence) {\n String unigram = wordSequence.getWord(0);\n UnigramProbability probability = (UnigramProbability) unigramIDMap.get(unigram);\n if (probability == null) {\n throw new Error(\"String_Node_Str\" + unigram);\n } else {\n return pr...
"public static String generateShowColumn(StarredRequest starredRequest, String parameter) {\n ArgumentNotValid.checkNotNull(starredRequest, \"String_Node_Str\");\n ArgumentNotValid.checkNotNull(parameter, \"String_Node_Str\");\n if (!\"String_Node_Str\".equals(starredRequest.getParameter(parameter))) {\n ...
"private void updateCallgraph(CallGraph cg, Map<InvokeSite, InvokeSite> invokeMap) {\n Ternary acyclic = cg.getAcyclicity();\n List<ExecutionContext> nodes = new ArrayList<ExecutionContext>(cg.getNodes(getMethod()));\n for (ExecutionContext invoker : nodes) {\n for (ExecutionContext invokeeNode : cg.get...
"private boolean changeSetting(String command, String value, String world, Player p) {\n String worldString = world;\n world = MULTI_WORLD_KEY + \"String_Node_Str\" + world + \"String_Node_Str\";\n if (command.matches(\"String_Node_Str\")) {\n world = \"String_Node_Str\";\n }\n if (command.toLower...
"public static int fetch(Page page, boolean ignoreIfBinary) {\n String toFetchURL = page.getWebURL().getURL();\n HttpGet get = null;\n HttpEntity entity = null;\n try {\n get = new HttpGet(toFetchURL);\n synchronized (mutex) {\n long now = (new Date()).getTime();\n if (no...
"private void updateIncrementsPassIntoCont(Continuation cont, RCTracker increments) {\n if (cont.spawnsSingleTask()) {\n long incr = 1;\n for (Var keepOpen : cont.getKeepOpenVars()) {\n assert (RefCounting.hasWriteRefCount(keepOpen));\n increments.writeIncr(keepOpen, incr);\n ...
"public void execute(CommandSender sender, List<String> args) {\n if (!hasPermission(sender) || !correctLength(sender, args.size(), 1, 2)) {\n return;\n }\n Player player = Bukkit.getPlayer(args.get(0));\n if (player == null) {\n sender.sendMessage(ChatColor.RED + \"String_Node_Str\");\n ...
"public static String calcServerResourceGuid(final String uuidSeed) {\n String guid = UUID.nameUUIDFromBytes(uuidSeed.getBytes(Charset.forName(\"String_Node_Str\"))).toString();\n return guid;\n}\n"
"private Predicate createPredicateString(IQueryParameterType theParameter, String theResourceName, String theParamName, CriteriaBuilder theBuilder, From<?, ResourceIndexedSearchParamString> theFrom) {\n String rawSearchTerm;\n if (theParameter instanceof TokenParam) {\n TokenParam id = (TokenParam) thePara...
"public String excute(String param, HttpMethodType httpMethod, ObjectType objectType) throws Exception {\n URL url = new URL(makeUrl(objectType));\n URLConnection urlConnection = url.openConnection();\n HttpURLConnection httpURLConnection = (HttpURLConnection) urlConnection;\n httpURLConnection.setConnectTi...
"private RT setSource(S source) {\n if (source == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n this.source = source;\n return (R) this;\n}\n"
"private String generatePatient() {\n char initial = (char) (random.nextInt(26) + 'A');\n String surname = surnames[random.nextInt(surnames.length)];\n String gender = random.nextBoolean() ? \"String_Node_Str\" : \"String_Node_Str\";\n int year = 1980 + random.nextInt(30);\n int month = 1 + random.nextIn...
"private void processInvalidListeners() {\n final boolean trace = com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled();\n String appName = getIStore().getId();\n long start = System.currentTimeMillis();\n for (Iterator<Cache.Entry<String, ArrayList>> it = sessionInfoCache.iterator(); it.hasNext(); ) {...
"public synchronized void addPathwayView(final int iPathwayIDToLoad) {\n if (!generalManager.getPathwayManager().isPathwayVisible(iPathwayIDToLoad)) {\n SerializedPathwayView serPathway = new SerializedPathwayView();\n serPathway.setPathwayID(iPathwayIDToLoad);\n newViews.add(serPathway);\n }...
"public Configuration reconfigure() {\n try {\n final ConfigurationSource source = getConfigurationSource().resetInputStream();\n if (source == null) {\n return null;\n }\n final PropertiesConfigurationFactory factory = new PropertiesConfigurationFactory();\n final Prope...
"private Chart getConvertedChart(Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension) {\n Chart helperModel = currentChart.copyInstance();\n helperModel.eAdapters().addAll(currentChart.eAdapters());\n ChartDimension oldDimension = currentChart.getDimension();\n ChartCach...
"public void parse(IParserManager pm, IToken token) throws SyntaxError {\n int type = token.type();\n if (this.mode == FOR) {\n this.mode = TYPE;\n if (type == Symbols.OPEN_PARENTHESIS) {\n return;\n }\n throw new SyntaxError(token, \"String_Node_Str\", true);\n }\n if...
"private void reloadKeyboards() {\n if (mKeyboardSwitcher == null) {\n mKeyboardSwitcher = new KeyboardSwitcher(this, this);\n }\n mKeyboardSwitcher.setInputLocale(new Locale(mInputLanguage), getSelectedInputLanguages() != null);\n if (mInputView != null) {\n mKeyboardSwitcher.setVoiceMode(mEn...
"public LocalProperties clone() throws CloneNotSupportedException {\n LocalProperties newProps = (LocalProperties) super.clone();\n if (this.ordering != null) {\n newProps.ordering = this.ordering.clone();\n }\n if (this.groupedFields != null) {\n newProps.groupedFields = (FieldSet) this.group...
"private void generateCoreElem(StringBuilder b, List<ElementDefinition> elements, ElementDefinition elem, int indent, String pathName, boolean asValue, TypeRefComponent type, boolean last, boolean complex) throws Exception {\n if (elem.getPath().endsWith(\"String_Node_Str\") && elem.getPath().lastIndexOf('.') > elem...
"public List<ThirdPartyIdentifier> thirdPartyIdentifiers() {\n if (null != mMetadata) {\n return mMetadata.mThirdPartyIdentifiers;\n } else {\n return new ArrayList<>();\n }\n}\n"
"public void testFrame() {\n new TestFrame();\n if (!GWT.isScript()) {\n try {\n new BrokenFrame();\n throw new Error(ASSERTION_ERROR);\n } catch (AssertionError e) {\n }\n }\n}\n"
"public int findInParameter(String parameterName) throws OdaException {\n UnsupportedOperationException e = new UnsupportedOperationException(\"String_Node_Str\");\n addLog(\"String_Node_Str\", e);\n throw e;\n}\n"
"private static NestedSet<Artifact> collectHiddenTopLevelArtifacts(RuleContext ruleContext, CcCompilationOutputs ccCompilationOutputs) {\n NestedSetBuilder<Artifact> artifactsToForceBuilder = NestedSetBuilder.stableOrder();\n CppConfiguration cppConfiguration = ruleContext.getFragment(CppConfiguration.class);\n ...
"public static void doMigrationTask(List<IMigrationTask> tasks, IProgressMonitor monitor) {\n if (monitor == null) {\n monitor = new NullProgressMonitor();\n }\n monitor.beginTask(\"String_Node_Str\", tasks.size());\n for (IMigrationTask task : tasks) {\n if (monitor.isCanceled()) {\n ...
"public SAScheduleListType getSAScheduleList(int maxEntriesSAScheduleTuple, HashMap<String, byte[]> xmlSignatureRefElements) {\n PMaxScheduleType pMaxSchedule = new PMaxScheduleType();\n if (departureTime != 0)\n pMaxSchedule.getPMaxScheduleEntry().add(createPMaxScheduleEntry(\"String_Node_Str\", (short) 1...
"public <T> OEntityRef<T> getEntity(Class<T> entityType, String entitySetName, Object... key) {\n FeedCustomizationMapping mapping = getFeedCustomizationMapping(entitySetName);\n return new OEntityRefImpl<T, Feed<Entry>, Entry>(false, client, entityType, serviceRootUri, getMetadata(), entitySetName, key, mapping)...
"public void onInterrupt() {\n if (!isEnabled() || getModel().getSelectedFeatures().isEmpty() || getModel().getSelectedClasses().isEmpty()) {\n setStatusEmpty();\n } else {\n setStatusWorking();\n }\n}\n"
"public void importLabelsToBch(WalletManager walletManager) {\n if (getSpvBchFetcher() == null)\n return;\n List<WalletAccount> accounts = new ArrayList<>();\n accounts.addAll(walletManager.getActiveAccounts());\n accounts.addAll(walletManager.getArchivedAccounts());\n for (WalletAccount walletAcc...
"public static void main(String[] args) throws Exception {\n int iterations = Integer.parseInt(arg(args, \"String_Node_Str\", \"String_Node_Str\"));\n int cores = Integer.parseInt(arg(args, \"String_Node_Str\", Integer.toString(Runtime.getRuntime().availableProcessors())));\n int task = Integer.parseInt(arg(ar...
"protected void onPostExecute(Boolean result) {\n super.onPostExecute(result);\n if (result) {\n try {\n mCommonFunctions.showPayeeName();\n mCommonFunctions.displayCategoryName();\n } catch (Exception e) {\n Log.e(EditTransactionActivityConstants.LOGCAT, e.getMessag...
"private void initializeMulticastSocket() {\n try {\n int port = getOrDefault(MulticastProperties.PORT, DEFAULT_MULTICAST_PORT);\n String group = getOrDefault(MulticastProperties.GROUP, DEFAULT_MULTICAST_GROUP);\n multicastSocket = new MulticastSocket(port);\n multicastSocket.setReuseAddr...
"private void fillContents() {\n IBrandingService brandingService = (IBrandingService) GlobalServiceRegister.getDefault().getService(IBrandingService.class);\n boolean isOnlyRemoteConnection = brandingService.getBrandingConfiguration().isOnlyRemoteConnection();\n for (ConnectionBean bean : storedConnections) {...
"public void testListAndSwitchSAMLAccountCmd() throws Exception {\n final Map<String, Object[]> params = new HashMap<String, Object[]>();\n final String sessionKeyValue = \"String_Node_Str\";\n Mockito.when(session.getAttribute(ApiConstants.SESSIONKEY)).thenReturn(sessionKeyValue);\n Mockito.when(session.ge...
"public static List<MDMServerDef> getServers() {\n SAXReader reader = new SAXReader();\n Element root = null;\n Document logininfoDocument = null;\n if (new File(workbenchConfigFile).exists()) {\n try {\n SAXReader reader = new SAXReader();\n logininfoDocument = reader.read(new ...
"public void open(IPath file) {\n String projectName = null;\n IFile location = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(file);\n if (location == null) {\n IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();\n ISelection selection = page....
"protected void populateDirectiveList() {\n DefaultTreeModel treeModel = (DefaultTreeModel) directivesTree.getModel();\n DefaultMutableTreeNode root = new DefaultMutableTreeNode(\"String_Node_Str\");\n DefaultMutableTreeNode other = new DefaultMutableTreeNode(\"String_Node_Str\");\n DirectiveManager directi...
"public JsonNode apply(final JsonNode tree) {\n if (tree == null) {\n return null;\n }\n final JsonNode temp = tree.get(\"String_Node_Str\");\n if (temp == null) {\n return tree;\n }\n final Iterator<String> ids = temp.fieldNames();\n while (ids.hasNext()) {\n final String item...
"public static void loadRelationData(int joinQueryId, Collection<Artifact> artifacts, boolean historical, LoadLevel loadLevel) throws OseeCoreException {\n if (loadLevel == ARTIFACT_DATA || loadLevel == ARTIFACT_AND_ATTRIBUTE_DATA) {\n return;\n }\n if (historical) {\n return;\n }\n JdbcSta...
"public void write(ClassWriter writer) {\n boolean instance = this.thisType != null;\n int modifiers = instance ? Modifiers.PRIVATE | Modifiers.SYNTHETIC : Modifiers.PRIVATE | Modifiers.STATIC | Modifiers.SYNTHETIC;\n MethodWriter mw = new MethodWriterImpl(writer, writer.visitMethod(modifiers, this.getName(), ...
"private void setNotificationVolumeVisibility(boolean visible) {\n if (mSeekBarVolumizer[0] != null) {\n mSeekBarVolumizer[0].getSeekBar().setVisibility(visible ? View.VISIBLE : View.GONE);\n }\n mNotificationVolumeTitle.setVisibility(visible ? View.VISIBLE : View.GONE);\n}\n"
"public boolean equals(Object obj) {\n if (obj != null && obj.getClass().equals(this.getClass())) {\n Long objId = ((BaseEntity) obj).getId();\n if (objId != null) {\n return objId.equals(this.getId());\n }\n }\n return false;\n}\n"
"public void meteredConstructorCalled() {\n long count = 1L + Math.round(Math.random() * 10);\n for (int i = 0; i < count; i++) {\n instance.get();\n }\n assertThat(\"String_Node_Str\", registry.getMeters(), hasKey(METER_NAME));\n Meter meter = registry.getMeters().get(METER_NAME);\n assertThat...
"private boolean canProceedJob() {\n NlputilsFormComposite.updateStatusMessage(getViewSite(), null, null);\n boolean canProceed = true;\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n form.getMessageManager().removeMessage(\"String_Node_Str\");\n form.getMessageManager().removeMessage(\"...
"private void doAbort(long writePointer, long[] checkpointWritePointers, TransactionType type) {\n committingChangeSets.remove(writePointer);\n if (type == TransactionType.LONG) {\n doInvalidate(writePointer);\n return;\n }\n InProgressTx removed = inProgress.remove(writePointer);\n boolean...
"public Collection<Integer> getAllQueryIds(OseeConnection connection, JoinItem joinItem) throws OseeCoreException {\n Collection<Integer> queryIds = new ArrayList<Integer>();\n IOseeStatement chStmt = databaseService.getStatement(connection);\n try {\n String query = String.format(SELECT_QUERY_IDS, join...
"public int onStartCommand(Intent intent, int flags, int startId) {\n if (contentTitle != null && contentText != null) {\n String address = contentTitle.toString();\n contentTitle = dba.getRow(address).getName();\n Notification notifyDetails = new Notification(R.drawable.ic_launcher, contentTitl...
"private synchronized void handleAction(List al, Object event, boolean cleanState) {\n if (al == null || event == null) {\n return;\n }\n ShapedAction sa;\n Shape sh;\n Action ac;\n Point p = null;\n if (event instanceof MouseEvent) {\n p = ((MouseEvent) event).getPoint();\n }\n ...
"void tryEliminate(IRFunction func) {\n List<BasicBlock> reversePreOrder = func.getReversePreOrder();\n for (BasicBlock bb : reversePreOrder) {\n for (IRInstruction inst = bb.getLastInst(), prevInst; inst != null; inst = prevInst) {\n prevInst = inst.getPrevInst();\n if (inst instance...
"private Promise<ResourceResponse, ResourceException> queryRelationship(final Context context, final String managedObjectId) {\n try {\n final QueryRequest queryRequest = Requests.newQueryRequest(REPO_RESOURCE_PATH);\n final List<ResourceResponse> relationships = new ArrayList<>();\n queryReques...
"public void characters(char[] ch, int start, int length) throws SAXException {\n if (currentElement != null) {\n String value = new String(ch, start, length);\n String old = nameValue.put(currentElement, value);\n if (old != null) {\n nameValue.put(currentElement, old + value);\n ...
"public void findAllByName(Iterable<String> names, final Predicate<Profile> consumer) throws IOException, InterruptedException {\n final List<String> missing = Collections.synchronizedList(new ArrayList<String>());\n Predicate<Profile> forwardingConsumer = new Predicate<Profile>() {\n public boolean apply(...
"public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map properties) {\n Map nonNullProperties = (properties == null) ? new HashMap() : properties;\n EntityManagerSetupImpl emSetupImpl = null;\n synchronized (EntityManagerFactoryProvider.emSetupImpls) {\n String url...
"private void updateChildPositionHorizontal(int width, int totalSize, int row, int maxChildHeight) {\n for (int i = 0; i < mListPositions.size(); i++) {\n ViewPosition pos = mListPositions.get(i);\n final View child = getChildAt(i);\n if (mOrientation == VERTICAL || pos.position == row) {\n ...
"public void updateScreen() {\n super.updateScreen();\n if (this.tileEntity.getTurret() == null) {\n this.mc.thePlayer.closeScreen();\n }\n}\n"
"public void processConfigFile(PropertiesConfiguration confFile) throws IOException, BindException {\n Iterator<String> it = confFile.getKeys();\n Map<String, String> shortNames = new HashMap<String, String>();\n while (it.hasNext()) {\n String key = it.next();\n String longName = shortNames.get(...
"public void handleFree(DownloadLink downloadLink) throws Exception {\n requestFileInformation(downloadLink);\n Form freeForm = br.getFormbyProperty(\"String_Node_Str\", \"String_Node_Str\");\n if (freeForm == null) {\n logger.info(\"String_Node_Str\");\n br.submitForm(freeForm);\n }\n Stri...
"public KeePassFile parse(InputStream inputStream, ProtectedStringCrypto protectedStringCrypto) {\n KeePassFile keePassFile = JAXB.unmarshal(inputStream, KeePassFile.class);\n keePassFile.init();\n List<Entry> entries = keePassFile.getEntries();\n for (Entry entry : entries) {\n decryptAndSetValues(e...
"private void createChatMessageTable(SQLiteDatabase db) {\n StringBuilder chatMessageTableFields = new StringBuilder();\n chatMessageTableFields.append(ChatMessageTable.Cols.ID).append(\"String_Node_Str\").append(ChatMessageTable.Cols.BODY).append(\"String_Node_Str\").append(ChatMessageTable.Cols.SENDER_ID).appen...
"private void computeImportance(Map<Integer, Double> importances, Node node) {\n if (!node.isRealLeaf()) {\n int featureId = node.getSplit().getColumnNum();\n if (!importances.containsKey(featureId)) {\n importances.put(featureId, contribution);\n } else {\n importances.put...
"protected void addMainWindowTitleUpdater() {\n m_updater = new ApplicationWindowTitleUpdater();\n DataEventDispatcher ded = DataEventDispatcher.getInstance();\n ded.addProjectLoadedListener(updater, true);\n ded.addDataChangedListener(updater, true);\n DatabaseStateDispatcher.addDatabaseStateListener(up...
"public boolean isEmpty() {\n return mNumberInputEditText.length() == 0;\n}\n"
"public static Type findStructFieldType(Context context, String fieldName, Type type) throws TypeMismatchException {\n StructType structType;\n if (Types.isStruct(type)) {\n structType = ((StructType) type);\n } else if (Types.isStructRef(type)) {\n structType = ((StructType) (type.memberType()))...
"public boolean equals(Object obj) {\n if (obj instanceof ContributorInfoData) {\n ContributorInfoData contributor = (ContributorInfoData) obj;\n return (login != null && contributor.login != null && login.toLowerCase().equals(contributor.login.toLowerCase())) || super.equals(obj);\n } else\n ...
"public Message decompressCollection(Message reducedCollection, byte[] compressedBytes) throws IOException {\n reset();\n byte[] moreRoom = new byte[compressedBytes.length + 100];\n System.arraycopy(compressedBytes, 0, moreRoom, 0, compressedBytes.length);\n final Alignments.AlignmentCollection alignmentCol...
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View V = null;\n if (isTwoPaneMode() || isAdded()) {\n V = inflater.inflate(R.layout.expandable_list_layout, container, false);\n eListView = (PullToRefreshExpandableListView) V.findViewById(R.id.e...
"public View getView(final int position, View convertView, final ViewGroup parent) {\n View view = convertView;\n if (view == null) {\n LayoutInflater vi = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n view = vi.inflate(R.layout.activity_main_row, null);\n }\n ...
"public static HelperContext getHelperContext(String identifier, ClassLoader classLoader) {\n ConcurrentMap<String, HelperContext> contextMap = getContextMap();\n helperContext = contextMap.get(identifier);\n if (null == helperContext) {\n helperContext = new SDOHelperContext(identifier, classLoader);\n...
"public VariableFormat<Number> getXUncertainty() {\n return STRING_TO_VARIABLE_FORMAT_MAP.get(xUncertaintyChoiceBox.getValue());\n}\n"
"public void sendGuidedPoint(LatLong point, boolean force) {\n ControlApi.getApi(this).goTo(point, force, null);\n}\n"
"private static List<String> split(String values) {\n if (values == null) {\n return Collections.<String>emptyList();\n }\n String[] tokens = values.split(\"String_Node_Str\");\n List<String> result = new ArrayList<String>(tokens.length);\n for (String token : tokens) {\n String trimmed = t...
"public TreeMap<String, Entity> findEntities() {\n TreeMap<String, Entity> chainIds2entities = new TreeMap<String, Entity>();\n List<String> chainIds = new ArrayList<String>();\n for (Chain c : s.getChains()) {\n if (c.getAtomGroups(GroupType.AMINOACID).size() > 1 && c.getAtomGroups(GroupType.NUCLEOTIDE...
"private void collectNodes(Map<String, Item> items, RepositoryNode repositoryNode) {\n IRepositoryViewObject repositoryObject = repositoryNode.getObject();\n if (repositoryObject != null) {\n if (repositoryObject.getRepositoryObjectType().isResourceItem()) {\n Item item = repositoryObject.getPro...
"private List getCascadingValues(List values, IGetParameterDefinitionTask task) {\n CascadingParameterGroupHandle container = (CascadingParameterGroupHandle) handle.getContainer();\n List groupList = new ArrayList();\n List children = group.getChildren();\n Iterator iterator = children.iterator();\n whil...
"public static void findAllVarMappingCombination(Map<VarAccessWrapper, List<CtVariable>> mappedVars, List<VarAccessWrapper> varsNamesToCombine, int indexVar, Map<String, CtVariable> currentCombination, List<Map<String, CtVariable>> allCombinations) {\n if (varsNamesToCombine.size() == indexVar) {\n allCombina...
"public boolean canRead(final String contentType, final Class<? extends IRepositoryFileData> clazz) {\n return IRepositoryFileData.NODE_CONTENT_TYPE.equals(contentType) && clazz.isAssignableFrom(NodeRepositoryFileData.class);\n}\n"
"protected L2Character createInstance() {\n final L2Character character = new L2Character(id);\n character.setCharacterClass(getCharacterClass());\n character.setRace(getRace());\n return character;\n}\n"
"public void intro() throws Exception {\n ClientDispatcher myClient = new ClientDispatcher();\n TransportImpl myTransport = new TransportImpl(null);\n myClient.init(myTransport);\n FDUtil.ensureFD(_tport1.getFD());\n FDUtil.ensureFD(_tport2.getFD());\n _tport1.getFD().pin(_tport1.getFD().getMembers()....
"public boolean performOk() {\n linterConfigBlock.saveColumnSettings();\n try {\n IWorkingCopy workingCopy = getWorkingCopy();\n if (workingCopy.hasCheckedTernModule(linterId)) {\n linterConfigBlock.updateOptions();\n saveWorkingCopy();\n }\n } catch (Exception e) {\n...
"protected Ranking<S> computeRanking(List<S> solutionList) {\n Ranking<S> ranking = new WASFGARankingConstraint<>(this.achievementScalarizingFunction);\n ranking.computeRanking(solutionList);\n return ranking;\n}\n"
"private boolean checkSC2Edge(ELDescriptionEdge superEdge, List<ELDescriptionEdge> edges) {\n ObjectProperty superOP = superEdge.getLabel();\n ELDescriptionNode superNode = superEdge.getTree();\n for (ELDescriptionEdge edge : edges) {\n ObjectProperty op = edge.getLabel();\n if (roleHierarchy.isS...
"private void _createReceivers() throws IllegalActionException {\n try {\n workspace().getWriteAccess();\n Iterator inputPorts = inputPortList().iterator();\n while (inputPorts.hasNext()) {\n IOPort inPort = (IOPort) inputPorts.next();\n inPort.createReceivers();\n }...
"private boolean deepDecrypt(ArrayList<DownloadLink> decryptedLinks) {\n if (decryptedLinks.isEmpty())\n return false;\n final Vector<DownloadLink> newdecryptedLinks = new Vector<DownloadLink>();\n class DThread extends Thread implements JDRunnable {\n private DownloadLink link = null;\n p...
"protected List<TdView> getColumnSetsWithFilter(TdCatalog catalog, TdSchema schema) {\n if (catalog != null) {\n String viewFilter = TaggedValueHelper.getValue(TaggedValueHelper.VIEW_FILTER, catalog.getTaggedValue());\n return filterColumnSets(CatalogHelper.getViews(catalog), viewFilter);\n }\n i...
"private void buildPathVariables(ExecutableElement executableElement, RestDocumentation.Resource.Method doc, RestImplementationSupport implementationSupport) {\n RestDocumentation.Resource.UrlFields subs = doc.getUrlSubstitutions();\n for (VariableElement var : executableElement.getParameters()) {\n String...
"public static List<PsiFile> getAllJavaFiles(Module module) {\n Collection<VirtualFile> javaVirtualFiles = FileBasedIndex.getInstance().getContainingFiles(FileTypeIndex.NAME, JavaFileType.INSTANCE, moduleScope(module));\n List<PsiFile> javaFiles = new ArrayList<>();\n for (VirtualFile javaVFile : javaVirtualFi...
"private BasicDialog createDialog() {\n final BasicDialog newDialog = new BasicDialog((possibleParent != null) ? possibleParent : new Shell(SWT.SHELL_TRIM), true);\n newDialog.getShell().setBackgroundMode(SWT.INHERIT_DEFAULT);\n newDialog.getShell().addListener(SWT.Dispose, new Listener() {\n public voi...
"private void registerDeviceDiscoveryService() {\n if (bundleContext != null) {\n logger.trace(\"String_Node_Str\", getThing().getUID().getId());\n discoveryService = new HomematicDeviceDiscoveryService(this);\n discoveryServiceRegistration = bundleContext.registerService(DiscoveryService.class....
"public void endTable() {\n if (!tables.isEmpty()) {\n tables.pop();\n endContainer();\n }\n}\n"
"public int hashCode() {\n if (buffer == null)\n return Integer.MIN_VALUE;\n final int prime = 0x01000193;\n int hash = 0x811c9dc5;\n final byte[] data = buffer;\n for (int i = data.length - 1; i >= 0; i--) {\n hash = (hash ^ data[i]) * prime;\n }\n return hash;\n}\n"
"public void init() {\n super.init();\n getApplicationListeners().add(new EmbeddOrientDbApplicationListener(WicketApplication.class.getResource(\"String_Node_Str\")) {\n public void onAfterServerStartupAndActivation() throws Exception {\n OServerAdmin serverAdmin = new OServerAdmin(\"String_Node...
"private void addInfoForNoSuchElementException(NoSuchElementException cause) {\n if (parent == null) {\n throw cause;\n }\n BasicPageImpl page = this.parent.getCurrentPage();\n if (page == null) {\n throw cause;\n }\n String resolvedPageName = page.getClass().getSimpleName();\n boolea...
"public static DocumentFragment xpathInjectImage(WordprocessingMLPackage wmlPackage, JaxbXmlPart sourcePart, Map<String, CustomXmlDataStoragePart> customXmlDataStorageParts, String storeItemId, String xpath, String prefixMappings, String sdtParent, String contentChild, String cx, String cy) {\n log.debug(\"String_No...
"private void drawCardStuff(Boolean anyCardFound, List<PanelString> joinedData) {\n if (!anyCardFound) {\n NCLog.fatal(\"String_Node_Str\");\n return;\n }\n int maxWidth = 40;\n float displayWidth = this.width;\n float displayHeight = this.height;\n for (PanelString panelString : joinedD...
"public JSType withLoose() {\n if (objs == null) {\n Preconditions.checkState(enums != null);\n return this;\n }\n return new JSType(this.mask, this.location, ObjectType.withLooseObjects(this.objs), typeVar, enums);\n}\n"
"public void clearKeepOpenVars() {\n super.clearKeepOpenVars();\n this.loopContinue.clearKeepOpenVars();\n this.loopBreak.clearKeepOpenVars();\n}\n"
"public WordpressPost post(WordpressPost post) throws WordpressXmlRpcException {\n Vector<Object> params = new Vector<Object>();\n if (post.getPostId() == null) {\n params.add(wordpressConnection.getBlogId());\n } else {\n params.add(post.getPostId());\n }\n params.add(wordpressConnection.g...
"private LValueResultFwd analyzeLValueFwd(Node expr, TypeEnv inEnv, JSType type, boolean insideQualifiedName) {\n LValueResultFwd lvalResult = null;\n switch(expr.getToken()) {\n case THIS:\n {\n mayWarnAboutGlobalThis(expr);\n if (this.currentScope.hasThis()) {\n ...
"private void updateNetworkActivityLocked() {\n if (!SystemProperties.getBoolean(PROP_QTAGUID_ENABLED, false))\n return;\n if (mMobileIfaces.length > 0) {\n final NetworkStats snapshot;\n try {\n snapshot = mNetworkStatsFactory.readNetworkStatsDetail(UID_ALL, mMobileIfaces, Network...
"public void shutdown() {\n final Menu menu = systemTrayMenu;\n if (menu instanceof _AppIndicatorTray) {\n ((_AppIndicatorTray) menu).shutdown();\n } else if (menu instanceof _AppIndicatorNativeTray) {\n ((_AppIndicatorNativeTray) menu).shutdown();\n } else if (menu instanceof _GtkStatusIconTr...