content
stringlengths
40
137k
"public List getAggregationMeasures() {\n if (focus.getAggregationHeader() == null || focus.getCubeLevelName() == null || focus.getCubeLevelName().length() <= 0)\n return Collections.emptyList();\n if (crosstab == null)\n return Collections.EMPTY_LIST;\n int axisType = focus.getAxisType();\n S...
"public void tag(String tagString) throws JDBCException {\n try {\n int totalRows = this.getJdbcTemplate().queryForInt(new RawSqlStatement(\"String_Node_Str\" + escapeTableName(getDefaultSchemaName(), getDatabaseChangeLogTableName())));\n if (totalRows == 0) {\n throw new JDBCException(\"Str...
"private static int vn(byte[] x, final int xoff, byte[] y, final int yoff, int n) {\n int i, d = 0;\n for (i = 0; i < n; i++) d |= (x[i + xoff] ^ y[i + yoff]) & 0xff;\n return (1 & ((d - 1) >>> 8)) - 1;\n}\n"
"private void calcTypes(boolean last) {\n XmlElementRef[] ann;\n types = new LinkedHashSet<Element<T, C>>();\n XmlElementRefs refs = seed.readAnnotation(XmlElementRefs.class);\n XmlElementRef ref = seed.readAnnotation(XmlElementRef.class);\n if (refs != null && ref != null) {\n parent.builder.repo...
"private static synchronized File resizeAndCache(final int height, InputStream imageStream) {\n if (imageStream == null) {\n return null;\n }\n final String cacheName;\n boolean needsResize = true;\n try {\n imageStream = makeByteArrayInputStream(imageStream);\n imageStream.mark(0);\...
"public Integer generateMaskedRow(Integer i) {\n if (i == null && keepNull) {\n return null;\n } else {\n if (i != null && integerParam > 0) {\n parameter = (int) Math.log10(i) + 1 <= integerParam ? (int) Math.log10(i) + 1 : integerParam;\n StringBuilder sbu = new StringBuilder...
"private Set<String> revertRenamingOfExternalClasses(CssTree cssTree, RenamingResult renamingResult) {\n ExternalClassesCollector externalClassesCollector = new ExternalClassesCollector(cssTree.getMutatingVisitController(), errorManager);\n externalClassesCollector.runPass();\n Map<String, String> styleClasses...
"private void initializeGossipClient() {\n LOG.trace(\"String_Node_Str\");\n gossipWorkerGroup = new NioEventLoopGroup(GOSSIP_WORKER_THREADS);\n Bootstrap b = new Bootstrap();\n b.group(gossipWorkerGroup);\n b.channel(NioSocketChannel.class);\n b.option(ChannelOption.SO_KEEPALIVE, true);\n b.option...
"public void accept(WireIn wireIn, Long inputTid) {\n eventName.setLength(0);\n final ValueIn valueIn = inWire.readEventName(eventName);\n try {\n outWire.writeDocument(true, wire -> outWire.writeEventName(CoreFields.tid).int64(tid));\n writeData(inWire.bytes(), out -> {\n if (columns....
"public String getColumnText(Object element, int columnIndex) {\n if (element instanceof OverviewIndUIElement) {\n ViewIndicator indicatorUIEle = (ViewIndicator) ((OverviewIndUIElement) element).getOverviewIndicator();\n switch(columnIndex) {\n case 0:\n return indicatorUIEle....
"public String desc() {\n return Messages.get(this, \"String_Node_Str\", dispTurns(left), (int) damage);\n}\n"
"private void splitBranches(final Element elem, final Branch filter) {\n final List<Element> ditavalRefs = getChildElements(elem, DITAVAREF_D_DITAVALREF);\n if (ditavalRefs.size() > 0) {\n for (final Element branch : ditavalRefs) {\n elem.removeChild(branch);\n }\n final List<Eleme...
"public boolean nextKeyValue() {\n try {\n _countingOffset += _cacheLength + 8;\n if (_end > 0 && _countingOffset > _end) {\n _cacheLength = _cacheType = 0;\n return false;\n }\n int byteRead = _data_input_stream.read(_sig);\n while (byteRead < 8 - readOff && ...
"public void deleteSchema(String kind, String name) {\n restTemplate.delete(baseURL + \"String_Node_Str\" + kind + \"String_Node_Str\" + name + \"String_Node_Str\");\n}\n"
"public int getTopBorderColor() {\n return topColor;\n}\n"
"public boolean postfire() throws IllegalActionException {\n if (_debugging) {\n _debug(\"String_Node_Str\");\n }\n _lastTrigger = _thisTrigger;\n _eventMissed = false;\n if (_postponed > 0) {\n if (_debugging) {\n _debug(\"String_Node_Str\");\n }\n getDirector().fi...
"public String toSourceMap() {\n String name = cssDestination.getName() == null ? \"String_Node_Str\" : cssDestination.getName();\n try {\n StringBuilder sb = new StringBuilder();\n generator.appendTo(sb, name);\n return sb.toString();\n } catch (IOException e) {\n throw new Illegal...
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n for (Card card : controller.getHand().getCards(filter, game)) {\n addMadnessToCard(game, card, usedMadnessAbilities);\n }\n for (Card car...
"public static void setWorld(int id, WorldServer world, MinecraftServer server) {\n if (world != null) {\n WorldManager.forceAddWorld(id, world);\n FMLLog.info(\"String_Node_Str\", id, world.getWorldInfo().getWorldName(), world.getMinecraftServer());\n } else {\n WorldManager.unloadWorld(Worl...
"private void hideTable() {\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n tableScrollPane.setViewportView(null);\n }\n });\n}\n"
"public Integer call(Object object) throws Exception {\n DateTime dt = Utils.toDateTimeObject(object);\n if (dt != null) {\n return Integer.parseInt(dt.millisOfSecond().getAsString());\n } else {\n return null;\n }\n}\n"
"private void init(String queriesFile) throws IOException {\n rand = new Random(2);\n File f = new File(failedQueries);\n if (f.exists())\n f.delete();\n List<String> queryPatterns = Files.readAllLines(Paths.get(queriesFile), Charset.forName(\"String_Node_Str\"));\n int i = 0;\n for (String p :...
"public static JSONObject toJSON(SiteConfiguration site, URI baseLocation) {\n JSONObject result = WebElementResourceHandler.toJSON(site);\n try {\n result.put(ProtocolConstants.KEY_LOCATION, URIUtil.append(baseLocation, site.getId()));\n result.putOpt(SiteConfigurationConstants.KEY_HOST_HINT, site....
"public ListenableFuture<Collection<DependencyLink>> findDependencies(String[] indices) {\n QueryBuilder query = QueryBuilders.matchAllQuery();\n if (indices.length > MAX_INDICES) {\n query = QueryBuilders.indicesQuery(query, indices).noMatchQuery(\"String_Node_Str\");\n indices = allIndices;\n }...
"public void preLogin(SessionEvent event) {\n Project project = event.getSession().getProject();\n for (Object descriptorAlias : project.getAliasDescriptors().keySet()) {\n ClassDescriptor descriptor = (ClassDescriptor) project.getAliasDescriptors().get(descriptorAlias);\n Class<?> descriptorClass =...
"public void stop(WebSocketSession session) throws IOException {\n UserSession stopperUser = registry.getBySession(session);\n if (stopperUser != null) {\n UserSession stoppedUser = (stopperUser.getCallingFrom() != null) ? registry.getByName(stopperUser.getCallingFrom()) : stopperUser.getCallingTo() != nul...
"public void handleFree(DownloadLink downloadLink) throws Exception {\n getFileInformation(downloadLink);\n String url = br.getRegex(Pattern.compile(\"String_Node_Str\", Pattern.CASE_INSENSITIVE)).getMatch(0);\n br.setFollowRedirects(true);\n dl = br.openDownload(downloadLink, url);\n HTTPConnection con ...
"public String buildSqlSelect(DbMapComponent component, String outputTableName) {\n queryColumnsName = \"String_Node_Str\";\n aliasAlreadyDeclared.clear();\n List<IConnection> outputConnections = (List<IConnection>) component.getOutgoingConnections();\n Map<String, IConnection> nameToOutputConnection = new ...
"protected String dump(boolean canonical) {\n StringBuffer sb = new StringBuffer();\n sb.append(\"String_Node_Str\");\n final String exprCF = expression.getCanonicalForm();\n sb.append(inStringLiteral ? StringUtil.FTLStringLiteralEnc(exprCF, '\"') : exprCF);\n sb.append(\"String_Node_Str\");\n if (!ca...
"void connectViews(CameraView viewA, CameraView viewB) {\n associate.setSource(viewA.descriptions);\n associate.setDestination(viewB.descriptions);\n associate.associate();\n if (associate.getMatches().size < MIN_FEATURE_ASSOCIATED)\n return;\n FastQueue<AssociatedIndex> matches = associate.getMat...
"public InvocationCouple getInvocationCouple(Invocation invoc) {\n return (InvocationCouple) invList.get(invoc);\n}\n"
"private void notifyNeighbors(World worldIn, BlockPos pos, EnumFacing facing) {\n worldIn.notifyNeighborsOfStateChange(pos, this, false);\n worldIn.notifyNeighborsOfStateChange(pos.offset(facing.getOpposite()), this, false);\n}\n"
"public void testSetName() throws Exception {\n assertEquals(\"String_Node_Str\", field.getName());\n field.setName(\"String_Node_Str\");\n field.getOrigin();\n assertTrue(field.toString().contains(\"String_Node_Str\"));\n assertEquals(\"String_Node_Str\", field.getName());\n}\n"
"private String getStringConnection() {\n String s = null;\n String versionStr = dbVersionCombo.getText();\n if (isContextMode()) {\n s = DBConnectionContextUtils.getUrlConnectionString(connectionItem, true);\n } else {\n if (EDatabaseTypeName.HIVE.getDisplayName().equals(dbTypeCombo.getText()...
"public void setLimits(float x, float y) {\n this.x = x;\n this.y = y;\n setDisplayListDirty(true);\n}\n"
"public Object create(Object request, SpecimenContext context) {\n if (!(request.equals(ReadablePeriod.class) || request.equals(ReadWritablePeriod.class)))\n return new NoSpecimen();\n DateTime dateA = (DateTime) context.resolve(DateTime.class);\n DateTime dateB = (DateTime) context.resolve(DateTime.cla...
"protected DateTimeFormat getMonthAndYearFormatter() {\n return DateTimeFormat.getFormat(\"String_Node_Str\");\n}\n"
"private void localRegisterService(RemoteServiceRegistrationImpl registration) {\n final Object localServiceRegistrationValue = registration.getProperty(Constants.LOCAL_SERVICE_REGISTRATION);\n if (localServiceRegistrationValue != null) {\n final BundleContext context = Activator.getDefault().getContext();...
"private void updateViews() {\n mImageLoader = ImageTools.getImageLoader(mContext);\n mAdapter = new GalleryAdapter(mContext, mImageLoader, mParams, mAdapterEventListener);\n PauseOnScrollListener listener = new PauseOnScrollListener(mImageLoader, true, true);\n mGridGallery.setOnScrollListener(listener);\n...
"public void open(ConsumerState startingState) {\n if (hasCalledConnect) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n hasCalledConnect = true;\n if (startingState != null) {\n persistenceManager.persistConsumerState(getConsumerId(), startingState);\n }\n ConsumerState initi...
"private boolean init(Map<String, String> settings) {\n String projectId = StringUtils2.trimToEmpty(settings.get(\"String_Node_Str\"));\n if (StringUtils2.isNullOrEmpty(projectId)) {\n logger.info(\"String_Node_Str\");\n projectId = getGoogleProjectId();\n }\n if (StringUtils2.isNullOrEmpty(pr...
"public void handleEvent(Event event) {\n switch(event.type) {\n case SWT.MouseDown:\n case SWT.Selection:\n doToggleDropDown();\n break;\n case SWT.KeyDown:\n processKeyDown(event.keyCode);\n break;\n case SWT.Traverse:\n if (event.d...
"protected void doPreService(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n String format = ParameterAccessor.getFormat(request);\n String openType = ParameterAccessor.getOpenType(request);\n if (IBirtConstants.SERVLET_PATH_DOWNLOAD.equalsIgnoreCase(request.g...
"public void modify(Object tableItem, String idColumn, Object value) {\n if (((TableItem) tableItem).isDisposed()) {\n log.warn(Messages.getString(\"String_Node_Str\"), new Exception());\n return;\n }\n Object bean = ((TableItem) tableItem).getData();\n TableViewerCreatorColumn column = tableV...
"public <T> String toString(T obj) throws ReflectiveOperationException {\n if (null == obj) {\n return \"String_Node_Str\";\n }\n String type = obj.getClass().getCanonicalName();\n if (type.equals(\"String_Node_Str\")) {\n return obj.toString();\n } else if (type.equals(\"String_Node_Str\")...
"public OTObject copyObject(OTObject original, int maxDepth) throws Exception {\n OTDataObject originalDataObject = getOTDataObject(original.getGlobalId());\n OTDataList orphanDataList = ((OTObjectListImpl) orphanObjectList).getDataList();\n OTDataObject copyDataObject = DataObjectUtil.copy(originalDataObject,...
"void updateDisplayInfo(final DisplayContent displayContent) {\n if (displayContent == null) {\n return;\n }\n if (mFullscreen) {\n setBounds(null, Configuration.EMPTY);\n return;\n }\n final int newRotation = displayContent.getDisplayInfo().rotation;\n if (mRotation == newRotatio...
"public T getSelection() {\n ItemWrapper<T> wrapper = ((ItemWrapper<T>) comboBox.getSelectedItem());\n return wrapper == null ? null : wrapper.item;\n}\n"
"public Signal getAppliedSignal() {\n return Signal.fromNumericValue(BitMagic.getBit(expander.getState(), getPin().getAddress()));\n}\n"
"public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n SmsPojo sms = getMessageProvider().getMessageByOrdinal(i);\n getMessageProvider().read(sms);\n updateTitle();\n}\n"
"public void setSystemExpanded(boolean expand) {\n if (expand != mIsSystemExpanded) {\n final boolean wasExpanded = isExpanded();\n mIsSystemExpanded = expand;\n notifyHeightChanged();\n logExpansionEvent(false, wasExpanded);\n }\n}\n"
"public boolean equals(SortedIntDoubleVector other, double delta) {\n SortedIntDoubleVector v1 = SortedIntDoubleVector.getWithNoZeroValues(this, delta);\n SortedIntDoubleVector v2 = SortedIntDoubleVector.getWithNoZeroValues(other, delta);\n if (v2.size() != v1.size()) {\n return false;\n }\n for (...
"public static <U, T> Task<T> transformMultiple(Map flags, final Function<List<U>, T> transformer, Task<U>... tasks) {\n if (tasks.length == 1) {\n return transform(flags, tasks[0], new Function<U, T>() {\n public T apply(U input) {\n return transformer.apply(Arrays.asList(input));\n...
"public boolean isPEI() {\n return !isStatic();\n}\n"
"protected void assertUnknownConfidence(String contents, int exprStart, int exprEnd, String expectedDeclaringType, boolean forceWorkingCopy) {\n GroovyCompilationUnit unit = createUnit(\"String_Node_Str\", contents);\n SearchRequestor requestor = doVisit(exprStart, exprEnd, unit, forceWorkingCopy);\n assertNot...
"protected void updateEditableStatus(boolean isEditable) {\n authenticationCombo.setEnabled(isEditable);\n namenodeUriText.setEditable(isEditable);\n jobtrackerUriText.setEditable(isEditable);\n rmSchedulerText.setEditable(isEditable);\n jobHistoryText.setEditable(isEditable);\n stagingDirectoryText.s...
"public void testGroupOnNumber1() throws Exception {\n groupOnNumber(null, 3);\n}\n"
"public static boolean isURL(String input) {\n Matcher matcher = getRegex().matcher(input.toLowerCase());\n return matcher.matches();\n}\n"
"static void SKP_Silk_CNG_exc(short[] residual, int residual_offset, int[] exc_buf_Q10, int exc_buf_Q10_offset, int Gain_Q16, int length, int[] rand_seed) {\n int seed;\n int i, idx, exc_mask;\n exc_mask = CNG_BUF_MASK_MAX;\n while (exc_mask > length) {\n exc_mask = (exc_mask >> 1);\n }\n seed ...
"public void testCursorOnCountry() throws OLAPException, BirtException {\n ICubeQueryDefinition cqd = this.creator.createQueryDefinition();\n IBinding rowGrandTotal = new Binding(\"String_Node_Str\");\n rowGrandTotal.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);\n rowGrandTotal.setExpression(new Scri...
"public ScopeView joinIfIndependentAndPreserveContent(IScope callerScope, IScope bodyScope) {\n ScopeView result = joinIfIndependent(callerScope, bodyScope);\n result.saveLocalDataForTheWholeWayUp();\n return result;\n}\n"
"public void testMixedGetSet2() {\n facet.setWorld(24, 35, 46, Integer.valueOf(32));\n Assert.assertEquals(Integer.valueOf(32), facet.get(14, 15, 16));\n}\n"
"public <C> Span handleReceive(TraceContext.Extractor<C> extractor, C carrier, Req request) {\n Span span = nextSpan(extractor.extract(carrier), request);\n if (span.isNoop())\n return span;\n span.kind(Span.Kind.SERVER);\n Tracer.SpanInScope ws = tracer.withSpanInScope(span);\n try {\n par...
"public void init(ServletContext servletContext, Injector injector) throws ServletException {\n for (ServletDefinition servletDefinition : servletDefinitions) {\n servletDefinition.init(servletContext, injector, initializedSoFar);\n }\n}\n"
"public void bindFromPhoneNumber(String number) {\n mQueryHandler.startQuery(TOKEN_PHONE_LOOKUP, number, Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, number), PHONE_LOOKUP_PROJECTION, null, null, null);\n}\n"
"public static MailTemplateManagerService getMailTemplateManagerService() throws IOException {\n synchronized (MAIL_TEMPLATE_MONITOR) {\n if (MAIL_TEMPLATE_MANAGER_SERVICE == null) {\n ConnectionParams connParams = getConnectionParams();\n MAIL_TEMPLATE_MANAGER_SERVICE = new MailTemplate...
"public void onDroneEvent(DroneInterfaces.DroneEventsType event, Drone drone) {\n Bundle extrasBundle = null;\n String droneEvent = null;\n final List<Pair<String, Bundle>> attributesInfo = new ArrayList<>();\n switch(event) {\n case DISCONNECTED:\n context.sendBroadcast(new Intent(GCSEven...
"public void doGroupFilteringAndSorting(ResultSetCache rsCache, IExpressionProcessor exprProc, boolean doGroupFiltering) throws DataException {\n this.populator.setCache(rsCache);\n this.exprProcessor = exprProc;\n exprProcessor.setResultIterator(this.populator.getResultIterator());\n Context cx = Context.e...
"public String getWeaponName() {\n return usedTamedCreature() ? RewardType.fromEntity(getTamedCreature()).getName() : EntityUtils.getItemNameInHand(getPlayer());\n}\n"
"public void ancestorAdded(AncestorEvent e) {\n Debug.outln(\"String_Node_Str\" + e + \"String_Node_Str\");\n JComponent component = e.getComponent();\n component.requestFocusInWindow();\n if (component instanceof JTextField) {\n ((JTextField) component).selectAll();\n }\n JWindow top = getTopC...
"public void memberRemoved(final MemberImpl member) {\n logger.info(\"String_Node_Str\" + member);\n updateMemberGroupsSize();\n final Address deadAddress = member.getAddress();\n final Address thisAddress = node.getThisAddress();\n if (thisAddress.equals(deadAddress)) {\n return;\n }\n lock...
"public void storeAccount(ProtocolProviderFactory factory, AccountID accountID) {\n ConfigurationService configurationService = ProtocolProviderActivator.getConfigurationService();\n String factoryPackage = getFactoryImplPackageName(factory);\n List<String> storedAccounts = configurationService.getPropertyName...
"public void run() {\n while (true) {\n WorkItem workItem = null;\n synchronized (mQueue) {\n if (!mQueue.isEmpty()) {\n workItem = mQueue.remove(0);\n } else {\n if (!mThumbnailChecker.hasMoreThumbnailsToCheck()) {\n try {\n ...
"public EnumElement getElement() {\n return EnumElement.Hg;\n}\n"
"public ResultSet getAlltables(String schemaPattern, String namePattern, String[] types) {\n if (connection == null) {\n try {\n reconnect();\n } catch (Exception e) {\n logger.log(Level.WARNING, e.getMessage(), e);\n return null;\n }\n try {\n ...
"private void addCap(ISpecTestCasePO specTcGUI, ISpecTestCasePO workTC, Integer position, AbstractTestCaseEditor tse) {\n final NewCAPDialog dialog = new NewCAPDialog(getActiveShell(), specTcGUI, tse.getEditorHelper().getEditSupport().getCompMapper());\n dialog.create();\n DialogUtils.setWidgetNameForModalDial...
"public final int schedule(Runnable task, long delay, TimeUnit unit) {\n return schedule_i(task, unit.toMillis(delay), 0, false);\n}\n"
"private void update(View anchor, boolean updateLocation, int xoff, int yoff, boolean updateDimension, int width, int height) {\n if (!isShowing() || mContentView == null) {\n return;\n }\n WeakReference<View> oldAnchor = mAnchor;\n if (oldAnchor == null || oldAnchor.get() != anchor || (updateLocatio...
"public List<ModuleNeeded> getModulesNeeded() {\n return Collections.emptyList();\n}\n"
"public Set<UUID> getPlayableInHand(Game game) {\n Set<UUID> playable = new HashSet<>();\n if (!shouldSkipGettingPlayable(game)) {\n if (game.getPhase() != null && PhaseStep.CLEANUP.equals(game.getPhase().getStep().getType())) {\n for (Card card : hand.getCards(game)) {\n playable...
"public void listChanged(ListEvent<E> listChanges) {\n final Barcode toDoList = new Barcode();\n toDoList.addWhite(0, barcode.size());\n final LinkedList removedValues = new LinkedList();\n int lastFakedUniqueChangeIndex = -1;\n while (listChanges.next()) {\n final int changeIndex = listChanges.ge...
"private CharSequence prepareCacheTypeSummary() {\n StringBuilder sb = new StringBuilder();\n boolean allChecked = true;\n boolean noneChecked = true;\n for (int i = 0; i < GeocacheType.values().length; i++) {\n if (mPrefs.getBoolean(PrefConstants.FILTER_CACHE_TYPE_PREFIX + i, true)) {\n n...
"public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n SQLTraceRecord record = new SQLTraceRecord();\n record.setMethodName(method.getName());\n record.setParams(args);\n record.setClassName(actualObject.getClass().getName());\n record.setThreadName(Thread.currentThread()....
"public ClipDescription getPrimaryClipDescription() {\n try {\n return getService().getPrimaryClipDescription(mContext.getOpPackageName());\n } catch (RemoteException e) {\n return null;\n }\n}\n"
"private RelationalInterface _getInterface(Actor actor) throws IllegalActionException {\n final Parameter interfaceExpr = (Parameter) ((Entity) actor).getAttribute(\"String_Node_Str\");\n final Parameter interfaceStr = (Parameter) ((Entity) actor).getAttribute(\"String_Node_Str\");\n String contract;\n if (...
"public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) {\n TileEntityGSGraveStone te = (TileEntityGSGraveStone) world.getTileEntity(x, y, z);\n if (te != null) {\n if (player.inventory.getCurrentItem() != null) {\n It...
"private static void fixupContinuationRec(Logger logger, Function function, Continuation continuation, HierarchicalSet<Var> visible, Set<Var> referencedGlobals, Set<Var> outerBlockVars, Set<Var> read, Set<Var> written, boolean updateLists) {\n List<Var> constructVars = continuation.constructDefinedVars();\n for (...
"public static byte[] load(String aResourceId) throws Exception {\n if (aResourceId != null && !aResourceId.isEmpty()) {\n Matcher htppMatcher = pattern.matcher(aResourceId);\n if (htppMatcher.matches()) {\n URL url = new URL(aResourceId);\n try {\n try (InputStream...
"public LinkDataDuplexMap select(Application sourceApplication, Range range, SearchOption searchOption) {\n if (searchOption == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n SearchDepth callerDepth = new SearchDepth(searchOption.getCallerSearchDepth());\n SearchDepth calleeDept...
"private static javax.xml.bind.JAXBContext createContext(Generator generator, java.util.Map properties, ClassLoader classLoader, JaxbClassLoader loader, TypeMappingInfo[] typesToBeBound) throws Exception {\n javax.xml.bind.JAXBContext jaxbContext = null;\n XMLContext xmlContext = null;\n Project proj = generat...
"public void lookupMatchAfterHashMismatch() throws IOException {\n RuleKey key1 = new RuleKey(\"String_Node_Str\");\n RuleKey key2 = new RuleKey(\"String_Node_Str\");\n SourcePath input = new FakeSourcePath(\"String_Node_Str\");\n Manifest manifest = Manifest.fromMap(new RuleKey(\"String_Node_Str\"), Immuta...
"private Control createDBMetaDataSelectionComposite(Composite parent) {\n boolean supportsSchema = JdbcMetaDataProvider.getInstance().isSupportSchema();\n boolean supportsProcedure = JdbcMetaDataProvider.getInstance().isSupportProcedure();\n Composite tablescomposite = new Composite(parent, SWT.NONE);\n Gri...
"public JComponent getJComponent() {\n return getManagedObject() instanceof JComponent ? (JComponent) getManagedObject() : null;\n}\n"
"public LinkedList<Usr> getProjectManagers() {\n LinkedList<Usr> projectManagers = new LinkedList<Usr>();\n for (Usr u : getAllUsers()) {\n if (u.getSystemRole().equals(SystemRole.PROJECTMANAGER)) {\n projectManagers.add(u);\n }\n }\n return null;\n}\n"
"public void testThreeConstructors() throws BindException, InjectionException {\n JavaConfigurationBuilder cb = tang.newConfigurationBuilder();\n cb.bindNamedParameter(TCInt.class, \"String_Node_Str\");\n cb.bindNamedParameter(TCString.class, \"String_Node_Str\");\n ThreeConstructors tc = tang.newInjector(c...
"public static <T> T getAnnotationVal(Class annotation, Object obj, Class<T> cls, String name) {\n try {\n Object annotationObj = obj.getClass().getAnnotation(annotation);\n return TypeCast.cast(cls, annotationObj.getClass().getMethod(name).invoke(annotationObj));\n } catch (Exception e) {\n ...
"protected BufferedDataTable[] execute(BufferedDataTable[] inData, ExecutionContext exec) throws Exception {\n BufferedDataTable input = inData[0];\n DataTableSpec inputSpec = input.getDataTableSpec();\n List<Attribute> parameter = new ArrayList<Attribute>();\n for (String item : parameterNames.getIncludeLi...
"public void resumeSession(State state) {\n this.cipherSuite = state.getCipherSuite();\n preMasterSecret = state.getPreMasterSecret();\n isResumableSession = true;\n generateKeys();\n}\n"
"private static void _checkTransformOrder(int order) {\n if (order < 0) {\n throw new IllegalArgumentException(\"String_Node_Str\" + \"String_Node_Str\");\n } else if (order > 31) {\n throw new IllegalArgumentException(\"String_Node_Str\" + \"String_Node_Str\");\n }\n}\n"
"protected ASTNode findDeclarationForDynamicVariable(VariableExpression var, ClassNode owner, VariableScope scope, int resolveStrategy) {\n ASTNode candidate = null;\n List<ClassNode> callArgs = scope.getMethodCallArgumentTypes();\n boolean isLhsExpr = (scope.getWormhole().remove(\"String_Node_Str\") == var);\...