text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```smalltalk
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Xml;
namespace AutomatedLab
{
/// <summary>
/// This validator makes sure the required ISOs are present
/// </summary>
public class VisualStudioIsosExist : LabValidator... | /content/code_sandbox/LabXml/Validator/VisualStudio/VisualStudioIsosExist.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 266 |
```smalltalk
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AutomatedLab.Validator.FailoverCluster
{
class DscSqlServerPresent : LabValidator, IValidate
{
public DscSqlServerPresent()
{
messageContainer =... | /content/code_sandbox/LabXml/Validator/DscPullServer/DscSqlServerPresent.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 347 |
```smalltalk
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AutomatedLab.Validator.FailoverCluster
{
class ClusterNoDomain : LabValidator, IValidate
{
public ClusterNoDomain()
{
messageContainer = RunVali... | /content/code_sandbox/LabXml/Validator/FailoverCluster/ClusterNoDomain.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 433 |
```smalltalk
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Xml;
namespace AutomatedLab
{
/// <summary>
/// This validator makes sure the required ISOs are present
/// </summary>
public class SqlIsosExist : LabValidator, IValida... | /content/code_sandbox/LabXml/Validator/SQL/SqlIsosExist.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 269 |
```smalltalk
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Xml;
namespace AutomatedLab
{
/// <summary>
/// This validator informs about all defined domains.
/// </summary>
public class TooFewNodesForCluster : LabValidator, IValidate
{
... | /content/code_sandbox/LabXml/Validator/FailoverCluster/TooFewNodesForCluster.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 314 |
```smalltalk
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AutomatedLab.Validator.FailoverCluster
{
class ClusterOperatingSystem : LabValidator, IValidate
{
public ClusterOperatingSystem()
{
messageConta... | /content/code_sandbox/LabXml/Validator/FailoverCluster/ClusterOperatingSystem.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 347 |
```smalltalk
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AutomatedLab.Validator.FailoverCluster
{
class DuplicateClusterIp : LabValidator, IValidate
{
public DuplicateClusterIp()
{
messageContainer = R... | /content/code_sandbox/LabXml/Validator/FailoverCluster/DuplicateClusterIp.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 365 |
```smalltalk
using System.Collections.Generic;
using System.Linq;
namespace AutomatedLab
{
/// <summary>
/// This validator creates an error if a machine's name is longer than 15 characters.
/// </summary>
public class LabNameContainsIllegalCharacters : LabValidator, IValidate
{
public LabN... | /content/code_sandbox/LabXml/Validator/LabInformation/LabNameContainsIllegalCharacters.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 290 |
```smalltalk
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace AutomatedLab
{
/// <summary>
/// This validator makes sure the required OS Versions are used
/// </summary>
public class ScomMinOsVersion : LabValidator, IValidate
{
... | /content/code_sandbox/LabXml/Validator/SCOM/ScomMinOsVersion.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 230 |
```smalltalk
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace AutomatedLab
{
/// <summary>
/// This validator makes sure the required SQL Versions are present
/// Scom 2022: SQL 2017, SQL 2019, SQL 2022
/// Scom 2019: SQL 2016, SQL 2017,... | /content/code_sandbox/LabXml/Validator/SCOM/ScomCorrectSql.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 935 |
```smalltalk
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Xml;
namespace AutomatedLab
{
/// <summary>
/// This validator makes sure the required ISOs are present
/// </summary>
public class ScomIsosExist : LabValidator, IValid... | /content/code_sandbox/LabXml/Validator/SCOM/ScomIsosExist.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 287 |
```smalltalk
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Xml;
namespace AutomatedLab
{
public class PathValidator : XmlValidator, IValidate
{
public PathValidator()
{
messageContainer = RunValidation();
}
public override IEnum... | /content/code_sandbox/LabXml/Validator/Xml/PathValidator.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 259 |
```smalltalk
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Xml;
namespace AutomatedLab
{
/// <summary>
/// This validator makes sure the required ISOs are present
/// </summary>
public class OrchestratorIsosExist : LabValidator... | /content/code_sandbox/LabXml/Validator/Orchestrator/OrchestratorIsosExist.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 270 |
```smalltalk
using System.Collections.Generic;
using System.Linq;
namespace AutomatedLab
{
/// <summary>
/// Validator checks if domain members point to a domain DNS inside the lab
/// Domain Controllers point to themselves and to a second Domain Controller
/// </summary>
public class DomainMemberD... | /content/code_sandbox/LabXml/Validator/Network/DomainMemberDns.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 475 |
```smalltalk
using System.Collections.Generic;
using System.Linq;
namespace AutomatedLab
{
/// <summary>
/// New external switch has a name collision with an already exisitng private or internal one.
/// </summary>
public class DuplicateAddressAssigned : LabValidator, IValidate
{
public Dup... | /content/code_sandbox/LabXml/Validator/Network/DuplicateAddressAssigned.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 260 |
```smalltalk
using System.Collections.Generic;
using System.Linq;
namespace AutomatedLab
{
/// <summary>
/// New external switch has a name collision with an already exisitng private or internal one.
/// </summary>
public class NonExistingDnsServerAssigned : LabValidator, IValidate
{
public... | /content/code_sandbox/LabXml/Validator/Network/NonExistingDnsServerAssigned.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 335 |
```smalltalk
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Xml;
namespace AutomatedLab
{
/// <summary>
/// New external switch has a name collision with an already exisitng private or internal one.
/// </summary>
public class DuplicateAddres... | /content/code_sandbox/LabXml/Validator/Network/DuplicateAddressSpaceAssigned.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 251 |
```smalltalk
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AutomatedLab.Validator.Network.Azure_Network
{
public class AzureVnetAddressSpaceTooSmall : LabValidator, IValidate
{
public AzureVnetAddressSpaceTooSmall()
... | /content/code_sandbox/LabXml/Validator/Network/Azure Network/AzureVnetAddressSpaceTooSmall.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 307 |
```smalltalk
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Xml;
namespace AutomatedLab
{
/// <summary>
/// If DCs are installed on Azure there must be a DNS server configured on the connected Virtual Network Site.
/// </summary>
public class... | /content/code_sandbox/LabXml/Validator/Network/Azure Network/AzureVnetDnsServerRequiredForActiveDirectory.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 324 |
```smalltalk
using System.Collections.Generic;
using System.Linq;
namespace AutomatedLab
{
/// <summary>
/// If DCs are installed on Azure there must be a DNS server configured on the connected Virtual Network Site.
/// </summary>
public class AzureVnetDnsServerInvalid : LabValidator, IValidate
{
... | /content/code_sandbox/LabXml/Validator/Network/Azure Network/AzureVnetDnsServerInvalid.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 382 |
```smalltalk
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Xml;
namespace AutomatedLab
{
/// <summary>
/// Check if the an external switch connects to a WiFi adapter. This is not supported.
/// </summary>
public class ExternalSwitchConnectsW... | /content/code_sandbox/LabXml/Validator/Network/HyperV Network/ExternalSwitchConnectsWifi.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 324 |
```smalltalk
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Xml;
namespace AutomatedLab
{
/// <summary>
/// New external switch has a name collision with an already exisitng private or internal one.
/// </summary>
public class AzureVnetConnec... | /content/code_sandbox/LabXml/Validator/Network/Azure Network/AzureVnetConnectsToUnknownVnet.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 285 |
```smalltalk
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Xml;
namespace AutomatedLab
{
/// <summary>
/// DHCP is not supported on external switches.
/// </summary>
public class DuplicateAdapterAddressSpace : LabValidator, IValidate
{
... | /content/code_sandbox/LabXml/Validator/Network/HyperV Network/DuplicateAdapterAddressSpace.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 302 |
```smalltalk
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Xml;
namespace AutomatedLab
{
/// <summary>
/// Check if the specified network adapter for the external switches exists and generate an error if it does not.
/// </summary>
public cl... | /content/code_sandbox/LabXml/Validator/Network/HyperV Network/ExternalSwitchNetworkAdapterExists.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 296 |
```smalltalk
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Xml;
namespace AutomatedLab
{
/// <summary>
/// The routing role must be in a root domain or non domain joined.
/// </summary>
public class RoutingRoleMustBeInRootDomainy : LabValida... | /content/code_sandbox/LabXml/Validator/Network/HyperV Network/RoutingRoleMustBeInRootDomainy.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 241 |
```smalltalk
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Xml;
namespace AutomatedLab
{
/// <summary>
/// check if the new external switch should be bound to a network adapter that is bridged already.
/// </summary>
public class ExternalSwi... | /content/code_sandbox/LabXml/Validator/Network/HyperV Network/ExternalSwitchNetworkAdapterBridgedAlready.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 346 |
```smalltalk
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Xml;
namespace AutomatedLab
{
/// <summary>
/// DHCP is not supported on external switches.
/// </summary>
public class ExternalSwitchNoDhcp : LabValidator, IValidate
{
p... | /content/code_sandbox/LabXml/Validator/Network/HyperV Network/ExternalSwitchNoDhcp.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 231 |
```smalltalk
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Xml;
namespace AutomatedLab
{
/// <summary>
/// New external switch has a name collision with an already exisitng private or internal one.
/// </summary>
public class ExternalSwitchN... | /content/code_sandbox/LabXml/Validator/Network/HyperV Network/ExternalSwitchNameCollision.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 352 |
```smalltalk
using System;
using System.Collections;
using System.Linq;
using System.Net;
namespace AutomatedLab
{
[Serializable]
public class AzureSubnet
{
private string name;
private IPNetwork addressSpace;
public string Name
{
get { return name; }
... | /content/code_sandbox/LabXml/Network/AzureSubnet.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 213 |
```smalltalk
using System;
using System.Collections.Generic;
using System.Net;
using System.Xml.Serialization;
namespace AutomatedLab
{
[Serializable]
public class VirtualNetwork
{
private string name;
private IPNetwork addressSpace;
private SwitchType switchType;
private st... | /content/code_sandbox/LabXml/Network/VirtualNetwork.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 845 |
```smalltalk
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
namespace AutomatedLab
{
public static class SubnetHelper
{
public static readonly IPAddress ClassA = "255.0.0.0";
public static readonly IPAddress ClassB = "255.255.0.0";
public static rea... | /content/code_sandbox/LabXml/Network/IPAddressExtensions.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 390 |
```smalltalk
using System.Collections.Generic;
using System.Collections;
using System.Numerics;
using System.Net.Sockets;
using System;
/// <summary>
/// Code taken from path_to_url on 2015 10 26
/// </summary>
namespace AutomatedLab
{
public class IPNetworkCollection : IEnumerable<IPNetwork>, IEnumerator<IPNetwo... | /content/code_sandbox/LabXml/Network/IPNetworkCollection.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 701 |
```smalltalk
using System.Collections.Generic;
using System.Collections;
using System.Numerics;
using System;
using System.Net.Sockets;
/// <summary>
/// Code taken from path_to_url on 2015 10 26
/// </summary>
namespace AutomatedLab
{
public class IPAddressCollection : IEnumerable<IPAddress>, IEnumerator<IPAddre... | /content/code_sandbox/LabXml/Network/IPAddressCollection.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 427 |
```smalltalk
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace AutomatedLab
{
public partial class IPNetwork
{
private IPAddress ipAddress;
... | /content/code_sandbox/LabXml/Network/IPNetwork Class/IPNetwork2.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 258 |
```smalltalk
/// <summary>
/// Code taken from path_to_url on 2015 10 26
/// </summary>
namespace AutomatedLab
{
using System;
using System.Collections.Generic;
using System.Numerics;
using System.Text;
/// <summary>
/// Extension methods to convert <see cref="System.Numerics.BigInteger"/>
... | /content/code_sandbox/LabXml/Network/IPNetwork Class/BigIntegerExt.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,222 |
```smalltalk
using System;
using System.Xml.Serialization;
namespace AutomatedLab
{
public partial class IPAddress
{
//private int ipv4Prefix;
//public int Ipv4Prefix
//{
// get { return ipv4Prefix; }
// set { ipv4Prefix = value; }
//}
//public IP... | /content/code_sandbox/LabXml/Network/IPAddress Class/IPAddress Subnet.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 513 |
```smalltalk
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AutomatedLab
{
public partial class IPAddress
{
//public IPAddress GetBroadcastAddress()
//{
// byte[] ipAdressBytes = GetAddressBytes();
... | /content/code_sandbox/LabXml/Network/IPAddress Class/IPAddress Conversion.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 1,005 |
```smalltalk
using System;
using System.Linq;
using System.Xml.Serialization;
namespace AutomatedLab
{
[Serializable]
public partial class IPAddress
{
private System.Net.IPAddress ip;
public static IPAddress Any { get { return System.Net.IPAddress.Any; } }
public static IPAddress B... | /content/code_sandbox/LabXml/Network/IPAddress Class/IPAddress Defaults.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 944 |
```smalltalk
namespace AutomatedLab
{
public partial class IPAddress
{
internal bool isAutoGenerated;
public static IPAddress Null
{
get { return "0.0.0.0"; }
}
public bool IsAutoGenerated
{
get { return isAutoGenerated; }
}
}... | /content/code_sandbox/LabXml/Network/IPAddress Class/IPAddress AddOns.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 68 |
```smalltalk
using System.Collections.Generic;
using System.Net.Sockets;
using System.Text.RegularExpressions;
using System.IO;
using System.Numerics;
using System;
using System.Linq;
/// <summary>
/// Code taken from path_to_url on 2015 10 26
/// </summary>
namespace AutomatedLab
{
/// <summary>
/// IP Netwo... | /content/code_sandbox/LabXml/Network/IPNetwork Class/IPNetwork.cs | smalltalk | 2016-08-23T00:08:15 | 2024-08-16T12:01:05 | AutomatedLab | AutomatedLab/AutomatedLab | 1,988 | 13,995 |
```unknown
# You don't need to fill in these values for Fastlane to run.
#
# However, if a lane requires some of these environment values and they are not set here, it will fail.
GITHUB_TOKEN=
BUILDKITE_TOKEN=
MATCH_S3_ACCESS_KEY=
MATCH_S3_SECRET_ACCESS_KEY=
APP_STORE_CONNECT_API_KEY_KEY_ID=
APP_STORE_CONNECT_API_KEY... | /content/code_sandbox/fastlane/example.env | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 104 |
```unknown
15.4
``` | /content/code_sandbox/.xcode-version | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 5 |
```unknown
INT_EXPORT_TEAM_ID=<Team id for internal distribution>
EXT_EXPORT_TEAM_ID=<Team id for public distribution>
APPCENTER_PUBLIC_ID=<AppCenter Public Id>
FASTLANE_ITC_TEAM_ID=<Team ID for AppStore Connect>
SENTRY_ORG_SLUG=<Org Slug for Sentry>
SENTRY_PROJECT_SLUG=<Project Slug for Sentry>
``` | /content/code_sandbox/fastlane/env/project.env-example | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 72 |
```unknown
# frozen_string_literal: true
require 'English'
require 'fileutils'
require 'tmpdir'
require 'rake/clean'
require 'yaml'
require 'digest'
# Constants
SWIFTLINT_VERSION = '0.41.0'
PROJECT_DIR = __dir__
XCODE_WORKSPACE = 'Simplenote.xcworkspace'
XCODE_SCHEME = 'Simplenote'
XCODE_CONFIGURATION = 'Debug'
LOCAL... | /content/code_sandbox/Rakefile | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,663 |
```css
*{
color: #ffffff;
font-family: "Source Sans Pro";
font-style: normal;
font-weight: normal ;
line-height: 105px;
text-align: center;
}
``` | /content/code_sandbox/fastlane/appstoreres/assets/styles/style.css | css | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 45 |
```unknown
3.2.2
``` | /content/code_sandbox/.ruby-version | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 7 |
```unknown
# frozen_string_literal: true
github.dismiss_out_of_range_messages
# `files: []` forces rubocop to scan all files, not just the ones modified in the PR
rubocop.lint(files: [], force_exclusion: true, inline_comment: true, fail_on_inline_comment: true, include_cop_names: true)
manifest_pr_checker.check_all_... | /content/code_sandbox/Dangerfile | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 339 |
```unknown
{
"project_name": "simplenote-ios",
"branch": "trunk",
"pinned_hash": "589c18df9a009a0ed20fd845de0bc65069dfb4bf",
"files_to_copy": [
{
"file": "iOS/simplenote/SPCredentials.swift",
"destination": "~/.configure/simplenote-ios/secrets/SPCredentials.swift",
"encrypt": true
},
... | /content/code_sandbox/.configure | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 248 |
```json
PODS:
- AppCenter (4.4.3):
- AppCenter/Analytics (= 4.4.3)
- AppCenter/Crashes (= 4.4.3)
- AppCenter/Analytics (4.4.3):
- AppCenter/Core
- AppCenter/Core (4.4.3)
- AppCenter/Crashes (4.4.3):
- AppCenter/Core
- AppCenter/Distribute (4.4.3):
- AppCenter/Core
- Gridicons (0.19)
- ... | /content/code_sandbox/Podfile.lock | json | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 684 |
```yaml
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-02-20 18:18:24 UTC using RuboCop version 1.60.2.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation... | /content/code_sandbox/.rubocop_todo.yml | yaml | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 355 |
```ruby
# frozen_string_literal: true
require 'dotenv'
# TODO: It would be nice to decouple this from Fastlane.
# To give a good UX in the current use case, however, it's best to access the Fastlane UI methods directly.
require 'fastlane'
# Manages loading of environment variables from a .env and accessing them in a ... | /content/code_sandbox/fastlane/lib/env_manager.rb | ruby | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 605 |
```yaml
inherit_from: .rubocop_todo.yml
AllCops:
Exclude:
- DerivedData/**/*
- Pods/**/*
- vendor/**/*
NewCops: enable
SuggestExtensions:
rubocop-rake: false
Metrics/MethodLength:
Max: 30
Layout/LineLength:
Max: 180
Metrics/BlockLength:
Exclude: &xfiles
- fastlane/Fastfile
- fast... | /content/code_sandbox/.rubocop.yml | yaml | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 158 |
```unknown
GHHELPER_ACCESS=<GitHub access token>
APPCENTER_API_TOKEN=<AppCenter Api Token>
SENTRY_AUTH_TOKEN=<Sentry Auth Token>
``` | /content/code_sandbox/fastlane/env/user.env-example | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 31 |
```yaml
swiftlint_version: 0.54.0
# Project configuration
excluded:
- Pods
- fastlane
- vendor
# Rules
only_rules:
# Colons should be next to the identifier when specifying a type.
- colon
# There should be no space before and one after any comma.
- comma
# if,for,while,do statements shouldn't wrap ... | /content/code_sandbox/.swiftlint.yml | yaml | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 597 |
```unknown
# frozen_string_literal: true
source 'path_to_url
raise 'Please run CocoaPods via `bundle exec`' unless %w[BUNDLE_BIN_PATH BUNDLE_GEMFILE].any? { |k| ENV.key?(k) }
inhibit_all_warnings!
use_frameworks!
platform :ios, '13.0'
workspace 'Simplenote.xcworkspace'
# Main
#
abstract_target 'Automattic' do
# ... | /content/code_sandbox/Podfile | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 447 |
```ruby
# frozen_string_literal: true
APP_STORE_CONNECT_OUTPUT_NAME = 'Simplenote-AppStore'
XCARCHIVE_PATH = File.join(OUTPUT_DIRECTORY_PATH, "#{APP_STORE_CONNECT_OUTPUT_NAME}.xcarchive")
XCARCHIVE_ZIP_PATH = File.join(OUTPUT_DIRECTORY_PATH, "#{APP_STORE_CONNECT_OUTPUT_NAME}.xcarchive.zip")
lane :build_for_app_store_... | /content/code_sandbox/fastlane/lanes/build.rb | ruby | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 711 |
```ruby
# frozen_string_literal: true
# List of locales used for the app strings (GlotPress code => `*.lproj` folder name`)
#
# TODO: Replace with `LocaleHelper` once provided by release toolkit (path_to_url
GLOTPRESS_TO_LPROJ_APP_LOCALE_CODES = {
'ar' => 'ar', # Arabic
'cy' => 'cy', # Wels... | /content/code_sandbox/fastlane/lanes/localization.rb | ruby | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 2,000 |
```ruby
# frozen_string_literal: true
# Lanes related to the Release Process (Code Freeze, Betas, Final Build, App Store Submission)
platform :ios do
lane :code_freeze do |skip_confirm: false|
ensure_git_status_clean
Fastlane::Helper::GitHelper.checkout_and_pull(DEFAULT_BRANCH)
check_pods_references
... | /content/code_sandbox/fastlane/lanes/release.rb | ruby | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,134 |
```unknown
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:Simplenote.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>
``` | /content/code_sandbox/Simplenote.xcworkspace/contents.xcworkspacedata | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 76 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
``` | /content/code_sandbox/Simplenote.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist | xml | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 72 |
```unknown
# frozen_string_literal: true
default_platform(:ios)
fastlane_require 'xcodeproj'
fastlane_require 'dotenv'
fastlane_require 'open-uri'
fastlane_require 'buildkit'
UI.user_error!('Please run fastlane via `bundle exec`') unless FastlaneCore::Helper.bundler?
PROJECT_ROOT_FOLDER = File.dirname(File.expand_pa... | /content/code_sandbox/fastlane/Fastfile | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 8,873 |
```swift
/// Simplenote credentials for screenshots generation via UI tests
///
struct ScreenshotsCredentials {
static let testUserEmail = "test@example.com"
static let testUserPassword = "password"
}
``` | /content/code_sandbox/SimplenoteScreenshots/ScreenshotsCredentials-demo.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 42 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key... | /content/code_sandbox/SimplenoteScreenshots/Info.plist | xml | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 219 |
```unknown
{
"originHash" : your_sha256_hash,
"pins" : [
{
"identity" : "automattic-tracks-ios",
"kind" : "remoteSourceControl",
"location" : "path_to_url",
"state" : {
"revision" : "4d7d7138a9f2b36c3fd4618aa488ed9e8de2f726",
"version" : "3.5.0"
}
},
{
... | /content/code_sandbox/Simplenote.xcworkspace/xcshareddata/swiftpm/Package.resolved | unknown | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 958 |
```swift
import UITestsFoundation
import XCTest
import XCUITestHelpers
class SimplenoteScreenshots: XCTestCase {
override func setUp() {
continueAfterFailure = false
UIPasteboard.general.strings = []
}
func testScreenshots() throws {
let app = XCUIApplication()
setupSnapsh... | /content/code_sandbox/SimplenoteScreenshots/SimplenoteScreenshots.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 2,160 |
```swift
//
// SnapshotHelper.swift
// Example
//
// Created by Felix Krause on 10/8/15.
//
// -----------------------------------------------------
// IMPORTANT: When modifying this file, make sure to
// increment the version number at the very
// bottom of the file to notify users about
// ... | /content/code_sandbox/SimplenoteScreenshots/SnapshotHelper.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 2,335 |
```swift
import XCTest
@testable import Simplenote
// MARK: - NSString Simplenote Tests
//
class NSStringSimplenoteTests: XCTestCase {
/// Verifies that `byEncodingAsTagHash` effectively escapes all of the non alphanumeric characters
///
func your_sha256_hashnTheReceiver() {
let sample = "12345678... | /content/code_sandbox/SimplenoteTests/NSStringSimplenoteTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 668 |
```swift
import XCTest
@testable import Simplenote
// MARK: - InterlinkResultsController Tests
//
class InterlinkResultsControllerTests: XCTestCase {
/// InMemory Storage!
///
private let storage = MockupStorageManager()
/// InterlinkResultsController
///
private var resultsController: Interl... | /content/code_sandbox/SimplenoteTests/InterlinkResultsControllerTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 865 |
```swift
import XCTest
@testable import Simplenote
// MARK: - NoteContentPreviewTests Tests
//
class NoteContentPreviewTests: XCTestCase {
/// InMemory Storage!
///
private let storage = MockupStorageManager()
/// Verifies that Markdown Title Markers are stripped from the title
///
func testTr... | /content/code_sandbox/SimplenoteTests/NoteContentPreviewTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 216 |
```swift
import XCTest
@testable import Simplenote
// MARK: - UIImage+Simplenote Unit Tests
//
class UIImageSimplenoteTests: XCTestCase {
/// Verify every single UIColorName in existance yields a valid UIColor instancce
///
func testEverySingleUIImageNameEffectivelyYieldsSomeUIImageInstance() {
fo... | /content/code_sandbox/SimplenoteTests/UIImageSimplenoteTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 93 |
```swift
import XCTest
@testable import Simplenote
// MARK: - NoteContentHelperTests Tests
//
class NoteContentHelperTests: XCTestCase {
/// Empty title and body when content is nil
///
func testEmptyTitleAndBodyRangeWhenContentIsNil() {
let content: String? = nil
let structure = NoteConte... | /content/code_sandbox/SimplenoteTests/NoteContentHelperTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 621 |
```swift
import XCTest
@testable import Simplenote
class PublishControllerTests: XCTestCase {
private let publishController = PublishController()
private let storage = MockupStorageManager()
private var logger = PublishLogger()
private var mockAppDelegate: MockAppDelegate?
override func setUpWithE... | /content/code_sandbox/SimplenoteTests/PublishControllerTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,167 |
```swift
import Foundation
@testable import Simplenote
// MARK: - MockApplication
//
class MockApplication: ApplicationStateProvider {
var applicationState: UIApplication.State = .active
}
``` | /content/code_sandbox/SimplenoteTests/MockApplication.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 38 |
```swift
import Foundation
@testable import Simplenote
// MARK: - MockupStorage Sample Entity Insertion Methods
//
extension MockupStorageManager {
/// Inserts a new (Sample) Note into the receiver's Main MOC
///
@discardableResult
func insertSampleNote(contents: String = "", simperiumKey: String = UU... | /content/code_sandbox/SimplenoteTests/MockupStorage+Sample.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 267 |
```swift
import XCTest
@testable import Simplenote
// MARK: - Note+Extension Tests
//
class NoteLinkTests: XCTestCase {
/// InMemory Storage!
///
private let storage = MockupStorageManager()
func testNoteInterlinkReferenceCount() {
let (referencedNote, referencing) = insertSampleEntitiesWithI... | /content/code_sandbox/SimplenoteTests/NoteLinkTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 361 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key... | /content/code_sandbox/SimplenoteTests/Info.plist | xml | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 215 |
```swift
import XCTest
@testable import Simplenote
// MARK: - AuthenticationValidator Tests
//
class AuthenticationValidatorTests: XCTestCase {
/// Testing Validator
///
let validator = AuthenticationValidator()
/// Verifies that `performUsernameValidation` returns `true` when the input string is val... | /content/code_sandbox/SimplenoteTests/AuthenticationValidatorTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 457 |
```swift
import Foundation
import XCTest
@testable import Simplenote
// MARK: - NSPredicate+Email Unit Tests
//
class NSPredicateEmailTests: XCTestCase {
/// Verifies that `predicateForEmailValidation` evaluates false whenever the input string is empty
///
func testPredicateForEmailValidationEvaluatesFals... | /content/code_sandbox/SimplenoteTests/NSPredicateEmailTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 474 |
```swift
import XCTest
@testable import Simplenote
// MARK: - String Truncation Tests
//
class StringSimplenoteTests: XCTestCase {
/// Verifies that `truncateWords(upTo:) ` returns the N first characters of the receiver, whenever there are no words in the specified range.
///
func testTruncateWordsReturns... | /content/code_sandbox/SimplenoteTests/StringSimplenoteTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 985 |
```swift
@testable import Simplenote
class MockTimerFactory: TimerFactory {
var timer: MockTimer?
override func scheduledTimer(with timeInterval: TimeInterval, completion: @escaping () -> Void) -> Timer {
let timer = MockTimer()
self.timer = timer
timer.completion = completion
... | /content/code_sandbox/SimplenoteTests/MockTimerFactory.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 137 |
```swift
import XCTest
@testable import Simplenote
// MARK: - CGRect Tests
//
class CGRectSimplenoteTests: XCTestCase {
/// Verifies that `splity(by:)` returns a zero height lower slice whenever the anchor has Zero location and Height
///
func your_sha256_hashht() {
let input = CGRect(x: .zero, y:... | /content/code_sandbox/SimplenoteTests/CGRectSimplenoteTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 341 |
```objective-c
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//
#import "Simplenote-Bridging-Header.h"
``` | /content/code_sandbox/SimplenoteTests/SimplenoteTests-Bridging-Header.h | objective-c | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 37 |
```swift
import XCTest
import SimplenoteFoundation
@testable import Simplenote
// MARK: - NotesListControllerTests
//
class NotesListControllerTests: XCTestCase {
/// InMemory Storage!
///
private let storage = MockupStorageManager()
/// List Controller
///
private var noteListController: Not... | /content/code_sandbox/SimplenoteTests/NotesListControllerTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 4,101 |
```swift
import XCTest
@testable import Simplenote
// MARK: - NoteScrollPositionCacheTests
//
class NoteScrollPositionCacheTests: XCTestCase {
private lazy var storage = MockFileStorage<NoteScrollPositionCache.ScrollCache>(fileURL: URL(fileURLWithPath: ""))
private lazy var cache = NoteScrollPositionCache(stor... | /content/code_sandbox/SimplenoteTests/NoteScrollPositionCacheTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 409 |
```swift
import Foundation
import SimplenoteEndpoints
@testable import Simplenote
extension Remote {
static func randomResult() -> Result<Data?, RemoteError> {
if Bool.random() {
return .success(nil)
}
return .failure(RemoteError(statusCode: 0, response: nil, networkError: nil)... | /content/code_sandbox/SimplenoteTests/RemoteResult+TestHelpers.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 73 |
```swift
import XCTest
@testable import Simplenote
// MARK: - EmailVerificationTests
//
class EmailVerificationTests: XCTestCase {
func testEmailVerificationCorrectlyParsesToken() {
let payload = [
"token": #"{"username": "1234"}"#
]
let parsed = EmailVerification(payload: payl... | /content/code_sandbox/SimplenoteTests/EmailVerificationTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 264 |
```swift
import Foundation
import XCTest
@testable import Simplenote
// MARK: - Options Unit Tests
//
class OptionsTests: XCTestCase {
private let suiteName = OptionsTests.classNameWithoutNamespaces.debugDescription
private lazy var defaults = UserDefaults(suiteName: suiteName)!
override func setUp() {
... | /content/code_sandbox/SimplenoteTests/OptionsTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 290 |
```swift
import Foundation
/// Unit Tests Constants
///
struct Constants {
/// Default Expectation Timeout
///
static let expectationTimeout = TimeInterval(10)
}
``` | /content/code_sandbox/SimplenoteTests/Constants.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 33 |
```swift
import Foundation
// MARK: - UserDefaults Extension Methods
//
extension UserDefaults {
/// Resets all of the receiver's values
///
func reset() {
for (key, _) in dictionaryRepresentation() {
removeObject(forKey: key)
}
synchronize()
}
}
``` | /content/code_sandbox/SimplenoteTests/UserDefaults+Tests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 58 |
```swift
import XCTest
@testable import Simplenote
// MARK: - NSMutableAttributedString Styling Tests
//
class NSMutableAttributedStringStylingTests: XCTestCase {
/// Verifies that `NSRegularExpression.regexForChecklists` will not match checklists that are in the middle of a string
///
func your_sha256_ha... | /content/code_sandbox/SimplenoteTests/NSMutableAttributedStringStylingTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,313 |
```swift
import Foundation
import XCTest
@testable import Simplenote
// MARK: - NSString+Condensing Unit Tests
//
class NSStringCondensingTests: XCTestCase {
/// Verifies that `replacingNewlinesWithSpaces` returns an empty string, whenever the receiver is an empty string
///
func testReplaceNewlinesWithSp... | /content/code_sandbox/SimplenoteTests/NSStringCondensingTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 429 |
```swift
import XCTest
@testable import Simplenote
class UIColorSimplenoteTests: XCTestCase {
func testUIColorFromHexStringReturnsCorrectColor() {
//spBlue20 in RGB is r: 132 g: 164 b: 240
let spBlue20 = UIColor(hexString: "84a4f0")
//gray5 in RGB is r: 220 g: 220 b: 222
let gray5 =... | /content/code_sandbox/SimplenoteTests/UIColorSimplenoteTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 392 |
```swift
import Foundation
import CoreData
@testable import Simplenote
/// MockupStorageManager: InMemory CoreData Stack.
///
class MockupStorageManager {
/// DataModel Name
///
private let name = "Simplenote"
/// Returns the Storage associated with the View Thread.
///
var viewContext: NSMan... | /content/code_sandbox/SimplenoteTests/MockupStorage.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 639 |
```swift
import XCTest
@testable import Simplenote
// MARK: - String Truncation Tests
//
class NoteBodyExcerptTests: XCTestCase {
/// InMemory Storage!
///
private let storage = MockupStorageManager()
private let noteBody = "Download the latest version of Simplenote and youll be able to insert links ... | /content/code_sandbox/SimplenoteTests/NoteBodyExcerptTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 654 |
```swift
import XCTest
@testable import Simplenote
class NoticeControllerTests: XCTestCase {
private lazy var presenter = MockNoticePresenter()
private lazy var timerFactory = MockTimerFactory()
private lazy var controller = NoticeController(presenter: presenter, timerFactory: timerFactory)
func testS... | /content/code_sandbox/SimplenoteTests/NoticeControllerTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 1,123 |
```swift
import XCTest
@testable import Simplenote
// MARK: - PinLockRemoveControllerTests
//
class PinLockRemoveControllerTests: XCTestCase {
private lazy var delegate = MockPinLockRemoveControllerDelegate()
private lazy var pinLockManager = MockPinLockManager()
private lazy var controller = PinLockRemove... | /content/code_sandbox/SimplenoteTests/PinLock/PinLockRemoveControllerTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 478 |
```swift
import XCTest
@testable import Simplenote
// MARK: - String Content Slice Tests
//
class StringContentSliceTests: XCTestCase {
private let sampleExcerpt = "Download the latest version of Simplenote and youll be able to insert links from one note into another note to easily organize and cross-reference inf... | /content/code_sandbox/SimplenoteTests/StringContentSliceTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 907 |
```swift
import XCTest
@testable import Simplenote
// MARK: - PinLockBaseControllerTests
//
class PinLockBaseControllerTests: XCTestCase {
private let controller = PinLockBaseController()
private let configurationObserver = PinLockControllerConfigurationObserver()
func your_sha256_hashon() {
// Gi... | /content/code_sandbox/SimplenoteTests/PinLock/PinLockBaseControllerTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 202 |
```swift
import XCTest
@testable import Simplenote
// MARK: - PinLockSetupControllerTests
//
class PinLockSetupControllerTests: XCTestCase {
private lazy var delegate = MockPinLockSetupControllerDelegate()
private lazy var pinLockManager = MockPinLockManager()
private lazy var controller = PinLockSetupCont... | /content/code_sandbox/SimplenoteTests/PinLock/PinLockSetupControllerTests.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 651 |
```swift
import Foundation
@testable import Simplenote
// MARK: - PinLockControllerConfigurationObserver
//
class PinLockControllerConfigurationObserver {
var lastConfiguration: PinLockControllerConfiguration? {
configurations.last
}
var lastAnimation: UIView.ReloadAnimation? {
animations.... | /content/code_sandbox/SimplenoteTests/PinLock/Helpers/PinLockControllerConfigurationObserver.swift | swift | 2016-08-11T15:55:22 | 2024-08-14T02:42:22 | simplenote-ios | Automattic/simplenote-ios | 2,038 | 161 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.