This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Http; | |
use Aws\BedrockRuntime\BedrockRuntimeClient; | |
class ChatController extends Controller | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<proxy xmlns="http://ws.apache.org/ns/synapse" | |
name="S3" | |
startOnLoad="true" | |
statistics="disable" | |
trace="disable" | |
transports="http,https"> | |
<target> | |
<inSequence> | |
<log/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<eventPublisher | |
name="IsAnalytics-Publisher-wso2event-AuthenticationData" | |
statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventpublisher"> | |
<from streamName="org.wso2.is.analytics.stream.OverallAuthentication" version="1.0.0"/> | |
<mapping customMapping="disable" type="json"/> | |
<to eventAdapterType="http"> | |
<property name="http.client.method">HttpPost</property> | |
<property name="http.username">admin</property> | |
<property name="http.proxy.host">127.0.0.1</property> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Training Parameters | |
learning_rate = 0.01 | |
num_steps = 30000 | |
batch_size = 10000 | |
display_step = 1000 | |
examples_to_show = 10 | |
# Network Parameters | |
num_input = len(FEATURE_COLUMNS) # no. of features selected |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate Suspicious login - Login after consecutive failed logins | |
def generateSuspiciousLoginScenario1(df): | |
global currentTime, usernames, ipAddressesForUsers, index | |
username = usernames[random.randrange(NUMBER_OF_USERS)] | |
contextID = uuid.uuid4() | |
currentTime = currentTime + datetime.timedelta(seconds=random.randrange(3000)) | |
failureCount = random.randrange(4, 7) | |
generateFailedLogin(df, failureCount, currentTime, username, contextID) | |
index = index + failureCount | |
currentTime = currentTime + datetime.timedelta(seconds=random.randrange(3)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "org.wso2.is.analytics.stream.OverallAuthentication", | |
"version": "1.0.0", | |
"nickName": "", | |
"description": "", | |
"metaData": [ | |
{ | |
"name": "tenantId", | |
"type": "INT" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Supported Response Types for Hybrid flow --> | |
<SupportedResponseType> | |
<ResponseTypeName>code token</ResponseTypeName> | |
<ResponseTypeHandlerImplClass>org.wso2.carbon.identity.oauth2.authz.handlers.HybridResponseTypeHandler</ResponseTypeHandlerImplClass> | |
</SupportedResponseType> | |
<SupportedResponseType> | |
<ResponseTypeName>code id_token</ResponseTypeName> | |
<ResponseTypeHandlerImplClass>org.wso2.carbon.identity.oauth2.authz.handlers.HybridResponseTypeHandler</ResponseTypeHandlerImplClass> | |
</SupportedResponseType> | |
<SupportedResponseType> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
import subprocess | |
import os.path | |
from sys import argv | |
import os | |
import fnmatch | |
import random |