Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Day 2 Task complete #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
200 changes: 200 additions & 0 deletions Main.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
<Activity mc:Ignorable="sap sap2010" x:Class="Main" mva:VisualBasic.Settings="{x:Null}" sap:VirtualizedContainerService.HintSize="623.2,801.6" sap2010:WorkflowViewState.IdRef="ActivityBuilder_1" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:njl="clr-namespace:Newtonsoft.Json.Linq;assembly=Newtonsoft.Json" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:snm="clr-namespace:System.Net.Mail;assembly=System" xmlns:ugm="clr-namespace:UiPath.GSuite.Models;assembly=UiPath.GSuite" xmlns:ui="http://schemas.uipath.com/workflow/activities" xmlns:um="clr-namespace:UiPath.MLServices;assembly=UiPath.MLServices" xmlns:uma="clr-namespace:UiPath.MLServices.Activities;assembly=UiPath.MLServices.Activities" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<TextExpression.NamespacesForImplementation>
<scg:List x:TypeArguments="x:String" Capacity="82">
<x:String>System.Activities</x:String>
<x:String>System.Activities.Statements</x:String>
<x:String>System.Activities.Expressions</x:String>
<x:String>System.Activities.Validation</x:String>
<x:String>System.Activities.XamlIntegration</x:String>
<x:String>Microsoft.VisualBasic</x:String>
<x:String>Microsoft.VisualBasic.Activities</x:String>
<x:String>System</x:String>
<x:String>System.Collections</x:String>
<x:String>System.Collections.Generic</x:String>
<x:String>System.Data</x:String>
<x:String>System.Diagnostics</x:String>
<x:String>System.Drawing</x:String>
<x:String>System.IO</x:String>
<x:String>System.Linq</x:String>
<x:String>System.Net.Mail</x:String>
<x:String>System.Xml</x:String>
<x:String>System.Xml.Linq</x:String>
<x:String>UiPath.Core</x:String>
<x:String>UiPath.Core.Activities</x:String>
<x:String>System.Windows.Markup</x:String>
<x:String>System.Runtime.Serialization</x:String>
<x:String>UiPath.MLServices</x:String>
<x:String>UiPath.MLServices.Enums</x:String>
<x:String>System.Reflection</x:String>
<x:String>System.Runtime.InteropServices</x:String>
<x:String>UiPath.MLServices.Activities</x:String>
<x:String>UiPath.Shared.Activities</x:String>
<x:String>System.Collections.ObjectModel</x:String>
<x:String>System.Activities.DynamicUpdate</x:String>
<x:String>UiPath.Excel.Activities</x:String>
<x:String>Newtonsoft.Json.Linq</x:String>
<x:String>Newtonsoft.Json</x:String>
<x:String>System.Dynamic</x:String>
<x:String>System.ComponentModel</x:String>
<x:String>System.Collections.Specialized</x:String>
<x:String>UiPath.Web.Activities</x:String>
<x:String>UiPath.GSuite.Models</x:String>
<x:String>UiPath.GSuite.Contracts</x:String>
<x:String>UiPath.GSuite.Activities</x:String>
<x:String>UiPath.GSuite.Activities.Contracts</x:String>
<x:String>Microsoft.VisualBasic.CompilerServices</x:String>
<x:String>System.Security</x:String>
<x:String>UiPath.Mail</x:String>
<x:String>UiPath.Mail.IMAP.Activities</x:String>
</scg:List>
</TextExpression.NamespacesForImplementation>
<TextExpression.ReferencesForImplementation>
<scg:List x:TypeArguments="AssemblyReference" Capacity="28">
<AssemblyReference>System.Activities</AssemblyReference>
<AssemblyReference>Microsoft.VisualBasic</AssemblyReference>
<AssemblyReference>mscorlib</AssemblyReference>
<AssemblyReference>System.Data</AssemblyReference>
<AssemblyReference>System</AssemblyReference>
<AssemblyReference>System.Drawing</AssemblyReference>
<AssemblyReference>System.Core</AssemblyReference>
<AssemblyReference>System.Xml</AssemblyReference>
<AssemblyReference>System.Xml.Linq</AssemblyReference>
<AssemblyReference>PresentationFramework</AssemblyReference>
<AssemblyReference>WindowsBase</AssemblyReference>
<AssemblyReference>PresentationCore</AssemblyReference>
<AssemblyReference>System.Xaml</AssemblyReference>
<AssemblyReference>UiPath.System.Activities</AssemblyReference>
<AssemblyReference>UiPath.UiAutomation.Activities</AssemblyReference>
<AssemblyReference>System.Data.DataSetExtensions</AssemblyReference>
<AssemblyReference>System.Runtime.Serialization</AssemblyReference>
<AssemblyReference>UiPath.MLServices</AssemblyReference>
<AssemblyReference>System.Memory</AssemblyReference>
<AssemblyReference>UiPath.MLServices.Activities</AssemblyReference>
<AssemblyReference>UiPath.Excel.Activities</AssemblyReference>
<AssemblyReference>UiPath.Mail.Activities</AssemblyReference>
<AssemblyReference>UiPath.UIAutomationCore</AssemblyReference>
<AssemblyReference>UiPath.OCR.Activities</AssemblyReference>
<AssemblyReference>Newtonsoft.Json</AssemblyReference>
<AssemblyReference>UiPath.Web.Activities</AssemblyReference>
<AssemblyReference>UiPath.GSuite</AssemblyReference>
<AssemblyReference>UiPath.GSuite.Activities</AssemblyReference>
</scg:List>
</TextExpression.ReferencesForImplementation>
<Flowchart sap:VirtualizedContainerService.HintSize="633.6,636.8" sap2010:WorkflowViewState.IdRef="Flowchart_1">
<Flowchart.Variables>
<Variable x:TypeArguments="scg:List(snm:MailMessage)" Name="email" />
<Variable x:TypeArguments="x:String" Name="pass" />
<Variable x:TypeArguments="ugm:GmailMessage[]" Name="mail" />
</Flowchart.Variables>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<av:Point x:Key="ShapeLocation">0,2.4</av:Point>
<av:Size x:Key="ShapeSize">60,75.2</av:Size>
<av:PointCollection x:Key="ConnectorLocation">60,40 120,40</av:PointCollection>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<Flowchart.StartNode>
<x:Reference>__ReferenceID2</x:Reference>
</Flowchart.StartNode>
<FlowStep>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:Point x:Key="ShapeLocation">120,163.6</av:Point>
<av:Size x:Key="ShapeSize">200,52.8</av:Size>
<av:PointCollection x:Key="ConnectorLocation">220,163.6 220,121.2</av:PointCollection>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<ui:ForEach x:TypeArguments="snm:MailMessage" CurrentIndex="{x:Null}" DisplayName="For Each" sap:VirtualizedContainerService.HintSize="560,1216" sap2010:WorkflowViewState.IdRef="ForEach`1_2" Values="[mail]">
<ui:ForEach.Body>
<ActivityAction x:TypeArguments="snm:MailMessage">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="snm:MailMessage" Name="item" />
</ActivityAction.Argument>
<Sequence DisplayName="Body" sap:VirtualizedContainerService.HintSize="524.8,1081.6" sap2010:WorkflowViewState.IdRef="Sequence_2">
<Sequence.Variables>
<Variable x:TypeArguments="x:String" Name="mloutput" />
<Variable x:TypeArguments="x:String" Name="prediction" />
<Variable x:TypeArguments="x:String" Name="confidence" />
</Sequence.Variables>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<uma:MLSkills ApiKey="{x:Null}" ContinueOnError="{x:Null}" DelayAfter="{x:Null}" DelayBefore="{x:Null}" Name="{x:Null}" NumberOfRetries="{x:Null}" ResponseHeaders="{x:Null}" Result="{x:Null}" SkillURL="{x:Null}" StatusCode="{x:Null}" TimeOutMs="{x:Null}" Connection="Robot" DisplayName="MLSkill" ExternApiFileType="JSON" sap:VirtualizedContainerService.HintSize="483.2,411.2" sap2010:WorkflowViewState.IdRef="MLSkills_1" Item="[item.ToString]" JsonResponse="[mloutput]" NextPageNum="2" RefreshList="False" TotalCount="1">
<uma:MLSkills.MLSkillList>
<scg:List x:TypeArguments="um:MLSkill" Capacity="4">
<x:Reference>__ReferenceID0</x:Reference>
</scg:List>
</uma:MLSkills.MLSkillList>
<uma:MLSkills.SelectedMLSkill>
<um:MLSkill x:Name="__ReferenceID0" AccessUri="https://ai-uipath-eus.deskover.com/mlskills/28f660b6-81da-40c4-aa75-e7575fddca18/c5b71535-769e-4265-aadf-ceda1546bdb2/email-spam" AccountId="28f660b6-81da-40c4-aa75-e7575fddca18" Description="" Id="a53df5c3-f84d-4879-83e9-4a4f5cc2451f" InputDescription="Text to be classified as String: 'I loved this movie.'" InputType="JSON" Name="Email_spam" OutputDescription="JSON with pedicted class name, associated confidence on that class prediction (between 0-1). For example: {'prediction': 'Positive', 'confidence': 0.9422031841278076,}" ProjectId="008bbdac-b037-457b-a08b-1f46cf6ace18" TenantId="c5b71535-769e-4265-aadf-ceda1546bdb2" />
</uma:MLSkills.SelectedMLSkill>
</uma:MLSkills>
<ui:DeserializeJson x:TypeArguments="njl:JObject" JsonObject="{x:Null}" DisplayName="Deserialize JSON" sap:VirtualizedContainerService.HintSize="483.2,60" sap2010:WorkflowViewState.IdRef="DeserializeJson`1_1" JsonString="[mloutput]" />
<ui:MultipleAssign DisplayName="Multiple Assign" sap:VirtualizedContainerService.HintSize="483.2,130.4" sap2010:WorkflowViewState.IdRef="MultipleAssign_1">
<ui:MultipleAssign.AssignOperations>
<scg:List x:TypeArguments="ui:AssignOperation" Capacity="4">
<ui:AssignOperation sap2010:WorkflowViewState.IdRef="AssignOperation_1">
<ui:AssignOperation.To>
<OutArgument x:TypeArguments="x:String">[prediction]</OutArgument>
</ui:AssignOperation.To>
<ui:AssignOperation.Value>
<InArgument x:TypeArguments="x:String">[mloutput(prediction).ToString]</InArgument>
</ui:AssignOperation.Value>
</ui:AssignOperation>
<ui:AssignOperation sap2010:WorkflowViewState.IdRef="AssignOperation_2">
<ui:AssignOperation.To>
<OutArgument x:TypeArguments="x:String">[confidence]</OutArgument>
</ui:AssignOperation.To>
<ui:AssignOperation.Value>
<InArgument x:TypeArguments="x:String">[mloutput(confidence).ToString]</InArgument>
</ui:AssignOperation.Value>
</ui:AssignOperation>
</scg:List>
</ui:MultipleAssign.AssignOperations>
</ui:MultipleAssign>
<If Condition="[prediction = &quot;Spam&quot;]" sap:VirtualizedContainerService.HintSize="483.2,267.2" sap2010:WorkflowViewState.IdRef="If_1">
<If.Then>
<ui:MoveIMAPMailMessageToFolder Email="{x:Null}" FromFolder="{x:Null}" Password="{x:Null}" Port="{x:Null}" SecurePassword="{x:Null}" Server="{x:Null}" DisplayName="Move IMAP Mail Message" EnableSSL="True" sap:VirtualizedContainerService.HintSize="333.6,88" sap2010:WorkflowViewState.IdRef="MoveIMAPMailMessageToFolder_1" MailFolder="Spam" MailMessage="[item]" SecureConnection="Auto" />
</If.Then>
</If>
</Sequence>
</ActivityAction>
</ui:ForEach.Body>
</ui:ForEach>
<FlowStep.Next>
<FlowStep x:Name="__ReferenceID1">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:Point x:Key="ShapeLocation">120,98.8</av:Point>
<av:Size x:Key="ShapeSize">200,22.4</av:Size>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<ui:GetIMAPMailMessages FilterExpression="{x:Null}" Messages="{x:Null}" SecurePassword="{x:Null}" TimeoutMS="{x:Null}" DeleteMessages="False" DisplayName="Get IMAP Mail Messages" Email="[email protected]" EnableSSL="True" FilterExpressionCharacterSet="US-ASCII" sap:VirtualizedContainerService.HintSize="200,22.4" sap2010:WorkflowViewState.IdRef="GetIMAPMailMessages_2" MailFolder="Inbox" MarkAsRead="False" OnlyUnreadMessages="False" OrderByDate="NewestFirst" Password="[pass]" Port="993" SecureConnection="Auto" Server="imap.gmail.com" Top="5">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</ui:GetIMAPMailMessages>
</FlowStep>
</FlowStep.Next>
</FlowStep>
<x:Reference>__ReferenceID1</x:Reference>
<FlowStep x:Name="__ReferenceID2">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<av:Point x:Key="ShapeLocation">120,28.8</av:Point>
<av:Size x:Key="ShapeSize">200,22.4</av:Size>
<av:PointCollection x:Key="ConnectorLocation">220,51.2 220,98.8</av:PointCollection>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<ui:GetPassword DisplayName="Get Password" sap:VirtualizedContainerService.HintSize="200,22.4" sap2010:WorkflowViewState.IdRef="GetPassword_2" ProtectedPassword="AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAvhXPzPS+8EmFKBrNxqnEcwAAAAACAAAAAAAQZgAAAAEAACAAAADLsT0s53liR158s8QLYlyfcnz963TYLFwAyICMT1/7/AAAAAAOgAAAAAIAACAAAADrkDWlbLpm4FNv+tNOUK5RtpvjTTaN1Uoj1xOt9QFv0xAAAACU+qd9jdirh9jZHEgK3dt3QAAAABE9ea4nmNcmtJwOVdLjT1tESamnOvO/yCzuCsxTTh4iqbiuE17r1U3phpO4bzZnn+vF2k+dShkSD4pMDBUM76Y=" Result="[pass]" />
<FlowStep.Next>
<x:Reference>__ReferenceID1</x:Reference>
</FlowStep.Next>
</FlowStep>
</Flowchart>
</Activity>
Binary file added Spam_Email_DataSet.xlsx
Binary file not shown.
Binary file added data files.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pipeline.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"name": "SpamMail_Detection",
"description": "Blank Process",
"main": "Main.xaml",
"dependencies": {
"UiPath.Excel.Activities": "[2.10.4]",
"UiPath.GSuite.Activities": "[1.11.0]",
"UiPath.Mail.Activities": "[1.10.5]",
"UiPath.MLServices.Activities": "[1.1.7]",
"UiPath.System.Activities": "[21.4.1]",
"UiPath.UIAutomation.Activities": "[21.4.4]",
"UiPath.WebAPI.Activities": "[1.7.0]"
},
"webServices": [],
"entitiesStores": [],
"schemaVersion": "4.0",
"studioVersion": "21.4.4.0",
"projectVersion": "1.0.0",
"runtimeOptions": {
"autoDispose": false,
"isPausable": true,
"requiresUserInteraction": true,
"supportsPersistence": false,
"excludedLoggedData": [
"Private:*",
"*password*"
],
"executionType": "Workflow",
"readyForPiP": false,
"startsInPiP": false
},
"designOptions": {
"projectProfile": "Developement",
"outputType": "Process",
"libraryOptions": {
"includeOriginalXaml": false,
"privateWorkflows": []
},
"processOptions": {
"ignoredFiles": []
},
"fileInfoCollection": [],
"modernBehavior": false
},
"expressionLanguage": "VisualBasic",
"entryPoints": [
{
"filePath": "Main.xaml",
"uniqueId": "e88f21ae-dd31-4063-bad6-fb5b46ef48a8",
"input": [],
"output": []
}
],
"isTemplate": false,
"templateProjectData": {},
"publishData": {},
"targetFramework": "Legacy"
}
Binary file added workflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added workflow1.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.