content stringlengths 40 137k |
|---|
"protected static void validateModel(List<Resource> groups) throws InvalidModelException {\n if (groups.isEmpty())\n throw new InvalidModelException(\"String_Node_Str\");\n }\n if (groups.size() > 1) {\n throw new InvalidModelException(\"String_Node_Str\");\n}\n"
|
"public static void init() throws Exception {\n hConf = TEST_HBASE.getConfiguration();\n cConf = CConfiguration.create();\n cConf.set(Constants.Zookeeper.QUORUM, TEST_HBASE.getZkConnectionString());\n cConf.set(TxConstants.Service.CFG_DATA_TX_BIND_PORT, Integer.toString(Networks.getRandomPort()));\n cCon... |
"private boolean propertiesEqual(String a, String b) {\n if (a == null) {\n return b == null;\n } else {\n return (a.equals(b));\n }\n}\n"
|
"public String getApplicationName(ClassLoader classLoader) {\n if (appNames.containsKey(classLoader)) {\n return appNames.get(classLoader);\n } else {\n synchronized (appNames) {\n if (appNames.containsKey(classLoader)) {\n return appNames.get(classLoader);\n } e... |
"private void createGroups(Composite parent) {\n Group composite = new Group(parent, SWT.NONE);\n composite.setText(\"String_Node_Str\");\n composite.setLayout(SWTUtil.createGridLayout(1, false));\n composite.setLayoutData(SWTUtil.createFillGridData());\n editor = new HierarchyWizardEditor<T>(composite, ... |
"public void doRun() {\n try {\n concurrentMapManager.backupRecord(rec);\n } finally {\n backupTaskCount.decrementAndGet();\n }\n}\n"
|
"public <T> void objectToNode(T object, javax.jcr.Node node) throws RepositoryException {\n Class<?> nodeType = object.getClass();\n OCMMapping mapping = ocmExtension.getOCMMappingStore().findMapping(nodeType);\n Set<String> jcrProperties = mapping.getPropertiesToFields().keySet();\n for (String jcrProperty... |
"private void onDoubleClick(TurboIssue issue) {\n TurboIssue modifiedIssue = new TurboIssue(issue);\n (new IssueDialog(mainStage, model, modifiedIssue)).show().thenApply(response -> {\n if (response.equals(\"String_Node_Str\")) {\n model.updateIssue(copy, issue);\n }\n return true;... |
"protected String osInstallScript() {\n StringBuilder res = new StringBuilder();\n res.append(ScriptConstants.ECHO_COPYING + Constants.SPACE);\n res.append(netarchiveSuiteFileName);\n res.append(Constants.SPACE + ScriptConstants.TO + Constants.COLON + Constants.SPACE);\n res.append(name);\n res.append... |
"public void execute(HierarchicalGraph hgraph, AttributeModel attributeModel) {\n isCanceled = false;\n if (isDirected)\n bruteForce(hgraph, attributeModel);\n else\n triangles(hgraph);\n AttributeTable nodeTable = attributeModel.getNodeTable();\n AttributeColumn clusteringCol = nodeTable.g... |
"public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n mSearchDialogBuilder.cancelDialog();\n UnitSearchItem selectedItem = mSearchDialogBuilder.getItem(position);\n clickUnitButton(mUnitType.findButtonPositionforUnitArrayPos(selectedItem.getUnitPosition()));\n}\n"
|
"public void initialLayout() {\n layout.putConstraint(SpringLayout.WEST, minMaxPanel[0], 0, SpringLayout.WEST, this);\n layout.putConstraint(SpringLayout.WEST, minMaxLabel[0], 0, SpringLayout.EAST, minMaxPanel[0]);\n layout.putConstraint(SpringLayout.WEST, minMaxPanel[1], 0, SpringLayout.WEST, minMaxPanel[0]);... |
"public static void main(String[] args) {\n try {\n SGID mainMethod = ReferenceCreator.mainMethod(args);\n if (mainMethod == null) {\n System.exit(FeatureImporter.EXIT_CODE_INVALID_FILE);\n }\n } catch (IllegalArgumentException e) {\n System.exit(FeatureImporter.EXIT_CODE_EX... |
"private List<UpdateResult> checkJobletNodeReload(boolean onlySimpleShow) {\n if (getProcess() == null || jobletProcessProvider == null) {\n return Collections.emptyList();\n }\n List<UpdateResult> nodeResults = new ArrayList<UpdateResult>();\n for (INode node : this.getProcess().getGraphicalNodes())... |
"public void testNeedExcludeDomainAttribute() {\n final Map<FilterKey, Action> fm = new HashMap<FilterKey, Action>();\n fm.put(new FilterKey(\"String_Node_Str\", \"String_Node_Str\"), Action.INCLUDE);\n fm.put(new FilterKey(\"String_Node_Str\", null), Action.EXCLUDE);\n final FilterUtils f = new FilterUtils... |
"public boolean isSuperTypeOf(IType type) {\n int arrayDims = type.getArrayDimensions();\n if (arrayDims == 0) {\n return false;\n }\n int thisDims = this.getArrayDimensions();\n if (arrayDims > thisDims) {\n return this.type.getTheClass() == Types.OBJECT_CLASS;\n }\n return this.type... |
"private String cleanFileName(String name) {\n name = getNameMatch(name, \"String_Node_Str\");\n name = getNameMatch(name, \"String_Node_Str\");\n name = getNameMatch(name, \"String_Node_Str\");\n name = getNameMatch(name, \"String_Node_Str\");\n name = getNameMatch(name, \"String_Node_Str\");\n name ... |
"static void setPipeline(FilterPipeline pipeline) {\n if (GuiceFilter.pipeline instanceof ManagedFilterPipeline) {\n LOGGER.warning(MULTIPLE_INJECTORS_WARNING);\n }\n GuiceFilter.pipeline = pipeline;\n}\n"
|
"public void contextTags(ReplaceableTagEvent event) {\n if (!event.matches(\"String_Node_Str\") || event.getScriptEntry() == null)\n return;\n String type = event.getType();\n if (event.getScriptEntry().getResidingQueue().hasContext(type)) {\n Attribute attribute = new Attribute(event.raw_tag, ev... |
"public void bind(HasText text) {\n addBadgeHolderComponent(text);\n addNotificationsChangeListener(new NotificationsChangeListener() {\n public void onNotificationChanges(NotificationHolder holder) {\n updateBadgeCaption();\n }\n });\n}\n"
|
"private Insn buildMonitorInsn(MonitorStmt stmt, Opcode opc) {\n Value lockValue = stmt.getOp();\n constantV.setOrigStmt(stmt);\n Register lockReg = null;\n if (lockValue instanceof Constant)\n if ((lockReg = monitorRegs.get(lockValue)) != null)\n lockReg = lockReg.clone();\n if (lockRe... |
"public void handleMessage(Message message) {\n ScannerEvent queueEvent = new ScannerEvent(message.what, message.obj);\n switch(queueEvent.getType()) {\n case ScannerEvent.LOGICAL_SCAN_START_REQUESTED:\n {\n if (!scanning) {\n lastExitCheckTimestamp = clock.now(... |
"protected void internalTransform(String phaseName, Map<String, String> options) {\n if (output)\n out.println(\"String_Node_Str\");\n BodyBuilder.retrieveAllBodies();\n BodyBuilder.retrieveAllNames();\n Scene scene = G.v().soot_Scene();\n scene.releaseActiveHierarchy();\n hierarchy = scene.get... |
"protected void runRequest() throws Exception {\n Trace.entering(Activator.PLUGIN_ID, DebugOptions.METHODS_ENTERING, this.getClass(), \"String_Node_Str\");\n setupProxies();\n httpClient.getHttpConnectionManager().getParams().setSoTimeout(DEFAULT_CONNECTION_TIMEOUT);\n httpClient.getHttpConnectionManager().... |
"private void saveDataSet() {\n Log.d(_TAG, \"String_Node_Str\");\n Log.v(_TAG, \"String_Node_Str\" + mCursor.first());\n CharSequence c = null;\n String s = new String();\n c = mCond1.getText();\n if (TextUtils.isEmpty(c)) {\n s = \"String_Node_Str\";\n } else {\n s = c.toString();\n... |
"private void tearDownAudioPlayerNotification() {\n mMediaNotificationManager.stopNotification();\n}\n"
|
"public void initCompassView() {\n setFocusable(true);\n initAstronomicParameters();\n northString = \"String_Node_Str\";\n eastString = \"String_Node_Str\";\n southString = \"String_Node_Str\";\n westString = \"String_Node_Str\";\n dashPath = new DashPathEffect(new float[] { 2, 5 }, 1);\n dashe... |
"public void readPortable(PortableReader reader) throws IOException {\n name = reader.readUTF(\"String_Node_Str\");\n includeValue = reader.readBoolean(\"String_Node_Str\");\n boolean hasKey = reader.readBoolean(\"String_Node_Str\");\n if (reader.readBoolean(\"String_Node_Str\")) {\n predicate = (Pre... |
"public byte[] computeMac(final byte[] data) throws GeneralSecurityException {\n javax.crypto.Mac tmp = javax.crypto.Mac.getInstance(this.algorithm);\n tmp.init(this.key);\n tmp.update(data);\n byte[] digest = new byte[digestSize];\n System.arraycopy(tmp.doFinal(), 0, digest, 0, digestSize);\n return ... |
"public static ImageDescriptor createStacked3DBarChart(String titile, CategoryDataset dataset) {\n JFreeChart chart = ChartFactory.createStackedBarChart3D(null, null, \"String_Node_Str\", dataset, PlotOrientation.VERTICAL, true, false, false);\n CategoryPlot plot = chart.getCategoryPlot();\n BarRenderer render... |
"public void onExecute(Message receivedMessage) {\n log.fine(\"String_Node_Str\" + receivedMessage);\n log.fine(\"String_Node_Str\" + Element.as(nativeNode).getString());\n TreeOperation operation = (TreeOperation) receivedMessage.getOperation();\n final int position = operation.getPosition();\n final in... |
"public static void go(Document d) {\n System.out.println(\"String_Node_Str\");\n TregexPattern pat = TregexPatternFactory.getPattern(\"String_Node_Str\");\n for (Sentence s : d.sentences) {\n TregexMatcher matcher = pat.matcher(s.root);\n while (matcher.find()) {\n Tree NP = matcher.g... |
"public void onChunkReady(Vector3i chunkPos) {\n List<NetData.BlockChangeMessage> updateMessages = awaitingChunkReadyUpdates.removeAll(chunkPos);\n for (NetData.BlockChangeMessage message : updateMessages) {\n WorldProvider worldProvider = CoreRegistry.get(WorldProvider.class);\n Vector3i pos = NetM... |
"public String getRelationshipLink(RequestContext context, String dbName, String collName, DBObject data) throws IllegalArgumentException {\n Object _referenceValue = data.get(referenceField);\n String reference;\n if (role == ROLE.OWNING) {\n if (_referenceValue == null) {\n return null;\n ... |
"public void fromMap(Map map) throws ParseException {\n if (map.containsKey(OpsGenieClientConstants.API.PARTICIPANT)) {\n participant = (String) map.get(OpsGenieClientConstants.API.PARTICIPANT);\n } else {\n participant = (String) map.get(OpsGenieClientConstants.API.NAME);\n }\n if (map.contai... |
"public void run() {\n try {\n TreeSet<CacheRecord<K>> records = new TreeSet<CacheRecord<K>>(comparator);\n records.addAll(cache.values());\n int evictSize = cache.size() * evictionPercentage / 100;\n int i = 0;\n for (CacheRecord<K> record : records) {\n cache.remove(re... |
"public IContent execute() {\n pageReader.context.setPageNumber(pageNumber);\n pageReader.context.setExecutingMasterPage(true);\n IContent content = pageReader.loadLocalizedPageContent(pageNumber);\n pageReader.initializeContent(content);\n pageReader.initalizeContentVisitor.visit(content, null);\n pa... |
"public void align(boolean lastLine, LayoutContext context) {\n assert (parent instanceof BlockContainerArea);\n CSSValue align = ((BlockContainerArea) parent).getTextAlign();\n boolean isRightAligned = BidiAlignmentResolver.isRightAligned(parent.content, align, lastLine);\n if ((isRightAligned || IStyle.CE... |
"private boolean containMember(Object[] levelkey, Object[] key) {\n Object[] memberKeys = levelkey;\n for (Object obj : key) {\n try {\n if (ScriptEvalUtil.compare(obj, memberKeys[0]) == 0) {\n return true;\n }\n } catch (DataException e) {\n }\n }\n ... |
"public void executeAction(Action action, ICommandListener listener) throws RemoteException {\n if (action == null)\n return;\n final String type = action.getType();\n if (type == null)\n return;\n Bundle data = action.getData();\n if (data != null)\n data.setClassLoader(context.getC... |
"protected Dimension getIntrinsicDimension(IImageContent content) throws BadElementException, MalformedURLException, IOException {\n Image image = null;\n switch(content.getImageSource()) {\n case IImageContent.IMAGE_FILE:\n ReportDesignHandle design = content.getReportContent().getDesign().getR... |
"public static Map<Class<? extends AbstractRule>, Rule> parseConfig(ConfigurationSection config) {\n Map<Class<? extends AbstractRule>, Rule> rules = Collections.emptyMap();\n if (system != null && system.getConfigurationSection(\"String_Node_Str\") != null) {\n TamedCreatureRule rule = new TamedCreatureRu... |
"public final void setBackgroundDrawable(Drawable drawable) {\n if (drawable != mBackgroundDrawable || mBackgroundResource != 0) {\n mBackgroundResource = 0;\n mBackgroundDrawable = drawable;\n if (mDecor != null) {\n mDecor.setWindowBackground(drawable);\n }\n }\n}\n"
|
"public static NonArrayTypeSymbol builder(String typename) {\n if (typename == null) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n String intern = typename.intern();\n TypeSymbol search = typeSymbolMap.get(intern);\n if (search == null) {\n search = new NonArrayTypeSymbol(typen... |
"private Driver findDriver(String className) throws JDBCException {\n Class driverClass = null;\n boolean driverInClassPath = false;\n try {\n driverClass = Class.forName(className);\n logger.info(\"String_Node_Str\" + className);\n driverInClassPath = true;\n } catch (ClassNotFoundExce... |
"public void optimize(Logger logger, Function f) throws UserException {\n elimRefCountsRec(logger, f, f.getMainblock(), new Counters<Var>(), new Counters<Var>(), new HierarchicalSet<Var>());\n}\n"
|
"public DBObject buildSearchQueryDBObject() {\n return new BasicDBObject().append(\"String_Node_Str\", this.changeId).append(\"String_Node_Str\", this.author);\n}\n"
|
"private boolean isInGroup(Set<Principal> principals) {\n logger.fine(\"String_Node_Str\" + principals.size() + \"String_Node_Str\" + group);\n for (Principal p : principals) {\n logger.fine(\"String_Node_Str\" + p + \"String_Node_Str\" + group);\n if (p.getType() == Type.GROUP || p.getType() == Typ... |
"public void setConcedingPlayer(UUID playerId) {\n Player player = null;\n if (state.getChoosingPlayerId() != null) {\n player = getPlayer(state.getChoosingPlayerId());\n } else if (state.getPriorityPlayerId() != null) {\n player = getPlayer(state.getPriorityPlayerId());\n }\n if (player !=... |
"public JAXBContextImpl createAugmented(Class<?> clazz) throws JAXBException {\n Class[] newList = new Class[classes.length + 1];\n System.arraycopy(classes, 0, newList, 0, classes.length);\n newList[classes.length] = clazz;\n return new JAXBContextImpl(newList, bridges.keySet(), subclassReplacements, defau... |
"public List<Package> fillSchemas(Connection dbConn, DatabaseMetaData dbJDBCMetadata, IMetadataConnection metaConnection, List<String> schemaFilter) {\n List<Schema> returnSchemas = new ArrayList<Schema>();\n if (dbJDBCMetadata == null || (dbConn != null && ConnectionHelper.getCatalogs(dbConn).size() > 0) || Conn... |
"private String getInputedPassword(String promptMsg) {\n try {\n ConsoleReader reader = new ConsoleReader();\n reader.setPrompt(promptMsg);\n String password = null;\n try {\n password = reader.readLine(Character.valueOf('*'));\n } catch (IllegalArgumentException e) {\n ... |
"public Browser getTargetBrowser() {\n if (this.targetBrowser == null) {\n String browserProperty = System.getProperty(\"String_Node_Str\", \"String_Node_Str\");\n this.targetBrowser = Browser.valueOf(browserProperty.trim().toUpperCase());\n }\n return this.targetBrowser;\n}\n"
|
"public String getStatus(TestStructure testStructure, TranslationService translationService) throws SystemException {\n SVNClientManager clientManager = getSVNClientManager(testStructure.getRootElement());\n SVNStatusClient statusClient = clientManager.getStatusClient();\n ISVNStatusHandler statusHandler = new... |
"public static Object buildId(PersistenceContext app, String entityName, String idString) {\n DatabaseSession session = app.getServerSession();\n ClassDescriptor descriptor = app.getDescriptor(entityName);\n List<DatabaseMapping> pkMappings = descriptor.getObjectBuilder().getPrimaryKeyMappings();\n List<Sor... |
"public Time parseTime(String time) {\n String[] split = time.split(\"String_Node_Str\");\n int hour = 0, minute = 0;\n try {\n hour = Integer.parseInt(split[0]);\n minute = Integer.parseInt(split[1]);\n } catch (Exception e) {\n System.out.println(\"String_Node_Str\");\n }\n Stri... |
"protected boolean layoutChildren() {\n if (null == textContent)\n return false;\n while (comp.hasNextArea()) {\n TextArea area = comp.getNextArea(getFreeSpace());\n addTextArea(area);\n comp.setNewLineStatus(false);\n if (area.isLineBreak()) {\n if (newLine()) {\n ... |
"public void run() {\n try {\n Thread.sleep(300);\n } catch (final InterruptedException e) {\n throw new RuntimeException(e);\n }\n boolean notified = false;\n synchronized (stop) {\n while (!notified) {\n stop.notifyAll();\n notified = true;\n }\n }\n... |
"public org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent convertQuestionnaireResponseGroupComponent(org.hl7.fhir.dstu2.model.QuestionnaireResponse.GroupComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu3.model.Questi... |
"public Container iremove(int begin, int end) {\n if ((begin >= end) || (end > (1 << 16))) {\n throw new IllegalArgumentException(\"String_Node_Str\" + begin + \"String_Node_Str\" + end + \"String_Node_Str\");\n }\n if (begin == end - 1) {\n remove((short) begin);\n return this;\n }\n ... |
"private String applyAndGetCorrelationRoot(boolean batchCorrelationValues) {\n Class<?> viewRootEntityClass = viewRootType.getEntityClass();\n String idAttributePath = getEntityIdName(viewRootEntityClass);\n FullQueryBuilder<?, ?> queryBuilder = entityViewConfiguration.getCriteriaBuilder();\n Map<String, Ob... |
"public static AbstractFile getFile(FileURL fileURL, AbstractFile parent) throws IOException {\n String filePath = fileURL.getPath();\n if (OsFamilies.WINDOWS.isCurrent() && FileProtocols.FILE.equals(fileURL.getProtocol()))\n filePath = FileToolkit.removeLeadingSeparator(filePath, \"String_Node_Str\");\n ... |
"public void testRecoverMissingResource() throws Exception {\n final Xid xid0 = new MockXid(0, UidGenerator.generateUid().getArray(), BitronixXid.FORMAT_ID);\n xaResource.addInDoubtXid(xid0);\n Set names = new HashSet();\n names.add(\"String_Node_Str\");\n journal.log(Status.STATUS_COMMITTING, new Uid(xi... |
"public static void setLocale(ULocale locale) {\n currentLocale = locale;\n if (resourceBundle != null) {\n synchronized (Thread.currentThread()) {\n if (resourceBundle == null)\n return;\n if ((locale == null && !ULocale.getDefault().toLocale().equals(resourceBundle.ge... |
"public static void invalidate(Image.StaticDiskImage imgInfo) {\n String[] parts = imgInfo.getManifestLocation().split(\"String_Node_Str\");\n try {\n ServiceDispatcher.lookupSingle(Components.lookup(Walrus.class)).dispatch(new FlushCachedImageType(parts[0], parts[1]));\n } catch (Exception e) {\n }\... |
"private boolean run() {\n try {\n project.setTopLevelLogger(exec.getExecLogger());\n exec.info(\"String_Node_Str\");\n project.initialize(true);\n MethodInfo largestMethod = project.getWCETProcessorModel().getMethodCache().checkCache();\n int minWords = MiscUtils.bytesToWords(larg... |
"private void showAdminPerspective() {\n DeckPanel contentDeck = MantleApplication.getInstance().getContentDeck();\n if (MantleApplication.getInstance().getContentDeck().getWidgetIndex(MantleXul.getInstance().getAdminPerspective()) == -1) {\n contentDeck.add(MantleXul.getInstance().getAdminPerspective());\... |
"public String getRequestHeader(String key) {\n for (Entry<String, String> entry : requestHeaders.entrySet()) {\n if (key.equalsIgnoreCase(entry.getKey())) {\n return entry.getValue();\n }\n }\n return null;\n}\n"
|
"private void addOpenedConnection(VodAddress openedHole, HpSession session) {\n OpenedConnection openedConnection;\n int natBindingTimeout = (int) Math.min(self.getNat().getBindingTimeout(), openedHole.getNatBindingTimeout());\n if (session.isHeartbeatConnection()) {\n scheduleHeartbeat(openedHole.getId... |
"public void testParseUserList() throws UnknownHostException {\n String[] userList = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n ArrayList<InetSocketAddress> addresses = IrcDiscovery.parseUserList(userList);\n assertEquals(\"String_Node_Str\", 2, addresses.size());\n St... |
"private Set<Element> parseChildElements(ComplexType ctype, org.w3c.dom.Element element, XSDDocument xsdDocument) throws ParserException {\n logger.log(Level.FINER, \"String_Node_Str\", new Object[] { ctype, ctypes, element, xsdDocument });\n Set<Element> elements = new TreeSet<Element>();\n NodeList domElemen... |
"public void onUserAvatarUpdate(UserAvatarUpdateEvent event) {\n List<Guild> guilds = event.getUser().getMutualGuilds();\n EmbedBuilder builder = new EmbedBuilder();\n User user = event.getUser();\n String title = \"String_Node_Str\" + user.getName() + \"String_Node_Str\" + user.getDiscriminator() + \"Strin... |
"public static ClusterInstanceBean convertClusterToClusterInstanceBean(String instanceId, Cluster cluster, String alias) {\n ClusterInstanceBean clusterInstanceBean = new ClusterInstanceBean();\n clusterInstanceBean.setAlias(alias);\n clusterInstanceBean.setServiceName(cluster.getServiceName());\n clusterIn... |
"public static MessageSigDecl parseMessageSignatureDecl(ScribbleParser parser, CommonTree ct) {\n CommonTree tmp1 = getSchemaChild(ct);\n String schema = AntlrSimpleName.getName(tmp1);\n CommonTree tmp2 = getExtNameChild(ct);\n String extName = AntlrExtIdentifier.getName(tmp2);\n CommonTree tmp3 = getSou... |
"public DirectiveUIHints getUIHints() {\n DirectiveUIHints ret = new DirectiveUIHints(Regex.class, new DirectiveUIHints.Constructor[] { new DirectiveUIHints.Constructor(new DirectiveUIHints.Parameter[] { new DirectiveUIHints.Parameter(String.class, false, \"String_Node_Str\") }, \"String_Node_Str\"), new DirectiveUI... |
"public void handleEvent(AEvent event) {\n if (event instanceof OpenCreatePathwaySmallMultiplesGroupDialogEvent) {\n if (((OpenCreatePathwaySmallMultiplesGroupDialogEvent) event).getDimensionGroupDataContainer() != handler.getDataContainer())\n return;\n OpenCreatePathwaySmallMultiplesGroupD... |
"public ItemStack onItemRightClick(ItemStack var1, World var2, EntityPlayer var3) {\n if (!var2.isRemote) {\n if (var2.getWorldTime() % 4 == 0) {\n if (var1.getItem() == TwilightItemsWeapons.skythernPhaser) {\n var2.playSoundAtEntity(var3, this.firesound, 1.0F, 1.0F);\n ... |
"public void initialize(AbstractSession session) throws DescriptorException {\n String referenceClassName = getReferenceClassName();\n if (this.referenceClass == null && referenceClassName != null) {\n if (!referenceClassName.equals(XMLConstants.UNKNOWN_OR_TRANSIENT_CLASS)) {\n setReferenceClass... |
"private void decompose(RealMatrix covariance, double small) throws NotPositiveDefiniteMatrixException {\n int order = covariance.getRowDimension();\n double[][] c = covariance.getData();\n double[][] b = new double[order][order];\n int[] swap = new int[order];\n int[] index = new int[order];\n for (i... |
"protected ViewModel doGet(HttpServletRequest request, HttpServletResponse response) throws Exception {\n Account account = AccountResolver.INSTANCE.getAccount(request);\n response.setHeader(\"String_Node_Str\", \"String_Node_Str\");\n response.setHeader(\"String_Node_Str\", \"String_Node_Str\");\n response... |
"public void siegfriedCorporaTestFile() throws RODAException, ParseException, FileAlreadyExistsException, InterruptedException, IOException {\n AIP root = model.createAIP(null, RodaConstants.AIP_TYPE_MIXED, new Permissions(), aipCreator);\n TransferredResource transferredResource = createCorpora();\n AssertJUn... |
"private HashCollisionNode ensureEditable(AtomicReference<Thread> edit, int count, Object[] array) {\n if (this.edit == edit) {\n this.array = array;\n return this;\n }\n return new HashCollisionNode(edit, hash, count, array);\n}\n"
|
"public Pair<List<ExtensionLog>, Integer> getLog(String path, String name, ExtensionLog.Type type, int pageSize, int offset) {\n String typeAsString = type != null ? type.name() : null;\n int count = extensionLogRepository.countPages(path, name, typeAsString);\n List<ExtensionLog> logs = extensionLogRepository... |
"public void onWaypointsReceived(List<waypoint> waypoints) {\n if (waypoints != null) {\n Toast.makeText(myDrone.context, \"String_Node_Str\", Toast.LENGTH_SHORT).show();\n myDrone.tts.speak(\"String_Node_Str\");\n setHome(new Home(waypoints.get(0)));\n waypoints.remove(0);\n clear... |
"public void disconnect() {\n if (session != null) {\n session.leaveChat(chatId);\n}\n"
|
"public boolean hasNext() {\n return next != null;\n}\n"
|
"private List<List<Attribute<?, ?>>> getAndCheckAttributes(String[] attributes) {\n List<List<Attribute<?, ?>>> attrs = new ArrayList<List<Attribute<?, ?>>>(attributes.length);\n for (int i = 0; i < attributes.length; i++) {\n if (attributes[i] == null) {\n throw new NullPointerException(\"Strin... |
"public ContextMap<List<HashedString>, Map<Location, ValueMapping>> transfer(InstructionHandle stmt, FlowEdge edge, ContextMap<List<HashedString>, Map<Location, ValueMapping>> input, Interpreter<List<HashedString>, Map<Location, ValueMapping>> interpreter, Map<InstructionHandle, ContextMap<List<HashedString>, Map<Locat... |
"public JCodeModel generateModel() throws IllegalStateException {\n JCodeModel model = super.generateModel();\n JDefinedClass definedClass = model._getClass(this.getClassName());\n JMethod constructor = definedClass.constructor(JMod.PROTECTED);\n constructor.param(JMod.FINAL, Logger.class, LOGGER_PARAMETER_... |
"public int locateInBlock(int block, CharSequence str) {\n if (block >= blocks.getNumberOfElements()) {\n return 0;\n }\n ReplazableString tempString = new ReplazableString();\n int idInBlock = 0;\n int cshared = 0;\n ByteBuffer buffer = cacheBuffers.get()[block / BLOCKS_PER_BYTEBUFFER];\n b... |
"public void testLeftOuterJoin() {\n putEntities();\n List<PartitionedTrade> trades = PartitionedTrade.findLeftOuter(mgr, 5, \"String_Node_Str\", null);\n Assert.assertEquals(3, trades.size());\n}\n"
|
"public void resolve(MarkerList markers, IContext context) {\n if (this.theClass == null) {\n return;\n }\n if (this.retention == null) {\n IAnnotation retention = this.theClass.getAnnotation(Annotation.Types.RETENTION_CLASS);\n if (retention != null) {\n INamed value = (INamed)... |
"public List<DistroRead> getDistros() {\n loadManifest(false);\n List<DistroRead> drs = new ArrayList<DistroRead>();\n String vendorStr = Configuration.getStrings(VENDOR, \"String_Node_Str\");\n String vendorStrTmp = vendorStr.toLowerCase();\n List<String> vendors = Arrays.asList(vendorStrTmp.indexOf(\"S... |
"public double compute(MathArrays.Function f) {\n final double[] array;\n final int start;\n final int num;\n synchronized (this) {\n array = internalArray;\n start = startIndex;\n num = numElements;\n }\n return f.evaluate(array, start, num);\n}\n"
|
"protected void event(UserRequest ureq, Controller source, Event event) {\n if (source == this.disclaimerFormController) {\n if (event == Event.CANCELLED_EVENT) {\n fireEvent(ureq, Event.CANCELLED_EVENT);\n } else if (event == Event.DONE_EVENT) {\n boolean acceptCheckboxChecked = ... |
"public int compareTo(Object o) {\n return getCommandName().compareTo(((ICommand) o).getCommandName());\n}\n"
|
"public void testArpa() {\n Arpa arpa = null;\n arpa = Arpa.decodeArpa(\"String_Node_Str\");\n assertNotNull(arpa);\n assertEquals(arpa.getIpVersion().getName(), \"String_Node_Str\");\n assertEquals(arpa.getEndLowAddress().toString(), \"String_Node_Str\");\n assertEquals(arpa.getStartLowAddress().toSt... |
"public CollectionOperationStatus getOperationStatus() {\n if (failedOperationStatus.size() > 0) {\n return new CollectionOperationStatus(failedOperationStatus.get(0));\n }\n OperationStatus end = null;\n OperationStatus duplicated = null;\n OperationStatus trimmed = null;\n OperationStatus dup... |
"public void testInjector() throws Exception {\n Injector upgradeToolInjector = new UpgradeTool().createInjector();\n upgradeToolInjector.getInstance(UpgradeDatasetServiceManager.class);\n}\n"
|
"private void _updateLinks(ComponentRelation relation) {\n List linkedPortList = relation.linkedPortList();\n int allPortCount = linkedPortList.size();\n Iterator links = new LinkedList(_linkSet).iterator();\n while (links.hasNext()) {\n Link link = (Link) links.next();\n if (link.getRelation(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.