id
stringlengths
7
14
text
stringlengths
1
106k
206452_7
public boolean isBannedwordslisted(String str) { return isBannedwordslisted(str, null, null); }
206452_8
public boolean isBannedwordslisted(String str) { return isBannedwordslisted(str, null, null); }
206452_9
public boolean isBannedwordslisted(String str) { return isBannedwordslisted(str, null, null); }
206459_0
public Schema addToSchema(Schema schema) { validate(schema); schema.addProp(LOGICAL_TYPE_PROP, name); schema.setLogicalType(this); return schema; }
206459_1
public Schema addToSchema(Schema schema) { validate(schema); schema.addProp(LOGICAL_TYPE_PROP, name); schema.setLogicalType(this); return schema; }
206459_2
public Schema addToSchema(Schema schema) { validate(schema); schema.addProp(LOGICAL_TYPE_PROP, name); schema.setLogicalType(this); return schema; }
206459_3
public Schema addToSchema(Schema schema) { validate(schema); schema.addProp(LOGICAL_TYPE_PROP, name); schema.setLogicalType(this); return schema; }
206459_4
public Schema addToSchema(Schema schema) { validate(schema); schema.addProp(LOGICAL_TYPE_PROP, name); schema.setLogicalType(this); return schema; }
206459_5
public Schema addToSchema(Schema schema) { validate(schema); schema.addProp(LOGICAL_TYPE_PROP, name); schema.setLogicalType(this); return schema; }
206459_6
public Schema addToSchema(Schema schema) { validate(schema); schema.addProp(LOGICAL_TYPE_PROP, name); schema.setLogicalType(this); return schema; }
206459_7
public Schema addToSchema(Schema schema) { validate(schema); schema.addProp(LOGICAL_TYPE_PROP, name); schema.setLogicalType(this); return schema; }
206459_8
public Schema addToSchema(Schema schema) { validate(schema); schema.addProp(LOGICAL_TYPE_PROP, name); schema.setLogicalType(this); return schema; }
206459_9
public Schema addToSchema(Schema schema) { validate(schema); schema.addProp(LOGICAL_TYPE_PROP, name); schema.setLogicalType(this); return schema; }
206478_0
protected static boolean isDemarcator( String snippetId, String what, String line ) { // SNIPPET and what are case insensitive // SNIPPET and what can switch order String snippetRegExp = "(^|\\W)(?i:SNIPPET)($|\\W)"; String snippetIdRegExp = "(^|\\W)" + snippetId + "($|\\W)"; String whatRegExp = "(^...
206478_1
public void execute( Sink sink, MacroRequest request ) throws MacroExecutionException { String function = (String) request.getParameter( PARAM_FUNCTION ); required( PARAM_FUNCTION, function ); StringBuilder buff = new StringBuilder(); buff.append( '#' ); buff.append( function ); for ( Map.En...
206478_2
public void execute( Sink sink, MacroRequest request ) throws MacroExecutionException { String source = request.getSourceContent(); Parser parser = request.getParser(); section = getInt( request, "section", 0 ); fromDepth = getInt( request, "fromDepth", 0 ); toDepth = getInt( request, "toDepth",...
206478_3
public void execute( Sink sink, MacroRequest request ) throws MacroExecutionException { String source = request.getSourceContent(); Parser parser = request.getParser(); section = getInt( request, "section", 0 ); fromDepth = getInt( request, "fromDepth", 0 ); toDepth = getInt( request, "toDepth",...
206478_4
public void execute( Sink sink, MacroRequest request ) throws MacroExecutionException { // parameter defaults String src = ""; String id = "swf"; String width = "400"; String height = "400"; String quality = "high"; String menu = "false"; String loop = "0"; String play = "true"; ...
206478_5
public void execute( Sink sink, MacroRequest request ) throws MacroExecutionException { // parameter defaults String src = ""; String id = "swf"; String width = "400"; String height = "400"; String quality = "high"; String menu = "false"; String loop = "0"; String play = "true"; ...
206478_6
public void execute( Sink sink, MacroRequest request ) { sink.verbatim( SinkEventAttributeSet.BOXED ); sink.text( "echo" + EOL ); for ( String key : request.getParameters().keySet() ) { // TODO: DOXIA-242: separate or define internal params if ( "parser".equals( key ) || "sourceContent"....
206478_7
@Override public void section( int level, SinkEventAttributes attributes ) { onSection( level, attributes ); }
206478_8
@Override public void section1() { onSection( SECTION_LEVEL_1, null ); }
206478_9
@Override public void section2() { onSection( SECTION_LEVEL_2, null ); }
206483_0
public void setProjectPath( Path projectPath ) { this.projectPath = projectPath; }
206483_1
@Override public void comment( char[] ch, int start, int length ) throws SAXException { if ( "\n".equals( lineSeparator ) ) { lexicalHandler.comment( ch, start, length ); } else { char[] ca = new String( ch, start, length ).replaceAll( "\n", lineSeparator ).toCharArray(); ...
206483_2
@Override public void comment( char[] ch, int start, int length ) throws SAXException { if ( "\n".equals( lineSeparator ) ) { lexicalHandler.comment( ch, start, length ); } else { char[] ca = new String( ch, start, length ).replaceAll( "\n", lineSeparator ).toCharArray(); ...
206483_3
public static String renameQName( String oldQName, String newLocalName ) { return PATTERN.matcher( oldQName ).replaceFirst( newLocalName ); }
206483_4
public static String renameQName( String oldQName, String newLocalName ) { return PATTERN.matcher( oldQName ).replaceFirst( newLocalName ); }
206483_5
@Override public Logger getLogger( String name ) { Logger simpleLogger = loggerMap.get( name ); if ( simpleLogger != null ) { return simpleLogger; } else { Logger newInstance = getNewLoggingInstance( name ); Logger oldInstance = loggerMap.putIfAbsent( name, newInstance );...
206483_6
@Override public Logger getLogger( String name ) { Logger simpleLogger = loggerMap.get( name ); if ( simpleLogger != null ) { return simpleLogger; } else { Logger newInstance = getNewLoggingInstance( name ); Logger oldInstance = loggerMap.putIfAbsent( name, newInstance );...
206483_7
@Override public void setLogLevelRecorder( LogLevelRecorder logLevelRecorder ) { if ( this.logLevelRecorder != null ) { throw new IllegalStateException( "LogLevelRecorder has already been set." ); } this.logLevelRecorder = logLevelRecorder; }
206483_8
public Path createDist( WrapperConfiguration configuration ) throws IOException, URISyntaxException { URI distributionUrl; String mvnwRepoUrl = System.getenv( MavenWrapperMain.MVNW_REPOURL ); if ( mvnwRepoUrl != null && !mvnwRepoUrl.isEmpty() ) { distributionUrl = new URI( mvnwRepoUrl + "/" ...
206483_9
public Path createDist( WrapperConfiguration configuration ) throws IOException, URISyntaxException { URI distributionUrl; String mvnwRepoUrl = System.getenv( MavenWrapperMain.MVNW_REPOURL ); if ( mvnwRepoUrl != null && !mvnwRepoUrl.isEmpty() ) { distributionUrl = new URI( mvnwRepoUrl + "/" ...
206633_0
public MessageBundle getBundle(GadgetSpec spec, Locale locale, boolean ignoreCache, String container, String view) throws GadgetException { MessageBundle exact = getBundleFor(spec, locale, ignoreCache, container, view); // We don't want to fetch the same bundle multiple times, so we verify that the exact match ...
206633_1
public MessageBundle getBundle(GadgetSpec spec, Locale locale, boolean ignoreCache, String container, String view) throws GadgetException { MessageBundle exact = getBundleFor(spec, locale, ignoreCache, container, view); // We don't want to fetch the same bundle multiple times, so we verify that the exact match ...
206633_2
public MessageBundle getBundle(GadgetSpec spec, Locale locale, boolean ignoreCache, String container, String view) throws GadgetException { MessageBundle exact = getBundleFor(spec, locale, ignoreCache, container, view); // We don't want to fetch the same bundle multiple times, so we verify that the exact match ...
206633_3
public MessageBundle getBundle(GadgetSpec spec, Locale locale, boolean ignoreCache, String container, String view) throws GadgetException { MessageBundle exact = getBundleFor(spec, locale, ignoreCache, container, view); // We don't want to fetch the same bundle multiple times, so we verify that the exact match ...
206633_4
public MessageBundle getBundle(GadgetSpec spec, Locale locale, boolean ignoreCache, String container, String view) throws GadgetException { MessageBundle exact = getBundleFor(spec, locale, ignoreCache, container, view); // We don't want to fetch the same bundle multiple times, so we verify that the exact match ...
206633_5
public MessageBundle getBundle(GadgetSpec spec, Locale locale, boolean ignoreCache, String container, String view) throws GadgetException { MessageBundle exact = getBundleFor(spec, locale, ignoreCache, container, view); // We don't want to fetch the same bundle multiple times, so we verify that the exact match ...
206633_6
public MessageBundle getBundle(GadgetSpec spec, Locale locale, boolean ignoreCache, String container, String view) throws GadgetException { MessageBundle exact = getBundleFor(spec, locale, ignoreCache, container, view); // We don't want to fetch the same bundle multiple times, so we verify that the exact match ...
206633_7
public MessageBundle getBundle(GadgetSpec spec, Locale locale, boolean ignoreCache, String container, String view) throws GadgetException { MessageBundle exact = getBundleFor(spec, locale, ignoreCache, container, view); // We don't want to fetch the same bundle multiple times, so we verify that the exact match ...
206633_8
public MessageBundle getBundle(GadgetSpec spec, Locale locale, boolean ignoreCache, String container, String view) throws GadgetException { MessageBundle exact = getBundleFor(spec, locale, ignoreCache, container, view); // We don't want to fetch the same bundle multiple times, so we verify that the exact match ...
206633_9
public MessageBundle getBundle(GadgetSpec spec, Locale locale, boolean ignoreCache, String container, String view) throws GadgetException { MessageBundle exact = getBundleFor(spec, locale, ignoreCache, container, view); // We don't want to fetch the same bundle multiple times, so we verify that the exact match ...
206635_0
protected Map<String, MojoAnnotatedClass> scanArchive( File archiveFile, Artifact artifact, boolean excludeMojo ) throws IOException, ExtractionException { Map<String, MojoAnnotatedClass> mojoAnnotatedClasses = new HashMap<>(); String zipEntryName = null; try ( ZipInputStream archiveStream = new ZipInpu...
206635_1
protected Map<String, MojoAnnotatedClass> scanArchive( File archiveFile, Artifact artifact, boolean excludeMojo ) throws IOException, ExtractionException { Map<String, MojoAnnotatedClass> mojoAnnotatedClasses = new HashMap<>(); String zipEntryName = null; try ( ZipInputStream archiveStream = new ZipInpu...
206635_2
protected List<MojoDescriptor> extractMojoDescriptorsFromMetadata( Map<String, Set<File>> metadataFilesKeyedByBasedir, PluginToolsRequest request ) throws ExtractionException, InvalidPluginDes...
206635_3
public Set<MojoDescriptor> parseMojoDescriptors( File metadataFile ) throws PluginMetadataParseException { Set<MojoDescriptor> descriptors = new HashSet<>(); try ( Reader reader = ReaderFactory.newXmlReader( metadataFile ) ) { PluginMetadataXpp3Reader metadataReader = new PluginMetadataXpp3Reade...
206635_4
public Set<MojoDescriptor> parseMojoDescriptors( File metadataFile ) throws PluginMetadataParseException { Set<MojoDescriptor> descriptors = new HashSet<>(); try ( Reader reader = ReaderFactory.newXmlReader( metadataFile ) ) { PluginMetadataXpp3Reader metadataReader = new PluginMetadataXpp3Reade...
206635_5
public void populatePluginDescriptor( PluginToolsRequest request ) throws ExtractionException, InvalidPluginDescriptorException { Logger logger = getLogger(); Set<String> activeExtractorsInternal = getActiveExtractors(); logger.debug( "Using " + activeExtractorsInternal.size() + " mojo extractors." ); ...
209853_0
public String getValorFormatado() { return new BigDecimalFormatter().bigDecimalToStringInCents(this.price); }
209853_1
public BigDecimal getPrice() { return price; }
209853_2
@Override protected Validator createValidator() throws JspException { ELContext elContext = getELContext(); StellaIEValidator validator = getBoundValidator(elContext); if (binding != null) { validator.setBinding(binding); } if (estado != null) { String estadoValue = estado.getValue(e...
209853_3
@Override protected Validator createValidator() throws JspException { StellaTituloEleitoralValidator validator = new StellaTituloEleitoralValidator(); return validator; }
209853_4
public ResourceBundle getForCurrentLocale(FacesContext facesContext) { Application application = facesContext.getApplication(); String bundleName = application.getMessageBundle(); if (bundleName == null) { return defaultStellaBundle(); } Locale locale = facesContext.getViewRoot().getLocale()...
209853_5
public ResourceBundle getForCurrentLocale(FacesContext facesContext) { Application application = facesContext.getApplication(); String bundleName = application.getMessageBundle(); if (bundleName == null) { return defaultStellaBundle(); } Locale locale = facesContext.getViewRoot().getLocale()...
209853_6
public void validate(FacesContext facesContext, UIComponent uiComponent, Object value) throws ValidatorException { if (value == null || "".equals(value)) return; ResourceBundle bundle = resourceBundleFinder.getForCurrentLocale(facesContext); ResourceBundleMessageProducer producer = new ResourceBundleMessageP...
209853_7
public void validate(FacesContext facesContext, UIComponent uiComponent, Object value) throws ValidatorException { if (value == null || "".equals(value)) return; ResourceBundle bundle = resourceBundleFinder.getForCurrentLocale(facesContext); ResourceBundleMessageProducer producer = new ResourceBundleMessageP...
209853_8
public void validate(FacesContext facesContext, UIComponent uiComponent, Object value) throws ValidatorException { if (value == null || "".equals(value)) return; ResourceBundle bundle = resourceBundleFinder.getForCurrentLocale(facesContext); ResourceBundleMessageProducer producer = new ResourceBundleMessageP...
209853_9
public void validate(FacesContext facesContext, UIComponent uiComponent, Object value) throws ValidatorException { if (value == null || "".equals(value)) return; ResourceBundle bundle = resourceBundleFinder.getForCurrentLocale(facesContext); ResourceBundleMessageProducer producer = new ResourceBundleMessageP...
213337_0
public AbstractValueModel getLabelModel() { return new DefaultLabelModel(getBean()); }
213337_1
public AbstractValueModel getLabelModel() { return new DefaultLabelModel(getBean()); }
213337_2
public AbstractValueModel getLabelModel() { return new DefaultLabelModel(getBean()); }
213337_3
public int getColumnCount() { return d_study.getArms().size() + 2 + (d_hasOverallColumn ? 1 : 0); }
213337_4
public int getColumnCount() { return d_study.getArms().size() + 2 + (d_hasOverallColumn ? 1 : 0); }
213337_5
public int getRowCount() { int n = 0; for (StudyOutcomeMeasure<? extends Variable> var : d_study.getStudyOutcomeMeasures(d_type)) { n += var.getWhenTaken().size(); } return n; }
213337_6
public int getRowCount() { int n = 0; for (StudyOutcomeMeasure<? extends Variable> var : d_study.getStudyOutcomeMeasures(d_type)) { n += var.getWhenTaken().size(); } return n; }
213337_7
public Object getValueAt(int rowIndex, int columnIndex) { Key key = getKeyAt(rowIndex, columnIndex); if (isVariableColumn(columnIndex)) { return key.v.getValue().getName(); } if (isMeasurementMomentColumn(columnIndex)) { return key.wt; } return d_mmpMap.get(key.getMeasurementKey()); }
213337_8
public Object getValueAt(int rowIndex, int columnIndex) { Key key = getKeyAt(rowIndex, columnIndex); if (isVariableColumn(columnIndex)) { return key.v.getValue().getName(); } if (isMeasurementMomentColumn(columnIndex)) { return key.wt; } return d_mmpMap.get(key.getMeasurementKey()); }
213337_9
@Override public String getColumnName(int col) { if (isVariableColumn(col)) { return CategoryKnowledgeFactory.getCategoryKnowledge(d_type).getSingularCapitalized(); } else if (isMeasurementMomentColumn(col)) { return "Measurement moment"; } else if (isOverallColumn(col)) { return "Overall"; } return d_pmf.g...
219850_0
public static <T> void applyDiff(final List<T> a, final List<T> b, final List<T> l, final Comparator<T> cmp, final DiffEditor<T> ed) { int acur = 0; int bcur = 0; int lcur = 0;...
219850_1
public static <T> void applyDiff(final List<T> a, final List<T> b, final List<T> l, final Comparator<T> cmp, final DiffEditor<T> ed) { int acur = 0; int bcur = 0; int lcur = 0;...
219850_2
public static <T> void applyDiff(final List<T> a, final List<T> b, final List<T> l, final Comparator<T> cmp, final DiffEditor<T> ed) { int acur = 0; int bcur = 0; int lcur = 0;...
219850_3
public static <T> void applyDiff(final List<T> a, final List<T> b, final List<T> l, final Comparator<T> cmp, final DiffEditor<T> ed) { int acur = 0; int bcur = 0; int lcur = 0;...
219850_4
public static <T> void applyDiff(final List<T> a, final List<T> b, final List<T> l, final Comparator<T> cmp, final DiffEditor<T> ed) { int acur = 0; int bcur = 0; int lcur = 0;...
219850_5
public static <T> void applyDiff(final List<T> a, final List<T> b, final List<T> l, final Comparator<T> cmp, final DiffEditor<T> ed) { int acur = 0; int bcur = 0; int lcur = 0;...
219850_6
public static <T> void applyDiff(final List<T> a, final List<T> b, final List<T> l, final Comparator<T> cmp, final DiffEditor<T> ed) { int acur = 0; int bcur = 0; int lcur = 0;...
219850_7
public static <T> void applyDiff(final List<T> a, final List<T> b, final List<T> l, final Comparator<T> cmp, final DiffEditor<T> ed) { int acur = 0; int bcur = 0; int lcur = 0;...
219850_8
public static <T> void applyDiff(final List<T> a, final List<T> b, final List<T> l, final Comparator<T> cmp, final DiffEditor<T> ed) { int acur = 0; int bcur = 0; int lcur = 0;...
219850_9
public static <T> void applyDiff(final List<T> a, final List<T> b, final List<T> l, final Comparator<T> cmp, final DiffEditor<T> ed) { int acur = 0; int bcur = 0; int lcur = 0;...
223355_0
@Override public boolean isEnabled() { return super.isEnabled() && context.getConfig().isDebug(); }
223355_1
@Override public boolean accept(final HttpServletRequest request) { return WroUtil.matchesUrl(request, ENDPOINT_URI); }
223355_2
@Override public boolean accept(final HttpServletRequest request) { return WroUtil.matchesUrl(request, ENDPOINT_URI); }
223355_3
@Override public void handle(final HttpServletRequest request, final HttpServletResponse response) throws IOException { // Set header ResponseHeadersConfigurer.noCache().setHeaders(response); response.setContentType(CONTENT_TYPE); response.setStatus(HttpServletResponse.SC_OK); // Build content newGson(r...
223355_4
@Override public void handle(final HttpServletRequest request, final HttpServletResponse response) throws IOException { // Set header ResponseHeadersConfigurer.noCache().setHeaders(response); response.setContentType(CONTENT_TYPE); response.setStatus(HttpServletResponse.SC_OK); // Build content newGson(r...
223355_5
@Override public boolean accept(final HttpServletRequest request) { return WroUtil.matchesUrl(request, ENDPOINT_URI); }
223355_6
@Override public void handle(final HttpServletRequest request, final HttpServletResponse response) throws IOException { // Set header ResponseHeadersConfigurer.noCache().setHeaders(response); response.setContentType(CONTENT_TYPE); response.setStatus(HttpServletResponse.SC_OK); // Build content newGson(r...
223355_7
@Override public Map<String, RequestHandler> provideRequestHandlers() { final Map<String, RequestHandler> map = new HashMap<String, RequestHandler>(); map.put(ModelAsJsonRequestHandler.ALIAS, new LazyRequestHandlerDecorator(new LazyInitializer<RequestHandler>() { @Override protected RequestHandler initializ...
223355_8
@Override public Map<String, RequestHandler> provideRequestHandlers() { final Map<String, RequestHandler> map = new HashMap<String, RequestHandler>(); map.put(ModelAsJsonRequestHandler.ALIAS, new LazyRequestHandlerDecorator(new LazyInitializer<RequestHandler>() { @Override protected RequestHandler initializ...
223355_9
@Override public synchronized WroModel create() { final StopWatch stopWatch = new StopWatch("Create Wro Model from Groovy"); try { stopWatch.start("createModel"); final Type type = new TypeToken<WroModel>() {}.getType(); final InputStream is = getModelResourceAsStream(); if (is == null) { thro...
225207_0
public void doAppend(PaxLoggingEvent paxLoggingEvent) { try { // Send message to the destination TextMessage message = getOrCreateSession().createTextMessage(); message.setText(format.toString(paxLoggingEvent)); getOrCreatePublisher().send(message); } catch (JMSException e) { ...
225207_1
public String toString(PaxLoggingEvent event) { JSONObject object = new JSONObject(); try { object.put(MESSAGE, event.getMessage()); object.put(SOURCE, event.getLoggerName()); object.put(TIMESTAMP, TIMESTAMP_FORMAT.format(new Date(event.getTimeStamp()))); JSONObject fields = new ...
225207_2
public void prepare(Message message) throws IOException { getLogger().log(Level.FINE, "JBIConduit send message"); NMRTransportFactory.removeUnusedInterceptprs(message); message.setContent(OutputStream.class, new NMRConduitOutputStream(message, nmr, target, this)); }
225207_3
public NMRDestination(EndpointInfo info, NMR nmr) { super(getTargetReference(info, null), info); this.nmr = nmr; this.properties = new HashMap<String, Object>(); String address = info.getAddress(); if (address != null && address.indexOf(Endpoint.RUN_AS_SUBJECT) >= 0) { String asSubject = add...
225207_4
public void activate() { nmr.getEndpointRegistry().register(this, properties); }
225207_5
public Binding createBinding(BindingInfo binding) { NMRBinding jb = new NMRBinding((NMRBindingInfo) binding); jb.getInInterceptors().add(new StaxInInterceptor()); jb.getInInterceptors().add(new NMROperationInInterceptor()); jb.getInInterceptors().add(new NMRWrapperInInterceptor()); jb.getOutIntercep...
225207_6
public void handleMessage(NMRMessage message) throws Fault { Exchange ex = message.getExchange(); Endpoint ep = ex.get(Endpoint.class); BindingOperationInfo boi = ex.get(BindingOperationInfo.class); if (boi == null && message.getNmrExchange()!= null && message.getNmrExchange().getOperation(...
225207_7
public void handleMessage(NMRMessage message) throws Fault { message.put(org.apache.cxf.message.Message.RESPONSE_CODE, new Integer(500)); NSStack nsStack = new NSStack(); nsStack.push(); try { XMLStreamWriter writer = getWriter(message); Fault fault = getFault(message); ...
225207_8
public void handleMessage(NMRMessage message) throws Fault { message.put(org.apache.cxf.message.Message.RESPONSE_CODE, new Integer(500)); NSStack nsStack = new NSStack(); nsStack.push(); try { XMLStreamWriter writer = getWriter(message); Fault fault = getFault(message); ...
225207_9
public void handleMessage(NMRMessage message) throws Fault { message.put(org.apache.cxf.message.Message.RESPONSE_CODE, new Integer(500)); NSStack nsStack = new NSStack(); nsStack.push(); try { XMLStreamWriter writer = getWriter(message); Fault fault = getFault(message); ...
225211_0
public static <T> Class<? extends T> locate(Class<T> factoryId) { return locate(factoryId, factoryId.getName()); }