content
stringlengths
40
137k
"private void doLayout_tmp(IDisplayServer xs, Chart cm, Bounds boFull, RunTimeContext rtc) throws ChartException {\n final boolean isRightToLeft = rtc.isRightToLeft();\n Block bl = cm.getBlock();\n bl.setBounds(boFull);\n Insets ins = bl.getInsets();\n Bounds bo = boFull.adjustedInstance(ins);\n Legen...
"public void constructDimension(List<Pair<DimletKey, List<DimletKey>>> dimlets, Random random, DimensionInformation dimensionInformation) {\n TerrainType terrainType = dimensionInformation.getTerrainType();\n Set<FeatureType> featureTypes = dimensionInformation.getFeatureTypes();\n dimlets = DimensionInformati...
"public LimeXMLDocument createIfNecessary(FileDesc fd) {\n LimeXMLDocument doc = null;\n synchronized (LOCK) {\n if (!mainMap.containsKey(fileAndUrn)) {\n if (fd.getLimeXMLDocuments().size() == 0) {\n doc = constructDocument(file);\n if (doc != null) {\n ...
"public void sameDepth() {\n final List<TheRStackFrame> originalStack = new ArrayList<TheRStackFrame>();\n final MockTheRResolvingSession resolvingSession = new MockTheRResolvingSession();\n final TheRXStack stack = new TheRXStack(originalStack, resolvingSession, ExecutorServices.ILLEGAL_EXECUTOR);\n origin...
"public void userQuitTournamentSubTables(UUID tournamentId, UUID userId) {\n for (TableController controller : controllers.values()) {\n if (controller.getTable().isTournamentSubTable() && controller.getTable().getTournament().getId().equals(tournamentId)) {\n if (controller.hasPlayer(userId)) {\n ...
"public void install(final App app) {\n final Apk apkToInstall = ApkProvider.Helper.find(this, app.id, app.suggestedVercode);\n final ApkDownloader downloader = new ApkDownloader(this, app, apkToInstall, apkToInstall.repoAddress);\n downloader.setProgressListener(new ProgressListener() {\n public void o...
"public void addCharacter(List<Tag> tags, char character) {\n int fontStyle = getFontStyle();\n String fname = getFontName(tags);\n SHAPE shp = SHAPERECORD.systemFontCharacterToSHAPE(fname, fontStyle, getDivider() * 1024, character);\n glyphShapeTable.add(shp);\n fontBoundsTable.add(shp.getBounds());\n ...
"public static void freezeInBoundingBox(World world, AxisAlignedBB box, EntityPlayer player, boolean random) {\n for (int x = (int) box.minX; x <= box.maxX; x++) {\n for (int y = (int) box.minY; y <= box.maxY; y++) {\n for (int z = (int) box.minZ; z <= box.maxZ; z++) {\n Block b = wo...
"private void getNodeRefPathRecursive(NodeRef nodeRef, LinkedList<NodeRef> nodeRefPath) {\n if (isFilePlanComponent(nodeRef) == false) {\n throw new AlfrescoRuntimeException(I18NUtil.getMessage(MSG_INVALID_RM_NODE, ASPECT_FILE_PLAN_COMPONENT.toString()));\n }\n nodeRefPath.addFirst(nodeRef);\n if (is...
"public void initialize(IEmitterServices services) {\n this.services = services;\n Object fd = services.getOption(RenderOptionBase.OUTPUT_FILE_NAME);\n File file = null;\n try {\n if (fd != null) {\n file = new File(fd.toString());\n File parent = file.getParentFile();\n ...
"public void testAllowsCompoundCountDistinct() {\n String sql = dialectize(\"String_Node_Str\" + \"String_Node_Str\");\n if (getDialect().allowsCompoundCountDistinct()) {\n assertQuerySucceeds(sql);\n } else {\n String[] errs = { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"St...
"public HTTPConnection connect() throws Exception {\n if (request == null)\n throw new IllegalStateException(\"String_Node_Str\");\n this.connected = true;\n if (this.isResume() && this.checkResumabled()) {\n connectResumable();\n } else {\n if (this.isFileSizeVerified()) {\n ...
"public void remove(String moduleName) {\n Logger logger = ModuleManager.getLogger();\n this.uninstallModules.remove(moduleName);\n ModuleInfo[] infos = this.uninstallList.getModuleInfos();\n List<ModuleInfo> list = new LinkedList(Arrays.asList(infos));\n Iterator<ModuleInfo> it = list.iterator();\n w...
"public void editOpenOfferPublish(Offer editedOffer, OpenOffer.State originalState, ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {\n Optional<OpenOffer> openOfferOptional = getOpenOfferById(editedOffer.getId());\n if (openOfferOptional.isPresent()) {\n final OpenOffer openOffer = o...
"public List<ContinuousEffect> getLayeredEffects(Game game) {\n List<ContinuousEffect> layerEffects = new ArrayList<ContinuousEffect>();\n for (ContinuousEffect effect : layeredEffects) {\n switch(effect.getDuration()) {\n case WhileOnBattlefield:\n case WhileOnStack:\n cas...
"private static void updateProperty(String listName, Properties property) {\n StringBuffer result = new StringBuffer(Constants.INT_1024);\n String propValue = property.getProperty(listName);\n String file;\n int equalIndex;\n int fileExtIndex;\n StringTokenizer tokenizer = null;\n if (propValue == ...
"public boolean equals(Object obj) {\n if (obj instanceof DedicatedResourceVO) {\n return ((DedicatedResourceVO) obj).getId() == this.getId();\n } else {\n return false;\n }\n}\n"
"public void renderLimitLines(Canvas c) {\n ArrayList<LimitLine> limitLines = mYAxis.getLimitLines();\n if (limitLines == null)\n return;\n float sliceangle = mChart.getSliceAngle();\n float factor = mChart.getFactor();\n PointF center = mChart.getCenterOffsets();\n for (int i = 0; i < limitLin...
"public static final boolean isOrphanTag(String tagname) {\n return _orphans.contains(tagname.toLowerCase(java.util.Locale.ENGLISH));\n}\n"
"public void testSplitOverlapping() {\n ArcsSet s35 = new ArcsSet(3.0, 5.0, 1.0e-10);\n ArcsSet s46 = new ArcsSet(4.0, 6.0, 1.0e-10);\n ArcsSet.Split split1 = s46.split(new Arc(3.0, 5.0, 1.0e-10));\n ArcsSet split1Plus = split1.getPlus();\n ArcsSet split1Minus = split1.getMinus();\n Assert.assertEqual...
"public static void ping(Snip weblog) {\n try {\n AppConfiguration config = Application.get().getConfiguration();\n if (config.allow(AppConfiguration.PERM_WEBLOGS_PING)) {\n XmlRpcClient xmlrpc = new XmlRpcClient(\"String_Node_Str\");\n Vector params = new Vector();\n p...
"private Property buildNewProperty(TypeInfo info, JavaClass cls, JavaHasAnnotations javaHasAnnotations, String propertyName, JavaClass ptype) {\n Property property = null;\n if (helper.isAnnotationPresent(javaHasAnnotations, XmlElements.class)) {\n property = buildChoiceProperty(javaHasAnnotations);\n }...
"public static boolean ipMatch(String ip1, String ip2) {\n IPAddressString ipas1 = new IPAddressString(ip1);\n try {\n ipas1.validateIPv4();\n } catch (AddressStringException e) {\n e.printStackTrace();\n throw new Error(\"String_Node_Str\");\n }\n IPAddressString ipas2 = new IPAddre...
"public void widgetSelected(SelectionEvent e) {\n dlg = new XpathSelectDialog(composite.getShell(), treeParent, \"String_Node_Str\", site, false, null);\n dlg.setBlockOnOpen(true);\n dlg.open();\n if (dlg.getReturnCode() == Window.OK) {\n text.setText(value + dlg.getEntityName());\n dlg.close(...
"public NotificationMessage fromMessage(Message<String> message) {\n try {\n JsonNode jsonNode = this.objectMapper.readValue(message.getPayload(), JsonNode.class);\n if (!jsonNode.has(\"String_Node_Str\")) {\n throw new MessageConversionException(\"String_Node_Str\" + message.getPayload() + ...
"private static void assertSaneAnalysisError(ErrorInfo errorInfo, SkyKey key) {\n Throwable cause = errorInfo.getException();\n if (cause != null) {\n Preconditions.checkState(cause instanceof ConfiguredValueCreationException || cause instanceof ActionConflictException || cause instanceof AspectCreationExc...
"private void doOpenEdit(UserRequest ureq, CheckListAssessmentRow row) {\n if (editCtrl != null)\n return;\n Identity assessedIdentity = securityManager.loadIdentityByKey(row.getIdentityKey());\n editCtrl = new AssessedIdentityOverviewController(ureq, getWindowControl(), assessedIdentity, courseOres, us...
"public Cookie[] getCookies() {\n Cookie[] cookies = getHttpServletRequest().getCookies();\n if (cookies == null)\n return new Cookie[0];\n List<Cookie> newCookies = new ArrayList<Cookie>();\n for (Cookie c : cookies) {\n try {\n String name = ESAPI.validator().getValidInput(\"Strin...
"public void receiveMessage(Protos.TwoWayChannelMessage msg) {\n lock.lock();\n try {\n checkState(connectionOpen);\n Protos.Error.Builder errorBuilder;\n CloseReason closeReason;\n try {\n switch(msg.getType()) {\n case SERVER_VERSION:\n ch...
"public void genLabelAndKind(MethodDeclaration methodDeclaration, IProgramElement node) {\n if (methodDeclaration instanceof AdviceDeclaration) {\n AdviceDeclaration ad = (AdviceDeclaration) methodDeclaration;\n node.setKind(IProgramElement.Kind.ADVICE);\n if (ad.kind == AdviceKind.Around) {\n ...
"public static String getIp6FromRange(String ip6Range) {\n String[] ips = ip6Range.split(\"String_Node_Str\");\n String startIp = ips[0];\n IPv6Address start = IPv6Address.fromString(startIp);\n BigInteger gap = countIp6InRange(ip6Range);\n BigInteger next = new BigInteger(gap.bitLength(), s_rand);\n ...
"public static void generateCodeToCreateArrayOfObject(MethodWriter mw, int arrayLength) {\n mw.visitIntInsn(SIPUSH, arrayLength);\n mw.visitTypeInsn(ANEWARRAY, \"String_Node_Str\");\n}\n"
"public Iterable<Block> getBlocks() {\n if (archetypeBlock == null) {\n return blocks.values();\n }\n return Arrays.asList(block);\n}\n"
"private String getNewResource(QueryTree<N> tree, List<String> knownResources) {\n int i = 0;\n int chunkSize = 40;\n SortedSet<String> foundResources;\n QueryTree<N> newTree;\n while (!foundResources.isEmpty()) {\n for (String resource : foundResources) {\n newTree = getQueryTree(resou...
"public HashMap<String, Object> getMapGoogle(String qString) {\n LOG.debug(\"String_Node_Str\", qString);\n JSONObject googleResponse = geocodeGoogle(qString);\n LOG.debug(\"String_Node_Str\", googleResponse);\n if (googleResponse != null) {\n HashMap<String, Object> result = new HashMap<String, Obje...
"public String toString() {\n return \"String_Node_Str\" + butAction();\n}\n"
"public long remainingMillis() {\n long remainingMillis = completedMillis - System.currentTimeMillis();\n return remainingMillis >= 0 ? remainingMillis : 0;\n}\n"
"protected void doResetSearch(UserRequest ureq) {\n if (dataSource != null) {\n resetInternComponents();\n dataSource.clear();\n dataSource.load(null, null, 0, getPageSize());\n }\n}\n"
"public int open(final ExtendedItemHandle eih) {\n if (iInstanceCount > 0) {\n return Window.CANCEL;\n }\n iInstanceCount++;\n DesignElementHandle hostChart = eih.getElementProperty(ChartReportItemUtil.PROPERTY_HOST_CHART);\n if (hostChart instanceof ExtendedItemHandle) {\n this.extendedHan...
"private void flockToDecentralize() {\n short x = position.getX(), y = position.getY();\n HexGridArea area = new HexGridArea(x, y, (short) 1, NOTHING_TO_DO_MAX_RADIUS);\n int dx = 0, dy = 0;\n HexGridAreaIterator iter = area.iterator();\n while (iter.hasNext()) {\n short currX = iter.getNextX();\n...
"public static ConfigOption[] createConfigOptionsFromJCommander(Object createOptionsInstance) {\n ConfigOption[] opts = null;\n if (createOptionsInstance != null) {\n JCommanderPrefixTranslator translator = new JCommanderPrefixTranslator();\n translator.addObject(createOptionsInstance);\n JCo...
"public Builder withType(final String type) {\n this.bType = StringUtils.isBlank(type) ? null : type;\n return this;\n}\n"
"private void epmem_respond_to_cmd() throws SoarException, SQLException {\n if (db == null) {\n epmem_init_db();\n }\n IdentifierImpl state = decider.bottom_goal;\n List<WmeImpl> wmes;\n List<WmeImpl> cmds;\n Set<WmeImpl> cue_wmes = Sets.newHashSet();\n List<SymbolTriple> meta_wmes = Lists.n...
"public static Policy createPolicyObject(TestDataReader reader, String policyId) throws Exception {\n PolicyServiceTestHelper helper = PolicyServiceTestHelper.getInstance(false);\n String type = reader.getEntryValue(policyId, \"String_Node_Str\").trim();\n String policyName = reader.getEntryValue(policyId, \"S...
"private void buildQueue() {\n final StatsDReplicator statsDReplicator = createStatsDReplicator();\n final ServiceBuilder serviceBuilder = this.getServiceBuilder();\n serviceBuilder.setServiceObject(statsDReplicator);\n this.serviceQueue = serviceBuilder.buildAndStartAll();\n}\n"
"private Vector<String[]> getInvalidEdges() {\n Hashtable<String, Vector<Edge<String, String>>> allEdges = internalCaseDAG.getEdges();\n Vector<String> childOfNonexistentParent = new Vector<String>();\n Vector<String[]> edgesToRemove = new Vector<String[]>();\n Enumeration edgeOriginIndices = allEdges.keys(...
"public XSDSchema getXSDSchema(String fileName) throws URISyntaxException, MalformedURLException {\n XSDResourceImpl mainXsdResource = (XSDResourceImpl) resourceSet.getResource(URI.createFileURI(fileName), true);\n boolean haveExternalDependenciesWithoutLocation = false;\n for (Resource resource : resourceSet....
"public StreamRuntime clone(String key) {\n Lock joinLock = new ReentrantLock();\n JoinStreamRuntime joinStreamRuntime = new JoinStreamRuntime(executionPlanContext, metaStateEvent);\n for (SingleStreamRuntime singleStreamRuntime : singleStreamRuntimeList) {\n joinStreamRuntime.addRuntime((SingleStreamRu...
"public Collection<TdXmlSchema> createConnection() {\n List<TdXmlSchema> xmlDocs = new ArrayList<TdXmlSchema>();\n try {\n XtentisBindingStub stub = getXtentisBindingStub();\n WSDataModelPK[] pks = stub.getDataModelPKs(new WSRegexDataModelPKs(\"String_Node_Str\"));\n String techXSDFolderName ...
"public String[] next() {\n if (!headerReturned) {\n headerReturned = true;\n return header;\n }\n String[] result = new String[indexes.length];\n for (int i = 0; i < indexes.length; i++) {\n result[i] = row[indexes[i]];\n if (!dataTypes[i].isValid(result[i])) {\n thro...
"public void attach(String attachment, String cladeRoot, String prefix) {\n ItemList items = reader.processCatalog(source, true);\n Term attachTerm = null;\n if (!\"String_Node_Str\".equals(targetParentName)) {\n attachTerm = target.getTermbyName(targetParentName);\n if (attachTerm == null) {\n ...
"public void renderFaceXPos(Block par1Block, double par2, double par4, double par6, IIcon par8Icon) {\n if (faces.contains(ForgeDirection.EAST)) {\n if (!renderFaces.contains(ForgeDirection.EAST))\n return;\n if (isFacade) {\n Tessellator tessellator = Tessellator.instance;\n ...
"public boolean performComparison(int value) {\n int thisValue = Integer.parseInt(this.value);\n if (this.compType.compareTo(ComparisonType.COMP_EQ) == 0) {\n return thisValue == value;\n } else if (this.compType.compareTo(ComparisonType.COMP_NEQ) == 0) {\n return thisValue != value;\n } else ...
"public boolean teleport(Location location, PlayerTeleportEvent.TeleportCause cause) {\n net.minecraft.entity.player.EntityPlayerMP entity = getHandle();\n if (getHealth() == 0 || entity.isDead) {\n return false;\n }\n if (entity.playerNetServerHandler == null || entity.playerNetServerHandler.isDisco...
"public boolean removeTrigger(SchedulingContext context, String triggerName, String groupName) throws JobPersistenceException {\n synchronized (lock) {\n if (!setAccessor()) {\n throw new JobPersistenceException(\"String_Node_Str\");\n }\n String triggerId = getTriggersRepoId(groupNam...
"private static Parameter[] combineParameter(IdentifierMethod idMethod, DecisionMethod deMethod, Distance distance, double epsilon, boolean checkold, boolean adjustone, Parameter[] parameters) {\n Parameter[] res = new Parameter[parameters.length + 6];\n res[0] = new StringParameter(\"String_Node_Str\", idMethod....
"public double updateModel(DataFlink<DataInstance> dataUpdate) {\n DecimalFormat df = new DecimalFormat(\"String_Node_Str\");\n boolean convergence = false;\n CompoundVector prior = svb.getNaturalParameterPrior();\n CompoundVector initialPosterior = Serialization.deepCopy(this.svb.getPlateuStructure().getPl...
"private void download(String path, HttpServletResponse response) {\n try {\n File file = new File(path);\n String filename = file.getName();\n InputStream fis = new BufferedInputStream(new FileInputStream(path));\n byte[] buffer = new byte[fis.available()];\n fis.read(buffer);\n ...
"protected int addJoinAttributes(int count, PreparedStatement pstmt, Collection<JoinBuilder<SearchCriteria<?>>> joins) throws SQLException {\n for (JoinBuilder<SearchCriteria<?>> join : joins) {\n for (final Pair<Attribute, Object> value : join.getT().getValues()) {\n prepareAttribute(count++, pstm...
"public void testProtectedType() {\n runConformTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_No...
"protected void command() {\n jedis.select(db);\n if (jedis.exists(key) && getValueType(key) != NodeType.HASH)\n throw new RuntimeException(\"String_Node_Str\" + key + \"String_Node_Str\");\n else if (jedis.exists(key) && getValueType(key) == NodeType.HASH) {\n DeleteKey command = new DeleteKey(i...
"public static byte[] cryptoBoxEasy(byte[] message, byte[] nonce, byte[] publicKey, byte[] privateKey) throws SodiumLibraryException {\n NativeLong nonce_len = sodium().crypto_box_noncebytes();\n if (nonce.length != nonce_len.intValue()) {\n throw new SodiumLibraryException(\"String_Node_Str\" + nonce.leng...
"private void addKeys(Collection<ContentKey> keys) {\n logger.trace(\"String_Node_Str\", channel, keys);\n try {\n for (ContentKey key : keys) {\n if (key.compareTo(lastAdded) > 0) {\n queue.put(key);\n }\n }\n } catch (InterruptedException e) {\n logge...
"public String toString() {\n return \"String_Node_Str\" + super.toString() + \"String_Node_Str\";\n}\n"
"public boolean highlightComponent(IComponentIdentifier compId) {\n Object implClass;\n final Color highlightColor = null;\n Component component = null;\n try {\n if (getCurrentComponent() != null) {\n Object adapter = GUIAdapterFactoryRegistry.getInstance().getAdapter(getCurrentComponent(...
"private static void fixupContinuationRec(Logger logger, Function function, ExecContext outerCx, Continuation continuation, HierarchicalSet<Var> visible, Set<Var> referencedGlobals, AliasTracker outerAliases, Set<Var> outerBlockVars, Result result, boolean updateLists) {\n List<Var> constructVars = continuation.cons...
"public void handleException(Exception e, HttpServletResponse response, HttpServletRequest request) throws IOException {\n storeException(request, response, e);\n ResponseStatus responseStatus = AnnotationUtils.findAnnotation(e.getClass(), ResponseStatus.class);\n if (responseStatus != null) {\n HttpSta...
"String getBlogId() {\n Blog currentBlog = WordPress.getCurrentBlog();\n if (currentBlog.isDotcomFlag()) {\n return String.valueOf(currentBlog.getRemoteBlogId());\n }\n return currentBlog.getApi_blogid();\n}\n"
"protected Optional<Text> buildContent(DataView container) throws InvalidDataException {\n try {\n return container.get(Queries.JSON).map(json -> TextSerializers.JSON.deserialize(json.toString()));\n } catch (TextParseException e) {\n throw new InvalidDataException(e);\n }\n return Optional.em...
"private static void createPayPalPaymentResource(BraintreeFragment fragment, PayPalCheckout checkout, boolean isBillingAgreement, HttpResponseCallback callback) throws JSONException, ErrorWithResponse, BraintreeException {\n Configuration configuration = fragment.getConfiguration();\n CheckoutRequest request = Pa...
"private void updateButtonStatus() {\n int index = fListHyperlinks.getSelectionIndex();\n boolean enabled = (index >= 0);\n fBtnEdit.setEnabled(enabled);\n fBtnDelete.setEnabled(enabled);\n fBtnUp.setEnabled(enabled && index > 0);\n fBtnDown.setEnabled(enabled && index < (fListHyperlinks.getItemCount(...
"public Color getColor() {\n if (motionDisplayer == null) {\n motionDisplayer = dMotion.getMotionDisplayer();\n }\n return motionDisplayer.getDefaultForceColor();\n}\n"
"private void drawBorder(IFigure figure, Graphics g, Insets in, int side, int style, int[] width, String color) {\n Rectangle r = figure.getBounds().getCropped(in);\n if (style != 0) {\n g.setForegroundColor(ColorManager.getColor(color));\n if (style == -2) {\n BorderUtil.drawDoubleLine(g...
"public static byte[] networkPortionToCalledPartyBCDWithLength(String s) {\n String networkPortion = extractNetworkPortion(s);\n return numberToCalledPartyBCDHelper(networkPortion, true);\n}\n"
"public Color getBackground(Object element, int columnIndex) {\n if (element instanceof OverviewIndUIElement) {\n SchemaIndicator indicator = (SchemaIndicator) ((OverviewIndUIElement) element).getOverviewIndicator();\n if (indicator.getTableRowCount() == 0 && indicator.getViewCount() == 0) {\n ...
"double calculateLoss(double x0, double x1, double tolerance){\n\tdouble loss = Math.pow(x1 - x0, 2);\n\tcutoff(loss);\n\tloss += Math.abs(x1 - x0);\n\treturn Math.max(0d, loss - totlerance);\n}\n"
"public URL getResource(String name) {\n for (ClassLoader classLoader : loaders) {\n URL resource = classLoader.getResource(name);\n if (resource != null) {\n return resource;\n }\n }\n ClassLoader contextLoader = Thread.currentThread().getContextClassLoader();\n if (contextL...
"List<DBObject> getCollectionIndexes(String dbName, String collName) {\n List<DBObject> indexes = client.getDB(dbName).getCollection(collName).getIndexInfo();\n indexes.forEach(i -> {\n i.put(\"String_Node_Str\", i.get(\"String_Node_Str\"));\n i.removeField(\"String_Node_Str\");\n });\n return...
"private List<CommentRow> createCommentRows(String giverEmailPlusCourseId, CommentSearchResultBundle commentSearchResultBundle) {\n List<CommentRow> rows = new ArrayList<CommentRow>();\n String giverDetails = commentSearchResultBundle.giverTable.get(giverEmailPlusCourseId);\n String instructorCommentsLink = ge...
"public Node writeDescriptor(Node parent, String nodeName, EjbDescriptor ejb) {\n Map methodToTransactions = ejb.getMethodContainerTransactions();\n MethodNode mn = new MethodNode();\n for (Object o : methodToTransactions.entrySet()) {\n Map.Entry entry = (Map.Entry) o;\n MethodDescriptor md = (M...
"List<JSModule> createJsModules(List<String> specs, List<SourceFile> inputs) throws FlagUsageException, IOException {\n if (isInTestMode()) {\n return modulesSupplierForTesting.get();\n }\n Preconditions.checkState(specs != null);\n Preconditions.checkState(!specs.isEmpty());\n Preconditions.check...
"protected List<IRepositoryViewObject> loadRepViewObjectWithOtherTypes() throws PersistenceException {\n List<IRepositoryViewObject> list = new ArrayList<IRepositoryViewObject>();\n List<IRepositoryViewObject> processList = getAllProcessTypeObjectsWithoutCurrentType();\n if (processList != null && !processList...
"protected String handleImage(IImage image, Object context, String prefix, boolean needMap) {\n String mapID = null;\n if (needMap) {\n mapID = getImageMapID(image);\n if (map.containsKey(mapID)) {\n return (String) map.get(mapID);\n }\n }\n String ret = null;\n boolean re...
"private byte[] readTable(String name) throws DocumentException, IOException {\n int[] tableLocation;\n tableLocation = getTableLocation(name);\n if (tableLocation == null) {\n return null;\n }\n rf.seek(tableLocation[0]);\n while (length > maxString) {\n length -= maxString;\n re...
"private void createKeys(Document document, Element root) {\n Element nodeLabelKeyE = document.createElement(\"String_Node_Str\");\n nodeLabelKeyE.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n nodeLabelKeyE.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n nodeLabelKeyE.setAttribute(\"St...
"public static Map<Class<? extends AbstractRule>, Rule> parseConfig(ConfigurationSection system) {\n Map<Class<? extends AbstractRule>, Rule> rules = Collections.emptyMap();\n if (system != null && system.getConfigurationSection(\"String_Node_Str\") != null) {\n SpawnerMobRule rule = new SpawnerMobRule();\...
"public void hideFooterView() {\n if (mLoadMoreFooterView == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (showLoadMoreView) {\n this.showLoadMoreView = false;\n notifyDataSetChanged();\n }\n}\n"
"public boolean execute(LocalDataArea lda) {\n if (lda.stack.isEmpty()) {\n return false;\n }\n lda.stage.callFrame(EcmaScript.toInt32(lda.stack.pop()));\n return true;\n}\n"
"protected void onClickInternal(final AjaxRequestTarget target) {\n securityQuestionModal.header(new ResourceModel(\"String_Node_Str\"));\n target.add(securityQuestionModal.setContent(buildModalPanel()));\n securityQuestionModal.addSumbitButton();\n securityQuestionModal.show(true);\n}\n"
"private String[] getNearbyLocations() {\n int count = dbcache.getNodeCount();\n ArrayList<String> names = new ArrayList<String>();\n for (int i = 0; i < count; i++) {\n MapNode n = dbcache.getNodeByIdx(i);\n double dist = n.distance(bestKnownLocation.getLatitude(), bestKnownLocation.getLongitude...
"public void process(T image) {\n tracker.process(image);\n pairs.clear();\n List<PointTrack> tracks = tracker.getActiveTracks();\n for (PointTrack t : tracks) {\n AssociatedPair p = t.getCookie();\n pairs.add(p);\n }\n}\n"
"private void createCanvasAndRequests(TmfExperiment<LttngEvent> newExperiment) {\n lastUsedExperiment = newExperiment;\n TmfExperiment<LttngEvent> experimentCopy = newExperiment.createTraceCopy();\n fullExperimentCanvas.createNewHistogramContent(fullExperimentCanvas.getSize().x, FULL_TRACE_BAR_WIDTH, FULL_TRAC...
"public static List<Identity> retrieveParticipantsFromCourseGroups(CourseGroupManager cgm) {\n Set<Identity> uniq = new HashSet<>();\n uniq.addAll(cgm.getParticipantsFromAreas());\n uniq.addAll(cgm.getParticipantsFromBusinessGroups());\n return new ArrayList<>(uniq);\n}\n"
"public Object getAdapter(Class adapter) {\n if (adapter == IContentOutlinePage.class) {\n LibraryOutlinePage outline = new LibraryOutlinePage(getModel());\n getModelEventManager().addModelEventProcessor(outline.getModelProcessor());\n return outline;\n }\n if (adapter == DataViewPage.clas...
"protected void populateItem(ListItem<MilestoneGroup> listItem) {\n MilestoneGroup group = listItem.getModelObject();\n PageParameters params = getProjectPageParameters();\n params.add(\"String_Node_Str\", group.getName());\n BookmarkablePageLink nameLink = new BookmarkablePageLink(\"String_Node_Str\", getP...
"public void receive(Event[] events) {\n EventPrinter.print(events);\n for (Event event : events) {\n if (event.isExpired()) {\n removeEventCount++;\n } else {\n inEventCount++;\n if (inEventCount == 1) {\n Assert.assertEquals(70.0, event.getData()[1])...
"public static void convertShpFile(File rawFile, SpatialDataFolder outputFolder, int level) throws IOException, WikiBrainException {\n if ((level != 0) && (level != 1))\n throw new IllegalArgumentException(\"String_Node_Str\");\n File outputFile = new File(outputFolder.getRefSysFolder(\"String_Node_Str\")....
"public void fire() throws IllegalActionException {\n if (_debugging) {\n _debug(\"String_Node_Str\");\n }\n int i = 0;\n for (IOPort port : _breakVariables) {\n Receiver[][] receivers = port.getReceivers();\n for (Receiver[] receivers2 : receivers) {\n for (Receiver receiver...
"public MemberContext[] terminateContainers(String clusterId) throws InvalidClusterException {\n Lock lock = null;\n try {\n lock = CloudControllerContext.getInstance().acquireMemberContextWriteLock();\n ClusterContext clusterContext = CloudControllerContext.getInstance().getClusterContext(clusterId...
"public void close() throws IOException {\n if (sortedState) {\n writeIndex();\n writeHeader();\n writeStats();\n IOUtils.closeQuietly(headerOutput);\n entriesChunkWriter.close(collectionBuilder);\n IOUtils.closeQuietly(alignmentEntries);\n IOUtils.closeQuietly(statsWriter);\n}\n"