id stringlengths 17 20 | content stringlengths 45 12.2k | max_stars_repo_path stringlengths 55 167 |
|---|---|---|
logbench-o_data_1 | protected void setUp() throws Exception {
super.setUp();
Destination replyDestination = null;
if (topic) {
replyDestination = receiveSession.createTopic("REPLY." + getSubject());
} else {
replyDestination = receiveSession.createQueue("REPLY." + getSubject());
}
replyProducer = re... | LogBench/LogBench-O_prefix_1point/activemq_PublishOnTopicConsumedMessageTest_setUp.java |
logbench-o_data_2 | @Override
public void closeImpl() throws SerialPortException {
try {
this.socket.close();
} catch (IOException e) {
LOG.error(e.getMessage(), e);
throw new SerialPortException(e.getMessage());
}
} | LogBench/LogBench-O_prefix_1point/ma-core-public_SerialSocketBridge_closeImpl.java |
logbench-o_data_3 | @Override
public boolean canSubscribe(Node node, JID owner, JID subscriber) {
// Let node owners and sysadmins always subscribe to the node
if (node.isAdmin(owner)) {
return true;
}
for (JID nodeOwner : node.getOwners()) {
if (nodeOwner.equals(owner)) {
return true;
}... | LogBench/LogBench-O_prefix_1point/openfire_RosterAccess_canSubscribe.java |
logbench-o_data_4 | /**
* Method executed after test run is finished.
*
* It runs receiving result parameter, which is the result from finished
* test run. If the string "Caused by:" is found inside result it means
* that some exception were triggered in some test execution, and
* {@link #testRunFinished(Result)} throws an {@link Il... | LogBench/LogBench-O_prefix_1point/farm_TestListener_testRunFinished.java |
logbench-o_data_5 | @Test(timeout = 60000)
public void testCRLF11() throws Exception {
for (TransportConnector connector : brokerService.getTransportConnectors()) {
LOG.info("try: " + connector.getConnectUri());
int port = connector.getConnectUri().getPort();
StompConnection stompConnection = new StompConnection();
... | LogBench/LogBench-O_prefix_1point/activemq_StompTelnetTest_testCRLF11.java |
logbench-o_data_6 | @Override
public boolean isActive(FeatureState featureState, FeatureUser user) {
String lang = featureState.getParameter(PARAM_LANG);
String script = featureState.getParameter(PARAM_SCRIPT);
ScriptEngine engine = engineManager.getEngineByName(lang);
if (engine == null) {
log.error("Could not find scrip... | LogBench/LogBench-O_prefix_1point/togglz_ScriptEngineActivationStrategy_isActive.java |
logbench-o_data_7 | @Override
protected int writeDataWireFormat(byte[] dst, int dstIndex) {
if ((dst.length - dstIndex) < this.pipeDataLen) {
log.debug("TransCallNamedPipe data too long for buffer");
return 0;
}
System.arraycopy(this.pipeData, this.pipeDataOff, dst, dstIndex, this.pipeDataLen);
return this.pipeDat... | LogBench/LogBench-O_prefix_1point/jcifs-ng_TransCallNamedPipe_writeDataWireFormat.java |
logbench-o_data_8 | private byte[] toJsonAsBytes(Notification notification) {
try {
return mapper.writeValueAsBytes(notification);
} catch (JsonProcessingException e) {
log.error(e.toString(), e);
return null;
}
} | LogBench/LogBench-O_prefix_1point/togglz_Notifier_toJsonAsBytes.java |
logbench-o_data_9 | public void doStop() throws Exception {
log.debug("Stopped StaticMember gbean.");
} | LogBench/LogBench-O_prefix_1point/geronimo_StaticMemberGBean_doStop.java |
logbench-o_data_10 | @FXML
public void proceed() {
LOG.trace("proceed()");
FileChooser fileChooser = new FileChooser();
fileChooser.setTitle(resourceBundle.getString("unlock.chooseMasterkey.filePickerTitle"));
fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(resourceBundle.getString("unlock.chooseMasterkey... | LogBench/LogBench-O_prefix_1point/cryptomator_ChooseMasterkeyFileController_proceed.java |
logbench-o_data_11 | @Override
public List<JATETerm> execute(Collection<String> candidates) throws JATEException {
AbstractFeature feature = features.get(FrequencyTermBased.class.getName() + SUFFIX_WORD);
validateFeature(feature, FrequencyTermBased.class);
FrequencyTermBased fFeatureWords = (FrequencyTermBased) feature;
Abs... | LogBench/LogBench-O_prefix_1point/jate_RAKE_execute.java |
logbench-o_data_12 | public void testPerformance() throws Exception {
ConnectionFactory factory = createConnectionFactory();
List<Connection> list = new ArrayList<Connection>();
for (int i = 0; i < CONNECTION_COUNT; i++) {
Connection connection = factory.createConnection();
connection.start();
list.add(c... | LogBench/LogBench-O_prefix_1point/activemq_ConnectionChurnTest_testPerformance.java |
logbench-o_data_13 | @Test
void testEdgeMac() {
String libName = "libc++.dylib";
String driverVersion = "87.0.664.75";
WebDriverManager wdm = WebDriverManager.edgedriver().driverVersion(driverVersion).mac();
wdm.setup();
String downloadedDriverPath = wdm.getDownloadedDriverPath();
log.debug("The downloaded driver path ... | LogBench/LogBench-O_prefix_1point/webdrivermanager_EdgeMacTest_testEdgeMac.java |
logbench-o_data_14 | protected CommandChannel createCommandChannel() throws IOException {
socket = new MulticastSocket(mcastPort);
socket.setLoopbackMode(loopBackMode);
socket.setTimeToLive(timeToLive);
LOG.debug("Joining multicast address: " + getMulticastAddress());
socket.joinGroup(getMulticastAddress());
socket.set... | LogBench/LogBench-O_prefix_1point/activemq_MulticastTransport_createCommandChannel.java |
logbench-o_data_15 | @Test
void testCachePathContainsTilde() {
String customPath = "C:\\user\\abcdef~1\\path";
wdm.config().setCachePath(customPath);
String cachePath = wdm.config().getCachePath();
log.info("Using {} got {}", customPath, cachePath);
assertThat(cachePath).startsWith(customPath);
} | LogBench/LogBench-O_prefix_1point/webdrivermanager_CustomCacheTest_testCachePathContainsTilde.java |
logbench-o_data_16 | @Test(groups = { "wso2.dss" }, description = "insert timestamp in America/New_York timezone and UTC timezone, retrieve all and compare whether they are different", alwaysRun = true)
public void insertAndTestTimeStampValuesInDbTest() throws Exception {
OMElement payload = fac.createOMElement("getTimeStamps", omNs);
... | LogBench/LogBench-O_prefix_1point/micro-integrator_DS1189LeagyTimeStampModeTestCase_insertAndTestTimeStampValuesInDbTest.java |
logbench-o_data_17 | public void onStatus(IConnection conn, ObjectMap<String, Object> status) {
log.debug("onStatus: {}", status);
String code = status.get("code").toString();
if ("NetStream.Play.Stop".equals(code)) {
log.debug("Playback stopped");
conn.close();
}
} | LogBench/LogBench-O_prefix_1point/red5-server_ClientMethodHander_onStatus.java |
logbench-o_data_18 | /**
* Create the Print Writer output
*/
protected void createOut() {
try {
out = new PrintWriter(new FileWriter(file, true));
} catch (IOException e) {
out = new PrintWriter(new NullWriter());
LOG.error("Error while creating process log", e);
}
} | LogBench/LogBench-O_prefix_1point/ma-core-public_BaseIOLog_createOut.java |
logbench-o_data_19 | @Override
protected void tearDown() throws Exception {
connection.close();
super.tearDown();
LOG.info("### closed down the test case: " + getName());
} | LogBench/LogBench-O_prefix_1point/activemq_MultipleTestsWithEmbeddedBrokerTest_tearDown.java |
logbench-o_data_20 | @Override
public void onExecutionStart() throws AutomationFrameworkException {
if (!JMSBrokerController.isBrokerStarted()) {
log.info("String JMS Broker...");
activeMqBroker.start();
}
} | LogBench/LogBench-O_prefix_1point/micro-integrator_ActiveMQServerExtension_onExecutionStart.java |
logbench-o_data_21 | public void testWaitForTransportInterruptionProcessingHang() throws Exception {
final ConnectionFactory fac = new ActiveMQConnectionFactory("failover:(" + this.bindAddress + ")");
final Connection connection = fac.createConnection();
try {
final Session session = connection.createSession(false, Sess... | LogBench/LogBench-O_prefix_1point/activemq_AMQ2645Test_testWaitForTransportInterruptionProcessingHang.java |
logbench-o_data_22 | @Test(groups = { "wso2.dss" }, invocationCount = 5, enabled = false)
public void selectOperation() throws AxisFault, XPathExpressionException {
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace omNs = fac.createOMNamespace("http://ws.wso2.org/dataservice/samples/gspread_sample_service", "ns1");
... | LogBench/LogBench-O_prefix_1point/micro-integrator_AGSpreadDataServiceTestCase_selectOperation.java |
logbench-o_data_23 | /**
* @param args the queue used by the example
*/
public static void main(String[] args) {
String destinationName = null;
Context jndiContext = null;
ConnectionFactory connectionFactory = null;
Connection connection = null;
Session session = null;
Destination destination = null;
MessageCo... | LogBench/LogBench-O_prefix_1point/activemq_SimpleConsumer_main.java |
logbench-o_data_24 | private void doParse(BufferedReader reader, String baseUri, RDFNotation notation, boolean keepBNode, RDFCallback callback) throws ParserException {
try {
String line;
long numLine = 1;
TripleString triple = new TripleString();
while ((line = reader.readLine()) != null) {
... | LogBench/LogBench-O_prefix_1point/hdt-java_RDFParserSimple_doParse.java |
logbench-o_data_25 | @Override
public void onAccept(Transport localTransport) {
ProxyConnection connection = null;
try {
Transport remoteTransport = createRemoteTransport(localTransport);
connection = new ProxyConnection(localTransport, remoteTransport);
connection.start();
connections.add(connection... | LogBench/LogBench-O_prefix_1point/activemq_ProxyConnector_onAccept.java |
logbench-o_data_26 | public String getClaimsGatheringScriptName(CustomScriptConfiguration script, UmaAuthorizationContext context) {
try {
log.debug("Executing python 'getClaimsGatheringScriptName' method, script: " + script.getName());
String result = policyScript(script).getClaimsGatheringScriptName(context);
log.deb... | LogBench/LogBench-O_prefix_1point/oxauth_ExternalUmaRptPolicyService_getClaimsGatheringScriptName.java |
logbench-o_data_27 | private void createBucket(BucketProperties bucket) {
storage.create(BucketInfo.newBuilder(bucket.name).build());
log.info("bucket {} created", bucket.name);
} | LogBench/LogBench-O_prefix_1point/testcontainers-spring-boot_StorageResourcesGenerator_createBucket.java |
logbench-o_data_28 | protected BrokerService createBroker(String uri) throws Exception {
LOG.info("Loading broker configuration from the classpath with URI: " + uri);
return BrokerFactory.createBroker(new URI("xbean:" + uri));
} | LogBench/LogBench-O_prefix_1point/activemq_SimpleAuthenticationPluginTest_createBroker.java |
logbench-o_data_29 | public void unloading(Artifact configurationId) {
log.debug("unloading module: {}", configurationId);
} | LogBench/LogBench-O_prefix_1point/geronimo_DebugLoggingLifecycleMonitor_unloading.java |
logbench-o_data_30 | public static void main(String[] args) throws Exception {
if (args.length == 2 || args.length == 4) {
String zkQuorum = args[0];
String zkPath = args[1];
LOG.info("Reading ZK[{}], path[{}]" + zkQuorum, zkPath);
MapMetastore meta = newZookeeperMapsMeta(zkQuorum, 1000, zkPath);
LOG.in... | LogBench/LogBench-O_prefix_1point/maps_Metastores_main.java |
logbench-o_data_31 | @Override
public void startup() {
log.warn(buildTab() + "startup");
delegate.startup();
} | LogBench/LogBench-O_prefix_1point/pronghorn_StreamingReadVisitorDebugDelegate_startup.java |
logbench-o_data_32 | @AfterThrowing(value = "this(io.splitet.core.api.CommandHandler) && @annotation(command)", throwing = "exception")
public void afterThrowing(Command command, Exception exception) {
try {
log.info("afterThrowing Command: " + exception);
kafkaOperationRepository.failOperation(operationContext.getCommandConte... | LogBench/LogBench-O_prefix_1point/splitet_CommandExecutionInterceptor_afterThrowing.java |
logbench-o_data_33 | public void run() {
while (!publishing) {
try {
Thread.sleep(100L);
} catch (InterruptedException e) {
}
}
do {
try {
RTMPMessage message = que.poll();
if (message != null && client != null) {
client.publishStreamData(stream... | LogBench/LogBench-O_prefix_1point/red5-server_FBLiveConnectTest_run.java |
logbench-o_data_34 | /**
* Sets up a test where the producer and consumer have their own connection.
*
* @see junit.framework.TestCase#setUp()
*/
protected void setUp() throws Exception {
File journalFile = new File(JOURNAL_ROOT);
recursiveDelete(journalFile);
// Create broker from resource
LOG.info("Creating broker... ");... | LogBench/LogBench-O_prefix_1point/activemq_PublishOnTopicConsumerMessageUsingActivemqXMLTest_setUp.java |
logbench-o_data_35 | public DeviceRegistrationResult finishRegistration(RegisterRequestMessage requestMessage, RegisterResponse response, String userInum, Set<String> facets) throws BadInputException {
RegisterRequest request = requestMessage.getRegisterRequest();
String appId = request.getAppId();
ClientData clientData = respo... | LogBench/LogBench-O_prefix_1point/oxauth_RegistrationService_finishRegistration.java |
logbench-o_data_36 | @Override
protected void afterExecute(Runnable runnable, Throwable throwable) {
ScheduledFuture future = (ScheduledFuture) runnable;
if (future.isDone()) {
try {
future.get();
log.info("Task is completed");
} catch (CancellationException ce) {
log.error("Task is cancelle... | LogBench/LogBench-O_prefix_1point/sherlock_RecoverableThreadScheduler_afterExecute.java |
logbench-o_data_37 | // doc comment inherited from LogWriter
public void logReceivedException(Logger log, IOException error) {
log.debug("$$ RECEIVED_EXCEPTION: " + error, error);
} | LogBench/LogBench-O_prefix_1point/activemq_CustomLogWriter_logReceivedException.java |
logbench-o_data_38 | private Message collectMessagesFromDurableSubscriptionForOneMinute() throws Exception {
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("vm://" + brokerName);
TopicConnection connection = connectionFactory.createTopicConnection();
connection.setClientID(clientID);
TopicSessio... | LogBench/LogBench-O_prefix_1point/activemq_DurableSubscriptionHangTestCase_collectMessagesFromDurableSubscriptionForOneMinute.java |
logbench-o_data_39 | public void reportDurationFromMRSubmittedToMRStarted(int maxToReport) {
LOG.info("Time from MR submitted to MR started running By Topic:");
Map<String, Long> durations = getDurations(this.mrSubmitTimeByTopic, this.mrStartRunningTimeByTopic);
reportDurations(durations, maxToReport);
} | LogBench/LogBench-O_prefix_1point/camus_CamusSweeperMetrics_reportDurationFromMRSubmittedToMRStarted.java |
logbench-o_data_40 | @Override
public boolean canSubscribe(Node node, JID owner, JID subscriber) {
// Let node owners and sysadmins always subcribe to the node
if (node.isAdmin(owner)) {
return true;
}
XMPPServer server = XMPPServer.getInstance();
for (JID nodeOwner : node.getOwners()) {
// Give access t... | LogBench/LogBench-O_prefix_1point/openfire_PresenceAccess_canSubscribe.java |
logbench-o_data_41 | private String getHttpResponse(String endpoint, String requestMethod, String payload) {
StringBuilder jsonString = new StringBuilder();
BufferedReader br = null;
HttpURLConnection connection = null;
try {
String line;
URL url = new URL(endpoint);
connection = (HttpURLConnection) ... | LogBench/LogBench-O_prefix_1point/micro-integrator_RequestBoxJsonTestCase_getHttpResponse.java |
logbench-o_data_42 | /**
* Decide if the given Sensor should be executed.
*/
public boolean shouldExecute(DefaultSensorDescriptor descriptor) {
if (!fsCondition(descriptor)) {
LOG.debug("'{}' skipped because there is no related files in the current project", descriptor.name());
return false;
}
if (!activeRulesConditi... | LogBench/LogBench-O_prefix_1point/sonarlint-core_SensorOptimizer_shouldExecute.java |
logbench-o_data_43 | @Override
public void write(int i) throws IOException {
StringBuilder sb = local.get();
if (sb == null) {
sb = new StringBuilder();
}
// look for LF
if (i == 10) {
log.info("Derby log: {}", sb.toString());
sb.delete(0, sb.length() - 1);
} else {
log.trace("Derby log: {}"... | LogBench/LogBench-O_prefix_1point/red5-server_DerbyLogInterceptor_write.java |
logbench-o_data_44 | protected void spawnConsumer() {
Thread thread = new Thread(new Runnable() {
public void run() {
try {
Connection consumerConnection = createConsumerConnection();
MessageConsumer consumer = createConsumer(consumerConnection);
// consume some messa... | LogBench/LogBench-O_prefix_1point/activemq_ReliableReconnectTest_spawnConsumer.java |
logbench-o_data_45 | @Override
public void stop() throws Exception {
LOG.info("Stopping proxy.");
super.stop();
ProxyConnection dummy = new ProxyConnection(local, this);
LOG.debug("Removing proxyConnection {}", dummy.toString());
connections.remove(dummy);
} | LogBench/LogBench-O_prefix_1point/activemq_ProxyConnector_stop.java |
logbench-o_data_46 | @Override
public List<String> groupsFromRoles(List<String> roles) {
if (template == null || roles == null) {
return roles;
} else {
List<String> renamedRoles = new ArrayList<>();
for (String role : roles) {
String renamedRole = template.replace(ROLE_MAPPING_PLACEHOLDER, role)... | LogBench/LogBench-O_prefix_1point/cxf-fediz_DefaultRoleToGroupMapper_groupsFromRoles.java |
logbench-o_data_47 | public void testRebalance() throws Exception {
createBroker(new ClassPathResource("org/apache/activemq/usecases/rebalance-broker1.xml"));
createBroker(new ClassPathResource("org/apache/activemq/usecases/rebalance-broker2.xml"));
startAllBrokers();
brokers.get("b1").broker.waitUntilStarted();
LOG.info("... | LogBench/LogBench-O_prefix_1point/activemq_ClientRebalanceTest_testRebalance.java |
logbench-o_data_48 | public void startServersWithDepSync(boolean mountRegistry, TestServerManager... serverManagers) throws AutomationFrameworkException {
int noOfServers = serverManagers.length;
for (int index = 0; index < noOfServers; ++index) {
log.info("============================== Configuring server " + (servers.size() + 1)... | LogBench/LogBench-O_prefix_1point/micro-integrator_MultipleServersManager_startServersWithDepSync.java |
logbench-o_data_49 | public void info(String s, Throwable t) {
LOG.info(filterPasswords(s), t);
if (infoString != null) {
infoString += s;
infoString += ", " + t;
infoString += ";";
}
} | LogBench/LogBench-O_prefix_1point/activemq_AbstractRuntimeConfigurationBroker_info.java |
logbench-o_data_50 | public Future<ValidationResult> validateMessages(HttpServerRequest request, List<KafkaProducerRecord<String, String>> kafkaProducerRecords) {
if (kafkaProducerRecords.isEmpty()) {
return Future.succeededFuture(new ValidationResult(ValidationStatus.VALIDATED_POSITIV));
}
Map<String, String> entry = V... | LogBench/LogBench-O_prefix_1point/gateleen_KafkaMessageValidator_validateMessages.java |
logbench-o_data_51 | /**
* Run the job. The job will perform the EGADS
* anomaly detection on its data and keep a
* reference to its reports.
*/
@Override
public void run() {
List<Anomaly> anomalies;
List<AnomalyReport> reports = new ArrayList<>();
// reconstruct DetectorConfig
DetectorConfig config = DetectorConfig.fro... | LogBench/LogBench-O_prefix_1point/sherlock_DetectionTask_run.java |
logbench-o_data_52 | @Override
public void start() throws IllegalStateException {
// If the service isn't enabled, return.
if (!JiveGlobals.getBooleanProperty("multicastDNS.enabled", false)) {
return;
}
TimerTask startService = new TimerTask() {
@Override
public void run() {
int clientPo... | LogBench/LogBench-O_prefix_1point/openfire_MulticastDNSService_start.java |
logbench-o_data_53 | @Override
public void onFinish(ITestContext ctx) {
System.gc();
Runtime rt = Runtime.getRuntime();
long inMb = 1024 * 1024;
log.info("Total memory : " + rt.totalMemory() / inMb);
log.info("Free memory : " + rt.freeMemory() / inMb);
log.info("Memory usage : " + (rt.totalMemory() - rt.freeMemory()) ... | LogBench/LogBench-O_prefix_1point/find-sec-bugs_VerboseTestListener_onFinish.java |
logbench-o_data_54 | @FXML
public void finish() {
try {
CharSequence oldPassphrase = oldPasswordField.getCharacters();
CharSequence newPassphrase = newPasswordController.passwordField.getCharacters();
Path masterkeyPath = vault.getPath().resolve(MASTERKEY_FILENAME);
byte[] oldMasterkeyBytes = Files.readA... | LogBench/LogBench-O_prefix_1point/cryptomator_ChangePasswordController_finish.java |
logbench-o_data_55 | @Override
public AbstractFeature build() throws JATEException {
Containment feature = new Containment();
// start workers
int cores = properties.getMaxCPUCores();
cores = cores == 0 ? 1 : cores;
int maxPerThread = getMaxPerThread(cores);
StringBuilder sb = new StringBuilder("Building features us... | LogBench/LogBench-O_prefix_1point/jate_ContainmentFBMaster_build.java |
logbench-o_data_56 | private synchronized MessageInterceptorFilter getFilter() {
if (filter == null) {
try {
MutableBrokerFilter mutableBrokerFilter = (MutableBrokerFilter) brokerService.getBroker().getAdaptor(MutableBrokerFilter.class);
Broker next = mutableBrokerFilter.getNext();
filter = n... | LogBench/LogBench-O_prefix_1point/activemq_MessageInterceptorRegistry_getFilter.java |
logbench-o_data_57 | @AfterClass(alwaysRun = true)
public void deleteService() throws Exception {
deleteService(SERVICE_NAME_1);
deleteService(SERVICE_NAME_2);
log.info(SCHEMA_NAME + " deleted");
} | LogBench/LogBench-O_prefix_1point/micro-integrator_MultipleServicesGeneratorTestCase_deleteService.java |
logbench-o_data_58 | /**
* Parses the provided router configuration resource and returns a {@link RouterConfiguration}.
*
* @param configurationResourceBuffer the resource to parse
* @return a {@link RouterConfiguration}
*/
public static Optional<RouterConfiguration> parse(Buffer configurationResourceBuffer, Map<String, Object> proper... | LogBench/LogBench-O_prefix_1point/gateleen_RouterConfigurationParser_parse.java |
logbench-o_data_59 | protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
final HttpServletRequest httpRequest = request;
final HttpServletResponse httpResponse = response;
httpResponse.setContentType("application/json");
PrintWriter out = httpRespons... | LogBench/LogBench-O_prefix_1point/oxauth_SectorIdentifier_processRequest.java |
logbench-o_data_60 | @Override
public void process(PublishingFlow publishingFlow, int tenantId) {
Object[] metaData = new Object[2];
Object[] eventData = new Object[2];
addMetaData(metaData, tenantId);
addEventData(eventData, publishingFlow);
if (log.isDebugEnabled()) {
log.debug("Before sending to analytic server ----... | LogBench/LogBench-O_prefix_1point/micro-integrator_EIStatisticsPublisher_process.java |
logbench-o_data_61 | public void produceMessages() throws Exception {
ConnectionFactory connectionFactory = new ActiveMQConnectionFactory(brokerService.getTransportConnectors().get(0).getConnectUri().toString());
Connection connection = connectionFactory.createConnection();
Session session = connection.createSession(false, Sess... | LogBench/LogBench-O_prefix_1point/activemq_AMQ1893Test_produceMessages.java |
logbench-o_data_62 | @Test
public void testFLVReaderFileGenerateMetaData() {
log.info("\n testFLVReaderFileGenerateMetaData");
String[] paths = new String[] { "target/test-classes/fixtures/stray.flv" };
try {
for (String path : paths) {
File file = Paths.get(path).toFile();
if (file.exists() && file... | LogBench/LogBench-O_prefix_1point/red5-server_FLVReaderTest_testFLVReaderFileGenerateMetaData.java |
logbench-o_data_63 | private static <T extends Hook> Completable executeHooks(final String componentId, final List<T> hooks, final HookPhase phase, final ExecutionContext ctx, final ExecutionPhase executionPhase, final Throwable throwable, final ExecutionFailure executionFailure) {
return Flowable.fromIterable(hooks).flatMapCompletable... | LogBench/LogBench-O_prefix_1point/gravitee-api-management_HookHelper_executeHooks.java |
logbench-o_data_64 | @Test(groups = { "wso2.esb" }, description = "Test different content types", dataProvider = "contentTypeProvider")
public void testReturnContentType(String dataProviderContentType) throws Exception {
contentType = dataProviderContentType;
HttpServer server = HttpServer.create(new InetSocketAddress(PORT), 0);
... | LogBench/LogBench-O_prefix_1point/micro-integrator_ContentTypeTestCase_testReturnContentType.java |
logbench-o_data_65 | @Override
public void onPartitionsAssigned(Map<TopicPartition, Long> assignments, ConsumerSeekAware.ConsumerSeekCallback callback) {
for (Map.Entry<TopicPartition, Long> entry : assignments.entrySet()) {
String topic = entry.getKey().topic();
topicsMap.putIfAbsent(topic, new Topic());
topics... | LogBench/LogBench-O_prefix_1point/splitet_EventListener_onPartitionsAssigned.java |
logbench-o_data_66 | public void doStart() throws Exception {
log.debug("Started channel gbean.");
} | LogBench/LogBench-O_prefix_1point/geronimo_ChannelGBean_doStart.java |
logbench-o_data_67 | @Bean(name = BEAN_NAME_EMBEDDED_CASSANDRA, destroyMethod = "stop")
public CassandraContainer cassandra(ConfigurableEnvironment environment, CassandraProperties properties, Optional<Network> network) throws Exception {
CassandraContainer cassandra = new CassandraContainer<>(ContainerUtils.getDockerImageName(properti... | LogBench/LogBench-O_prefix_1point/testcontainers-spring-boot_EmbeddedCassandraBootstrapConfiguration_cassandra.java |
logbench-o_data_68 | /**
* {@inheritDoc}
*/
public void stopListening() {
log.debug("stopListening, client is finished providing data");
if (writer != null) {
writer.close();
log.debug("Bytes written: {}", writer.getBytesWritten());
writer = null;
}
} | LogBench/LogBench-O_prefix_1point/red5-server_Writer_stopListening.java |
logbench-o_data_69 | @Override
public void filterWrite(NextFilter nextFilter, IoSession session, WriteRequest writeRequest) throws Exception {
if (!session.isClosing()) {
// Get number of pending requests
long pendingBytes = session.getScheduledWriteBytes();
if (pendingBytes > bytesCap) {
// Get last... | LogBench/LogBench-O_prefix_1point/openfire_StalledSessionsFilter_filterWrite.java |
logbench-o_data_70 | /**
* This will clone the bootstrap realm config and creates a tenant specific realm.
* Here the user search base of the particular tenant is changes to the tenant specific user
* store.
*
* @param bootStrapConfig
* @param tenantInfo
* @param tenantId
* @return
* @throws UserStoreException
*/
public RealmConf... | LogBench/LogBench-O_prefix_1point/micro-integrator_LDAPRealmConfigBuilder_getRealmConfigForTenantToPersist.java |
logbench-o_data_71 | @Override
public void run() {
try {
final Connection connection = factory.createConnection();
connection.start();
final Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
for (int j = 0; j < jobs * 10; j++) {
final MessageProducer producer = sess... | LogBench/LogBench-O_prefix_1point/activemq_ConcurrentDestinationCreationTest_run.java |
logbench-o_data_72 | @Before
public void setUp() throws Exception {
LOG.info("========== start {} ==========", getTestName());
} | LogBench/LogBench-O_prefix_1point/activemq_JmsPoolTestSupport_setUp.java |
logbench-o_data_73 | /**
* @see org.jivesoftware.openfire.vcard.DefaultVCardProvider#updateVCard(java.lang.String, org.dom4j.Element)
*/
@Override
public Element updateVCard(String username, Element vCard) throws NotFoundException {
// make sure some properties have not been overridden
Element nickNameNode = vCard.element("NICKNA... | LogBench/LogBench-O_prefix_1point/openfire_CrowdVCardProvider_updateVCard.java |
logbench-o_data_74 | public void listenQueue(final String queueName, final String selectors) {
try {
Properties props = new Properties();
props.put("java.naming.factory.initial", "org.apache.activemq.jndi.ActiveMQInitialContextFactory");
props.put("java.naming.provider.url", connectionUri);
props.put("qu... | LogBench/LogBench-O_prefix_1point/activemq_AMQ2084Test_listenQueue.java |
logbench-o_data_75 | @Override
public List<String> getDefaultProviderChain() {
List<String> provList = new ArrayList<>();
String defaultChain = MonetaryConfig.getString("conversion.default-chain").orElse(null);
if (defaultChain != null) {
String[] items = defaultChain.split(",");
for (String item : items) {
... | LogBench/LogBench-O_prefix_1point/jsr354-ri_DefaultMonetaryConversionsSingletonSpi_getDefaultProviderChain.java |
logbench-o_data_76 | /**
* Health-check implementation.
*/
@Override
public boolean invoke(MessageContext synCtx) {
org.apache.axis2.context.MessageContext axisCtx = ((Axis2MessageContext) synCtx).getAxis2MessageContext();
axisCtx.setProperty(Constants.Configuration.MESSAGE_TYPE, "application/json");
axisCtx.setProperty(Const... | LogBench/LogBench-O_prefix_1point/micro-integrator_LivenessResource_invoke.java |
logbench-o_data_77 | @Override
public void close() {
if (pollGuardTimer != null) {
log.debug("Cancelling previous poll-guard timer while stopping SpringJmsConnector");
pollGuardTimer.cancel();
pollGuardTimer = null;
}
super.close();
} | LogBench/LogBench-O_prefix_1point/iaf_SlowListenerWithPollGuard_close.java |
logbench-o_data_78 | private void roundTripProperties(ActiveMQObjectMessage message) throws IOException, JMSException {
ActiveMQObjectMessage copy = new ActiveMQObjectMessage();
for (Map.Entry<String, Object> prop : message.getProperties().entrySet()) {
LOG.debug("{} -> {}", prop.getKey(), prop.getValue().getClass());
copy... | LogBench/LogBench-O_prefix_1point/activemq_AMQ4893Test_roundTripProperties.java |
logbench-o_data_79 | /**
* Launches the JavaFX application, blocking the main thread until shuts down.
*
* @return Nonzero exit code in case of an error.
*/
private int runGuiApplication() {
try {
Application.launch(MainApp.class);
LOG.info("UI shut down");
return 0;
} catch (Exception e) {
LOG.error("T... | LogBench/LogBench-O_prefix_1point/cryptomator_Cryptomator_runGuiApplication.java |
logbench-o_data_80 | Future<Void> sendMessages(KafkaProducer<String, String> kafkaProducer, List<KafkaProducerRecord<String, String>> messages) {
Promise<Void> promise = Promise.promise();
log.debug("Start processing {} messages for kafka", messages.size());
// https://github.com/eclipse-vertx/vert.x/issues/2627
@SuppressWarni... | LogBench/LogBench-O_prefix_1point/gateleen_KafkaMessageSender_sendMessages.java |
logbench-o_data_81 | protected void configureServices() {
if ((msServices == null) || (msServices.length < 2)) {
LOG.error("masterSlave requires at least 2 URIs");
msServices = new String[] {};
throw new IllegalArgumentException("Expecting at least 2 arguments");
}
StringBuffer buf = new StringBuffer();
buf... | LogBench/LogBench-O_prefix_1point/activemq_MasterSlaveDiscoveryAgent_configureServices.java |
logbench-o_data_82 | @Override
protected Capabilities getCapabilities() {
Capabilities options = new ChromeOptions();
try {
addDefaultArgumentsForDocker(options);
} catch (Exception e) {
log.error("Exception adding default arguments for Docker, retyring with custom class");
options = new OptionsWithArguments("c... | LogBench/LogBench-O_prefix_1point/webdrivermanager_ChromeDriverManager_getCapabilities.java |
logbench-o_data_83 | public List<JATETerm> extract(SolrCore core, JATEProperties properties) throws JATEException {
SolrIndexSearcher searcher = core.getSearcher().get();
try {
this.freqFeatureBuilder = new FrequencyTermBasedFBMaster(searcher, properties, 0);
this.freqFeature = (FrequencyTermBased) freqFeatureBuilde... | LogBench/LogBench-O_prefix_1point/jate_AppComboBasic_extract.java |
logbench-o_data_84 | @Override
public Boolean call() {
log.info("Waiting until the proxy, " + proxyName + " is un-deployed.");
try {
return !esbUtils.isProxyServiceExist(backEndUrl, sessionCookie, proxyName);
} catch (RemoteException e) {
return false;
}
} | LogBench/LogBench-O_prefix_1point/micro-integrator_AvailabilityPollingUtils_call.java |
logbench-o_data_85 | private FirebaseCloudMessagingResponse _exec() {
try {
// Prepare request parameters
// clientRequest.setHttpMethod(getHttpMethod());
Builder clientRequest = webTarget.request();
applyCookies(clientRequest);
clientRequest.header("Content-Type", getRequest().getContentType());... | LogBench/LogBench-O_prefix_1point/oxauth_FirebaseCloudMessagingClient__exec.java |
logbench-o_data_86 | @Override
public void transportResumed() {
if (discoveryAgent instanceof Suspendable) {
try {
((Suspendable) discoveryAgent).suspend();
} catch (Exception e) {
LOG.warn("Exception suspending discoverAgent: {}", discoveryAgent);
}
}
super.transportResumed();
} | LogBench/LogBench-O_prefix_1point/activemq_DiscoveryTransport_transportResumed.java |
logbench-o_data_87 | @Override
public void removeFromClusterIdIndex(String clusterId) {
log.info("Removing cluster Id {} from clusters list index", clusterId);
RedisConnection<String> conn = connect();
Long redisResponse = conn.sync().srem(index(clusterIdName, "all"), clusterId);
log.info("Removed cluster Id {} with redis resp... | LogBench/LogBench-O_prefix_1point/sherlock_LettuceDruidClusterAccessor_removeFromClusterIdIndex.java |
logbench-o_data_88 | @SetEnvironment(executionEnvironments = { ExecutionEnvironment.STANDALONE })
@Test(groups = { "wso2.esb" }, description = "Send Soap Message to test client's SSL certificate")
public void testMutualSSLClientCertificate() throws Exception {
String trustStoreName = "client-truststore.jks";
String keyStoreName = "... | LogBench/LogBench-O_prefix_1point/micro-integrator_ClientSSLCertificateTestCase_testMutualSSLClientCertificate.java |
logbench-o_data_89 | // visible for testing
void handleLaunchArgs(FileSystem fs, List<String> args) {
Collection<Path> pathsToOpen = args.stream().map(str -> {
try {
return fs.getPath(str);
} catch (InvalidPathException e) {
LOG.trace("Argument not a valid path: {}", str);
return null;
}... | LogBench/LogBench-O_prefix_1point/cryptomator_FileOpenRequestHandler_handleLaunchArgs.java |
logbench-o_data_90 | @Test(groups = { "wso2.dss" }, invocationCount = 5, enabled = true)
public void selectOperation() throws AxisFault, XPathExpressionException {
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace omNs = fac.createOMNamespace("http://ws.wso2.org/dataservice/samples/gspread_sample_service", "ns1");
O... | LogBench/LogBench-O_prefix_1point/micro-integrator_GSpreadDataServiceTestCase_selectOperation.java |
logbench-o_data_91 | @Override
public void onWSConnect(WebSocketConnection conn) {
log.info("Connect: {}", conn);
} | LogBench/LogBench-O_prefix_1point/red5-server_DefaultWebSocketDataListener_onWSConnect.java |
logbench-o_data_92 | private void addAllowedMethodIfValid(String methodName, HttpServletResponse response) {
HttpMethod method = HttpMethod.valueOfOrNull(methodName);
if (method != null) {
response.addHeader(ACCESS_CONTROL_ALLOW_METHODS, methodName);
} else {
log.warn("Unknown HTTP method specified in " + ACCESS_CONTRO... | LogBench/LogBench-O_prefix_1point/neo4j_CorsFilter_addAllowedMethodIfValid.java |
logbench-o_data_93 | @Test(timeout = 60000)
public void testStealLinkSuccess() throws Exception {
final String clientID = "ThisIsAClientId";
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(stealableConnectionURI);
Connection connection1 = factory.createConnection();
connection1.setClientID(clientID);
c... | LogBench/LogBench-O_prefix_1point/activemq_LinkStealingTest_testStealLinkSuccess.java |
logbench-o_data_94 | void setupTable() throws InterruptedException {
CreateTableRequest ctr = mapper.generateCreateTableRequest(User.class).withProvisionedThroughput(new ProvisionedThroughput(1L, 1L));
boolean tableWasCreatedForTest = TableUtils.createTableIfNotExists(amazonDynamoDB, ctr);
if (tableWasCreatedForTest) {
log.inf... | LogBench/LogBench-O_prefix_1point/testcontainers-spring-boot_EmbeddedDynamoDBBootstrapConfigurationTest_setupTable.java |
logbench-o_data_95 | public void parse() {
CommandLineParser parser = new BasicParser();
CommandLine cmd = null;
try {
cmd = parser.parse(options, args);
if (cmd.hasOption(HELP))
help();
if (cmd.hasOption(KEY_STORE_FILE) && cmd.hasOption(KEY_STORE_PASSWORD) && cmd.hasOption(KEY_ALIAS) && cmd.... | LogBench/LogBench-O_prefix_1point/oxauth_KeyExporter_parse.java |
logbench-o_data_96 | /**
* Release event if there's no more references to it
*
* @param event
* Event
*/
protected void release(BaseEvent event) {
Info info = events.get(event);
if (info != null) {
if (info.refcount.decrementAndGet() == 0) {
events.remove(event);
}
} else {
log.warn(... | LogBench/LogBench-O_prefix_1point/red5-server_AllocationDebugger_release.java |
logbench-o_data_97 | private void assertDriver(WebDriverManager wdm) {
File driver = new File(wdm.getDownloadedDriverPath());
log.debug("Driver path {}", driver);
assertThat(driver).exists();
} | LogBench/LogBench-O_prefix_1point/webdrivermanager_BrowserVersionTest_assertDriver.java |
logbench-o_data_98 | /**
* Load the get script into redis and store the sha in the class member sha.
*
* @param redisCommand the redis command that should be executed, after the script is loaded.
* @param executionCounter a counter to control recursion depth
*/
public void loadLuaScript(final RedisCommand redisCommand, int executi... | LogBench/LogBench-O_prefix_1point/gateleen_LuaScriptState_loadLuaScript.java |
logbench-o_data_99 | @Override
public void run() {
try {
Session session = pc.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageProducer producer = session.createProducer(dest);
for (int i = 0; i < messageCount; i++) {
producer.send(session.createTextMessage(messageTextPrefix + i));
... | LogBench/LogBench-O_prefix_1point/activemq_FailoverReadInactivityBlockWriteTimeoutClientTest_run.java |
logbench-o_data_100 | public static String getHostAddress() {
if (hostAddress != null) {
return hostAddress;
}
String hostAddress = CarbonServerConfigurationService.getInstance().getFirstProperty(AnalyticsDataPublisherConstants.FLOW_STATISTIC_NODE_HOST_NAME);
if (hostAddress == null) {
hostAddress = CarbonSer... | LogBench/LogBench-O_prefix_1point/micro-integrator_PublisherUtil_getHostAddress.java |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 6