hexsha
stringlengths
40
40
size
int64
5
1.05M
ext
stringclasses
98 values
lang
stringclasses
21 values
max_stars_repo_path
stringlengths
3
945
max_stars_repo_name
stringlengths
4
118
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
945
max_issues_repo_name
stringlengths
4
118
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
134k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
945
max_forks_repo_name
stringlengths
4
135
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
1.05M
avg_line_length
float64
1
1.03M
max_line_length
int64
2
1.03M
alphanum_fraction
float64
0
1
bc5663b4f60930546ade0e7f8b8b80717d27cd7a
477
kt
Kotlin
app/src/main/kotlin/com/pnuema/bible/android/database/ChapterCountOfflineDao.kt
barnhill/Bible
ca2ddcf6d29e78df59a835b4076605a919cdf957
[ "Apache-2.0" ]
10
2019-03-29T19:57:56.000Z
2021-09-10T18:06:27.000Z
app/src/main/kotlin/com/pnuema/bible/android/database/ChapterCountOfflineDao.kt
barnhill/SimpleBible
6e7f7f2c0b75952afbdd3fb53f90c448b1f0147b
[ "Apache-2.0" ]
2
2019-05-04T06:29:07.000Z
2021-12-09T02:19:18.000Z
app/src/main/kotlin/com/pnuema/bible/android/database/ChapterCountOfflineDao.kt
barnhill/SimpleBible
6e7f7f2c0b75952afbdd3fb53f90c448b1f0147b
[ "Apache-2.0" ]
5
2018-10-20T17:04:54.000Z
2021-09-15T12:40:36.000Z
package com.pnuema.bible.android.database import androidx.room.* import com.pnuema.bible.android.data.firefly.ChapterCount @Dao interface ChapterCountOfflineDao { @Transaction @Query("select * from offlineChapterCount where version = :version AND book_id = :bookId") suspend fun getChapterCount(version: String, bookId: Int): ChapterCount? @Insert(onConflict = OnConflictStrategy.REPLACE) suspend fun putChapterCount(chapterCount: ChapterCountOffline) }
31.8
94
0.784067
fbaa7be63a936e96db0ee262b95e0fd159e9a698
4,751
c
C
hw/assign0/myio.c
Beastmaster23/Computer_OS
a104fe793046593483210ec71ef50c4525a80fec
[ "Unlicense" ]
null
null
null
hw/assign0/myio.c
Beastmaster23/Computer_OS
a104fe793046593483210ec71ef50c4525a80fec
[ "Unlicense" ]
null
null
null
hw/assign0/myio.c
Beastmaster23/Computer_OS
a104fe793046593483210ec71ef50c4525a80fec
[ "Unlicense" ]
null
null
null
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <stdbool.h> #include <ctype.h> #include "myio.h" /* * Function: convertCharToInteger * Usage: integer = convertCharToInteger(character); * ------------------------------------------------- * convertCharToInteger converts Ascii code to Integer. */ static int convertCharToInteger(char c) { switch (c) { case 48: return 0; break; case 49: return 1; break; case 50: return 2; break; case 51: return 3; break; case 52: return 4; break; case 53: return 5; break; case 54: return 6; break; case 55: return 7; break; case 56: return 8; break; case 57: return 9; break; } return -1; } /* * Function: isInteger * Usage: check = isInteger(integerString); * ------------------------------------------------- * isInteger Checks if a string is an integer. */ static bool isInteger(char *str) { bool check = false; int decimalIndex = 0, decimalCount = 0; while (str[decimalIndex] != '\0') { if (isdigit(str[decimalIndex]) == 0) { return false; } check = true; decimalIndex++; } return check; } /* * Function: getDecimalIndex * Usage: index = getDecimalIndex(decimalString); * ------------------------------------------------- * getDecimalIndex searches for the decimal point. Returns the index of the decimal point. */ static int getDecimalIndex(char *str) { int decimalIndex = 0, length=strlen(str); while (str[decimalIndex] != '\0' && str[decimalIndex] != '.') { decimalIndex++; } if (decimalIndex == 0 || decimalIndex == length) { decimalIndex = -1; } return decimalIndex; } /* * Function: isDouble * Usage: check = isDouble(doubleString); * ------------------------------------------------- * isDouble Checks if a string is an double. */ static bool isDouble(char *str) { bool check = false; int decimalIndex = 0, decimalCount = 0; while (str[decimalIndex] != '\0') { if (str[decimalIndex] == '.') decimalCount++; if (isdigit(str[decimalIndex]) == 0 && str[decimalIndex] != '.') { if (decimalCount > 1) return false; return false; } check = true; decimalIndex++; } return check; } int ReadInteger(void) { int num = 0, i = 0, length, sign = 1; char *line = ReadLine(); while (isInteger(line) == false) { free(line); fprintf(stderr, "Please Have a valid Integer.\n"); line = ReadLine(); } length = strlen(line); if (line[i] == '-') { i++; sign = -1; } else if (line[i] == '+') { i++; } while (line[i] != '\0') { num += convertCharToInteger(line[i]) * pow(10, length - 1 - i); i++; } free(line); return num * sign; } double ReadDouble(void) { int i = 0, length, sign = 1, numIndex = 0, extraChar = 0, decimalIndex = 0; double num = 0; bool decimal = false; char *line = ReadLine(); while (isDouble(line) == false) { free(line); fprintf(stderr, "Please Have a valid Double.\n"); line = ReadLine(); } length = strlen(line); if (line[i] == '-') { i++; sign = -1; extraChar++; } else if (line[i] == '+') { i++; extraChar++; } decimalIndex = getDecimalIndex(line); if (decimalIndex == -1) decimalIndex = length; numIndex = decimalIndex - 1; while (line[i] != '\0') { if (line[i] == '.') { decimal = true; i++; break; } num += convertCharToInteger(line[i]) * pow(10, numIndex - i); i++; } while (decimal == true && line[i] != '\0') { num += convertCharToInteger(line[i]) * pow(10, -(i - decimalIndex)); i++; } free(line); return num * sign; } char *ReadLineFile(FILE *infile){ int bufferSize = 1; char *buffer = (char *)malloc(sizeof(char) * bufferSize); buffer[bufferSize-1]= '\0'; char c; while ((c = fgetc(infile)) != EOF && c != '\n') { buffer[bufferSize-1] = c; bufferSize++; buffer = (char *)realloc(buffer, bufferSize); buffer[bufferSize-1]= '\0'; } if (c == EOF) { free(buffer); return NULL; } return buffer; } char *ReadLine(void) { return ReadLineFile(stdin); }
20.478448
90
0.488739
ad4692b121bd56347736f74abb49e9ba52459036
27,876
psm1
PowerShell
lib/puppet_x/dsc_resources/SharePointDsc/DSCResources/MSFT_SPWebAppAuthentication/MSFT_SPWebAppAuthentication.psm1
webalexeu/puppetlabs-dsc
8b5cfff9f273033334ed5a68e25eb7fea0015595
[ "Apache-2.0" ]
64
2015-05-27T19:48:01.000Z
2020-11-11T22:23:31.000Z
lib/puppet_x/dsc_resources/SharePointDsc/DSCResources/MSFT_SPWebAppAuthentication/MSFT_SPWebAppAuthentication.psm1
webalexeu/puppetlabs-dsc
8b5cfff9f273033334ed5a68e25eb7fea0015595
[ "Apache-2.0" ]
290
2015-05-07T15:37:49.000Z
2022-03-25T15:22:45.000Z
lib/puppet_x/dsc_resources/SharePointDsc/DSCResources/MSFT_SPWebAppAuthentication/MSFT_SPWebAppAuthentication.psm1
webalexeu/puppetlabs-dsc
8b5cfff9f273033334ed5a68e25eb7fea0015595
[ "Apache-2.0" ]
112
2015-05-13T18:11:48.000Z
2021-03-05T11:40:55.000Z
function Get-TargetResource { [CmdletBinding()] [OutputType([System.Collections.Hashtable])] param ( [Parameter(Mandatory = $true)] [System.String] $WebAppUrl, [Parameter()] [Microsoft.Management.Infrastructure.CimInstance[]] $Default, [Parameter()] [Microsoft.Management.Infrastructure.CimInstance[]] $Intranet, [Parameter()] [Microsoft.Management.Infrastructure.CimInstance[]] $Internet, [Parameter()] [Microsoft.Management.Infrastructure.CimInstance[]] $Extranet, [Parameter()] [Microsoft.Management.Infrastructure.CimInstance[]] $Custom, [Parameter()] [System.Management.Automation.PSCredential] $InstallAccount ) Write-Verbose -Message "Getting web application authentication for '$WebAppUrl'" $nullreturn = @{ WebAppUrl = $WebAppUrl Default = $null Intranet = $null Internet = $null Extranet = $null Custom = $null } if ($PSBoundParameters.ContainsKey("Default") -eq $false -and ` $PSBoundParameters.ContainsKey("Intranet") -eq $false -and ` $PSBoundParameters.ContainsKey("Internet") -eq $false -and ` $PSBoundParameters.ContainsKey("Extranet") -eq $false -and ` $PSBoundParameters.ContainsKey("Custom") -eq $false) { Write-Verbose -Message "You have to specify at least one zone." return $nullreturn } if ($PSBoundParameters.ContainsKey("Default")) { $result = Test-Parameter -Zone $Default if ($result -eq $false) { return $nullreturn } } if ($PSBoundParameters.ContainsKey("Intranet")) { $result = Test-Parameter -Zone $Intranet if ($result -eq $false) { return $nullreturn } } if ($PSBoundParameters.ContainsKey("Internet")) { $result = Test-Parameter -Zone $Internet if ($result -eq $false) { return $nullreturn } } if ($PSBoundParameters.ContainsKey("Extranet")) { $result = Test-Parameter -Zone $Extranet if ($result -eq $false) { return $nullreturn } } if ($PSBoundParameters.ContainsKey("Custom")) { $result = Test-Parameter -Zone $Custom if ($result -eq $false) { return $nullreturn } } $result = Invoke-SPDSCCommand -Credential $InstallAccount ` -Arguments $PSBoundParameters ` -ScriptBlock { $params = $args[0] $wa = Get-SPWebApplication -Identity $params.WebAppUrl -ErrorAction SilentlyContinue if ($null -eq $wa) { return @{ WebAppUrl = $params.WebAppUrl Default = $null Intranet = $null Internet = $null Extranet = $null Custom = $null } } $zones = $wa.IisSettings.Keys $default = @() $intranet = @() $internet = @() $extranet = @() $custom = @() foreach ($zone in $zones) { $authProviders = Get-SPAuthenticationProvider -WebApplication $params.WebAppUrl -Zone $zone if ($null -eq $authProviders) { $localAuthMode = "Classic" $authenticationProvider = $null $roleProvider = $null $membershipProvider = $null $provider = @{ AuthenticationMethod = $localAuthMode AuthenticationProvider = $authenticationProvider MembershipProvider = $membershipProvider RoleProvider = $roleProvider } switch ($zone) { "Default" { $default += $provider } "Intranet" { $intranet += $provider } "Internet" { $internet += $provider } "Extranet" { $extranet += $provider } "Custom" { $custom += $provider } } } else { foreach ($authProvider in $authProviders) { $localAuthMode = $null $authenticationProvider = $null $roleProvider = $null $membershipProvider = $null if ($authProvider.DisplayName -eq "Windows Authentication") { if ($authProvider.DisableKerberos -eq $true) { $localAuthMode = "NTLM" } else { $localAuthMode = "Kerberos" } } elseif ($authProvider.DisplayName -eq "Forms Authentication") { $localAuthMode = "FBA" $roleProvider = $authProvider.RoleProvider $membershipProvider = $authProvider.MembershipProvider } else { $localAuthMode = "Federated" $authenticationProvider = $authProvider.DisplayName } $provider = @{ AuthenticationMethod = $localAuthMode AuthenticationProvider = $authenticationProvider MembershipProvider = $membershipProvider RoleProvider = $roleProvider } switch ($zone) { "Default" { $default += $provider } "Intranet" { $intranet += $provider } "Internet" { $internet += $provider } "Extranet" { $extranet += $provider } "Custom" { $custom += $provider } } } } } return @{ WebAppUrl = $params.WebAppUrl Default = $default Intranet = $intranet Internet = $internet Extranet = $extranet Custom = $custom } } return $result } function Set-TargetResource { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [System.String] $WebAppUrl, [Parameter()] [Microsoft.Management.Infrastructure.CimInstance[]] $Default, [Parameter()] [Microsoft.Management.Infrastructure.CimInstance[]] $Intranet, [Parameter()] [Microsoft.Management.Infrastructure.CimInstance[]] $Internet, [Parameter()] [Microsoft.Management.Infrastructure.CimInstance[]] $Extranet, [Parameter()] [Microsoft.Management.Infrastructure.CimInstance[]] $Custom, [Parameter()] [System.Management.Automation.PSCredential] $InstallAccount ) Write-Verbose -Message "Setting web application authentication for '$WebAppUrl'" # Test is at least one zone is specified if ($PSBoundParameters.ContainsKey("Default") -eq $false -and ` $PSBoundParameters.ContainsKey("Intranet") -eq $false -and ` $PSBoundParameters.ContainsKey("Internet") -eq $false -and ` $PSBoundParameters.ContainsKey("Extranet") -eq $false -and ` $PSBoundParameters.ContainsKey("Custom") -eq $false) { throw "You have to specify at least one zone." } # Perform test on specified configurations for each zone if ($PSBoundParameters.ContainsKey("Default")) { Test-Parameter -Zone $Default -Exception } if ($PSBoundParameters.ContainsKey("Intranet")) { Test-Parameter -Zone $Intranet -Exception } if ($PSBoundParameters.ContainsKey("Internet")) { Test-Parameter -Zone $Internet -Exception } if ($PSBoundParameters.ContainsKey("Extranet")) { Test-Parameter -Zone $Extranet -Exception } if ($PSBoundParameters.ContainsKey("Custom")) { Test-Parameter -Zone $Custom -Exception } # Get current authentication method $authMethod = Invoke-SPDSCCommand -Credential $InstallAccount ` -Arguments $PSBoundParameters ` -ScriptBlock { $params = $args[0] $wa = Get-SPWebApplication -Identity $params.WebAppUrl -ErrorAction SilentlyContinue if ($null -eq $wa) { throw "Specified Web Application $($params.WebAppUrl) does not exist" } $authProviders = Get-SPAuthenticationProvider -WebApplication $params.WebAppUrl -Zone Default if ($null -eq $authProviders) { return "Classic" } else { return "Claims" } } # Check if web application is configured as Classic, but the config specifies a Claim model # This resource does not support Classic to Claims conversion. if ($authMethod -eq "Classic") { if ($PSBoundParameters.ContainsKey("Default")) { Test-ZoneIsNotClassic -Zone $Default } if ($PSBoundParameters.ContainsKey("Intranet")) { Test-ZoneIsNotClassic -Zone $Intranet } if ($PSBoundParameters.ContainsKey("Internet")) { Test-ZoneIsNotClassic -Zone $Intranet } if ($PSBoundParameters.ContainsKey("Extranet")) { Test-ZoneIsNotClassic -Zone $Extranet } if ($PSBoundParameters.ContainsKey("Custom")) { Test-ZoneIsNotClassic -Zone $Custom } } $CurrentValues = Get-TargetResource @PSBoundParameters if ($PSBoundParameters.ContainsKey("Default")) { # Test is current config matches desired config $result = Test-ZoneConfiguration -DesiredConfig $Default ` -CurrentConfig $CurrentValues.Default # If that is the case, set desired config. if ($result -eq $false) { Set-ZoneConfiguration -WebAppUrl $WebAppUrl -Zone "Default" -DesiredConfig $Default } } if ($PSBoundParameters.ContainsKey("Intranet")) { # Check if specified zone exists if ($CurrentValues.ContainsKey("Intranet") -eq $false) { throw "Specified zone Intranet does not exist" } # Test is current config matches desired config $result = Test-ZoneConfiguration -DesiredConfig $Intranet ` -CurrentConfig $CurrentValues.Intranet # If that is the case, set desired config. if ($result -eq $false) { Set-ZoneConfiguration -WebAppUrl $WebAppUrl -Zone "Intranet" -DesiredConfig $Intranet } } if ($PSBoundParameters.ContainsKey("Internet")) { # Check if specified zone exists if ($CurrentValues.ContainsKey("Internet") -eq $false) { throw "Specified zone Internet does not exist" } # Test is current config matches desired config $result = Test-ZoneConfiguration -DesiredConfig $Internet ` -CurrentConfig $CurrentValues.Internet # If that is the case, set desired config. if ($result -eq $false) { Set-ZoneConfiguration -WebAppUrl $WebAppUrl -Zone "Internet" -DesiredConfig $Internet } } if ($PSBoundParameters.ContainsKey("Extranet")) { # Check if specified zone exists if ($CurrentValues.ContainsKey("Extranet") -eq $false) { throw "Specified zone Extranet does not exist" } # Test is current config matches desired config $result = Test-ZoneConfiguration -DesiredConfig $Extranet ` -CurrentConfig $CurrentValues.Extranet # If that is the case, set desired config. if ($result -eq $false) { Set-ZoneConfiguration -WebAppUrl $WebAppUrl -Zone "Extranet" -DesiredConfig $Extranet } } if ($PSBoundParameters.ContainsKey("Custom")) { # Check if specified zone exists if ($CurrentValues.ContainsKey("Custom") -eq $false) { throw "Specified zone Custom does not exist" } # Test is current config matches desired config $result = Test-ZoneConfiguration -DesiredConfig $Custom ` -CurrentConfig $CurrentValues.Custom # If that is the case, set desired config. if ($result -eq $false) { Set-ZoneConfiguration -WebAppUrl $WebAppUrl -Zone "Custom" -DesiredConfig $Custom } } } function Test-TargetResource { [CmdletBinding()] [OutputType([System.Boolean])] param ( [Parameter(Mandatory = $true)] [System.String] $WebAppUrl, [Parameter()] [Microsoft.Management.Infrastructure.CimInstance[]] $Default, [Parameter()] [Microsoft.Management.Infrastructure.CimInstance[]] $Intranet, [Parameter()] [Microsoft.Management.Infrastructure.CimInstance[]] $Internet, [Parameter()] [Microsoft.Management.Infrastructure.CimInstance[]] $Extranet, [Parameter()] [Microsoft.Management.Infrastructure.CimInstance[]] $Custom, [Parameter()] [System.Management.Automation.PSCredential] $InstallAccount ) Write-Verbose -Message "Testing web application authentication for '$WebAppUrl'" $CurrentValues = Get-TargetResource @PSBoundParameters if ($null -eq $CurrentValues.Default -and ` $null -eq $CurrentValues.Intranet -and ` $null -eq $CurrentValues.Internet -and ` $null -eq $CurrentValues.Extranet -and ` $null -eq $CurrentValues.Custom) { return $false } if ($PSBoundParameters.ContainsKey("Default")) { $result = Test-ZoneConfiguration -DesiredConfig $Default ` -CurrentConfig $CurrentValues.Default if ($result -eq $false) { return $false } } if ($PSBoundParameters.ContainsKey("Intranet")) { if ($CurrentValues.ContainsKey("Intranet") -eq $false) { throw "Specified zone Intranet does not exist" } $result = Test-ZoneConfiguration -DesiredConfig $Intranet ` -CurrentConfig $CurrentValues.Intranet if ($result -eq $false) { return $false } } if ($PSBoundParameters.ContainsKey("Internet")) { if ($CurrentValues.ContainsKey("Internet") -eq $false) { throw "Specified zone Internet does not exist" } $result = Test-ZoneConfiguration -DesiredConfig $Internet ` -CurrentConfig $CurrentValues.Internet if ($result -eq $false) { return $false } } if ($PSBoundParameters.ContainsKey("Extranet")) { if ($CurrentValues.ContainsKey("Extranet") -eq $false) { throw "Specified zone Extranet does not exist" } $result = Test-ZoneConfiguration -DesiredConfig $Extranet ` -CurrentConfig $CurrentValues.Extranet if ($result -eq $false) { return $false } } if ($PSBoundParameters.ContainsKey("Custom")) { if ($CurrentValues.ContainsKey("Custom") -eq $false) { throw "Specified zone Custom does not exist" } $result = Test-ZoneConfiguration -DesiredConfig $Custom ` -CurrentConfig $CurrentValues.Custom if ($result -eq $false) { return $false } } return $true } Export-ModuleMember -Function *-TargetResource function Test-Parameter() { param ( [Parameter(Mandatory = $true)] $Zone, [Parameter()] [switch] $Exception ) $ntlmUsed = $false $kerberosUsed = $false foreach ($zoneConfig in $Zone) { $authProviderUsed = $false $membProviderUsed = $false $roleProviderUsed = $false # Check if the config contains the AuthenticationProvider Property $prop = $zoneConfig.CimInstanceProperties | Where-Object -FilterScript { $_.Name -eq "AuthenticationProvider" } if ($null -ne $prop.Value) { $authProviderUsed = $true } # Check if the config contains the MembershipProvider Property $prop = $zoneConfig.CimInstanceProperties | Where-Object -FilterScript { $_.Name -eq "MembershipProvider" } if ($null -ne $prop.Value) { $membProviderUsed = $true } # Check if the config contains the RoleProvider Property $prop = $zoneConfig.CimInstanceProperties | Where-Object -FilterScript { $_.Name -eq "RoleProvider" } if ($null -ne $prop.Value) { $roleProviderUsed = $true } switch ($zoneConfig.AuthenticationMethod) { "NTLM" { $ntlmUsed = $true if ($authProviderUsed -eq $true -or ` $membProviderUsed -eq $true -or ` $roleProviderUsed -eq $true) { $message = "You cannot use AuthenticationProvider, MembershipProvider " + ` "or RoleProvider when using NTLM" if ($Exception) { throw $message } else { Write-Verbose -Message $message return $false } } } "Kerberos" { $kerberosUsed = $true if ($authProviderUsed -eq $true -or ` $membProviderUsed -eq $true -or ` $roleProviderUsed -eq $true) { $message = "You cannot use AuthenticationProvider, MembershipProvider " + ` "or RoleProvider when using Kerberos" if ($Exception) { throw $message } else { Write-Verbose -Message $message return $false } } } "FBA" { if ($membProviderUsed -eq $false -or ` $roleProviderUsed -eq $false) { $message = "You have to specify MembershipProvider and " + ` "RoleProvider when using FBA" if ($Exception) { throw $message } else { Write-Verbose -Message $message return $false } } if ($authProviderUsed -eq $true) { $message = "You cannot use AuthenticationProvider when " + ` "using FBA" if ($Exception) { throw $message } else { Write-Verbose -Message $message return $false } } } "Federated" { if ($membProviderUsed -eq $true -or ` $roleProviderUsed -eq $true) { $message = "You cannot use MembershipProvider or " + ` "RoleProvider when using Federated" if ($Exception) { throw $message } else { Write-Verbose -Message $message return $false } } if ($authProviderUsed -eq $false) { $message = "You have to specify AuthenticationProvider when " + ` "using Federated" if ($Exception) { throw $message } else { Write-Verbose -Message $message return $false } } } } if ($ntlmUsed -and $kerberosUsed) { $message = "You cannot use both NTLM and Kerberos in the same zone" if ($Exception) { throw $message } else { Write-Verbose -Message $message return $false } } } if (-not $Exception) { return $true } } function Test-ZoneIsNotClassic() { param ( [Parameter(Mandatory = $true)] $Zone ) foreach ($desiredAuth in $Zone) { if ($desiredAuth.AuthenticationMethod -ne "Classic") { throw ("Specified Web Application is using Classic Authentication and " + ` "Claims Authentication is specified. Please use " + ` "Convert-SPWebApplication first!") } } } function Set-ZoneConfiguration() { param ( [Parameter(Mandatory = $true)] [System.String] $WebAppUrl, [Parameter(Mandatory = $true)] [ValidateSet("Default","Intranet","Internet","Extranet","Custom")] [System.String] $Zone, [Parameter(Mandatory = $true)] [Microsoft.Management.Infrastructure.CimInstance[]] $DesiredConfig ) Invoke-SPDSCCommand -Credential $InstallAccount ` -Arguments $PSBoundParameters ` -ScriptBlock { $params = $args[0] $ap = @() foreach ($zoneConfig in $params.DesiredConfig) { switch ($zoneConfig.AuthenticationMethod) { "NTLM" { $newap = New-SPAuthenticationProvider -UseWindowsIntegratedAuthentication } "Kerberos" { $newap = New-SPAuthenticationProvider -UseWindowsIntegratedAuthentication ` -DisableKerberos:$false } "FBA" { $newap = New-SPAuthenticationProvider -ASPNETMembershipProvider $zoneConfig.MembershipProvider ` -ASPNETRoleProviderName $zoneConfig.RoleProvider } "Federated" { $tokenIssuer = Get-SPTrustedIdentityTokenIssuer -Identity $zoneConfig.AuthenticationProvider ` -ErrorAction SilentlyContinue if ($null -eq $tokenIssuer) { throw ("Specified AuthenticationProvider $($zoneConfig.AuthenticationProvider) " + ` "does not exist") } $newap = New-SPAuthenticationProvider -TrustedIdentityTokenIssuer $tokenIssuer } } $ap += $newap } Set-SPWebApplication -Identity $params.WebAppUrl -Zone $params.Zone -AuthenticationProvider $ap } } function Test-ZoneConfiguration() { param ( [Parameter(Mandatory = $true)] [Microsoft.Management.Infrastructure.CimInstance[]] $DesiredConfig, [Parameter(Mandatory = $true)] [System.Collections.Hashtable[]] $CurrentConfig ) # Testing specified configuration against configured values foreach ($zoneConfig in $DesiredConfig) { switch ($zoneConfig.AuthenticationMethod) { { $_ -in @("NTLM","Kerberos","Classic") } { $configuredMethod = $CurrentConfig | ` Where-Object -FilterScript { $_.AuthenticationMethod -eq $zoneConfig.AuthenticationMethod } } "FBA" { $configuredMethod = $CurrentConfig | ` Where-Object -FilterScript { $_.AuthenticationMethod -eq $zoneConfig.AuthenticationMethod -and ` $_.MembershipProvider -eq $zoneConfig.MembershipProvider -and ` $_.RoleProvider -eq $zoneConfig.RoleProvider } } "Federated" { $configuredMethod = $CurrentConfig | ` Where-Object -FilterScript { $_.AuthenticationMethod -eq $zoneConfig.AuthenticationMethod -and ` $_.AuthenticationProvider -eq $zoneConfig.AuthenticationProvider } } } if ($null -eq $configuredMethod) { return $false } } # Reverse: Testing configured values against specified configuration foreach ($zoneConfig in $CurrentConfig) { switch ($zoneConfig.AuthenticationMethod) { { $_ -in @("NTLM","Kerberos","Classic") } { $specifiedMethod = $DesiredConfig | ` Where-Object -FilterScript { $_.AuthenticationMethod -eq $zoneConfig.AuthenticationMethod } } "FBA" { $specifiedMethod = $DesiredConfig | ` Where-Object -FilterScript { $_.AuthenticationMethod -eq $zoneConfig.AuthenticationMethod -and ` $_.MembershipProvider -eq $zoneConfig.MembershipProvider -and ` $_.RoleProvider -eq $zoneConfig.RoleProvider } } "Federated" { $specifiedMethod = $DesiredConfig | ` Where-Object -FilterScript { $_.AuthenticationMethod -eq $zoneConfig.AuthenticationMethod -and ` $_.AuthenticationProvider -eq $zoneConfig.AuthenticationProvider } } } if ($null -eq $specifiedMethod) { return $false } } return $true }
31.427283
116
0.491462
3d4b34c8440416cdb745f0ebee340847037fd6f4
3,982
rs
Rust
src/collision/broad_phase/bounds_tree/tests.rs
eviltak/physics2d-rs
a46b5a459c3255bdea4d09bbefa22a91c5a9ff8e
[ "MIT" ]
5
2018-08-21T17:25:51.000Z
2021-11-14T20:34:26.000Z
src/collision/broad_phase/bounds_tree/tests.rs
eviltak/physics2d-rs
a46b5a459c3255bdea4d09bbefa22a91c5a9ff8e
[ "MIT" ]
null
null
null
src/collision/broad_phase/bounds_tree/tests.rs
eviltak/physics2d-rs
a46b5a459c3255bdea4d09bbefa22a91c5a9ff8e
[ "MIT" ]
1
2020-05-06T18:55:35.000Z
2020-05-06T18:55:35.000Z
use super::*; #[test] fn insert_leaf() { let mut tree = BoundsTree::new(); // Upon insertion, b and c will be siblings. // The tree should have the following structure: // root // / \ // a (branch) // / \ // b c let bounds_a = Bounds::new(Vec2::ZERO, Vec2::ONE * 3.0); let bounds_b = Bounds::new(Vec2::RIGHT * 4.0, Vec2::RIGHT * 4.0 + Vec2::ONE); let bounds_c = Bounds::new(Vec2::RIGHT * 4.0 + Vec2::UP * 1.01, Vec2::RIGHT * 4.0 + Vec2::UP * 1.01 + Vec2::ONE); let a = tree.insert_leaf(bounds_a, 0); assert_eq!(tree.root_id, a); let b = tree.insert_leaf(bounds_b, 1); assert_ne!(tree.root_id, a); assert_eq!(tree.get_root().left, a); assert_eq!(tree.get_root().right, b); let c = tree.insert_leaf(bounds_c, 2); let root = tree.get_root(); // left (a) unchanged, right made branch and b pushed down assert_eq!(root.left, a); assert_ne!(root.right, b); let right = tree.get_node(root.right); assert_eq!(right.left, b); assert_eq!(right.right, c); } #[test] fn remove_leaf() { let mut tree = BoundsTree::new(); // Upon insertion, b and c will be siblings. // The tree should have the following structure: // root // / \ // a (branch) // / \ // b c let bounds_a = Bounds::new(Vec2::ZERO, Vec2::ONE * 3.0); let bounds_b = Bounds::new(Vec2::RIGHT * 4.0, Vec2::RIGHT * 4.0 + Vec2::ONE); let bounds_c = Bounds::new(Vec2::RIGHT * 4.0 + Vec2::UP * 1.01, Vec2::RIGHT * 4.0 + Vec2::UP * 1.01 + Vec2::ONE); let a = tree.insert_leaf(bounds_a, 0); let b = tree.insert_leaf(bounds_b, 1); let c = tree.insert_leaf(bounds_c, 2); assert_ne!(tree.get_root().right, c); // On deleting b: // root // / \ // a c tree.remove_leaf(b); assert_eq!(tree.get_root().right, c); // On deleting c: // root == a tree.remove_leaf(c); assert_eq!(tree.root_id, a); } #[test] fn balance() { let mut tree = BoundsTree::new(); let bounds_a = Bounds::new(Vec2::ZERO, Vec2::ONE * 3.0); let bounds_b = Bounds::new(Vec2::RIGHT * 4.0, Vec2::RIGHT * 4.0 + Vec2::ONE); let bounds_c = Bounds::new(Vec2::RIGHT * 4.0 + Vec2::UP * 1.01, Vec2::RIGHT * 4.0 + Vec2::UP * 1.01 + Vec2::ONE); let bounds_d = Bounds::new(Vec2::RIGHT * 4.0 + Vec2::UP * 2.01, Vec2::RIGHT * 4.0 + Vec2::UP * 2.01 + Vec2::ONE); let a = tree.insert_leaf(bounds_a, 0); let b = tree.insert_leaf(bounds_b, 1); let root_id = tree.get_node(a).parent; let c = tree.insert_leaf(bounds_c, 2); let branch0_id = tree.get_node(c).parent; let d = tree.insert_leaf(bounds_d, 3); let branch1_id = tree.get_node(d).parent; // The tree -should- have the following structure: // root // / \ // a branch0 // / \ // b branch1 // / \ // c d // // `update_ancestors` will ensure that the tree is balanced to: // // branch0 // / \ // root branch1 // / \ / \ // a b c d assert_eq!(tree.root_id, branch0_id); let root = tree.get_root(); assert_eq!(root.left, root_id); assert_eq!(root.right, branch1_id); let (left, right) = (tree.get_node(root.left), tree.get_node(root.right)); assert_eq!(left.left, a); assert_eq!(left.right, b); assert_eq!(right.left, c); assert_eq!(right.right, d); }
28.442857
81
0.490206
2666bb008e3d3dfd9c04be4044d2e64ac616b3f3
109
java
Java
src/main/java/net/soundvibe/reacto/agent/AgentFactory.java
soundvibe/reacto
f04243474cca35ed5be129c8908929f209cb1c47
[ "Apache-2.0" ]
7
2016-02-11T15:02:11.000Z
2017-07-04T10:18:10.000Z
src/main/java/net/soundvibe/reacto/agent/AgentFactory.java
cjruffy/reacto
f04243474cca35ed5be129c8908929f209cb1c47
[ "Apache-2.0" ]
8
2016-02-12T17:38:11.000Z
2017-08-25T11:34:36.000Z
src/main/java/net/soundvibe/reacto/agent/AgentFactory.java
cjruffy/reacto
f04243474cca35ed5be129c8908929f209cb1c47
[ "Apache-2.0" ]
4
2016-02-12T17:42:49.000Z
2019-10-23T13:13:40.000Z
package net.soundvibe.reacto.agent; public interface AgentFactory<T extends Agent<?>> { T create(); }
13.625
51
0.706422
e8192ec456c6cf98e41e32917478ceb3209b1fd7
10,871
cpp
C++
fuse_publishers/test/test_path_2d_publisher.cpp
congleetea/fuse
7a87a59915a213431434166c96d0705ba6aa00b2
[ "BSD-3-Clause" ]
383
2018-07-02T07:20:32.000Z
2022-03-31T12:51:06.000Z
fuse_publishers/test/test_path_2d_publisher.cpp
congleetea/fuse
7a87a59915a213431434166c96d0705ba6aa00b2
[ "BSD-3-Clause" ]
117
2018-07-16T10:32:52.000Z
2022-02-02T20:15:16.000Z
fuse_publishers/test/test_path_2d_publisher.cpp
congleetea/fuse
7a87a59915a213431434166c96d0705ba6aa00b2
[ "BSD-3-Clause" ]
74
2018-10-01T10:10:45.000Z
2022-03-02T04:48:22.000Z
/* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided * with the distribution. * * Neither the name of the copyright holder nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #include <fuse_constraints/absolute_pose_2d_stamped_constraint.h> #include <fuse_core/eigen.h> #include <fuse_core/transaction.h> #include <fuse_core/uuid.h> #include <fuse_graphs/hash_graph.h> #include <fuse_publishers/path_2d_publisher.h> #include <fuse_variables/orientation_2d_stamped.h> #include <fuse_variables/position_2d_stamped.h> #include <geometry_msgs/PoseArray.h> #include <geometry_msgs/PoseStamped.h> #include <nav_msgs/Path.h> #include <ros/ros.h> #include <tf2/utils.h> #include <gtest/gtest.h> #include <vector> /** * @brief Test fixture for the Path2DPublisher * * This test fixture provides a populated graph for testing the publish() function, and a subscriber callback * for the 'path' output topics. */ class Path2DPublisherTestFixture : public ::testing::Test { public: Path2DPublisherTestFixture() : private_node_handle_("~"), graph_(fuse_graphs::HashGraph::make_shared()), transaction_(fuse_core::Transaction::make_shared()), received_path_msg_(false), received_pose_array_msg_(false) { // Add a few pose variables auto position1 = fuse_variables::Position2DStamped::make_shared(ros::Time(1234, 10)); position1->x() = 1.01; position1->y() = 2.01; auto orientation1 = fuse_variables::Orientation2DStamped::make_shared(ros::Time(1234, 10)); orientation1->yaw() = 3.01; auto position2 = fuse_variables::Position2DStamped::make_shared(ros::Time(1235, 10)); position2->x() = 1.02; position2->y() = 2.02; auto orientation2 = fuse_variables::Orientation2DStamped::make_shared(ros::Time(1235, 10)); orientation2->yaw() = 3.02; auto position3 = fuse_variables::Position2DStamped::make_shared(ros::Time(1235, 9)); position3->x() = 1.03; position3->y() = 2.03; auto orientation3 = fuse_variables::Orientation2DStamped::make_shared(ros::Time(1235, 9)); orientation3->yaw() = 3.03; auto position4 = fuse_variables::Position2DStamped::make_shared(ros::Time(1235, 11), fuse_core::uuid::generate("kitt")); position4->x() = 1.04; position4->y() = 2.04; auto orientation4 = fuse_variables::Orientation2DStamped::make_shared(ros::Time(1235, 11), fuse_core::uuid::generate("kitt")); orientation4->yaw() = 3.04; transaction_->addInvolvedStamp(position1->stamp()); transaction_->addInvolvedStamp(orientation1->stamp()); transaction_->addInvolvedStamp(position2->stamp()); transaction_->addInvolvedStamp(orientation2->stamp()); transaction_->addInvolvedStamp(position3->stamp()); transaction_->addInvolvedStamp(orientation3->stamp()); transaction_->addInvolvedStamp(position4->stamp()); transaction_->addInvolvedStamp(orientation4->stamp()); transaction_->addVariable(position1); transaction_->addVariable(orientation1); transaction_->addVariable(position2); transaction_->addVariable(orientation2); transaction_->addVariable(position3); transaction_->addVariable(orientation3); transaction_->addVariable(position4); transaction_->addVariable(orientation4); // Add some priors on the variables some we can optimize the graph fuse_core::Vector3d mean1; mean1 << 1.01, 2.01, 3.01; fuse_core::Matrix3d cov1; cov1 << 1.01, 0.0, 0.0, 0.0, 2.01, 0.0, 0.0, 0.0, 3.01; auto constraint1 = fuse_constraints::AbsolutePose2DStampedConstraint::make_shared( "test", *position1, *orientation1, mean1, cov1); fuse_core::Vector3d mean2; mean2 << 1.02, 2.02, 3.02; fuse_core::Matrix3d cov2; cov2 << 1.02, 0.0, 0.0, 0.0, 2.02, 0.0, 0.0, 0.0, 3.02; auto constraint2 = fuse_constraints::AbsolutePose2DStampedConstraint::make_shared( "test", *position2, *orientation2, mean2, cov2); fuse_core::Vector3d mean3; mean3 << 1.03, 2.03, 3.03; fuse_core::Matrix3d cov3; cov3 << 1.03, 0.0, 0.0, 0.0, 2.03, 0.0, 0.0, 0.0, 3.03; auto constraint3 = fuse_constraints::AbsolutePose2DStampedConstraint::make_shared( "test", *position3, *orientation3, mean3, cov3); fuse_core::Vector3d mean4; mean4 << 1.04, 2.04, 3.04; fuse_core::Matrix3d cov4; cov4 << 1.04, 0.0, 0.0, 0.0, 2.04, 0.0, 0.0, 0.0, 3.04; auto constraint4 = fuse_constraints::AbsolutePose2DStampedConstraint::make_shared( "test", *position4, *orientation4, mean4, cov4); transaction_->addConstraint(constraint1); transaction_->addConstraint(constraint2); transaction_->addConstraint(constraint3); transaction_->addConstraint(constraint4); // Add the transaction to the graph graph_->update(*transaction_); // Optimize the graph graph_->optimize(); } void pathCallback(const nav_msgs::Path::ConstPtr& msg) { path_msg_ = *msg; received_path_msg_ = true; } void poseArrayCallback(const geometry_msgs::PoseArray::ConstPtr& msg) { pose_array_msg_ = *msg; received_pose_array_msg_ = true; } protected: ros::NodeHandle node_handle_; ros::NodeHandle private_node_handle_; fuse_graphs::HashGraph::SharedPtr graph_; fuse_core::Transaction::SharedPtr transaction_; bool received_path_msg_; nav_msgs::Path path_msg_; bool received_pose_array_msg_; geometry_msgs::PoseArray pose_array_msg_; }; TEST_F(Path2DPublisherTestFixture, PublishPath) { // Test that the expected PoseStamped message is published // Create a publisher and send it the graph private_node_handle_.setParam("test_publisher/frame_id", "test_map"); fuse_publishers::Path2DPublisher publisher; publisher.initialize("test_publisher"); publisher.start(); // Subscribe to the "path" topic ros::Subscriber subscriber1 = private_node_handle_.subscribe( "test_publisher/path", 1, &Path2DPublisherTestFixture::pathCallback, reinterpret_cast<Path2DPublisherTestFixture*>(this)); // Subscribe to the "pose_array" topic ros::Subscriber subscriber2 = private_node_handle_.subscribe( "test_publisher/pose_array", 1, &Path2DPublisherTestFixture::poseArrayCallback, reinterpret_cast<Path2DPublisherTestFixture*>(this)); // Send the graph to the Publisher to trigger message publishing publisher.notify(transaction_, graph_); // Verify the subscriber received the expected pose ros::Time timeout = ros::Time::now() + ros::Duration(10.0); while ((!received_path_msg_) && (ros::Time::now() < timeout)) { ros::Duration(0.10).sleep(); } ASSERT_TRUE(received_path_msg_); EXPECT_EQ(ros::Time(1235, 10), path_msg_.header.stamp); EXPECT_EQ("test_map", path_msg_.header.frame_id); ASSERT_EQ(3ul, path_msg_.poses.size()); EXPECT_EQ(ros::Time(1234, 10), path_msg_.poses[0].header.stamp); EXPECT_EQ("test_map", path_msg_.poses[0].header.frame_id); EXPECT_NEAR(1.01, path_msg_.poses[0].pose.position.x, 1.0e-9); EXPECT_NEAR(2.01, path_msg_.poses[0].pose.position.y, 1.0e-9); EXPECT_NEAR(0.00, path_msg_.poses[0].pose.position.z, 1.0e-9); EXPECT_NEAR(3.01, tf2::getYaw(path_msg_.poses[0].pose.orientation), 1.0e-9); EXPECT_EQ(ros::Time(1235, 9), path_msg_.poses[1].header.stamp); EXPECT_EQ("test_map", path_msg_.poses[1].header.frame_id); EXPECT_NEAR(1.03, path_msg_.poses[1].pose.position.x, 1.0e-9); EXPECT_NEAR(2.03, path_msg_.poses[1].pose.position.y, 1.0e-9); EXPECT_NEAR(0.00, path_msg_.poses[1].pose.position.z, 1.0e-9); EXPECT_NEAR(3.03, tf2::getYaw(path_msg_.poses[1].pose.orientation), 1.0e-9); EXPECT_EQ(ros::Time(1235, 10), path_msg_.poses[2].header.stamp); EXPECT_EQ("test_map", path_msg_.poses[2].header.frame_id); EXPECT_NEAR(1.02, path_msg_.poses[2].pose.position.x, 1.0e-9); EXPECT_NEAR(2.02, path_msg_.poses[2].pose.position.y, 1.0e-9); EXPECT_NEAR(0.00, path_msg_.poses[2].pose.position.z, 1.0e-9); EXPECT_NEAR(3.02, tf2::getYaw(path_msg_.poses[2].pose.orientation), 1.0e-9); ASSERT_TRUE(received_pose_array_msg_); EXPECT_EQ(ros::Time(1235, 10), pose_array_msg_.header.stamp); EXPECT_EQ("test_map", pose_array_msg_.header.frame_id); ASSERT_EQ(3ul, pose_array_msg_.poses.size()); EXPECT_NEAR(1.01, pose_array_msg_.poses[0].position.x, 1.0e-9); EXPECT_NEAR(2.01, pose_array_msg_.poses[0].position.y, 1.0e-9); EXPECT_NEAR(0.00, pose_array_msg_.poses[0].position.z, 1.0e-9); EXPECT_NEAR(3.01, tf2::getYaw(pose_array_msg_.poses[0].orientation), 1.0e-9); EXPECT_NEAR(1.03, pose_array_msg_.poses[1].position.x, 1.0e-9); EXPECT_NEAR(2.03, pose_array_msg_.poses[1].position.y, 1.0e-9); EXPECT_NEAR(0.00, pose_array_msg_.poses[1].position.z, 1.0e-9); EXPECT_NEAR(3.03, tf2::getYaw(pose_array_msg_.poses[1].orientation), 1.0e-9); EXPECT_NEAR(1.02, pose_array_msg_.poses[2].position.x, 1.0e-9); EXPECT_NEAR(2.02, pose_array_msg_.poses[2].position.y, 1.0e-9); EXPECT_NEAR(0.00, pose_array_msg_.poses[2].position.z, 1.0e-9); EXPECT_NEAR(3.02, tf2::getYaw(pose_array_msg_.poses[2].orientation), 1.0e-9); } int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); ros::init(argc, argv, "test_path_2d_publisher"); ros::AsyncSpinner spinner(1); spinner.start(); int ret = RUN_ALL_TESTS(); spinner.stop(); ros::shutdown(); return ret; }
41.651341
109
0.71447
f8e974c36856525e609e9b071a262cd0efef1dfd
2,112
sql
SQL
schema/000001_init.up.sql
p12s/2gis-catalog-api
929e0ab39b1cd8617ece0f2e756fd5ee3281030d
[ "MIT" ]
2
2021-11-28T14:03:12.000Z
2021-11-28T14:05:46.000Z
schema/000001_init.up.sql
p12s/2gis-catalog-api
929e0ab39b1cd8617ece0f2e756fd5ee3281030d
[ "MIT" ]
null
null
null
schema/000001_init.up.sql
p12s/2gis-catalog-api
929e0ab39b1cd8617ece0f2e756fd5ee3281030d
[ "MIT" ]
null
null
null
CREATE TABLE IF NOT EXISTS rubric ( id serial not null unique, name varchar(255) not null unique, parent_rubric_id int null ); ALTER TABLE rubric ADD CONSTRAINT rubric_fk FOREIGN KEY (parent_rubric_id) REFERENCES rubric (id); CREATE TABLE IF NOT EXISTS city ( id serial not null unique, name varchar(255) not null unique ); CREATE TABLE IF NOT EXISTS street ( id serial not null unique, city_id int references city (id) on delete cascade not null, name varchar(255) not null ); ALTER TABLE street ADD CONSTRAINT city_id_name UNIQUE (city_id, name); CREATE TABLE IF NOT EXISTS building ( id serial not null unique, city_id int references city (id) on delete cascade not null, street_id int references street (id) on delete cascade not null, house int null, point point default '0.00, 0.00' not null ); ALTER TABLE building ADD CONSTRAINT city_id_street_id_house UNIQUE (city_id, street_id, house); CREATE TABLE IF NOT EXISTS company ( id serial not null unique, name varchar(255) not null, building_id int references building (id) on delete cascade not null ); ALTER TABLE company ADD CONSTRAINT name_building_id UNIQUE (name, building_id); CREATE TABLE IF NOT EXISTS company_rubric ( company_id int references company (id) on delete cascade not null, rubric_id int references rubric (id) on delete cascade not null ); ALTER TABLE company_rubric ADD CONSTRAINT company_id_rubric_id UNIQUE (company_id, rubric_id); CREATE TABLE IF NOT EXISTS phone ( id serial not null unique, company_id int references company (id) on delete cascade not null, number varchar(255) not null ); ALTER TABLE phone ADD CONSTRAINT company_id_number UNIQUE (company_id, number);
39.849057
98
0.622633
256d9a5ed411481bf38a2a92bfd572494888e634
1,203
lua
Lua
build/Lilac/Engine/Entity.lua
Tjakka5/Lilac
8fcb90d2a6a5d7c9d20340a72413dc79decf155d
[ "MIT" ]
null
null
null
build/Lilac/Engine/Entity.lua
Tjakka5/Lilac
8fcb90d2a6a5d7c9d20340a72413dc79decf155d
[ "MIT" ]
null
null
null
build/Lilac/Engine/Entity.lua
Tjakka5/Lilac
8fcb90d2a6a5d7c9d20340a72413dc79decf155d
[ "MIT" ]
null
null
null
require("lualib_bundle"); __TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["4"] = 1,["5"] = 1,["6"] = 6,["7"] = 6,["8"] = 6,["9"] = 6,["11"] = 14,["12"] = 13,["13"] = 17,["14"] = 18,["15"] = 17,["16"] = 24,["17"] = 24,["18"] = 28,["19"] = 29,["20"] = 28,["21"] = 32,["22"] = 33,["23"] = 34,["24"] = 32,["25"] = 6,["26"] = 6}); local ____exports = {} local ____SparseSet = require("Lilac.Collections.SparseSet") local SparseSet = ____SparseSet.default ____exports.default = (function() ____exports.default = __TS__Class() local Entity = ____exports.default Entity.name = "Entity" function Entity.prototype.____constructor(self) self.children = __TS__New(SparseSet) end function Entity.prototype.preload(self, eventGroup) self.rootEventGroup = eventGroup end function Entity.prototype.addChild(self, child) end function Entity.prototype.registerDraw(self, func) self.drawHandle = self.rootEventGroup.draw:addListener(func, self) end function Entity.prototype.unregisterDraw(self) self.rootEventGroup.draw:removeListener(self.drawHandle) self.drawHandle = nil end return Entity end)() return ____exports
42.964286
306
0.645885
39d688a78795e14cfa08f1cc7cddca0f35a443f7
1,124
java
Java
protocol/common-protocol/src/main/java/com/github/dantin/cubic/protocol/SearchCriteria.java
dantin/cubic-platform
2d9de606304419916647d883c7ec57a549fe6dc9
[ "BSD-3-Clause" ]
null
null
null
protocol/common-protocol/src/main/java/com/github/dantin/cubic/protocol/SearchCriteria.java
dantin/cubic-platform
2d9de606304419916647d883c7ec57a549fe6dc9
[ "BSD-3-Clause" ]
null
null
null
protocol/common-protocol/src/main/java/com/github/dantin/cubic/protocol/SearchCriteria.java
dantin/cubic-platform
2d9de606304419916647d883c7ec57a549fe6dc9
[ "BSD-3-Clause" ]
null
null
null
package com.github.dantin.cubic.protocol; public class SearchCriteria { private final int number; private final int size; private SearchCriteria(Builder builder) { this.number = builder.number; this.size = builder.size; } public static Builder builder() { return new Builder(); } public int getNumber() { return number; } public int getSize() { return size; } public static final class Builder implements com.github.dantin.cubic.base.Builder<SearchCriteria> { private static final int DEFAULT_PAGE_NUMBER = 1; private static final int DEFAULT_PAGE_SIZE = 10; private int number; private int size; Builder() { this.number = DEFAULT_PAGE_NUMBER; this.size = DEFAULT_PAGE_SIZE; } public Builder pageNumber(int number) { if (number > 0) { this.number = number; } return this; } public Builder pageSize(int size) { if (size > 0) { this.size = size; } return this; } @Override public SearchCriteria build() { return new SearchCriteria(this); } } }
20.071429
71
0.636121
10649c1436976e3e5106d4869cf0c6cb7684a4a2
3,896
dart
Dart
WebPlatformTest/shadow-dom/shadow-trees/nested-shadow-trees/test-001_t01.dart
tvolkert/co19
435727789062a45da3d20da09024651fdeb8cafe
[ "BSD-3-Clause" ]
null
null
null
WebPlatformTest/shadow-dom/shadow-trees/nested-shadow-trees/test-001_t01.dart
tvolkert/co19
435727789062a45da3d20da09024651fdeb8cafe
[ "BSD-3-Clause" ]
null
null
null
WebPlatformTest/shadow-dom/shadow-trees/nested-shadow-trees/test-001_t01.dart
tvolkert/co19
435727789062a45da3d20da09024651fdeb8cafe
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file * for details. All rights reserved. Use of this source code is governed by a * BSD-style license that can be found in the LICENSE file. */ /* * Portions of this test are derived from code under the following license: * * Web-platform-tests are covered by the dual-licensing approach described in: * http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html */ /** * @assertion Nested Shadow Subtrees: * Any element in a shadow tree can be a shadow host, thus producing nested * shadow trees */ import 'dart:html'; import "../../../../Utils/expect.dart"; import '../../testcommon.dart'; main() { equals(actual,expected,reason) => Expect.equals(expected,actual,reason); var d = document; d.body.setInnerHtml(bobs_page, treeSanitizer: new NullTreeSanitizer()); var ul = d.querySelector('ul.stories'); //make a shadow subtree var s1 = createSR(ul); var subdiv1 = d.createElement('div'); subdiv1.setInnerHtml('<ul><content select=".shadow"></content></ul>' + '<div id="host_div">' + '<span id="sh_span">This span should be visible</span>' + '<ul id="host">' + '<li id="sh_li1">Shadow li 1</li>' + '<li id="sh_li2">Shadow li 2</li>' + '<li id="sh_li3" class="shadow2">Shadow li 3</li>' + '<li id="sh_li4">Shadow li 4</li>' + '<li id="sh_li5">Shadow li 5</li>' + '</ul>' + '</div>', treeSanitizer: new NullTreeSanitizer()); s1.append(subdiv1); //make nested shadow subtree var sh_ul = s1.querySelector('#host'); var s2 = createSR(sh_ul); var subdiv2 = d.createElement('div'); subdiv2.setInnerHtml('<ul><content select=".shadow2"></content></ul>', treeSanitizer: new NullTreeSanitizer()); s2.append(subdiv2); //The order of DOM elements should be the following: //li4, li3 and sh_li3 visible. Other elements invisible Expect.isTrue(d.querySelector('#li3').offsetTop > 0, 'Point 1: Shadow tree should take part in the distribution'); Expect.isTrue(d.querySelector('#li6').offsetTop > d.querySelector('#li3').offsetTop, 'Point 2: Shadow tree should take part in the distribution'); Expect.isTrue(s1.querySelector('#sh_li3').offsetTop > 0, 'Nested shadow subtree should take part in the distribution'); equals(d.querySelector('#li1').offsetTop, 0, 'Point 3: Elements that don\'t mach insertion point criteria participate in distribution'); equals(d.querySelector('#li2').offsetTop, 0, 'Point 4: Elements that don\'t mach insertion point criteria participate in distribution'); equals(d.querySelector('#li4').offsetTop, 0, 'Point 5: Elements that don\'t mach insertion point criteria participate in distribution'); equals(d.querySelector('#li5').offsetTop, 0, 'Point 6: Elements that don\'t mach insertion point criteria participate in distribution'); equals(s1.querySelector('#sh_li1').offsetTop, 0, 'Point 7: Elements of the nested shadow subtree that don\'t mach insertion point criteria participate in distribution'); equals(s1.querySelector('#sh_li2').offsetTop, 0, 'Point 8: Elements of the nested shadow subtree that don\'t mach insertion point criteria participate in distribution'); equals(s1.querySelector('#sh_li4').offsetTop, 0, 'Point 9: Elements of the nested shadow subtree that don\'t mach insertion point criteria participate in distribution'); equals(s1.querySelector('#sh_li5').offsetTop, 0, 'Point 10: Elements of the nested shadow subtree that don\'t mach insertion point criteria participate in distribution'); Expect.isTrue(s1.querySelector('#sh_span').offsetTop > 0, 'Shadow subtree elements that are not shadow host should take part in the distribution'); }
45.302326
127
0.677361
65349ddf8e79064277992fac5e85fa136f547f1d
3,150
py
Python
comicMaker/readComicsOnlineRu.py
Gunjan933/comicMaker
9e10f8bc7d1b9c9ad6af271ca7a01fb03b26c6ee
[ "MIT" ]
3
2019-09-03T14:27:28.000Z
2021-03-04T04:23:38.000Z
comicMaker/readComicsOnlineRu.py
Gunjan933/comicMaker
9e10f8bc7d1b9c9ad6af271ca7a01fb03b26c6ee
[ "MIT" ]
null
null
null
comicMaker/readComicsOnlineRu.py
Gunjan933/comicMaker
9e10f8bc7d1b9c9ad6af271ca7a01fb03b26c6ee
[ "MIT" ]
2
2019-06-18T04:21:28.000Z
2021-08-17T18:24:20.000Z
from .makeFullPdf import makeFullPdf from .parseImage import parseImage from .makePdf import makePdf import requests,os,os.path,sys,time,json from bs4 import BeautifulSoup def readComicsOnlineRu(): while True: try: with open('config.json', 'r', encoding="utf-8") as f: books = json.load(f) library=[*books['readComicsOnlineRu']] # print(library) # return if not library: # print("No books found!") return # print("List of books >") # for i in library: # print (" > '"+i+"' download will start from Chapter-"+books['readComicsOnlineRu'][i]) except: # raise # print("No 'config.json' file found!") # return continue break # if not confirm(): # return originDirectory=os.getcwd() os.chdir('..') if not os.path.exists('comicDownloads'+os.sep): os.makedirs('comicDownloads'+os.sep) os.chdir('comicDownloads'+os.sep) for comicName in library: incompleteUrl="https://readcomicsonline.ru/comic/"+comicName+"/" tryAgain=0 while tryAgain==0: try: page_response = requests.get(incompleteUrl, timeout=5) soup = BeautifulSoup(page_response.content, "html.parser") except: print("Could not connect, trying again in 5 seconds!") time.sleep(5) continue # os.chdir('..') # os.chdir('comicMaker'+os.sep) # readComicsOnlineRu() # return tryAgain=1 chapterNum = [] totalChaptersToDownload = 0 for li in soup.findAll('li', attrs={'class':'volume-0'}): # validChapterNum=li.find('a').contents[0].split("#")[1] validChapterNum=li.find('a')['href'].split(comicName+"/")[1] try: if float(validChapterNum) >= float(books['readComicsOnlineRu'][comicName]): chapterNum.append(validChapterNum) totalChaptersToDownload += 1 except: chapterNum.append(validChapterNum) totalChaptersToDownload += 1 chapterNum.reverse() # print(chapterNum) # return parentDir=comicName+os.sep if os.path.exists(parentDir): print(comicName+" already exists.") else: os.makedirs(parentDir) print(" Opening "+comicName+" >") os.chdir(parentDir) if totalChaptersToDownload > 1 : for i in chapterNum: books['readComicsOnlineRu'][comicName] = str(i) tryAgain=0 while tryAgain==0: try: with open(originDirectory+os.sep+'config.json', 'w', encoding="utf-8") as file: json.dump(books, file, indent=4) except: continue tryAgain=1 chapter=i currentDir=chapter.replace('.','-')+os.sep if os.path.exists(currentDir): print(" "+comicName+" > "+chapter.replace('.','-')+" already exists.") else: os.makedirs(currentDir) print(" Opening "+comicName+" > "+chapter+" > ("+str(totalChaptersToDownload)+" Remaining) >") os.chdir(currentDir) completeUrl=incompleteUrl+i+"/" parseImage.readComicsOnlineRu(comicName,completeUrl,chapter) makePdf.readComicsOnlineRu(chapter) os.chdir("..") totalChaptersToDownload -= 1 makeFullPdf.readComicsOnlineRu(comicName) else: print(" < "+comicName+" already fully downloaded.") os.chdir("..") print(" << Download finished of "+comicName+" <") os.chdir(originDirectory) return
30.288462
99
0.668889
85caa866e12eab57540c7c4b82987d33f03373d9
3,123
js
JavaScript
src/components/common/swiper/indexSwiper.js
lsklsc/Music
4f3869f1523dd11a7d1e8f92136f091ad05836fa
[ "Apache-2.0" ]
null
null
null
src/components/common/swiper/indexSwiper.js
lsklsc/Music
4f3869f1523dd11a7d1e8f92136f091ad05836fa
[ "Apache-2.0" ]
4
2021-05-11T20:54:18.000Z
2022-02-27T08:57:27.000Z
src/components/common/swiper/indexSwiper.js
lsklsc/Music
4f3869f1523dd11a7d1e8f92136f091ad05836fa
[ "Apache-2.0" ]
null
null
null
export function _Swiper (oSwiper) { // var oSwiper = document.getElementById('swiper'); var oSwiper=oSwiper; var oPre = oSwiper.getElementsByClassName('pre')[0]; var oNext = oSwiper.getElementsByClassName('next')[0]; var oLeft = oSwiper.getElementsByClassName('left')[0]; var oRight = oSwiper.getElementsByClassName('right')[0]; var aLi = oSwiper.querySelectorAll('li'); var aSpan = oSwiper.querySelectorAll('span'); var aName = []; var currentIndex = 0; for (let item of aLi) { aName.push(item.classList[0]); } switchTo(); setCurrent(); clearInterval(timer); var timer = setInterval(() => { nextPic(); }, 3000) oSwiper.onmouseover = function () { clearInterval(timer); oPre.style.display = 'block'; oNext.style.display = 'block'; oLeft.onclick = function () { prePic(); } oRight.onclick = function () { nextPic(); } } oSwiper.onmouseout = function () { clearInterval(timer); timer = setInterval(() => { nextPic(); }, 3000); oPre.style.display = 'none'; oNext.style.display = 'none'; } /**下一张*/ function nextPic() { switchNext(); addClass(); currentIndex++; if (currentIndex > 5) currentIndex = 0; setCurrent(); }; function prePic() { switchPre(); addClass(); currentIndex--; if (currentIndex < 0) currentIndex = 5; setCurrent(); } function setCurrent() { for (let i = 0, length = aSpan.length; i < length; i++) { aSpan[i].className = '' } aSpan[currentIndex].className = 'action'; } function switchTo() { for (let i = 0, length = aSpan.length; i < length; i++) { aSpan[i].index = i; aSpan[i].onclick = function () { for (let j = 0, length = aSpan.length; j < length; j++) { aSpan[j].className = ''; } this.className = 'action'; if (this.index > currentIndex) { for (let i = currentIndex, length = this.index; i < length; i++) { switchNext(); } addClass(); } else { for (let i = this.index, length = currentIndex; i < length; i++) { switchPre(); } addClass(); } currentIndex = this.index; } } } /**给Li添加类*/ function addClass() { /**设置属性远比访问属性节省性能*/ for (let i = 0, length = aLi.length; i < length; i++) { aLi[i].setAttribute('class', aName[i]); } } /**将数组所有元素向后移一位*/ function switchNext() { aName.unshift(aName[aName.length - 1]);//将类名数组最后一个元素复制一份插入数组最前面 aName.pop();// } /**将数组所有元素向前移一位*/ function switchPre() { aName.push(aName[0]); aName.shift(); } }
28.916667
86
0.48511
e9dc0105f75505a5452d275fe3a00f46a4fcabdb
1,703
go
Go
internal/f1461.go
chrsan/shadow
5d5882fd8c9cfab11e0512793d81dc437e33e86e
[ "Apache-2.0" ]
4
2020-03-06T10:13:30.000Z
2022-01-12T01:55:52.000Z
internal/f1461.go
chrsan/shadow
5d5882fd8c9cfab11e0512793d81dc437e33e86e
[ "Apache-2.0" ]
null
null
null
internal/f1461.go
chrsan/shadow
5d5882fd8c9cfab11e0512793d81dc437e33e86e
[ "Apache-2.0" ]
1
2020-07-06T11:21:06.000Z
2020-07-06T11:21:06.000Z
package internal import ( "unsafe" ) func f1461(ctx *Context, l0 int32, l1 int32) int32 { var l2 int32 _ = l2 var l3 int32 _ = l3 var l4 int32 _ = l4 var l5 int32 _ = l5 var s0i32 int32 _ = s0i32 var s1i32 int32 _ = s1i32 var s2i32 int32 _ = s2i32 var s3i32 int32 _ = s3i32 var s4i32 int32 _ = s4i32 s0i32 = l1 s0i32 = *(*int32)(unsafe.Pointer(&ctx.Mem[int(s0i32+60)])) l4 = s0i32 s1i32 = 192 s0i32 = s0i32 & s1i32 s1i32 = 128 if s0i32 == s1i32 { s0i32 = 1 } else { s0i32 = 0 } if s0i32 != 0 { s0i32 = l1 s1i32 = l1 s2i32 = 24 s1i32 = s1i32 + s2i32 s1i32 = f67(ctx, s1i32) l4 = s1i32 *(*uint32)(unsafe.Pointer(&ctx.Mem[int(s0i32+60)])) = uint32(s1i32) } s0i32 = l1 s0i32 = *(*int32)(unsafe.Pointer(&ctx.Mem[int(s0i32+4)])) l3 = s0i32 s1i32 = 56 s2i32 = 4 s0i32 = f56(ctx, s0i32, s1i32, s2i32) l2 = s0i32 s0i32 = l3 s0i32 = *(*int32)(unsafe.Pointer(&ctx.Mem[int(s0i32+4)])) l5 = s0i32 s0i32 = l3 s1i32 = l2 s2i32 = 48 s1i32 = s1i32 + s2i32 *(*uint32)(unsafe.Pointer(&ctx.Mem[int(s0i32+4)])) = uint32(s1i32) s0i32 = l3 s1i32 = 1239 s2i32 = l2 s3i32 = l5 s2i32 = s2i32 - s3i32 f52(ctx, s0i32, s1i32, s2i32) s0i32 = l2 s1i32 = l4 s2i32 = 3 s1i32 = int32(uint32(s1i32) >> (uint32(s2i32) & 31)) s2i32 = 1 s1i32 = s1i32 & s2i32 ctx.Mem[int(s0i32+8)] = uint8(s1i32) s0i32 = l2 s1i32 = l0 *(*uint32)(unsafe.Pointer(&ctx.Mem[int(s0i32+4)])) = uint32(s1i32) s0i32 = l2 s1i32 = 27064 *(*uint32)(unsafe.Pointer(&ctx.Mem[int(s0i32+0)])) = uint32(s1i32) s0i32 = l2 s1i32 = 0 s2i32 = l0 s3i32 = l1 s4i32 = l2 s2i32 = f580(ctx, s2i32, s3i32, s4i32) if s2i32 != 0 { // s0i32 = s0i32 } else { s0i32 = s1i32 } return s0i32 }
18.311828
69
0.621844
c5bf3a3dd114432e0571afb3a7db9e11a4ef2f28
575
cpp
C++
examples/sample3.cpp
SoultatosStefanos/dbc
aa9c787cd383c8b8f110f779ad0978e4512c7811
[ "MIT" ]
1
2021-09-08T11:41:58.000Z
2021-09-08T11:41:58.000Z
examples/sample3.cpp
SoultatosStefanos/dbc
aa9c787cd383c8b8f110f779ad0978e4512c7811
[ "MIT" ]
null
null
null
examples/sample3.cpp
SoultatosStefanos/dbc
aa9c787cd383c8b8f110f779ad0978e4512c7811
[ "MIT" ]
null
null
null
/** * @file sample3.cpp * @author Soultatos Stefanos (stefanoss1498@gmail.com) * @brief Contains a code sample that makes use of the dbc library. * @version 2.0 * @date 2021-10-29 * * @copyright Copyright (c) 2021 * */ #include "dbc/dbc.hpp" #include <array> namespace { // // Showcase of a loop invariant. // // void dostuff_with_ordered_array(std::array<int, 5> ordered) { for(auto i = 1; i < 5; ++i) { INVARIANT(ordered[i] > ordered[i - 1]); // do stuff // .... INVARIANT(ordered[i] > ordered[i - 1]); } } } // namespace
19.166667
67
0.596522
7ac1a64636bd31d73a725b9cdcb40e34312711a9
2,736
rb
Ruby
lib/datagrid/renderer.rb
markedmondson/datagrid
749b89772df0cabbe3495acd425e99fb770e9b52
[ "MIT" ]
null
null
null
lib/datagrid/renderer.rb
markedmondson/datagrid
749b89772df0cabbe3495acd425e99fb770e9b52
[ "MIT" ]
null
null
null
lib/datagrid/renderer.rb
markedmondson/datagrid
749b89772df0cabbe3495acd425e99fb770e9b52
[ "MIT" ]
null
null
null
require "action_view" module Datagrid class Renderer #:nodoc: def self.for(template) new(template) end def initialize(template) @template = template end def format_value(grid, column, asset) if column.is_a?(String) || column.is_a?(Symbol) column = grid.column_by_name(column) end value = grid.html_value(column, @template, asset) url = column.options[:url] && column.options[:url].call(asset) if url @template.link_to(value, url) else value end end def form_for(grid, options = {}) options[:method] ||= :get options[:html] ||= {} options[:html][:class] ||= "datagrid-form #{@template.dom_class(grid)}" options[:as] ||= grid.param_name _render_partial('form', options[:partials], {:grid => grid, :options => options}) end def table(grid, *args) options = args.extract_options! options[:html] ||= {} options[:html][:class] ||= "datagrid #{@template.dom_class(grid)}" if options[:cycle] ::Datagrid::Utils.warn_once("datagrid_table cycle option is deprecated. Use css to style odd/even rows instead.") end assets = args.any? ? args.shift : grid.assets paginate = options[:paginate] if paginate ::Datagrid::Utils.warn_once(":paginate option is deprecated. Look to https://github.com/bogdan/datagrid/wiki/Frontend.") assets = assets.paginate(paginate) end _render_partial('table', options[:partials], { :grid => grid, :options => options, :assets => assets }) end def header(grid, options = {}) options[:order] = true unless options.has_key?(:order) _render_partial('head', options[:partials], { :grid => grid, :options => options }) end def rows(grid, assets, options = {}) result = assets.map do |asset| _render_partial( 'row', options[:partials], { :grid => grid, :options => options, :asset => asset }) end.to_a.join _safe(result) end def order_for(grid, column, options = {}) _render_partial('order_for', options[:partials], { :grid => grid, :column => column }) end private def _safe(string) string.respond_to?(:html_safe) ? string.html_safe : string end def _render_partial(partial_name, partials_path, locals = {}) @template.render({ :partial => File.join(partials_path || 'datagrid', partial_name), :locals => locals }) end end end
27.636364
128
0.562865
cc997a8b901cbcf2b42025769e80d12e8460b353
5,149
lua
Lua
garrysmod/gamemodes/terrortown/entities/weapons/weapon_ttt_f2000/shared.lua
EraYaN/ttt-gmod-mods
3c3be290c9ff94f41f1131f2a857cbe511a210f6
[ "MIT" ]
1
2017-09-06T21:15:54.000Z
2017-09-06T21:15:54.000Z
garrysmod/gamemodes/terrortown/entities/weapons/weapon_ttt_f2000/shared.lua
uRandomAlex/ttt-gmod-mods
b88a56c9bfe7a77d34be0a6ac518118d3f29358b
[ "MIT" ]
null
null
null
garrysmod/gamemodes/terrortown/entities/weapons/weapon_ttt_f2000/shared.lua
uRandomAlex/ttt-gmod-mods
b88a56c9bfe7a77d34be0a6ac518118d3f29358b
[ "MIT" ]
null
null
null
---- FN F2000 -- First some standard GMod stuff if SERVER then AddCSLuaFile( "shared.lua" ) resource.AddFile( "materials/vgui/ttt/icon_tuna_f2000.vmt" ) resource.AddFile( "materials/models/weapons/v_models/v_rif_f2000/f1color.vmt" ) resource.AddFile( "materials/models/weapons/v_models/v_rif_f2000/f1color.vtf" ) resource.AddFile( "materials/models/weapons/v_models/v_rif_f2000/f1color_normal.vtf" ) resource.AddFile( "materials/models/weapons/v_models/v_rif_f2000/f2color.vmt" ) resource.AddFile( "materials/models/weapons/v_models/v_rif_f2000/f2color.vtf" ) resource.AddFile( "materials/models/weapons/v_models/v_rif_f2000/f2color_normal.vtf" ) resource.AddFile( "materials/models/weapons/v_models/v_rif_f2000/f4color.vmt" ) resource.AddFile( "materials/models/weapons/v_models/v_rif_f2000/f4color.vtf" ) resource.AddFile( "materials/models/weapons/v_models/v_rif_f2000/f4color_ref.vtf" ) resource.AddFile( "materials/models/weapons/v_models/v_rif_f2000/Scope.vmt" ) resource.AddFile( "materials/models/weapons/v_models/v_rif_f2000/Scope.vtf" ) resource.AddFile( "materials/models/weapons/v_models/v_rif_f2000/Scope_normal.vtf" ) resource.AddFile( "materials/models/weapons/v_models/v_rif_f2000/sup.vmt" ) resource.AddFile( "materials/models/weapons/v_models/v_rif_f2000/sup.vtf" ) resource.AddFile( "materials/models/weapons/v_models/v_rif_f2000/sup_normal.vtf" ) resource.AddFile( "materials/models/weapons/w_models/w_rif_f2000/f1color.vmt" ) resource.AddFile( "materials/models/weapons/w_models/w_rif_f2000/f2color.vmt" ) resource.AddFile( "materials/models/weapons/w_models/w_rif_f2000/f4color.vmt" ) resource.AddFile( "materials/models/weapons/w_models/w_rif_f2000/sup.vmt" ) resource.AddFile("materials/sprites/scope_reddot.vmt") resource.AddFile("models/weapons/v_rif_f2000.mdl") resource.AddFile("models/weapons/w_rif_f2000.mdl") resource.AddFile("sound/weapons/f2000/f2000_boltback.wav") resource.AddFile("sound/weapons/f2000/f2000_boltforward.wav") resource.AddFile("sound/weapons/f2000/f2000-1.wav") resource.AddFile("sound/weapons/f2000/f2000_magin.wav") resource.AddFile("sound/weapons/f2000/f2000_magout.wav") resource.AddFile("scripts/sounds/f2000.txt") end if CLIENT then SWEP.PrintName = "FN F2000" SWEP.Slot = 2 -- add 1 to get the slot number key SWEP.ViewModelFOV = 90 SWEP.ViewModelFlip = true SWEP.Icon = "vgui/ttt/icon_bb_f2000" end -- Always derive from weapon_tttbase. SWEP.Base = "weapon_tttbase" --- Standard GMod values SWEP.HoldType = "ar2" SWEP.Primary.Delay = 0.07 SWEP.Primary.Recoil = 1.8 SWEP.Primary.Automatic = true SWEP.Primary.Damage = 16 SWEP.Primary.Cone = 0.015 SWEP.Primary.Ammo = "CombineCannon" SWEP.Primary.ClipSize = 30 SWEP.Primary.ClipMax = 60 SWEP.Primary.DefaultClip = 30 SWEP.Primary.Sound = Sound( "weapons/f2000/f2000-1.wav" ) SWEP.HeadshotMultiplier = 4 SWEP.IronSightsPos = Vector (3.5236, -15.1832, 0) SWEP.IronSightsAng = Vector (0, 0, 0) SWEP.ViewModel = "models/weapons/v_rif_f2000.mdl" SWEP.WorldModel = "models/weapons/w_rif_f2000.mdl" SWEP.Kind = WEAPON_HEAVY SWEP.AutoSpawnable = true SWEP.AmmoEnt = "item_ammo_rifle_ttt" SWEP.AllowDrop = true SWEP.IsSilent = false SWEP.NoSights = false function SWEP:SetZoom(state) if CLIENT then return else if state then self.Owner:SetFOV(30, 0.5) else self.Owner:SetFOV(0, 0.2) end end end -- Add some zoom to ironsights for this gun function SWEP:SecondaryAttack() if not self.IronSightsPos then return end if self.Weapon:GetNextSecondaryFire() > CurTime() then return end bIronsights = not self:GetIronsights() self:SetIronsights( bIronsights ) if SERVER then self:SetZoom(bIronsights) end self.Weapon:SetNextSecondaryFire( CurTime() + 0.3) end function SWEP:PreDrop() self:SetZoom(false) self:SetIronsights(false) return self.BaseClass.PreDrop(self) end function SWEP:Reload() self.Weapon:DefaultReload( ACT_VM_RELOAD ); self:SetIronsights( false ) self:SetZoom(false) end function SWEP:Holster() self:SetIronsights(false) self:SetZoom(false) return true end if CLIENT then local scope = surface.GetTextureID("sprites/scope_reddot") function SWEP:DrawHUD() if self:GetIronsights() then surface.SetDrawColor( 0, 0, 0, 255 ) local x = ScrW() / 2.0 local y = ScrH() / 2.0 local scope_size = ScrH() -- cover edges local sh = scope_size / 2 local w = (x - sh) + 2 surface.DrawRect(0, 0, w, scope_size) surface.DrawRect(x + sh - 2, 0, w, scope_size) -- scope surface.SetTexture(scope) surface.SetDrawColor(255, 255, 255, 255) surface.DrawTexturedRectRotated(x, y, scope_size, scope_size, 0) else return self.BaseClass.DrawHUD(self) end end end
32.588608
88
0.698
ec98fb09e7dea026b0b4b109b332e087c5a61e24
1,692
swift
Swift
OnoKit/Managers/CommonCacheManager.swift
onodude/Common
d074c983b401051c4c9ed36a97273b97afb24703
[ "Apache-2.0" ]
4
2020-10-26T02:53:27.000Z
2022-01-12T19:32:15.000Z
OnoKit/Managers/CommonCacheManager.swift
onodude/Common
d074c983b401051c4c9ed36a97273b97afb24703
[ "Apache-2.0" ]
5
2020-11-04T06:27:20.000Z
2020-12-02T18:59:24.000Z
OnoKit/Managers/CommonCacheManager.swift
onodude/Common
d074c983b401051c4c9ed36a97273b97afb24703
[ "Apache-2.0" ]
4
2020-10-23T18:34:20.000Z
2022-03-02T22:42:22.000Z
// // Created by Onur Erdemol // Copyright © 2020 Onur Erdemol // All rights reserved // import Foundation open class CommonCacheManager: NSObject { // MARK: - Helpers public static func clear() { if let appDomain = Bundle.main.bundleIdentifier { UserDefaults.standard.removePersistentDomain(forName: appDomain) } } public static func set<T>(_ value: [T], forKey key: String) { UserDefaults.standard.set(value, forKey: key) } public static func get<T>(_ key: String) -> [T]? { if let value: [T] = UserDefaults.standard.value(forKey: key) as? [T] { return value } else { return nil } } public static func set(_ value: Bool, forKey key: String) { UserDefaults.standard.set(value, forKey: key) } public static func get(forKey key: String) -> Bool? { let boolean: Bool = UserDefaults.standard.bool(forKey: key) return boolean } public static func set(_ value: String, forKey key: String) { UserDefaults.standard.set(value, forKey: key) } public static func get(forKey key: String) -> String? { let value = UserDefaults.standard.string(forKey: key) return value } public static func set(_ value: Int, forKey key: String) { let stringValue = String(format: "%d", value) UserDefaults.standard.set(stringValue, forKey: key) } public static func get(forKey key: String) -> Int? { if let value: String = UserDefaults.standard.string(forKey: key) { return Int(value) } else { return nil } } }
19.905882
78
0.5987
48b924ee56ace591e7d4706c39a985df0f689ebe
636
kt
Kotlin
common/src/main/java/com/zbt/common/ext/lifecycle/KtxAppLifeObserver.kt
DragonTotem/cosmetology
f7c7e25c89aa960d1119515a92a8b440c949ce20
[ "Apache-2.0" ]
1
2021-09-29T02:54:34.000Z
2021-09-29T02:54:34.000Z
common/src/main/java/com/zbt/common/ext/lifecycle/KtxAppLifeObserver.kt
DragonTotem/cosmetology
f7c7e25c89aa960d1119515a92a8b440c949ce20
[ "Apache-2.0" ]
null
null
null
common/src/main/java/com/zbt/common/ext/lifecycle/KtxAppLifeObserver.kt
DragonTotem/cosmetology
f7c7e25c89aa960d1119515a92a8b440c949ce20
[ "Apache-2.0" ]
null
null
null
package com.zbt.common.ext.lifecycle import androidx.lifecycle.Lifecycle import androidx.lifecycle.LifecycleObserver import androidx.lifecycle.OnLifecycleEvent import com.zbt.common.callback.livedata.BooleanLiveData /** * Author : zbt * Time : 20120/1/7 * Description : */ object KtxAppLifeObserver : LifecycleObserver { var isForeground = BooleanLiveData() //在前台 @OnLifecycleEvent(Lifecycle.Event.ON_START) private fun onForeground() { isForeground.value = true } //在后台 @OnLifecycleEvent(Lifecycle.Event.ON_STOP) private fun onBackground() { isForeground.value = false } }
21.931034
55
0.724843
e7e2776de81354d98aed0b83cbc0e13ec8f847e9
1,040
sql
SQL
openGaussBase/testcase/KEYWORDS/trigger/Opengauss_Function_Keyword_Trigger_Case0028.sql
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/KEYWORDS/trigger/Opengauss_Function_Keyword_Trigger_Case0028.sql
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/KEYWORDS/trigger/Opengauss_Function_Keyword_Trigger_Case0028.sql
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
-- @testpoint: opengauss关键字trigger(非保留),作为同义词对象名,部分测试点合理报错 --前置条件 drop table if exists explain_test; create table explain_test(id int,name varchar(10)); --关键字不带引号-成功 drop synonym if exists trigger; create synonym trigger for explain_test; insert into trigger values (1,'ada'),(2, 'bob'); update trigger set trigger.name='cici' where trigger.id=2; select * from trigger; drop synonym if exists trigger; --关键字带双引号-成功 drop synonym if exists "trigger"; create synonym "trigger" for explain_test; drop synonym if exists "trigger"; --关键字带单引号-合理报错 drop synonym if exists 'trigger'; create synonym 'trigger' for explain_test; insert into 'trigger' values (1,'ada'),(2, 'bob'); update 'trigger' set 'trigger'.name='cici' where 'trigger'.id=2; select * from 'trigger'; --关键字带反引号-合理报错 drop synonym if exists `trigger`; create synonym `trigger` for explain_test; insert into `trigger` values (1,'ada'),(2, 'bob'); update `trigger` set `trigger`.name='cici' where `trigger`.id=2; select * from `trigger`; --清理环境 drop table if exists explain_test;
28.888889
64
0.743269
1b98da0f0b49b20b8ea1c0cf36a944bda7512264
346
swift
Swift
XADDisplaySdk/XADDisplaySdk/XADDisplayTestDelegate.swift
xadrnd/display_sdk_ios
f8a140d1cf3d1e8f63b915caf8c723d771dac13f
[ "BSD-3-Clause" ]
null
null
null
XADDisplaySdk/XADDisplaySdk/XADDisplayTestDelegate.swift
xadrnd/display_sdk_ios
f8a140d1cf3d1e8f63b915caf8c723d771dac13f
[ "BSD-3-Clause" ]
null
null
null
XADDisplaySdk/XADDisplaySdk/XADDisplayTestDelegate.swift
xadrnd/display_sdk_ios
f8a140d1cf3d1e8f63b915caf8c723d771dac13f
[ "BSD-3-Clause" ]
null
null
null
// // XADDisplayTestDelegate.swift // XADDisplaySdk // // Created by Ray Wu on 3/27/17. // Copyright © 2017 Xad. All rights reserved. // public protocol XADDisplayTestDelegate: class { // Return true to intercept the url and stop further action func intercept(url: URL) -> Bool func intercept(urlResponse: URLResponse) -> Bool }
24.714286
63
0.705202
fbe484a91e459850e2d8b2c936fe4a2c87a589b5
448
java
Java
src/main/java/co/ecso/dacato/database/cache/CacheKeyGetter.java
Adar/jdao
835961ae5855891a4a1b02a9b0f4590474ffe62d
[ "MIT" ]
null
null
null
src/main/java/co/ecso/dacato/database/cache/CacheKeyGetter.java
Adar/jdao
835961ae5855891a4a1b02a9b0f4590474ffe62d
[ "MIT" ]
3
2022-01-21T23:14:09.000Z
2022-03-08T21:11:18.000Z
src/main/java/co/ecso/dacato/database/cache/CacheKeyGetter.java
Adar/jdao
835961ae5855891a4a1b02a9b0f4590474ffe62d
[ "MIT" ]
null
null
null
package co.ecso.dacato.database.cache; import co.ecso.dacato.database.querywrapper.Query; /** * CacheKeyGetter. * * @author Christian Scharmach (cs@e-cs.co) * @version $Id:$ * @since 21.09.16 */ @FunctionalInterface interface CacheKeyGetter { /** * Get cache key. * * @param <T> Type of Query. * @param query Query. * @return Cache key. */ <T> CacheKey<Object> getCacheKey(final Query<T> query); }
17.92
59
0.627232
b003291de5a8f07c4def03f1b029f80b79be54ae
48,991
rs
Rust
src/linux/process.rs
huanghongxun/runc-rs
75bbecabab9d01fbafa8c6e445d3bee8ff535cbc
[ "Apache-2.0" ]
6
2021-02-25T03:36:51.000Z
2021-12-10T09:32:10.000Z
src/linux/process.rs
huanghongxun/runc-rs
75bbecabab9d01fbafa8c6e445d3bee8ff535cbc
[ "Apache-2.0" ]
null
null
null
src/linux/process.rs
huanghongxun/runc-rs
75bbecabab9d01fbafa8c6e445d3bee8ff535cbc
[ "Apache-2.0" ]
null
null
null
use super::config_linux::{get_host_gid, get_host_uid}; use super::error::{Error, Result}; use super::namespace::Namespace; use super::user::User; use super::*; use crate::config; use crate::linux::prctl::prctl; use crate::process::ProcessStatus; use cgroups_rs::Controller; use nix::mount::*; use nix::sys::signal::{kill, Signal}; use nix::sys::socket::*; use nix::sys::wait::{waitpid, WaitStatus}; use nix::unistd::*; use std::collections::HashSet; use std::convert::TryFrom; use std::ffi::CString; use std::io; use std::io::{Read, Write}; use std::os::unix::io::AsRawFd; use std::os::unix::io::FromRawFd; use std::path::{Path, PathBuf}; fn format_mount_label(src: &str, mount_label: &str) -> String { if !mount_label.is_empty() { if src.is_empty() { format!("context={}", mount_label) } else { format!("{},context={}", src, mount_label) } } else { String::from(src) } } fn close_on_exec_from( start_fd: i32, mapped_fds: &Vec<(i32, i32)>, preserved_fds: &Vec<i32>, ) -> Result<()> { let preserve_fds = mapped_fds .iter() .map(|p| p.1) .chain(preserved_fds.iter().map(|p| *p)) .collect::<HashSet<i32>>(); for dir in std::fs::read_dir("/proc/self/fd")? { let ok_dir = dir?; if let Some(file_name) = ok_dir.file_name().to_str() { if let Ok(fd) = file_name.parse::<i32>() { if fd < start_fd { continue; } if preserve_fds.contains(&fd) { continue; } // Ignores errors from fcntl because some fds may be already closed. let _ = nix::fcntl::fcntl( fd, nix::fcntl::FcntlArg::F_SETFD(nix::fcntl::FdFlag::FD_CLOEXEC), ); } } } Ok(()) } // Fixes the permission of standard input/output within the container to the specified user. // The ownership needs to match because it is created outside of the container. fn fix_stdio_permissions(user: &User) -> Result<()> { let null = nix::sys::stat::stat("/dev/null")?; for &fd in [ io::stdin().as_raw_fd(), io::stdout().as_raw_fd(), io::stderr().as_raw_fd(), ] .iter() { let s = nix::sys::stat::fstat(fd)?; if s.st_rdev == null.st_rdev { continue; } match fchown(fd, Some(user.uid), Some(user.gid)) { Err(nix::Error::Sys(nix::errno::Errno::EINVAL)) | Err(nix::Error::Sys(nix::errno::Errno::EPERM)) => {} Err(err) => return Err(Error::Nix(err)), _ => {} } } Ok(()) } fn map_capability(cap_name: &str) -> Result<capabilities::Capability> { match cap_name { "CAP_CHOWN" => Ok(capabilities::Capability::CAP_CHOWN), "CAP_DAC_OVERRIDE" => Ok(capabilities::Capability::CAP_DAC_OVERRIDE), "CAP_DAC_READ_SEARCH" => Ok(capabilities::Capability::CAP_DAC_READ_SEARCH), "CAP_FOWNER" => Ok(capabilities::Capability::CAP_FOWNER), "CAP_FSETID" => Ok(capabilities::Capability::CAP_FSETID), "CAP_KILL" => Ok(capabilities::Capability::CAP_KILL), "CAP_SETGID" => Ok(capabilities::Capability::CAP_SETGID), "CAP_SETUID" => Ok(capabilities::Capability::CAP_SETUID), "CAP_SETPCAP" => Ok(capabilities::Capability::CAP_SETPCAP), "CAP_LINUX_IMMUTABLE" => Ok(capabilities::Capability::CAP_LINUX_IMMUTABLE), "CAP_NET_BIND_SERVICE" => Ok(capabilities::Capability::CAP_NET_BIND_SERVICE), "CAP_NET_BROADCAST" => Ok(capabilities::Capability::CAP_NET_BROADCAST), "CAP_NET_ADMIN" => Ok(capabilities::Capability::CAP_NET_ADMIN), "CAP_NET_RAW" => Ok(capabilities::Capability::CAP_NET_RAW), "CAP_IPC_LOCK" => Ok(capabilities::Capability::CAP_IPC_LOCK), "CAP_IPC_OWNER" => Ok(capabilities::Capability::CAP_IPC_OWNER), "CAP_SYS_MODULE" => Ok(capabilities::Capability::CAP_SYS_MODULE), "CAP_SYS_RAWIO" => Ok(capabilities::Capability::CAP_SYS_RAWIO), "CAP_SYS_CHROOT" => Ok(capabilities::Capability::CAP_SYS_CHROOT), "CAP_SYS_PTRACE" => Ok(capabilities::Capability::CAP_SYS_PTRACE), "CAP_SYS_PACCT" => Ok(capabilities::Capability::CAP_SYS_PACCT), "CAP_SYS_ADMIN" => Ok(capabilities::Capability::CAP_SYS_ADMIN), "CAP_SYS_BOOT" => Ok(capabilities::Capability::CAP_SYS_BOOT), "CAP_SYS_NICE" => Ok(capabilities::Capability::CAP_SYS_NICE), "CAP_SYS_RESOURCE" => Ok(capabilities::Capability::CAP_SYS_RESOURCE), "CAP_SYS_TIME" => Ok(capabilities::Capability::CAP_SYS_TIME), "CAP_SYS_TTY_CONFIG" => Ok(capabilities::Capability::CAP_SYS_TTY_CONFIG), "CAP_MKNOD" => Ok(capabilities::Capability::CAP_MKNOD), "CAP_LEASE" => Ok(capabilities::Capability::CAP_LEASE), "CAP_AUDIT_WRITE" => Ok(capabilities::Capability::CAP_AUDIT_WRITE), "CAP_AUDIT_CONTROL" => Ok(capabilities::Capability::CAP_AUDIT_CONTROL), "CAP_SETFCAP" => Ok(capabilities::Capability::CAP_SETFCAP), "CAP_MAC_OVERRIDE" => Ok(capabilities::Capability::CAP_MAC_OVERRIDE), "CAP_MAC_ADMIN" => Ok(capabilities::Capability::CAP_MAC_ADMIN), "CAP_SYSLOG" => Ok(capabilities::Capability::CAP_SYSLOG), "CAP_WAKE_ALARM" => Ok(capabilities::Capability::CAP_WAKE_ALARM), "CAP_BLOCK_SUSPEND" => Ok(capabilities::Capability::CAP_BLOCK_SUSPEND), "CAP_AUDIT_READ" => Ok(capabilities::Capability::CAP_AUDIT_READ), _ => Err(error::Error::InvalidCapability { capability: cap_name.into(), }), } } fn notify_sync_socket(f: &mut std::fs::File, stage: &str) -> Result<()> { if let Err(err) = f.write(&vec![0; 1]) { return Err(error::Error::WriteSocket { stage: stage.into(), reason: "Read status from sync socket".into(), error: Some(err), }); } Ok(()) } fn expect_success_from_sync_socket(f: &mut std::fs::File, stage: &str) -> Result<()> { let mut buf = vec![0; 1]; if let Err(err) = f.read_exact(&mut buf) { return Err(error::Error::WaitForSocket { stage: stage.into(), reason: "Read status from sync socket".into(), error: Some(err), }); } if buf[0] == 0 { return Ok(()); } let mut strbuf = vec![0; buf[0].into()]; if let Err(err) = f.read_exact(&mut strbuf) { return Err(error::Error::WaitForSocket { stage: stage.into(), reason: "Read status from sync socket".into(), error: Some(err), }); } Err(error::Error::WaitForSocket { stage: stage.into(), reason: String::from_utf8(strbuf) .expect("Read from socket, but reason string does not fulfill UTF-8 standard"), error: None, }) } impl LinuxProcess { pub fn new( name: String, config: config::Config, command: Vec<String>, mapped_fds: Vec<(i32, i32)>, preserved_fds: Vec<i32>, ) -> LinuxProcess { LinuxProcess { name, config, command, mapped_fds, preserved_fds, pid: None, rootless_euid: getegid() != Gid::from_raw(0), cgroup: None, status: ProcessStatus::Ready, } } pub fn pid(&self) -> Option<Pid> { self.pid } pub fn start(&mut self) -> Result<()> { let (sync_socket_host_fd, sync_socket_container_fd) = socketpair( AddressFamily::Unix, SockType::SeqPacket, None, SockFlag::SOCK_CLOEXEC, )?; let mut sync_socket_host = unsafe { std::fs::File::from_raw_fd(sync_socket_host_fd) }; let mut sync_socket_container = unsafe { std::fs::File::from_raw_fd(sync_socket_container_fd) }; prctl(libc::PR_SET_CHILD_SUBREAPER, 1, 0, 0, 0)?; // setup cgroups in parent, so we can collect information from cgroup statistics. self.cgroup = self.setup_cgroups()?; unsafe { match fork()? { ForkResult::Parent { child, .. } => { self.status = ProcessStatus::Running; if self.has_ns(Namespace::User)? { // Wait for user namespace creation in child process expect_success_from_sync_socket( &mut sync_socket_host, "Wait for userns creation", )?; self.setup_user_ns(child)?; notify_sync_socket( &mut sync_socket_host, "Notify user namespace initialization", )?; } // Wait for grandchild process creation expect_success_from_sync_socket( &mut sync_socket_host, "Wait for grandchild process creation", )?; let mut grandchild_buf = [0; 4]; if let Err(err) = sync_socket_host.read_exact(&mut grandchild_buf) { return Err(error::Error::WaitForSocket { stage: "Read grandchild pid from sync socket".into(), reason: "Read grandchild pid from sync socket".into(), error: Some(err), }); } let grandchild_pid = Pid::from_raw(i32::from_ne_bytes(grandchild_buf)); self.pid = Some(grandchild_pid); notify_sync_socket(&mut sync_socket_host, "Notify grandchild pid retriving")?; waitpid(child, None); // Wait for execvp expect_success_from_sync_socket(&mut sync_socket_host, "Wait for execvp")?; // We must postpone cgroup setup as close to execvp as possible, so cpu time // will be more accurate. // enters cgroup in child, to make sure the operation is done before execvp. self.enter_cgroups(grandchild_pid)?; notify_sync_socket(&mut sync_socket_host, "Notify cgroup")?; Ok(()) } ForkResult::Child => { if self.has_ns(Namespace::User)? { self.unshare_user_ns()?; // notify parent: Wait for userns creation notify_sync_socket(&mut sync_socket_container, "Notify userns creation")?; // Wait for userns initialization expect_success_from_sync_socket( &mut sync_socket_container, "Wait for user namespace initialization", )?; } self.setup_ns()?; match fork()? { ForkResult::Parent { child, .. } => { // Child process does only setup namespaces, // Pid and time namespace apply for children. // notify parent: Wait for grandchild process creation. if let Err(err) = sync_socket_container.write(&vec![0; 1]) { kill(child, Signal::SIGKILL); } // notify parent about grandchild pid. if let Err(err) = sync_socket_container.write(&child.as_raw().to_ne_bytes()) { kill(child, Signal::SIGKILL); } std::process::exit(0); } ForkResult::Child => { expect_success_from_sync_socket( &mut sync_socket_container, "Wait for parent grandchild pid retriving", )?; self.child(&mut sync_socket_container).unwrap(); } } Ok(()) } } } } fn child(&self, sync_socket_container: &mut std::fs::File) -> Result<()> { let path = CString::new(self.command[0].as_str()).expect("CString::new failed"); let cstr_args: Vec<CString> = self .command .iter() .map(|args| CString::new(args.as_str()).unwrap()) .collect(); for (key, _) in std::env::vars_os() { std::env::remove_var(key); } for env in self.config.process.env.iter() { let env_str = env.to_string(); let mut splitter = env_str.splitn(2, "="); std::env::set_var(splitter.next().unwrap(), splitter.next().unwrap()); } // unshare process group, so we can kill all processes forked from current at once. setsid()?; // we need root privilege (in host or in user namespace) setuid(Uid::from_raw(0))?; setgid(Gid::from_raw(0))?; self.setup_rootfs()?; if config_linux::has_namespace(&self.config, namespace::Namespace::Mount) { self.finalize_rootfs()?; } self.setup_hostname()?; self.setup_readonly_paths()?; self.setup_mask_paths()?; self.setup_no_new_privileges()?; // Without no new privileges, seccomp is a privileged operation, // so we need to do this before dropping capabilities. if !self.config.process.no_new_privileges { self.setup_seccomp()?; } self.finalize_namespace()?; // notify parent: Wait for execvp notify_sync_socket(sync_socket_container, "Notify execvp")?; expect_success_from_sync_socket(sync_socket_container, "Wait for cgroup")?; // With no new privileges, we must postpone seccomp as close to // execvp as possible, so as few syscalls take place afterward. // And user can reduce allowed syscalls as they need. if self.config.process.no_new_privileges { self.setup_seccomp()?; } execvp(&path, &cstr_args)?; Ok(()) } pub fn kill(&self, signal: Signal) -> Result<()> { if self.status != ProcessStatus::Running || self.pid.is_none() { return Ok(()); } match &self.cgroup { Some(cgroup) => { let mut result = Ok(()); // if cgroups is enabled, find all processes to kill by cgroup.procs. for task in cgroup.tasks().iter() { // try to kill all processes, instead of reporting error immediately. if let Err(err) = kill(nix::unistd::Pid::from_raw(task.pid as libc::pid_t), signal) { result = Err(error::Error::Kill { pid: task.pid as libc::pid_t, error: err, }) } } return result; } None => { // if cgroups is not initialized, fallback to kill process cgroup. kill(self.pid.unwrap(), signal)?; } } Ok(()) } pub fn wait(&mut self) -> Result<ProcessStatus> { match &self.status { ProcessStatus::Exited(_) | ProcessStatus::Signaled(_) => { return Ok(self.status); } _ => {} } let pid = self.pid.unwrap(); loop { match waitpid(Pid::from_raw(-1), None)? { WaitStatus::PtraceEvent(..) => {} WaitStatus::PtraceSyscall(..) => {} WaitStatus::Exited(x, exitcode) => { if x != pid { continue; } self.status = ProcessStatus::Exited(exitcode as u8); return Ok(self.status); } WaitStatus::Signaled(x, signal, _) => { if x != pid { continue; } self.status = ProcessStatus::Signaled(signal); return Ok(self.status); } WaitStatus::Stopped(_, _) => unreachable!(), WaitStatus::Continued(_) => unreachable!(), WaitStatus::StillAlive => unreachable!(), } } } fn prepare_root(&self) -> Result<()> { if !self.config.root.path.is_dir() { return Err(error::Error::RootfsNotDirectory { path: self.config.root.path.clone(), }); } let flag = if self.config.root_propagation != 0 { MsFlags::from_bits(self.config.root_propagation).ok_or( error::Error::InvalidRootfsPropagation(self.config.root_propagation), )? } else { MsFlags::MS_SLAVE | MsFlags::MS_REC }; mount::<str, str, str, str>(None, "/", None, flag, None)?; // make parent mount private to make sure following bind mount does not // propagate in other mount namespaces. // And also this helps pivot_root. { let myself = procfs::process::Process::myself()?; let absolute_rootfs = self.config.root.path.canonicalize()?; let parent_mount = myself .mountinfo()? .into_iter() .filter(|m| absolute_rootfs.starts_with(&m.mount_point)) .max_by(|a, b| { a.mount_point .as_os_str() .len() .cmp(&b.mount_point.as_os_str().len()) }) .ok_or(error::Error::NoParentMount { path: self.config.root.path.clone(), })?; let shared_mount = parent_mount.opt_fields.iter().any(|f| match f { procfs::process::MountOptFields::Shared(_) => true, _ => false, }); if shared_mount { // make parent mount private if it was shared. It is needed because // firstly pivot_root will fail if parent mount is shared, secondly // when we bind mount rootfs it will propagate to parent namespace // unexpectedly. mount::<str, PathBuf, str, str>( None, &parent_mount.mount_point, None, MsFlags::MS_PRIVATE, None, )?; } } mount::<PathBuf, PathBuf, str, str>( Some(&self.config.root.path), &self.config.root.path, Some("bind"), MsFlags::MS_BIND | MsFlags::MS_REC, None, )?; Ok(()) } /// Check whether if we should manually setup /dev. /// /// If user does not bind host /dev to container /dev, we must setup /dev and all devices in /dev. fn needs_setup_dev(&self) -> Result<bool> { for mount in self.config.mounts.iter() { let real_mount = mount::Mount::parse_config(&mount, &self.config.root.path)?; if real_mount.device == "bind" && real_mount.destination == PathBuf::from("/dev") { return Ok(false); } } Ok(true) } fn bind_device(&self, device: &config::Device, dest: &Path) -> Result<()> { if !dest.exists() { std::fs::File::create(dest)?; } nix::mount::mount::<PathBuf, Path, str, str>( Some(&device.path), dest, Some("bind"), nix::mount::MsFlags::MS_BIND, None, )?; Ok(()) } fn mknod_device(&self, device: &config::Device, dest: &Path) -> Result<()> { let file_mode = match device.kind.as_str() { "b" => nix::sys::stat::SFlag::S_IFBLK, // block device "c" => nix::sys::stat::SFlag::S_IFCHR, // character device "p" => nix::sys::stat::SFlag::S_IFIFO, // fifo _ => { return Err(error::Error::InvalidDeviceType { kind: device.kind.clone(), path: dest.to_path_buf(), }) } }; nix::sys::stat::mknod( dest, file_mode, match nix::sys::stat::Mode::from_bits(device.file_mode) { Some(mode) => mode, None => { return Err(error::Error::InvalidDeviceMode { path: dest.to_path_buf(), mode: device.file_mode, }) } }, nix::sys::stat::makedev(device.major, device.minor), )?; chown( dest, Some(Uid::from_raw(device.uid)), Some(Gid::from_raw(device.gid)), )?; Ok(()) } fn create_device(&self, device: &config::Device, bind: bool) -> Result<()> { let dest = join::secure_join(&self.config.root.path, &device.path)?; match dest.parent() { Some(parent) => std::fs::create_dir_all(parent)?, None => return Err(error::Error::InvalidDevicePath { path: dest }), } if bind { self.bind_device(device, &dest)?; } else { self.mknod_device(device, &dest)?; } Ok(()) } fn default_devices(&self) -> Vec<config::Device> { return vec![ config::Device { kind: "c".into(), path: "/dev/null".into(), major: 1, minor: 3, file_mode: 0666, uid: 0, gid: 0, }, config::Device { kind: "c".into(), path: "/dev/random".into(), major: 1, minor: 8, file_mode: 0666, uid: 0, gid: 0, }, config::Device { kind: "c".into(), path: "/dev/full".into(), major: 1, minor: 7, file_mode: 0666, uid: 0, gid: 0, }, config::Device { kind: "c".into(), path: "/dev/tty".into(), major: 5, minor: 0, file_mode: 0666, uid: 0, gid: 0, }, config::Device { kind: "c".into(), path: "/dev/zero".into(), major: 1, minor: 5, file_mode: 0666, uid: 0, gid: 0, }, config::Device { kind: "c".into(), path: "/dev/urandom".into(), major: 1, minor: 9, file_mode: 0666, uid: 0, gid: 0, }, ]; } fn create_devices(&self) -> Result<()> { let bind = system::is_running_in_user_namespace() || config_linux::has_namespace(&self.config, namespace::Namespace::User); let mask = nix::sys::stat::umask(nix::sys::stat::Mode::empty()); defer! { nix::sys::stat::umask(mask); } let mut created = std::collections::HashSet::new(); for device in self .config .linux .devices .iter() .chain(self.default_devices().iter()) { if device.path == PathBuf::from("/dev/ptmx") { // Setup /dev/ptmx by setup_dev_ptmx continue; } if created.contains(&device.path) { continue; } created.insert(device.path.clone()); self.create_device(&device, bind)?; } Ok(()) } fn setup_ptmx(&self) -> io::Result<()> { let dest = self.config.root.path.join("dev/ptmx"); if dest.exists() { std::fs::remove_file(&dest)?; } std::os::unix::fs::symlink("pts/ptmx", &dest)?; Ok(()) } fn setup_dev_symlinks(&self) -> Result<()> { let kcore: PathBuf = "/proc/kcore".into(); if kcore.exists() { std::os::unix::fs::symlink(&kcore, self.config.root.path.join("dev/core")).map_err( |e| error::Error::DevSymlinksFailure { src: kcore.into(), destination: self.config.root.path.join("dev/core"), error: e, }, )?; } for link in [ ("/proc/self/fd", "dev/fd"), ("/proc/self/fd/0", "dev/stdin"), ("/proc/self/fd/1", "dev/stdout"), ("/proc/self/fd/2", "dev/stderr"), ] .iter() { // TODO: maybe we should ignore failure of linking to a existing file. std::os::unix::fs::symlink(link.0, self.config.root.path.join(link.1)).map_err( |e| error::Error::DevSymlinksFailure { src: link.0.into(), destination: self.config.root.path.join(link.1), error: e, }, )?; } Ok(()) } fn pivot_root(&self) -> Result<()> { let old_root_fd = nix::fcntl::open( "/", nix::fcntl::OFlag::O_DIRECTORY | nix::fcntl::OFlag::O_RDONLY, nix::sys::stat::Mode::empty(), )?; defer! { close(old_root_fd); } let new_root_fd = nix::fcntl::open( &self.config.root.path, nix::fcntl::OFlag::O_DIRECTORY | nix::fcntl::OFlag::O_RDONLY, nix::sys::stat::Mode::empty(), )?; defer! { close(new_root_fd); } fchdir(new_root_fd)?; // Change root mount in the mount namespace to our rootfs. // And mount old root mount to the same directory. pivot_root(".", ".")?; // We need to umount old root. fchdir(old_root_fd)?; // Make old root slave to make sure our umount will not propagate to the host. mount::<str, str, str, str>(None, ".", None, MsFlags::MS_SLAVE | MsFlags::MS_REC, None)?; // Unmount the old root mount mounted by pivot_root. umount2(".", MntFlags::MNT_DETACH)?; // Change to new root. chdir("/")?; Ok(()) } fn chroot(&self) -> Result<()> { chroot(&self.config.root.path)?; chdir("/")?; Ok(()) } fn setup_rootfs(&self) -> Result<()> { self.prepare_root()?; let in_cgroup_namespace = config_linux::has_namespace(&self.config, namespace::Namespace::Cgroup); // report error as early as possible. let setup_dev = self.needs_setup_dev()?; for config_mount in self.config.mounts.iter() { let real_mount = super::mount::Mount::parse_config(&config_mount, &self.config.root.path)?; real_mount.mount(&self.config.mount_label, in_cgroup_namespace)?; } if setup_dev { self.create_devices()?; self.setup_ptmx() .map_err(|e| error::Error::DevPtmxFailure { error: e })?; self.setup_dev_symlinks()?; } if config_linux::has_namespace(&self.config, namespace::Namespace::Mount) { self.pivot_root()?; } else { self.chroot()?; } Ok(()) } fn finalize_rootfs(&self) -> Result<()> { if self.config.root.readonly { mount::<str, str, str, str>( None, "/", None, MsFlags::MS_BIND | MsFlags::MS_REMOUNT | MsFlags::MS_RDONLY, None, )?; } match self.config.process.user.umask { Some(umask) => { nix::sys::stat::umask(match nix::sys::stat::Mode::from_bits(umask) { Some(mode) => mode, None => return Err(error::Error::InvalidUmask(umask)), }); } None => { nix::sys::stat::umask( nix::sys::stat::Mode::S_IWGRP | nix::sys::stat::Mode::S_IWOTH, ); } } Ok(()) } fn enter_namespace(&self, ns: namespace::Namespace, path: Option<&String>) -> nix::Result<()> { let nstype = ns.to_clone_flag(); match path { None => nix::sched::unshare(nstype), Some(path) => { let fd = nix::fcntl::open( path.as_str(), nix::fcntl::OFlag::O_RDONLY, nix::sys::stat::Mode::empty(), )?; nix::sched::setns(fd, nstype) } } } fn update_map(&self, path: impl AsRef<Path>, map: &[config::IDMap]) -> io::Result<()> { let maplines: Vec<String> = map .iter() .map(|m| format!("{} {} {}", m.container_id, m.host_id, m.size)) .collect(); std::fs::write(path.as_ref(), maplines.join("\n")) } fn has_ns(&self, namespace: Namespace) -> Result<bool> { for namespace_config in self.config.linux.namespaces.iter() { let ns = match Namespace::try_from(namespace_config.kind.as_str()) { Ok(ns) => ns, Err(_) => { return Err(error::Error::InvalidNamespace( namespace_config.kind.clone(), )) } }; if ns == namespace { return Ok(true); } } Ok(false) } fn unshare_user_ns(&self) -> Result<()> { for namespace in self.config.linux.namespaces.iter() { let ns = match Namespace::try_from(namespace.kind.as_str()) { Ok(ns) => ns, Err(_) => return Err(error::Error::InvalidNamespace(namespace.kind.clone())), }; if ns == namespace::Namespace::User { // we first unshare user namespace, so we may have root permission to do privileged operations. if let Err(err) = self.enter_namespace(ns, namespace.path.as_ref()) { return Err(error::Error::UnshareNamespace { namespace: ns, error: err, }); } } } Ok(()) } fn setup_user_ns(&self, pid: Pid) -> Result<()> { for namespace in self.config.linux.namespaces.iter() { let ns = match Namespace::try_from(namespace.kind.as_str()) { Ok(ns) => ns, Err(_) => return Err(error::Error::InvalidNamespace(namespace.kind.clone())), }; if ns == namespace::Namespace::User { if namespace.path.is_none() { // since Linux 3.19, unprivilegd writing of /proc/self/gid_map has been disabled // unless /proc/self/setgroups is written first to permanently disable the // ability to call set groups in that user namespace. let setgroups: PathBuf = format!("/proc/{}/setgroups", pid.as_raw()).into(); if setgroups.exists() { if let Err(err) = std::fs::write(&setgroups, "deny") { return Err(error::Error::DenySetgroups(err)); } } // we only update uid/gid mappings when we are not joining an existing user namespace. if let Err(err) = self.update_map( format!("/proc/{}/uid_map", pid.as_raw()), &self.config.linux.uid_mappings, ) { return Err(error::Error::UpdateUidMapping(err)); } if !self.config.linux.gid_mappings.is_empty() { if let Err(err) = self.update_map( format!("/proc/{}/gid_map", pid.as_raw()), &self.config.linux.gid_mappings, ) { return Err(error::Error::UpdateGidMapping(err)); } } } } } Ok(()) } /// Enter namespaces specified in configuration. /// /// Please note that unshare and setns are called in parent process, not child process. /// Because PID namespace only takes effect on child processes, not the calling process. fn setup_ns(&self) -> Result<()> { for namespace in self.config.linux.namespaces.iter() { let ns = match Namespace::try_from(namespace.kind.as_str()) { Ok(ns) => ns, Err(_) => return Err(error::Error::InvalidNamespace(namespace.kind.clone())), }; if ns == namespace::Namespace::User { // we have already unshared user namespace in setup_user_ns. continue; } if let Err(err) = self.enter_namespace(ns, namespace.path.as_ref()) { return Err(error::Error::UnshareNamespace { namespace: ns, error: err, }); } } Ok(()) } /// Create cgroups specified in configuration. fn setup_cgroups(&self) -> Result<Option<cgroups_rs::Cgroup>> { if let Some(config_resources) = &self.config.linux.resources { let hier = cgroups_rs::hierarchies::auto(); let relative_paths: std::collections::HashMap<String, String> = procfs::process::Process::myself()? .cgroups()? .into_iter() .flat_map(|p| { let pathname = &p.pathname; p.controllers .into_iter() .map(|c| (c, pathname.clone())) .collect::<Vec<(String, String)>>() }) .collect(); let cgroup = cgroups_rs::Cgroup::new_with_relative_paths( hier, match &self.config.linux.cgroups_path { Some(path) => path, None => &self.name, }, relative_paths, ); let mut resources = cgroups_rs::Resources::default(); if let Some(memory) = &config_resources.memory { resources.memory.memory_soft_limit = memory.reservation; resources.memory.memory_hard_limit = memory.limit; resources.memory.memory_swap_limit = memory.swap; resources.memory.kernel_memory_limit = memory.kernel; resources.memory.kernel_tcp_memory_limit = memory.kernel_tcp; resources.memory.swappiness = memory.swappiness; if let Some(controller) = cgroup.controller_of::<cgroups_rs::memory::MemController>() { controller.apply(&resources)?; } } if let Some(cpu) = &config_resources.cpu { resources.cpu.shares = cpu.shares; resources.cpu.quota = cpu.quota; resources.cpu.period = cpu.period; resources.cpu.realtime_runtime = cpu.realtime_runtime; resources.cpu.realtime_period = cpu.realtime_period; resources.cpu.cpus = cpu.cpus.clone(); resources.cpu.mems = cpu.mems.clone(); if let Some(controller) = cgroup.controller_of::<cgroups_rs::cpu::CpuController>() { controller.apply(&resources)?; } } if let Some(pids) = &config_resources.pids { resources.pid.maximum_number_of_processes = pids.limit.map(|limit| cgroups_rs::MaxValue::Value(limit)); if let Some(controller) = cgroup.controller_of::<cgroups_rs::pid::PidController>() { controller.apply(&resources)?; } } if let Some(controller) = cgroup.controller_of::<cgroups_rs::cpuacct::CpuAcctController>() { controller.apply(&resources)?; } if !config_resources.devices.is_empty() { resources.devices.devices = config_resources .devices .iter() .map(|d| cgroups_rs::DeviceResource { allow: d.allow, devtype: match &d.kind { config::DeviceType::All => cgroups_rs::devices::DeviceType::All, config::DeviceType::Char => cgroups_rs::devices::DeviceType::Char, config::DeviceType::Block => cgroups_rs::devices::DeviceType::Block, }, major: d.major.unwrap_or(0), minor: d.minor.unwrap_or(0), access: match &d.access { Some(access) => access .chars() .filter_map(|a| match a { 'r' => Some(cgroups_rs::devices::DevicePermissions::Read), 'w' => Some(cgroups_rs::devices::DevicePermissions::Write), 'm' => Some(cgroups_rs::devices::DevicePermissions::MkNod), _ => None, }) .collect(), None => vec![], }, }) .collect(); if let Some(controller) = cgroup.controller_of::<cgroups_rs::devices::DevicesController>() { controller.apply(&resources)?; } } Ok(Some(cgroup)) } else { Ok(None) } } fn enter_cgroups(&self, pid: Pid) -> Result<()> { let cgpid = (pid.as_raw() as u64).into(); if let Some(cgroup) = &self.cgroup { if let Some(config_resources) = &self.config.linux.resources { if let Some(_) = &config_resources.memory { if let Some(controller) = cgroup.controller_of::<cgroups_rs::memory::MemController>() { controller.add_task(&cgpid)?; } } if let Some(_) = &config_resources.cpu { if let Some(controller) = cgroup.controller_of::<cgroups_rs::cpu::CpuController>() { controller.add_task(&cgpid)?; } } if let Some(_) = &config_resources.pids { if let Some(controller) = cgroup.controller_of::<cgroups_rs::pid::PidController>() { controller.add_task(&cgpid)?; } } if !config_resources.devices.is_empty() { if let Some(controller) = cgroup.controller_of::<cgroups_rs::devices::DevicesController>() { controller.add_task(&cgpid)?; } } if let Some(controller) = cgroup.controller_of::<cgroups_rs::cpuacct::CpuAcctController>() { controller.add_task(&cgpid)?; } } } Ok(()) } fn setup_hostname(&self) -> Result<()> { sethostname(self.config.hostname.as_str())?; Ok(()) } fn setup_readonly_paths(&self) -> Result<()> { for path in self.config.linux.readonly_paths.iter() { mount::<PathBuf, PathBuf, str, str>( Some(&path), &path, None, MsFlags::MS_BIND | MsFlags::MS_REC, None, )?; mount::<PathBuf, PathBuf, str, str>( Some(&path), &path, None, MsFlags::MS_BIND | MsFlags::MS_REMOUNT | MsFlags::MS_RDONLY | MsFlags::MS_REC, None, )?; } Ok(()) } fn setup_mask_paths(&self) -> Result<()> { for path in self.config.linux.masked_paths.iter() { match mount::<str, PathBuf, str, str>( Some("/dev/null"), &path, None, MsFlags::MS_BIND, None, ) { Err(nix::Error::Sys(nix::errno::Errno::ENOTDIR)) => { nix::mount::mount( Some("tmpfs"), path, Some("tmpfs"), MsFlags::MS_RDONLY, Some(format_mount_label("", self.config.mount_label.as_str()).as_str()), )?; } Err(err) => { return Err(err.into()); } _ => {} } mount::<PathBuf, PathBuf, str, str>( Some(&path), &path, None, MsFlags::MS_BIND | MsFlags::MS_REMOUNT | MsFlags::MS_RDONLY | MsFlags::MS_REC, None, )?; } Ok(()) } fn setup_no_new_privileges(&self) -> Result<()> { prctl(libc::PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)?; Ok(()) } fn convert_seccomp_action(&self, action: &str, errno: i64) -> Result<seccomp::Action> { match action { "SCMP_ACT_KILL" => Ok(seccomp::Action::Kill), "SCMP_ACT_KILL_PROCESS" => Ok(seccomp::Action::KillProcess), "SCMP_ACT_TRAP" => Ok(seccomp::Action::Trap), "SCMP_ACT_ERRNO" => Ok(seccomp::Action::Errno(errno as i32)), "SCMP_ACT_TRACE" => Ok(seccomp::Action::Trace(errno as u32)), "SCMP_ACT_ALLOW" => Ok(seccomp::Action::Allow), _ => Err(error::Error::InvalidSeccompAction { action: action.to_string(), }), } } fn convert_seccomp_op(&self, op: &str) -> Result<seccomp::Op> { match op { "SCMP_CMP_NE" => Ok(seccomp::Op::Ne), "SCMP_CMP_LT" => Ok(seccomp::Op::Lt), "SCMP_CMP_LE" => Ok(seccomp::Op::Le), "SCMP_CMP_EQ" => Ok(seccomp::Op::Eq), "SCMP_CMP_GE" => Ok(seccomp::Op::Ge), "SCMP_CMP_GT" => Ok(seccomp::Op::Gt), "SCMP_CMP_MASKED_EQ" => Ok(seccomp::Op::MaskedEq), _ => Err(error::Error::InvalidSeccompOp { op: op.to_string() }), } } fn setup_seccomp(&self) -> Result<()> { if let Some(s) = &self.config.linux.seccomp { let mut context = seccomp::Context::default( self.convert_seccomp_action(&s.default_action, libc::EPERM as i64)?, )?; for syscall in s.syscalls.iter() { match syscall.nr { Some(nr) => { let mut rule = seccomp::Rule::new( nr, None, self.convert_seccomp_action(&syscall.action, syscall.errno_ret)?, ); for arg in syscall.args.iter() { let mut compare = seccomp::Compare::arg(arg.index) .with(arg.value) .using(self.convert_seccomp_op(&arg.op)?); if let Some(value2) = arg.value_two { compare = compare.and(value2); } match compare.build() { Some(cmp) => rule.add_comparison(cmp), None => { return Err(error::Error::InvalidSeccompArg { index: arg.index, value: arg.value, value_two: arg.value_two, op: arg.op.clone(), }) } }; } context.add_rule(rule)?; } None => return Err(error::Error::InvalidSeccompNr), }; } context.load()?; } Ok(()) } fn convert_capabilities(capabilities: &Vec<String>) -> Result<Vec<capabilities::Capability>> { let mut result = Vec::new(); for cap in capabilities { result.push(map_capability(cap)?); } return Ok(result); } fn setup_capabilities(&self) -> Result<()> { use capabilities::*; let mut cap = Capabilities::new()?; if let Some(allowed_capabilities) = &self.config.process.capabilities { let effective: Vec<Capability> = LinuxProcess::convert_capabilities(&allowed_capabilities.effective)?; cap.update(&effective, Flag::Effective, true); let permitted: Vec<Capability> = LinuxProcess::convert_capabilities(&allowed_capabilities.permitted)?; cap.update(&permitted, Flag::Permitted, true); let inheritable: Vec<Capability> = LinuxProcess::convert_capabilities(&allowed_capabilities.inheritable)?; cap.update(&inheritable, Flag::Inheritable, true); if let Err(err) = cap.apply() { return Err(error::Error::CapabilityError(err)); } } Ok(()) } fn finalize_namespace(&self) -> Result<()> { for &(from, to) in self.mapped_fds.iter() { if let Err(err) = nix::unistd::dup2(from, to) { return Err(error::Error::MappingFileDescriptor { from, to, error: err, }); } } // Close all fds other than stdin, stdout, stderr. close_on_exec_from(3, &self.mapped_fds, &self.preserved_fds)?; self.setup_capabilities()?; // preserve existing capabilities while we change users. // prctl::prctl(libc::PR_SET_KEEPCAPS, 1, 0, 0, 0)?; self.setup_user()?; if let Some(cwd) = &self.config.process.cwd { if !cwd.is_dir() { return Err(error::Error::CwdNotDirectory { path: cwd.to_path_buf(), }); } chdir(cwd)?; } prctl::prctl(libc::PR_SET_KEEPCAPS, 0, 0, 0, 0)?; Ok(()) } fn setup_user(&self) -> Result<()> { let id = &self.config.process.user; let user = User::find_user(Uid::from_raw(id.uid), Gid::from_raw(id.gid))?; get_host_uid(&self.config, user.uid)?; get_host_gid(&self.config, user.gid)?; fix_stdio_permissions(&user)?; let allow_sgroups = !self.rootless_euid && std::fs::read_to_string("/proc/self/setgroups")?.trim() != "deny"; if allow_sgroups { // TODO: read additional groups. let supp_groups = &user.sgids; setgroups(&supp_groups)?; } setuid(user.uid)?; setgid(user.gid)?; if let Err(std::env::VarError::NotPresent) = std::env::var("HOME") { // if we didn't get HOME already, set it based on the user's HOME. std::env::set_var("HOME", user.home); } Ok(()) } } impl Drop for LinuxProcess { fn drop(&mut self) { if let Some(cgroup) = &self.cgroup { cgroup.delete(); } } }
36.262768
111
0.480088
fbc86a6e26a42a5045f88c130689a6bd017ea2c4
1,548
java
Java
cinema.api/src/main/java/com/sctt/cinema/api/common/enums/ReturnCodeEnum.java
duynguyen2709/sctt-cinema-api
be164aefeb1674e1e4e96050ba68f76587756ec3
[ "Apache-2.0" ]
null
null
null
cinema.api/src/main/java/com/sctt/cinema/api/common/enums/ReturnCodeEnum.java
duynguyen2709/sctt-cinema-api
be164aefeb1674e1e4e96050ba68f76587756ec3
[ "Apache-2.0" ]
1
2022-03-08T21:11:44.000Z
2022-03-08T21:11:44.000Z
cinema.api/src/main/java/com/sctt/cinema/api/common/enums/ReturnCodeEnum.java
duynguyen2709/sctt-cinema-api
be164aefeb1674e1e4e96050ba68f76587756ec3
[ "Apache-2.0" ]
1
2022-03-27T07:31:11.000Z
2022-03-27T07:31:11.000Z
package com.sctt.cinema.api.common.enums; import java.util.HashMap; public enum ReturnCodeEnum { INIT(2), SUCCESS(1), EXCEPTION(0), UNAUTHORIZE(-401), TOKEN_EXPIRED(-400), WRONG_USERNAME_OR_PASSWORD(-1), ACCOUNT_LOCKED(-2), PARAM_CLIENTID_INVALID(-3), PARAM_REQDATE_INVALID(-4), PARAM_SIG_INVALID(-5), PARAM_DATA_INVALID(-6), CHECK_SIG_NOT_MATCH(-7), TIME_LIMIT_EXCEED(-8), REPLAY_ATTACK_BLOCKED(-9), USER_NOT_FOUND(-10), SHOWTIME_NOT_FOUND(-11), THEATER_NOT_FOUND(-12), MOVIE_NOT_FOUND(-13), ROOM_NOT_FOUND(-14), BUZ_CONFIG_NOT_FOUND(-15), TICKET_NOT_FOUND(-16), BOOKED_SEAT_NOT_FOUND(-17), SEAT_NOT_FOUND(-18), SEAT_NOT_EMPTY(-19), DATA_NOT_VALID(-20), PARAM_TYPE_INVALID(-21), PARAM_ID_INVALID(-22), PARAM_DATE_INVALID(-23), TICKET_CANCELLED(-24), TICKET_PAID(-25), SHOWTIME_TIMEFROM_NOT_VALID(-26), ; private final int value; private static final HashMap<Integer, ReturnCodeEnum> returnMap = new HashMap<>(); ReturnCodeEnum(int value) { this.value = value; } public int getValue() { return this.value; } public static ReturnCodeEnum fromInt(int iValue) { return returnMap.get(iValue); } public String toString() { return this.name(); } static { ReturnCodeEnum[] var0 = values(); for (ReturnCodeEnum errorCodeEnum : var0) { returnMap.put(errorCodeEnum.value, errorCodeEnum); } } }
20.103896
86
0.641473
e4dbf4e58d7657ba8e22869d2e6442c33e0a1ff7
361
swift
Swift
GooglePlacesSelector/Classes/GooglePlacesDetailStruct.swift
smifsud/GooglePlacesSelector
bd989fd1e9f4cda2532acf1ce3507421a24acad9
[ "MIT" ]
null
null
null
GooglePlacesSelector/Classes/GooglePlacesDetailStruct.swift
smifsud/GooglePlacesSelector
bd989fd1e9f4cda2532acf1ce3507421a24acad9
[ "MIT" ]
null
null
null
GooglePlacesSelector/Classes/GooglePlacesDetailStruct.swift
smifsud/GooglePlacesSelector
bd989fd1e9f4cda2532acf1ce3507421a24acad9
[ "MIT" ]
null
null
null
// // GooglePlacesDetailStruct.swift // sort // // Created by Spiro Mifsud on 1/20/17. // Copyright © 2017 Material Cause LLC. All rights reserved. // import Foundation struct GooglePlacesDetailStruct { var city:String = ""; var street:String = ""; var street_number:String = ""; var state:String = ""; var postal_code:String = ""; };
19
61
0.65374
fbad4ae21a8295415278052f9138883ac34fd297
1,902
java
Java
simplerest-oanda-rest/src/main/java/com/anrisoftware/simplerest/oanda/rest/OandaPropertiesProvider.java
devent/simplerest
7ec40f8966898298e34130c802e636306fc58945
[ "Apache-2.0" ]
1
2020-05-12T02:40:53.000Z
2020-05-12T02:40:53.000Z
simplerest-oanda-rest/src/main/java/com/anrisoftware/simplerest/oanda/rest/OandaPropertiesProvider.java
devent/simplerest
7ec40f8966898298e34130c802e636306fc58945
[ "Apache-2.0" ]
null
null
null
simplerest-oanda-rest/src/main/java/com/anrisoftware/simplerest/oanda/rest/OandaPropertiesProvider.java
devent/simplerest
7ec40f8966898298e34130c802e636306fc58945
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2016 Erwin Müller <erwin.mueller@deventm.org> * * This file is part of simplerest-oanda-rest. * * simplerest-oanda-rest is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by the * Free Software Foundation, either version 3 of the License, or (at your * option) any later version. * * simplerest-oanda-rest is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU Lesser General Public License * along with simplerest-oanda-rest. If not, see <http://www.gnu.org/licenses/>. */ package com.anrisoftware.simplerest.oanda.rest; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; import javax.inject.Singleton; import com.anrisoftware.propertiesutils.AbstractContextPropertiesProvider; /** * Provides OANDA properties from {@code "/oanda.properties".} * * @author Erwin Müller, erwin.mueller@deventm.de * @since 0.3 */ @SuppressWarnings("serial") @Singleton public final class OandaPropertiesProvider extends AbstractContextPropertiesProvider { private static final URL resource = OandaPropertiesProvider.class .getResource("/oanda.properties"); OandaPropertiesProvider() { super(OandaPropertiesProvider.class, resource); } public URI getOandaInstrumentsURI() throws URISyntaxException { return get().getURIProperty("instruments_uri"); } public URI getOandaPricesURI() throws URISyntaxException { return get().getURIProperty("prices_uri"); } public URI getOandaCandlesURI() throws URISyntaxException { return get().getURIProperty("candles_uri"); } }
32.237288
83
0.741851
7114d28a78d5728ba6e62a08149dc2ddad4ec37e
3,744
tsx
TypeScript
apps/browser-extension/src/popup/app/pomodoro/views/pomodoroView/PomodoroView.tsx
TheUnderScorer/time-neko
9722f64137524081750639f3c4ae359d638a7031
[ "MIT" ]
null
null
null
apps/browser-extension/src/popup/app/pomodoro/views/pomodoroView/PomodoroView.tsx
TheUnderScorer/time-neko
9722f64137524081750639f3c4ae359d638a7031
[ "MIT" ]
26
2022-03-25T20:50:54.000Z
2022-03-31T13:42:19.000Z
apps/browser-extension/src/popup/app/pomodoro/views/pomodoroView/PomodoroView.tsx
TheUnderScorer/myr
9722f64137524081750639f3c4ae359d638a7031
[ "MIT" ]
null
null
null
import React from 'react'; import { PomodoroTimerBox, usePomodoro, usePomodoroListeners, } from '@time-neko/frontend/domain/pomodoro'; import { TabbedTasksList, ToggleTasksListBtn, useIsTaskListHidden, useTasksListeners, } from '@time-neko/frontend/domain/tasks'; import { Box, Button, CenterContainer, DropdownMenu, Loading, } from '@time-neko/frontend/ui'; import { useAppMenu } from '../../../../hooks/useAppMenu'; import { Asset } from '@time-neko/frontend/assets'; import { useMenuHeightToggle } from './useMenuHeightToggle'; import { CompletedTasksTodayCount } from '@time-neko/frontend/domain/statistics'; import { useKeyboardShortcut } from '@time-neko/frontend/keyboard-shortcuts'; import { useMutation } from '@time-neko/frontend/providers/backend-client'; import { PomodoroCommunicationMetadata, PomodoroOperations, } from '@time-neko/shared/domain/pomodoro'; import { useGetSetting } from '@time-neko/frontend/domain/settings/hooks'; const height = 570; export const PomodoroView = () => { usePomodoroListeners(); useTasksListeners(); const { query } = useIsTaskListHidden(); const resetPomodoroMutation = useMutation< PomodoroCommunicationMetadata, PomodoroOperations.Restart >(PomodoroOperations.Restart); const { pomodoro, loading } = usePomodoro(); const { data: taskSettings } = useGetSetting('taskSettings'); const menuItems = useAppMenu(); const { handleMenuOpen, handleMenuClose } = useMenuHeightToggle(); useKeyboardShortcut('restartPomodoro', (event) => { event.preventDefault(); event.stopPropagation(); resetPomodoroMutation.mutate(); }); if (loading) { return ( <CenterContainer display="flex" justifyContent="center" alignItems="center" boxSize={70} > <Loading boxSize={5} /> </CenterContainer> ); } if (!pomodoro) { return null; } return ( <CenterContainer height={query.data ? 'auto' : height} maxHeight={height} width={500} id="timer" > <DropdownMenu items={menuItems} menuListProps={{ width: '40vw', minWidth: '350px', }} menuButtonProps={{ position: 'absolute', className: 'app-menu-btn', top: 3, right: 2, zIndex: 2, width: '30px', as: Button, variant: 'nes-ghost', }} menuProps={{ onOpen: handleMenuOpen, onClose: handleMenuClose, }} > <Asset name="Ellipsis" height="20px" width="7px" sx={{ '& path, & rect': { fill: 'white', }, }} containerProps={{ display: 'block', }} /> </DropdownMenu> <PomodoroTimerBox additionalControls={ taskSettings?.showToggleTaskListBtn && ( <ToggleTasksListBtn position="absolute" left="-10px" bottom="-10px" variant="nes-ghost" /> ) } hidePomodoroStateOnEdit containerProps={{ width: '100%', pt: 5, pb: 5, }} /> {!query.data && ( <Box pt={2} flex={1} width="100%" overflow="hidden"> <TabbedTasksList sx={{ '& .chakra-tabs': { height: 'calc(100% - 40px)', overflow: 'hidden', }, }} footer={<CompletedTasksTodayCount />} listProps={{ pb: '100px', }} /> </Box> )} </CenterContainer> ); };
24
81
0.554487
cdaa6437aee72a769252c1fa5c74c9d20d285385
121
asm
Assembly
tests/symbol_label_simple/3.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
414
2016-10-14T22:39:20.000Z
2022-03-30T07:52:44.000Z
tests/symbol_label_simple/3.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
100
2018-03-22T16:12:24.000Z
2022-03-26T09:19:23.000Z
tests/symbol_label_simple/3.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
47
2017-06-29T15:12:13.000Z
2022-03-10T04:50:51.000Z
#ruledef test { ld {x} => 0x55 @ x`8 } label: ld label label: ; error: duplicate / note:_:7: first ld label
12.1
43
0.570248
916f6f894aa5da61c68d42b1f268151cc00f7a25
2,181
html
HTML
index.html
trg1984/Flippers
96f83a323bcd6dc4dc26116a0f6c15e021f3add9
[ "MIT" ]
null
null
null
index.html
trg1984/Flippers
96f83a323bcd6dc4dc26116a0f6c15e021f3add9
[ "MIT" ]
null
null
null
index.html
trg1984/Flippers
96f83a323bcd6dc4dc26116a0f6c15e021f3add9
[ "MIT" ]
null
null
null
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Flippers test</title> <script src="javascript/jquery-1.10.0.min.js" type="application/x-javascript"></script> <!--<script src="javascript/jquery-ui.min.js" type="application/x-javascript"></script>--> <script src="javascript/flippers.js" type="application/x-javascript"></script> <link rel="stylesheet" type="text/css" href="styles/flippers.css"/> <style> html, body { width: 100%; height: 100%; overflow: hidden; margin: 0; padding: 0; background-image: url('./images/irongrip.png') !important; } .box1 { display: inline-block; width: 100%; height: 100%; background-color: red; } </style> <script> $(document).ready( function() { $('.container').flippers( { // config extraCount: 4, itemSpacing: 150, // percent of width. exitSpeed: 1.5, noTransition: true, items: [ $('<div><img src="./images/covers/nocover.png" alt="8 Mile" /><span class="menuitem">Movie 1</span></div>'), $('<div><img src="./images/covers/nocover.png" alt="Airplane!" /><span class="menuitem">Movie 2</span></div>'), $('<div><img src="./images/covers/nocover.png" alt="Aladdin" /><span class="menuitem">Movie 3</span></div>'), $('<div><img src="./images/covers/nocover.png" alt="Amour" /><span class="menuitem">Movie 4</span></div>'), $('<div><img src="./images/covers/nocover.png" alt="Batman Begins" /><span class="menuitem">Movie 5</span></div>'), $('<div><img src="./images/covers/nocover.png" alt="Big Buck Bunny" /><span class="menuitem">Movie 6</span></div>'), $('<div><img src="./images/covers/nocover.png" alt="Evolution" /><span class="menuitem">Movie 7</span></div>'), $('<div><img src="./images/covers/nocover.png" alt="Supersize Me" /><span class="menuitem">Movie 8</span></div>'), $('<div><img src="./images/covers/nocover.png" alt="Talvisota" /><span class="menuitem">Movie 9</span></div>') ] } ); } ); </script> </head> <body> <div class="container"></div> </body> </html>
39.654545
124
0.596974
0b2ac6b7e4eadf029a67091b5314f24569435041
298
sql
SQL
SqlOdev7.sql
GamzeYaman/JavaBackendWebDevelopment
a40c3f182e782dbe3847481c6de28f33df279356
[ "MIT" ]
null
null
null
SqlOdev7.sql
GamzeYaman/JavaBackendWebDevelopment
a40c3f182e782dbe3847481c6de28f33df279356
[ "MIT" ]
null
null
null
SqlOdev7.sql
GamzeYaman/JavaBackendWebDevelopment
a40c3f182e782dbe3847481c6de28f33df279356
[ "MIT" ]
null
null
null
1. SELECT * FROM film GROUP BY rating 2. SELECT COUNT(film_id), 'replacement_cost' FROM film GROUP BY replacement_cost HAVING COUNT(film_id) > 50 3. SELECT COUNT(customer_id) FROM customer GROUP BY store_id 4. SELECT 'country_id', COUNT(city) FROM city GROUP BY country_id ORDER BY COUNT(city) ASC
59.6
107
0.785235
939c0f5928de887469a35eb2002bca908d298819
1,099
asm
Assembly
programs/oeis/284/A284678.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/284/A284678.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/284/A284678.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A284678: Positions of 0 in A284677; complement of A284679. ; 2,6,10,14,19,23,27,32,36,40,45,49,53,57,62,66,70,75,79,83,88,92,96,100,105,109,113,118,122,126,131,135,139,143,148,152,156,161,165,169,174,178,182,187,191,195,199,204,208,212,217,221,225,230,234,238,242,247,251,255,260,264,268,273,277,281,285,290,294,298,303,307,311,316,320,324,329,333,337,341,346,350,354,359,363,367,372,376,380,384,389,393,397,402,406,410,415,419,423,427,432,436,440,445,449,453,458,462,466,471,475,479,483,488,492,496,501,505,509,514,518,522,526,531,535,539,544,548,552,557,561,565,569,574,578,582,587,591,595,600,604,608,612,617,621,625,630,634,638,643,647,651,656,660,664,668,673,677,681,686,690,694,699,703,707,711,716,720,724,729,733,737,742,746,750,754,759,763,767,772,776,780,785,789,793,798,802,806,810,815,819,823,828,832,836,841,845,849,853,858,862,866,871,875,879,884,888,892,896,901,905,909,914,918,922,927,931,935,940,944,948,952,957,961,965,970,974,978,983,987,991,995,1000,1004,1008,1013,1017,1021,1026,1030,1034,1038,1043,1047,1051,1056,1060,1064,1069,1073 mov $1,1080 mul $1,$0 div $1,251 add $1,2
137.375
994
0.741583
9d00fad96e8f8adf13cf13437b2463cb056c0829
1,078
asm
Assembly
audio/sfx/battle_36.asm
AmateurPanda92/pokemon-rby-dx
f7ba1cc50b22d93ed176571e074a52d73360da93
[ "MIT" ]
9
2020-07-12T19:44:21.000Z
2022-03-03T23:32:40.000Z
audio/sfx/battle_36.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
audio/sfx/battle_36.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2021-03-28T18:33:43.000Z
2021-05-06T13:12:09.000Z
SFX_Battle_36_Ch4: duty 0 squarenote 2, 15, 1, 1920 squarenote 2, 15, 1, 1792 squarenote 2, 15, 1, 1936 squarenote 2, 15, 1, 1792 squarenote 2, 15, 1, 1952 squarenote 2, 15, 1, 1792 squarenote 2, 15, 1, 1968 squarenote 2, 15, 1, 1792 squarenote 2, 15, 1, 1984 squarenote 2, 15, 1, 1792 squarenote 2, 15, 1, 2000 SFX_Battle_36_branch_20930: squarenote 2, 15, 1, 1792 squarenote 2, 15, 1, 2016 loopchannel 12, SFX_Battle_36_branch_20930 squarenote 15, 15, 1, 1792 endchannel SFX_Battle_36_Ch5: dutycycle 179 squarenote 2, 15, 1, 1921 squarenote 2, 15, 1, 1793 squarenote 2, 15, 1, 1937 squarenote 2, 15, 1, 1793 squarenote 2, 15, 1, 1953 squarenote 2, 15, 1, 1793 squarenote 2, 15, 1, 1969 squarenote 2, 15, 1, 1793 squarenote 2, 15, 1, 1985 squarenote 2, 15, 1, 1793 squarenote 2, 15, 1, 2001 squarenote 2, 15, 1, 1793 squarenote 2, 15, 1, 2017 loopchannel 12, SFX_Battle_36_branch_20930 squarenote 15, 15, 1, 1793 endchannel SFX_Battle_36_Ch7: noisenote 1, 13, 1, 73 noisenote 1, 13, 1, 41 loopchannel 26, SFX_Battle_36_Ch7 endchannel
22.458333
43
0.71243
8923462f35eab93021b18e28d3718d544bfa759b
1,540
kt
Kotlin
app/src/main/java/com/rmnivnv/cryptomoon/ui/coinInfo/ICoinInfo.kt
ivnvrmn/CryptoMoon
4d1651ce680fbf49e71cafb7d49e2d49d059b5fd
[ "Apache-2.0" ]
123
2017-10-30T07:15:39.000Z
2022-02-07T08:53:22.000Z
app/src/main/java/com/rmnivnv/cryptomoon/ui/coinInfo/ICoinInfo.kt
ivnvrmn/CryptoMoon
4d1651ce680fbf49e71cafb7d49e2d49d059b5fd
[ "Apache-2.0" ]
8
2017-09-22T00:27:45.000Z
2018-01-21T08:35:52.000Z
app/src/main/java/com/rmnivnv/cryptomoon/ui/coinInfo/ICoinInfo.kt
ivnvrmn/CryptoMoon
4d1651ce680fbf49e71cafb7d49e2d49d059b5fd
[ "Apache-2.0" ]
17
2017-11-12T20:34:13.000Z
2021-05-28T20:08:06.000Z
package com.rmnivnv.cryptomoon.ui.coinInfo import com.github.mikephil.charting.data.CandleData /** * Created by ivanov_r on 17.08.2017. */ interface ICoinInfo { interface View { fun setTitle(title: String) fun setLogo(url: String) fun setMainPrice(price: String) fun drawChart(line: CandleData) fun setOpen(open: String) fun setHigh(high: String) fun setLow(low: String) fun setChange(change: String) fun setChangePct(pct: String) fun setSupply(supply: String) fun setMarketCap(cap: String) fun enableGraphLoading() fun disableGraphLoading() fun startAddTransactionActivity(from: String?, to: String?, price: String?) fun setHoldingQuantity(quantity: String) fun setHoldingValue(value: String) fun setHoldingChangePercent(pct: String) fun setHoldingChangePercentColor(color: Int) fun setHoldingProfitLoss(profitLoss: String) fun setHoldingProfitValue(value: String) fun setHoldingProfitValueColor(color: Int) fun setHoldingTradePrice(price: String) fun setHoldingTradeDate(date: String) fun enableHoldings() fun disableHoldings() fun enableEmptyGraphText() fun disableEmptyGraphText() fun setupSpinner() } interface Presenter { fun onCreate(fromArg: String, toArg: String) fun onSpinnerItemClicked(position: Int) fun onAddTransactionClicked() fun onDestroy() } }
32.765957
83
0.666234
3b379a7df02b0d15827592dfcb9effcbc8821658
1,261
c
C
src/ui_el/ui_el_setup_text.c
frolushka/libui
1375f7f62424b28095f6d9648509d5c1d90f0d83
[ "MIT" ]
1
2019-06-20T22:15:28.000Z
2019-06-20T22:15:28.000Z
src/ui_el/ui_el_setup_text.c
frolushka/libui
1375f7f62424b28095f6d9648509d5c1d90f0d83
[ "MIT" ]
null
null
null
src/ui_el/ui_el_setup_text.c
frolushka/libui
1375f7f62424b28095f6d9648509d5c1d90f0d83
[ "MIT" ]
1
2019-09-04T14:32:09.000Z
2019-09-04T14:32:09.000Z
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ui_el_setup_text.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: sbednar <sbednar@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/05/23 05:40:57 by sbednar #+# #+# */ /* Updated: 2019/05/24 19:01:28 by sbednar ### ########.fr */ /* */ /* ************************************************************************** */ #include "libui.h" int ui_el_setup_text(t_ui_main *m, t_ui_el *el, SDL_Color c, const char *font_id) { t_ui_text *t; if (!(t = (t_ui_text *)malloc(sizeof(t_ui_text)))) return (FUNCTION_FAILURE); t->font = ui_main_get_font_by_id(m, font_id); t->color.a = c.a; t->color.b = c.b; t->color.g = c.g; t->color.r = c.r; el->data = t; return (FUNCTION_SUCCESS); }
43.482759
81
0.275971
965e8e49063fee3544efb73cde8fc953f70661c4
1,315
php
PHP
gtsrc/Catalog/Form/CustomsKeywordsFormType.php
kukulis/gtcatalog
03bd5f05020020a4987e25f92de9405231b0bfe2
[ "MIT" ]
1
2020-07-08T08:52:34.000Z
2020-07-08T08:52:34.000Z
gtsrc/Catalog/Form/CustomsKeywordsFormType.php
kukulis/gtcatalog
03bd5f05020020a4987e25f92de9405231b0bfe2
[ "MIT" ]
1
2020-10-22T11:31:41.000Z
2020-10-22T11:31:41.000Z
gtsrc/Catalog/Form/CustomsKeywordsFormType.php
kukulis/gtcatalog
03bd5f05020020a4987e25f92de9405231b0bfe2
[ "MIT" ]
null
null
null
<?php /** * CustomsKeywordsFolterType.php * Created by Giedrius Tumelis. * Date: 2021-04-07 * Time: 13:34 */ namespace Gt\Catalog\Form; use Gt\Catalog\Data\CustomsKeywordsFilter; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\IntegerType; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\FormBuilderInterface; class CustomsKeywordsFormType extends AbstractType implements CustomsKeywordsFilter { private $offset=0; private $limit=30; public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('offset', IntegerType::class) ->add('limit', IntegerType::class) ->add('search', SubmitType::class) ; $builder->setMethod('get' ); } /** * @return mixed */ public function getOffset() { return $this->offset; } /** * @param mixed $offset */ public function setOffset($offset): void { $this->offset = $offset; } /** * @return mixed */ public function getLimit() { return $this->limit; } /** * @param mixed $limit */ public function setLimit($limit): void { $this->limit = $limit; } }
19.924242
83
0.610646
474f2a1edf32b2b4f8b57de28a6febf9f1457fcf
1,457
html
HTML
src/EUCLID_split_000.html
linkeddatacenter/howto-eBook
b5812a0d34b23778a3354a887215800fbbfbdd7a
[ "CC-BY-4.0" ]
null
null
null
src/EUCLID_split_000.html
linkeddatacenter/howto-eBook
b5812a0d34b23778a3354a887215800fbbfbdd7a
[ "CC-BY-4.0" ]
null
null
null
src/EUCLID_split_000.html
linkeddatacenter/howto-eBook
b5812a0d34b23778a3354a887215800fbbfbdd7a
[ "CC-BY-4.0" ]
null
null
null
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Unknown</title> <link href="stylesheet.css" rel="stylesheet" type="text/css"/> <link href="page_styles.css" rel="stylesheet" type="text/css"/> </head> <body class="calibre"> <p class="calibre1"> Edited by LinkedData.Center - October 2015 v1.00</p> <p class="calibre1"> This book is derived from the results of the EU FP7 EUCLID project of the European Community under the Information and Communication Technologies (ICT) theme of the 7th Framework Programme for Research and Development. This document does not represent the opinion of the original Euclid partners and of the European Commission. The European Commission and the Euclid project is not responsible for any use that might be made of its content.</p> <p><b>Acknowledges</b>: E. Fagnoni, E. Norton, B. Acosta, M. Maleshkova, M. Domingue, J., Mikroyannidis, A. Mulholland .</p> <p class="calibre1"><a href="http://creativecommons.org/licenses/by/3.0/" rel="license" target="_blank"><img alt="Creative Commons License" src="http://i.creativecommons.org/l/by/3.0/88x31.png" style="border-width: 0px;"/></a></p> <p>Except for third party materials and otherwise stated, the content of this site is made available under a <a href="http://creativecommons.org/licenses/by/3.0" rel="license" target="_blank">Creative Commons Attribution 3.0 Unported License</a>.</p> </body></html>
76.684211
446
0.733013
83deea23a067824e614994216424fe452dbf1e1c
3,194
go
Go
internal/cli/command/cluster/config.go
xybots/banzai-cli
9676ca6558a919604e7a5590cb0d4a2b73b97b13
[ "Apache-2.0" ]
30
2018-12-19T13:30:26.000Z
2022-02-09T11:08:26.000Z
internal/cli/command/cluster/config.go
xybots/banzai-cli
9676ca6558a919604e7a5590cb0d4a2b73b97b13
[ "Apache-2.0" ]
115
2018-12-10T14:34:44.000Z
2021-06-29T14:49:46.000Z
internal/cli/command/cluster/config.go
xybots/banzai-cli
9676ca6558a919604e7a5590cb0d4a2b73b97b13
[ "Apache-2.0" ]
10
2019-07-06T22:28:21.000Z
2021-04-09T08:25:27.000Z
// Copyright © 2020 Banzai Cloud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package cluster import ( "context" "fmt" "io/ioutil" "path" "emperror.dev/errors" "github.com/banzaicloud/banzai-cli/internal/cli/auth" "github.com/mitchellh/go-homedir" log "github.com/sirupsen/logrus" "github.com/spf13/cobra" "github.com/banzaicloud/banzai-cli/internal/cli" clustercontext "github.com/banzaicloud/banzai-cli/internal/cli/command/cluster/context" ) type configOptions struct { clustercontext.Context path string oidc bool } func NewConfigCommand(banzaiCli cli.Cli) *cobra.Command { options := configOptions{} cmd := &cobra.Command{ Use: "config [--cluster=ID | [--cluster-name=]NAME]", Aliases: []string{"co"}, Short: "Get K8S config", RunE: func(cmd *cobra.Command, args []string) error { return runDownloadConfig(banzaiCli, options, args) }, } options.Context = clustercontext.NewClusterContext(cmd, banzaiCli, "config") flags := cmd.Flags() flags.StringVarP(&options.path, "path", "p", "", "Path to save cluster K8S config") flags.BoolVarP(&options.oidc, "oidc", "", false, "Get personal OIDC authenticated configuration") return cmd } func runDownloadConfig(banzaiCli cli.Cli, options configOptions, args []string) error { if err := options.Init(args...); err != nil { return err } var configData []byte orgId := banzaiCli.Context().OrganizationID() id := options.ClusterID() ctx := context.Background() config, _, err := banzaiCli.Client().ClustersApi.GetClusterConfig(context.Background(), orgId, id) if err != nil { return errors.WrapIf(err, "could not get cluster config") } configData = []byte(config.Data) clusterDetails, _, err := banzaiCli.Client().ClustersApi.GetCluster(ctx, orgId, id) if err != nil { return errors.WrapIf(err, "failed to get cluster details") } if clusterDetails.Oidc.Enabled && options.oidc { app := auth.NewOIDCConfigApp(banzaiCli, id, config, clusterDetails.Oidc) oidcConfig, err := auth.RunAuthServer(app) if err != nil { return errors.WrapIf(err, "failed to get OIDC config") } configData = oidcConfig } if options.path == "" { options.path = "." } // expand the path to include the home directory if the path is prefixed with `~` myPath, err := homedir.Expand(options.path) if err != nil { return errors.WrapIf(err, "failed to expand the path to include the home directory") } var p = path.Join(myPath, fmt.Sprintf("%s.yaml", options.ClusterName())) err = ioutil.WriteFile(p, configData, 0644) if err != nil { return errors.WrapIf(err, "failed to write initial repository config") } log.Infof("K8S config saved: %s", p) return nil }
28.774775
99
0.712899
e530884c93845375f4e4eff6d296d40ede133c09
31,812
ts
TypeScript
modules/core/src/routing/spline/coneSpanner/LineSweeperForPortLocations.ts
microsoft/msagljs
98bcb4c6b0e93b544e321e28c1a769f445c9d5a1
[ "MIT" ]
null
null
null
modules/core/src/routing/spline/coneSpanner/LineSweeperForPortLocations.ts
microsoft/msagljs
98bcb4c6b0e93b544e321e28c1a769f445c9d5a1
[ "MIT" ]
null
null
null
modules/core/src/routing/spline/coneSpanner/LineSweeperForPortLocations.ts
microsoft/msagljs
98bcb4c6b0e93b544e321e28c1a769f445c9d5a1
[ "MIT" ]
null
null
null
// Sweeps a given direction of cones and adds discovered edges to the graph. import {Point, ICurve} from '../../..' import {Polyline, GeomConstants, LineSegment} from '../../../math/geometry' import {Ellipse} from '../../../math/geometry/ellipse' import {TriangleOrientation} from '../../../math/geometry/point' import {PolylinePoint} from '../../../math/geometry/polylinePoint' import {RBNode} from '../../../structs/RBTree/rbNode' import {RBTree} from '../../../structs/RBTree/rbTree' import {LineSweeperBase} from '../../visibility/LineSweeperBase' import {PortObstacleEvent} from '../../visibility/PortObstacleEvent' import {VisibilityEdge} from '../../visibility/VisibilityEdge' import {VisibilityGraph} from '../../visibility/VisibilityGraph' import {VisibilityVertex} from '../../visibility/VisibilityVertex' import {BrokenConeSide} from './BrokenConeSide' import {Cone} from './Cone' import {ConeClosureEvent} from './ConeClosureEvent' import {ConeLeftSide} from './ConeLeftSide' import {ConeRightSide} from './ConeRightSide' import {ConeSide} from './ConeSide' import {ConeSideComparer} from './ConeSideComparer' import {LeftIntersectionEvent} from './LeftIntersectionEvent' import {LeftObstacleSide} from './LeftObstacleSide' import {LeftVertexEvent} from './LeftVertexEvent' import {ObstacleSide} from './ObstacleSide' import {PortLocationEvent} from './PortLocationEvent' import {RightIntersectionEvent} from './RightIntersectionEvent' import {RightObstacleSide} from './RightObstacleSide' import {RightVertexEvent} from './RightVertexEvent' import {SweepEvent} from './SweepEvent' import {VertexEvent} from './VertexEvent' // The cones can only start at ports here. export class LineSweeperForPortLocations extends LineSweeperBase /* IConeSweeper */ { ConeRightSideDirection: Point ConeLeftSideDirection: Point coneSideComparer: ConeSideComparer visibilityGraph: VisibilityGraph rightConeSides: RBTree<ConeSide> leftConeSides: RBTree<ConeSide> constructor( obstacles: Array<Polyline>, direction: Point, coneRsDir: Point, coneLsDir: Point, visibilityGraph: VisibilityGraph, portLocations: Array<Point>, ) { super(obstacles, direction) this.visibilityGraph = visibilityGraph this.ConeRightSideDirection = coneRsDir this.ConeLeftSideDirection = coneLsDir this.coneSideComparer = new ConeSideComparer(this) this.leftConeSides = new RBTree<ConeSide>((a, b) => this.coneSideComparer.Compare(<ConeSide>a, <ConeSide>b)) this.rightConeSides = new RBTree<ConeSide>((a, b) => this.coneSideComparer.Compare(<ConeSide>a, <ConeSide>b)) this.PortLocations = portLocations } PortLocations: Array<Point> static Sweep( obstacles: Array<Polyline>, direction: Point, coneAngle: number, visibilityGraph: VisibilityGraph, portLocations: Array<Point>, ) { const cs = new LineSweeperForPortLocations( obstacles, direction, direction.rotate(-coneAngle / 2), direction.rotate(coneAngle / 2), visibilityGraph, portLocations, ) cs.Calculate() } Calculate() { this.InitQueueOfEvents() for (const portLocation of this.PortLocations) super.EnqueueEvent(new PortLocationEvent(portLocation)) while (this.EventQueue.Count > 0) { this.ProcessEvent(this.EventQueue.Dequeue()) } } ProcessEvent(p: SweepEvent) { // ShowTrees(CurveFactory.CreateDiamond(3, 3, p.Site)); if (p instanceof VertexEvent) { this.ProcessVertexEvent(p) } else { if (p instanceof RightIntersectionEvent) { this.ProcessRightIntersectionEvent(p) } else { if (p instanceof LeftIntersectionEvent) { this.ProcessLeftIntersectionEvent(p) } else { if (p instanceof ConeClosureEvent) { const coneClosure = <ConeClosureEvent>p if (!coneClosure.ConeToClose.Removed) { this.RemoveCone(coneClosure.ConeToClose) } } else { if (p instanceof PortLocationEvent) { this.ProcessPortLocationEvent(p) } else { this.ProcessPointObstacleEvent(<PortObstacleEvent>p) } } this.Z = this.GetZS(p) } } } // ShowTrees(CurveFactory.CreateEllipse(3,3,p.Site)); } ProcessPointObstacleEvent(portObstacleEvent: PortObstacleEvent) { this.Z = this.GetZS(portObstacleEvent) this.GoOverConesSeeingVertexEvent(portObstacleEvent) } CreateConeOnPortLocation(sweepEvent: SweepEvent) { const cone = new Cone(sweepEvent.Site, this) const leftNode: RBNode<ConeSide> = this.InsertToTree(this.leftConeSides, (cone.LeftSide = new ConeLeftSide(cone))) const rightNode: RBNode<ConeSide> = this.InsertToTree(this.rightConeSides, (cone.RightSide = new ConeRightSide(cone))) this.LookForIntersectionWithConeRightSide(rightNode) this.LookForIntersectionWithConeLeftSide(leftNode) } ProcessPortLocationEvent(portEvent: PortLocationEvent) { this.Z = this.GetZS(portEvent) this.GoOverConesSeeingVertexEvent(portEvent) this.CreateConeOnPortLocation(portEvent) } ProcessLeftIntersectionEvent(leftIntersectionEvent: LeftIntersectionEvent) { if (leftIntersectionEvent.coneLeftSide.Removed == false) { if (Math.abs(this.GetZP(leftIntersectionEvent.EndVertex.point.sub(leftIntersectionEvent.Site))) < GeomConstants.distanceEpsilon) { // the cone is totally covered by a horizontal segment this.RemoveCone(leftIntersectionEvent.coneLeftSide.Cone) } else { this.RemoveSegFromLeftTree(leftIntersectionEvent.coneLeftSide) this.Z = this.GetZP(leftIntersectionEvent.Site) // it is safe now to restore the order const leftSide = new BrokenConeSide(leftIntersectionEvent.Site, leftIntersectionEvent.EndVertex, leftIntersectionEvent.coneLeftSide) this.InsertToTree(this.leftConeSides, leftSide) leftIntersectionEvent.coneLeftSide.Cone.LeftSide = leftSide this.LookForIntersectionOfObstacleSideAndLeftConeSide(leftIntersectionEvent.Site, leftIntersectionEvent.EndVertex) this.TryCreateConeClosureForLeftSide(leftSide) } } else { this.Z = this.GetZP(leftIntersectionEvent.Site) } } TryCreateConeClosureForLeftSide(leftSide: BrokenConeSide) { if (leftSide.Cone.RightSide instanceof ConeRightSide) { const coneRightSide = <ConeRightSide>leftSide.Cone.RightSide if ( Point.getTriangleOrientation(coneRightSide.Start, coneRightSide.Start.add(coneRightSide.Direction), leftSide.EndVertex.point) == TriangleOrientation.Clockwise ) { this.CreateConeClosureEvent(leftSide, coneRightSide) } } } CreateConeClosureEvent(brokenConeSide: BrokenConeSide, otherSide: ConeSide) { const x = Point.RayIntersectsRayInteriors(brokenConeSide.start, brokenConeSide.Direction, otherSide.Start, otherSide.Direction) super.EnqueueEvent(new ConeClosureEvent(x, brokenConeSide.Cone)) } ProcessRightIntersectionEvent(rightIntersectionEvent: RightIntersectionEvent) { // restore this.Z for the time being // this.Z = PreviousZ; if (rightIntersectionEvent.coneRightSide.Removed == false) { // it can happen that the cone side participating in the intersection is gone; // obstracted by another obstacle or because of a vertex found inside of the cone // PrintOutRightSegTree(); this.RemoveSegFromRightTree(rightIntersectionEvent.coneRightSide) this.Z = this.GetZP(rightIntersectionEvent.Site) const rightSide = new BrokenConeSide( rightIntersectionEvent.Site, rightIntersectionEvent.EndVertex, rightIntersectionEvent.coneRightSide, ) this.InsertToTree(this.rightConeSides, rightSide) rightIntersectionEvent.coneRightSide.Cone.RightSide = rightSide this.LookForIntersectionOfObstacleSideAndRightConeSide(rightIntersectionEvent.Site, rightIntersectionEvent.EndVertex) this.TryCreateConeClosureForRightSide(rightSide) } else { this.Z = this.GetZP(rightIntersectionEvent.Site) } } TryCreateConeClosureForRightSide(rightSide: BrokenConeSide) { const coneLeftSide = <ConeLeftSide>rightSide.Cone.LeftSide if (coneLeftSide != null) { if ( Point.getTriangleOrientation(coneLeftSide.Start, coneLeftSide.Start.add(coneLeftSide.Direction), rightSide.EndVertex.point) == TriangleOrientation.Counterclockwise ) { this.CreateConeClosureEvent(rightSide, coneLeftSide) } } } RemoveConesClosedBySegment(leftPoint: Point, rightPoint: Point) { this.CloseConesCoveredBySegment( leftPoint, rightPoint, this.GetZP(leftPoint) > this.GetZP(rightPoint) ? this.leftConeSides : this.rightConeSides, ) } CloseConesCoveredBySegment(leftPoint: Point, rightPoint: Point, tree: RBTree<ConeSide>) { let node: RBNode<ConeSide> = tree.findFirst( (s) => Point.getTriangleOrientation(s.Start, s.Start.add(s.Direction), leftPoint) == TriangleOrientation.Counterclockwise, ) if (node == null || Point.IntervalIntersectsRay(leftPoint, rightPoint, node.item.Start, node.item.Direction) == undefined) { return } const conesToRemove = new Array<Cone>() do { conesToRemove.push(node.item.Cone) node = tree.next(node) } while (node && Point.IntervalIntersectsRay(leftPoint, rightPoint, node.item.Start, node.item.Direction) != undefined) for (const cone of conesToRemove) this.RemoveCone(cone) } ProcessVertexEvent(vertexEvent: VertexEvent) { this.Z = this.GetZS(vertexEvent) this.GoOverConesSeeingVertexEvent(vertexEvent) this.AddConeAndEnqueueEvents(vertexEvent) } // ReSharper disable UnusedMember.Local static EllipseOnVert(vertexEvent: SweepEvent): Ellipse { // ReSharper restore UnusedMember.Local return Ellipse.mkFullEllipseNNP(2, 2, vertexEvent.Site) } // ReSharper disable UnusedMember.Local static EllipseOnPolylinePoint(pp: PolylinePoint): Ellipse { // ReSharper restore UnusedMember.Local return Ellipse.mkFullEllipseNNP(2, 2, pp.point) } // ShowTrees(params curves: ICurve[]) { // // ReSharper restore UnusedMember.Local // let l = Obstacles.Select(() => { }, new DebugCurve(100, 1, "blue", c)); // l = l.Concat(this.rightConeSides.Select(() => { }, new DebugCurve(200, 1, "brown", this.ExtendSegmentToZ(s)))); // l = l.Concat(this.leftConeSides.Select(() => { }, new DebugCurve(200, 1, "gree", this.ExtendSegmentToZ(s)))); // l = l.Concat(curves.Select(() => { }, new DebugCurve("red", c))); // l = l.Concat(this.visibilityGraph.Edges.Select(() => { }, new LineSegment(e.SourcePoint, e.TargetPoint)).Select(() => { }, new DebugCurve("marine", c))); // LayoutAlgorithmSettings.ShowDebugCurvesEnumeration(l); // } // ShowLeftTree(params curves: ICurve[]) { // let l = Obstacles.Select(() => { }, new DebugCurve(c)); // l = l.Concat(this.leftConeSides.Select(() => { }, new DebugCurve("brown", this.ExtendSegmentToZ(s)))); // l = l.Concat(curves.Select(() => { }, new DebugCurve("red", c))); // LayoutAlgorithmSettings.ShowDebugCurvesEnumeration(l); // } // ShowRightTree(params curves: ICurve[]) { // let l = Obstacles.Select(() => { }, new DebugCurve(c)); // l = l.Concat(this.rightConeSides.Select(() => { }, new DebugCurve("brown", this.ExtendSegmentToZ(s)))); // l = l.Concat(curves.Select(() => { }, new DebugCurve("red", c))); // LayoutAlgorithmSettings.ShowDebugCurvesEnumeration(l); // } // Show(params curves: ICurve[]) { // // ReSharper restore UnusedMember.Global // let l = Obstacles.Select(() => { }, new DebugCurve(100, 1, "black", c)); // l = l.Concat(curves.Select(() => { }, new DebugCurve(200, 1, "red", c))); // // foreach (var s of rightConeSides){ // // l.Add(ExtendSegmentToZ(s)); // // if (s is BrokenConeSide) // // l.Add(Diamond(s.start)); // // l.Add(ExtendSegmentToZ(s.Cone.LeftSide)); // // } // l = l.Concat(this.visibilityGraph.Edges.Select(() => { }, new LineSegment(edge.SourcePoint, edge.TargetPoint)).Select(() => { }, new DebugCurve(100, 1, "blue", c))); // LayoutAlgorithmSettings.ShowDebugCurvesEnumeration(l); // } ExtendSegmentToZ(segment: ConeSide): ICurve { const den: number = this.GetZP(segment.Direction) //Assert.assert(Math.abs(den) > GeomConstants.distanceEpsilon) const t: number = (this.Z - this.GetZP(segment.Start)) / den return LineSegment.mkPP(segment.Start, segment.Start.add(segment.Direction.mul(t))) } AddConeAndEnqueueEvents(vertexEvent: VertexEvent) { const isleftVertexEvent = vertexEvent instanceof LeftVertexEvent if (isleftVertexEvent != null) { const leftVertexEvent = <LeftVertexEvent>vertexEvent const nextPoint: PolylinePoint = vertexEvent.Vertex.nextOnPolyline this.CloseConesAtLeftVertex(leftVertexEvent, nextPoint) } else { const isRightVertexEvent = vertexEvent instanceof RightVertexEvent if (isRightVertexEvent) { const nextPoint: PolylinePoint = vertexEvent.Vertex.prevOnPolyline this.CloseConesAtRightVertex(<RightVertexEvent>vertexEvent, nextPoint) } else { this.CloseConesAtLeftVertex(vertexEvent, vertexEvent.Vertex.nextOnPolyline) this.CloseConesAtRightVertex(vertexEvent, vertexEvent.Vertex.prevOnPolyline) } } } CloseConesAtRightVertex(rightVertexEvent: VertexEvent, nextVertex: PolylinePoint) { const prevSite: Point = rightVertexEvent.Vertex.nextOnPolyline.point const prevZ: number = this.GetZP(prevSite) if (prevZ <= this.Z && this.Z - prevZ < GeomConstants.distanceEpsilon) { this.RemoveConesClosedBySegment(prevSite, rightVertexEvent.Vertex.point) } const site: Point = rightVertexEvent.Site const coneLp: Point = site.add(this.ConeLeftSideDirection) const coneRp: Point = site.add(this.ConeRightSideDirection) const nextSite: Point = nextVertex.point // try to remove the right side //try to remove the right side if (this.GetZP(site.sub(prevSite)) > GeomConstants.distanceEpsilon) this.RemoveRightSide(new RightObstacleSide(rightVertexEvent.Vertex.nextOnPolyline)) if (this.GetZP(nextSite) + GeomConstants.distanceEpsilon < this.GetZS(rightVertexEvent)) return if (!Point.PointToTheRightOfLineOrOnLine(nextSite, site, coneLp)) { //if (angle <= -coneAngle / 2) { // CreateConeOnVertex(rightVertexEvent); if (Point.PointToTheLeftOfLineOrOnLine(nextSite.add(this.DirectionPerp), nextSite, site)) this.EnqueueEventLocal(new RightVertexEvent(nextVertex)) // TryEnqueueRighVertexEvent(nextVertex); } else if (Point.PointToTheLeftOfLineOrOnLine(nextSite, site, coneRp)) { //if (angle < coneAngle / 2) { this.CaseToTheLeftOfLineOrOnLineConeRp(rightVertexEvent, nextVertex) } else { if (this.GetZP(nextSite.sub(site)) > GeomConstants.distanceEpsilon) { this.LookForIntersectionOfObstacleSideAndLeftConeSide(rightVertexEvent.Site, nextVertex) this.InsertRightSide(new RightObstacleSide(rightVertexEvent.Vertex)) } this.EnqueueEventLocal(new RightVertexEvent(nextVertex)) } } CaseToTheLeftOfLineOrOnLineConeRp(rightVertexEvent: VertexEvent, nextVertex: PolylinePoint) { this.EnqueueEventLocal(new RightVertexEvent(nextVertex)) // the obstacle side is inside of the cone // we need to create an obstacle left side segment instead of the left cone side // var cone = new Cone(rightVertexEvent.Vertex.point, this); // var obstacleSideSeg = new BrokenConeSide(cone.Apex, nextVertex, new ConeLeftSide(cone)); // cone.LeftSide = obstacleSideSeg; // cone.RightSide = new ConeRightSide(cone); // var rnode = InsertToTree(rightConeSides, cone.RightSide); // LookForIntersectionWithConeRightSide(rnode); const lnode: RBNode<ConeSide> = this.leftConeSides.findFirst((side) => LineSweeperForPortLocations.PointIsToTheLeftOfSegment(rightVertexEvent.Site, side), ) this.FixConeLeftSideIntersections(rightVertexEvent.Vertex, nextVertex, lnode) if (this.GetZP(nextVertex.point.sub(rightVertexEvent.Site)) > GeomConstants.distanceEpsilon) { this.InsertRightSide(new RightObstacleSide(rightVertexEvent.Vertex)) } } LookForIntersectionOfObstacleSideAndRightConeSide(obstacleSideStart: Point, obstacleSideVertex: PolylinePoint) { const node: RBNode<ConeSide> = this.GetLastNodeToTheLeftOfPointInRightSegmentTree(obstacleSideStart) if (node != null) { const isconeRightSide = node.item instanceof ConeRightSide if (isconeRightSide) { const x: Point = Point.IntervalIntersectsRay( obstacleSideStart, obstacleSideVertex.point, node.item.Start, this.ConeRightSideDirection, ) if (x && this.SegmentIsNotHorizontal(x, obstacleSideVertex.point)) { super.EnqueueEvent(this.CreateRightIntersectionEvent(node.item, x, obstacleSideVertex)) } } } } CreateRightIntersectionEvent( coneRightSide: ConeRightSide, intersection: Point, obstacleSideVertex: PolylinePoint, ): RightIntersectionEvent { // Assert.assert( // Math.abs(this.GetZP(obstacleSideVertex.point.sub(intersection))) > // GeomConstants.distanceEpsilon, // ) return new RightIntersectionEvent(coneRightSide, intersection, obstacleSideVertex) } GetLastNodeToTheLeftOfPointInRightSegmentTree(obstacleSideStart: Point): RBNode<ConeSide> { return this.rightConeSides.findLast((s) => LineSweeperForPortLocations.PointIsToTheRightOfSegment(obstacleSideStart, s)) } LookForIntersectionOfObstacleSideAndLeftConeSide(obstacleSideStart: Point, obstacleSideVertex: PolylinePoint) { const node: RBNode<ConeSide> = this.GetFirstNodeToTheRightOfPoint(obstacleSideStart) // ShowLeftTree(Box(obstacleSideStart)); if (node == null) { return } const coneLeftSide = <ConeLeftSide>node.item if (coneLeftSide == null) { return } const x: Point = Point.IntervalIntersectsRay( obstacleSideStart, obstacleSideVertex.point, coneLeftSide.Start, this.ConeLeftSideDirection, ) if (x) { super.EnqueueEvent(new LeftIntersectionEvent(coneLeftSide, x, obstacleSideVertex)) } } GetFirstNodeToTheRightOfPoint(p: Point): RBNode<ConeSide> { return this.leftConeSides.findFirst((s) => LineSweeperForPortLocations.PointIsToTheLeftOfSegment(p, s)) } static PointIsToTheLeftOfSegment(p: Point, seg: ConeSide): boolean { return Point.getTriangleOrientation(seg.Start, seg.Start.add(seg.Direction), p) == TriangleOrientation.Counterclockwise } static PointIsToTheRightOfSegment(p: Point, seg: ConeSide): boolean { return Point.getTriangleOrientation(seg.Start, seg.Start.add(seg.Direction), p) == TriangleOrientation.Clockwise } FixConeLeftSideIntersections(obstSideStart: PolylinePoint, obstSideEnd: PolylinePoint, rbNode: RBNode<ConeSide>) { if (rbNode != null) { const seg = rbNode.item if (seg instanceof ConeLeftSide) { const x = Point.IntervalIntersectsRay(obstSideStart.point, obstSideEnd.point, seg.Start, seg.Direction) if (x) { super.EnqueueEvent(new LeftIntersectionEvent(seg, x, obstSideEnd)) } } } } InsertToTree(tree: RBTree<ConeSide>, coneSide: ConeSide): RBNode<ConeSide> { // Assert.assert( // this.GetZP(coneSide.Direction) > GeomConstants.distanceEpsilon, // ) this.coneSideComparer.SetOperand(coneSide) return tree.insert(coneSide) } CloseConesAtLeftVertex(leftVertexEvent: VertexEvent, nextVertex: PolylinePoint) { // close segments first const prevSite: Point = leftVertexEvent.Vertex.prevOnPolyline.point const prevZ: number = prevSite.dot(this.SweepDirection) if (prevZ <= this.Z && this.Z - prevZ < GeomConstants.distanceEpsilon) { // Show( // new Ellipse(1, 1, prevSite), // CurveFactory.CreateBox(2, 2, leftVertexEvent.Vertex.point)); this.RemoveConesClosedBySegment(leftVertexEvent.Vertex.point, prevSite) } const site: Point = leftVertexEvent.Site const coneLp: Point = site.add(this.ConeLeftSideDirection) const coneRp: Point = site.add(this.ConeRightSideDirection) const nextSite: Point = nextVertex.point // SugiyamaLayoutSettings.Show(new LineSegment(site, coneLP), new LineSegment(site, coneRP), new LineSegment(site, nextSite)); if (this.GetZP(site.sub(prevSite)) > GeomConstants.distanceEpsilon) { this.RemoveLeftSide(new LeftObstacleSide(leftVertexEvent.Vertex.prevOnPolyline)) } if (Point.PointToTheRightOfLineOrOnLine(nextSite, site, site.add(this.DirectionPerp))) { // if (angle > Math.PI / 2) // CreateConeOnVertex(leftVertexEvent); //it is the last left vertex on this obstacle } else if (!Point.PointToTheLeftOfLineOrOnLine(nextSite, site, coneRp)) { // if (angle >= coneAngle / 2) { // CreateConeOnVertex(leftVertexEvent); this.EnqueueEvent(new LeftVertexEvent(nextVertex)) // we schedule LeftVertexEvent for a vertex with horizontal segment to the left on the top of the obstace } else if (!Point.PointToTheLeftOfLineOrOnLine(nextSite, site, coneLp)) { // if (angle >= -coneAngle / 2) { // we cannot completely obscure the cone here this.EnqueueEvent(new LeftVertexEvent(nextVertex)) // the obstacle side is inside of the cone // we need to create an obstacle right side segment instead of the cone side // var cone = new Cone(leftVertexEvent.Vertex.point, this); // var rightSide = new BrokenConeSide(leftVertexEvent.Vertex.point, nextVertex, // new ConeRightSide(cone)); // cone.RightSide = rightSide; // cone.LeftSide = new ConeLeftSide(cone); // LookForIntersectionWithConeLeftSide(InsertToTree(leftConeSides, cone.LeftSide)); const rbNode: RBNode<ConeSide> = this.rightConeSides.findLast((s) => LineSweeperForPortLocations.PointIsToTheRightOfSegment(site, s)) this.FixConeRightSideIntersections(leftVertexEvent.Vertex, nextVertex, rbNode) if (this.GetZP(nextVertex.point.sub(leftVertexEvent.Site)) > GeomConstants.distanceEpsilon) { this.InsertLeftSide(new LeftObstacleSide(leftVertexEvent.Vertex)) } } else { this.EnqueueEvent(new LeftVertexEvent(nextVertex)) if (this.GetZP(nextVertex.point.sub(leftVertexEvent.Site)) > GeomConstants.distanceEpsilon) { // if( angle >- Pi/2 // Assert.assert(angle > -Math.PI / 2); this.LookForIntersectionOfObstacleSideAndRightConeSide(leftVertexEvent.Site, nextVertex) this.InsertLeftSide(new LeftObstacleSide(leftVertexEvent.Vertex)) } } } RemoveCone(cone: Cone) { //Assert.assert(cone.Removed == false) cone.Removed = true this.RemoveSegFromLeftTree(cone.LeftSide) this.RemoveSegFromRightTree(cone.RightSide) } RemoveSegFromRightTree(coneSide: ConeSide) { // ShowRightTree(); //Assert.assert(coneSide.Removed == false) this.coneSideComparer.SetOperand(coneSide) let b: RBNode<ConeSide> = this.rightConeSides.remove(coneSide) coneSide.Removed = true if (b == null) { const tmpZ: number = this.Z this.Z = Math.max(this.GetZP(coneSide.Start), this.Z - 0.01) // we need to return to the past a little bit when the order was still correct this.coneSideComparer.SetOperand(coneSide) b = this.rightConeSides.remove(coneSide) this.Z = tmpZ } //Assert.assert(b != null) } RemoveSegFromLeftTree(coneSide: ConeSide) { // Assert.assert(coneSide.Removed == false) coneSide.Removed = true this.coneSideComparer.SetOperand(coneSide) let b: RBNode<ConeSide> = this.leftConeSides.remove(coneSide) if (b == null) { const tmpZ: number = this.Z this.Z = Math.max(this.GetZP(coneSide.Start), this.Z - 0.01) this.coneSideComparer.SetOperand(coneSide) b = this.leftConeSides.remove(coneSide) this.Z = tmpZ } // Assert.assert(b != null) } FixConeRightSideIntersections(obstSideStartVertex: PolylinePoint, obstSideEndVertex: PolylinePoint, rbNode: RBNode<ConeSide>) { if (rbNode != null) { const seg = <ConeRightSide>rbNode.item if (seg != null) { const x: Point = Point.IntervalIntersectsRay(obstSideStartVertex.point, obstSideEndVertex.point, seg.Start, seg.Direction) if (x) { super.EnqueueEvent(this.CreateRightIntersectionEvent(seg, x, obstSideEndVertex)) } } } } LookForIntersectionWithConeLeftSide(leftNode: RBNode<ConeSide>) { // Show(new Ellipse(1, 1, leftNode.item.start)); const coneLeftSide = leftNode.item instanceof ConeLeftSide if (coneLeftSide) { // leftNode = leftSegmentTree.TreePredecessor(leftNode); // if (leftNode != null) { // var seg = leftNode.item as ObstacleSideSegment; // if (seg != null) // TryIntersectionOfConeLeftSideAndObstacleConeSide(coneLeftSide, seg); // } const rightObstacleSide: RightObstacleSide = this.FindFirstObstacleSideToTheLeftOfPoint(leftNode.item.Start) if (rightObstacleSide != null) { this.TryIntersectionOfConeLeftSideAndObstacleSide(leftNode.item, rightObstacleSide) } } else { const seg = <BrokenConeSide>leftNode.item leftNode = this.leftConeSides.next(leftNode) if (leftNode != null) { if (leftNode instanceof ConeLeftSide) { this.TryIntersectionOfConeLeftSideAndObstacleConeSide(leftNode, seg) } } } } LookForIntersectionWithConeRightSide(rightNode: RBNode<ConeSide>) { // Show(new Ellipse(10, 5, rightNode.item.start)); if (rightNode.item instanceof ConeRightSide) { // rightNode = rightSegmentTree.TreeSuccessor(rightNode); // if (rightNode != null) { // var seg = rightNode.item as ObstacleSideSegment; // if (seg != null) // TryIntersectionOfConeRightSideAndObstacleConeSide(coneRightSide, seg); // } const leftObstacleSide: LeftObstacleSide = this.FindFirstObstacleSideToToTheRightOfPoint(rightNode.item.Start) if (leftObstacleSide != null) { this.TryIntersectionOfConeRightSideAndObstacleSide(rightNode.item, leftObstacleSide) } } else { const seg = <BrokenConeSide>rightNode.item rightNode = this.rightConeSides.previous(rightNode) if (rightNode != null) { if (rightNode.item instanceof ConeRightSide) { this.TryIntersectionOfConeRightSideAndObstacleConeSide(rightNode.item, seg) } } } } TryIntersectionOfConeRightSideAndObstacleConeSide(coneRightSide: ConeRightSide, seg: BrokenConeSide) { const x: Point = Point.IntervalIntersectsRay(seg.start, seg.End, coneRightSide.Start, coneRightSide.Direction) if (x) { super.EnqueueEvent(this.CreateRightIntersectionEvent(coneRightSide, x, seg.EndVertex)) // Show(CurveFactory.CreateDiamond(3, 3, x)); } } TryIntersectionOfConeRightSideAndObstacleSide(coneRightSide: ConeRightSide, side: ObstacleSide) { const x: Point = Point.IntervalIntersectsRay(side.Start, side.End, coneRightSide.Start, coneRightSide.Direction) if (x) { super.EnqueueEvent(this.CreateRightIntersectionEvent(coneRightSide, x, side.EndVertex)) // Show(CurveFactory.CreateDiamond(3, 3, x)); } } TryIntersectionOfConeLeftSideAndObstacleConeSide(coneLeftSide: ConeLeftSide, seg: BrokenConeSide) { const x: Point = Point.IntervalIntersectsRay(seg.start, seg.End, coneLeftSide.Start, coneLeftSide.Direction) if (x) { super.EnqueueEvent(new LeftIntersectionEvent(coneLeftSide, x, seg.EndVertex)) // Show(CurveFactory.CreateDiamond(3, 3, x)); } } TryIntersectionOfConeLeftSideAndObstacleSide(coneLeftSide: ConeLeftSide, side: ObstacleSide) { const x: Point = Point.IntervalIntersectsRay(side.Start, side.End, coneLeftSide.Start, coneLeftSide.Direction) if (x) { super.EnqueueEvent(new LeftIntersectionEvent(coneLeftSide, x, side.EndVertex)) // Show(CurveFactory.CreateDiamond(3, 3, x)); } } // static int count; GoOverConesSeeingVertexEvent(vertexEvent: SweepEvent) { let rbNode: RBNode<ConeSide> = this.FindFirstSegmentInTheRightTreeNotToTheLeftOfVertex(vertexEvent) if (rbNode == null) { return } const coneRightSide: ConeSide = rbNode.item const cone: Cone = coneRightSide.Cone const leftConeSide: ConeSide = cone.LeftSide if (LineSweeperForPortLocations.VertexIsToTheLeftOfSegment(vertexEvent, leftConeSide)) { return } const visibleCones = [cone] this.coneSideComparer.SetOperand(leftConeSide) rbNode = this.leftConeSides.find(leftConeSide) if (rbNode == null) { const tmpZ: number = this.Z this.Z = Math.max(this.GetZP(leftConeSide.Start), this.PreviousZ) // we need to return to the past when the order was still correct this.coneSideComparer.SetOperand(leftConeSide) rbNode = this.leftConeSides.find(leftConeSide) this.Z = tmpZ } rbNode = this.leftConeSides.next(rbNode) while (rbNode != null && !LineSweeperForPortLocations.VertexIsToTheLeftOfSegment(vertexEvent, rbNode.item)) { visibleCones.push(rbNode.item.Cone) rbNode = this.leftConeSides.next(rbNode) } // Show(new Ellipse(1, 1, vertexEvent.Site)); for (const c of visibleCones) { this.addEdge(c.Apex, vertexEvent.Site) this.RemoveCone(c) } } addEdge(a: Point, b: Point) { // Assert.assert(this.PortLocations.findIndex((p) => p.equal(a)) >= 0) const ab: VisibilityEdge = this.visibilityGraph.AddEdgePP(a, b) const av: VisibilityVertex = ab.Source // Assert.assert(av.point == a && ab.TargetPoint == b) // all edges adjacent to a which are different from ab const edgesToFix: VisibilityEdge[] = av.InEdges.filter((e) => e != ab).concat(Array.from(av.OutEdges.allNodes()).filter((e) => e != ab)) for (const edge of edgesToFix) { const c = (edge.Target == av ? edge.Source : edge.Target).point VisibilityGraph.RemoveEdge(edge) this.visibilityGraph.AddEdgePP(c, b) } } static VertexIsToTheLeftOfSegment(vertexEvent: SweepEvent, seg: ConeSide): boolean { return Point.getTriangleOrientation(seg.Start, seg.Start.add(seg.Direction), vertexEvent.Site) == TriangleOrientation.Counterclockwise } static VertexIsToTheRightOfSegment(vertexEvent: SweepEvent, seg: ConeSide): boolean { return Point.getTriangleOrientation(seg.Start, seg.Start.add(seg.Direction), vertexEvent.Site) == TriangleOrientation.Clockwise } FindFirstSegmentInTheRightTreeNotToTheLeftOfVertex(vertexEvent: SweepEvent): RBNode<ConeSide> { return this.rightConeSides.findFirst((s) => !LineSweeperForPortLocations.VertexIsToTheRightOfSegment(vertexEvent, s)) } EnqueueEventLocal(vertexEvent: RightVertexEvent) { if (this.GetZP(vertexEvent.Site.sub(vertexEvent.Vertex.prevOnPolyline.point)) > GeomConstants.tolerance) { return } // otherwise we enqueue the vertex twice; once as a LeftVertexEvent and once as a RightVertexEvent super.EnqueueEvent(vertexEvent) } }
43.340599
176
0.703917
00ea7fa283851625d1f531585cbe4f92e2d8c36e
1,171
swift
Swift
yowl/ResultsStore.swift
asp2insp/yowl
e5593fa9cdf202640661ac31da954d0bcd4a60fb
[ "MIT" ]
null
null
null
yowl/ResultsStore.swift
asp2insp/yowl
e5593fa9cdf202640661ac31da954d0bcd4a60fb
[ "MIT" ]
1
2015-05-18T04:54:26.000Z
2015-05-22T03:03:55.000Z
yowl/ResultsStore.swift
asp2insp/yowl
e5593fa9cdf202640661ac31da954d0bcd4a60fb
[ "MIT" ]
null
null
null
// // ResultsStore.swift // yowl // // Created by Josiah Gaskin on 5/17/15. // Copyright (c) 2015 Josiah Gaskin. All rights reserved. // import Foundation let RESULTS = Getter(keyPath:["results", "businesses"]) // ID: results class SearchResultsStore : Store { override func getInitialState() -> Immutable.State { return Immutable.toState([]) } override func initialize() { self.on("setResults", handler: { (state, results, action) -> Immutable.State in let offset = Reactor.instance.evaluateToSwift(OFFSET) as! Int if offset == 0 { return Immutable.toState(results as! AnyObject) } else { return state.mutateIn(["businesses"], withMutator: {(s) -> Immutable.State in let newResults = results as! [String:AnyObject] let newBiz = newResults["businesses"] as! [AnyObject] var result = s! for biz in newBiz { result = result.push(Immutable.toState(biz)) } return result }) } }) } }
30.815789
93
0.542272
e8e38f95869fab3f254427b463a519eb33e653c3
8,437
cpp
C++
src/fake.token.cpp
smlu/EOS-fake.token
c352f46aec1f37b331ca6ff422369f8f93ef50b3
[ "MIT" ]
null
null
null
src/fake.token.cpp
smlu/EOS-fake.token
c352f46aec1f37b331ca6ff422369f8f93ef50b3
[ "MIT" ]
null
null
null
src/fake.token.cpp
smlu/EOS-fake.token
c352f46aec1f37b331ca6ff422369f8f93ef50b3
[ "MIT" ]
null
null
null
#include "fake.token.hpp" #include <eosio/system.hpp> using namespace eosio; using namespace fake; void token::create(name issuer, asset maximum_supply) { require_auth(issuer); auto sym = maximum_supply.symbol; check(sym.is_valid(), "invalid symbol name"); check(maximum_supply.is_valid(), "invalid supply"); check(maximum_supply.amount > 0, "max-supply must be positive"); stats statstable(_self, sym.code().raw()); auto existing = statstable.find(sym.code().raw()); check(existing == statstable.end(), "token with symbol already exists"); statstable.emplace(issuer, [&](auto& s) { s.supply.symbol = maximum_supply.symbol; s.max_supply = maximum_supply; s.issuer = issuer; }); } void token::issue(name to, asset quantity, std::string memo) { auto sym = quantity.symbol; check(sym.is_valid(), "invalid symbol name"); check(memo.size() <= 256, "memo has more than 256 bytes" ); stats statstable(_self, sym.code().raw()); auto existing = statstable.find( sym.code().raw() ); check(existing != statstable.end(), "token with symbol does not exist, create token before issue"); const auto& st = *existing; require_auth(st.issuer ); check(quantity.is_valid(), "invalid quantity"); check(quantity.amount > 0, "must issue positive quantity"); check(quantity.symbol == st.supply.symbol, "symbol precision mismatch"); check(quantity.amount <= st.max_supply.amount - st.supply.amount, "quantity exceeds available supply"); statstable.modify(st, same_payer, [&](auto& s) { s.supply += quantity; }); add_balance(st.issuer, quantity, st.issuer); if(to != st.issuer) { SEND_INLINE_ACTION(*this, transfer, { st.issuer, "active"_n }, { st.issuer, to, quantity, memo } ); } } void token::retire(asset quantity, std::string memo) { auto sym = quantity.symbol; check(sym.is_valid(), "invalid symbol name"); check(memo.size() <= 256, "memo has more than 256 bytes"); stats statstable(_self, sym.code().raw()); auto existing = statstable.find( sym.code().raw() ); check(existing != statstable.end(), "token with symbol does not exist"); const auto& st = *existing; require_auth(st.issuer ); check(quantity.is_valid(), "invalid quantity"); check(quantity.amount > 0, "must retire positive quantity"); check(quantity.symbol == st.supply.symbol, "symbol precision mismatch"); statstable.modify(st, same_payer, [&](auto& s) { s.supply -= quantity; }); sub_balance( st.issuer, quantity ); } void token::transfer(name from, name to, asset quantity, std::string memo) { check(from != to, "cannot transfer to self"); require_auth(from); check(is_account(to), "to account does not exist"); auto sym = quantity.symbol.code(); stats statstable(_self, sym.raw()); const auto& st = statstable.get( sym.raw()); require_recipient(from); require_recipient(to); check(quantity.is_valid(), "invalid quantity"); check(quantity.amount > 0, "must transfer positive quantity"); check(quantity.symbol == st.supply.symbol, "symbol precision mismatch"); check(memo.size() <= 256, "memo has more than 256 bytes"); auto payer = has_auth(to) ? to : from; sub_balance(from, quantity); add_balance(to, quantity, payer); // if(from == _self) // { // auto sym_code = quantity.symbol.code().raw(); // faucets faucets(_self, sym_code); // auto fit = faucets.find(sym_code); // if(fit != faucets.end()) { // require_auth({ from, "eosio.code"_n }); // } // } // else if(_first_receiver == _self && to == _self) { auto sym_code = quantity.symbol.code().raw(); faucets faucets(_self, sym_code); auto fit = faucets.find(sym_code); if(fit != faucets.end()) { faucets.modify(fit, same_payer, [&](auto& f){ f.supply += quantity; }); } } } void token::sub_balance(name owner, asset value) { accounts from_acnts(_self, owner.value); const auto& from = from_acnts.get(value.symbol.code().raw(), "no balance object found"); check(from.balance.amount >= value.amount, "overdrawn balance"); from_acnts.modify(from, owner, [&](auto& a) { a.balance -= value; }); } void token::add_balance(name owner, asset value, name ram_payer) { accounts to_acnts(_self, owner.value); auto to = to_acnts.find(value.symbol.code().raw()); if(to == to_acnts.end()) { to_acnts.emplace(ram_payer, [&]( auto& a){ a.balance = value; }); } else { to_acnts.modify(to, same_payer, [&]( auto& a) { a.balance += value; }); } } void token::open(name owner, const symbol& symbol, name ram_payer) { require_auth(ram_payer); auto sym_code_raw = symbol.code().raw(); stats statstable(_self, sym_code_raw); const auto& st = statstable.get(sym_code_raw, "symbol does not exist"); check(st.supply.symbol == symbol, "symbol precision mismatch"); accounts acnts(_self, owner.value); auto it = acnts.find(sym_code_raw); if(it == acnts.end()) { acnts.emplace( ram_payer, [&](auto& a){ a.balance = asset{0, symbol}; }); } } void token::close(name owner, const symbol& symbol) { require_auth(owner); auto sym_code_raw = symbol.code().raw(); stats statstable(_self, sym_code_raw); const auto& st = statstable.get(sym_code_raw, "symbol does not exist"); check(st.supply.symbol == symbol, "symbol precision mismatch"); accounts acnts(_self, owner.value); auto it = acnts.find(sym_code_raw); check(it != acnts.end(), "Balance row already deleted or never existed. Action won't have any effect."); check(it->balance.amount == 0, "Cannot close because the balance is not zero."); acnts.erase(it); } void token::gettoken(name account, const symbol& sym) { require_auth(account); auto sym_code = sym.code().raw(); faucets faucets(_self, sym_code); const auto& faucet = faucets.get(sym_code, "faucet doesn't exists"); check((faucet.supply - faucet.payout).amount >= 0, "dry faucet"); fusers usr(_self, account.value); auto fit = usr.find(sym_code); if(fit == usr.end()) { usr.emplace(account, [&](auto& f){ f.sym = sym; }); fit = usr.require_find(sym_code); } auto time_now = time_point_sec(current_time_point()); check(time_now - fit->last_claim >= days(1), "reached 24 hours max faucet payout"); usr.modify(fit, account, [&](auto& f){ f.last_claim = time_now; }); faucets.modify(faucet, account, [](auto& f){ f.supply -= f.payout; }); SEND_INLINE_ACTION(*this, transfer, { _self, "active"_n }, { _self, account, faucet.payout, "faucet" } ); } void token::setfaucetpay(name owner, asset payout) { require_auth(owner); auto sym_code = payout.symbol.code().raw(); faucets faucets(_self, sym_code); auto fit = faucets.find(sym_code); check(fit != faucets.end(), "faucet doesn't exists"); check(fit->owner == owner, "unauthorized"); faucets.modify(fit, owner, [&](auto& f){ f.payout = payout; }); } void token::openfaucet(name owner, asset payout) { require_auth(owner); auto sym_code = payout.symbol.code().raw(); faucets faucets(_self, sym_code); auto fit = faucets.find(sym_code); check(fit == faucets.end(), "faucet already opened"); faucets.emplace(owner, [&](auto& f) { f.owner = owner; f.supply = asset(0, payout.symbol); f.payout = payout; }); } void token::closefaucet(name owner, const symbol& sym) { require_auth(owner); auto sym_code = sym.code().raw(); faucets faucets(_self, sym_code); auto fit = faucets.find(sym_code); if(fit == faucets.end()) { fusers usr(_self, owner.value); const auto& f = usr.get(sym.code().raw(), "faucet doesn't exists"); usr.erase(f); return; } check(fit->owner == owner, "unauthorized"); if(fit->supply.amount > 0) { SEND_INLINE_ACTION(*this, transfer, { _self, "active"_n }, { _self, fit->owner, fit->supply, "faucet closed" } ); } faucets.erase(fit); }
30.132143
108
0.619177
a556dca154a683687daeb482ebd623eb7a8c5f2e
219,228
dart
Dart
lib/src/fast_tag/keyword.dart
jfphilbin/code_gen
69ca0052f46508eb92f2010228e756c0a11ffade
[ "BSD-3-Clause" ]
null
null
null
lib/src/fast_tag/keyword.dart
jfphilbin/code_gen
69ca0052f46508eb92f2010228e756c0a11ffade
[ "BSD-3-Clause" ]
null
null
null
lib/src/fast_tag/keyword.dart
jfphilbin/code_gen
69ca0052f46508eb92f2010228e756c0a11ffade
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2016, Open DICOMweb Project. All rights reserved. // Use of this source code is governed by the open source license // that can be found in the LICENSE file. // Author: Jim Philbin <jfphilbin@gmail.edu> // See the AUTHORS file for other contributors. import 'package:collection/collection.dart'; String getTagKeyword(int index) => (index <= 0 || index >= lKeywordsByIndex.length) ? null : lKeywordsByIndex[index]; int tagKeywordToIndex(String name) => binarySearch(sortedKeywords, name); const List<String> lKeywordsByIndex = const [ "RequestedSOPInstanceUID", "FileMetaInformationGroupLength", "FileMetaInformationVersion", "MediaStorageSOPClassUID", "MediaStorageSOPInstanceUID", "TransferSyntaxUID", "ImplementationClassUID", "ImplementationVersionName", "SourceApplicationEntityTitle", "SendingApplicationEntityTitle", "ReceivingApplicationEntityTitle", "PrivateInformationCreatorUID", "PrivateInformation", "Group4Length", "FileSetID", "FileSetDescriptorFileID", "SpecificCharacterSetOfFileSetDescriptorFile", "OffsetOfTheFirstDirectoryRecordOfTheRootDirectoryEntity", "OffsetOfTheLastDirectoryRecordOfTheRootDirectoryEntity", "FileSetConsistencyFlag", "DirectoryRecordSequence", "OffsetOfTheNextDirectoryRecord", "RecordInUseFlag", "OffsetOfReferencedLowerLevelDirectoryEntity", "DirectoryRecordType", "PrivateRecordUID", "ReferencedFileID", "MRDRDirectoryRecordOffset", "ReferencedSOPClassUIDInFile", "ReferencedSOPInstanceUIDInFile", "ReferencedTransferSyntaxUIDInFile", "NumberOfReferences", "Group8Length", "LengthToEnd", "SpecificCharacterSet", "LanguageCodeSequence", "ImageType", "RecognitionCode", "InstanceCreationDate", "InstanceCreationTime", "InstanceCreatorUID", "InstanceCoercionDateTime", "SOPClassUID", "SOPInstanceUID", "RelatedGeneralSOPClassUID", "OriginalSpecializedSOPClassUID", "StudyDate", "SeriesDate", "AcquisitionDate", "ContentDate", "OverlayDate", "CurveDate", "AcquisitionDateTime", "StudyTime", "SeriesTime", "AcquisitionTime", "ContentTime", "OverlayTime", "CurveTime", "DataSetType", "DataSetSubtype", "NuclearMedicineSeriesType", "AccessionNumber", "IssuerOfAccessionNumberSequence", "QueryRetrieveLevel", "QueryRetrieveView", "RetrieveAETitle", "InstanceAvailability", "FailedSOPInstanceUIDList", "Modality", "ModalitiesInStudy", "SOPClassesInStudy", "ConversionType", "PresentationIntentType", "Manufacturer", "InstitutionName", "InstitutionAddress", "InstitutionCodeSequence", "ReferringPhysicianName", "ReferringPhysicianAddress", "ReferringPhysicianTelephoneNumbers", "ReferringPhysicianIdentificationSequence", "CodeValue", "ExtendedCodeValue", "CodingSchemeDesignator", "CodingSchemeVersion", "CodeMeaning", "MappingResource", "ContextGroupVersion", "ContextGroupLocalVersion", "ExtendedCodeMeaning", "ContextGroupExtensionFlag", "CodingSchemeUID", "ContextGroupExtensionCreatorUID", "ContextIdentifier", "CodingSchemeIdentificationSequence", "CodingSchemeRegistry", "CodingSchemeExternalID", "CodingSchemeName", "CodingSchemeResponsibleOrganization", "ContextUID", "TimezoneOffsetFromUTC", "NetworkID", "StationName", "StudyDescription", "ProcedureCodeSequence", "SeriesDescription", "SeriesDescriptionCodeSequence", "InstitutionalDepartmentName", "PhysiciansOfRecord", "PhysiciansOfRecordIdentificationSequence", "PerformingPhysicianName", "PerformingPhysicianIdentificationSequence", "NameOfPhysiciansReadingStudy", "PhysiciansReadingStudyIdentificationSequence", "OperatorsName", "OperatorIdentificationSequence", "AdmittingDiagnosesDescription", "AdmittingDiagnosesCodeSequence", "ManufacturerModelName", "ReferencedResultsSequence", "ReferencedStudySequence", "ReferencedPerformedProcedureStepSequence", "ReferencedSeriesSequence", "ReferencedPatientSequence", "ReferencedVisitSequence", "ReferencedOverlaySequence", "ReferencedStereometricInstanceSequence", "ReferencedWaveformSequence", "ReferencedImageSequence", "ReferencedCurveSequence", "ReferencedInstanceSequence", "ReferencedRealWorldValueMappingInstanceSequence", "ReferencedSOPClassUID", "ReferencedSOPInstanceUID", "SOPClassesSupported", "ReferencedFrameNumber", "SimpleFrameList", "CalculatedFrameList", "TimeRange", "FrameExtractionSequence", "MultiFrameSourceSOPInstanceUID", "RetrieveURL", "TransactionUID", "WarningReason", "FailureReason", "FailedSOPSequence", "ReferencedSOPSequence", "StudiesContainingOtherReferencedInstancesSequence", "RelatedSeriesSequence", "LossyImageCompressionRetired", "DerivationDescription", "SourceImageSequence", "StageName", "StageNumber", "NumberOfStages", "ViewName", "ViewNumber", "NumberOfEventTimers", "NumberOfViewsInStage", "EventElapsedTimes", "EventTimerNames", "EventTimerSequence", "EventTimeOffset", "EventCodeSequence", "StartTrim", "StopTrim", "RecommendedDisplayFrameRate", "TransducerPosition", "TransducerOrientation", "AnatomicStructure", "AnatomicRegionSequence", "AnatomicRegionModifierSequence", "PrimaryAnatomicStructureSequence", "AnatomicStructureSpaceOrRegionSequence", "PrimaryAnatomicStructureModifierSequence", "TransducerPositionSequence", "TransducerPositionModifierSequence", "TransducerOrientationSequence", "TransducerOrientationModifierSequence", "AnatomicStructureSpaceOrRegionCodeSequenceTrial", "AnatomicPortalOfEntranceCodeSequenceTrial", "AnatomicApproachDirectionCodeSequenceTrial", "AnatomicPerspectiveDescriptionTrial", "AnatomicPerspectiveCodeSequenceTrial", "AnatomicLocationOfExaminingInstrumentDescriptionTrial", "AnatomicLocationOfExaminingInstrumentCodeSequenceTrial", "AnatomicStructureSpaceOrRegionModifierCodeSequenceTrial", "OnAxisBackgroundAnatomicStructureCodeSequenceTrial", "AlternateRepresentationSequence", "IrradiationEventUID", "IdentifyingComments", "FrameType", "ReferencedImageEvidenceSequence", "ReferencedRawDataSequence", "CreatorVersionUID", "DerivationImageSequence", "SourceImageEvidenceSequence", "PixelPresentation", "VolumetricProperties", "VolumeBasedCalculationTechnique", "ComplexImageComponent", "AcquisitionContrast", "DerivationCodeSequence", "ReferencedPresentationStateSequence", "ReferencedOtherPlaneSequence", "FrameDisplaySequence", "RecommendedDisplayFrameRateInFloat", "SkipFrameRangeFlag", "Group10Length", "PatientName", "PatientID", "IssuerOfPatientID", "TypeOfPatientID", "IssuerOfPatientIDQualifiersSequence", "SourcePatientGroupIdentificationSequence", "GroupOfPatientsIdentificationSequence", "SubjectRelativePositionInImage", "PatientBirthDate", "PatientBirthTime", "PatientSex", "PatientInsurancePlanCodeSequence", "PatientPrimaryLanguageCodeSequence", "PatientPrimaryLanguageModifierCodeSequence", "QualityControlSubject", "QualityControlSubjectTypeCodeSequence", "StrainDescription", "StrainNomenclature", "StrainStockNumber", "StrainSourceRegistryCodeSequence", "StrainStockSequence", "StrainSource", "StrainAdditionalInformation", "StrainCodeSequence", "GeneticModificationsSequence", "GeneticModificationsDescription", "GeneticModificationsNomenclature", "GeneticModificationsCodeSequence", "OtherPatientIDs", "OtherPatientNames", "OtherPatientIDsSequence", "PatientBirthName", "PatientAge", "PatientSize", "PatientSizeCodeSequence", "PatientWeight", "PatientAddress", "InsurancePlanIdentification", "PatientMotherBirthName", "MilitaryRank", "BranchOfService", "MedicalRecordLocator", "ReferencedPatientPhotoSequence", "MedicalAlerts", "Allergies", "CountryOfResidence", "RegionOfResidence", "PatientTelephoneNumbers", "EthnicGroup", "Occupation", "SmokingStatus", "AdditionalPatientHistory", "PregnancyStatus", "LastMenstrualDate", "PatientReligiousPreference", "PatientSpeciesDescription", "PatientSpeciesCodeSequence", "PatientSexNeutered", "AnatomicalOrientationType", "PatientBreedDescription", "PatientBreedCodeSequence", "BreedRegistrationSequence", "BreedRegistrationNumber", "BreedRegistryCodeSequence", "ResponsiblePerson", "ResponsiblePersonRole", "ResponsibleOrganization", "PatientComments", "ExaminedBodyThickness", "Group12Length", "ClinicalTrialSponsorName", "ClinicalTrialProtocolID", "ClinicalTrialProtocolName", "ClinicalTrialSiteID", "ClinicalTrialSiteName", "ClinicalTrialSubjectID", "ClinicalTrialSubjectReadingID", "ClinicalTrialTimePointID", "ClinicalTrialTimePointDescription", "ClinicalTrialCoordinatingCenterName", "PatientIdentityRemoved", "DeidentificationMethod", "DeidentificationMethodCodeSequence", "ClinicalTrialSeriesID", "ClinicalTrialSeriesDescription", "ClinicalTrialProtocolEthicsCommitteeName", "ClinicalTrialProtocolEthicsCommitteeApprovalNumber", "ConsentForClinicalTrialUseSequence", "DistributionType", "ConsentForDistributionFlag", "Group14Length", "CADFileFormat", "ComponentReferenceSystem", "ComponentManufacturingProcedure", "ComponentManufacturer", "MaterialThickness", "MaterialPipeDiameter", "MaterialIsolationDiameter", "MaterialGrade", "MaterialPropertiesDescription", "MaterialPropertiesFileFormatRetired", "MaterialNotes", "ComponentShape", "CurvatureType", "OuterDiameter", "InnerDiameter", "ActualEnvironmentalConditions", "ExpiryDate", "EnvironmentalConditions", "EvaluatorSequence", "EvaluatorNumber", "EvaluatorName", "EvaluationAttempt", "IndicationSequence", "IndicationNumber", "IndicationLabel", "IndicationDescription", "IndicationType", "IndicationDisposition", "IndicationROISequence", "IndicationPhysicalPropertySequence", "PropertyLabel", "CoordinateSystemNumberOfAxes", "CoordinateSystemAxesSequence", "CoordinateSystemAxisDescription", "CoordinateSystemDataSetMapping", "CoordinateSystemAxisNumber", "CoordinateSystemAxisType", "CoordinateSystemAxisUnits", "CoordinateSystemAxisValues", "CoordinateSystemTransformSequence", "TransformDescription", "TransformNumberOfAxes", "TransformOrderOfAxes", "TransformedAxisUnits", "CoordinateSystemTransformRotationAndScaleMatrix", "CoordinateSystemTransformTranslationMatrix", "InternalDetectorFrameTime", "NumberOfFramesIntegrated", "DetectorTemperatureSequence", "SensorName", "HorizontalOffsetOfSensor", "VerticalOffsetOfSensor", "SensorTemperature", "DarkCurrentSequence", "DarkCurrentCounts", "GainCorrectionReferenceSequence", "AirCounts", "KVUsedInGainCalibration", "MAUsedInGainCalibration", "NumberOfFramesUsedForIntegration", "FilterMaterialUsedInGainCalibration", "FilterThicknessUsedInGainCalibration", "DateOfGainCalibration", "TimeOfGainCalibration", "BadPixelImage", "CalibrationNotes", "PulserEquipmentSequence", "PulserType", "PulserNotes", "ReceiverEquipmentSequence", "AmplifierType", "ReceiverNotes", "PreAmplifierEquipmentSequence", "PreAmplifierNotes", "TransmitTransducerSequence", "ReceiveTransducerSequence", "NumberOfElements", "ElementShape", "ElementDimensionA", "ElementDimensionB", "ElementPitchA", "MeasuredBeamDimensionA", "MeasuredBeamDimensionB", "LocationOfMeasuredBeamDiameter", "NominalFrequency", "MeasuredCenterFrequency", "MeasuredBandwidth", "ElementPitchB", "PulserSettingsSequence", "PulseWidth", "ExcitationFrequency", "ModulationType", "Damping", "ReceiverSettingsSequence", "AcquiredSoundpathLength", "AcquisitionCompressionType", "AcquisitionSampleSize", "RectifierSmoothing", "DACSequence", "DACType", "DACGainPoints", "DACTimePoints", "DACAmplitude", "PreAmplifierSettingsSequence", "TransmitTransducerSettingsSequence", "ReceiveTransducerSettingsSequence", "IncidentAngle", "CouplingTechnique", "CouplingMedium", "CouplingVelocity", "ProbeCenterLocationX", "ProbeCenterLocationZ", "SoundPathLength", "DelayLawIdentifier", "GateSettingsSequence", "GateThreshold", "VelocityOfSound", "CalibrationSettingsSequence", "CalibrationProcedure", "ProcedureVersion", "ProcedureCreationDate", "ProcedureExpirationDate", "ProcedureLastModifiedDate", "CalibrationTime", "CalibrationDate", "ProbeDriveEquipmentSequence", "DriveType", "ProbeDriveNotes", "DriveProbeSequence", "ProbeInductance", "ProbeResistance", "ReceiveProbeSequence", "ProbeDriveSettingsSequence", "BridgeResistors", "ProbeOrientationAngle", "UserSelectedGainY", "UserSelectedPhase", "UserSelectedOffsetX", "UserSelectedOffsetY", "ChannelSettingsSequence", "ChannelThreshold", "ScannerSettingsSequence", "ScanProcedure", "TranslationRateX", "TranslationRateY", "ChannelOverlap", "ImageQualityIndicatorType", "ImageQualityIndicatorMaterial", "ImageQualityIndicatorSize", "LINACEnergy", "LINACOutput", "Group18Length", "ContrastBolusAgent", "ContrastBolusAgentSequence", "ContrastBolusAdministrationRouteSequence", "BodyPartExamined", "ScanningSequence", "SequenceVariant", "ScanOptions", "MRAcquisitionType", "SequenceName", "AngioFlag", "InterventionDrugInformationSequence", "InterventionDrugStopTime", "InterventionDrugDose", "InterventionDrugCodeSequence", "AdditionalDrugSequence", "Radionuclide", "Radiopharmaceutical", "EnergyWindowCenterline", "EnergyWindowTotalWidth", "InterventionDrugName", "InterventionDrugStartTime", "InterventionSequence", "TherapyType", "InterventionStatus", "TherapyDescription", "InterventionDescription", "CineRate", "InitialCineRunState", "SliceThickness", "KVP", "CountsAccumulated", "AcquisitionTerminationCondition", "EffectiveDuration", "AcquisitionStartCondition", "AcquisitionStartConditionData", "AcquisitionTerminationConditionData", "RepetitionTime", "EchoTime", "InversionTime", "NumberOfAverages", "ImagingFrequency", "ImagedNucleus", "EchoNumbers", "MagneticFieldStrength", "SpacingBetweenSlices", "NumberOfPhaseEncodingSteps", "DataCollectionDiameter", "EchoTrainLength", "PercentSampling", "PercentPhaseFieldOfView", "PixelBandwidth", "DeviceSerialNumber", "DeviceUID", "DeviceID", "PlateID", "GeneratorID", "GridID", "CassetteID", "GantryID", "SecondaryCaptureDeviceID", "HardcopyCreationDeviceID", "DateOfSecondaryCapture", "TimeOfSecondaryCapture", "SecondaryCaptureDeviceManufacturer", "HardcopyDeviceManufacturer", "SecondaryCaptureDeviceManufacturerModelName", "SecondaryCaptureDeviceSoftwareVersions", "HardcopyDeviceSoftwareVersion", "HardcopyDeviceManufacturerModelName", "SoftwareVersions", "VideoImageFormatAcquired", "DigitalImageFormatAcquired", "ProtocolName", "ContrastBolusRoute", "ContrastBolusVolume", "ContrastBolusStartTime", "ContrastBolusStopTime", "ContrastBolusTotalDose", "SyringeCounts", "ContrastFlowRate", "ContrastFlowDuration", "ContrastBolusIngredient", "ContrastBolusIngredientConcentration", "SpatialResolution", "TriggerTime", "TriggerSourceOrType", "NominalInterval", "FrameTime", "CardiacFramingType", "FrameTimeVector", "FrameDelay", "ImageTriggerDelay", "MultiplexGroupTimeOffset", "TriggerTimeOffset", "SynchronizationTrigger", "SynchronizationChannel", "TriggerSamplePosition", "RadiopharmaceuticalRoute", "RadiopharmaceuticalVolume", "RadiopharmaceuticalStartTime", "RadiopharmaceuticalStopTime", "RadionuclideTotalDose", "RadionuclideHalfLife", "RadionuclidePositronFraction", "RadiopharmaceuticalSpecificActivity", "RadiopharmaceuticalStartDateTime", "RadiopharmaceuticalStopDateTime", "BeatRejectionFlag", "LowRRValue", "HighRRValue", "IntervalsAcquired", "IntervalsRejected", "PVCRejection", "SkipBeats", "HeartRate", "CardiacNumberOfImages", "TriggerWindow", "ReconstructionDiameter", "DistanceSourceToDetector", "DistanceSourceToPatient", "EstimatedRadiographicMagnificationFactor", "GantryDetectorTilt", "GantryDetectorSlew", "TableHeight", "TableTraverse", "TableMotion", "TableVerticalIncrement", "TableLateralIncrement", "TableLongitudinalIncrement", "TableAngle", "TableType", "RotationDirection", "AngularPosition", "RadialPosition", "ScanArc", "AngularStep", "CenterOfRotationOffset", "RotationOffset", "FieldOfViewShape", "FieldOfViewDimensions", "ExposureTime", "XRayTubeCurrent", "Exposure", "ExposureInuAs", "AveragePulseWidth", "RadiationSetting", "RectificationType", "RadiationMode", "ImageAndFluoroscopyAreaDoseProduct", "FilterType", "TypeOfFilters", "IntensifierSize", "ImagerPixelSpacing", "Grid", "GeneratorPower", "CollimatorGridName", "CollimatorType", "FocalDistance", "XFocusCenter", "YFocusCenter", "FocalSpots", "AnodeTargetMaterial", "BodyPartThickness", "CompressionForce", "PaddleDescription", "DateOfLastCalibration", "TimeOfLastCalibration", "ConvolutionKernel", "UpperLowerPixelValues", "ActualFrameDuration", "CountRate", "PreferredPlaybackSequencing", "ReceiveCoilName", "TransmitCoilName", "PlateType", "PhosphorType", "ScanVelocity", "WholeBodyTechnique", "ScanLength", "AcquisitionMatrix", "InPlanePhaseEncodingDirection", "FlipAngle", "VariableFlipAngleFlag", "SAR", "dBdt", "AcquisitionDeviceProcessingDescription", "AcquisitionDeviceProcessingCode", "CassetteOrientation", "CassetteSize", "ExposuresOnPlate", "RelativeXRayExposure", "ExposureIndex", "TargetExposureIndex", "DeviationIndex", "ColumnAngulation", "TomoLayerHeight", "TomoAngle", "TomoTime", "TomoType", "TomoClass", "NumberOfTomosynthesisSourceImages", "PositionerMotion", "PositionerType", "PositionerPrimaryAngle", "PositionerSecondaryAngle", "PositionerPrimaryAngleIncrement", "PositionerSecondaryAngleIncrement", "DetectorPrimaryAngle", "DetectorSecondaryAngle", "ShutterShape", "ShutterLeftVerticalEdge", "ShutterRightVerticalEdge", "ShutterUpperHorizontalEdge", "ShutterLowerHorizontalEdge", "CenterOfCircularShutter", "RadiusOfCircularShutter", "VerticesOfThePolygonalShutter", "ShutterPresentationValue", "ShutterOverlayGroup", "ShutterPresentationColorCIELabValue", "CollimatorShape", "CollimatorLeftVerticalEdge", "CollimatorRightVerticalEdge", "CollimatorUpperHorizontalEdge", "CollimatorLowerHorizontalEdge", "CenterOfCircularCollimator", "RadiusOfCircularCollimator", "VerticesOfThePolygonalCollimator", "AcquisitionTimeSynchronized", "TimeSource", "TimeDistributionProtocol", "NTPSourceAddress", "PageNumberVector", "FrameLabelVector", "FramePrimaryAngleVector", "FrameSecondaryAngleVector", "SliceLocationVector", "DisplayWindowLabelVector", "NominalScannedPixelSpacing", "DigitizingDeviceTransportDirection", "RotationOfScannedFilm", "BiopsyTargetSequence", "TargetUID", "LocalizingCursorPosition", "CalculatedTargetPosition", "TargetLabel", "DisplayedZValue", "IVUSAcquisition", "IVUSPullbackRate", "IVUSGatedRate", "IVUSPullbackStartFrameNumber", "IVUSPullbackStopFrameNumber", "LesionNumber", "AcquisitionComments", "OutputPower", "TransducerData", "FocusDepth", "ProcessingFunction", "PostprocessingFunction", "MechanicalIndex", "BoneThermalIndex", "CranialThermalIndex", "SoftTissueThermalIndex", "SoftTissueFocusThermalIndex", "SoftTissueSurfaceThermalIndex", "DynamicRange", "TotalGain", "DepthOfScanField", "PatientPosition", "ViewPosition", "ProjectionEponymousNameCodeSequence", "ImageTransformationMatrix", "ImageTranslationVector", "Sensitivity", "SequenceOfUltrasoundRegions", "RegionSpatialFormat", "RegionDataType", "RegionFlags", "RegionLocationMinX0", "RegionLocationMinY0", "RegionLocationMaxX1", "RegionLocationMaxY1", "ReferencePixelX0", "ReferencePixelY0", "PhysicalUnitsXDirection", "PhysicalUnitsYDirection", "ReferencePixelPhysicalValueX", "ReferencePixelPhysicalValueY", "PhysicalDeltaX", "PhysicalDeltaY", "TransducerFrequency", "TransducerType", "PulseRepetitionFrequency", "DopplerCorrectionAngle", "SteeringAngle", "DopplerSampleVolumeXPositionRetired", "DopplerSampleVolumeXPosition", "DopplerSampleVolumeYPositionRetired", "DopplerSampleVolumeYPosition", "TMLinePositionX0Retired", "TMLinePositionX0", "TMLinePositionY0Retired", "TMLinePositionY0", "TMLinePositionX1Retired", "TMLinePositionX1", "TMLinePositionY1Retired", "TMLinePositionY1", "PixelComponentOrganization", "PixelComponentMask", "PixelComponentRangeStart", "PixelComponentRangeStop", "PixelComponentPhysicalUnits", "PixelComponentDataType", "NumberOfTableBreakPoints", "TableOfXBreakPoints", "TableOfYBreakPoints", "NumberOfTableEntries", "TableOfPixelValues", "TableOfParameterValues", "RWaveTimeVector", "DetectorConditionsNominalFlag", "DetectorTemperature", "DetectorType", "DetectorConfiguration", "DetectorDescription", "DetectorMode", "DetectorID", "DateOfLastDetectorCalibration", "TimeOfLastDetectorCalibration", "ExposuresOnDetectorSinceLastCalibration", "ExposuresOnDetectorSinceManufactured", "DetectorTimeSinceLastExposure", "DetectorActiveTime", "DetectorActivationOffsetFromExposure", "DetectorBinning", "DetectorElementPhysicalSize", "DetectorElementSpacing", "DetectorActiveShape", "DetectorActiveDimensions", "DetectorActiveOrigin", "DetectorManufacturerName", "DetectorManufacturerModelName", "FieldOfViewOrigin", "FieldOfViewRotation", "FieldOfViewHorizontalFlip", "PixelDataAreaOriginRelativeToFOV", "PixelDataAreaRotationAngleRelativeToFOV", "GridAbsorbingMaterial", "GridSpacingMaterial", "GridThickness", "GridPitch", "GridAspectRatio", "GridPeriod", "GridFocalDistance", "FilterMaterial", "FilterThicknessMinimum", "FilterThicknessMaximum", "FilterBeamPathLengthMinimum", "FilterBeamPathLengthMaximum", "ExposureControlMode", "ExposureControlModeDescription", "ExposureStatus", "PhototimerSetting", "ExposureTimeInuS", "XRayTubeCurrentInuA", "ContentQualification", "PulseSequenceName", "MRImagingModifierSequence", "EchoPulseSequence", "InversionRecovery", "FlowCompensation", "MultipleSpinEcho", "MultiPlanarExcitation", "PhaseContrast", "TimeOfFlightContrast", "Spoiling", "SteadyStatePulseSequence", "EchoPlanarPulseSequence", "TagAngleFirstAxis", "MagnetizationTransfer", "T2Preparation", "BloodSignalNulling", "SaturationRecovery", "SpectrallySelectedSuppression", "SpectrallySelectedExcitation", "SpatialPresaturation", "Tagging", "OversamplingPhase", "TagSpacingFirstDimension", "GeometryOfKSpaceTraversal", "SegmentedKSpaceTraversal", "RectilinearPhaseEncodeReordering", "TagThickness", "PartialFourierDirection", "CardiacSynchronizationTechnique", "ReceiveCoilManufacturerName", "MRReceiveCoilSequence", "ReceiveCoilType", "QuadratureReceiveCoil", "MultiCoilDefinitionSequence", "MultiCoilConfiguration", "MultiCoilElementName", "MultiCoilElementUsed", "MRTransmitCoilSequence", "TransmitCoilManufacturerName", "TransmitCoilType", "SpectralWidth", "ChemicalShiftReference", "VolumeLocalizationTechnique", "MRAcquisitionFrequencyEncodingSteps", "Decoupling", "DecoupledNucleus", "DecouplingFrequency", "DecouplingMethod", "DecouplingChemicalShiftReference", "KSpaceFiltering", "TimeDomainFiltering", "NumberOfZeroFills", "BaselineCorrection", "ParallelReductionFactorInPlane", "CardiacRRIntervalSpecified", "AcquisitionDuration", "FrameAcquisitionDateTime", "DiffusionDirectionality", "DiffusionGradientDirectionSequence", "ParallelAcquisition", "ParallelAcquisitionTechnique", "InversionTimes", "MetaboliteMapDescription", "PartialFourier", "EffectiveEchoTime", "MetaboliteMapCodeSequence", "ChemicalShiftSequence", "CardiacSignalSource", "DiffusionBValue", "DiffusionGradientOrientation", "VelocityEncodingDirection", "VelocityEncodingMinimumValue", "VelocityEncodingAcquisitionSequence", "NumberOfKSpaceTrajectories", "CoverageOfKSpace", "SpectroscopyAcquisitionPhaseRows", "ParallelReductionFactorInPlaneRetired", "TransmitterFrequency", "ResonantNucleus", "FrequencyCorrection", "MRSpectroscopyFOVGeometrySequence", "SlabThickness", "SlabOrientation", "MidSlabPosition", "MRSpatialSaturationSequence", "MRTimingAndRelatedParametersSequence", "MREchoSequence", "MRModifierSequence", "MRDiffusionSequence", "CardiacSynchronizationSequence", "MRAveragesSequence", "MRFOVGeometrySequence", "VolumeLocalizationSequence", "SpectroscopyAcquisitionDataColumns", "DiffusionAnisotropyType", "FrameReferenceDateTime", "MRMetaboliteMapSequence", "ParallelReductionFactorOutOfPlane", "SpectroscopyAcquisitionOutOfPlanePhaseSteps", "BulkMotionStatus", "ParallelReductionFactorSecondInPlane", "CardiacBeatRejectionTechnique", "RespiratoryMotionCompensationTechnique", "RespiratorySignalSource", "BulkMotionCompensationTechnique", "BulkMotionSignalSource", "ApplicableSafetyStandardAgency", "ApplicableSafetyStandardDescription", "OperatingModeSequence", "OperatingModeType", "OperatingMode", "SpecificAbsorptionRateDefinition", "GradientOutputType", "SpecificAbsorptionRateValue", "GradientOutput", "FlowCompensationDirection", "TaggingDelay", "RespiratoryMotionCompensationTechniqueDescription", "RespiratorySignalSourceID", "ChemicalShiftMinimumIntegrationLimitInHz", "ChemicalShiftMaximumIntegrationLimitInHz", "MRVelocityEncodingSequence", "FirstOrderPhaseCorrection", "WaterReferencedPhaseCorrection", "MRSpectroscopyAcquisitionType", "RespiratoryCyclePosition", "VelocityEncodingMaximumValue", "TagSpacingSecondDimension", "TagAngleSecondAxis", "FrameAcquisitionDuration", "MRImageFrameTypeSequence", "MRSpectroscopyFrameTypeSequence", "MRAcquisitionPhaseEncodingStepsInPlane", "MRAcquisitionPhaseEncodingStepsOutOfPlane", "SpectroscopyAcquisitionPhaseColumns", "CardiacCyclePosition", "SpecificAbsorptionRateSequence", "RFEchoTrainLength", "GradientEchoTrainLength", "ArterialSpinLabelingContrast", "MRArterialSpinLabelingSequence", "ASLTechniqueDescription", "ASLSlabNumber", "ASLSlabThickness", "ASLSlabOrientation", "ASLMidSlabPosition", "ASLContext", "ASLPulseTrainDuration", "ASLCrusherFlag", "ASLCrusherFlowLimit", "ASLCrusherDescription", "ASLBolusCutoffFlag", "ASLBolusCutoffTimingSequence", "ASLBolusCutoffTechnique", "ASLBolusCutoffDelayTime", "ASLSlabSequence", "ChemicalShiftMinimumIntegrationLimitInppm", "ChemicalShiftMaximumIntegrationLimitInppm", "CTAcquisitionTypeSequence", "AcquisitionType", "TubeAngle", "CTAcquisitionDetailsSequence", "RevolutionTime", "SingleCollimationWidth", "TotalCollimationWidth", "CTTableDynamicsSequence", "TableSpeed", "TableFeedPerRotation", "SpiralPitchFactor", "CTGeometrySequence", "DataCollectionCenterPatient", "CTReconstructionSequence", "ReconstructionAlgorithm", "ConvolutionKernelGroup", "ReconstructionFieldOfView", "ReconstructionTargetCenterPatient", "ReconstructionAngle", "ImageFilter", "CTExposureSequence", "ReconstructionPixelSpacing", "ExposureModulationType", "EstimatedDoseSaving", "CTXRayDetailsSequence", "CTPositionSequence", "TablePosition", "ExposureTimeInms", "CTImageFrameTypeSequence", "XRayTubeCurrentInmA", "ExposureInmAs", "ConstantVolumeFlag", "FluoroscopyFlag", "DistanceSourceToDataCollectionCenter", "ContrastBolusAgentNumber", "ContrastBolusIngredientCodeSequence", "ContrastAdministrationProfileSequence", "ContrastBolusUsageSequence", "ContrastBolusAgentAdministered", "ContrastBolusAgentDetected", "ContrastBolusAgentPhase", "CTDIvol", "CTDIPhantomTypeCodeSequence", "CalciumScoringMassFactorPatient", "CalciumScoringMassFactorDevice", "EnergyWeightingFactor", "CTAdditionalXRaySourceSequence", "ProjectionPixelCalibrationSequence", "DistanceSourceToIsocenter", "DistanceObjectToTableTop", "ObjectPixelSpacingInCenterOfBeam", "PositionerPositionSequence", "TablePositionSequence", "CollimatorShapeSequence", "PlanesInAcquisition", "XAXRFFrameCharacteristicsSequence", "FrameAcquisitionSequence", "XRayReceptorType", "AcquisitionProtocolName", "AcquisitionProtocolDescription", "ContrastBolusIngredientOpaque", "DistanceReceptorPlaneToDetectorHousing", "IntensifierActiveShape", "IntensifierActiveDimensions", "PhysicalDetectorSize", "PositionOfIsocenterProjection", "FieldOfViewSequence", "FieldOfViewDescription", "ExposureControlSensingRegionsSequence", "ExposureControlSensingRegionShape", "ExposureControlSensingRegionLeftVerticalEdge", "ExposureControlSensingRegionRightVerticalEdge", "ExposureControlSensingRegionUpperHorizontalEdge", "ExposureControlSensingRegionLowerHorizontalEdge", "CenterOfCircularExposureControlSensingRegion", "RadiusOfCircularExposureControlSensingRegion", "VerticesOfThePolygonalExposureControlSensingRegion", "NoName0", "ColumnAngulationPatient", "BeamAngle", "FrameDetectorParametersSequence", "CalculatedAnatomyThickness", "CalibrationSequence", "ObjectThicknessSequence", "PlaneIdentification", "FieldOfViewDimensionsInFloat", "IsocenterReferenceSystemSequence", "PositionerIsocenterPrimaryAngle", "PositionerIsocenterSecondaryAngle", "PositionerIsocenterDetectorRotationAngle", "TableXPositionToIsocenter", "TableYPositionToIsocenter", "TableZPositionToIsocenter", "TableHorizontalRotationAngle", "TableHeadTiltAngle", "TableCradleTiltAngle", "FrameDisplayShutterSequence", "AcquiredImageAreaDoseProduct", "CArmPositionerTabletopRelationship", "XRayGeometrySequence", "IrradiationEventIdentificationSequence", "XRay3DFrameTypeSequence", "ContributingSourcesSequence", "XRay3DAcquisitionSequence", "PrimaryPositionerScanArc", "SecondaryPositionerScanArc", "PrimaryPositionerScanStartAngle", "SecondaryPositionerScanStartAngle", "PrimaryPositionerIncrement", "SecondaryPositionerIncrement", "StartAcquisitionDateTime", "EndAcquisitionDateTime", "ApplicationName", "ApplicationVersion", "ApplicationManufacturer", "AlgorithmType", "AlgorithmDescription", "XRay3DReconstructionSequence", "ReconstructionDescription", "PerProjectionAcquisitionSequence", "DiffusionBMatrixSequence", "DiffusionBValueXX", "DiffusionBValueXY", "DiffusionBValueXZ", "DiffusionBValueYY", "DiffusionBValueYZ", "DiffusionBValueZZ", "DecayCorrectionDateTime", "StartDensityThreshold", "StartRelativeDensityDifferenceThreshold", "StartCardiacTriggerCountThreshold", "StartRespiratoryTriggerCountThreshold", "TerminationCountsThreshold", "TerminationDensityThreshold", "TerminationRelativeDensityThreshold", "TerminationTimeThreshold", "TerminationCardiacTriggerCountThreshold", "TerminationRespiratoryTriggerCountThreshold", "DetectorGeometry", "TransverseDetectorSeparation", "AxialDetectorDimension", "RadiopharmaceuticalAgentNumber", "PETFrameAcquisitionSequence", "PETDetectorMotionDetailsSequence", "PETTableDynamicsSequence", "PETPositionSequence", "PETFrameCorrectionFactorsSequence", "RadiopharmaceuticalUsageSequence", "AttenuationCorrectionSource", "NumberOfIterations", "NumberOfSubsets", "PETReconstructionSequence", "PETFrameTypeSequence", "TimeOfFlightInformationUsed", "ReconstructionType", "DecayCorrected", "AttenuationCorrected", "ScatterCorrected", "DeadTimeCorrected", "GantryMotionCorrected", "PatientMotionCorrected", "CountLossNormalizationCorrected", "RandomsCorrected", "NonUniformRadialSamplingCorrected", "SensitivityCalibrated", "DetectorNormalizationCorrection", "IterativeReconstructionMethod", "AttenuationCorrectionTemporalRelationship", "PatientPhysiologicalStateSequence", "PatientPhysiologicalStateCodeSequence", "DepthsOfFocus", "ExcludedIntervalsSequence", "ExclusionStartDateTime", "ExclusionDuration", "USImageDescriptionSequence", "ImageDataTypeSequence", "DataType", "TransducerScanPatternCodeSequence", "AliasedDataType", "PositionMeasuringDeviceUsed", "TransducerGeometryCodeSequence", "TransducerBeamSteeringCodeSequence", "TransducerApplicationCodeSequence", "ZeroVelocityPixelValue", "ContributingEquipmentSequence", "ContributionDateTime", "ContributionDescription", "Group20Length", "StudyInstanceUID", "SeriesInstanceUID", "StudyID", "SeriesNumber", "AcquisitionNumber", "InstanceNumber", "IsotopeNumber", "PhaseNumber", "IntervalNumber", "TimeSlotNumber", "AngleNumber", "ItemNumber", "PatientOrientation", "OverlayNumber", "CurveNumber", "LUTNumber", "ImagePosition", "ImagePositionPatient", "ImageOrientation", "ImageOrientationPatient", "Location", "FrameOfReferenceUID", "Laterality", "ImageLaterality", "ImageGeometryType", "MaskingImage", "ReportNumber", "TemporalPositionIdentifier", "NumberOfTemporalPositions", "TemporalResolution", "SynchronizationFrameOfReferenceUID", "SOPInstanceUIDOfConcatenationSource", "SeriesInStudy", "AcquisitionsInSeries", "ImagesInAcquisition", "ImagesInSeries", "AcquisitionsInStudy", "ImagesInStudy", "Reference", "PositionReferenceIndicator", "SliceLocation", "OtherStudyNumbers", "NumberOfPatientRelatedStudies", "NumberOfPatientRelatedSeries", "NumberOfPatientRelatedInstances", "NumberOfStudyRelatedSeries", "NumberOfStudyRelatedInstances", "NumberOfSeriesRelatedInstances", "SourceImageIDs", "ModifyingDeviceID", "ModifiedImageID", "ModifiedImageDate", "ModifyingDeviceManufacturer", "ModifiedImageTime", "ModifiedImageDescription", "ImageComments", "OriginalImageIdentification", "OriginalImageIdentificationNomenclature", "StackID", "InStackPositionNumber", "FrameAnatomySequence", "FrameLaterality", "FrameContentSequence", "PlanePositionSequence", "PlaneOrientationSequence", "TemporalPositionIndex", "NominalCardiacTriggerDelayTime", "NominalCardiacTriggerTimePriorToRPeak", "ActualCardiacTriggerTimePriorToRPeak", "FrameAcquisitionNumber", "DimensionIndexValues", "FrameComments", "ConcatenationUID", "InConcatenationNumber", "InConcatenationTotalNumber", "DimensionOrganizationUID", "DimensionIndexPointer", "FunctionalGroupPointer", "UnassignedSharedConvertedAttributesSequence", "UnassignedPerFrameConvertedAttributesSequence", "ConversionSourceAttributesSequence", "DimensionIndexPrivateCreator", "DimensionOrganizationSequence", "DimensionIndexSequence", "ConcatenationFrameOffsetNumber", "FunctionalGroupPrivateCreator", "NominalPercentageOfCardiacPhase", "NominalPercentageOfRespiratoryPhase", "StartingRespiratoryAmplitude", "StartingRespiratoryPhase", "EndingRespiratoryAmplitude", "EndingRespiratoryPhase", "RespiratoryTriggerType", "RRIntervalTimeNominal", "ActualCardiacTriggerDelayTime", "RespiratorySynchronizationSequence", "RespiratoryIntervalTime", "NominalRespiratoryTriggerDelayTime", "RespiratoryTriggerDelayThreshold", "ActualRespiratoryTriggerDelayTime", "ImagePositionVolume", "ImageOrientationVolume", "UltrasoundAcquisitionGeometry", "ApexPosition", "VolumeToTransducerMappingMatrix", "VolumeToTableMappingMatrix", "PatientFrameOfReferenceSource", "TemporalPositionTimeOffset", "PlanePositionVolumeSequence", "PlaneOrientationVolumeSequence", "TemporalPositionSequence", "DimensionOrganizationType", "VolumeFrameOfReferenceUID", "TableFrameOfReferenceUID", "DimensionDescriptionLabel", "PatientOrientationInFrameSequence", "FrameLabel", "AcquisitionIndex", "ContributingSOPInstancesReferenceSequence", "ReconstructionIndex", "Group22Length", "LightPathFilterPassThroughWavelength", "LightPathFilterPassBand", "ImagePathFilterPassThroughWavelength", "ImagePathFilterPassBand", "PatientEyeMovementCommanded", "PatientEyeMovementCommandCodeSequence", "SphericalLensPower", "CylinderLensPower", "CylinderAxis", "EmmetropicMagnification", "IntraOcularPressure", "HorizontalFieldOfView", "PupilDilated", "DegreeOfDilation", "StereoBaselineAngle", "StereoBaselineDisplacement", "StereoHorizontalPixelOffset", "StereoVerticalPixelOffset", "StereoRotation", "AcquisitionDeviceTypeCodeSequence", "IlluminationTypeCodeSequence", "LightPathFilterTypeStackCodeSequence", "ImagePathFilterTypeStackCodeSequence", "LensesCodeSequence", "ChannelDescriptionCodeSequence", "RefractiveStateSequence", "MydriaticAgentCodeSequence", "RelativeImagePositionCodeSequence", "CameraAngleOfView", "StereoPairsSequence", "LeftImageSequence", "RightImageSequence", "AxialLengthOfTheEye", "OphthalmicFrameLocationSequence", "ReferenceCoordinates", "DepthSpatialResolution", "MaximumDepthDistortion", "AlongScanSpatialResolution", "MaximumAlongScanDistortion", "OphthalmicImageOrientation", "DepthOfTransverseImage", "MydriaticAgentConcentrationUnitsSequence", "AcrossScanSpatialResolution", "MaximumAcrossScanDistortion", "MydriaticAgentConcentration", "IlluminationWaveLength", "IlluminationPower", "IlluminationBandwidth", "MydriaticAgentSequence", "OphthalmicAxialMeasurementsRightEyeSequence", "OphthalmicAxialMeasurementsLeftEyeSequence", "OphthalmicAxialMeasurementsDeviceType", "OphthalmicAxialLengthMeasurementsType", "OphthalmicAxialLengthSequence", "OphthalmicAxialLength", "LensStatusCodeSequence", "VitreousStatusCodeSequence", "IOLFormulaCodeSequence", "IOLFormulaDetail", "KeratometerIndex", "SourceOfOphthalmicAxialLengthCodeSequence", "TargetRefraction", "RefractiveProcedureOccurred", "RefractiveSurgeryTypeCodeSequence", "OphthalmicUltrasoundMethodCodeSequence", "OphthalmicAxialLengthMeasurementsSequence", "IOLPower", "PredictedRefractiveError", "OphthalmicAxialLengthVelocity", "LensStatusDescription", "VitreousStatusDescription", "IOLPowerSequence", "LensConstantSequence", "IOLManufacturer", "LensConstantDescription", "ImplantName", "KeratometryMeasurementTypeCodeSequence", "ImplantPartNumber", "ReferencedOphthalmicAxialMeasurementsSequence", "OphthalmicAxialLengthMeasurementsSegmentNameCodeSequence", "RefractiveErrorBeforeRefractiveSurgeryCodeSequence", "IOLPowerForExactEmmetropia", "IOLPowerForExactTargetRefraction", "AnteriorChamberDepthDefinitionCodeSequence", "LensThicknessSequence", "AnteriorChamberDepthSequence", "LensThickness", "AnteriorChamberDepth", "SourceOfLensThicknessDataCodeSequence", "SourceOfAnteriorChamberDepthDataCodeSequence", "SourceOfRefractiveMeasurementsSequence", "SourceOfRefractiveMeasurementsCodeSequence", "OphthalmicAxialLengthMeasurementModified", "OphthalmicAxialLengthDataSourceCodeSequence", "OphthalmicAxialLengthAcquisitionMethodCodeSequence", "SignalToNoiseRatio", "OphthalmicAxialLengthDataSourceDescription", "OphthalmicAxialLengthMeasurementsTotalLengthSequence", "OphthalmicAxialLengthMeasurementsSegmentalLengthSequence", "OphthalmicAxialLengthMeasurementsLengthSummationSequence", "UltrasoundOphthalmicAxialLengthMeasurementsSequence", "OpticalOphthalmicAxialLengthMeasurementsSequence", "UltrasoundSelectedOphthalmicAxialLengthSequence", "OphthalmicAxialLengthSelectionMethodCodeSequence", "OpticalSelectedOphthalmicAxialLengthSequence", "SelectedSegmentalOphthalmicAxialLengthSequence", "SelectedTotalOphthalmicAxialLengthSequence", "OphthalmicAxialLengthQualityMetricSequence", "OphthalmicAxialLengthQualityMetricTypeCodeSequence", "OphthalmicAxialLengthQualityMetricTypeDescription", "IntraocularLensCalculationsRightEyeSequence", "IntraocularLensCalculationsLeftEyeSequence", "ReferencedOphthalmicAxialLengthMeasurementQCImageSequence", "OphthalmicMappingDeviceType", "AcquisitionMethodCodeSequence", "AcquisitionMethodAlgorithmSequence", "OphthalmicThicknessMapTypeCodeSequence", "OphthalmicThicknessMappingNormalsSequence", "RetinalThicknessDefinitionCodeSequence", "PixelValueMappingToCodedConceptSequence", "MappedPixelValue", "PixelValueMappingExplanation", "OphthalmicThicknessMapQualityThresholdSequence", "OphthalmicThicknessMapThresholdQualityRating", "AnatomicStructureReferencePoint", "RegistrationToLocalizerSequence", "RegisteredLocalizerUnits", "RegisteredLocalizerTopLeftHandCorner", "RegisteredLocalizerBottomRightHandCorner", "OphthalmicThicknessMapQualityRatingSequence", "RelevantOPTAttributesSequence", "Group24Length", "VisualFieldHorizontalExtent", "VisualFieldVerticalExtent", "VisualFieldShape", "ScreeningTestModeCodeSequence", "MaximumStimulusLuminance", "BackgroundLuminance", "StimulusColorCodeSequence", "BackgroundIlluminationColorCodeSequence", "StimulusArea", "StimulusPresentationTime", "FixationSequence", "FixationMonitoringCodeSequence", "VisualFieldCatchTrialSequence", "FixationCheckedQuantity", "PatientNotProperlyFixatedQuantity", "PresentedVisualStimuliDataFlag", "NumberOfVisualStimuli", "ExcessiveFixationLossesDataFlag", "ExcessiveFixationLosses", "StimuliRetestingQuantity", "CommentsOnPatientPerformanceOfVisualField", "FalseNegativesEstimateFlag", "FalseNegativesEstimate", "NegativeCatchTrialsQuantity", "FalseNegativesQuantity", "ExcessiveFalseNegativesDataFlag", "ExcessiveFalseNegatives", "FalsePositivesEstimateFlag", "FalsePositivesEstimate", "CatchTrialsDataFlag", "PositiveCatchTrialsQuantity", "TestPointNormalsDataFlag", "TestPointNormalsSequence", "GlobalDeviationProbabilityNormalsFlag", "FalsePositivesQuantity", "ExcessiveFalsePositivesDataFlag", "ExcessiveFalsePositives", "VisualFieldTestNormalsFlag", "ResultsNormalsSequence", "AgeCorrectedSensitivityDeviationAlgorithmSequence", "GlobalDeviationFromNormal", "GeneralizedDefectSensitivityDeviationAlgorithmSequence", "LocalizedDeviationFromNormal", "PatientReliabilityIndicator", "VisualFieldMeanSensitivity", "GlobalDeviationProbability", "LocalDeviationProbabilityNormalsFlag", "LocalizedDeviationProbability", "ShortTermFluctuationCalculated", "ShortTermFluctuation", "ShortTermFluctuationProbabilityCalculated", "ShortTermFluctuationProbability", "CorrectedLocalizedDeviationFromNormalCalculated", "CorrectedLocalizedDeviationFromNormal", "CorrectedLocalizedDeviationFromNormalProbabilityCalculated", "CorrectedLocalizedDeviationFromNormalProbability", "GlobalDeviationProbabilitySequence", "LocalizedDeviationProbabilitySequence", "FovealSensitivityMeasured", "FovealSensitivity", "VisualFieldTestDuration", "VisualFieldTestPointSequence", "VisualFieldTestPointXCoordinate", "VisualFieldTestPointYCoordinate", "AgeCorrectedSensitivityDeviationValue", "StimulusResults", "SensitivityValue", "RetestStimulusSeen", "RetestSensitivityValue", "VisualFieldTestPointNormalsSequence", "QuantifiedDefect", "AgeCorrectedSensitivityDeviationProbabilityValue", "GeneralizedDefectCorrectedSensitivityDeviationFlag", "GeneralizedDefectCorrectedSensitivityDeviationValue", "GeneralizedDefectCorrectedSensitivityDeviationProbabilityValue", "MinimumSensitivityValue", "BlindSpotLocalized", "BlindSpotXCoordinate", "BlindSpotYCoordinate", "VisualAcuityMeasurementSequence", "RefractiveParametersUsedOnPatientSequence", "MeasurementLaterality", "OphthalmicPatientClinicalInformationLeftEyeSequence", "OphthalmicPatientClinicalInformationRightEyeSequence", "FovealPointNormativeDataFlag", "FovealPointProbabilityValue", "ScreeningBaselineMeasured", "ScreeningBaselineMeasuredSequence", "ScreeningBaselineType", "ScreeningBaselineValue", "AlgorithmSource", "DataSetName", "DataSetVersion", "DataSetSource", "DataSetDescription", "VisualFieldTestReliabilityGlobalIndexSequence", "VisualFieldGlobalResultsIndexSequence", "DataObservationSequence", "IndexNormalsFlag", "IndexProbability", "IndexProbabilitySequence", "Group28Length", "SamplesPerPixel", "SamplesPerPixelUsed", "PhotometricInterpretation", "ImageDimensions", "PlanarConfiguration", "NumberOfFrames", "FrameIncrementPointer", "FrameDimensionPointer", "Rows", "Columns", "Planes", "UltrasoundColorDataPresent", "NoName1", "PixelSpacing", "ZoomFactor", "ZoomCenter", "PixelAspectRatio", "ImageFormat", "ManipulatedImage", "CorrectedImage", "CompressionRecognitionCode", "CompressionCode", "CompressionOriginator", "CompressionLabel", "CompressionDescription", "CompressionSequence", "CompressionStepPointers", "RepeatInterval", "BitsGrouped", "PerimeterTable", "PerimeterValue", "PredictorRows", "PredictorColumns", "PredictorConstants", "BlockedPixels", "BlockRows", "BlockColumns", "RowOverlap", "ColumnOverlap", "BitsAllocated", "BitsStored", "HighBit", "PixelRepresentation", "SmallestValidPixelValue", "LargestValidPixelValue", "SmallestImagePixelValue", "LargestImagePixelValue", "SmallestPixelValueInSeries", "LargestPixelValueInSeries", "SmallestImagePixelValueInPlane", "LargestImagePixelValueInPlane", "PixelPaddingValue", "PixelPaddingRangeLimit", "ImageLocation", "QualityControlImage", "BurnedInAnnotation", "RecognizableVisualFeatures", "LongitudinalTemporalInformationModified", "ReferencedColorPaletteInstanceUID", "TransformLabel", "TransformVersionNumber", "NumberOfTransformSteps", "SequenceOfCompressedData", "DetailsOfCoefficients", "DCTLabel", "DataBlockDescription", "DataBlock", "NormalizationFactorFormat", "ZonalMapNumberFormat", "ZonalMapLocation", "ZonalMapFormat", "AdaptiveMapFormat", "CodeNumberFormat", "CodeLabel", "NumberOfTables", "CodeTableLocation", "BitsForCodeWord", "ImageDataLocation", "PixelSpacingCalibrationType", "PixelSpacingCalibrationDescription", "PixelIntensityRelationship", "PixelIntensityRelationshipSign", "WindowCenter", "WindowWidth", "RescaleIntercept", "RescaleSlope", "RescaleType", "WindowCenterWidthExplanation", "VOILUTFunction", "GrayScale", "RecommendedViewingMode", "GrayLookupTableDescriptor", "RedPaletteColorLookupTableDescriptor", "GreenPaletteColorLookupTableDescriptor", "BluePaletteColorLookupTableDescriptor", "AlphaPaletteColorLookupTableDescriptor", "LargeRedPaletteColorLookupTableDescriptor", "LargeGreenPaletteColorLookupTableDescriptor", "LargeBluePaletteColorLookupTableDescriptor", "PaletteColorLookupTableUID", "GrayLookupTableData", "RedPaletteColorLookupTableData", "GreenPaletteColorLookupTableData", "BluePaletteColorLookupTableData", "AlphaPaletteColorLookupTableData", "LargeRedPaletteColorLookupTableData", "LargeGreenPaletteColorLookupTableData", "LargeBluePaletteColorLookupTableData", "LargePaletteColorLookupTableUID", "SegmentedRedPaletteColorLookupTableData", "SegmentedGreenPaletteColorLookupTableData", "SegmentedBluePaletteColorLookupTableData", "BreastImplantPresent", "PartialView", "PartialViewDescription", "PartialViewCodeSequence", "SpatialLocationsPreserved", "DataFrameAssignmentSequence", "DataPathAssignment", "BitsMappedToColorLookupTable", "BlendingLUT1Sequence", "BlendingLUT1TransferFunction", "BlendingWeightConstant", "BlendingLookupTableDescriptor", "BlendingLookupTableData", "EnhancedPaletteColorLookupTableSequence", "BlendingLUT2Sequence", "BlendingLUT2TransferFunction", "DataPathID", "RGBLUTTransferFunction", "AlphaLUTTransferFunction", "ICCProfile", "ColorSpace", "LossyImageCompression", "LossyImageCompressionRatio", "LossyImageCompressionMethod", "ModalityLUTSequence", "LUTDescriptor", "LUTExplanation", "ModalityLUTType", "LUTData", "VOILUTSequence", "SoftcopyVOILUTSequence", "ImagePresentationComments", "BiPlaneAcquisitionSequence", "RepresentativeFrameNumber", "FrameNumbersOfInterest", "FrameOfInterestDescription", "FrameOfInterestType", "MaskPointers", "RWavePointer", "MaskSubtractionSequence", "MaskOperation", "ApplicableFrameRange", "MaskFrameNumbers", "ContrastFrameAveraging", "MaskSubPixelShift", "TIDOffset", "MaskOperationExplanation", "PixelDataProviderURL", "DataPointRows", "DataPointColumns", "SignalDomainColumns", "LargestMonochromePixelValue", "DataRepresentation", "PixelMeasuresSequence", "FrameVOILUTSequence", "PixelValueTransformationSequence", "SignalDomainRows", "DisplayFilterPercentage", "FramePixelShiftSequence", "SubtractionItemID", "PixelIntensityRelationshipLUTSequence", "FramePixelDataPropertiesSequence", "GeometricalProperties", "GeometricMaximumDistortion", "ImageProcessingApplied", "MaskSelectionMode", "LUTFunction", "MaskVisibilityPercentage", "PixelShiftSequence", "RegionPixelShiftSequence", "VerticesOfTheRegion", "MultiFramePresentationSequence", "PixelShiftFrameRange", "LUTFrameRange", "ImageToEquipmentMappingMatrix", "EquipmentCoordinateSystemIdentification", "Group32Length", "StudyStatusID", "StudyPriorityID", "StudyIDIssuer", "StudyVerifiedDate", "StudyVerifiedTime", "StudyReadDate", "StudyReadTime", "ScheduledStudyStartDate", "ScheduledStudyStartTime", "ScheduledStudyStopDate", "ScheduledStudyStopTime", "ScheduledStudyLocation", "ScheduledStudyLocationAETitle", "ReasonForStudy", "RequestingPhysicianIdentificationSequence", "RequestingPhysician", "RequestingService", "RequestingServiceCodeSequence", "StudyArrivalDate", "StudyArrivalTime", "StudyCompletionDate", "StudyCompletionTime", "StudyComponentStatusID", "RequestedProcedureDescription", "RequestedProcedureCodeSequence", "RequestedContrastAgent", "StudyComments", "Group38Length", "ReferencedPatientAliasSequence", "VisitStatusID", "AdmissionID", "IssuerOfAdmissionID", "IssuerOfAdmissionIDSequence", "RouteOfAdmissions", "ScheduledAdmissionDate", "ScheduledAdmissionTime", "ScheduledDischargeDate", "ScheduledDischargeTime", "ScheduledPatientInstitutionResidence", "AdmittingDate", "AdmittingTime", "DischargeDate", "DischargeTime", "DischargeDiagnosisDescription", "DischargeDiagnosisCodeSequence", "SpecialNeeds", "ServiceEpisodeID", "IssuerOfServiceEpisodeID", "ServiceEpisodeDescription", "IssuerOfServiceEpisodeIDSequence", "PertinentDocumentsSequence", "CurrentPatientLocation", "PatientInstitutionResidence", "PatientState", "PatientClinicalTrialParticipationSequence", "VisitComments", "Group3aLength", "WaveformOriginality", "NumberOfWaveformChannels", "NumberOfWaveformSamples", "SamplingFrequency", "MultiplexGroupLabel", "ChannelDefinitionSequence", "WaveformChannelNumber", "ChannelLabel", "ChannelStatus", "ChannelSourceSequence", "ChannelSourceModifiersSequence", "SourceWaveformSequence", "ChannelDerivationDescription", "ChannelSensitivity", "ChannelSensitivityUnitsSequence", "ChannelSensitivityCorrectionFactor", "ChannelBaseline", "ChannelTimeSkew", "ChannelSampleSkew", "ChannelOffset", "WaveformBitsStored", "FilterLowFrequency", "FilterHighFrequency", "NotchFilterFrequency", "NotchFilterBandwidth", "WaveformDataDisplayScale", "WaveformDisplayBackgroundCIELabValue", "WaveformPresentationGroupSequence", "PresentationGroupNumber", "ChannelDisplaySequence", "ChannelRecommendedDisplayCIELabValue", "ChannelPosition", "DisplayShadingFlag", "FractionalChannelDisplayScale", "AbsoluteChannelDisplayScale", "MultiplexedAudioChannelsDescriptionCodeSequence", "ChannelIdentificationCode", "ChannelMode", "Group40Length", "ScheduledStationAETitle", "ScheduledProcedureStepStartDate", "ScheduledProcedureStepStartTime", "ScheduledProcedureStepEndDate", "ScheduledProcedureStepEndTime", "ScheduledPerformingPhysicianName", "ScheduledProcedureStepDescription", "ScheduledProtocolCodeSequence", "ScheduledProcedureStepID", "StageCodeSequence", "ScheduledPerformingPhysicianIdentificationSequence", "ScheduledStationName", "ScheduledProcedureStepLocation", "PreMedication", "ScheduledProcedureStepStatus", "OrderPlacerIdentifierSequence", "OrderFillerIdentifierSequence", "LocalNamespaceEntityID", "UniversalEntityID", "UniversalEntityIDType", "IdentifierTypeCode", "AssigningFacilitySequence", "AssigningJurisdictionCodeSequence", "AssigningAgencyOrDepartmentCodeSequence", "ScheduledProcedureStepSequence", "ReferencedNonImageCompositeSOPInstanceSequence", "PerformedStationAETitle", "PerformedStationName", "PerformedLocation", "PerformedProcedureStepStartDate", "PerformedProcedureStepStartTime", "PerformedProcedureStepEndDate", "PerformedProcedureStepEndTime", "PerformedProcedureStepStatus", "PerformedProcedureStepID", "PerformedProcedureStepDescription", "PerformedProcedureTypeDescription", "PerformedProtocolCodeSequence", "PerformedProtocolType", "ScheduledStepAttributesSequence", "RequestAttributesSequence", "CommentsOnThePerformedProcedureStep", "PerformedProcedureStepDiscontinuationReasonCodeSequence", "QuantitySequence", "Quantity", "MeasuringUnitsSequence", "BillingItemSequence", "TotalTimeOfFluoroscopy", "TotalNumberOfExposures", "EntranceDose", "ExposedArea", "DistanceSourceToEntrance", "DistanceSourceToSupport", "ExposureDoseSequence", "CommentsOnRadiationDose", "XRayOutput", "HalfValueLayer", "OrganDose", "OrganExposed", "BillingProcedureStepSequence", "FilmConsumptionSequence", "BillingSuppliesAndDevicesSequence", "ReferencedProcedureStepSequence", "PerformedSeriesSequence", "CommentsOnTheScheduledProcedureStep", "ProtocolContextSequence", "ContentItemModifierSequence", "ScheduledSpecimenSequence", "SpecimenAccessionNumber", "ContainerIdentifier", "IssuerOfTheContainerIdentifierSequence", "AlternateContainerIdentifierSequence", "ContainerTypeCodeSequence", "ContainerDescription", "ContainerComponentSequence", "SpecimenSequence", "SpecimenIdentifier", "SpecimenDescriptionSequenceTrial", "SpecimenDescriptionTrial", "SpecimenUID", "AcquisitionContextSequence", "AcquisitionContextDescription", "SpecimenTypeCodeSequence", "SpecimenDescriptionSequence", "IssuerOfTheSpecimenIdentifierSequence", "SpecimenShortDescription", "SpecimenDetailedDescription", "SpecimenPreparationSequence", "SpecimenPreparationStepContentItemSequence", "SpecimenLocalizationContentItemSequence", "SlideIdentifier", "ImageCenterPointCoordinatesSequence", "XOffsetInSlideCoordinateSystem", "YOffsetInSlideCoordinateSystem", "ZOffsetInSlideCoordinateSystem", "PixelSpacingSequence", "CoordinateSystemAxisCodeSequence", "MeasurementUnitsCodeSequence", "VitalStainCodeSequenceTrial", "RequestedProcedureID", "ReasonForTheRequestedProcedure", "RequestedProcedurePriority", "PatientTransportArrangements", "RequestedProcedureLocation", "PlacerOrderNumberProcedure", "FillerOrderNumberProcedure", "ConfidentialityCode", "ReportingPriority", "ReasonForRequestedProcedureCodeSequence", "NamesOfIntendedRecipientsOfResults", "IntendedRecipientsOfResultsIdentificationSequence", "ReasonForPerformedProcedureCodeSequence", "RequestedProcedureDescriptionTrial", "PersonIdentificationCodeSequence", "PersonAddress", "PersonTelephoneNumbers", "RequestedProcedureComments", "ReasonForTheImagingServiceRequest", "IssueDateOfImagingServiceRequest", "IssueTimeOfImagingServiceRequest", "PlacerOrderNumberImagingServiceRequestRetired", "FillerOrderNumberImagingServiceRequestRetired", "OrderEnteredBy", "OrderEntererLocation", "OrderCallbackPhoneNumber", "PlacerOrderNumberImagingServiceRequest", "FillerOrderNumberImagingServiceRequest", "ImagingServiceRequestComments", "ConfidentialityConstraintOnPatientDataDescription", "GeneralPurposeScheduledProcedureStepStatus", "GeneralPurposePerformedProcedureStepStatus", "GeneralPurposeScheduledProcedureStepPriority", "ScheduledProcessingApplicationsCodeSequence", "ScheduledProcedureStepStartDateTime", "MultipleCopiesFlag", "PerformedProcessingApplicationsCodeSequence", "HumanPerformerCodeSequence", "ScheduledProcedureStepModificationDateTime", "ExpectedCompletionDateTime", "ResultingGeneralPurposePerformedProcedureStepsSequence", "ReferencedGeneralPurposeScheduledProcedureStepSequence", "ScheduledWorkitemCodeSequence", "PerformedWorkitemCodeSequence", "InputAvailabilityFlag", "InputInformationSequence", "RelevantInformationSequence", "ReferencedGeneralPurposeScheduledProcedureStepTransactionUID", "ScheduledStationNameCodeSequence", "ScheduledStationClassCodeSequence", "ScheduledStationGeographicLocationCodeSequence", "PerformedStationNameCodeSequence", "PerformedStationClassCodeSequence", "PerformedStationGeographicLocationCodeSequence", "RequestedSubsequentWorkitemCodeSequence", "NonDICOMOutputCodeSequence", "OutputInformationSequence", "ScheduledHumanPerformersSequence", "ActualHumanPerformersSequence", "HumanPerformerOrganization", "HumanPerformerName", "RawDataHandling", "InputReadinessState", "PerformedProcedureStepStartDateTime", "PerformedProcedureStepEndDateTime", "ProcedureStepCancellationDateTime", "EntranceDoseInmGy", "ReferencedImageRealWorldValueMappingSequence", "RealWorldValueMappingSequence", "PixelValueMappingCodeSequence", "LUTLabel", "RealWorldValueLastValueMapped", "RealWorldValueLUTData", "RealWorldValueFirstValueMapped", "RealWorldValueIntercept", "RealWorldValueSlope", "FindingsFlagTrial", "RelationshipType", "FindingsSequenceTrial", "FindingsGroupUIDTrial", "ReferencedFindingsGroupUIDTrial", "FindingsGroupRecordingDateTrial", "FindingsGroupRecordingTimeTrial", "FindingsSourceCategoryCodeSequenceTrial", "VerifyingOrganization", "DocumentingOrganizationIdentifierCodeSequenceTrial", "VerificationDateTime", "ObservationDateTime", "ValueType", "ConceptNameCodeSequence", "MeasurementPrecisionDescriptionTrial", "ContinuityOfContent", "UrgencyOrPriorityAlertsTrial", "SequencingIndicatorTrial", "DocumentIdentifierCodeSequenceTrial", "DocumentAuthorTrial", "DocumentAuthorIdentifierCodeSequenceTrial", "IdentifierCodeSequenceTrial", "VerifyingObserverSequence", "ObjectBinaryIdentifierTrial", "VerifyingObserverName", "DocumentingObserverIdentifierCodeSequenceTrial", "AuthorObserverSequence", "ParticipantSequence", "CustodialOrganizationSequence", "ParticipationType", "ParticipationDateTime", "ObserverType", "ProcedureIdentifierCodeSequenceTrial", "VerifyingObserverIdentificationCodeSequence", "ObjectDirectoryBinaryIdentifierTrial", "EquivalentCDADocumentSequence", "ReferencedWaveformChannels", "DateOfDocumentOrVerbalTransactionTrial", "TimeOfDocumentCreationOrVerbalTransactionTrial", "DateTime", "Date", "Time", "PersonName", "UID", "ReportStatusIDTrial", "TemporalRangeType", "ReferencedSamplePositions", "ReferencedFrameNumbers", "ReferencedTimeOffsets", "ReferencedDateTime", "TextValue", "FloatingPointValue", "RationalNumeratorValue", "RationalDenominatorValue", "ObservationCategoryCodeSequenceTrial", "ConceptCodeSequence", "BibliographicCitationTrial", "PurposeOfReferenceCodeSequence", "ObservationUID", "ReferencedObservationUIDTrial", "ReferencedObservationClassTrial", "ReferencedObjectObservationClassTrial", "AnnotationGroupNumber", "ObservationDateTrial", "ObservationTimeTrial", "MeasurementAutomationTrial", "ModifierCodeSequence", "IdentificationDescriptionTrial", "CoordinatesSetGeometricTypeTrial", "AlgorithmCodeSequenceTrial", "AlgorithmDescriptionTrial", "PixelCoordinatesSetTrial", "MeasuredValueSequence", "NumericValueQualifierCodeSequence", "CurrentObserverTrial", "NumericValue", "ReferencedAccessionSequenceTrial", "ReportStatusCommentTrial", "ProcedureContextSequenceTrial", "VerbalSourceTrial", "AddressTrial", "TelephoneNumberTrial", "VerbalSourceIdentifierCodeSequenceTrial", "PredecessorDocumentsSequence", "ReferencedRequestSequence", "PerformedProcedureCodeSequence", "CurrentRequestedProcedureEvidenceSequence", "ReportDetailSequenceTrial", "PertinentOtherEvidenceSequence", "HL7StructuredDocumentReferenceSequence", "ObservationSubjectUIDTrial", "ObservationSubjectClassTrial", "ObservationSubjectTypeCodeSequenceTrial", "CompletionFlag", "CompletionFlagDescription", "VerificationFlag", "ArchiveRequested", "PreliminaryFlag", "ContentTemplateSequence", "IdenticalDocumentsSequence", "ObservationSubjectContextFlagTrial", "ObserverContextFlagTrial", "ProcedureContextFlagTrial", "ContentSequence", "RelationshipSequenceTrial", "RelationshipTypeCodeSequenceTrial", "LanguageCodeSequenceTrial", "UniformResourceLocatorTrial", "WaveformAnnotationSequence", "TemplateIdentifier", "TemplateVersion", "TemplateLocalVersion", "TemplateExtensionFlag", "TemplateExtensionOrganizationUID", "TemplateExtensionCreatorUID", "ReferencedContentItemIdentifier", "HL7InstanceIdentifier", "HL7DocumentEffectiveTime", "HL7DocumentTypeCodeSequence", "DocumentClassCodeSequence", "RetrieveURI", "RetrieveLocationUID", "TypeOfInstances", "DICOMRetrievalSequence", "DICOMMediaRetrievalSequence", "WADORetrievalSequence", "XDSRetrievalSequence", "RepositoryUniqueID", "HomeCommunityID", "Group42Length", "DocumentTitle", "EncapsulatedDocument", "MIMETypeOfEncapsulatedDocument", "SourceInstanceSequence", "ListOfMIMETypes", "Group44Length", "ProductPackageIdentifier", "SubstanceAdministrationApproval", "ApprovalStatusFurtherDescription", "ApprovalStatusDateTime", "ProductTypeCodeSequence", "ProductName", "ProductDescription", "ProductLotIdentifier", "ProductExpirationDateTime", "SubstanceAdministrationDateTime", "SubstanceAdministrationNotes", "SubstanceAdministrationDeviceID", "ProductParameterSequence", "SubstanceAdministrationParameterSequence", "Group46Length", "LensDescription", "RightLensSequence", "LeftLensSequence", "UnspecifiedLateralityLensSequence", "CylinderSequence", "PrismSequence", "HorizontalPrismPower", "HorizontalPrismBase", "VerticalPrismPower", "VerticalPrismBase", "LensSegmentType", "OpticalTransmittance", "ChannelWidth", "PupilSize", "CornealSize", "AutorefractionRightEyeSequence", "AutorefractionLeftEyeSequence", "DistancePupillaryDistance", "NearPupillaryDistance", "IntermediatePupillaryDistance", "OtherPupillaryDistance", "KeratometryRightEyeSequence", "KeratometryLeftEyeSequence", "SteepKeratometricAxisSequence", "RadiusOfCurvature", "KeratometricPower", "KeratometricAxis", "FlatKeratometricAxisSequence", "BackgroundColor", "Optotype", "OptotypePresentation", "SubjectiveRefractionRightEyeSequence", "SubjectiveRefractionLeftEyeSequence", "AddNearSequence", "AddIntermediateSequence", "AddOtherSequence", "AddPower", "ViewingDistance", "VisualAcuityTypeCodeSequence", "VisualAcuityRightEyeSequence", "VisualAcuityLeftEyeSequence", "VisualAcuityBothEyesOpenSequence", "ViewingDistanceType", "VisualAcuityModifiers", "DecimalVisualAcuity", "OptotypeDetailedDefinition", "ReferencedRefractiveMeasurementsSequence", "SpherePower", "CylinderPower", "CornealTopographySurface", "CornealVertexLocation", "PupilCentroidXCoordinate", "PupilCentroidYCoordinate", "EquivalentPupilRadius", "CornealTopographyMapTypeCodeSequence", "VerticesOfTheOutlineOfPupil", "CornealTopographyMappingNormalsSequence", "MaximumCornealCurvatureSequence", "MaximumCornealCurvature", "MaximumCornealCurvatureLocation", "MinimumKeratometricSequence", "SimulatedKeratometricCylinderSequence", "AverageCornealPower", "CornealISValue", "AnalyzedArea", "SurfaceRegularityIndex", "SurfaceAsymmetryIndex", "CornealEccentricityIndex", "KeratoconusPredictionIndex", "DecimalPotentialVisualAcuity", "CornealTopographyMapQualityEvaluation", "SourceImageCornealProcessedDataSequence", "CornealPointLocation", "CornealPointEstimated", "AxialPower", "TangentialPower", "RefractivePower", "RelativeElevation", "CornealWavefront", "Group48Length", "ImagedVolumeWidth", "ImagedVolumeHeight", "ImagedVolumeDepth", "TotalPixelMatrixColumns", "TotalPixelMatrixRows", "TotalPixelMatrixOriginSequence", "SpecimenLabelInImage", "FocusMethod", "ExtendedDepthOfField", "NumberOfFocalPlanes", "DistanceBetweenFocalPlanes", "RecommendedAbsentPixelCIELabValue", "IlluminatorTypeCodeSequence", "ImageOrientationSlide", "OpticalPathSequence", "OpticalPathIdentifier", "OpticalPathDescription", "IlluminationColorCodeSequence", "SpecimenReferenceSequence", "CondenserLensPower", "ObjectiveLensPower", "ObjectiveLensNumericalAperture", "PaletteColorLookupTableSequence", "ReferencedImageNavigationSequence", "TopLeftHandCornerOfLocalizerArea", "BottomRightHandCornerOfLocalizerArea", "OpticalPathIdentificationSequence", "PlanePositionSlideSequence", "ColumnPositionInTotalImagePixelMatrix", "RowPositionInTotalImagePixelMatrix", "PixelOriginInterpretation", "Group50Length", "CalibrationImage", "DeviceSequence", "ContainerComponentTypeCodeSequence", "ContainerComponentThickness", "DeviceLength", "ContainerComponentWidth", "DeviceDiameter", "DeviceDiameterUnits", "DeviceVolume", "InterMarkerDistance", "ContainerComponentMaterial", "ContainerComponentID", "ContainerComponentLength", "ContainerComponentDiameter", "ContainerComponentDescription", "DeviceDescription", "Group52Length", "ContrastBolusIngredientPercentByVolume", "OCTFocalDistance", "BeamSpotSize", "EffectiveRefractiveIndex", "OCTAcquisitionDomain", "OCTOpticalCenterWavelength", "AxialResolution", "RangingDepth", "ALineRate", "ALinesPerFrame", "CatheterRotationalRate", "ALinePixelSpacing", "ModeOfPercutaneousAccessSequence", "IntravascularOCTFrameTypeSequence", "OCTZOffsetApplied", "IntravascularFrameContentSequence", "IntravascularLongitudinalDistance", "IntravascularOCTFrameContentSequence", "OCTZOffsetCorrection", "CatheterDirectionOfRotation", "SeamLineLocation", "FirstALineLocation", "SeamLineIndex", "NumberOfPaddedALines", "InterpolationType", "RefractiveIndexApplied", "Group54Length", "EnergyWindowVector", "NumberOfEnergyWindows", "EnergyWindowInformationSequence", "EnergyWindowRangeSequence", "EnergyWindowLowerLimit", "EnergyWindowUpperLimit", "RadiopharmaceuticalInformationSequence", "ResidualSyringeCounts", "EnergyWindowName", "DetectorVector", "NumberOfDetectors", "DetectorInformationSequence", "PhaseVector", "NumberOfPhases", "PhaseInformationSequence", "NumberOfFramesInPhase", "PhaseDelay", "PauseBetweenFrames", "PhaseDescription", "RotationVector", "NumberOfRotations", "RotationInformationSequence", "NumberOfFramesInRotation", "RRIntervalVector", "NumberOfRRIntervals", "GatedInformationSequence", "DataInformationSequence", "TimeSlotVector", "NumberOfTimeSlots", "TimeSlotInformationSequence", "TimeSlotTime", "SliceVector", "NumberOfSlices", "AngularViewVector", "TimeSliceVector", "NumberOfTimeSlices", "StartAngle", "TypeOfDetectorMotion", "TriggerVector", "NumberOfTriggersInPhase", "ViewCodeSequence", "ViewModifierCodeSequence", "RadionuclideCodeSequence", "AdministrationRouteCodeSequence", "RadiopharmaceuticalCodeSequence", "CalibrationDataSequence", "EnergyWindowNumber", "ImageID", "PatientOrientationCodeSequence", "PatientOrientationModifierCodeSequence", "PatientGantryRelationshipCodeSequence", "SliceProgressionDirection", "SeriesType", "Units", "CountsSource", "ReprojectionMethod", "SUVType", "RandomsCorrectionMethod", "AttenuationCorrectionMethod", "DecayCorrection", "ReconstructionMethod", "DetectorLinesOfResponseUsed", "ScatterCorrectionMethod", "AxialAcceptance", "AxialMash", "TransverseMash", "DetectorElementSize", "CoincidenceWindowWidth", "SecondaryCountsType", "FrameReferenceTime", "PrimaryPromptsCountsAccumulated", "SecondaryCountsAccumulated", "SliceSensitivityFactor", "DecayFactor", "DoseCalibrationFactor", "ScatterFractionFactor", "DeadTimeFactor", "ImageIndex", "CountsIncluded", "DeadTimeCorrectionFlag", "Group60Length", "HistogramSequence", "HistogramNumberOfBins", "HistogramFirstBinValue", "HistogramLastBinValue", "HistogramBinWidth", "HistogramExplanation", "HistogramData", "Group62Length", "SegmentationType", "SegmentSequence", "SegmentedPropertyCategoryCodeSequence", "SegmentNumber", "SegmentLabel", "SegmentDescription", "SegmentAlgorithmType", "SegmentAlgorithmName", "SegmentIdentificationSequence", "ReferencedSegmentNumber", "RecommendedDisplayGrayscaleValue", "RecommendedDisplayCIELabValue", "MaximumFractionalValue", "SegmentedPropertyTypeCodeSequence", "SegmentationFractionalType", "SegmentedPropertyTypeModifierCodeSequence", "UsedSegmentsSequence", "Group64Length", "DeformableRegistrationSequence", "SourceFrameOfReferenceUID", "DeformableRegistrationGridSequence", "GridDimensions", "GridResolution", "VectorGridData", "PreDeformationMatrixRegistrationSequence", "PostDeformationMatrixRegistrationSequence", "Group66Length", "NumberOfSurfaces", "SurfaceSequence", "SurfaceNumber", "SurfaceComments", "SurfaceProcessing", "SurfaceProcessingRatio", "SurfaceProcessingDescription", "RecommendedPresentationOpacity", "RecommendedPresentationType", "FiniteVolume", "Manifold", "SurfacePointsSequence", "SurfacePointsNormalsSequence", "SurfaceMeshPrimitivesSequence", "NumberOfSurfacePoints", "PointCoordinatesData", "PointPositionAccuracy", "MeanPointDistance", "MaximumPointDistance", "PointsBoundingBoxCoordinates", "AxisOfRotation", "CenterOfRotation", "NumberOfVectors", "VectorDimensionality", "VectorAccuracy", "VectorCoordinateData", "TrianglePointIndexList", "EdgePointIndexList", "VertexPointIndexList", "TriangleStripSequence", "TriangleFanSequence", "LineSequence", "PrimitivePointIndexList", "SurfaceCount", "ReferencedSurfaceSequence", "ReferencedSurfaceNumber", "SegmentSurfaceGenerationAlgorithmIdentificationSequence", "SegmentSurfaceSourceInstanceSequence", "AlgorithmFamilyCodeSequence", "AlgorithmNameCodeSequence", "AlgorithmVersion", "AlgorithmParameters", "FacetSequence", "SurfaceProcessingAlgorithmIdentificationSequence", "AlgorithmName", "RecommendedPointRadius", "RecommendedLineThickness", "Group68Length", "ImplantSize", "ImplantTemplateVersion", "ReplacedImplantTemplateSequence", "ImplantType", "DerivationImplantTemplateSequence", "OriginalImplantTemplateSequence", "EffectiveDateTime", "ImplantTargetAnatomySequence", "InformationFromManufacturerSequence", "NotificationFromManufacturerSequence", "InformationIssueDateTime", "InformationSummary", "ImplantRegulatoryDisapprovalCodeSequence", "OverallTemplateSpatialTolerance", "HPGLDocumentSequence", "HPGLDocumentID", "HPGLDocumentLabel", "ViewOrientationCodeSequence", "ViewOrientationModifier", "HPGLDocumentScaling", "HPGLDocument", "HPGLContourPenNumber", "HPGLPenSequence", "HPGLPenNumber", "HPGLPenLabel", "HPGLPenDescription", "RecommendedRotationPoint", "BoundingRectangle", "ImplantTemplate3DModelSurfaceNumber", "SurfaceModelDescriptionSequence", "SurfaceModelLabel", "SurfaceModelScalingFactor", "MaterialsCodeSequence", "CoatingMaterialsCodeSequence", "ImplantTypeCodeSequence", "FixationMethodCodeSequence", "MatingFeatureSetsSequence", "MatingFeatureSetID", "MatingFeatureSetLabel", "MatingFeatureSequence", "MatingFeatureID", "MatingFeatureDegreeOfFreedomSequence", "DegreeOfFreedomID", "DegreeOfFreedomType", "TwoDMatingFeatureCoordinatesSequence", "ReferencedHPGLDocumentID", "TwoDMatingPoint", "TwoDMatingAxes", "TwoDDegreeOfFreedomSequence", "ThreeDDegreeOfFreedomAxis", "RangeOfFreedom", "ThreeDMatingPoint", "ThreeDMatingAxes", "TwoDDegreeOfFreedomAxis", "PlanningLandmarkPointSequence", "PlanningLandmarkLineSequence", "PlanningLandmarkPlaneSequence", "PlanningLandmarkID", "PlanningLandmarkDescription", "PlanningLandmarkIdentificationCodeSequence", "TwoDPointCoordinatesSequence", "TwoDPointCoordinates", "ThreeDPointCoordinates", "TwoDLineCoordinatesSequence", "TwoDLineCoordinates", "ThreeDLineCoordinates", "TwoDPlaneCoordinatesSequence", "TwoDPlaneIntersection", "ThreeDPlaneOrigin", "ThreeDPlaneNormal", "Group70Length", "GraphicAnnotationSequence", "GraphicLayer", "BoundingBoxAnnotationUnits", "AnchorPointAnnotationUnits", "GraphicAnnotationUnits", "UnformattedTextValue", "TextObjectSequence", "GraphicObjectSequence", "BoundingBoxTopLeftHandCorner", "BoundingBoxBottomRightHandCorner", "BoundingBoxTextHorizontalJustification", "AnchorPoint", "AnchorPointVisibility", "GraphicDimensions", "NumberOfGraphicPoints", "GraphicData", "GraphicType", "GraphicFilled", "ImageRotationRetired", "ImageHorizontalFlip", "ImageRotation", "DisplayedAreaTopLeftHandCornerTrial", "DisplayedAreaBottomRightHandCornerTrial", "DisplayedAreaTopLeftHandCorner", "DisplayedAreaBottomRightHandCorner", "DisplayedAreaSelectionSequence", "GraphicLayerSequence", "GraphicLayerOrder", "GraphicLayerRecommendedDisplayGrayscaleValue", "GraphicLayerRecommendedDisplayRGBValue", "GraphicLayerDescription", "ContentLabel", "ContentDescription", "PresentationCreationDate", "PresentationCreationTime", "ContentCreatorName", "ContentCreatorIdentificationCodeSequence", "AlternateContentDescriptionSequence", "PresentationSizeMode", "PresentationPixelSpacing", "PresentationPixelAspectRatio", "PresentationPixelMagnificationRatio", "GraphicGroupLabel", "GraphicGroupDescription", "CompoundGraphicSequence", "CompoundGraphicInstanceID", "FontName", "FontNameType", "CSSFontName", "RotationAngle", "TextStyleSequence", "LineStyleSequence", "FillStyleSequence", "GraphicGroupSequence", "TextColorCIELabValue", "HorizontalAlignment", "VerticalAlignment", "ShadowStyle", "ShadowOffsetX", "ShadowOffsetY", "ShadowColorCIELabValue", "Underlined", "Bold", "Italic", "PatternOnColorCIELabValue", "PatternOffColorCIELabValue", "LineThickness", "LineDashingStyle", "LinePattern", "FillPattern", "FillMode", "ShadowOpacity", "GapLength", "DiameterOfVisibility", "RotationPoint", "TickAlignment", "ShowTickLabel", "TickLabelAlignment", "CompoundGraphicUnits", "PatternOnOpacity", "PatternOffOpacity", "MajorTicksSequence", "TickPosition", "TickLabel", "CompoundGraphicType", "GraphicGroupID", "ShapeType", "RegistrationSequence", "MatrixRegistrationSequence", "MatrixSequence", "FrameOfReferenceTransformationMatrixType", "RegistrationTypeCodeSequence", "FiducialDescription", "FiducialIdentifier", "FiducialIdentifierCodeSequence", "ContourUncertaintyRadius", "UsedFiducialsSequence", "GraphicCoordinatesDataSequence", "FiducialUID", "FiducialSetSequence", "FiducialSequence", "GraphicLayerRecommendedDisplayCIELabValue", "BlendingSequence", "RelativeOpacity", "ReferencedSpatialRegistrationSequence", "BlendingPosition", "Group72Length", "HangingProtocolName", "HangingProtocolDescription", "HangingProtocolLevel", "HangingProtocolCreator", "HangingProtocolCreationDateTime", "HangingProtocolDefinitionSequence", "HangingProtocolUserIdentificationCodeSequence", "HangingProtocolUserGroupName", "SourceHangingProtocolSequence", "NumberOfPriorsReferenced", "ImageSetsSequence", "ImageSetSelectorSequence", "ImageSetSelectorUsageFlag", "SelectorAttribute", "SelectorValueNumber", "TimeBasedImageSetsSequence", "ImageSetNumber", "ImageSetSelectorCategory", "RelativeTime", "RelativeTimeUnits", "AbstractPriorValue", "AbstractPriorCodeSequence", "ImageSetLabel", "SelectorAttributeVR", "SelectorSequencePointer", "SelectorSequencePointerPrivateCreator", "SelectorAttributePrivateCreator", "SelectorATValue", "SelectorCSValue", "SelectorISValue", "SelectorLOValue", "SelectorLTValue", "SelectorPNValue", "SelectorSHValue", "SelectorSTValue", "SelectorUTValue", "SelectorDSValue", "SelectorODValue", "SelectorFDValue", "SelectorFLValue", "SelectorULValue", "SelectorUSValue", "SelectorSLValue", "SelectorSSValue", "SelectorCodeSequenceValue", "NumberOfScreens", "NominalScreenDefinitionSequence", "NumberOfVerticalPixels", "NumberOfHorizontalPixels", "DisplayEnvironmentSpatialPosition", "ScreenMinimumGrayscaleBitDepth", "ScreenMinimumColorBitDepth", "ApplicationMaximumRepaintTime", "DisplaySetsSequence", "DisplaySetNumber", "DisplaySetLabel", "DisplaySetPresentationGroup", "DisplaySetPresentationGroupDescription", "PartialDataDisplayHandling", "SynchronizedScrollingSequence", "DisplaySetScrollingGroup", "NavigationIndicatorSequence", "NavigationDisplaySet", "ReferenceDisplaySets", "ImageBoxesSequence", "ImageBoxNumber", "ImageBoxLayoutType", "ImageBoxTileHorizontalDimension", "ImageBoxTileVerticalDimension", "ImageBoxScrollDirection", "ImageBoxSmallScrollType", "ImageBoxSmallScrollAmount", "ImageBoxLargeScrollType", "ImageBoxLargeScrollAmount", "ImageBoxOverlapPriority", "CineRelativeToRealTime", "FilterOperationsSequence", "FilterByCategory", "FilterByAttributePresence", "FilterByOperator", "StructuredDisplayBackgroundCIELabValue", "EmptyImageBoxCIELabValue", "StructuredDisplayImageBoxSequence", "StructuredDisplayTextBoxSequence", "ReferencedFirstFrameSequence", "ImageBoxSynchronizationSequence", "SynchronizedImageBoxList", "TypeOfSynchronization", "BlendingOperationType", "ReformattingOperationType", "ReformattingThickness", "ReformattingInterval", "ReformattingOperationInitialViewDirection", "ThreeDRenderingType", "SortingOperationsSequence", "SortByCategory", "SortingDirection", "DisplaySetPatientOrientation", "VOIType", "PseudoColorType", "PseudoColorPaletteInstanceReferenceSequence", "ShowGrayscaleInverted", "ShowImageTrueSizeFlag", "ShowGraphicAnnotationFlag", "ShowPatientDemographicsFlag", "ShowAcquisitionTechniquesFlag", "DisplaySetHorizontalJustification", "DisplaySetVerticalJustification", "Group74Length", "ContinuationStartMeterset", "ContinuationEndMeterset", "ProcedureStepState", "ProcedureStepProgressInformationSequence", "ProcedureStepProgress", "ProcedureStepProgressDescription", "ProcedureStepCommunicationsURISequence", "ContactURI", "ContactDisplayName", "ProcedureStepDiscontinuationReasonCodeSequence", "BeamTaskSequence", "BeamTaskType", "BeamOrderIndexTrial", "AutosequenceFlag", "TableTopVerticalAdjustedPosition", "TableTopLongitudinalAdjustedPosition", "TableTopLateralAdjustedPosition", "PatientSupportAdjustedAngle", "TableTopEccentricAdjustedAngle", "TableTopPitchAdjustedAngle", "TableTopRollAdjustedAngle", "DeliveryVerificationImageSequence", "VerificationImageTiming", "DoubleExposureFlag", "DoubleExposureOrdering", "DoubleExposureMetersetTrial", "DoubleExposureFieldDeltaTrial", "RelatedReferenceRTImageSequence", "GeneralMachineVerificationSequence", "ConventionalMachineVerificationSequence", "IonMachineVerificationSequence", "FailedAttributesSequence", "OverriddenAttributesSequence", "ConventionalControlPointVerificationSequence", "IonControlPointVerificationSequence", "AttributeOccurrenceSequence", "AttributeOccurrencePointer", "AttributeItemSelector", "AttributeOccurrencePrivateCreator", "SelectorSequencePointerItems", "ScheduledProcedureStepPriority", "WorklistLabel", "ProcedureStepLabel", "ScheduledProcessingParametersSequence", "PerformedProcessingParametersSequence", "UnifiedProcedureStepPerformedProcedureSequence", "RelatedProcedureStepSequence", "ProcedureStepRelationshipType", "ReplacedProcedureStepSequence", "DeletionLock", "ReceivingAE", "RequestingAE", "ReasonForCancellation", "SCPStatus", "SubscriptionListStatus", "UnifiedProcedureStepListStatus", "BeamOrderIndex", "DoubleExposureMeterset", "DoubleExposureFieldDelta", "Group76Length", "ImplantAssemblyTemplateName", "ImplantAssemblyTemplateIssuer", "ImplantAssemblyTemplateVersion", "ReplacedImplantAssemblyTemplateSequence", "ImplantAssemblyTemplateType", "OriginalImplantAssemblyTemplateSequence", "DerivationImplantAssemblyTemplateSequence", "ImplantAssemblyTemplateTargetAnatomySequence", "ProcedureTypeCodeSequence", "SurgicalTechnique", "ComponentTypesSequence", "ComponentTypeCodeSequence", "ExclusiveComponentType", "MandatoryComponentType", "ComponentSequence", "ComponentID", "ComponentAssemblySequence", "Component1ReferencedID", "Component1ReferencedMatingFeatureSetID", "Component1ReferencedMatingFeatureID", "Component2ReferencedID", "Component2ReferencedMatingFeatureSetID", "Component2ReferencedMatingFeatureID", "Group78Length", "ImplantTemplateGroupName", "ImplantTemplateGroupDescription", "ImplantTemplateGroupIssuer", "ImplantTemplateGroupVersion", "ReplacedImplantTemplateGroupSequence", "ImplantTemplateGroupTargetAnatomySequence", "ImplantTemplateGroupMembersSequence", "ImplantTemplateGroupMemberID", "ThreeDImplantTemplateGroupMemberMatchingPoint", "ThreeDImplantTemplateGroupMemberMatchingAxes", "ImplantTemplateGroupMemberMatching2DCoordinatesSequence", "TwoDImplantTemplateGroupMemberMatchingPoint", "TwoDImplantTemplateGroupMemberMatchingAxes", "ImplantTemplateGroupVariationDimensionSequence", "ImplantTemplateGroupVariationDimensionName", "ImplantTemplateGroupVariationDimensionRankSequence", "ReferencedImplantTemplateGroupMemberID", "ImplantTemplateGroupVariationDimensionRank", "Group80Length", "SurfaceScanAcquisitionTypeCodeSequence", "SurfaceScanModeCodeSequence", "RegistrationMethodCodeSequence", "ShotDurationTime", "ShotOffsetTime", "SurfacePointPresentationValueData", "SurfacePointColorCIELabValueData", "UVMappingSequence", "TextureLabel", "UValueData", "VValueData", "ReferencedTextureSequence", "ReferencedSurfaceDataSequence", "StorageMediaFileSetID", "Group88Length", "StorageMediaFileSetUID", "IconImageSequence", "TopicTitle", "TopicSubject", "TopicAuthor", "TopicKeywords", "Group100Length", "SOPInstanceStatus", "SOPAuthorizationDateTime", "SOPAuthorizationComment", "AuthorizationEquipmentCertificationNumber", "Group400Length", "MACIDNumber", "MACCalculationTransferSyntaxUID", "MACAlgorithm", "DataElementsSigned", "DigitalSignatureUID", "DigitalSignatureDateTime", "CertificateType", "CertificateOfSigner", "Signature", "CertifiedTimestampType", "CertifiedTimestamp", "DigitalSignaturePurposeCodeSequence", "ReferencedDigitalSignatureSequence", "ReferencedSOPInstanceMACSequence", "MAC", "EncryptedAttributesSequence", "EncryptedContentTransferSyntaxUID", "EncryptedContent", "ModifiedAttributesSequence", "OriginalAttributesSequence", "AttributeModificationDateTime", "ModifyingSystem", "SourceOfPreviousValues", "ReasonForTheAttributeModification", "EscapeTriplet", "RunLengthTriplet", "HuffmanTableSize", "HuffmanTableTriplet", "ShiftTableSize", "ShiftTableTriplet", "ZonalMap", "Group2000Length", "NumberOfCopies", "PrinterConfigurationSequence", "PrintPriority", "MediumType", "FilmDestination", "FilmSessionLabel", "MemoryAllocation", "MaximumMemoryAllocation", "ColorImagePrintingFlag", "CollationFlag", "AnnotationFlag", "ImageOverlayFlag", "PresentationLUTFlag", "ImageBoxPresentationLUTFlag", "MemoryBitDepth", "PrintingBitDepth", "MediaInstalledSequence", "OtherMediaAvailableSequence", "SupportedImageDisplayFormatsSequence", "ReferencedFilmBoxSequence", "ReferencedStoredPrintSequence", "Group2010Length", "ImageDisplayFormat", "AnnotationDisplayFormatID", "FilmOrientation", "FilmSizeID", "PrinterResolutionID", "DefaultPrinterResolutionID", "MagnificationType", "SmoothingType", "DefaultMagnificationType", "OtherMagnificationTypesAvailable", "DefaultSmoothingType", "OtherSmoothingTypesAvailable", "BorderDensity", "EmptyImageDensity", "MinDensity", "MaxDensity", "Trim", "ConfigurationInformation", "ConfigurationInformationDescription", "MaximumCollatedFilms", "Illumination", "ReflectedAmbientLight", "PrinterPixelSpacing", "ReferencedFilmSessionSequence", "ReferencedImageBoxSequence", "ReferencedBasicAnnotationBoxSequence", "Group2020Length", "ImageBoxPosition", "Polarity", "RequestedImageSize", "RequestedDecimateCropBehavior", "RequestedResolutionID", "RequestedImageSizeFlag", "DecimateCropResult", "BasicGrayscaleImageSequence", "BasicColorImageSequence", "ReferencedImageOverlayBoxSequence", "ReferencedVOILUTBoxSequence", "Group2030Length", "AnnotationPosition", "TextString", "Group2040Length", "ReferencedOverlayPlaneSequence", "ReferencedOverlayPlaneGroups", "OverlayPixelDataSequence", "OverlayMagnificationType", "OverlaySmoothingType", "OverlayOrImageMagnification", "MagnifyToNumberOfColumns", "OverlayForegroundDensity", "OverlayBackgroundDensity", "OverlayMode", "ThresholdDensity", "ReferencedImageBoxSequenceRetired", "Group2050Length", "PresentationLUTSequence", "PresentationLUTShape", "ReferencedPresentationLUTSequence", "Group2100Length", "PrintJobID", "ExecutionStatus", "ExecutionStatusInfo", "CreationDate", "CreationTime", "Originator", "DestinationAE", "OwnerID", "NumberOfFilms", "ReferencedPrintJobSequencePullStoredPrint", "Group2110Length", "PrinterStatus", "PrinterStatusInfo", "PrinterName", "PrintQueueID", "Group2120Length", "QueueStatus", "PrintJobDescriptionSequence", "ReferencedPrintJobSequence", "Group2130Length", "PrintManagementCapabilitiesSequence", "PrinterCharacteristicsSequence", "FilmBoxContentSequence", "ImageBoxContentSequence", "AnnotationContentSequence", "ImageOverlayBoxContentSequence", "PresentationLUTContentSequence", "ProposedStudySequence", "OriginalImageSequence", "Group2200Length", "LabelUsingInformationExtractedFromInstances", "LabelText", "LabelStyleSelection", "MediaDisposition", "BarcodeValue", "BarcodeSymbology", "AllowMediaSplitting", "IncludeNonDICOMObjects", "IncludeDisplayApplication", "PreserveCompositeInstancesAfterMediaCreation", "TotalNumberOfPiecesOfMediaCreated", "RequestedMediaApplicationProfile", "ReferencedStorageMediaSequence", "FailureAttributes", "AllowLossyCompression", "RequestPriority", "Group3002Length", "RTImageLabel", "RTImageName", "RTImageDescription", "ReportedValuesOrigin", "RTImagePlane", "XRayImageReceptorTranslation", "XRayImageReceptorAngle", "RTImageOrientation", "ImagePlanePixelSpacing", "RTImagePosition", "RadiationMachineName", "RadiationMachineSAD", "RadiationMachineSSD", "RTImageSID", "SourceToReferenceObjectDistance", "FractionNumber", "ExposureSequence", "MetersetExposure", "DiaphragmPosition", "FluenceMapSequence", "FluenceDataSource", "FluenceDataScale", "PrimaryFluenceModeSequence", "FluenceMode", "FluenceModeID", "Group3004Length", "DVHType", "DoseUnits", "DoseType", "SpatialTransformOfDose", "DoseComment", "NormalizationPoint", "DoseSummationType", "GridFrameOffsetVector", "DoseGridScaling", "RTDoseROISequence", "DoseValue", "TissueHeterogeneityCorrection", "DVHNormalizationPoint", "DVHNormalizationDoseValue", "DVHSequence", "DVHDoseScaling", "DVHVolumeUnits", "DVHNumberOfBins", "DVHData", "DVHReferencedROISequence", "DVHROIContributionType", "DVHMinimumDose", "DVHMaximumDose", "DVHMeanDose", "Group3006Length", "StructureSetLabel", "StructureSetName", "StructureSetDescription", "StructureSetDate", "StructureSetTime", "ReferencedFrameOfReferenceSequence", "RTReferencedStudySequence", "RTReferencedSeriesSequence", "ContourImageSequence", "PredecessorStructureSetSequence", "StructureSetROISequence", "ROINumber", "ReferencedFrameOfReferenceUID", "ROIName", "ROIDescription", "ROIDisplayColor", "ROIVolume", "RTRelatedROISequence", "RTROIRelationship", "ROIGenerationAlgorithm", "ROIGenerationDescription", "ROIContourSequence", "ContourSequence", "ContourGeometricType", "ContourSlabThickness", "ContourOffsetVector", "NumberOfContourPoints", "ContourNumber", "AttachedContours", "ContourData", "RTROIObservationsSequence", "ObservationNumber", "ReferencedROINumber", "ROIObservationLabel", "RTROIIdentificationCodeSequence", "ROIObservationDescription", "RelatedRTROIObservationsSequence", "RTROIInterpretedType", "ROIInterpreter", "ROIPhysicalPropertiesSequence", "ROIPhysicalProperty", "ROIPhysicalPropertyValue", "ROIElementalCompositionSequence", "ROIElementalCompositionAtomicNumber", "ROIElementalCompositionAtomicMassFraction", "FrameOfReferenceRelationshipSequence", "RelatedFrameOfReferenceUID", "FrameOfReferenceTransformationType", "FrameOfReferenceTransformationMatrix", "FrameOfReferenceTransformationComment", "Group3008Length", "MeasuredDoseReferenceSequence", "MeasuredDoseDescription", "MeasuredDoseType", "MeasuredDoseValue", "TreatmentSessionBeamSequence", "TreatmentSessionIonBeamSequence", "CurrentFractionNumber", "TreatmentControlPointDate", "TreatmentControlPointTime", "TreatmentTerminationStatus", "TreatmentTerminationCode", "TreatmentVerificationStatus", "ReferencedTreatmentRecordSequence", "SpecifiedPrimaryMeterset", "SpecifiedSecondaryMeterset", "DeliveredPrimaryMeterset", "DeliveredSecondaryMeterset", "SpecifiedTreatmentTime", "DeliveredTreatmentTime", "ControlPointDeliverySequence", "IonControlPointDeliverySequence", "SpecifiedMeterset", "DeliveredMeterset", "MetersetRateSet", "MetersetRateDelivered", "ScanSpotMetersetsDelivered", "DoseRateDelivered", "TreatmentSummaryCalculatedDoseReferenceSequence", "CumulativeDoseToDoseReference", "FirstTreatmentDate", "MostRecentTreatmentDate", "NumberOfFractionsDelivered", "OverrideSequence", "ParameterSequencePointer", "OverrideParameterPointer", "ParameterItemIndex", "MeasuredDoseReferenceNumber", "ParameterPointer", "OverrideReason", "CorrectedParameterSequence", "CorrectionValue", "CalculatedDoseReferenceSequence", "CalculatedDoseReferenceNumber", "CalculatedDoseReferenceDescription", "CalculatedDoseReferenceDoseValue", "StartMeterset", "EndMeterset", "ReferencedMeasuredDoseReferenceSequence", "ReferencedMeasuredDoseReferenceNumber", "ReferencedCalculatedDoseReferenceSequence", "ReferencedCalculatedDoseReferenceNumber", "BeamLimitingDeviceLeafPairsSequence", "RecordedWedgeSequence", "RecordedCompensatorSequence", "RecordedBlockSequence", "TreatmentSummaryMeasuredDoseReferenceSequence", "RecordedSnoutSequence", "RecordedRangeShifterSequence", "RecordedLateralSpreadingDeviceSequence", "RecordedRangeModulatorSequence", "RecordedSourceSequence", "SourceSerialNumber", "TreatmentSessionApplicationSetupSequence", "ApplicationSetupCheck", "RecordedBrachyAccessoryDeviceSequence", "ReferencedBrachyAccessoryDeviceNumber", "RecordedChannelSequence", "SpecifiedChannelTotalTime", "DeliveredChannelTotalTime", "SpecifiedNumberOfPulses", "DeliveredNumberOfPulses", "SpecifiedPulseRepetitionInterval", "DeliveredPulseRepetitionInterval", "RecordedSourceApplicatorSequence", "ReferencedSourceApplicatorNumber", "RecordedChannelShieldSequence", "ReferencedChannelShieldNumber", "BrachyControlPointDeliveredSequence", "SafePositionExitDate", "SafePositionExitTime", "SafePositionReturnDate", "SafePositionReturnTime", "CurrentTreatmentStatus", "TreatmentStatusComment", "FractionGroupSummarySequence", "ReferencedFractionNumber", "FractionGroupType", "BeamStopperPosition", "FractionStatusSummarySequence", "TreatmentDate", "TreatmentTime", "Group300aLength", "RTPlanLabel", "RTPlanName", "RTPlanDescription", "RTPlanDate", "RTPlanTime", "TreatmentProtocols", "PlanIntent", "TreatmentSites", "RTPlanGeometry", "PrescriptionDescription", "DoseReferenceSequence", "DoseReferenceNumber", "DoseReferenceUID", "DoseReferenceStructureType", "NominalBeamEnergyUnit", "DoseReferenceDescription", "DoseReferencePointCoordinates", "NominalPriorDose", "DoseReferenceType", "ConstraintWeight", "DeliveryWarningDose", "DeliveryMaximumDose", "TargetMinimumDose", "TargetPrescriptionDose", "TargetMaximumDose", "TargetUnderdoseVolumeFraction", "OrganAtRiskFullVolumeDose", "OrganAtRiskLimitDose", "OrganAtRiskMaximumDose", "OrganAtRiskOverdoseVolumeFraction", "ToleranceTableSequence", "ToleranceTableNumber", "ToleranceTableLabel", "GantryAngleTolerance", "BeamLimitingDeviceAngleTolerance", "BeamLimitingDeviceToleranceSequence", "BeamLimitingDevicePositionTolerance", "SnoutPositionTolerance", "PatientSupportAngleTolerance", "TableTopEccentricAngleTolerance", "TableTopPitchAngleTolerance", "TableTopRollAngleTolerance", "TableTopVerticalPositionTolerance", "TableTopLongitudinalPositionTolerance", "TableTopLateralPositionTolerance", "RTPlanRelationship", "FractionGroupSequence", "FractionGroupNumber", "FractionGroupDescription", "NumberOfFractionsPlanned", "NumberOfFractionPatternDigitsPerDay", "RepeatFractionCycleLength", "FractionPattern", "NumberOfBeams", "BeamDoseSpecificationPoint", "BeamDose", "BeamMeterset", "BeamDosePointDepth", "BeamDosePointEquivalentDepth", "BeamDosePointSSD", "BeamDoseMeaning", "BeamDoseVerificationControlPointSequence", "AverageBeamDosePointDepth", "AverageBeamDosePointEquivalentDepth", "AverageBeamDosePointSSD", "NumberOfBrachyApplicationSetups", "BrachyApplicationSetupDoseSpecificationPoint", "BrachyApplicationSetupDose", "BeamSequence", "TreatmentMachineName", "PrimaryDosimeterUnit", "SourceAxisDistance", "BeamLimitingDeviceSequence", "RTBeamLimitingDeviceType", "SourceToBeamLimitingDeviceDistance", "IsocenterToBeamLimitingDeviceDistance", "NumberOfLeafJawPairs", "LeafPositionBoundaries", "BeamNumber", "BeamName", "BeamDescription", "BeamType", "RadiationType", "HighDoseTechniqueType", "ReferenceImageNumber", "PlannedVerificationImageSequence", "ImagingDeviceSpecificAcquisitionParameters", "TreatmentDeliveryType", "NumberOfWedges", "WedgeSequence", "WedgeNumber", "WedgeType", "WedgeID", "WedgeAngle", "WedgeFactor", "TotalWedgeTrayWaterEquivalentThickness", "WedgeOrientation", "IsocenterToWedgeTrayDistance", "SourceToWedgeTrayDistance", "WedgeThinEdgePosition", "BolusID", "BolusDescription", "NumberOfCompensators", "MaterialID", "TotalCompensatorTrayFactor", "CompensatorSequence", "CompensatorNumber", "CompensatorID", "SourceToCompensatorTrayDistance", "CompensatorRows", "CompensatorColumns", "CompensatorPixelSpacing", "CompensatorPosition", "CompensatorTransmissionData", "CompensatorThicknessData", "NumberOfBoli", "CompensatorType", "CompensatorTrayID", "NumberOfBlocks", "TotalBlockTrayFactor", "TotalBlockTrayWaterEquivalentThickness", "BlockSequence", "BlockTrayID", "SourceToBlockTrayDistance", "IsocenterToBlockTrayDistance", "BlockType", "AccessoryCode", "BlockDivergence", "BlockMountingPosition", "BlockNumber", "BlockName", "BlockThickness", "BlockTransmission", "BlockNumberOfPoints", "BlockData", "ApplicatorSequence", "ApplicatorID", "ApplicatorType", "ApplicatorDescription", "CumulativeDoseReferenceCoefficient", "FinalCumulativeMetersetWeight", "NumberOfControlPoints", "ControlPointSequence", "ControlPointIndex", "NominalBeamEnergy", "DoseRateSet", "WedgePositionSequence", "WedgePosition", "BeamLimitingDevicePositionSequence", "LeafJawPositions", "GantryAngle", "GantryRotationDirection", "BeamLimitingDeviceAngle", "BeamLimitingDeviceRotationDirection", "PatientSupportAngle", "PatientSupportRotationDirection", "TableTopEccentricAxisDistance", "TableTopEccentricAngle", "TableTopEccentricRotationDirection", "TableTopVerticalPosition", "TableTopLongitudinalPosition", "TableTopLateralPosition", "IsocenterPosition", "SurfaceEntryPoint", "SourceToSurfaceDistance", "CumulativeMetersetWeight", "TableTopPitchAngle", "TableTopPitchRotationDirection", "TableTopRollAngle", "TableTopRollRotationDirection", "HeadFixationAngle", "GantryPitchAngle", "GantryPitchRotationDirection", "GantryPitchAngleTolerance", "PatientSetupSequence", "PatientSetupNumber", "PatientSetupLabel", "PatientAdditionalPosition", "FixationDeviceSequence", "FixationDeviceType", "FixationDeviceLabel", "FixationDeviceDescription", "FixationDevicePosition", "FixationDevicePitchAngle", "FixationDeviceRollAngle", "ShieldingDeviceSequence", "ShieldingDeviceType", "ShieldingDeviceLabel", "ShieldingDeviceDescription", "ShieldingDevicePosition", "SetupTechnique", "SetupTechniqueDescription", "SetupDeviceSequence", "SetupDeviceType", "SetupDeviceLabel", "SetupDeviceDescription", "SetupDeviceParameter", "SetupReferenceDescription", "TableTopVerticalSetupDisplacement", "TableTopLongitudinalSetupDisplacement", "TableTopLateralSetupDisplacement", "BrachyTreatmentTechnique", "BrachyTreatmentType", "TreatmentMachineSequence", "SourceSequence", "SourceNumber", "SourceType", "SourceManufacturer", "ActiveSourceDiameter", "ActiveSourceLength", "SourceModelID", "SourceDescription", "SourceEncapsulationNominalThickness", "SourceEncapsulationNominalTransmission", "SourceIsotopeName", "SourceIsotopeHalfLife", "SourceStrengthUnits", "ReferenceAirKermaRate", "SourceStrength", "SourceStrengthReferenceDate", "SourceStrengthReferenceTime", "ApplicationSetupSequence", "ApplicationSetupType", "ApplicationSetupNumber", "ApplicationSetupName", "ApplicationSetupManufacturer", "TemplateNumber", "TemplateType", "TemplateName", "TotalReferenceAirKerma", "BrachyAccessoryDeviceSequence", "BrachyAccessoryDeviceNumber", "BrachyAccessoryDeviceID", "BrachyAccessoryDeviceType", "BrachyAccessoryDeviceName", "BrachyAccessoryDeviceNominalThickness", "BrachyAccessoryDeviceNominalTransmission", "ChannelSequence", "ChannelNumber", "ChannelLength", "ChannelTotalTime", "SourceMovementType", "NumberOfPulses", "PulseRepetitionInterval", "SourceApplicatorNumber", "SourceApplicatorID", "SourceApplicatorType", "SourceApplicatorName", "SourceApplicatorLength", "SourceApplicatorManufacturer", "SourceApplicatorWallNominalThickness", "SourceApplicatorWallNominalTransmission", "SourceApplicatorStepSize", "TransferTubeNumber", "TransferTubeLength", "ChannelShieldSequence", "ChannelShieldNumber", "ChannelShieldID", "ChannelShieldName", "ChannelShieldNominalThickness", "ChannelShieldNominalTransmission", "FinalCumulativeTimeWeight", "BrachyControlPointSequence", "ControlPointRelativePosition", "ControlPoint3DPosition", "CumulativeTimeWeight", "CompensatorDivergence", "CompensatorMountingPosition", "SourceToCompensatorDistance", "TotalCompensatorTrayWaterEquivalentThickness", "IsocenterToCompensatorTrayDistance", "CompensatorColumnOffset", "IsocenterToCompensatorDistances", "CompensatorRelativeStoppingPowerRatio", "CompensatorMillingToolDiameter", "IonRangeCompensatorSequence", "CompensatorDescription", "RadiationMassNumber", "RadiationAtomicNumber", "RadiationChargeState", "ScanMode", "VirtualSourceAxisDistances", "SnoutSequence", "SnoutPosition", "SnoutID", "NumberOfRangeShifters", "RangeShifterSequence", "RangeShifterNumber", "RangeShifterID", "RangeShifterType", "RangeShifterDescription", "NumberOfLateralSpreadingDevices", "LateralSpreadingDeviceSequence", "LateralSpreadingDeviceNumber", "LateralSpreadingDeviceID", "LateralSpreadingDeviceType", "LateralSpreadingDeviceDescription", "LateralSpreadingDeviceWaterEquivalentThickness", "NumberOfRangeModulators", "RangeModulatorSequence", "RangeModulatorNumber", "RangeModulatorID", "RangeModulatorType", "RangeModulatorDescription", "BeamCurrentModulationID", "PatientSupportType", "PatientSupportID", "PatientSupportAccessoryCode", "FixationLightAzimuthalAngle", "FixationLightPolarAngle", "MetersetRate", "RangeShifterSettingsSequence", "RangeShifterSetting", "IsocenterToRangeShifterDistance", "RangeShifterWaterEquivalentThickness", "LateralSpreadingDeviceSettingsSequence", "LateralSpreadingDeviceSetting", "IsocenterToLateralSpreadingDeviceDistance", "RangeModulatorSettingsSequence", "RangeModulatorGatingStartValue", "RangeModulatorGatingStopValue", "RangeModulatorGatingStartWaterEquivalentThickness", "RangeModulatorGatingStopWaterEquivalentThickness", "IsocenterToRangeModulatorDistance", "ScanSpotTuneID", "NumberOfScanSpotPositions", "ScanSpotPositionMap", "ScanSpotMetersetWeights", "ScanningSpotSize", "NumberOfPaintings", "IonToleranceTableSequence", "IonBeamSequence", "IonBeamLimitingDeviceSequence", "IonBlockSequence", "IonControlPointSequence", "IonWedgeSequence", "IonWedgePositionSequence", "ReferencedSetupImageSequence", "SetupImageComment", "MotionSynchronizationSequence", "ControlPointOrientation", "GeneralAccessorySequence", "GeneralAccessoryID", "GeneralAccessoryDescription", "GeneralAccessoryType", "GeneralAccessoryNumber", "SourceToGeneralAccessoryDistance", "ApplicatorGeometrySequence", "ApplicatorApertureShape", "ApplicatorOpening", "ApplicatorOpeningX", "ApplicatorOpeningY", "SourceToApplicatorMountingPositionDistance", "Group300cLength", "ReferencedRTPlanSequence", "ReferencedBeamSequence", "ReferencedBeamNumber", "ReferencedReferenceImageNumber", "StartCumulativeMetersetWeight", "EndCumulativeMetersetWeight", "ReferencedBrachyApplicationSetupSequence", "ReferencedBrachyApplicationSetupNumber", "ReferencedSourceNumber", "ReferencedFractionGroupSequence", "ReferencedFractionGroupNumber", "ReferencedVerificationImageSequence", "ReferencedReferenceImageSequence", "ReferencedDoseReferenceSequence", "ReferencedDoseReferenceNumber", "BrachyReferencedDoseReferenceSequence", "ReferencedStructureSetSequence", "ReferencedPatientSetupNumber", "ReferencedDoseSequence", "ReferencedToleranceTableNumber", "ReferencedBolusSequence", "ReferencedWedgeNumber", "ReferencedCompensatorNumber", "ReferencedBlockNumber", "ReferencedControlPointIndex", "ReferencedControlPointSequence", "ReferencedStartControlPointIndex", "ReferencedStopControlPointIndex", "ReferencedRangeShifterNumber", "ReferencedLateralSpreadingDeviceNumber", "ReferencedRangeModulatorNumber", "Group300eLength", "ApprovalStatus", "ReviewDate", "ReviewTime", "ReviewerName", "Group4000Length", "Arbitrary", "TextComments", "Group4008Length", "ResultsID", "ResultsIDIssuer", "ReferencedInterpretationSequence", "ReportProductionStatusTrial", "InterpretationRecordedDate", "InterpretationRecordedTime", "InterpretationRecorder", "ReferenceToRecordedSound", "InterpretationTranscriptionDate", "InterpretationTranscriptionTime", "InterpretationTranscriber", "InterpretationText", "InterpretationAuthor", "InterpretationApproverSequence", "InterpretationApprovalDate", "InterpretationApprovalTime", "PhysicianApprovingInterpretation", "InterpretationDiagnosisDescription", "InterpretationDiagnosisCodeSequence", "ResultsDistributionListSequence", "DistributionName", "DistributionAddress", "InterpretationID", "InterpretationIDIssuer", "InterpretationTypeID", "InterpretationStatusID", "Impressions", "ResultsComments", "Group4010Length", "LowEnergyDetectors", "HighEnergyDetectors", "DetectorGeometrySequence", "ThreatROIVoxelSequence", "ThreatROIBase", "ThreatROIExtents", "ThreatROIBitmap", "RouteSegmentID", "GantryType", "OOIOwnerType", "RouteSegmentSequence", "PotentialThreatObjectID", "ThreatSequence", "ThreatCategory", "ThreatCategoryDescription", "ATDAbilityAssessment", "ATDAssessmentFlag", "ATDAssessmentProbability", "Mass", "Density", "ZEffective", "BoardingPassID", "CenterOfMass", "CenterOfPTO", "BoundingPolygon", "RouteSegmentStartLocationID", "RouteSegmentEndLocationID", "RouteSegmentLocationIDType", "AbortReason", "VolumeOfPTO", "AbortFlag", "RouteSegmentStartTime", "RouteSegmentEndTime", "TDRType", "InternationalRouteSegment", "ThreatDetectionAlgorithmandVersion", "AssignedLocation", "AlarmDecisionTime", "AlarmDecision", "NumberOfTotalObjects", "NumberOfAlarmObjects", "PTORepresentationSequence", "ATDAssessmentSequence", "TIPType", "DICOSVersion", "OOIOwnerCreationTime", "OOIType", "OOISize", "AcquisitionStatus", "BasisMaterialsCodeSequence", "PhantomType", "OOIOwnerSequence", "ScanType", "ItineraryID", "ItineraryIDType", "ItineraryIDAssigningAuthority", "RouteID", "RouteIDAssigningAuthority", "InboundArrivalType", "CarrierID", "CarrierIDAssigningAuthority", "SourceOrientation", "SourcePosition", "BeltHeight", "AlgorithmRoutingCodeSequence", "TransportClassification", "OOITypeDescriptor", "TotalProcessingTime", "DetectorCalibrationData", "AdditionalScreeningPerformed", "AdditionalInspectionSelectionCriteria", "AdditionalInspectionMethodSequence", "AITDeviceType", "QRMeasurementsSequence", "TargetMaterialSequence", "SNRThreshold", "ImageScaleRepresentation", "ReferencedPTOSequence", "ReferencedTDRInstanceSequence", "PTOLocationDescription", "AnomalyLocatorIndicatorSequence", "AnomalyLocatorIndicator", "PTORegionSequence", "InspectionSelectionCriteria", "SecondaryInspectionMethodSequence", "PRCSToRCSOrientation", "Group4ffeLength", "MACParametersSequence", "Group5000Length", "CurveDimensions", "NumberOfPoints", "TypeOfData", "CurveDescription", "AxisUnits", "AxisLabels", "DataValueRepresentation", "MinimumCoordinateValue", "MaximumCoordinateValue", "CurveRange", "CurveDataDescriptor", "CoordinateStartValue", "CoordinateStepValue", "CurveActivationLayer", "AudioType", "AudioSampleFormat", "NumberOfChannels", "NumberOfSamples", "SampleRate", "TotalTime", "AudioSampleData", "AudioComments", "CurveLabel", "CurveReferencedOverlaySequence", "CurveReferencedOverlayGroup", "CurveData", "Group5200Length", "SharedFunctionalGroupsSequence", "PerFrameFunctionalGroupsSequence", "Group5400Length", "WaveformSequence", "ChannelMinimumValue", "ChannelMaximumValue", "WaveformBitsAllocated", "WaveformSampleInterpretation", "WaveformPaddingValue", "WaveformData", "Group5600Length", "FirstOrderPhaseCorrectionAngle", "SpectroscopyData", "Group6000Length", "OverlayRows", "OverlayColumns", "OverlayPlanes", "NumberOfFramesInOverlay", "OverlayDescription", "OverlayType", "OverlaySubtype", "OverlayOrigin", "ImageFrameOrigin", "OverlayPlaneOrigin", "OverlayCompressionCode", "OverlayCompressionOriginator", "OverlayCompressionLabel", "OverlayCompressionDescription", "OverlayCompressionStepPointers", "OverlayRepeatInterval", "OverlayBitsGrouped", "OverlayBitsAllocated", "OverlayBitPosition", "OverlayFormat", "OverlayLocation", "OverlayCodeLabel", "OverlayNumberOfTables", "OverlayCodeTableLocation", "OverlayBitsForCodeWord", "OverlayActivationLayer", "OverlayDescriptorGray", "OverlayDescriptorRed", "OverlayDescriptorGreen", "OverlayDescriptorBlue", "OverlaysGray", "OverlaysRed", "OverlaysGreen", "OverlaysBlue", "ROIArea", "ROIMean", "ROIStandardDeviation", "OverlayLabel", "OverlayData", "OverlayComments", "PixelData", "CoefficientsSDVN", "CoefficientsSDHN", "CoefficientsSDDN", "VariablePixelData", "VariableNextDataGroup", "VariableCoefficientsSDVN", "VariableCoefficientsSDHN", "VariableCoefficientsSDDN", "DigitalSignaturesSequence", "DataSetTrailingPadding", "Item", "ItemDelimitationItem", "SequenceDelimitationItem" ]; const List<String> sortedKeywords = const [ "AITDeviceType", "ALinePixelSpacing", "ALineRate", "ALinesPerFrame", "ASLBolusCutoffDelayTime", "ASLBolusCutoffFlag", "ASLBolusCutoffTechnique", "ASLBolusCutoffTimingSequence", "ASLContext", "ASLCrusherDescription", "ASLCrusherFlag", "ASLCrusherFlowLimit", "ASLMidSlabPosition", "ASLPulseTrainDuration", "ASLSlabNumber", "ASLSlabOrientation", "ASLSlabSequence", "ASLSlabThickness", "ASLTechniqueDescription", "ATDAbilityAssessment", "ATDAssessmentFlag", "ATDAssessmentProbability", "ATDAssessmentSequence", "AbortFlag", "AbortReason", "AbsoluteChannelDisplayScale", "AbstractPriorCodeSequence", "AbstractPriorValue", "AccessionNumber", "AccessoryCode", "AcquiredImageAreaDoseProduct", "AcquiredSoundpathLength", "AcquisitionComments", "AcquisitionCompressionType", "AcquisitionContextDescription", "AcquisitionContextSequence", "AcquisitionContrast", "AcquisitionDate", "AcquisitionDateTime", "AcquisitionDeviceProcessingCode", "AcquisitionDeviceProcessingDescription", "AcquisitionDeviceTypeCodeSequence", "AcquisitionDuration", "AcquisitionIndex", "AcquisitionMatrix", "AcquisitionMethodAlgorithmSequence", "AcquisitionMethodCodeSequence", "AcquisitionNumber", "AcquisitionProtocolDescription", "AcquisitionProtocolName", "AcquisitionSampleSize", "AcquisitionStartCondition", "AcquisitionStartConditionData", "AcquisitionStatus", "AcquisitionTerminationCondition", "AcquisitionTerminationConditionData", "AcquisitionTime", "AcquisitionTimeSynchronized", "AcquisitionType", "AcquisitionsInSeries", "AcquisitionsInStudy", "AcrossScanSpatialResolution", "ActiveSourceDiameter", "ActiveSourceLength", "ActualCardiacTriggerDelayTime", "ActualCardiacTriggerTimePriorToRPeak", "ActualEnvironmentalConditions", "ActualFrameDuration", "ActualHumanPerformersSequence", "ActualRespiratoryTriggerDelayTime", "AdaptiveMapFormat", "AddIntermediateSequence", "AddNearSequence", "AddOtherSequence", "AddPower", "AdditionalDrugSequence", "AdditionalInspectionMethodSequence", "AdditionalInspectionSelectionCriteria", "AdditionalPatientHistory", "AdditionalScreeningPerformed", "AddressTrial", "AdministrationRouteCodeSequence", "AdmissionID", "AdmittingDate", "AdmittingDiagnosesCodeSequence", "AdmittingDiagnosesDescription", "AdmittingTime", "AgeCorrectedSensitivityDeviationAlgorithmSequence", "AgeCorrectedSensitivityDeviationProbabilityValue", "AgeCorrectedSensitivityDeviationValue", "AirCounts", "AlarmDecision", "AlarmDecisionTime", "AlgorithmCodeSequenceTrial", "AlgorithmDescription", "AlgorithmDescriptionTrial", "AlgorithmFamilyCodeSequence", "AlgorithmName", "AlgorithmNameCodeSequence", "AlgorithmParameters", "AlgorithmRoutingCodeSequence", "AlgorithmSource", "AlgorithmType", "AlgorithmVersion", "AliasedDataType", "Allergies", "AllowLossyCompression", "AllowMediaSplitting", "AlongScanSpatialResolution", "AlphaLUTTransferFunction", "AlphaPaletteColorLookupTableData", "AlphaPaletteColorLookupTableDescriptor", "AlternateContainerIdentifierSequence", "AlternateContentDescriptionSequence", "AlternateRepresentationSequence", "AmplifierType", "AnalyzedArea", "AnatomicApproachDirectionCodeSequenceTrial", "AnatomicLocationOfExaminingInstrumentCodeSequenceTrial", "AnatomicLocationOfExaminingInstrumentDescriptionTrial", "AnatomicPerspectiveCodeSequenceTrial", "AnatomicPerspectiveDescriptionTrial", "AnatomicPortalOfEntranceCodeSequenceTrial", "AnatomicRegionModifierSequence", "AnatomicRegionSequence", "AnatomicStructure", "AnatomicStructureReferencePoint", "AnatomicStructureSpaceOrRegionCodeSequenceTrial", "AnatomicStructureSpaceOrRegionModifierCodeSequenceTrial", "AnatomicStructureSpaceOrRegionSequence", "AnatomicalOrientationType", "AnchorPoint", "AnchorPointAnnotationUnits", "AnchorPointVisibility", "AngioFlag", "AngleNumber", "AngularPosition", "AngularStep", "AngularViewVector", "AnnotationContentSequence", "AnnotationDisplayFormatID", "AnnotationFlag", "AnnotationGroupNumber", "AnnotationPosition", "AnodeTargetMaterial", "AnomalyLocatorIndicator", "AnomalyLocatorIndicatorSequence", "AnteriorChamberDepth", "AnteriorChamberDepthDefinitionCodeSequence", "AnteriorChamberDepthSequence", "ApexPosition", "ApplicableFrameRange", "ApplicableSafetyStandardAgency", "ApplicableSafetyStandardDescription", "ApplicationManufacturer", "ApplicationMaximumRepaintTime", "ApplicationName", "ApplicationSetupCheck", "ApplicationSetupManufacturer", "ApplicationSetupName", "ApplicationSetupNumber", "ApplicationSetupSequence", "ApplicationSetupType", "ApplicationVersion", "ApplicatorApertureShape", "ApplicatorDescription", "ApplicatorGeometrySequence", "ApplicatorID", "ApplicatorOpening", "ApplicatorOpeningX", "ApplicatorOpeningY", "ApplicatorSequence", "ApplicatorType", "ApprovalStatus", "ApprovalStatusDateTime", "ApprovalStatusFurtherDescription", "Arbitrary", "ArchiveRequested", "ArterialSpinLabelingContrast", "AssignedLocation", "AssigningAgencyOrDepartmentCodeSequence", "AssigningFacilitySequence", "AssigningJurisdictionCodeSequence", "AttachedContours", "AttenuationCorrected", "AttenuationCorrectionMethod", "AttenuationCorrectionSource", "AttenuationCorrectionTemporalRelationship", "AttributeItemSelector", "AttributeModificationDateTime", "AttributeOccurrencePointer", "AttributeOccurrencePrivateCreator", "AttributeOccurrenceSequence", "AudioComments", "AudioSampleData", "AudioSampleFormat", "AudioType", "AuthorObserverSequence", "AuthorizationEquipmentCertificationNumber", "AutorefractionLeftEyeSequence", "AutorefractionRightEyeSequence", "AutosequenceFlag", "AverageBeamDosePointDepth", "AverageBeamDosePointEquivalentDepth", "AverageBeamDosePointSSD", "AverageCornealPower", "AveragePulseWidth", "AxialAcceptance", "AxialDetectorDimension", "AxialLengthOfTheEye", "AxialMash", "AxialPower", "AxialResolution", "AxisLabels", "AxisOfRotation", "AxisUnits", "BackgroundColor", "BackgroundIlluminationColorCodeSequence", "BackgroundLuminance", "BadPixelImage", "BarcodeSymbology", "BarcodeValue", "BaselineCorrection", "BasicColorImageSequence", "BasicGrayscaleImageSequence", "BasisMaterialsCodeSequence", "BeamAngle", "BeamCurrentModulationID", "BeamDescription", "BeamDose", "BeamDoseMeaning", "BeamDosePointDepth", "BeamDosePointEquivalentDepth", "BeamDosePointSSD", "BeamDoseSpecificationPoint", "BeamDoseVerificationControlPointSequence", "BeamLimitingDeviceAngle", "BeamLimitingDeviceAngleTolerance", "BeamLimitingDeviceLeafPairsSequence", "BeamLimitingDevicePositionSequence", "BeamLimitingDevicePositionTolerance", "BeamLimitingDeviceRotationDirection", "BeamLimitingDeviceSequence", "BeamLimitingDeviceToleranceSequence", "BeamMeterset", "BeamName", "BeamNumber", "BeamOrderIndex", "BeamOrderIndexTrial", "BeamSequence", "BeamSpotSize", "BeamStopperPosition", "BeamTaskSequence", "BeamTaskType", "BeamType", "BeatRejectionFlag", "BeltHeight", "BiPlaneAcquisitionSequence", "BibliographicCitationTrial", "BillingItemSequence", "BillingProcedureStepSequence", "BillingSuppliesAndDevicesSequence", "BiopsyTargetSequence", "BitsAllocated", "BitsForCodeWord", "BitsGrouped", "BitsMappedToColorLookupTable", "BitsStored", "BlendingLUT1Sequence", "BlendingLUT1TransferFunction", "BlendingLUT2Sequence", "BlendingLUT2TransferFunction", "BlendingLookupTableData", "BlendingLookupTableDescriptor", "BlendingOperationType", "BlendingPosition", "BlendingSequence", "BlendingWeightConstant", "BlindSpotLocalized", "BlindSpotXCoordinate", "BlindSpotYCoordinate", "BlockColumns", "BlockData", "BlockDivergence", "BlockMountingPosition", "BlockName", "BlockNumber", "BlockNumberOfPoints", "BlockRows", "BlockSequence", "BlockThickness", "BlockTransmission", "BlockTrayID", "BlockType", "BlockedPixels", "BloodSignalNulling", "BluePaletteColorLookupTableData", "BluePaletteColorLookupTableDescriptor", "BoardingPassID", "BodyPartExamined", "BodyPartThickness", "Bold", "BolusDescription", "BolusID", "BoneThermalIndex", "BorderDensity", "BottomRightHandCornerOfLocalizerArea", "BoundingBoxAnnotationUnits", "BoundingBoxBottomRightHandCorner", "BoundingBoxTextHorizontalJustification", "BoundingBoxTopLeftHandCorner", "BoundingPolygon", "BoundingRectangle", "BrachyAccessoryDeviceID", "BrachyAccessoryDeviceName", "BrachyAccessoryDeviceNominalThickness", "BrachyAccessoryDeviceNominalTransmission", "BrachyAccessoryDeviceNumber", "BrachyAccessoryDeviceSequence", "BrachyAccessoryDeviceType", "BrachyApplicationSetupDose", "BrachyApplicationSetupDoseSpecificationPoint", "BrachyControlPointDeliveredSequence", "BrachyControlPointSequence", "BrachyReferencedDoseReferenceSequence", "BrachyTreatmentTechnique", "BrachyTreatmentType", "BranchOfService", "BreastImplantPresent", "BreedRegistrationNumber", "BreedRegistrationSequence", "BreedRegistryCodeSequence", "BridgeResistors", "BulkMotionCompensationTechnique", "BulkMotionSignalSource", "BulkMotionStatus", "BurnedInAnnotation", "CADFileFormat", "CArmPositionerTabletopRelationship", "CSSFontName", "CTAcquisitionDetailsSequence", "CTAcquisitionTypeSequence", "CTAdditionalXRaySourceSequence", "CTDIPhantomTypeCodeSequence", "CTDIvol", "CTExposureSequence", "CTGeometrySequence", "CTImageFrameTypeSequence", "CTPositionSequence", "CTReconstructionSequence", "CTTableDynamicsSequence", "CTXRayDetailsSequence", "CalciumScoringMassFactorDevice", "CalciumScoringMassFactorPatient", "CalculatedAnatomyThickness", "CalculatedDoseReferenceDescription", "CalculatedDoseReferenceDoseValue", "CalculatedDoseReferenceNumber", "CalculatedDoseReferenceSequence", "CalculatedFrameList", "CalculatedTargetPosition", "CalibrationDataSequence", "CalibrationDate", "CalibrationImage", "CalibrationNotes", "CalibrationProcedure", "CalibrationSequence", "CalibrationSettingsSequence", "CalibrationTime", "CameraAngleOfView", "CardiacBeatRejectionTechnique", "CardiacCyclePosition", "CardiacFramingType", "CardiacNumberOfImages", "CardiacRRIntervalSpecified", "CardiacSignalSource", "CardiacSynchronizationSequence", "CardiacSynchronizationTechnique", "CarrierID", "CarrierIDAssigningAuthority", "CassetteID", "CassetteOrientation", "CassetteSize", "CatchTrialsDataFlag", "CatheterDirectionOfRotation", "CatheterRotationalRate", "CenterOfCircularCollimator", "CenterOfCircularExposureControlSensingRegion", "CenterOfCircularShutter", "CenterOfMass", "CenterOfPTO", "CenterOfRotation", "CenterOfRotationOffset", "CertificateOfSigner", "CertificateType", "CertifiedTimestamp", "CertifiedTimestampType", "ChannelBaseline", "ChannelDefinitionSequence", "ChannelDerivationDescription", "ChannelDescriptionCodeSequence", "ChannelDisplaySequence", "ChannelIdentificationCode", "ChannelLabel", "ChannelLength", "ChannelMaximumValue", "ChannelMinimumValue", "ChannelMode", "ChannelNumber", "ChannelOffset", "ChannelOverlap", "ChannelPosition", "ChannelRecommendedDisplayCIELabValue", "ChannelSampleSkew", "ChannelSensitivity", "ChannelSensitivityCorrectionFactor", "ChannelSensitivityUnitsSequence", "ChannelSequence", "ChannelSettingsSequence", "ChannelShieldID", "ChannelShieldName", "ChannelShieldNominalThickness", "ChannelShieldNominalTransmission", "ChannelShieldNumber", "ChannelShieldSequence", "ChannelSourceModifiersSequence", "ChannelSourceSequence", "ChannelStatus", "ChannelThreshold", "ChannelTimeSkew", "ChannelTotalTime", "ChannelWidth", "ChemicalShiftMaximumIntegrationLimitInHz", "ChemicalShiftMaximumIntegrationLimitInppm", "ChemicalShiftMinimumIntegrationLimitInHz", "ChemicalShiftMinimumIntegrationLimitInppm", "ChemicalShiftReference", "ChemicalShiftSequence", "CineRate", "CineRelativeToRealTime", "ClinicalTrialCoordinatingCenterName", "ClinicalTrialProtocolEthicsCommitteeApprovalNumber", "ClinicalTrialProtocolEthicsCommitteeName", "ClinicalTrialProtocolID", "ClinicalTrialProtocolName", "ClinicalTrialSeriesDescription", "ClinicalTrialSeriesID", "ClinicalTrialSiteID", "ClinicalTrialSiteName", "ClinicalTrialSponsorName", "ClinicalTrialSubjectID", "ClinicalTrialSubjectReadingID", "ClinicalTrialTimePointDescription", "ClinicalTrialTimePointID", "CoatingMaterialsCodeSequence", "CodeLabel", "CodeMeaning", "CodeNumberFormat", "CodeTableLocation", "CodeValue", "CodingSchemeDesignator", "CodingSchemeExternalID", "CodingSchemeIdentificationSequence", "CodingSchemeName", "CodingSchemeRegistry", "CodingSchemeResponsibleOrganization", "CodingSchemeUID", "CodingSchemeVersion", "CoefficientsSDDN", "CoefficientsSDHN", "CoefficientsSDVN", "CoincidenceWindowWidth", "CollationFlag", "CollimatorGridName", "CollimatorLeftVerticalEdge", "CollimatorLowerHorizontalEdge", "CollimatorRightVerticalEdge", "CollimatorShape", "CollimatorShapeSequence", "CollimatorType", "CollimatorUpperHorizontalEdge", "ColorImagePrintingFlag", "ColorSpace", "ColumnAngulation", "ColumnAngulationPatient", "ColumnOverlap", "ColumnPositionInTotalImagePixelMatrix", "Columns", "CommentsOnPatientPerformanceOfVisualField", "CommentsOnRadiationDose", "CommentsOnThePerformedProcedureStep", "CommentsOnTheScheduledProcedureStep", "CompensatorColumnOffset", "CompensatorColumns", "CompensatorDescription", "CompensatorDivergence", "CompensatorID", "CompensatorMillingToolDiameter", "CompensatorMountingPosition", "CompensatorNumber", "CompensatorPixelSpacing", "CompensatorPosition", "CompensatorRelativeStoppingPowerRatio", "CompensatorRows", "CompensatorSequence", "CompensatorThicknessData", "CompensatorTransmissionData", "CompensatorTrayID", "CompensatorType", "CompletionFlag", "CompletionFlagDescription", "ComplexImageComponent", "Component1ReferencedID", "Component1ReferencedMatingFeatureID", "Component1ReferencedMatingFeatureSetID", "Component2ReferencedID", "Component2ReferencedMatingFeatureID", "Component2ReferencedMatingFeatureSetID", "ComponentAssemblySequence", "ComponentID", "ComponentManufacturer", "ComponentManufacturingProcedure", "ComponentReferenceSystem", "ComponentSequence", "ComponentShape", "ComponentTypeCodeSequence", "ComponentTypesSequence", "CompoundGraphicInstanceID", "CompoundGraphicSequence", "CompoundGraphicType", "CompoundGraphicUnits", "CompressionCode", "CompressionDescription", "CompressionForce", "CompressionLabel", "CompressionOriginator", "CompressionRecognitionCode", "CompressionSequence", "CompressionStepPointers", "ConcatenationFrameOffsetNumber", "ConcatenationUID", "ConceptCodeSequence", "ConceptNameCodeSequence", "CondenserLensPower", "ConfidentialityCode", "ConfidentialityConstraintOnPatientDataDescription", "ConfigurationInformation", "ConfigurationInformationDescription", "ConsentForClinicalTrialUseSequence", "ConsentForDistributionFlag", "ConstantVolumeFlag", "ConstraintWeight", "ContactDisplayName", "ContactURI", "ContainerComponentDescription", "ContainerComponentDiameter", "ContainerComponentID", "ContainerComponentLength", "ContainerComponentMaterial", "ContainerComponentSequence", "ContainerComponentThickness", "ContainerComponentTypeCodeSequence", "ContainerComponentWidth", "ContainerDescription", "ContainerIdentifier", "ContainerTypeCodeSequence", "ContentCreatorIdentificationCodeSequence", "ContentCreatorName", "ContentDate", "ContentDescription", "ContentItemModifierSequence", "ContentLabel", "ContentQualification", "ContentSequence", "ContentTemplateSequence", "ContentTime", "ContextGroupExtensionCreatorUID", "ContextGroupExtensionFlag", "ContextGroupLocalVersion", "ContextGroupVersion", "ContextIdentifier", "ContextUID", "ContinuationEndMeterset", "ContinuationStartMeterset", "ContinuityOfContent", "ContourData", "ContourGeometricType", "ContourImageSequence", "ContourNumber", "ContourOffsetVector", "ContourSequence", "ContourSlabThickness", "ContourUncertaintyRadius", "ContrastAdministrationProfileSequence", "ContrastBolusAdministrationRouteSequence", "ContrastBolusAgent", "ContrastBolusAgentAdministered", "ContrastBolusAgentDetected", "ContrastBolusAgentNumber", "ContrastBolusAgentPhase", "ContrastBolusAgentSequence", "ContrastBolusIngredient", "ContrastBolusIngredientCodeSequence", "ContrastBolusIngredientConcentration", "ContrastBolusIngredientOpaque", "ContrastBolusIngredientPercentByVolume", "ContrastBolusRoute", "ContrastBolusStartTime", "ContrastBolusStopTime", "ContrastBolusTotalDose", "ContrastBolusUsageSequence", "ContrastBolusVolume", "ContrastFlowDuration", "ContrastFlowRate", "ContrastFrameAveraging", "ContributingEquipmentSequence", "ContributingSOPInstancesReferenceSequence", "ContributingSourcesSequence", "ContributionDateTime", "ContributionDescription", "ControlPoint3DPosition", "ControlPointDeliverySequence", "ControlPointIndex", "ControlPointOrientation", "ControlPointRelativePosition", "ControlPointSequence", "ConventionalControlPointVerificationSequence", "ConventionalMachineVerificationSequence", "ConversionSourceAttributesSequence", "ConversionType", "ConvolutionKernel", "ConvolutionKernelGroup", "CoordinateStartValue", "CoordinateStepValue", "CoordinateSystemAxesSequence", "CoordinateSystemAxisCodeSequence", "CoordinateSystemAxisDescription", "CoordinateSystemAxisNumber", "CoordinateSystemAxisType", "CoordinateSystemAxisUnits", "CoordinateSystemAxisValues", "CoordinateSystemDataSetMapping", "CoordinateSystemNumberOfAxes", "CoordinateSystemTransformRotationAndScaleMatrix", "CoordinateSystemTransformSequence", "CoordinateSystemTransformTranslationMatrix", "CoordinatesSetGeometricTypeTrial", "CornealEccentricityIndex", "CornealISValue", "CornealPointEstimated", "CornealPointLocation", "CornealSize", "CornealTopographyMapQualityEvaluation", "CornealTopographyMapTypeCodeSequence", "CornealTopographyMappingNormalsSequence", "CornealTopographySurface", "CornealVertexLocation", "CornealWavefront", "CorrectedImage", "CorrectedLocalizedDeviationFromNormal", "CorrectedLocalizedDeviationFromNormalCalculated", "CorrectedLocalizedDeviationFromNormalProbability", "CorrectedLocalizedDeviationFromNormalProbabilityCalculated", "CorrectedParameterSequence", "CorrectionValue", "CountLossNormalizationCorrected", "CountRate", "CountryOfResidence", "CountsAccumulated", "CountsIncluded", "CountsSource", "CouplingMedium", "CouplingTechnique", "CouplingVelocity", "CoverageOfKSpace", "CranialThermalIndex", "CreationDate", "CreationTime", "CreatorVersionUID", "CumulativeDoseReferenceCoefficient", "CumulativeDoseToDoseReference", "CumulativeMetersetWeight", "CumulativeTimeWeight", "CurrentFractionNumber", "CurrentObserverTrial", "CurrentPatientLocation", "CurrentRequestedProcedureEvidenceSequence", "CurrentTreatmentStatus", "CurvatureType", "CurveActivationLayer", "CurveData", "CurveDataDescriptor", "CurveDate", "CurveDescription", "CurveDimensions", "CurveLabel", "CurveNumber", "CurveRange", "CurveReferencedOverlayGroup", "CurveReferencedOverlaySequence", "CurveTime", "CustodialOrganizationSequence", "CylinderAxis", "CylinderLensPower", "CylinderPower", "CylinderSequence", "DACAmplitude", "DACGainPoints", "DACSequence", "DACTimePoints", "DACType", "DCTLabel", "DICOMMediaRetrievalSequence", "DICOMRetrievalSequence", "DICOSVersion", "DVHData", "DVHDoseScaling", "DVHMaximumDose", "DVHMeanDose", "DVHMinimumDose", "DVHNormalizationDoseValue", "DVHNormalizationPoint", "DVHNumberOfBins", "DVHROIContributionType", "DVHReferencedROISequence", "DVHSequence", "DVHType", "DVHVolumeUnits", "Damping", "DarkCurrentCounts", "DarkCurrentSequence", "DataBlock", "DataBlockDescription", "DataCollectionCenterPatient", "DataCollectionDiameter", "DataElementsSigned", "DataFrameAssignmentSequence", "DataInformationSequence", "DataObservationSequence", "DataPathAssignment", "DataPathID", "DataPointColumns", "DataPointRows", "DataRepresentation", "DataSetDescription", "DataSetName", "DataSetSource", "DataSetSubtype", "DataSetTrailingPadding", "DataSetType", "DataSetVersion", "DataType", "DataValueRepresentation", "Date", "DateOfDocumentOrVerbalTransactionTrial", "DateOfGainCalibration", "DateOfLastCalibration", "DateOfLastDetectorCalibration", "DateOfSecondaryCapture", "DateTime", "DeadTimeCorrected", "DeadTimeCorrectionFlag", "DeadTimeFactor", "DecayCorrected", "DecayCorrection", "DecayCorrectionDateTime", "DecayFactor", "DecimalPotentialVisualAcuity", "DecimalVisualAcuity", "DecimateCropResult", "DecoupledNucleus", "Decoupling", "DecouplingChemicalShiftReference", "DecouplingFrequency", "DecouplingMethod", "DefaultMagnificationType", "DefaultPrinterResolutionID", "DefaultSmoothingType", "DeformableRegistrationGridSequence", "DeformableRegistrationSequence", "DegreeOfDilation", "DegreeOfFreedomID", "DegreeOfFreedomType", "DeidentificationMethod", "DeidentificationMethodCodeSequence", "DelayLawIdentifier", "DeletionLock", "DeliveredChannelTotalTime", "DeliveredMeterset", "DeliveredNumberOfPulses", "DeliveredPrimaryMeterset", "DeliveredPulseRepetitionInterval", "DeliveredSecondaryMeterset", "DeliveredTreatmentTime", "DeliveryMaximumDose", "DeliveryVerificationImageSequence", "DeliveryWarningDose", "Density", "DepthOfScanField", "DepthOfTransverseImage", "DepthSpatialResolution", "DepthsOfFocus", "DerivationCodeSequence", "DerivationDescription", "DerivationImageSequence", "DerivationImplantAssemblyTemplateSequence", "DerivationImplantTemplateSequence", "DestinationAE", "DetailsOfCoefficients", "DetectorActivationOffsetFromExposure", "DetectorActiveDimensions", "DetectorActiveOrigin", "DetectorActiveShape", "DetectorActiveTime", "DetectorBinning", "DetectorCalibrationData", "DetectorConditionsNominalFlag", "DetectorConfiguration", "DetectorDescription", "DetectorElementPhysicalSize", "DetectorElementSize", "DetectorElementSpacing", "DetectorGeometry", "DetectorGeometrySequence", "DetectorID", "DetectorInformationSequence", "DetectorLinesOfResponseUsed", "DetectorManufacturerModelName", "DetectorManufacturerName", "DetectorMode", "DetectorNormalizationCorrection", "DetectorPrimaryAngle", "DetectorSecondaryAngle", "DetectorTemperature", "DetectorTemperatureSequence", "DetectorTimeSinceLastExposure", "DetectorType", "DetectorVector", "DeviationIndex", "DeviceDescription", "DeviceDiameter", "DeviceDiameterUnits", "DeviceID", "DeviceLength", "DeviceSequence", "DeviceSerialNumber", "DeviceUID", "DeviceVolume", "DiameterOfVisibility", "DiaphragmPosition", "DiffusionAnisotropyType", "DiffusionBMatrixSequence", "DiffusionBValue", "DiffusionBValueXX", "DiffusionBValueXY", "DiffusionBValueXZ", "DiffusionBValueYY", "DiffusionBValueYZ", "DiffusionBValueZZ", "DiffusionDirectionality", "DiffusionGradientDirectionSequence", "DiffusionGradientOrientation", "DigitalImageFormatAcquired", "DigitalSignatureDateTime", "DigitalSignaturePurposeCodeSequence", "DigitalSignatureUID", "DigitalSignaturesSequence", "DigitizingDeviceTransportDirection", "DimensionDescriptionLabel", "DimensionIndexPointer", "DimensionIndexPrivateCreator", "DimensionIndexSequence", "DimensionIndexValues", "DimensionOrganizationSequence", "DimensionOrganizationType", "DimensionOrganizationUID", "DirectoryRecordSequence", "DirectoryRecordType", "DischargeDate", "DischargeDiagnosisCodeSequence", "DischargeDiagnosisDescription", "DischargeTime", "DisplayEnvironmentSpatialPosition", "DisplayFilterPercentage", "DisplaySetHorizontalJustification", "DisplaySetLabel", "DisplaySetNumber", "DisplaySetPatientOrientation", "DisplaySetPresentationGroup", "DisplaySetPresentationGroupDescription", "DisplaySetScrollingGroup", "DisplaySetVerticalJustification", "DisplaySetsSequence", "DisplayShadingFlag", "DisplayWindowLabelVector", "DisplayedAreaBottomRightHandCorner", "DisplayedAreaBottomRightHandCornerTrial", "DisplayedAreaSelectionSequence", "DisplayedAreaTopLeftHandCorner", "DisplayedAreaTopLeftHandCornerTrial", "DisplayedZValue", "DistanceBetweenFocalPlanes", "DistanceObjectToTableTop", "DistancePupillaryDistance", "DistanceReceptorPlaneToDetectorHousing", "DistanceSourceToDataCollectionCenter", "DistanceSourceToDetector", "DistanceSourceToEntrance", "DistanceSourceToIsocenter", "DistanceSourceToPatient", "DistanceSourceToSupport", "DistributionAddress", "DistributionName", "DistributionType", "DocumentAuthorIdentifierCodeSequenceTrial", "DocumentAuthorTrial", "DocumentClassCodeSequence", "DocumentIdentifierCodeSequenceTrial", "DocumentTitle", "DocumentingObserverIdentifierCodeSequenceTrial", "DocumentingOrganizationIdentifierCodeSequenceTrial", "DopplerCorrectionAngle", "DopplerSampleVolumeXPosition", "DopplerSampleVolumeXPositionRetired", "DopplerSampleVolumeYPosition", "DopplerSampleVolumeYPositionRetired", "DoseCalibrationFactor", "DoseComment", "DoseGridScaling", "DoseRateDelivered", "DoseRateSet", "DoseReferenceDescription", "DoseReferenceNumber", "DoseReferencePointCoordinates", "DoseReferenceSequence", "DoseReferenceStructureType", "DoseReferenceType", "DoseReferenceUID", "DoseSummationType", "DoseType", "DoseUnits", "DoseValue", "DoubleExposureFieldDelta", "DoubleExposureFieldDeltaTrial", "DoubleExposureFlag", "DoubleExposureMeterset", "DoubleExposureMetersetTrial", "DoubleExposureOrdering", "DriveProbeSequence", "DriveType", "DynamicRange", "EchoNumbers", "EchoPlanarPulseSequence", "EchoPulseSequence", "EchoTime", "EchoTrainLength", "EdgePointIndexList", "EffectiveDateTime", "EffectiveDuration", "EffectiveEchoTime", "EffectiveRefractiveIndex", "ElementDimensionA", "ElementDimensionB", "ElementPitchA", "ElementPitchB", "ElementShape", "EmmetropicMagnification", "EmptyImageBoxCIELabValue", "EmptyImageDensity", "EncapsulatedDocument", "EncryptedAttributesSequence", "EncryptedContent", "EncryptedContentTransferSyntaxUID", "EndAcquisitionDateTime", "EndCumulativeMetersetWeight", "EndMeterset", "EndingRespiratoryAmplitude", "EndingRespiratoryPhase", "EnergyWeightingFactor", "EnergyWindowCenterline", "EnergyWindowInformationSequence", "EnergyWindowLowerLimit", "EnergyWindowName", "EnergyWindowNumber", "EnergyWindowRangeSequence", "EnergyWindowTotalWidth", "EnergyWindowUpperLimit", "EnergyWindowVector", "EnhancedPaletteColorLookupTableSequence", "EntranceDose", "EntranceDoseInmGy", "EnvironmentalConditions", "EquipmentCoordinateSystemIdentification", "EquivalentCDADocumentSequence", "EquivalentPupilRadius", "EscapeTriplet", "EstimatedDoseSaving", "EstimatedRadiographicMagnificationFactor", "EthnicGroup", "EvaluationAttempt", "EvaluatorName", "EvaluatorNumber", "EvaluatorSequence", "EventCodeSequence", "EventElapsedTimes", "EventTimeOffset", "EventTimerNames", "EventTimerSequence", "ExaminedBodyThickness", "ExcessiveFalseNegatives", "ExcessiveFalseNegativesDataFlag", "ExcessiveFalsePositives", "ExcessiveFalsePositivesDataFlag", "ExcessiveFixationLosses", "ExcessiveFixationLossesDataFlag", "ExcitationFrequency", "ExcludedIntervalsSequence", "ExclusionDuration", "ExclusionStartDateTime", "ExclusiveComponentType", "ExecutionStatus", "ExecutionStatusInfo", "ExpectedCompletionDateTime", "ExpiryDate", "ExposedArea", "Exposure", "ExposureControlMode", "ExposureControlModeDescription", "ExposureControlSensingRegionLeftVerticalEdge", "ExposureControlSensingRegionLowerHorizontalEdge", "ExposureControlSensingRegionRightVerticalEdge", "ExposureControlSensingRegionShape", "ExposureControlSensingRegionUpperHorizontalEdge", "ExposureControlSensingRegionsSequence", "ExposureDoseSequence", "ExposureIndex", "ExposureInmAs", "ExposureInuAs", "ExposureModulationType", "ExposureSequence", "ExposureStatus", "ExposureTime", "ExposureTimeInms", "ExposureTimeInuS", "ExposuresOnDetectorSinceLastCalibration", "ExposuresOnDetectorSinceManufactured", "ExposuresOnPlate", "ExtendedCodeMeaning", "ExtendedCodeValue", "ExtendedDepthOfField", "FacetSequence", "FailedAttributesSequence", "FailedSOPInstanceUIDList", "FailedSOPSequence", "FailureAttributes", "FailureReason", "FalseNegativesEstimate", "FalseNegativesEstimateFlag", "FalseNegativesQuantity", "FalsePositivesEstimate", "FalsePositivesEstimateFlag", "FalsePositivesQuantity", "FiducialDescription", "FiducialIdentifier", "FiducialIdentifierCodeSequence", "FiducialSequence", "FiducialSetSequence", "FiducialUID", "FieldOfViewDescription", "FieldOfViewDimensions", "FieldOfViewDimensionsInFloat", "FieldOfViewHorizontalFlip", "FieldOfViewOrigin", "FieldOfViewRotation", "FieldOfViewSequence", "FieldOfViewShape", "FileMetaInformationGroupLength", "FileMetaInformationVersion", "FileSetConsistencyFlag", "FileSetDescriptorFileID", "FileSetID", "FillMode", "FillPattern", "FillStyleSequence", "FillerOrderNumberImagingServiceRequest", "FillerOrderNumberImagingServiceRequestRetired", "FillerOrderNumberProcedure", "FilmBoxContentSequence", "FilmConsumptionSequence", "FilmDestination", "FilmOrientation", "FilmSessionLabel", "FilmSizeID", "FilterBeamPathLengthMaximum", "FilterBeamPathLengthMinimum", "FilterByAttributePresence", "FilterByCategory", "FilterByOperator", "FilterHighFrequency", "FilterLowFrequency", "FilterMaterial", "FilterMaterialUsedInGainCalibration", "FilterOperationsSequence", "FilterThicknessMaximum", "FilterThicknessMinimum", "FilterThicknessUsedInGainCalibration", "FilterType", "FinalCumulativeMetersetWeight", "FinalCumulativeTimeWeight", "FindingsFlagTrial", "FindingsGroupRecordingDateTrial", "FindingsGroupRecordingTimeTrial", "FindingsGroupUIDTrial", "FindingsSequenceTrial", "FindingsSourceCategoryCodeSequenceTrial", "FiniteVolume", "FirstALineLocation", "FirstOrderPhaseCorrection", "FirstOrderPhaseCorrectionAngle", "FirstTreatmentDate", "FixationCheckedQuantity", "FixationDeviceDescription", "FixationDeviceLabel", "FixationDevicePitchAngle", "FixationDevicePosition", "FixationDeviceRollAngle", "FixationDeviceSequence", "FixationDeviceType", "FixationLightAzimuthalAngle", "FixationLightPolarAngle", "FixationMethodCodeSequence", "FixationMonitoringCodeSequence", "FixationSequence", "FlatKeratometricAxisSequence", "FlipAngle", "FloatingPointValue", "FlowCompensation", "FlowCompensationDirection", "FluenceDataScale", "FluenceDataSource", "FluenceMapSequence", "FluenceMode", "FluenceModeID", "FluoroscopyFlag", "FocalDistance", "FocalSpots", "FocusDepth", "FocusMethod", "FontName", "FontNameType", "FovealPointNormativeDataFlag", "FovealPointProbabilityValue", "FovealSensitivity", "FovealSensitivityMeasured", "FractionGroupDescription", "FractionGroupNumber", "FractionGroupSequence", "FractionGroupSummarySequence", "FractionGroupType", "FractionNumber", "FractionPattern", "FractionStatusSummarySequence", "FractionalChannelDisplayScale", "FrameAcquisitionDateTime", "FrameAcquisitionDuration", "FrameAcquisitionNumber", "FrameAcquisitionSequence", "FrameAnatomySequence", "FrameComments", "FrameContentSequence", "FrameDelay", "FrameDetectorParametersSequence", "FrameDimensionPointer", "FrameDisplaySequence", "FrameDisplayShutterSequence", "FrameExtractionSequence", "FrameIncrementPointer", "FrameLabel", "FrameLabelVector", "FrameLaterality", "FrameNumbersOfInterest", "FrameOfInterestDescription", "FrameOfInterestType", "FrameOfReferenceRelationshipSequence", "FrameOfReferenceTransformationComment", "FrameOfReferenceTransformationMatrix", "FrameOfReferenceTransformationMatrixType", "FrameOfReferenceTransformationType", "FrameOfReferenceUID", "FramePixelDataPropertiesSequence", "FramePixelShiftSequence", "FramePrimaryAngleVector", "FrameReferenceDateTime", "FrameReferenceTime", "FrameSecondaryAngleVector", "FrameTime", "FrameTimeVector", "FrameType", "FrameVOILUTSequence", "FrequencyCorrection", "FunctionalGroupPointer", "FunctionalGroupPrivateCreator", "GainCorrectionReferenceSequence", "GantryAngle", "GantryAngleTolerance", "GantryDetectorSlew", "GantryDetectorTilt", "GantryID", "GantryMotionCorrected", "GantryPitchAngle", "GantryPitchAngleTolerance", "GantryPitchRotationDirection", "GantryRotationDirection", "GantryType", "GapLength", "GateSettingsSequence", "GateThreshold", "GatedInformationSequence", "GeneralAccessoryDescription", "GeneralAccessoryID", "GeneralAccessoryNumber", "GeneralAccessorySequence", "GeneralAccessoryType", "GeneralMachineVerificationSequence", "GeneralPurposePerformedProcedureStepStatus", "GeneralPurposeScheduledProcedureStepPriority", "GeneralPurposeScheduledProcedureStepStatus", "GeneralizedDefectCorrectedSensitivityDeviationFlag", "GeneralizedDefectCorrectedSensitivityDeviationProbabilityValue", "GeneralizedDefectCorrectedSensitivityDeviationValue", "GeneralizedDefectSensitivityDeviationAlgorithmSequence", "GeneratorID", "GeneratorPower", "GeneticModificationsCodeSequence", "GeneticModificationsDescription", "GeneticModificationsNomenclature", "GeneticModificationsSequence", "GeometricMaximumDistortion", "GeometricalProperties", "GeometryOfKSpaceTraversal", "GlobalDeviationFromNormal", "GlobalDeviationProbability", "GlobalDeviationProbabilityNormalsFlag", "GlobalDeviationProbabilitySequence", "GradientEchoTrainLength", "GradientOutput", "GradientOutputType", "GraphicAnnotationSequence", "GraphicAnnotationUnits", "GraphicCoordinatesDataSequence", "GraphicData", "GraphicDimensions", "GraphicFilled", "GraphicGroupDescription", "GraphicGroupID", "GraphicGroupLabel", "GraphicGroupSequence", "GraphicLayer", "GraphicLayerDescription", "GraphicLayerOrder", "GraphicLayerRecommendedDisplayCIELabValue", "GraphicLayerRecommendedDisplayGrayscaleValue", "GraphicLayerRecommendedDisplayRGBValue", "GraphicLayerSequence", "GraphicObjectSequence", "GraphicType", "GrayLookupTableData", "GrayLookupTableDescriptor", "GrayScale", "GreenPaletteColorLookupTableData", "GreenPaletteColorLookupTableDescriptor", "Grid", "GridAbsorbingMaterial", "GridAspectRatio", "GridDimensions", "GridFocalDistance", "GridFrameOffsetVector", "GridID", "GridPeriod", "GridPitch", "GridResolution", "GridSpacingMaterial", "GridThickness", "Group100Length", "Group10Length", "Group12Length", "Group14Length", "Group18Length", "Group2000Length", "Group2010Length", "Group2020Length", "Group2030Length", "Group2040Length", "Group2050Length", "Group20Length", "Group2100Length", "Group2110Length", "Group2120Length", "Group2130Length", "Group2200Length", "Group22Length", "Group24Length", "Group28Length", "Group3002Length", "Group3004Length", "Group3006Length", "Group3008Length", "Group300aLength", "Group300cLength", "Group300eLength", "Group32Length", "Group38Length", "Group3aLength", "Group4000Length", "Group4008Length", "Group400Length", "Group4010Length", "Group40Length", "Group42Length", "Group44Length", "Group46Length", "Group48Length", "Group4Length", "Group4ffeLength", "Group5000Length", "Group50Length", "Group5200Length", "Group52Length", "Group5400Length", "Group54Length", "Group5600Length", "Group6000Length", "Group60Length", "Group62Length", "Group64Length", "Group66Length", "Group68Length", "Group70Length", "Group72Length", "Group74Length", "Group76Length", "Group78Length", "Group80Length", "Group88Length", "Group8Length", "GroupOfPatientsIdentificationSequence", "HL7DocumentEffectiveTime", "HL7DocumentTypeCodeSequence", "HL7InstanceIdentifier", "HL7StructuredDocumentReferenceSequence", "HPGLContourPenNumber", "HPGLDocument", "HPGLDocumentID", "HPGLDocumentLabel", "HPGLDocumentScaling", "HPGLDocumentSequence", "HPGLPenDescription", "HPGLPenLabel", "HPGLPenNumber", "HPGLPenSequence", "HalfValueLayer", "HangingProtocolCreationDateTime", "HangingProtocolCreator", "HangingProtocolDefinitionSequence", "HangingProtocolDescription", "HangingProtocolLevel", "HangingProtocolName", "HangingProtocolUserGroupName", "HangingProtocolUserIdentificationCodeSequence", "HardcopyCreationDeviceID", "HardcopyDeviceManufacturer", "HardcopyDeviceManufacturerModelName", "HardcopyDeviceSoftwareVersion", "HeadFixationAngle", "HeartRate", "HighBit", "HighDoseTechniqueType", "HighEnergyDetectors", "HighRRValue", "HistogramBinWidth", "HistogramData", "HistogramExplanation", "HistogramFirstBinValue", "HistogramLastBinValue", "HistogramNumberOfBins", "HistogramSequence", "HomeCommunityID", "HorizontalAlignment", "HorizontalFieldOfView", "HorizontalOffsetOfSensor", "HorizontalPrismBase", "HorizontalPrismPower", "HuffmanTableSize", "HuffmanTableTriplet", "HumanPerformerCodeSequence", "HumanPerformerName", "HumanPerformerOrganization", "ICCProfile", "IOLFormulaCodeSequence", "IOLFormulaDetail", "IOLManufacturer", "IOLPower", "IOLPowerForExactEmmetropia", "IOLPowerForExactTargetRefraction", "IOLPowerSequence", "IVUSAcquisition", "IVUSGatedRate", "IVUSPullbackRate", "IVUSPullbackStartFrameNumber", "IVUSPullbackStopFrameNumber", "IconImageSequence", "IdenticalDocumentsSequence", "IdentificationDescriptionTrial", "IdentifierCodeSequenceTrial", "IdentifierTypeCode", "IdentifyingComments", "Illumination", "IlluminationBandwidth", "IlluminationColorCodeSequence", "IlluminationPower", "IlluminationTypeCodeSequence", "IlluminationWaveLength", "IlluminatorTypeCodeSequence", "ImageAndFluoroscopyAreaDoseProduct", "ImageBoxContentSequence", "ImageBoxLargeScrollAmount", "ImageBoxLargeScrollType", "ImageBoxLayoutType", "ImageBoxNumber", "ImageBoxOverlapPriority", "ImageBoxPosition", "ImageBoxPresentationLUTFlag", "ImageBoxScrollDirection", "ImageBoxSmallScrollAmount", "ImageBoxSmallScrollType", "ImageBoxSynchronizationSequence", "ImageBoxTileHorizontalDimension", "ImageBoxTileVerticalDimension", "ImageBoxesSequence", "ImageCenterPointCoordinatesSequence", "ImageComments", "ImageDataLocation", "ImageDataTypeSequence", "ImageDimensions", "ImageDisplayFormat", "ImageFilter", "ImageFormat", "ImageFrameOrigin", "ImageGeometryType", "ImageHorizontalFlip", "ImageID", "ImageIndex", "ImageLaterality", "ImageLocation", "ImageOrientation", "ImageOrientationPatient", "ImageOrientationSlide", "ImageOrientationVolume", "ImageOverlayBoxContentSequence", "ImageOverlayFlag", "ImagePathFilterPassBand", "ImagePathFilterPassThroughWavelength", "ImagePathFilterTypeStackCodeSequence", "ImagePlanePixelSpacing", "ImagePosition", "ImagePositionPatient", "ImagePositionVolume", "ImagePresentationComments", "ImageProcessingApplied", "ImageQualityIndicatorMaterial", "ImageQualityIndicatorSize", "ImageQualityIndicatorType", "ImageRotation", "ImageRotationRetired", "ImageScaleRepresentation", "ImageSetLabel", "ImageSetNumber", "ImageSetSelectorCategory", "ImageSetSelectorSequence", "ImageSetSelectorUsageFlag", "ImageSetsSequence", "ImageToEquipmentMappingMatrix", "ImageTransformationMatrix", "ImageTranslationVector", "ImageTriggerDelay", "ImageType", "ImagedNucleus", "ImagedVolumeDepth", "ImagedVolumeHeight", "ImagedVolumeWidth", "ImagerPixelSpacing", "ImagesInAcquisition", "ImagesInSeries", "ImagesInStudy", "ImagingDeviceSpecificAcquisitionParameters", "ImagingFrequency", "ImagingServiceRequestComments", "ImplantAssemblyTemplateIssuer", "ImplantAssemblyTemplateName", "ImplantAssemblyTemplateTargetAnatomySequence", "ImplantAssemblyTemplateType", "ImplantAssemblyTemplateVersion", "ImplantName", "ImplantPartNumber", "ImplantRegulatoryDisapprovalCodeSequence", "ImplantSize", "ImplantTargetAnatomySequence", "ImplantTemplate3DModelSurfaceNumber", "ImplantTemplateGroupDescription", "ImplantTemplateGroupIssuer", "ImplantTemplateGroupMemberID", "ImplantTemplateGroupMemberMatching2DCoordinatesSequence", "ImplantTemplateGroupMembersSequence", "ImplantTemplateGroupName", "ImplantTemplateGroupTargetAnatomySequence", "ImplantTemplateGroupVariationDimensionName", "ImplantTemplateGroupVariationDimensionRank", "ImplantTemplateGroupVariationDimensionRankSequence", "ImplantTemplateGroupVariationDimensionSequence", "ImplantTemplateGroupVersion", "ImplantTemplateVersion", "ImplantType", "ImplantTypeCodeSequence", "ImplementationClassUID", "ImplementationVersionName", "Impressions", "InConcatenationNumber", "InConcatenationTotalNumber", "InPlanePhaseEncodingDirection", "InStackPositionNumber", "InboundArrivalType", "IncidentAngle", "IncludeDisplayApplication", "IncludeNonDICOMObjects", "IndexNormalsFlag", "IndexProbability", "IndexProbabilitySequence", "IndicationDescription", "IndicationDisposition", "IndicationLabel", "IndicationNumber", "IndicationPhysicalPropertySequence", "IndicationROISequence", "IndicationSequence", "IndicationType", "InformationFromManufacturerSequence", "InformationIssueDateTime", "InformationSummary", "InitialCineRunState", "InnerDiameter", "InputAvailabilityFlag", "InputInformationSequence", "InputReadinessState", "InspectionSelectionCriteria", "InstanceAvailability", "InstanceCoercionDateTime", "InstanceCreationDate", "InstanceCreationTime", "InstanceCreatorUID", "InstanceNumber", "InstitutionAddress", "InstitutionCodeSequence", "InstitutionName", "InstitutionalDepartmentName", "InsurancePlanIdentification", "IntendedRecipientsOfResultsIdentificationSequence", "IntensifierActiveDimensions", "IntensifierActiveShape", "IntensifierSize", "InterMarkerDistance", "IntermediatePupillaryDistance", "InternalDetectorFrameTime", "InternationalRouteSegment", "InterpolationType", "InterpretationApprovalDate", "InterpretationApprovalTime", "InterpretationApproverSequence", "InterpretationAuthor", "InterpretationDiagnosisCodeSequence", "InterpretationDiagnosisDescription", "InterpretationID", "InterpretationIDIssuer", "InterpretationRecordedDate", "InterpretationRecordedTime", "InterpretationRecorder", "InterpretationStatusID", "InterpretationText", "InterpretationTranscriber", "InterpretationTranscriptionDate", "InterpretationTranscriptionTime", "InterpretationTypeID", "IntervalNumber", "IntervalsAcquired", "IntervalsRejected", "InterventionDescription", "InterventionDrugCodeSequence", "InterventionDrugDose", "InterventionDrugInformationSequence", "InterventionDrugName", "InterventionDrugStartTime", "InterventionDrugStopTime", "InterventionSequence", "InterventionStatus", "IntraOcularPressure", "IntraocularLensCalculationsLeftEyeSequence", "IntraocularLensCalculationsRightEyeSequence", "IntravascularFrameContentSequence", "IntravascularLongitudinalDistance", "IntravascularOCTFrameContentSequence", "IntravascularOCTFrameTypeSequence", "InversionRecovery", "InversionTime", "InversionTimes", "IonBeamLimitingDeviceSequence", "IonBeamSequence", "IonBlockSequence", "IonControlPointDeliverySequence", "IonControlPointSequence", "IonControlPointVerificationSequence", "IonMachineVerificationSequence", "IonRangeCompensatorSequence", "IonToleranceTableSequence", "IonWedgePositionSequence", "IonWedgeSequence", "IrradiationEventIdentificationSequence", "IrradiationEventUID", "IsocenterPosition", "IsocenterReferenceSystemSequence", "IsocenterToBeamLimitingDeviceDistance", "IsocenterToBlockTrayDistance", "IsocenterToCompensatorDistances", "IsocenterToCompensatorTrayDistance", "IsocenterToLateralSpreadingDeviceDistance", "IsocenterToRangeModulatorDistance", "IsocenterToRangeShifterDistance", "IsocenterToWedgeTrayDistance", "IsotopeNumber", "IssueDateOfImagingServiceRequest", "IssueTimeOfImagingServiceRequest", "IssuerOfAccessionNumberSequence", "IssuerOfAdmissionID", "IssuerOfAdmissionIDSequence", "IssuerOfPatientID", "IssuerOfPatientIDQualifiersSequence", "IssuerOfServiceEpisodeID", "IssuerOfServiceEpisodeIDSequence", "IssuerOfTheContainerIdentifierSequence", "IssuerOfTheSpecimenIdentifierSequence", "Italic", "Item", "ItemDelimitationItem", "ItemNumber", "IterativeReconstructionMethod", "ItineraryID", "ItineraryIDAssigningAuthority", "ItineraryIDType", "KSpaceFiltering", "KVP", "KVUsedInGainCalibration", "KeratoconusPredictionIndex", "KeratometerIndex", "KeratometricAxis", "KeratometricPower", "KeratometryLeftEyeSequence", "KeratometryMeasurementTypeCodeSequence", "KeratometryRightEyeSequence", "LINACEnergy", "LINACOutput", "LUTData", "LUTDescriptor", "LUTExplanation", "LUTFrameRange", "LUTFunction", "LUTLabel", "LUTNumber", "LabelStyleSelection", "LabelText", "LabelUsingInformationExtractedFromInstances", "LanguageCodeSequence", "LanguageCodeSequenceTrial", "LargeBluePaletteColorLookupTableData", "LargeBluePaletteColorLookupTableDescriptor", "LargeGreenPaletteColorLookupTableData", "LargeGreenPaletteColorLookupTableDescriptor", "LargePaletteColorLookupTableUID", "LargeRedPaletteColorLookupTableData", "LargeRedPaletteColorLookupTableDescriptor", "LargestImagePixelValue", "LargestImagePixelValueInPlane", "LargestMonochromePixelValue", "LargestPixelValueInSeries", "LargestValidPixelValue", "LastMenstrualDate", "LateralSpreadingDeviceDescription", "LateralSpreadingDeviceID", "LateralSpreadingDeviceNumber", "LateralSpreadingDeviceSequence", "LateralSpreadingDeviceSetting", "LateralSpreadingDeviceSettingsSequence", "LateralSpreadingDeviceType", "LateralSpreadingDeviceWaterEquivalentThickness", "Laterality", "LeafJawPositions", "LeafPositionBoundaries", "LeftImageSequence", "LeftLensSequence", "LengthToEnd", "LensConstantDescription", "LensConstantSequence", "LensDescription", "LensSegmentType", "LensStatusCodeSequence", "LensStatusDescription", "LensThickness", "LensThicknessSequence", "LensesCodeSequence", "LesionNumber", "LightPathFilterPassBand", "LightPathFilterPassThroughWavelength", "LightPathFilterTypeStackCodeSequence", "LineDashingStyle", "LinePattern", "LineSequence", "LineStyleSequence", "LineThickness", "ListOfMIMETypes", "LocalDeviationProbabilityNormalsFlag", "LocalNamespaceEntityID", "LocalizedDeviationFromNormal", "LocalizedDeviationProbability", "LocalizedDeviationProbabilitySequence", "LocalizingCursorPosition", "Location", "LocationOfMeasuredBeamDiameter", "LongitudinalTemporalInformationModified", "LossyImageCompression", "LossyImageCompressionMethod", "LossyImageCompressionRatio", "LossyImageCompressionRetired", "LowEnergyDetectors", "LowRRValue", "MAC", "MACAlgorithm", "MACCalculationTransferSyntaxUID", "MACIDNumber", "MACParametersSequence", "MAUsedInGainCalibration", "MIMETypeOfEncapsulatedDocument", "MRAcquisitionFrequencyEncodingSteps", "MRAcquisitionPhaseEncodingStepsInPlane", "MRAcquisitionPhaseEncodingStepsOutOfPlane", "MRAcquisitionType", "MRArterialSpinLabelingSequence", "MRAveragesSequence", "MRDRDirectoryRecordOffset", "MRDiffusionSequence", "MREchoSequence", "MRFOVGeometrySequence", "MRImageFrameTypeSequence", "MRImagingModifierSequence", "MRMetaboliteMapSequence", "MRModifierSequence", "MRReceiveCoilSequence", "MRSpatialSaturationSequence", "MRSpectroscopyAcquisitionType", "MRSpectroscopyFOVGeometrySequence", "MRSpectroscopyFrameTypeSequence", "MRTimingAndRelatedParametersSequence", "MRTransmitCoilSequence", "MRVelocityEncodingSequence", "MagneticFieldStrength", "MagnetizationTransfer", "MagnificationType", "MagnifyToNumberOfColumns", "MajorTicksSequence", "MandatoryComponentType", "Manifold", "ManipulatedImage", "Manufacturer", "ManufacturerModelName", "MappedPixelValue", "MappingResource", "MaskFrameNumbers", "MaskOperation", "MaskOperationExplanation", "MaskPointers", "MaskSelectionMode", "MaskSubPixelShift", "MaskSubtractionSequence", "MaskVisibilityPercentage", "MaskingImage", "Mass", "MaterialGrade", "MaterialID", "MaterialIsolationDiameter", "MaterialNotes", "MaterialPipeDiameter", "MaterialPropertiesDescription", "MaterialPropertiesFileFormatRetired", "MaterialThickness", "MaterialsCodeSequence", "MatingFeatureDegreeOfFreedomSequence", "MatingFeatureID", "MatingFeatureSequence", "MatingFeatureSetID", "MatingFeatureSetLabel", "MatingFeatureSetsSequence", "MatrixRegistrationSequence", "MatrixSequence", "MaxDensity", "MaximumAcrossScanDistortion", "MaximumAlongScanDistortion", "MaximumCollatedFilms", "MaximumCoordinateValue", "MaximumCornealCurvature", "MaximumCornealCurvatureLocation", "MaximumCornealCurvatureSequence", "MaximumDepthDistortion", "MaximumFractionalValue", "MaximumMemoryAllocation", "MaximumPointDistance", "MaximumStimulusLuminance", "MeanPointDistance", "MeasuredBandwidth", "MeasuredBeamDimensionA", "MeasuredBeamDimensionB", "MeasuredCenterFrequency", "MeasuredDoseDescription", "MeasuredDoseReferenceNumber", "MeasuredDoseReferenceSequence", "MeasuredDoseType", "MeasuredDoseValue", "MeasuredValueSequence", "MeasurementAutomationTrial", "MeasurementLaterality", "MeasurementPrecisionDescriptionTrial", "MeasurementUnitsCodeSequence", "MeasuringUnitsSequence", "MechanicalIndex", "MediaDisposition", "MediaInstalledSequence", "MediaStorageSOPClassUID", "MediaStorageSOPInstanceUID", "MedicalAlerts", "MedicalRecordLocator", "MediumType", "MemoryAllocation", "MemoryBitDepth", "MetaboliteMapCodeSequence", "MetaboliteMapDescription", "MetersetExposure", "MetersetRate", "MetersetRateDelivered", "MetersetRateSet", "MidSlabPosition", "MilitaryRank", "MinDensity", "MinimumCoordinateValue", "MinimumKeratometricSequence", "MinimumSensitivityValue", "ModalitiesInStudy", "Modality", "ModalityLUTSequence", "ModalityLUTType", "ModeOfPercutaneousAccessSequence", "ModifiedAttributesSequence", "ModifiedImageDate", "ModifiedImageDescription", "ModifiedImageID", "ModifiedImageTime", "ModifierCodeSequence", "ModifyingDeviceID", "ModifyingDeviceManufacturer", "ModifyingSystem", "ModulationType", "MostRecentTreatmentDate", "MotionSynchronizationSequence", "MultiCoilConfiguration", "MultiCoilDefinitionSequence", "MultiCoilElementName", "MultiCoilElementUsed", "MultiFramePresentationSequence", "MultiFrameSourceSOPInstanceUID", "MultiPlanarExcitation", "MultipleCopiesFlag", "MultipleSpinEcho", "MultiplexGroupLabel", "MultiplexGroupTimeOffset", "MultiplexedAudioChannelsDescriptionCodeSequence", "MydriaticAgentCodeSequence", "MydriaticAgentConcentration", "MydriaticAgentConcentrationUnitsSequence", "MydriaticAgentSequence", "NTPSourceAddress", "NameOfPhysiciansReadingStudy", "NamesOfIntendedRecipientsOfResults", "NavigationDisplaySet", "NavigationIndicatorSequence", "NearPupillaryDistance", "NegativeCatchTrialsQuantity", "NetworkID", "NoName0", "NoName1", "NominalBeamEnergy", "NominalBeamEnergyUnit", "NominalCardiacTriggerDelayTime", "NominalCardiacTriggerTimePriorToRPeak", "NominalFrequency", "NominalInterval", "NominalPercentageOfCardiacPhase", "NominalPercentageOfRespiratoryPhase", "NominalPriorDose", "NominalRespiratoryTriggerDelayTime", "NominalScannedPixelSpacing", "NominalScreenDefinitionSequence", "NonDICOMOutputCodeSequence", "NonUniformRadialSamplingCorrected", "NormalizationFactorFormat", "NormalizationPoint", "NotchFilterBandwidth", "NotchFilterFrequency", "NotificationFromManufacturerSequence", "NuclearMedicineSeriesType", "NumberOfAlarmObjects", "NumberOfAverages", "NumberOfBeams", "NumberOfBlocks", "NumberOfBoli", "NumberOfBrachyApplicationSetups", "NumberOfChannels", "NumberOfCompensators", "NumberOfContourPoints", "NumberOfControlPoints", "NumberOfCopies", "NumberOfDetectors", "NumberOfElements", "NumberOfEnergyWindows", "NumberOfEventTimers", "NumberOfFilms", "NumberOfFocalPlanes", "NumberOfFractionPatternDigitsPerDay", "NumberOfFractionsDelivered", "NumberOfFractionsPlanned", "NumberOfFrames", "NumberOfFramesInOverlay", "NumberOfFramesInPhase", "NumberOfFramesInRotation", "NumberOfFramesIntegrated", "NumberOfFramesUsedForIntegration", "NumberOfGraphicPoints", "NumberOfHorizontalPixels", "NumberOfIterations", "NumberOfKSpaceTrajectories", "NumberOfLateralSpreadingDevices", "NumberOfLeafJawPairs", "NumberOfPaddedALines", "NumberOfPaintings", "NumberOfPatientRelatedInstances", "NumberOfPatientRelatedSeries", "NumberOfPatientRelatedStudies", "NumberOfPhaseEncodingSteps", "NumberOfPhases", "NumberOfPoints", "NumberOfPriorsReferenced", "NumberOfPulses", "NumberOfRRIntervals", "NumberOfRangeModulators", "NumberOfRangeShifters", "NumberOfReferences", "NumberOfRotations", "NumberOfSamples", "NumberOfScanSpotPositions", "NumberOfScreens", "NumberOfSeriesRelatedInstances", "NumberOfSlices", "NumberOfStages", "NumberOfStudyRelatedInstances", "NumberOfStudyRelatedSeries", "NumberOfSubsets", "NumberOfSurfacePoints", "NumberOfSurfaces", "NumberOfTableBreakPoints", "NumberOfTableEntries", "NumberOfTables", "NumberOfTemporalPositions", "NumberOfTimeSlices", "NumberOfTimeSlots", "NumberOfTomosynthesisSourceImages", "NumberOfTotalObjects", "NumberOfTransformSteps", "NumberOfTriggersInPhase", "NumberOfVectors", "NumberOfVerticalPixels", "NumberOfViewsInStage", "NumberOfVisualStimuli", "NumberOfWaveformChannels", "NumberOfWaveformSamples", "NumberOfWedges", "NumberOfZeroFills", "NumericValue", "NumericValueQualifierCodeSequence", "OCTAcquisitionDomain", "OCTFocalDistance", "OCTOpticalCenterWavelength", "OCTZOffsetApplied", "OCTZOffsetCorrection", "OOIOwnerCreationTime", "OOIOwnerSequence", "OOIOwnerType", "OOISize", "OOIType", "OOITypeDescriptor", "ObjectBinaryIdentifierTrial", "ObjectDirectoryBinaryIdentifierTrial", "ObjectPixelSpacingInCenterOfBeam", "ObjectThicknessSequence", "ObjectiveLensNumericalAperture", "ObjectiveLensPower", "ObservationCategoryCodeSequenceTrial", "ObservationDateTime", "ObservationDateTrial", "ObservationNumber", "ObservationSubjectClassTrial", "ObservationSubjectContextFlagTrial", "ObservationSubjectTypeCodeSequenceTrial", "ObservationSubjectUIDTrial", "ObservationTimeTrial", "ObservationUID", "ObserverContextFlagTrial", "ObserverType", "Occupation", "OffsetOfReferencedLowerLevelDirectoryEntity", "OffsetOfTheFirstDirectoryRecordOfTheRootDirectoryEntity", "OffsetOfTheLastDirectoryRecordOfTheRootDirectoryEntity", "OffsetOfTheNextDirectoryRecord", "OnAxisBackgroundAnatomicStructureCodeSequenceTrial", "OperatingMode", "OperatingModeSequence", "OperatingModeType", "OperatorIdentificationSequence", "OperatorsName", "OphthalmicAxialLength", "OphthalmicAxialLengthAcquisitionMethodCodeSequence", "OphthalmicAxialLengthDataSourceCodeSequence", "OphthalmicAxialLengthDataSourceDescription", "OphthalmicAxialLengthMeasurementModified", "OphthalmicAxialLengthMeasurementsLengthSummationSequence", "OphthalmicAxialLengthMeasurementsSegmentNameCodeSequence", "OphthalmicAxialLengthMeasurementsSegmentalLengthSequence", "OphthalmicAxialLengthMeasurementsSequence", "OphthalmicAxialLengthMeasurementsTotalLengthSequence", "OphthalmicAxialLengthMeasurementsType", "OphthalmicAxialLengthQualityMetricSequence", "OphthalmicAxialLengthQualityMetricTypeCodeSequence", "OphthalmicAxialLengthQualityMetricTypeDescription", "OphthalmicAxialLengthSelectionMethodCodeSequence", "OphthalmicAxialLengthSequence", "OphthalmicAxialLengthVelocity", "OphthalmicAxialMeasurementsDeviceType", "OphthalmicAxialMeasurementsLeftEyeSequence", "OphthalmicAxialMeasurementsRightEyeSequence", "OphthalmicFrameLocationSequence", "OphthalmicImageOrientation", "OphthalmicMappingDeviceType", "OphthalmicPatientClinicalInformationLeftEyeSequence", "OphthalmicPatientClinicalInformationRightEyeSequence", "OphthalmicThicknessMapQualityRatingSequence", "OphthalmicThicknessMapQualityThresholdSequence", "OphthalmicThicknessMapThresholdQualityRating", "OphthalmicThicknessMapTypeCodeSequence", "OphthalmicThicknessMappingNormalsSequence", "OphthalmicUltrasoundMethodCodeSequence", "OpticalOphthalmicAxialLengthMeasurementsSequence", "OpticalPathDescription", "OpticalPathIdentificationSequence", "OpticalPathIdentifier", "OpticalPathSequence", "OpticalSelectedOphthalmicAxialLengthSequence", "OpticalTransmittance", "Optotype", "OptotypeDetailedDefinition", "OptotypePresentation", "OrderCallbackPhoneNumber", "OrderEnteredBy", "OrderEntererLocation", "OrderFillerIdentifierSequence", "OrderPlacerIdentifierSequence", "OrganAtRiskFullVolumeDose", "OrganAtRiskLimitDose", "OrganAtRiskMaximumDose", "OrganAtRiskOverdoseVolumeFraction", "OrganDose", "OrganExposed", "OriginalAttributesSequence", "OriginalImageIdentification", "OriginalImageIdentificationNomenclature", "OriginalImageSequence", "OriginalImplantAssemblyTemplateSequence", "OriginalImplantTemplateSequence", "OriginalSpecializedSOPClassUID", "Originator", "OtherMagnificationTypesAvailable", "OtherMediaAvailableSequence", "OtherPatientIDs", "OtherPatientIDsSequence", "OtherPatientNames", "OtherPupillaryDistance", "OtherSmoothingTypesAvailable", "OtherStudyNumbers", "OuterDiameter", "OutputInformationSequence", "OutputPower", "OverallTemplateSpatialTolerance", "OverlayActivationLayer", "OverlayBackgroundDensity", "OverlayBitPosition", "OverlayBitsAllocated", "OverlayBitsForCodeWord", "OverlayBitsGrouped", "OverlayCodeLabel", "OverlayCodeTableLocation", "OverlayColumns", "OverlayComments", "OverlayCompressionCode", "OverlayCompressionDescription", "OverlayCompressionLabel", "OverlayCompressionOriginator", "OverlayCompressionStepPointers", "OverlayData", "OverlayDate", "OverlayDescription", "OverlayDescriptorBlue", "OverlayDescriptorGray", "OverlayDescriptorGreen", "OverlayDescriptorRed", "OverlayForegroundDensity", "OverlayFormat", "OverlayLabel", "OverlayLocation", "OverlayMagnificationType", "OverlayMode", "OverlayNumber", "OverlayNumberOfTables", "OverlayOrImageMagnification", "OverlayOrigin", "OverlayPixelDataSequence", "OverlayPlaneOrigin", "OverlayPlanes", "OverlayRepeatInterval", "OverlayRows", "OverlaySmoothingType", "OverlaySubtype", "OverlayTime", "OverlayType", "OverlaysBlue", "OverlaysGray", "OverlaysGreen", "OverlaysRed", "OverriddenAttributesSequence", "OverrideParameterPointer", "OverrideReason", "OverrideSequence", "OversamplingPhase", "OwnerID", "PETDetectorMotionDetailsSequence", "PETFrameAcquisitionSequence", "PETFrameCorrectionFactorsSequence", "PETFrameTypeSequence", "PETPositionSequence", "PETReconstructionSequence", "PETTableDynamicsSequence", "PRCSToRCSOrientation", "PTOLocationDescription", "PTORegionSequence", "PTORepresentationSequence", "PVCRejection", "PaddleDescription", "PageNumberVector", "PaletteColorLookupTableSequence", "PaletteColorLookupTableUID", "ParallelAcquisition", "ParallelAcquisitionTechnique", "ParallelReductionFactorInPlane", "ParallelReductionFactorInPlaneRetired", "ParallelReductionFactorOutOfPlane", "ParallelReductionFactorSecondInPlane", "ParameterItemIndex", "ParameterPointer", "ParameterSequencePointer", "PartialDataDisplayHandling", "PartialFourier", "PartialFourierDirection", "PartialView", "PartialViewCodeSequence", "PartialViewDescription", "ParticipantSequence", "ParticipationDateTime", "ParticipationType", "PatientAdditionalPosition", "PatientAddress", "PatientAge", "PatientBirthDate", "PatientBirthName", "PatientBirthTime", "PatientBreedCodeSequence", "PatientBreedDescription", "PatientClinicalTrialParticipationSequence", "PatientComments", "PatientEyeMovementCommandCodeSequence", "PatientEyeMovementCommanded", "PatientFrameOfReferenceSource", "PatientGantryRelationshipCodeSequence", "PatientID", "PatientIdentityRemoved", "PatientInstitutionResidence", "PatientInsurancePlanCodeSequence", "PatientMotherBirthName", "PatientMotionCorrected", "PatientName", "PatientNotProperlyFixatedQuantity", "PatientOrientation", "PatientOrientationCodeSequence", "PatientOrientationInFrameSequence", "PatientOrientationModifierCodeSequence", "PatientPhysiologicalStateCodeSequence", "PatientPhysiologicalStateSequence", "PatientPosition", "PatientPrimaryLanguageCodeSequence", "PatientPrimaryLanguageModifierCodeSequence", "PatientReliabilityIndicator", "PatientReligiousPreference", "PatientSetupLabel", "PatientSetupNumber", "PatientSetupSequence", "PatientSex", "PatientSexNeutered", "PatientSize", "PatientSizeCodeSequence", "PatientSpeciesCodeSequence", "PatientSpeciesDescription", "PatientState", "PatientSupportAccessoryCode", "PatientSupportAdjustedAngle", "PatientSupportAngle", "PatientSupportAngleTolerance", "PatientSupportID", "PatientSupportRotationDirection", "PatientSupportType", "PatientTelephoneNumbers", "PatientTransportArrangements", "PatientWeight", "PatternOffColorCIELabValue", "PatternOffOpacity", "PatternOnColorCIELabValue", "PatternOnOpacity", "PauseBetweenFrames", "PerFrameFunctionalGroupsSequence", "PerProjectionAcquisitionSequence", "PercentPhaseFieldOfView", "PercentSampling", "PerformedLocation", "PerformedProcedureCodeSequence", "PerformedProcedureStepDescription", "PerformedProcedureStepDiscontinuationReasonCodeSequence", "PerformedProcedureStepEndDate", "PerformedProcedureStepEndDateTime", "PerformedProcedureStepEndTime", "PerformedProcedureStepID", "PerformedProcedureStepStartDate", "PerformedProcedureStepStartDateTime", "PerformedProcedureStepStartTime", "PerformedProcedureStepStatus", "PerformedProcedureTypeDescription", "PerformedProcessingApplicationsCodeSequence", "PerformedProcessingParametersSequence", "PerformedProtocolCodeSequence", "PerformedProtocolType", "PerformedSeriesSequence", "PerformedStationAETitle", "PerformedStationClassCodeSequence", "PerformedStationGeographicLocationCodeSequence", "PerformedStationName", "PerformedStationNameCodeSequence", "PerformedWorkitemCodeSequence", "PerformingPhysicianIdentificationSequence", "PerformingPhysicianName", "PerimeterTable", "PerimeterValue", "PersonAddress", "PersonIdentificationCodeSequence", "PersonName", "PersonTelephoneNumbers", "PertinentDocumentsSequence", "PertinentOtherEvidenceSequence", "PhantomType", "PhaseContrast", "PhaseDelay", "PhaseDescription", "PhaseInformationSequence", "PhaseNumber", "PhaseVector", "PhosphorType", "PhotometricInterpretation", "PhototimerSetting", "PhysicalDeltaX", "PhysicalDeltaY", "PhysicalDetectorSize", "PhysicalUnitsXDirection", "PhysicalUnitsYDirection", "PhysicianApprovingInterpretation", "PhysiciansOfRecord", "PhysiciansOfRecordIdentificationSequence", "PhysiciansReadingStudyIdentificationSequence", "PixelAspectRatio", "PixelBandwidth", "PixelComponentDataType", "PixelComponentMask", "PixelComponentOrganization", "PixelComponentPhysicalUnits", "PixelComponentRangeStart", "PixelComponentRangeStop", "PixelCoordinatesSetTrial", "PixelData", "PixelDataAreaOriginRelativeToFOV", "PixelDataAreaRotationAngleRelativeToFOV", "PixelDataProviderURL", "PixelIntensityRelationship", "PixelIntensityRelationshipLUTSequence", "PixelIntensityRelationshipSign", "PixelMeasuresSequence", "PixelOriginInterpretation", "PixelPaddingRangeLimit", "PixelPaddingValue", "PixelPresentation", "PixelRepresentation", "PixelShiftFrameRange", "PixelShiftSequence", "PixelSpacing", "PixelSpacingCalibrationDescription", "PixelSpacingCalibrationType", "PixelSpacingSequence", "PixelValueMappingCodeSequence", "PixelValueMappingExplanation", "PixelValueMappingToCodedConceptSequence", "PixelValueTransformationSequence", "PlacerOrderNumberImagingServiceRequest", "PlacerOrderNumberImagingServiceRequestRetired", "PlacerOrderNumberProcedure", "PlanIntent", "PlanarConfiguration", "PlaneIdentification", "PlaneOrientationSequence", "PlaneOrientationVolumeSequence", "PlanePositionSequence", "PlanePositionSlideSequence", "PlanePositionVolumeSequence", "Planes", "PlanesInAcquisition", "PlannedVerificationImageSequence", "PlanningLandmarkDescription", "PlanningLandmarkID", "PlanningLandmarkIdentificationCodeSequence", "PlanningLandmarkLineSequence", "PlanningLandmarkPlaneSequence", "PlanningLandmarkPointSequence", "PlateID", "PlateType", "PointCoordinatesData", "PointPositionAccuracy", "PointsBoundingBoxCoordinates", "Polarity", "PositionMeasuringDeviceUsed", "PositionOfIsocenterProjection", "PositionReferenceIndicator", "PositionerIsocenterDetectorRotationAngle", "PositionerIsocenterPrimaryAngle", "PositionerIsocenterSecondaryAngle", "PositionerMotion", "PositionerPositionSequence", "PositionerPrimaryAngle", "PositionerPrimaryAngleIncrement", "PositionerSecondaryAngle", "PositionerSecondaryAngleIncrement", "PositionerType", "PositiveCatchTrialsQuantity", "PostDeformationMatrixRegistrationSequence", "PostprocessingFunction", "PotentialThreatObjectID", "PreAmplifierEquipmentSequence", "PreAmplifierNotes", "PreAmplifierSettingsSequence", "PreDeformationMatrixRegistrationSequence", "PreMedication", "PredecessorDocumentsSequence", "PredecessorStructureSetSequence", "PredictedRefractiveError", "PredictorColumns", "PredictorConstants", "PredictorRows", "PreferredPlaybackSequencing", "PregnancyStatus", "PreliminaryFlag", "PrescriptionDescription", "PresentationCreationDate", "PresentationCreationTime", "PresentationGroupNumber", "PresentationIntentType", "PresentationLUTContentSequence", "PresentationLUTFlag", "PresentationLUTSequence", "PresentationLUTShape", "PresentationPixelAspectRatio", "PresentationPixelMagnificationRatio", "PresentationPixelSpacing", "PresentationSizeMode", "PresentedVisualStimuliDataFlag", "PreserveCompositeInstancesAfterMediaCreation", "PrimaryAnatomicStructureModifierSequence", "PrimaryAnatomicStructureSequence", "PrimaryDosimeterUnit", "PrimaryFluenceModeSequence", "PrimaryPositionerIncrement", "PrimaryPositionerScanArc", "PrimaryPositionerScanStartAngle", "PrimaryPromptsCountsAccumulated", "PrimitivePointIndexList", "PrintJobDescriptionSequence", "PrintJobID", "PrintManagementCapabilitiesSequence", "PrintPriority", "PrintQueueID", "PrinterCharacteristicsSequence", "PrinterConfigurationSequence", "PrinterName", "PrinterPixelSpacing", "PrinterResolutionID", "PrinterStatus", "PrinterStatusInfo", "PrintingBitDepth", "PrismSequence", "PrivateInformation", "PrivateInformationCreatorUID", "PrivateRecordUID", "ProbeCenterLocationX", "ProbeCenterLocationZ", "ProbeDriveEquipmentSequence", "ProbeDriveNotes", "ProbeDriveSettingsSequence", "ProbeInductance", "ProbeOrientationAngle", "ProbeResistance", "ProcedureCodeSequence", "ProcedureContextFlagTrial", "ProcedureContextSequenceTrial", "ProcedureCreationDate", "ProcedureExpirationDate", "ProcedureIdentifierCodeSequenceTrial", "ProcedureLastModifiedDate", "ProcedureStepCancellationDateTime", "ProcedureStepCommunicationsURISequence", "ProcedureStepDiscontinuationReasonCodeSequence", "ProcedureStepLabel", "ProcedureStepProgress", "ProcedureStepProgressDescription", "ProcedureStepProgressInformationSequence", "ProcedureStepRelationshipType", "ProcedureStepState", "ProcedureTypeCodeSequence", "ProcedureVersion", "ProcessingFunction", "ProductDescription", "ProductExpirationDateTime", "ProductLotIdentifier", "ProductName", "ProductPackageIdentifier", "ProductParameterSequence", "ProductTypeCodeSequence", "ProjectionEponymousNameCodeSequence", "ProjectionPixelCalibrationSequence", "PropertyLabel", "ProposedStudySequence", "ProtocolContextSequence", "ProtocolName", "PseudoColorPaletteInstanceReferenceSequence", "PseudoColorType", "PulseRepetitionFrequency", "PulseRepetitionInterval", "PulseSequenceName", "PulseWidth", "PulserEquipmentSequence", "PulserNotes", "PulserSettingsSequence", "PulserType", "PupilCentroidXCoordinate", "PupilCentroidYCoordinate", "PupilDilated", "PupilSize", "PurposeOfReferenceCodeSequence", "QRMeasurementsSequence", "QuadratureReceiveCoil", "QualityControlImage", "QualityControlSubject", "QualityControlSubjectTypeCodeSequence", "QuantifiedDefect", "Quantity", "QuantitySequence", "QueryRetrieveLevel", "QueryRetrieveView", "QueueStatus", "RFEchoTrainLength", "RGBLUTTransferFunction", "ROIArea", "ROIContourSequence", "ROIDescription", "ROIDisplayColor", "ROIElementalCompositionAtomicMassFraction", "ROIElementalCompositionAtomicNumber", "ROIElementalCompositionSequence", "ROIGenerationAlgorithm", "ROIGenerationDescription", "ROIInterpreter", "ROIMean", "ROIName", "ROINumber", "ROIObservationDescription", "ROIObservationLabel", "ROIPhysicalPropertiesSequence", "ROIPhysicalProperty", "ROIPhysicalPropertyValue", "ROIStandardDeviation", "ROIVolume", "RRIntervalTimeNominal", "RRIntervalVector", "RTBeamLimitingDeviceType", "RTDoseROISequence", "RTImageDescription", "RTImageLabel", "RTImageName", "RTImageOrientation", "RTImagePlane", "RTImagePosition", "RTImageSID", "RTPlanDate", "RTPlanDescription", "RTPlanGeometry", "RTPlanLabel", "RTPlanName", "RTPlanRelationship", "RTPlanTime", "RTROIIdentificationCodeSequence", "RTROIInterpretedType", "RTROIObservationsSequence", "RTROIRelationship", "RTReferencedSeriesSequence", "RTReferencedStudySequence", "RTRelatedROISequence", "RWavePointer", "RWaveTimeVector", "RadialPosition", "RadiationAtomicNumber", "RadiationChargeState", "RadiationMachineName", "RadiationMachineSAD", "RadiationMachineSSD", "RadiationMassNumber", "RadiationMode", "RadiationSetting", "RadiationType", "Radionuclide", "RadionuclideCodeSequence", "RadionuclideHalfLife", "RadionuclidePositronFraction", "RadionuclideTotalDose", "Radiopharmaceutical", "RadiopharmaceuticalAgentNumber", "RadiopharmaceuticalCodeSequence", "RadiopharmaceuticalInformationSequence", "RadiopharmaceuticalRoute", "RadiopharmaceuticalSpecificActivity", "RadiopharmaceuticalStartDateTime", "RadiopharmaceuticalStartTime", "RadiopharmaceuticalStopDateTime", "RadiopharmaceuticalStopTime", "RadiopharmaceuticalUsageSequence", "RadiopharmaceuticalVolume", "RadiusOfCircularCollimator", "RadiusOfCircularExposureControlSensingRegion", "RadiusOfCircularShutter", "RadiusOfCurvature", "RandomsCorrected", "RandomsCorrectionMethod", "RangeModulatorDescription", "RangeModulatorGatingStartValue", "RangeModulatorGatingStartWaterEquivalentThickness", "RangeModulatorGatingStopValue", "RangeModulatorGatingStopWaterEquivalentThickness", "RangeModulatorID", "RangeModulatorNumber", "RangeModulatorSequence", "RangeModulatorSettingsSequence", "RangeModulatorType", "RangeOfFreedom", "RangeShifterDescription", "RangeShifterID", "RangeShifterNumber", "RangeShifterSequence", "RangeShifterSetting", "RangeShifterSettingsSequence", "RangeShifterType", "RangeShifterWaterEquivalentThickness", "RangingDepth", "RationalDenominatorValue", "RationalNumeratorValue", "RawDataHandling", "RealWorldValueFirstValueMapped", "RealWorldValueIntercept", "RealWorldValueLUTData", "RealWorldValueLastValueMapped", "RealWorldValueMappingSequence", "RealWorldValueSlope", "ReasonForCancellation", "ReasonForPerformedProcedureCodeSequence", "ReasonForRequestedProcedureCodeSequence", "ReasonForStudy", "ReasonForTheAttributeModification", "ReasonForTheImagingServiceRequest", "ReasonForTheRequestedProcedure", "ReceiveCoilManufacturerName", "ReceiveCoilName", "ReceiveCoilType", "ReceiveProbeSequence", "ReceiveTransducerSequence", "ReceiveTransducerSettingsSequence", "ReceiverEquipmentSequence", "ReceiverNotes", "ReceiverSettingsSequence", "ReceivingAE", "ReceivingApplicationEntityTitle", "RecognitionCode", "RecognizableVisualFeatures", "RecommendedAbsentPixelCIELabValue", "RecommendedDisplayCIELabValue", "RecommendedDisplayFrameRate", "RecommendedDisplayFrameRateInFloat", "RecommendedDisplayGrayscaleValue", "RecommendedLineThickness", "RecommendedPointRadius", "RecommendedPresentationOpacity", "RecommendedPresentationType", "RecommendedRotationPoint", "RecommendedViewingMode", "ReconstructionAlgorithm", "ReconstructionAngle", "ReconstructionDescription", "ReconstructionDiameter", "ReconstructionFieldOfView", "ReconstructionIndex", "ReconstructionMethod", "ReconstructionPixelSpacing", "ReconstructionTargetCenterPatient", "ReconstructionType", "RecordInUseFlag", "RecordedBlockSequence", "RecordedBrachyAccessoryDeviceSequence", "RecordedChannelSequence", "RecordedChannelShieldSequence", "RecordedCompensatorSequence", "RecordedLateralSpreadingDeviceSequence", "RecordedRangeModulatorSequence", "RecordedRangeShifterSequence", "RecordedSnoutSequence", "RecordedSourceApplicatorSequence", "RecordedSourceSequence", "RecordedWedgeSequence", "RectificationType", "RectifierSmoothing", "RectilinearPhaseEncodeReordering", "RedPaletteColorLookupTableData", "RedPaletteColorLookupTableDescriptor", "Reference", "ReferenceAirKermaRate", "ReferenceCoordinates", "ReferenceDisplaySets", "ReferenceImageNumber", "ReferencePixelPhysicalValueX", "ReferencePixelPhysicalValueY", "ReferencePixelX0", "ReferencePixelY0", "ReferenceToRecordedSound", "ReferencedAccessionSequenceTrial", "ReferencedBasicAnnotationBoxSequence", "ReferencedBeamNumber", "ReferencedBeamSequence", "ReferencedBlockNumber", "ReferencedBolusSequence", "ReferencedBrachyAccessoryDeviceNumber", "ReferencedBrachyApplicationSetupNumber", "ReferencedBrachyApplicationSetupSequence", "ReferencedCalculatedDoseReferenceNumber", "ReferencedCalculatedDoseReferenceSequence", "ReferencedChannelShieldNumber", "ReferencedColorPaletteInstanceUID", "ReferencedCompensatorNumber", "ReferencedContentItemIdentifier", "ReferencedControlPointIndex", "ReferencedControlPointSequence", "ReferencedCurveSequence", "ReferencedDateTime", "ReferencedDigitalSignatureSequence", "ReferencedDoseReferenceNumber", "ReferencedDoseReferenceSequence", "ReferencedDoseSequence", "ReferencedFileID", "ReferencedFilmBoxSequence", "ReferencedFilmSessionSequence", "ReferencedFindingsGroupUIDTrial", "ReferencedFirstFrameSequence", "ReferencedFractionGroupNumber", "ReferencedFractionGroupSequence", "ReferencedFractionNumber", "ReferencedFrameNumber", "ReferencedFrameNumbers", "ReferencedFrameOfReferenceSequence", "ReferencedFrameOfReferenceUID", "ReferencedGeneralPurposeScheduledProcedureStepSequence", "ReferencedGeneralPurposeScheduledProcedureStepTransactionUID", "ReferencedHPGLDocumentID", "ReferencedImageBoxSequence", "ReferencedImageBoxSequenceRetired", "ReferencedImageEvidenceSequence", "ReferencedImageNavigationSequence", "ReferencedImageOverlayBoxSequence", "ReferencedImageRealWorldValueMappingSequence", "ReferencedImageSequence", "ReferencedImplantTemplateGroupMemberID", "ReferencedInstanceSequence", "ReferencedInterpretationSequence", "ReferencedLateralSpreadingDeviceNumber", "ReferencedMeasuredDoseReferenceNumber", "ReferencedMeasuredDoseReferenceSequence", "ReferencedNonImageCompositeSOPInstanceSequence", "ReferencedObjectObservationClassTrial", "ReferencedObservationClassTrial", "ReferencedObservationUIDTrial", "ReferencedOphthalmicAxialLengthMeasurementQCImageSequence", "ReferencedOphthalmicAxialMeasurementsSequence", "ReferencedOtherPlaneSequence", "ReferencedOverlayPlaneGroups", "ReferencedOverlayPlaneSequence", "ReferencedOverlaySequence", "ReferencedPTOSequence", "ReferencedPatientAliasSequence", "ReferencedPatientPhotoSequence", "ReferencedPatientSequence", "ReferencedPatientSetupNumber", "ReferencedPerformedProcedureStepSequence", "ReferencedPresentationLUTSequence", "ReferencedPresentationStateSequence", "ReferencedPrintJobSequence", "ReferencedPrintJobSequencePullStoredPrint", "ReferencedProcedureStepSequence", "ReferencedROINumber", "ReferencedRTPlanSequence", "ReferencedRangeModulatorNumber", "ReferencedRangeShifterNumber", "ReferencedRawDataSequence", "ReferencedRealWorldValueMappingInstanceSequence", "ReferencedReferenceImageNumber", "ReferencedReferenceImageSequence", "ReferencedRefractiveMeasurementsSequence", "ReferencedRequestSequence", "ReferencedResultsSequence", "ReferencedSOPClassUID", "ReferencedSOPClassUIDInFile", "ReferencedSOPInstanceMACSequence", "ReferencedSOPInstanceUID", "ReferencedSOPInstanceUIDInFile", "ReferencedSOPSequence", "ReferencedSamplePositions", "ReferencedSegmentNumber", "ReferencedSeriesSequence", "ReferencedSetupImageSequence", "ReferencedSourceApplicatorNumber", "ReferencedSourceNumber", "ReferencedSpatialRegistrationSequence", "ReferencedStartControlPointIndex", "ReferencedStereometricInstanceSequence", "ReferencedStopControlPointIndex", "ReferencedStorageMediaSequence", "ReferencedStoredPrintSequence", "ReferencedStructureSetSequence", "ReferencedStudySequence", "ReferencedSurfaceDataSequence", "ReferencedSurfaceNumber", "ReferencedSurfaceSequence", "ReferencedTDRInstanceSequence", "ReferencedTextureSequence", "ReferencedTimeOffsets", "ReferencedToleranceTableNumber", "ReferencedTransferSyntaxUIDInFile", "ReferencedTreatmentRecordSequence", "ReferencedVOILUTBoxSequence", "ReferencedVerificationImageSequence", "ReferencedVisitSequence", "ReferencedWaveformChannels", "ReferencedWaveformSequence", "ReferencedWedgeNumber", "ReferringPhysicianAddress", "ReferringPhysicianIdentificationSequence", "ReferringPhysicianName", "ReferringPhysicianTelephoneNumbers", "ReflectedAmbientLight", "ReformattingInterval", "ReformattingOperationInitialViewDirection", "ReformattingOperationType", "ReformattingThickness", "RefractiveErrorBeforeRefractiveSurgeryCodeSequence", "RefractiveIndexApplied", "RefractiveParametersUsedOnPatientSequence", "RefractivePower", "RefractiveProcedureOccurred", "RefractiveStateSequence", "RefractiveSurgeryTypeCodeSequence", "RegionDataType", "RegionFlags", "RegionLocationMaxX1", "RegionLocationMaxY1", "RegionLocationMinX0", "RegionLocationMinY0", "RegionOfResidence", "RegionPixelShiftSequence", "RegionSpatialFormat", "RegisteredLocalizerBottomRightHandCorner", "RegisteredLocalizerTopLeftHandCorner", "RegisteredLocalizerUnits", "RegistrationMethodCodeSequence", "RegistrationSequence", "RegistrationToLocalizerSequence", "RegistrationTypeCodeSequence", "RelatedFrameOfReferenceUID", "RelatedGeneralSOPClassUID", "RelatedProcedureStepSequence", "RelatedRTROIObservationsSequence", "RelatedReferenceRTImageSequence", "RelatedSeriesSequence", "RelationshipSequenceTrial", "RelationshipType", "RelationshipTypeCodeSequenceTrial", "RelativeElevation", "RelativeImagePositionCodeSequence", "RelativeOpacity", "RelativeTime", "RelativeTimeUnits", "RelativeXRayExposure", "RelevantInformationSequence", "RelevantOPTAttributesSequence", "RepeatFractionCycleLength", "RepeatInterval", "RepetitionTime", "ReplacedImplantAssemblyTemplateSequence", "ReplacedImplantTemplateGroupSequence", "ReplacedImplantTemplateSequence", "ReplacedProcedureStepSequence", "ReportDetailSequenceTrial", "ReportNumber", "ReportProductionStatusTrial", "ReportStatusCommentTrial", "ReportStatusIDTrial", "ReportedValuesOrigin", "ReportingPriority", "RepositoryUniqueID", "RepresentativeFrameNumber", "ReprojectionMethod", "RequestAttributesSequence", "RequestPriority", "RequestedContrastAgent", "RequestedDecimateCropBehavior", "RequestedImageSize", "RequestedImageSizeFlag", "RequestedMediaApplicationProfile", "RequestedProcedureCodeSequence", "RequestedProcedureComments", "RequestedProcedureDescription", "RequestedProcedureDescriptionTrial", "RequestedProcedureID", "RequestedProcedureLocation", "RequestedProcedurePriority", "RequestedResolutionID", "RequestedSOPInstanceUID", "RequestedSubsequentWorkitemCodeSequence", "RequestingAE", "RequestingPhysician", "RequestingPhysicianIdentificationSequence", "RequestingService", "RequestingServiceCodeSequence", "RescaleIntercept", "RescaleSlope", "RescaleType", "ResidualSyringeCounts", "ResonantNucleus", "RespiratoryCyclePosition", "RespiratoryIntervalTime", "RespiratoryMotionCompensationTechnique", "RespiratoryMotionCompensationTechniqueDescription", "RespiratorySignalSource", "RespiratorySignalSourceID", "RespiratorySynchronizationSequence", "RespiratoryTriggerDelayThreshold", "RespiratoryTriggerType", "ResponsibleOrganization", "ResponsiblePerson", "ResponsiblePersonRole", "ResultingGeneralPurposePerformedProcedureStepsSequence", "ResultsComments", "ResultsDistributionListSequence", "ResultsID", "ResultsIDIssuer", "ResultsNormalsSequence", "RetestSensitivityValue", "RetestStimulusSeen", "RetinalThicknessDefinitionCodeSequence", "RetrieveAETitle", "RetrieveLocationUID", "RetrieveURI", "RetrieveURL", "ReviewDate", "ReviewTime", "ReviewerName", "RevolutionTime", "RightImageSequence", "RightLensSequence", "RotationAngle", "RotationDirection", "RotationInformationSequence", "RotationOfScannedFilm", "RotationOffset", "RotationPoint", "RotationVector", "RouteID", "RouteIDAssigningAuthority", "RouteOfAdmissions", "RouteSegmentEndLocationID", "RouteSegmentEndTime", "RouteSegmentID", "RouteSegmentLocationIDType", "RouteSegmentSequence", "RouteSegmentStartLocationID", "RouteSegmentStartTime", "RowOverlap", "RowPositionInTotalImagePixelMatrix", "Rows", "RunLengthTriplet", "SAR", "SCPStatus", "SNRThreshold", "SOPAuthorizationComment", "SOPAuthorizationDateTime", "SOPClassUID", "SOPClassesInStudy", "SOPClassesSupported", "SOPInstanceStatus", "SOPInstanceUID", "SOPInstanceUIDOfConcatenationSource", "SUVType", "SafePositionExitDate", "SafePositionExitTime", "SafePositionReturnDate", "SafePositionReturnTime", "SampleRate", "SamplesPerPixel", "SamplesPerPixelUsed", "SamplingFrequency", "SaturationRecovery", "ScanArc", "ScanLength", "ScanMode", "ScanOptions", "ScanProcedure", "ScanSpotMetersetWeights", "ScanSpotMetersetsDelivered", "ScanSpotPositionMap", "ScanSpotTuneID", "ScanType", "ScanVelocity", "ScannerSettingsSequence", "ScanningSequence", "ScanningSpotSize", "ScatterCorrected", "ScatterCorrectionMethod", "ScatterFractionFactor", "ScheduledAdmissionDate", "ScheduledAdmissionTime", "ScheduledDischargeDate", "ScheduledDischargeTime", "ScheduledHumanPerformersSequence", "ScheduledPatientInstitutionResidence", "ScheduledPerformingPhysicianIdentificationSequence", "ScheduledPerformingPhysicianName", "ScheduledProcedureStepDescription", "ScheduledProcedureStepEndDate", "ScheduledProcedureStepEndTime", "ScheduledProcedureStepID", "ScheduledProcedureStepLocation", "ScheduledProcedureStepModificationDateTime", "ScheduledProcedureStepPriority", "ScheduledProcedureStepSequence", "ScheduledProcedureStepStartDate", "ScheduledProcedureStepStartDateTime", "ScheduledProcedureStepStartTime", "ScheduledProcedureStepStatus", "ScheduledProcessingApplicationsCodeSequence", "ScheduledProcessingParametersSequence", "ScheduledProtocolCodeSequence", "ScheduledSpecimenSequence", "ScheduledStationAETitle", "ScheduledStationClassCodeSequence", "ScheduledStationGeographicLocationCodeSequence", "ScheduledStationName", "ScheduledStationNameCodeSequence", "ScheduledStepAttributesSequence", "ScheduledStudyLocation", "ScheduledStudyLocationAETitle", "ScheduledStudyStartDate", "ScheduledStudyStartTime", "ScheduledStudyStopDate", "ScheduledStudyStopTime", "ScheduledWorkitemCodeSequence", "ScreenMinimumColorBitDepth", "ScreenMinimumGrayscaleBitDepth", "ScreeningBaselineMeasured", "ScreeningBaselineMeasuredSequence", "ScreeningBaselineType", "ScreeningBaselineValue", "ScreeningTestModeCodeSequence", "SeamLineIndex", "SeamLineLocation", "SecondaryCaptureDeviceID", "SecondaryCaptureDeviceManufacturer", "SecondaryCaptureDeviceManufacturerModelName", "SecondaryCaptureDeviceSoftwareVersions", "SecondaryCountsAccumulated", "SecondaryCountsType", "SecondaryInspectionMethodSequence", "SecondaryPositionerIncrement", "SecondaryPositionerScanArc", "SecondaryPositionerScanStartAngle", "SegmentAlgorithmName", "SegmentAlgorithmType", "SegmentDescription", "SegmentIdentificationSequence", "SegmentLabel", "SegmentNumber", "SegmentSequence", "SegmentSurfaceGenerationAlgorithmIdentificationSequence", "SegmentSurfaceSourceInstanceSequence", "SegmentationFractionalType", "SegmentationType", "SegmentedBluePaletteColorLookupTableData", "SegmentedGreenPaletteColorLookupTableData", "SegmentedKSpaceTraversal", "SegmentedPropertyCategoryCodeSequence", "SegmentedPropertyTypeCodeSequence", "SegmentedPropertyTypeModifierCodeSequence", "SegmentedRedPaletteColorLookupTableData", "SelectedSegmentalOphthalmicAxialLengthSequence", "SelectedTotalOphthalmicAxialLengthSequence", "SelectorATValue", "SelectorAttribute", "SelectorAttributePrivateCreator", "SelectorAttributeVR", "SelectorCSValue", "SelectorCodeSequenceValue", "SelectorDSValue", "SelectorFDValue", "SelectorFLValue", "SelectorISValue", "SelectorLOValue", "SelectorLTValue", "SelectorODValue", "SelectorPNValue", "SelectorSHValue", "SelectorSLValue", "SelectorSSValue", "SelectorSTValue", "SelectorSequencePointer", "SelectorSequencePointerItems", "SelectorSequencePointerPrivateCreator", "SelectorULValue", "SelectorUSValue", "SelectorUTValue", "SelectorValueNumber", "SendingApplicationEntityTitle", "Sensitivity", "SensitivityCalibrated", "SensitivityValue", "SensorName", "SensorTemperature", "SequenceDelimitationItem", "SequenceName", "SequenceOfCompressedData", "SequenceOfUltrasoundRegions", "SequenceVariant", "SequencingIndicatorTrial", "SeriesDate", "SeriesDescription", "SeriesDescriptionCodeSequence", "SeriesInStudy", "SeriesInstanceUID", "SeriesNumber", "SeriesTime", "SeriesType", "ServiceEpisodeDescription", "ServiceEpisodeID", "SetupDeviceDescription", "SetupDeviceLabel", "SetupDeviceParameter", "SetupDeviceSequence", "SetupDeviceType", "SetupImageComment", "SetupReferenceDescription", "SetupTechnique", "SetupTechniqueDescription", "ShadowColorCIELabValue", "ShadowOffsetX", "ShadowOffsetY", "ShadowOpacity", "ShadowStyle", "ShapeType", "SharedFunctionalGroupsSequence", "ShieldingDeviceDescription", "ShieldingDeviceLabel", "ShieldingDevicePosition", "ShieldingDeviceSequence", "ShieldingDeviceType", "ShiftTableSize", "ShiftTableTriplet", "ShortTermFluctuation", "ShortTermFluctuationCalculated", "ShortTermFluctuationProbability", "ShortTermFluctuationProbabilityCalculated", "ShotDurationTime", "ShotOffsetTime", "ShowAcquisitionTechniquesFlag", "ShowGraphicAnnotationFlag", "ShowGrayscaleInverted", "ShowImageTrueSizeFlag", "ShowPatientDemographicsFlag", "ShowTickLabel", "ShutterLeftVerticalEdge", "ShutterLowerHorizontalEdge", "ShutterOverlayGroup", "ShutterPresentationColorCIELabValue", "ShutterPresentationValue", "ShutterRightVerticalEdge", "ShutterShape", "ShutterUpperHorizontalEdge", "SignalDomainColumns", "SignalDomainRows", "SignalToNoiseRatio", "Signature", "SimpleFrameList", "SimulatedKeratometricCylinderSequence", "SingleCollimationWidth", "SkipBeats", "SkipFrameRangeFlag", "SlabOrientation", "SlabThickness", "SliceLocation", "SliceLocationVector", "SliceProgressionDirection", "SliceSensitivityFactor", "SliceThickness", "SliceVector", "SlideIdentifier", "SmallestImagePixelValue", "SmallestImagePixelValueInPlane", "SmallestPixelValueInSeries", "SmallestValidPixelValue", "SmokingStatus", "SmoothingType", "SnoutID", "SnoutPosition", "SnoutPositionTolerance", "SnoutSequence", "SoftTissueFocusThermalIndex", "SoftTissueSurfaceThermalIndex", "SoftTissueThermalIndex", "SoftcopyVOILUTSequence", "SoftwareVersions", "SortByCategory", "SortingDirection", "SortingOperationsSequence", "SoundPathLength", "SourceApplicationEntityTitle", "SourceApplicatorID", "SourceApplicatorLength", "SourceApplicatorManufacturer", "SourceApplicatorName", "SourceApplicatorNumber", "SourceApplicatorStepSize", "SourceApplicatorType", "SourceApplicatorWallNominalThickness", "SourceApplicatorWallNominalTransmission", "SourceAxisDistance", "SourceDescription", "SourceEncapsulationNominalThickness", "SourceEncapsulationNominalTransmission", "SourceFrameOfReferenceUID", "SourceHangingProtocolSequence", "SourceImageCornealProcessedDataSequence", "SourceImageEvidenceSequence", "SourceImageIDs", "SourceImageSequence", "SourceInstanceSequence", "SourceIsotopeHalfLife", "SourceIsotopeName", "SourceManufacturer", "SourceModelID", "SourceMovementType", "SourceNumber", "SourceOfAnteriorChamberDepthDataCodeSequence", "SourceOfLensThicknessDataCodeSequence", "SourceOfOphthalmicAxialLengthCodeSequence", "SourceOfPreviousValues", "SourceOfRefractiveMeasurementsCodeSequence", "SourceOfRefractiveMeasurementsSequence", "SourceOrientation", "SourcePatientGroupIdentificationSequence", "SourcePosition", "SourceSequence", "SourceSerialNumber", "SourceStrength", "SourceStrengthReferenceDate", "SourceStrengthReferenceTime", "SourceStrengthUnits", "SourceToApplicatorMountingPositionDistance", "SourceToBeamLimitingDeviceDistance", "SourceToBlockTrayDistance", "SourceToCompensatorDistance", "SourceToCompensatorTrayDistance", "SourceToGeneralAccessoryDistance", "SourceToReferenceObjectDistance", "SourceToSurfaceDistance", "SourceToWedgeTrayDistance", "SourceType", "SourceWaveformSequence", "SpacingBetweenSlices", "SpatialLocationsPreserved", "SpatialPresaturation", "SpatialResolution", "SpatialTransformOfDose", "SpecialNeeds", "SpecificAbsorptionRateDefinition", "SpecificAbsorptionRateSequence", "SpecificAbsorptionRateValue", "SpecificCharacterSet", "SpecificCharacterSetOfFileSetDescriptorFile", "SpecifiedChannelTotalTime", "SpecifiedMeterset", "SpecifiedNumberOfPulses", "SpecifiedPrimaryMeterset", "SpecifiedPulseRepetitionInterval", "SpecifiedSecondaryMeterset", "SpecifiedTreatmentTime", "SpecimenAccessionNumber", "SpecimenDescriptionSequence", "SpecimenDescriptionSequenceTrial", "SpecimenDescriptionTrial", "SpecimenDetailedDescription", "SpecimenIdentifier", "SpecimenLabelInImage", "SpecimenLocalizationContentItemSequence", "SpecimenPreparationSequence", "SpecimenPreparationStepContentItemSequence", "SpecimenReferenceSequence", "SpecimenSequence", "SpecimenShortDescription", "SpecimenTypeCodeSequence", "SpecimenUID", "SpectralWidth", "SpectrallySelectedExcitation", "SpectrallySelectedSuppression", "SpectroscopyAcquisitionDataColumns", "SpectroscopyAcquisitionOutOfPlanePhaseSteps", "SpectroscopyAcquisitionPhaseColumns", "SpectroscopyAcquisitionPhaseRows", "SpectroscopyData", "SpherePower", "SphericalLensPower", "SpiralPitchFactor", "Spoiling", "StackID", "StageCodeSequence", "StageName", "StageNumber", "StartAcquisitionDateTime", "StartAngle", "StartCardiacTriggerCountThreshold", "StartCumulativeMetersetWeight", "StartDensityThreshold", "StartMeterset", "StartRelativeDensityDifferenceThreshold", "StartRespiratoryTriggerCountThreshold", "StartTrim", "StartingRespiratoryAmplitude", "StartingRespiratoryPhase", "StationName", "SteadyStatePulseSequence", "SteepKeratometricAxisSequence", "SteeringAngle", "StereoBaselineAngle", "StereoBaselineDisplacement", "StereoHorizontalPixelOffset", "StereoPairsSequence", "StereoRotation", "StereoVerticalPixelOffset", "StimuliRetestingQuantity", "StimulusArea", "StimulusColorCodeSequence", "StimulusPresentationTime", "StimulusResults", "StopTrim", "StorageMediaFileSetID", "StorageMediaFileSetUID", "StrainAdditionalInformation", "StrainCodeSequence", "StrainDescription", "StrainNomenclature", "StrainSource", "StrainSourceRegistryCodeSequence", "StrainStockNumber", "StrainStockSequence", "StructureSetDate", "StructureSetDescription", "StructureSetLabel", "StructureSetName", "StructureSetROISequence", "StructureSetTime", "StructuredDisplayBackgroundCIELabValue", "StructuredDisplayImageBoxSequence", "StructuredDisplayTextBoxSequence", "StudiesContainingOtherReferencedInstancesSequence", "StudyArrivalDate", "StudyArrivalTime", "StudyComments", "StudyCompletionDate", "StudyCompletionTime", "StudyComponentStatusID", "StudyDate", "StudyDescription", "StudyID", "StudyIDIssuer", "StudyInstanceUID", "StudyPriorityID", "StudyReadDate", "StudyReadTime", "StudyStatusID", "StudyTime", "StudyVerifiedDate", "StudyVerifiedTime", "SubjectRelativePositionInImage", "SubjectiveRefractionLeftEyeSequence", "SubjectiveRefractionRightEyeSequence", "SubscriptionListStatus", "SubstanceAdministrationApproval", "SubstanceAdministrationDateTime", "SubstanceAdministrationDeviceID", "SubstanceAdministrationNotes", "SubstanceAdministrationParameterSequence", "SubtractionItemID", "SupportedImageDisplayFormatsSequence", "SurfaceAsymmetryIndex", "SurfaceComments", "SurfaceCount", "SurfaceEntryPoint", "SurfaceMeshPrimitivesSequence", "SurfaceModelDescriptionSequence", "SurfaceModelLabel", "SurfaceModelScalingFactor", "SurfaceNumber", "SurfacePointColorCIELabValueData", "SurfacePointPresentationValueData", "SurfacePointsNormalsSequence", "SurfacePointsSequence", "SurfaceProcessing", "SurfaceProcessingAlgorithmIdentificationSequence", "SurfaceProcessingDescription", "SurfaceProcessingRatio", "SurfaceRegularityIndex", "SurfaceScanAcquisitionTypeCodeSequence", "SurfaceScanModeCodeSequence", "SurfaceSequence", "SurgicalTechnique", "SynchronizationChannel", "SynchronizationFrameOfReferenceUID", "SynchronizationTrigger", "SynchronizedImageBoxList", "SynchronizedScrollingSequence", "SyringeCounts", "T2Preparation", "TDRType", "TIDOffset", "TIPType", "TMLinePositionX0", "TMLinePositionX0Retired", "TMLinePositionX1", "TMLinePositionX1Retired", "TMLinePositionY0", "TMLinePositionY0Retired", "TMLinePositionY1", "TMLinePositionY1Retired", "TableAngle", "TableCradleTiltAngle", "TableFeedPerRotation", "TableFrameOfReferenceUID", "TableHeadTiltAngle", "TableHeight", "TableHorizontalRotationAngle", "TableLateralIncrement", "TableLongitudinalIncrement", "TableMotion", "TableOfParameterValues", "TableOfPixelValues", "TableOfXBreakPoints", "TableOfYBreakPoints", "TablePosition", "TablePositionSequence", "TableSpeed", "TableTopEccentricAdjustedAngle", "TableTopEccentricAngle", "TableTopEccentricAngleTolerance", "TableTopEccentricAxisDistance", "TableTopEccentricRotationDirection", "TableTopLateralAdjustedPosition", "TableTopLateralPosition", "TableTopLateralPositionTolerance", "TableTopLateralSetupDisplacement", "TableTopLongitudinalAdjustedPosition", "TableTopLongitudinalPosition", "TableTopLongitudinalPositionTolerance", "TableTopLongitudinalSetupDisplacement", "TableTopPitchAdjustedAngle", "TableTopPitchAngle", "TableTopPitchAngleTolerance", "TableTopPitchRotationDirection", "TableTopRollAdjustedAngle", "TableTopRollAngle", "TableTopRollAngleTolerance", "TableTopRollRotationDirection", "TableTopVerticalAdjustedPosition", "TableTopVerticalPosition", "TableTopVerticalPositionTolerance", "TableTopVerticalSetupDisplacement", "TableTraverse", "TableType", "TableVerticalIncrement", "TableXPositionToIsocenter", "TableYPositionToIsocenter", "TableZPositionToIsocenter", "TagAngleFirstAxis", "TagAngleSecondAxis", "TagSpacingFirstDimension", "TagSpacingSecondDimension", "TagThickness", "Tagging", "TaggingDelay", "TangentialPower", "TargetExposureIndex", "TargetLabel", "TargetMaterialSequence", "TargetMaximumDose", "TargetMinimumDose", "TargetPrescriptionDose", "TargetRefraction", "TargetUID", "TargetUnderdoseVolumeFraction", "TelephoneNumberTrial", "TemplateExtensionCreatorUID", "TemplateExtensionFlag", "TemplateExtensionOrganizationUID", "TemplateIdentifier", "TemplateLocalVersion", "TemplateName", "TemplateNumber", "TemplateType", "TemplateVersion", "TemporalPositionIdentifier", "TemporalPositionIndex", "TemporalPositionSequence", "TemporalPositionTimeOffset", "TemporalRangeType", "TemporalResolution", "TerminationCardiacTriggerCountThreshold", "TerminationCountsThreshold", "TerminationDensityThreshold", "TerminationRelativeDensityThreshold", "TerminationRespiratoryTriggerCountThreshold", "TerminationTimeThreshold", "TestPointNormalsDataFlag", "TestPointNormalsSequence", "TextColorCIELabValue", "TextComments", "TextObjectSequence", "TextString", "TextStyleSequence", "TextValue", "TextureLabel", "TherapyDescription", "TherapyType", "ThreatCategory", "ThreatCategoryDescription", "ThreatDetectionAlgorithmandVersion", "ThreatROIBase", "ThreatROIBitmap", "ThreatROIExtents", "ThreatROIVoxelSequence", "ThreatSequence", "ThreeDDegreeOfFreedomAxis", "ThreeDImplantTemplateGroupMemberMatchingAxes", "ThreeDImplantTemplateGroupMemberMatchingPoint", "ThreeDLineCoordinates", "ThreeDMatingAxes", "ThreeDMatingPoint", "ThreeDPlaneNormal", "ThreeDPlaneOrigin", "ThreeDPointCoordinates", "ThreeDRenderingType", "ThresholdDensity", "TickAlignment", "TickLabel", "TickLabelAlignment", "TickPosition", "Time", "TimeBasedImageSetsSequence", "TimeDistributionProtocol", "TimeDomainFiltering", "TimeOfDocumentCreationOrVerbalTransactionTrial", "TimeOfFlightContrast", "TimeOfFlightInformationUsed", "TimeOfGainCalibration", "TimeOfLastCalibration", "TimeOfLastDetectorCalibration", "TimeOfSecondaryCapture", "TimeRange", "TimeSliceVector", "TimeSlotInformationSequence", "TimeSlotNumber", "TimeSlotTime", "TimeSlotVector", "TimeSource", "TimezoneOffsetFromUTC", "TissueHeterogeneityCorrection", "ToleranceTableLabel", "ToleranceTableNumber", "ToleranceTableSequence", "TomoAngle", "TomoClass", "TomoLayerHeight", "TomoTime", "TomoType", "TopLeftHandCornerOfLocalizerArea", "TopicAuthor", "TopicKeywords", "TopicSubject", "TopicTitle", "TotalBlockTrayFactor", "TotalBlockTrayWaterEquivalentThickness", "TotalCollimationWidth", "TotalCompensatorTrayFactor", "TotalCompensatorTrayWaterEquivalentThickness", "TotalGain", "TotalNumberOfExposures", "TotalNumberOfPiecesOfMediaCreated", "TotalPixelMatrixColumns", "TotalPixelMatrixOriginSequence", "TotalPixelMatrixRows", "TotalProcessingTime", "TotalReferenceAirKerma", "TotalTime", "TotalTimeOfFluoroscopy", "TotalWedgeTrayWaterEquivalentThickness", "TransactionUID", "TransducerApplicationCodeSequence", "TransducerBeamSteeringCodeSequence", "TransducerData", "TransducerFrequency", "TransducerGeometryCodeSequence", "TransducerOrientation", "TransducerOrientationModifierSequence", "TransducerOrientationSequence", "TransducerPosition", "TransducerPositionModifierSequence", "TransducerPositionSequence", "TransducerScanPatternCodeSequence", "TransducerType", "TransferSyntaxUID", "TransferTubeLength", "TransferTubeNumber", "TransformDescription", "TransformLabel", "TransformNumberOfAxes", "TransformOrderOfAxes", "TransformVersionNumber", "TransformedAxisUnits", "TranslationRateX", "TranslationRateY", "TransmitCoilManufacturerName", "TransmitCoilName", "TransmitCoilType", "TransmitTransducerSequence", "TransmitTransducerSettingsSequence", "TransmitterFrequency", "TransportClassification", "TransverseDetectorSeparation", "TransverseMash", "TreatmentControlPointDate", "TreatmentControlPointTime", "TreatmentDate", "TreatmentDeliveryType", "TreatmentMachineName", "TreatmentMachineSequence", "TreatmentProtocols", "TreatmentSessionApplicationSetupSequence", "TreatmentSessionBeamSequence", "TreatmentSessionIonBeamSequence", "TreatmentSites", "TreatmentStatusComment", "TreatmentSummaryCalculatedDoseReferenceSequence", "TreatmentSummaryMeasuredDoseReferenceSequence", "TreatmentTerminationCode", "TreatmentTerminationStatus", "TreatmentTime", "TreatmentVerificationStatus", "TriangleFanSequence", "TrianglePointIndexList", "TriangleStripSequence", "TriggerSamplePosition", "TriggerSourceOrType", "TriggerTime", "TriggerTimeOffset", "TriggerVector", "TriggerWindow", "Trim", "TubeAngle", "TwoDDegreeOfFreedomAxis", "TwoDDegreeOfFreedomSequence", "TwoDImplantTemplateGroupMemberMatchingAxes", "TwoDImplantTemplateGroupMemberMatchingPoint", "TwoDLineCoordinates", "TwoDLineCoordinatesSequence", "TwoDMatingAxes", "TwoDMatingFeatureCoordinatesSequence", "TwoDMatingPoint", "TwoDPlaneCoordinatesSequence", "TwoDPlaneIntersection", "TwoDPointCoordinates", "TwoDPointCoordinatesSequence", "TypeOfData", "TypeOfDetectorMotion", "TypeOfFilters", "TypeOfInstances", "TypeOfPatientID", "TypeOfSynchronization", "UID", "USImageDescriptionSequence", "UVMappingSequence", "UValueData", "UltrasoundAcquisitionGeometry", "UltrasoundColorDataPresent", "UltrasoundOphthalmicAxialLengthMeasurementsSequence", "UltrasoundSelectedOphthalmicAxialLengthSequence", "UnassignedPerFrameConvertedAttributesSequence", "UnassignedSharedConvertedAttributesSequence", "Underlined", "UnformattedTextValue", "UnifiedProcedureStepListStatus", "UnifiedProcedureStepPerformedProcedureSequence", "UniformResourceLocatorTrial", "Units", "UniversalEntityID", "UniversalEntityIDType", "UnspecifiedLateralityLensSequence", "UpperLowerPixelValues", "UrgencyOrPriorityAlertsTrial", "UsedFiducialsSequence", "UsedSegmentsSequence", "UserSelectedGainY", "UserSelectedOffsetX", "UserSelectedOffsetY", "UserSelectedPhase", "VOILUTFunction", "VOILUTSequence", "VOIType", "VValueData", "ValueType", "VariableCoefficientsSDDN", "VariableCoefficientsSDHN", "VariableCoefficientsSDVN", "VariableFlipAngleFlag", "VariableNextDataGroup", "VariablePixelData", "VectorAccuracy", "VectorCoordinateData", "VectorDimensionality", "VectorGridData", "VelocityEncodingAcquisitionSequence", "VelocityEncodingDirection", "VelocityEncodingMaximumValue", "VelocityEncodingMinimumValue", "VelocityOfSound", "VerbalSourceIdentifierCodeSequenceTrial", "VerbalSourceTrial", "VerificationDateTime", "VerificationFlag", "VerificationImageTiming", "VerifyingObserverIdentificationCodeSequence", "VerifyingObserverName", "VerifyingObserverSequence", "VerifyingOrganization", "VertexPointIndexList", "VerticalAlignment", "VerticalOffsetOfSensor", "VerticalPrismBase", "VerticalPrismPower", "VerticesOfTheOutlineOfPupil", "VerticesOfThePolygonalCollimator", "VerticesOfThePolygonalExposureControlSensingRegion", "VerticesOfThePolygonalShutter", "VerticesOfTheRegion", "VideoImageFormatAcquired", "ViewCodeSequence", "ViewModifierCodeSequence", "ViewName", "ViewNumber", "ViewOrientationCodeSequence", "ViewOrientationModifier", "ViewPosition", "ViewingDistance", "ViewingDistanceType", "VirtualSourceAxisDistances", "VisitComments", "VisitStatusID", "VisualAcuityBothEyesOpenSequence", "VisualAcuityLeftEyeSequence", "VisualAcuityMeasurementSequence", "VisualAcuityModifiers", "VisualAcuityRightEyeSequence", "VisualAcuityTypeCodeSequence", "VisualFieldCatchTrialSequence", "VisualFieldGlobalResultsIndexSequence", "VisualFieldHorizontalExtent", "VisualFieldMeanSensitivity", "VisualFieldShape", "VisualFieldTestDuration", "VisualFieldTestNormalsFlag", "VisualFieldTestPointNormalsSequence", "VisualFieldTestPointSequence", "VisualFieldTestPointXCoordinate", "VisualFieldTestPointYCoordinate", "VisualFieldTestReliabilityGlobalIndexSequence", "VisualFieldVerticalExtent", "VitalStainCodeSequenceTrial", "VitreousStatusCodeSequence", "VitreousStatusDescription", "VolumeBasedCalculationTechnique", "VolumeFrameOfReferenceUID", "VolumeLocalizationSequence", "VolumeLocalizationTechnique", "VolumeOfPTO", "VolumeToTableMappingMatrix", "VolumeToTransducerMappingMatrix", "VolumetricProperties", "WADORetrievalSequence", "WarningReason", "WaterReferencedPhaseCorrection", "WaveformAnnotationSequence", "WaveformBitsAllocated", "WaveformBitsStored", "WaveformChannelNumber", "WaveformData", "WaveformDataDisplayScale", "WaveformDisplayBackgroundCIELabValue", "WaveformOriginality", "WaveformPaddingValue", "WaveformPresentationGroupSequence", "WaveformSampleInterpretation", "WaveformSequence", "WedgeAngle", "WedgeFactor", "WedgeID", "WedgeNumber", "WedgeOrientation", "WedgePosition", "WedgePositionSequence", "WedgeSequence", "WedgeThinEdgePosition", "WedgeType", "WholeBodyTechnique", "WindowCenter", "WindowCenterWidthExplanation", "WindowWidth", "WorklistLabel", "XAXRFFrameCharacteristicsSequence", "XDSRetrievalSequence", "XFocusCenter", "XOffsetInSlideCoordinateSystem", "XRay3DAcquisitionSequence", "XRay3DFrameTypeSequence", "XRay3DReconstructionSequence", "XRayGeometrySequence", "XRayImageReceptorAngle", "XRayImageReceptorTranslation", "XRayOutput", "XRayReceptorType", "XRayTubeCurrent", "XRayTubeCurrentInmA", "XRayTubeCurrentInuA", "YFocusCenter", "YOffsetInSlideCoordinateSystem", "ZEffective", "ZOffsetInSlideCoordinateSystem", "ZeroVelocityPixelValue", "ZonalMap", "ZonalMapFormat", "ZonalMapLocation", "ZonalMapNumberFormat", "ZoomCenter", "ZoomFactor", "dBdt" ];
28.552748
83
0.789685
57153e6fe1650c44c163a02c71572f173a2e0df2
605
h
C
token.h
long-long-float/lisp-cpp
436c3f5be8e02a43c153cb0a304a08bed2503d0c
[ "MIT" ]
3
2018-08-18T18:48:42.000Z
2019-06-23T20:24:05.000Z
token.h
long-long-float/lisp-cpp
436c3f5be8e02a43c153cb0a304a08bed2503d0c
[ "MIT" ]
8
2015-05-21T13:49:57.000Z
2015-07-19T12:22:49.000Z
token.h
long-long-float/lllisp
f8ebc893692f57ee27352ab2b8dab653fa4f2e7b
[ "MIT" ]
null
null
null
#pragma once #include "gc.h" #include "location.h" #include <string> namespace Lisp { enum TokenType{ TOKEN_BRACKET_OPEN, TOKEN_BRACKET_CLOSE, TOKEN_SYMBOL, TOKEN_STRING, TOKEN_INTEGER, TOKEN_NIL, TOKEN_T, }; class Object; class Token : public GCObject { public: TokenType type; std::string value; Location loc; Token(TokenType atype, Location aloc) : type(atype), value(std::string()), loc(aloc) {} Token(TokenType atype, std::string avalue, Location aloc) : type(atype), value(avalue), loc(aloc) {} std::string str(); }; }
17.794118
61
0.644628
6b6426e84e7e0565b520468227974dc8dac32df3
118
h
C
test/ClangImporter/Inputs/const_and_pure.h
lwhsu/swift
e1e7a3fe75b4762d5e3d4d241f40b56946a03fdb
[ "Apache-2.0" ]
72,551
2015-12-03T16:45:13.000Z
2022-03-31T18:57:59.000Z
test/ClangImporter/Inputs/const_and_pure.h
lwhsu/swift
e1e7a3fe75b4762d5e3d4d241f40b56946a03fdb
[ "Apache-2.0" ]
39,352
2015-12-03T16:55:06.000Z
2022-03-31T23:43:41.000Z
test/ClangImporter/Inputs/const_and_pure.h
lwhsu/swift
e1e7a3fe75b4762d5e3d4d241f40b56946a03fdb
[ "Apache-2.0" ]
13,845
2015-12-03T16:45:13.000Z
2022-03-31T11:32:29.000Z
__attribute__((const)) void const_function(); __attribute__((pure)) void pure_function(); void normal_function();
14.75
45
0.754237
155eb64a129f698a3529b92c3d522ab4f481a456
5,389
lua
Lua
scripts/vscripts/custom_abilities/shaco_jack_in_the_box/modifier_shaco_jack_in_the_box.lua
GIANTCRAB/dota-2-lua-abilities
fb1c2a78444e50f879b1cbedf4e0060408478278
[ "MIT" ]
125
2018-03-26T21:35:49.000Z
2022-03-31T21:01:38.000Z
scripts/vscripts/custom_abilities/shaco_jack_in_the_box/modifier_shaco_jack_in_the_box.lua
hanzhengit/dota-2-lua-abilities
c6d7b7cff8be6bc32f3580411f31c24b8c0b0eca
[ "MIT" ]
2
2020-07-05T16:02:19.000Z
2020-11-18T02:24:48.000Z
scripts/vscripts/custom_abilities/shaco_jack_in_the_box/modifier_shaco_jack_in_the_box.lua
hanzhengit/dota-2-lua-abilities
c6d7b7cff8be6bc32f3580411f31c24b8c0b0eca
[ "MIT" ]
40
2019-03-02T11:17:10.000Z
2022-03-31T05:45:26.000Z
modifier_shaco_jack_in_the_box = class({}) -------------------------------------------------------------------------------- -- Classifications function modifier_shaco_jack_in_the_box:IsHidden() return false end function modifier_shaco_jack_in_the_box:IsPurgable() return false end -------------------------------------------------------------------------------- -- Initializations function modifier_shaco_jack_in_the_box:OnCreated( kv ) -- references self.fear_duration = self:GetAbility():GetSpecialValueFor( "fear_duration" ) -- special value self.trigger_radius = self:GetAbility():GetSpecialValueFor( "trigger_radius" ) -- special value self.fear_radius = self:GetAbility():GetSpecialValueFor( "fear_radius" ) -- special value self.hidden = true -- -- find enemy vision reference (enemy Ancient) -- self.reference = CreateModifierThinker( -- self:GetCaster(), -- player source -- self:GetAbility(), -- ability source -- "modifier_some_modifier_lua", -- modifier name -- {}, -- kv -- self:GetParent():GetOrigin(), -- self:GetParent():GetOpposingTeamNumber(), -- false -- ) if IsServer() then self.interval = 0.3 -- Start interval self:StartIntervalThink( self.interval ) end end function modifier_shaco_jack_in_the_box:OnRefresh( kv ) end function modifier_shaco_jack_in_the_box:OnDestroy() if IsServer() then self:GetParent():ForceKill( false ) end end -------------------------------------------------------------------------------- -- Modifier Effects function modifier_shaco_jack_in_the_box:DeclareFunctions() local funcs = { MODIFIER_PROPERTY_INVISIBILITY_LEVEL, } return funcs end function modifier_shaco_jack_in_the_box:GetModifierInvisibilityLevel() if self.hidden then return 1 else return 0 end end -------------------------------------------------------------------------------- -- Status Effects function modifier_shaco_jack_in_the_box:CheckState() local state = { [MODIFIER_STATE_INVISIBLE] = self.hidden, [MODIFIER_STATE_DISARMED] = self.hidden, } return state end -------------------------------------------------------------------------------- -- Interval Effects function modifier_shaco_jack_in_the_box:OnIntervalThink() if self.hidden then -- locate enemies local enemies = FindUnitsInRadius( self:GetCaster():GetTeamNumber(), -- int, your team number self:GetParent():GetOrigin(), -- point, center point nil, -- handle, cacheUnit. (not known) self.trigger_radius, -- float, radius. or use FIND_UNITS_EVERYWHERE DOTA_UNIT_TARGET_TEAM_ENEMY, -- int, team filter DOTA_UNIT_TARGET_HERO + DOTA_UNIT_TARGET_BASIC, -- int, type filter DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES, -- int, flag filter 0, -- int, order filter false -- bool, can grow cache ) -- caught enemy -- if #enemies>0 and (not self.reference:CanEntityBeSeenByMyTeam(self:GetParent())) then if #enemies>0 then -- apply fear enemies = FindUnitsInRadius( self:GetCaster():GetTeamNumber(), -- int, your team number self:GetParent():GetOrigin(), -- point, center point nil, -- handle, cacheUnit. (not known) self.fear_radius, -- float, radius. or use FIND_UNITS_EVERYWHERE DOTA_UNIT_TARGET_TEAM_ENEMY, -- int, team filter DOTA_UNIT_TARGET_HERO + DOTA_UNIT_TARGET_BASIC, -- int, type filter 0, -- int, flag filter 0, -- int, order filter false -- bool, can grow cache ) local pos_x = self:GetParent():GetOrigin().x local pos_y = self:GetParent():GetOrigin().y for _,enemy in pairs(enemies) do enemy:AddNewModifier( self:GetCaster(), -- player source self:GetAbility(), -- ability source "modifier_shaco_jack_in_the_box_fear", -- modifier name { duration = self.fear_duration, center_x = pos_x, center_y = pos_y, } -- kv ) end -- reveal self.hidden = false self:StartIntervalThink( -1 ) self:SetDuration( self.fear_duration, true ) end end end -------------------------------------------------------------------------------- -- Graphics & Animations -- function modifier_shaco_jack_in_the_box:GetEffectName() -- return "particles/string/here.vpcf" -- end -- function modifier_shaco_jack_in_the_box:GetEffectAttachType() -- return PATTACH_ABSORIGIN_FOLLOW -- end -- function modifier_shaco_jack_in_the_box:PlayEffects() -- -- Get Resources -- local particle_cast = "string" -- local sound_cast = "string" -- -- Get Data -- -- Create Particle -- local effect_cast = ParticleManager:CreateParticle( particle_cast, PATTACH_NAME, hOwner ) -- ParticleManager:SetParticleControl( effect_cast, iControlPoint, vControlVector ) -- ParticleManager:SetParticleControlEnt( -- effect_cast, -- iControlPoint, -- hTarget, -- PATTACH_NAME, -- "attach_name", -- vOrigin, -- unknown -- bool -- unknown, true -- ) -- ParticleManager:SetParticleControlForward( effect_cast, iControlPoint, vForward ) -- SetParticleControlOrientation( effect_cast, iControlPoint, vForward, vRight, vUp ) -- ParticleManager:ReleaseParticleIndex( effect_cast ) -- -- buff particle -- self:AddParticle( -- nFXIndex, -- bDestroyImmediately, -- bStatusEffect, -- iPriority, -- bHeroEffect, -- bOverheadEffect -- ) -- -- Create Sound -- EmitSoundOnLocationWithCaster( vTargetPosition, sound_location, self:GetCaster() ) -- EmitSoundOn( sound_target, target ) -- end
29.60989
96
0.661718
ab90e0bf97c0fa7b22a8c7939aee8dab2f633c0c
633
kt
Kotlin
src/main/kotlin/util/CssExt.kt
skalable-samples/KotlinJS-Custom-Component-with-Kotlin-Styled-Injection
61a29e3606a0b79b769fc2726b639a02b302e5d9
[ "MIT" ]
3
2021-02-24T14:24:42.000Z
2022-03-05T18:12:29.000Z
src/main/kotlin/util/CssExt.kt
skalable-samples/KotlinJS-Custom-Component-with-Kotlin-Styled-Injection
61a29e3606a0b79b769fc2726b639a02b302e5d9
[ "MIT" ]
null
null
null
src/main/kotlin/util/CssExt.kt
skalable-samples/KotlinJS-Custom-Component-with-Kotlin-Styled-Injection
61a29e3606a0b79b769fc2726b639a02b302e5d9
[ "MIT" ]
null
null
null
package util import GlobalStyles import kotlinx.css.RuleSet import styled.CustomStyledProps /** * An extension function to convert the returned Ruleset * into the ArrayList<RuleSet> that CustomStyledProps.css desires. * @see CustomStyledProps.css */ fun RuleSet.toCss(): ArrayList<RuleSet> { return arrayListOf(this) } /** * An extension function to pick the first RuleSet from the * list in the CustomStyledProps. Using our empty style here * means we will never need to handle a null scenario in any of * our components. */ fun CustomStyledProps.css(): RuleSet { return this.css?.first() ?: GlobalStyles.empty }
26.375
66
0.753555
9c43bb241786f99e868b3629627dee38fbfa3ae3
3,361
sql
SQL
SPJNAS.sql
Nchandra679/SPJNAS_PROJECT
cd1d8be7a022538a05e4bc1491c4b516f4b5e659
[ "MIT" ]
null
null
null
SPJNAS.sql
Nchandra679/SPJNAS_PROJECT
cd1d8be7a022538a05e4bc1491c4b516f4b5e659
[ "MIT" ]
null
null
null
SPJNAS.sql
Nchandra679/SPJNAS_PROJECT
cd1d8be7a022538a05e4bc1491c4b516f4b5e659
[ "MIT" ]
null
null
null
CREATE DATABASE SPJNAS; CREATE TABLE Users ( U_ID INT(10) NOT NULL AUTO_INCREMENT, Title VARCHAR(10) NOT NULL, First_Name VARCHAR(40) NOT NULL, Other_Name VARCHAR(100) DEFAULT NULL, Last_Name VARCHAR(40) NOT NULL, Degree VARCHAR(20) NOT NULL, Password VARCHAR(255) NOT NULL, Email VARCHAR(40) NOT NULL DEFAULT 0, Date_Create DATETIME NOT NULL, Area_of_Speciality VARCHAR(10) DEFAULT NULL, Access_level VARCHAR(20) NOT NULL, Phone_Number VARCHAR(15) DEFAULT NULL, Account_Active BOOLEAN DEFAULT TRUE, PRIMARY KEY (U_ID) ); CREATE TABLE LOG_FILE ( ID INT NOT NULL AUTO_INCREMENT, U_ID INT(10) NOT NULL, Date_login DATETIME NOT NULL, Date_logout DATETIME DEFAULT NULL, PRIMARY KEY (ID), CONSTRAINT FK_ID FOREIGN KEY (U_ID) REFERENCES Users (U_ID) ); CREATE TABLE Manuscript ( ID INT(10) NOT NULL AUTO_INCREMENT, ArticleType VARCHAR(20) DEFAULT NULL, Title VARCHAR(255) NOT NULL DEFAULT 0, Abstract TEXT DEFAULT NULL, KeyWords VARCHAR(255) NOT NULL DEFAULT 0, Classifications VARCHAR(40) DEFAULT NULL, Highlights VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL, Manuscript VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL, Cover_Letter VARCHAR(255) COLLATE utf8_unicode_ci NOT NULL, Date_Upload datetime DEFAULT NULL, Submit BOOLEAN DEFAULT FALSE, Review_Process VARCHAR(50) DEFAULT NULL, PRIMARY KEY (ID) ); CREATE TABLE ManuscriptAuthor( ID INT(10) NOT NULL, U_ID INT(10) NOT NULL, PRIMARY KEY (ID, U_ID), CONSTRAINT FK_MAID FOREIGN KEY (ID) REFERENCES Manuscript (ID), CONSTRAINT FK1_MAID FOREIGN KEY (U_ID) REFERENCES USERS (U_ID) ); CREATE TABLE Suggested_Reviewer ( S_ID INT(10) NOT NULL AUTO_INCREMENT, ID INT(10) NOT NULL, Title VARCHAR(10) NOT NULL, First_Name VARCHAR(40) NOT NULL, Other_Name VARCHAR(100) DEFAULT NULL, Last_Name VARCHAR(40) NOT NULL, Degree VARCHAR(20) NOT NULL, Email VARCHAR(40) NOT NULL DEFAULT 0, Reason VARCHAR(255) DEFAULT NULL, PRIMARY KEY (S_ID), CONSTRAINT FK1_SRID FOREIGN KEY (ID) REFERENCES Manuscript (ID) ); CREATE TABLE Response ( R_ID INT(10) NOT NULL AUTO_INCREMENT, ID INT(10) NOT NULL, U_ID INT(10) NOT NULL, Decision VARCHAR(60) DEFAULT NULL, Comments TEXT DEFAULT NULL, Originality VARCHAR(10) DEFAULT NULL, Justify VARCHAR(10) DEFAULT NULL, Credit VARCHAR(10) DEFAULT NULL, STitle VARCHAR(10) DEFAULT NULL, Clear_Text VARCHAR(10) DEFAULT NULL, Shorten VARCHAR(10) DEFAULT NULL, References_C VARCHAR(10) DEFAULT NULL, Illustrations VARCHAR(10) DEFAULT NULL, Figures VARCHAR(10) DEFAULT NULL, Review_Done BOOLEAN DEFAULT FALSE, PRIMARY KEY (R_ID), CONSTRAINT FK_RID FOREIGN KEY (U_ID) REFERENCES USERS (U_ID), CONSTRAINT FK1_RID FOREIGN KEY (ID) REFERENCES Manuscript (ID) ); CREATE TABLE Editor_Response ( E_ID INT(10) NOT NULL AUTO_INCREMENT, ID INT(10) NOT NULL, U_ID INT(10) NOT NULL, Decision VARCHAR(60) DEFAULT NULL, Comments TEXT DEFAULT NULL, PRIMARY KEY (E_ID), CONSTRAINT FK_EID FOREIGN KEY (U_ID) REFERENCES USERS (U_ID), CONSTRAINT FK1_EID FOREIGN KEY (ID) REFERENCES Manuscript (ID) ); INSERT INTO `users`( `Title`, `First_Name`, `Last_Name`, `Degree`, `Password`, `Email`, `Area_of_Speciality`, `Access_level`) VALUES ("Mr", "Nickeel", "Chandra", "BSE", "binuh2am", "nickeelchandra@gmail.com", "AI", "Editor" );
32.631068
227
0.735495
49d133281efa9a5279c1e33f43d9081c3f82e70b
357
kt
Kotlin
src/main/java/com/sygic/travel/sdk/places/model/Review.kt
SkyPicker/sygic-travel-android-sdk
54382b751199e735ab138d9af14d9ccc96a353fa
[ "MIT" ]
null
null
null
src/main/java/com/sygic/travel/sdk/places/model/Review.kt
SkyPicker/sygic-travel-android-sdk
54382b751199e735ab138d9af14d9ccc96a353fa
[ "MIT" ]
null
null
null
src/main/java/com/sygic/travel/sdk/places/model/Review.kt
SkyPicker/sygic-travel-android-sdk
54382b751199e735ab138d9af14d9ccc96a353fa
[ "MIT" ]
null
null
null
package com.sygic.travel.sdk.places.model import java.util.Date @Suppress("unused") class Review( val id: Int, val userId: String, val userName: String, val placeId: String, val message: String?, val rating: Int?, val votesUp: Int, val votesDown: Int, val votesScore: Int, val currentUserVote: Int, val createdAt: Date, val updatedAt: Date? )
17.85
41
0.72549
cb796b5f9e5d9dc21dca1afa46ef7ac01c856c5c
1,019
html
HTML
post.html
Vision-Live/bakery-store-jekyll-template
24a6040f06160b66034955913de1aee0ba070857
[ "MIT" ]
null
null
null
post.html
Vision-Live/bakery-store-jekyll-template
24a6040f06160b66034955913de1aee0ba070857
[ "MIT" ]
null
null
null
post.html
Vision-Live/bakery-store-jekyll-template
24a6040f06160b66034955913de1aee0ba070857
[ "MIT" ]
1
2021-02-08T11:24:29.000Z
2021-02-08T11:24:29.000Z
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>{{ page.title }}</title> <link rel="stylesheet" href="/css/style.css"> <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,700" media="all"> </head> <body> <header> <div class="container"> <nav class="main-nav"> <ul> {% assign navigation_pages = site.html_pages | sort: 'navigation_weight' %} {% for p in navigation_pages %} {% if p.navigation_weight %} <li> <a href="{{ p.url }}" {% if p.url == page.url %}class="active"{% endif %}> {{ p.title }} </a> </li> {% endif %} {% endfor %} </ul> </nav> <h1><a href="/">Bakery<strong>Store</strong></a></h1> </div> </header> <div class="content"> {{ content }} </div> <footer> <div class="container"> <p class="center-text"> <a href="http://cloudcannon.com">Created by CloudCannon</a></p> </div> </footer> </body> </html>
26.815789
115
0.545633
987730a31863ad27dd95d5dd0e68fbc27bbdb45b
2,956
html
HTML
templates/add_recipe.html
Code-Institute-Submissions/kordianbird-RecipeBook_FebResub
e2da7feb5197ff25f1823fd4fa8a8717c9f3ed10
[ "OML" ]
null
null
null
templates/add_recipe.html
Code-Institute-Submissions/kordianbird-RecipeBook_FebResub
e2da7feb5197ff25f1823fd4fa8a8717c9f3ed10
[ "OML" ]
null
null
null
templates/add_recipe.html
Code-Institute-Submissions/kordianbird-RecipeBook_FebResub
e2da7feb5197ff25f1823fd4fa8a8717c9f3ed10
[ "OML" ]
1
2021-09-17T10:56:24.000Z
2021-09-17T10:56:24.000Z
{% extends "base.html" %} {% block content %} <div class="container"> {% with add_flash = get_flashed_messages(category_filter=["add_flash"]) %} {% if add_flash %} {%- for message in add_flash %} <div> <h3>{{ message }}</h3> </div> {% endfor %} {% else %} <h3>Add recipe!</h3> {% endif %} {% endwith %} <div class="row"> <form class="col s12" method="POST" action="{{ url_for('add_recipe') }}"> <div class="row"> <div class="input-field col s5"> <select id="category_name" name="category_name" class="validate" required> <option value="0" disabled selected>Choose Category</option> {% for category in categories %} <option value="{{ category.category_name }}">{{ category.category_name }}</option> {% endfor %} </select> <label for="category_name">Food Category</label> </div> </div> <div class="row"> <div class="input-field col s5"> <input id="recipe_name" name="recipe_name" type="text" maxlength="25" required> <label for="recipe_name">Recipe name</label> </div> </div> <div class="row"> <div class="input-field col s12"> <textarea id="recipe_method" name="recipe_method" class="materialize-textarea" maxlength="500" required></textarea> <label for="recipe_method">Write your recipe</label> </div> </div> <div class="row"> <div class="input-field col s12"> <textarea id="recipe_method" name="recipe_method" class="materialize-textarea" maxlength="50"></textarea> <label for="recipe_method">Provide Image Link</label> </div> </div> <p> <label for="is_vegetarian"> <input type="checkbox" id="is_vegetarian" name="is_vegetarian"> <span>Vegetarian</span> </label> <i class="fas fa-carrot"></i> </p> <p> <label for="is_vegan"> <input type="checkbox" id="is_vegan" name="is_vegan"> <span>Vegan</span> </label> <i class="fas fa-leaf"></i> </p> <div class="row"> <div class="col s12 center-align"> <a href="{{ url_for('home') }}" class="btn red text-shadow"> Cancel <i class="fas fa-times-circle right"></i> </a> <button class="btn waves-effect waves-light" type="submit" name="action">Submit <i class="fas fa-paper-plane"></i> </button> </div> </div> </form> </div> </div> {% endblock %}
39.413333
131
0.481055
ffffb0da86597fcaa648790b19ee1d66d5cbb9c8
164,127
html
HTML
trope_list/tropes/AutoErotica.html
jwzimmer/tv-tropes
44442b66286eaf2738fc5d863d175d4577da97f4
[ "MIT" ]
1
2021-01-02T00:19:20.000Z
2021-01-02T00:19:20.000Z
trope_list/tropes/AutoErotica.html
jwzimmer/tv-tropes
44442b66286eaf2738fc5d863d175d4577da97f4
[ "MIT" ]
6
2020-11-17T00:44:19.000Z
2021-01-22T18:56:28.000Z
trope_list/tropes/AutoErotica.html
jwzimmer/tv-tropes
44442b66286eaf2738fc5d863d175d4577da97f4
[ "MIT" ]
5
2021-01-02T00:19:15.000Z
2021-08-05T16:02:08.000Z
<!DOCTYPE html> <html> <head lang="en"> <meta content="IE=edge" http-equiv="X-UA-Compatible"/> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/> <title>Auto Erotica - TV Tropes</title> <meta content="The Auto Erotica trope as used in popular culture. Two characters have sex in the back seat of a car. Extra points if it's at somewhere referred to as &quot;Make- …" name="description"/> <link href="https://tvtropes.org/pmwiki/pmwiki.php/Main/AutoErotica" rel="canonical"/> <link href="/img/icons/favicon.ico" rel="shortcut icon" type="image/x-icon"/> <meta content="summary_large_image" name="twitter:card"/> <meta content="@tvtropes" name="twitter:site"/> <meta content="@tvtropes" name="twitter:owner"/> <meta content="Auto Erotica - TV Tropes" name="twitter:title"/> <meta content="The Auto Erotica trope as used in popular culture. Two characters have sex in the back seat of a car. Extra points if it's at somewhere referred to as &quot;Make- …" name="twitter:description"/> <meta content="https://static.tvtropes.org/pmwiki/pub/images/sabrina-car_4304.gif" name="twitter:image:src"/> <meta content="TV Tropes" property="og:site_name"/> <meta content="en_US" property="og:locale"/> <meta content="https://www.facebook.com/tvtropes" property="article:publisher"/> <meta content="Auto Erotica - TV Tropes" property="og:title"/> <meta content="website" property="og:type"/> <meta content="https://tvtropes.org/pmwiki/pmwiki.php/Main/AutoErotica" property="og:url"/> <meta content="https://static.tvtropes.org/pmwiki/pub/images/sabrina-car_4304.gif" property="og:image"/> <meta content="Two characters have sex in the back seat of a car. Extra points if it's at somewhere referred to as &quot;Make-Out Point&quot;. Being in the back seat, while typical, isn't 100% required. It also happens in the front seat, though it's more cramped. A …" property="og:description"/> <link href="/img/icons/apple-icon-57x57.png" rel="apple-touch-icon" sizes="57x57" type="image/png"/> <link href="/img/icons/apple-icon-60x60.png" rel="apple-touch-icon" sizes="60x60" type="image/png"/> <link href="/img/icons/apple-icon-72x72.png" rel="apple-touch-icon" sizes="72x72" type="image/png"/> <link href="/img/icons/apple-icon-76x76.png" rel="apple-touch-icon" sizes="76x76" type="image/png"/> <link href="/img/icons/apple-icon-114x114.png" rel="apple-touch-icon" sizes="114x114" type="image/png"/> <link href="/img/icons/apple-icon-120x120.png" rel="apple-touch-icon" sizes="120x120" type="image/png"/> <link href="/img/icons/apple-icon-144x144.png" rel="apple-touch-icon" sizes="144x144" type="image/png"/> <link href="/img/icons/apple-icon-152x152.png" rel="apple-touch-icon" sizes="152x152" type="image/png"/> <link href="/img/icons/apple-icon-180x180.png" rel="apple-touch-icon" sizes="180x180" type="image/png"/> <link href="/img/icons/favicon-16x16.png" rel="icon" sizes="16x16" type="image/png"/> <link href="/img/icons/favicon-32x32.png" rel="icon" sizes="32x32" type="image/png"/> <link href="/img/icons/favicon-96x96.png" rel="icon" sizes="96x96" type="image/png"/> <link href="/img/icons/favicon-192x192.png" rel="icon" sizes="192x192" type="image/png"/> <meta content="width=device-width, initial-scale=1" id="viewport" name="viewport"/> <script> var propertag = {}; propertag.cmd = []; </script> <link href="/design/assets/bundle.css?rev=c58d8df02f09262390bbd03db7921fc35c6af306" rel="stylesheet"/> <script> function object(objectId) { if (document.getElementById && document.getElementById(objectId)) { return document.getElementById(objectId); } else if (document.all && document.all(objectId)) { return document.all(objectId); } else if (document.layers && document.layers[objectId]) { return document.layers[objectId]; } else { return false; } } // JAVASCRIPT COOKIES CODE: for getting and setting user viewing preferences var cookies = { create: function (name, value, days2expire, path) { var date = new Date(); date.setTime(date.getTime() + (days2expire * 24 * 60 * 60 * 1000)); var expires = date.toUTCString(); document.cookie = name + '=' + value + ';' + 'expires=' + expires + ';' + 'path=' + path + ';'; }, createWithExpire: function(name, value, expires, path) { document.cookie = name + '=' + value + ';' + 'expires=' + expires + ';' + 'path=' + path + ';'; }, read: function (name) { var cookie_value = "", current_cookie = "", name_expr = name + "=", all_cookies = document.cookie.split(';'), n = all_cookies.length; for (var i = 0; i < n; i++) { current_cookie = all_cookies[i].trim(); if (current_cookie.indexOf(name_expr) === 0) { cookie_value = current_cookie.substring(name_expr.length, current_cookie.length); break; } } return cookie_value; }, update: function (name, val) { this.create(name, val, 300, "/"); }, remove: function (name) { document.cookie = name + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"; } }; function updateUserPrefs() { //GENERAL: detect and set browser, if not cookied (will be treated like a user-preference and added to the #user-pref element) if( !cookies.read('user-browser') ){ var broswer = ''; if(navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i) ){ browser = 'iOS'; } else if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)) { browser = 'opera'; } else if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { browser = 'MSIE'; } else if (/Navigator[\/\s](\d+\.\d+)/.test(navigator.userAgent)) { browser = 'netscape'; } else if (/Chrome[\/\s](\d+\.\d+)/.test(navigator.userAgent)) { browser = 'chrome'; } else if (/Safari[\/\s](\d+\.\d+)/.test(navigator.userAgent)) { browser = 'safari'; /Version[\/\s](\d+\.\d+)/.test(navigator.userAgent); browserVersion = new Number(RegExp.$1); } else if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) { browser = 'firefox'; } else { browser = 'internet_explorer'; } cookies.create('user-browser',browser,1,'/'); document.getElementById('user-prefs').classList.add('browser-' + browser); } else { document.getElementById('user-prefs').classList.add('browser-' + cookies.read('user-browser')); } //update user preference settings if (cookies.read('wide-load') !== '') document.getElementById('user-prefs').classList.add('wide-load'); if (cookies.read('night-vision') !== '') document.getElementById('user-prefs').classList.add('night-vision'); if (cookies.read('sticky-header') !== '') document.getElementById('user-prefs').classList.add('sticky-header'); if (cookies.read('show-spoilers') !== '') document.getElementById('user-prefs').classList.add('show-spoilers'); if (cookies.read('folders-open') !== '') document.getElementById('user-prefs').classList.add('folders-open'); if (cookies.read('lefthand-sidebar') !== '') document.getElementById('user-prefs').classList.add('lefthand-sidebar'); if (cookies.read('highlight-links') !== '') document.getElementById('user-prefs').classList.add('highlight-links'); if (cookies.read('forum-gingerbread') !== '') document.getElementById('user-prefs').classList.add('forum-gingerbread'); if (cookies.read('shared-avatars') !== '') document.getElementById('user-prefs').classList.add('shared-avatars'); if (cookies.read('new-search') !== '') document.getElementById('user-prefs').classList.add('new-search'); if (cookies.read('stop-auto-play-video') !== '') document.getElementById('user-prefs').classList.add('stop-auto-play-video'); //desktop view on mobile if (cookies.read('desktop-on-mobile') !== ''){ document.getElementById('user-prefs').classList.add('desktop-on-mobile'); var viewport = document.querySelector("meta[name=viewport]"); viewport.setAttribute('content', 'width=1000'); } } function updateDesktopPrefs() { if (cookies.read('wide-load') !== '') document.getElementById('sidebar-toggle-wideload').classList.add('active'); if (cookies.read('night-vision') !== '') document.getElementById('sidebar-toggle-nightvision').classList.add('active'); if (cookies.read('sticky-header') !== '') document.getElementById('sidebar-toggle-stickyheader').classList.add('active'); if (cookies.read('show-spoilers') !== '') document.getElementById('sidebar-toggle-showspoilers').classList.add('active'); } function updateMobilePrefs() { if (cookies.read('show-spoilers') !== '') document.getElementById('mobile-toggle-showspoilers').classList.add('active'); if (cookies.read('night-vision') !== '') document.getElementById('mobile-toggle-nightvision').classList.add('active'); if (cookies.read('sticky-header') !== '') document.getElementById('mobile-toggle-stickyheader').classList.add('active'); if (cookies.read('highlight-links') !== '') document.getElementById('mobile-toggle-highlightlinks').classList.add('active'); } if (document.cookie.indexOf("scroll0=") < 0) { // do nothing } else { console.log('ads removed by scroll.com'); var adsRemovedWith = 'scroll'; var style = document.createElement('style'); style.innerHTML = '#header-ad, .proper-ad-unit, .square_ad, .sb-ad-unit { display: none !important; } '; document.head.appendChild(style); } </script> <script type="text/javascript"> var tvtropes_config = { astri_stream_enabled : "", is_logged_in : "", handle : "", get_astri_stream : "", revnum : "c58d8df02f09262390bbd03db7921fc35c6af306", img_domain : "https://static.tvtropes.org", adblock : "1", adblock_url : "propermessage.io", pause_editing : "0", pause_editing_msg : "", pause_site_changes : "" }; </script> <script type="text/javascript"> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-3821842-1', 'auto'); ga('send', 'pageview'); </script> </head> <body class=""> <i id="user-prefs"></i> <script>updateUserPrefs();</script> <div id="fb-root"></div> <div id="modal-box"></div> <header class="headroom-element" id="main-header-bar"> <div id="main-header-bar-inner"> <span class="header-spacer" id="header-spacer-left"></span> <a class="mobile-menu-toggle-button tablet-on" href="#mobile-menu" id="main-mobile-toggle"><span></span><span></span><span></span></a> <a class="no-dev" href="/" id="main-header-logoButton"></a> <span class="header-spacer" id="header-spacer-right"></span> <nav class="tablet-off" id="main-header-nav"> <a href="/pmwiki/pmwiki.php/Main/Tropes">Tropes</a> <a href="/pmwiki/pmwiki.php/Main/Media">Media</a> <a class="nav-browse" href="/pmwiki/browse.php">Browse</a> <a href="/pmwiki/index_report.php">Indexes</a> <a href="/pmwiki/topics.php">Forums</a> <a class="nav-browse" href="/pmwiki/recent_videos.php">Videos</a> </nav> <div id="main-header-bar-right"> <div class="font-xs mobile-off" id="signup-login-box"> <a class="hover-underline bold" data-modal-target="signup" href="/pmwiki/login.php">Join</a> <a class="hover-underline bold" data-modal-target="login" href="/pmwiki/login.php">Login</a> </div> <div class="mobile-on inline" id="signup-login-mobileToggle"> <a data-modal-target="login" href="/pmwiki/login.php"><i class="fa fa-user"></i></a> </div> <div id="search-box"> <form action="/pmwiki/search_result.php" class="search"> <input class="search-box" name="q" placeholder="Search" required="" type="text" value=""/> <input class="submit-button" type="submit" value=""/> <input name="search_type" type="hidden" value="article"/> <input name="page_type" type="hidden" value="all"/> <input name="cx" type="hidden" value="partner-pub-6610802604051523:amzitfn8e7v"/> <input name="cof" type="hidden" value="FORID:10"/> <input name="ie" type="hidden" value="ISO-8859-1"/> <input name="siteurl" type="hidden" value=""/> <input name="ref" type="hidden" value=""/> <input name="ss" type="hidden" value=""/> </form> <a class="mobile-on mobile-search-toggle close-x" href="#close-search"><i class="fa fa-close"></i></a> </div> <div id="random-box"> <a class="button-random-trope" href="/pmwiki/pmwiki.php/Main/NeatFreak" onclick="ga('send', 'event', 'button', 'click', 'random trope');" rel="nofollow"></a> <a class="button-random-media" href="/pmwiki/pmwiki.php/Comicbook/DungeonsAndDragons" onclick="ga('send', 'event', 'button', 'click', 'random media');" rel="nofollow"></a> </div> </div> </div> <div class="tablet-on" id="mobile-menu"><div class="mobile-menu-options"> <div class="nav-wrapper"> <a class="xl" href="/pmwiki/pmwiki.php/Main/Tropes">Tropes</a> <a class="xl" href="/pmwiki/pmwiki.php/Main/Media">Media</a> <a class="xl" href="/pmwiki/browse.php">Browse</a> <a class="xl" href="/pmwiki/index_report.php">Indexes</a> <a class="xl" href="/pmwiki/topics.php">Forums</a> <a class="xl" href="/pmwiki/recent_videos.php">Videos</a> <a href="/pmwiki/query.php?type=att">Ask The Tropers</a> <a href="/pmwiki/query.php?type=tf">Trope Finder</a> <a href="/pmwiki/query.php?type=ykts">You Know That Show...</a> <a href="/pmwiki/tlp_activity.php">Trope Launch Pad</a> <a data-click-toggle="active" href="#tools">Tools <i class="fa fa-chevron-down"></i></a> <div class="tools-dropdown mobile-dropdown-linkList"> <a href="/pmwiki/cutlist.php">Cut List</a> <a href="/pmwiki/changes.php">New Edits</a> <a href="/pmwiki/recent_edit_reasons.php">Edit Reasons</a> <a href="/pmwiki/launches.php">Launches</a> <a href="/pmwiki/img_list.php">Images List</a> <a href="/pmwiki/crown_activity.php">Crowner Activity</a> <a href="/pmwiki/no_types.php">Un-typed Pages</a> <a href="/pmwiki/page_type_audit.php">Recent Page Type Changes</a> </div> <a data-click-toggle="active" href="#hq">Tropes HQ <i class="fa fa-chevron-down"></i></a> <div class="tools-dropdown mobile-dropdown-linkList"> <a href="/pmwiki/about.php">About Us</a> <a href="/pmwiki/contact.php">Contact Us</a> <a href="mailto:advertising@proper.io">Advertise</a> <a href="/pmwiki/dmca.php">DMCA Notice</a> <a href="/pmwiki/privacypolicy.php">Privacy Policy</a> </div> <a href="/pmwiki/ad-free-subscribe.php">Go Ad-Free</a> <div class="toggle-switches"> <ul class="mobile-menu display-toggles"> <li>Show Spoilers <div class="display-toggle show-spoilers" id="mobile-toggle-showspoilers"></div></li> <li>Night Vision <div class="display-toggle night-vision" id="mobile-toggle-nightvision"></div></li> <li>Sticky Header <div class="display-toggle sticky-header" id="mobile-toggle-stickyheader"></div></li> <li>Highlight Links <div class="display-toggle highlight-links" id="mobile-toggle-highlightlinks"></div></li> </ul> <script>updateMobilePrefs();</script> </div> </div> </div> </div> </header> <div class="mobile-on" id="homepage-introBox-mobile"> <a href="/"><img class="logo-small" src="/images/logo-white-big.png"/></a> <form action="/pmwiki/search_result.php" class="search" style="margin:10px -5px -6px -5px;"> <input class="search-box" name="q" placeholder="Search" required="" type="text" value=""/> <input class="submit-button" type="submit" value=""/> <input name="search_type" type="hidden" value="article"/> <input name="page_type" type="hidden" value="all"/> <input name="cx" type="hidden" value="partner-pub-6610802604051523:amzitfn8e7v"/> <input name="cof" type="hidden" value="FORID:10"/> <input name="ie" type="hidden" value="ISO-8859-1"/> <input name="siteurl" type="hidden" value=""/> <input name="ref" type="hidden" value=""/> <input name="ss" type="hidden" value=""/> </form> </div> <div class="ad" id="header-ad-wrapper"> <div id="header-ad"> <div class="ad-size-970x90 atf_banner"> <div class="proper-ad-unit"> <div id="proper-ad-tvtropes_ad_1"> <script>propertag.cmd.push(function() { proper_display('tvtropes_ad_1'); });</script> </div> </div> </div> </div> </div> <div id="main-container"> <div class="action-bar mobile-off" id="action-bar-top"> <div class="action-bar-right"> <p>Follow TV Tropes</p> <a class="button-fb" href="https://www.facebook.com/TVTropes"> <i class="fa fa-facebook"></i></a> <a class="button-tw" href="https://www.twitter.com/TVTropes"> <i class="fa fa-twitter"></i></a> <a class="button-re" href="https://www.reddit.com/r/TVTropes"> <i class="fa fa-reddit-alien"></i></a> </div> <nav class="actions-wrapper" itemscope="" itemtype="http://schema.org/SiteNavigationElement"> <ul class="page-actions" id="top_main_list"> <li class="link-edit"> <a class="article-edit-button" data-modal-target="login" href="/pmwiki/pmwiki.php/Main/AutoErotica?action=edit" rel="nofollow"> <i class="fa fa-pencil"></i> Edit Page</a></li><li class="link-related"><a href="/pmwiki/relatedsearch.php?term=Main/AutoErotica"> <i class="fa fa-share-alt"></i> Related</a></li><li class="link-history"><a href="/pmwiki/article_history.php?article=Main.AutoErotica"> <i class="fa fa-history"></i> History</a></li><li class="link-discussion"><a href="/pmwiki/remarks.php?trope=Main.AutoErotica"> <i class="fa fa-comment"></i> Discussion</a></li> </ul> <button class="nav__dropdown-toggle" id="top_more_button" onclick="toggle_more_menu('top');" type="button">More</button> <ul class="more_menu hidden_more_list" id="top_more_list"> <li class="link-todo tuck-always more_list_item"><a data-modal-target="login" href="#todo"><i class="fa fa-check-circle"></i> To Do</a></li><li class="link-pageSource tuck-always more_list_item"><a data-modal-target="login" href="/pmwiki/pmwiki.php/Main/AutoErotica?action=source" rel="nofollow" target="_blank"><i class="fa fa-code"></i> Page Source</a></li> </ul> </nav> <div class="WikiWordModalStub"></div> <div class="ImgUploadModalStub" data-page-type="Article"></div> <div class="login-alert" style="display: none;"> You need to <a href="/pmwiki/login.php" style="color:#21A0E8">login</a> to do this. <a href="/pmwiki/login.php?tab=register_account" style="color:#21A0E8">Get Known</a> if you don't have an account </div> </div> <div class="page-Article" id="main-content"> <article class="with-sidebar" id="main-entry"> <input id="groupname-hidden" type="hidden" value="Main"/> <input id="title-hidden" type="hidden" value="AutoErotica"/> <input id="article_id" type="hidden" value="17869"/> <input id="logged_in" type="hidden" value="false"/> <p class="hidden" id="current_url">http://tvtropes.org/pmwiki/pmwiki.php/Main/AutoErotica</p> <meta content="" itemprop="datePublished"/> <meta content="" itemprop="articleSection"/> <meta content="" itemprop="image"/> <a class="watch-button" data-modal-target="login" href="#watch">Follow<span>ing</span></a> <h1 class="entry-title" itemprop="headline"> Auto Erotica </h1> <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "tvtropes.org", "item": "https://tvtropes.org" },{ "@type": "ListItem", "position": 2, "name": "Tropes", "item": "https://tvtropes.org/pmwiki/pmwiki.php/Main/Tropes" },{ "@type": "ListItem", "position": 3, "name": "Auto Erotica" }] } </script> <a class="mobile-actionbar-toggle mobile-on" data-click-toggle="active" href="#mobile-actions-toggle" id="mobile-actionbar-toggle"> <p class="tiny-off">Go To</p><span></span><span></span><span></span><i class="fa fa-pencil"></i></a> <nav class="mobile-actions-wrapper mobile-on" id="mobile-actions-bar"></nav> <div class="modal fade hidden-until-active" id="editLockModal"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button aria-label="Close" class="close" data-dismiss="modal" type="button"> <span aria-hidden="true">×</span></button> <h4 class="modal-title">Edit Locked</h4> </div> <div class="modal-body"> <div class="row"> <div class="body"> <div class="danger troper_locked_message"></div> </div> </div> </div> </div> </div> </div> <nav class="body-options" itemscope="" itemtype="http://schema.org/SiteNavigationElement"> <ul class="subpage-links"> <li> <a class="subpage-link curr-subpage" href="/pmwiki/pmwiki.php/Main/AutoErotica" title="The Main page"> <span class="wrapper"><span class="spi main-page"></span>Main</span></a> </li> <li> <a class="subpage-link" href="/pmwiki/pmwiki.php/Laconic/AutoErotica" title="The Laconic page"> <span class="wrapper"><span class="spi laconic-icon"></span>Laconic</span></a> </li> <li> <a class="subpage-link" href="/pmwiki/pmwiki.php/Quotes/AutoErotica" title="The Quotes page"> <span class="wrapper"><span class="spi quotes"></span>Quotes</span></a> </li> <li> <a class="subpage-link" href="/pmwiki/pmwiki.php/PlayingWith/AutoErotica" title="The PlayingWith page"> <span class="wrapper">PlayingWith</span></a> </li> <li> <a class="subpage-link video-examples-tab" href="/pmwiki/pmwiki.php/VideoExamples/AutoErotica" title="Video Examples"> <img alt="play" class="" src="/images/play-button-logo.png"/> <span class="wrapper">VideoExamples</span> </a> </li> <li class="create-subpage dropdown"> <a aria-expanded="false" class="dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);" role="button"> <span class="wrapper">Create New <i class="fa fa-plus-circle"></i></span> </a> <select onchange="this.options[this.selectedIndex].value &amp;&amp; (window.location = this.options[this.selectedIndex].value);"> <option value="">- Create New -</option> <option value="/pmwiki/pmwiki.php/Analysis/AutoErotica?action=edit">Analysis</option> <option value="/pmwiki/pmwiki.php/Characters/AutoErotica?action=edit">Characters</option> <option value="/pmwiki/pmwiki.php/FanficRecs/AutoErotica?action=edit">FanficRecs</option> <option value="/pmwiki/pmwiki.php/FanWorks/AutoErotica?action=edit">FanWorks</option> <option value="/pmwiki/pmwiki.php/Fridge/AutoErotica?action=edit">Fridge</option> <option value="/pmwiki/pmwiki.php/Haiku/AutoErotica?action=edit">Haiku</option> <option value="/pmwiki/pmwiki.php/Headscratchers/AutoErotica?action=edit">Headscratchers</option> <option value="/pmwiki/pmwiki.php/ImageLinks/AutoErotica?action=edit">ImageLinks</option> <option value="/pmwiki/pmwiki.php/Recap/AutoErotica?action=edit">Recap</option> <option value="/pmwiki/pmwiki.php/ReferencedBy/AutoErotica?action=edit">ReferencedBy</option> <option value="/pmwiki/pmwiki.php/Synopsis/AutoErotica?action=edit">Synopsis</option> <option value="/pmwiki/pmwiki.php/Timeline/AutoErotica?action=edit">Timeline</option> <option value="/pmwiki/pmwiki.php/Trivia/AutoErotica?action=edit">Trivia</option> <option value="/pmwiki/pmwiki.php/WMG/AutoErotica?action=edit">WMG</option> <option value="/pmwiki/pmwiki.php/YMMV/AutoErotica?action=edit">YMMV</option> </select> </li> </ul> </nav> <div class="article-content retro-folders" id="main-article"> <p></p><div class="quoteright" style="width:273px;"><a class="twikilink" href="/pmwiki/pmwiki.php/Webcomic/SabrinaOnline" title="/pmwiki/pmwiki.php/Webcomic/SabrinaOnline"><div class="lazy_load_img_box" style="padding-top:120.88%"><img alt="https://static.tvtropes.org/pmwiki/pub/images/sabrina-car_4304.gif" border="0" class="embeddedimage" height="330" src="https://static.tvtropes.org/pmwiki/pub/images/sabrina-car_4304.gif" width="273"/></div></a></div> <div class="acaptionright" style="width:273px;">An important criterion when choosing a new car.</div> <p></p><div class="indent"><em>"Automobiles. A type of land vehicle used for transport. Also used in teenage mating rituals."</em> <div class="indent">— <strong>Data</strong>, <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/StarTrekTheNextGeneration" title="/pmwiki/pmwiki.php/Series/StarTrekTheNextGeneration">Star Trek: The Next Generation</a></em> </div></div><p> </p><div class="proper-ad-unit mobile-ad square_ad"><h6 class="ad-caption">Advertisement:</h6><div id="proper-ad-tvtropes_mobile_ad_1"><script>propertag.cmd.push(function() { proper_display('tvtropes_mobile_ad_1'); })</script></div></div><p>Two characters have sex in the back seat of a car. Extra points if it's at somewhere referred to as "<a class="twikilink" href="/pmwiki/pmwiki.php/Main/MakeOutPoint" title="/pmwiki/pmwiki.php/Main/MakeOutPoint">Make-Out Point</a>". </p><p>Being in the back seat, while typical, isn't 100% required. It also happens in the front seat, though it's more cramped. A different kind of bonus points if it takes place <em>while one of them is driving</em> (which is absolutely possible <a class="twikilink" href="/pmwiki/pmwiki.php/Main/DoNotTryThisAtHome" title="/pmwiki/pmwiki.php/Main/DoNotTryThisAtHome">but extremely dangerous just from a distraction standpoint</a>). </p><p><a class="twikilink" href="/pmwiki/pmwiki.php/Main/SexIsEvil" title="/pmwiki/pmwiki.php/Main/SexIsEvil">Moral or divine punishment</a> for Auto Erotica (particularly at an isolated <a class="twikilink" href="/pmwiki/pmwiki.php/Main/MakeOutPoint" title="/pmwiki/pmwiki.php/Main/MakeOutPoint">Make-Out Point</a>) often <a class="twikilink" href="/pmwiki/pmwiki.php/Main/TheScourgeOfGod" title="/pmwiki/pmwiki.php/Main/TheScourgeOfGod">manifests itself</a> in the form of a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/SerialKiller" title="/pmwiki/pmwiki.php/Main/SerialKiller">Serial Killer</a> on a prison break looking for fresh meat, a cop making his rounds, or an <a class="twikilink" href="/pmwiki/pmwiki.php/Main/OverprotectiveDad" title="/pmwiki/pmwiki.php/Main/OverprotectiveDad">overprotective</a> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/KnightTemplarParent" title="/pmwiki/pmwiki.php/Main/KnightTemplarParent">knight templar father</a> armed with a shotgun or a baseball bat and out to <a class="twikilink" href="/pmwiki/pmwiki.php/Main/MyGirlIsNotASlut" title="/pmwiki/pmwiki.php/Main/MyGirlIsNotASlut">defend his daughter's purity</a>. Other forms of interruption, with varying levels of humiliation, abound. </p><div class="proper-ad-unit mobile-ad square_ad"><h6 class="ad-caption">Advertisement:</h6><div id="proper-ad-tvtropes_mobile_ad_2"><script>propertag.cmd.push(function() { proper_display('tvtropes_mobile_ad_2'); })</script></div></div><p>Truth in Television, obviously — the romantic potentials of cars have been recognized from the beginning of the automotive age. The Edwardians dubbed them "brothels-on-wheels". </p><p>Not to be confused with sexual attraction/relationships with <a class="twikilink" href="/pmwiki/pmwiki.php/Main/CargoShip" title="/pmwiki/pmwiki.php/Main/CargoShip">cars, robots, or vacuum cleaners</a>, sexy people <a class="twikilink" href="/pmwiki/pmwiki.php/Main/HoodOrnamentHottie" title="/pmwiki/pmwiki.php/Main/HoodOrnamentHottie">posing on the outside of cars</a>, (or <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ADateWithRosiePalms" title="/pmwiki/pmwiki.php/Main/ADateWithRosiePalms">actual</a> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ScrewYourself" title="/pmwiki/pmwiki.php/Main/ScrewYourself">autoerotica</a>). It is also not to be confused with <a class="twikilink" href="/pmwiki/pmwiki.php/Main/CarPorn" title="/pmwiki/pmwiki.php/Main/CarPorn">Car Porn</a> (where the porn is metaphorical). </p><p>Often accompanied with <a class="twikilink" href="/pmwiki/pmwiki.php/Main/DontComeAKnockin" title="/pmwiki/pmwiki.php/Main/DontComeAKnockin">Don't Come A-Knockin'</a>. </p><p>Compare <a class="twikilink" href="/pmwiki/pmwiki.php/Main/MileHighClub" title="/pmwiki/pmwiki.php/Main/MileHighClub">Mile-High Club</a> (having sex in an airplane in flight). </p><hr/><div class="proper-ad-unit mobile-ad square_ad"><h6 class="ad-caption">Advertisement:</h6><div id="proper-ad-tvtropes_mobile_ad_3"><script>propertag.cmd.push(function() { proper_display('tvtropes_mobile_ad_3'); })</script></div></div><h2>Examples:</h2> <p></p><div class="folderlabel" onclick="toggleAllFolders();">    open/close all folders  </div> <p></p><div class="folderlabel" onclick="togglefolder('folder0');">    Advertising </div><div class="folder" id="folder0" isfolder="true" style="display:block;"> <ul><li> In <a class="urllink" href="https://youtube.com/watch?v=LuaIJGJNbzo">this Chrysler Concorde commercial<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a>, Savannah learns that she was named after the place where she was conceived, and so was her baby sister, Concorde. </li><li> Around 1970, a rather innocuous European car (Renault?) had a magazine ad touting its qualities as macho, including seats that folded down into a bed (later ads dropped a line about 'extending your manhood' at that point). </li><li> A <a class="urllink" href="http://youtu.be/U6y2YOETyZY">Peugeot ad<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a> consisted of little more than a couple having (very enthusiastic) sex in the advertised car. </li><li> <a class="urllink" href="https://www.youtube.com/watch?v=DZ3cDd-L1Qg">This<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a> Volkswagen ad has a couple enjoy some quality time in their car. Cut to them buying a new Volkswagen with a kid. Then they do it a second time and buy a new Volkswagen with a second kid. Then a third time, same results. The final shot has their newest vehicle shaking... from the shenanigans of the kids inside. </li><li> In a commercial for State Farm auto insurance, a teen girl just got her own car with her own insurance and no longer needs to drive her parents' hand-me-down. The parents present said car as a "surprise" gift to her younger brother, who laments that he'll never get a date in this car. The dad says "We had a lot of great dates in this car," <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ParentalSexualitySquick" title="/pmwiki/pmwiki.php/Main/ParentalSexualitySquick">much to the son's disgust</a>. </li></ul></div> <p></p><div class="folderlabel" onclick="togglefolder('folder1');">    Anime &amp; Manga </div><div class="folder" id="folder1" isfolder="true" style="display:block;"> <ul><li> A chapter of <em><a class="twikilink" href="/pmwiki/pmwiki.php/Manga/FutariEcchi" title="/pmwiki/pmwiki.php/Manga/FutariEcchi">Futari Ecchi</a></em> is dedicated to this trope. Containing useful advice (both social and hygienic) on how to do it properly. (Like explanations on why it's inadvisable to do it on the front seat or why it's <a class="twikilink" href="/pmwiki/pmwiki.php/Main/DontComeAKnockin" title="/pmwiki/pmwiki.php/Main/DontComeAKnockin">preferable to turn off the lights</a>.) </li><li> One episode of <em><a class="twikilink" href="/pmwiki/pmwiki.php/Manga/InitialD" title="/pmwiki/pmwiki.php/Manga/InitialD">Initial D</a></em> has Takumi and Natsuki making out in Takumi's Trueno, to the point where we see <a class="twikilink" href="/pmwiki/pmwiki.php/Main/DontComeAKnockin" title="/pmwiki/pmwiki.php/Main/DontComeAKnockin">the car rocking</a> for a bit. <ul><li> Subverted in the Second Stage OVA when Itsuki literally sleeps with a girl in his Levin. </li></ul></li><li> This is <strong>heavily</strong> implied to have occurred multiple times in <em><a class="twikilink" href="/pmwiki/pmwiki.php/Anime/RevolutionaryGirlUtena" title="/pmwiki/pmwiki.php/Anime/RevolutionaryGirlUtena">Revolutionary Girl Utena</a></em> with the "Akio Car" with multiple characters, and the car itself explicitly represents the world of adulthood. <ul><li> Just implied? We get to see <span class="spoiler" title="you can set spoilers visible by default on your profile"> Utena and Akio</span> kissing while <span class="spoiler" title="you can set spoilers visible by default on your profile"> Anthy</span> looks at them from afar. There's also how <span class="spoiler" title="you can set spoilers visible by default on your profile"> Ruka and Shiori</span> have sex in there <span class="spoiler" title="you can set spoilers visible by default on your profile"> as a part of Ruka's plan to discredit her</span>. And finally, <span class="spoiler" title="you can set spoilers visible by default on your profile"> Touga <em>assaults</em> Nanami</span> inside too. That car has seen <strong>lots</strong> of action. </li><li> And in a more metaphorical way, <span class="spoiler" title="you can set spoilers visible by default on your profile"> the scene where Utena has (dubiously consensual) sex with Akio</span> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/WhatdoYouMeanItsNotSymbolic" title="/pmwiki/pmwiki.php/Main/WhatdoYouMeanItsNotSymbolic">has lots of imagery associated with cars and highways</a>. </li></ul></li><li> In the <em><a class="twikilink" href="/pmwiki/pmwiki.php/Manga/JunjouRomantica" title="/pmwiki/pmwiki.php/Manga/JunjouRomantica">Junjou Romantica</a></em> manga, this happens in a parking garage after Misaki sprains his ankle and Usagi-san (of course) comes to his rescue. </li><li> Happens in <em><a class="twikilink" href="/pmwiki/pmwiki.php/Manga/SekaiIchiHatsukoi" title="/pmwiki/pmwiki.php/Manga/SekaiIchiHatsukoi">Sekai Ichi Hatsukoi</a></em> when Ritsu and Takano go on a date on Takano's birthday. It gets a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/SexyDiscretionShot" title="/pmwiki/pmwiki.php/Main/SexyDiscretionShot">Sexy Discretion Shot</a> in the anime adaptation. <a class="twikilink" href="/pmwiki/pmwiki.php/Main/Tsundere" title="/pmwiki/pmwiki.php/Main/Tsundere">Ritsu</a> later claims his memories of Takano's car aren't exactly good as a result. </li><li> In a flashback in Episode 10 of <em><a class="twikilink" href="/pmwiki/pmwiki.php/Anime/PantyAndStockingWithGarterbelt" title="/pmwiki/pmwiki.php/Anime/PantyAndStockingWithGarterbelt">Panty &amp; Stocking with Garterbelt</a></em>, Fastener had sex with a cheerleader in his convertible. </li></ul></div> <p></p><div class="folderlabel" onclick="togglefolder('folder2');">    Comic Books </div><div class="folder" id="folder2" isfolder="true" style="display:block;"> <ul><li> <a class="twikilink" href="/pmwiki/pmwiki.php/ComicBook/ScottPilgrim" title="/pmwiki/pmwiki.php/ComicBook/ScottPilgrim">Scott Pilgrim</a> and Kim Pine are seen doing this in a flashback. </li><li> "Hot Rod Boogie", generally regarded as the first true <em>Cherry Comics</em> story, is all about this. </li><li> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/Averted" title="/pmwiki/pmwiki.php/Main/Averted">Averted</a> in <em><a class="twikilink" href="/pmwiki/pmwiki.php/ComicBook/WITCH" title="/pmwiki/pmwiki.php/ComicBook/WITCH">W.I.T.C.H.</a></em>: a minor character tries this on Irma, who was using her older and more attractive Guardian form to flirt with him, but she wasn't ready and accidentally <a class="twikilink" href="/pmwiki/pmwiki.php/Main/BalefulPolymorph" title="/pmwiki/pmwiki.php/Main/BalefulPolymorph">turned him in a toad</a>. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/ComicBook/RedEars" title="/pmwiki/pmwiki.php/ComicBook/RedEars">Red Ears</a></em>: One gag has a young couple having sex in a car. The girl then says the guy was great and she adds that the fact that it was "their first time" was the most exciting part. The next shot shows the guy <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ReallyGetsAround" title="/pmwiki/pmwiki.php/Main/ReallyGetsAround">tick off another stripe on the side of his car</a>. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Literature/DominoLady" title="/pmwiki/pmwiki.php/Literature/DominoLady">Domino Lady</a></em>: In the Eros Comix miniseries, Domino Lady and Det. Rob Wyatt start having sex in the back of Ellen's limousine when they are affected by the <a class="twikilink" href="/pmwiki/pmwiki.php/Main/MindControlMusic" title="/pmwiki/pmwiki.php/Main/MindControlMusic">Mind-Control Music</a>. Their liaison is cut short when Delglyn drives the car off a bridge and into the river. </li></ul></div> <p></p><div class="folderlabel" onclick="togglefolder('folder3');">    Fanfiction </div><div class="folder" id="folder3" isfolder="true" style="display:block;"> <ul><li> Naturally, since <em><a class="twikilink" href="/pmwiki/pmwiki.php/FanFic/MisfiledDreams" title="/pmwiki/pmwiki.php/FanFic/MisfiledDreams">Misfiled Dreams</a></em> has cars as a major theme like the <a class="twikilink" href="/pmwiki/pmwiki.php/Webcomic/Misfile" title="/pmwiki/pmwiki.php/Webcomic/Misfile">original story</a>, this had to happen at least once. It's even lampshaded with the line "Somehow… I knew we’d wind up doing this in a car." </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/FanFic/MyImmortal" title="/pmwiki/pmwiki.php/FanFic/MyImmortal">My Immortal</a></em>, Draco and Enoby have sex in Draco's flying car. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/FanFic/ForbidenFruitTheTempationOfEdwardCullen" title="/pmwiki/pmwiki.php/FanFic/ForbidenFruitTheTempationOfEdwardCullen">Forbiden Fruit: The Tempation of Edward Cullen</a></em>, two gay men and a gay <em><a class="twikilink" href="/pmwiki/pmwiki.php/Main/PandaingToTheAudience" title="/pmwiki/pmwiki.php/Main/PandaingToTheAudience">panda</a></em> all manage to fit in the back of a car to have a three-way. The fact that a panda took part (and owns the car) means the car was most likely a semi-truck of some description. </li><li> In one <a class="twikilink" href="/pmwiki/pmwiki.php/FanFic/HookerVerse" title="/pmwiki/pmwiki.php/FanFic/HookerVerse">HookerVerse</a> fic, <a class="twikilink" href="/pmwiki/pmwiki.php/WebVideo/TheCinemaSnob" title="/pmwiki/pmwiki.php/WebVideo/TheCinemaSnob">The Cinema Snob</a> has sex with the Critic in the back of his limo. </li><li> <a class="urllink" href="http://www.fanfiction.net/s/6800380/1/KITT_Copycat">KITT Copycat<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a> had Pepper and Tony having sex at the back of his car while 'JARVIS was driving'. </li><li> <a class="urllink" href="http://fangire.dreamwidth.org/578.html">This<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/EngineSentaiGoOnger" title="/pmwiki/pmwiki.php/Series/EngineSentaiGoOnger">Engine Sentai Go-onger</a></em> fanfic involving Sosuke and Miu making love in the backseat of his car. Much like the <em><a class="twikilink" href="/pmwiki/pmwiki.php/FanFic/MisfiledDreams" title="/pmwiki/pmwiki.php/FanFic/MisfiledDreams">Misfiled Dreams</a></em> example above, it's lampshaded due to the major car motif of the Go-ongers. </li><li> In the second season of <em><a class="twikilink" href="/pmwiki/pmwiki.php/Fanfic/ChildrenOfTime" title="/pmwiki/pmwiki.php/Fanfic/ChildrenOfTime">Children of Time</a></em>, <a class="twikilink" href="/pmwiki/pmwiki.php/Franchise/SherlockHolmes" title="/pmwiki/pmwiki.php/Franchise/SherlockHolmes">the Holmeses</a> have their first time since their reunion in the back of Beth's police cruiser. ...they really <em>did</em> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/LongDistanceRelationship" title="/pmwiki/pmwiki.php/Main/LongDistanceRelationship">wait a</a> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Main/LongDistanceRelationship" title="/pmwiki/pmwiki.php/Main/LongDistanceRelationship">very</a></em> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/LongDistanceRelationship" title="/pmwiki/pmwiki.php/Main/LongDistanceRelationship">long time for this</a>. </li><li> In <a class="urllink" href="https://www.fanfiction.net/s/9862443/1/Timing-is-Everything">Timing is Everything,<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a> <a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/TeenTitans" title="/pmwiki/pmwiki.php/WesternAnimation/TeenTitans">Beast Boy and Raven</a> have their first time in the T-Car. Cyborg (who considers the car his "baby") doesn't find out until it turns out Raven became pregnant during that time, at which point he is really upset at his car being desecrated, demands to be the child's godfather and forces Beast Boy to clean the car something like 50 times straight. Then Beast Boy recommends that Starfire sits in the car during the next IVF attempt... the <a class="twikilink" href="/pmwiki/pmwiki.php/Main/LawOfInverseFertility" title="/pmwiki/pmwiki.php/Main/LawOfInverseFertility">Law of Inverse Fertility</a> has been at work for her and Robin a bit too hard the last time. </li><li> In a deliberate reference to <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/NCIS" title="/pmwiki/pmwiki.php/Series/NCIS">NCIS</a></em> (see <a class="twikilink" href="/pmwiki/pmwiki.php/Main/LiveActionTV" title="/pmwiki/pmwiki.php/Main/LiveActionTV">Live-Action TV</a>, below), in <em><a class="twikilink" href="/pmwiki/pmwiki.php/Fanfic/FromBajorToTheBlack" title="/pmwiki/pmwiki.php/Fanfic/FromBajorToTheBlack">From Bajor to the Black</a></em> Eleya loses her virginity with another member of her training platoon in the back of an infantry fighting vehicle. <div class="indent"> <strong>Author's Note:</strong> Bajorans are basically post-Holocaust <a class="twikilink" href="/pmwiki/pmwiki.php/Main/SpaceJews" title="/pmwiki/pmwiki.php/Main/SpaceJews">space Jews</a> in a lot of ways and Eleya’s a badass <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ActionGirl" title="/pmwiki/pmwiki.php/Main/ActionGirl">action girl</a>, so what the hey? </div></li><li> One chapter of <em><a class="twikilink" href="/pmwiki/pmwiki.php/Fanfic/MegsFamilySeries" title="/pmwiki/pmwiki.php/Fanfic/MegsFamilySeries">Meg's Boyfriend</a></em> had Meg and Zack doing it <em>in a tank</em>. Of course, it's not at all comfortable, and they end up blasting Cleveland's house. </li></ul></div> <p></p><div class="folderlabel" onclick="togglefolder('folder4');">    Film — Animated </div><div class="folder" id="folder4" isfolder="true" style="display:block;"> <ul><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/RockAndRule" title="/pmwiki/pmwiki.php/WesternAnimation/RockAndRule">Rock &amp; Rule</a></em> has a scene like this, although by all appearances the cars themselves are already there, and just 'borrowed' for the festivities. </li></ul></div> <p></p><div class="folderlabel" onclick="togglefolder('folder5');">    Film — Live-Action </div><div class="folder" id="folder5" isfolder="true" style="display:block;"> <ul><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/SixtyEightKill" title="/pmwiki/pmwiki.php/Film/SixtyEightKill">68 Kill</a></em>: After murdering Ben and his wife, and stuffing Violet into the trunk, Liza and Chip have violent sex in their car. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/AmericanGraffiti" title="/pmwiki/pmwiki.php/Film/AmericanGraffiti">American Graffiti</a></em>, Toad and Debbie make out in Steve's Chevy. Steve tries to have sex with Laurie in her car, but she doesn't want it. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/AnimalHouse" title="/pmwiki/pmwiki.php/Film/AnimalHouse">Animal House</a></em> includes a scene in which Babs is implied to have given Greg Marmalard a hand-job in his car - this isn’t shown, she appears sitting in the front seat, removing a rubber glove... </li><li> Subversion: in <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/BackToTheFuture" title="/pmwiki/pmwiki.php/Film/BackToTheFuture">Back to the Future</a></em>, George McFly intervenes to <em>prevent</em> this <a class="twikilink" href="/pmwiki/pmwiki.php/Main/DateRapeAverted" title="/pmwiki/pmwiki.php/Main/DateRapeAverted">kind of thing</a> happening to his future wife Lorraine. <ul><li> Then again, Lorraine seems like she may or may not be trying to get someone else in the backseat before Biff shows up. Specifically, <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ParentalIncest" title="/pmwiki/pmwiki.php/Main/ParentalIncest">Marty</a>. <ul><li> Remember: <a class="twikilink" href="/pmwiki/pmwiki.php/Main/HypocriticalHumor" title="/pmwiki/pmwiki.php/Main/HypocriticalHumor">decent girls do not "park"</a>. However, Lorraine probably only planned to do heavy kissing. </li></ul></li><li> Parodied by <a class="urllink" href="https://www.youtube.com/watch?v=r5aRcwHULaI">this<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a> <a class="twikilink" href="/pmwiki/pmwiki.php/Website/CollegeHumor" title="/pmwiki/pmwiki.php/Website/CollegeHumor">CollegeHumor</a> video, where Lorraine does have sex with Marty in the car. Doc is appalled when Marty informs him, and as a result, he frantically tries to undo this, which only <a class="twikilink" href="/pmwiki/pmwiki.php/Main/EpicFail" title="/pmwiki/pmwiki.php/Main/EpicFail">makes the problem even worse</a>, such as leading to Lorraine having a three-way in the front seat with two Martys. </li></ul></li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/Bedazzled1967" title="/pmwiki/pmwiki.php/Film/Bedazzled1967">Bedazzled (1967)</a></em> - Stanley wishes for himself and the woman he loves to be really nice people, madly in love with each other, in a cozy domestic setting - and ends up in just that scenario...with her married to his best friend. They try trysting in her car, but they're <em>so</em> nice that they're positively grievous with guilt for even trying it. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/BloodyHomecoming" title="/pmwiki/pmwiki.php/Film/BloodyHomecoming">Bloody Homecoming</a></em>, Nora and Roddy have sex in the back of (somebody else's) pickup truck in the parking lot during the homecoming game. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/BringMeTheHeadOfTheMachineGunWoman" title="/pmwiki/pmwiki.php/Film/BringMeTheHeadOfTheMachineGunWoman">Bring Me the Head of the Machine Gun Woman</a></em>: Santiago and the Machine Gun Woman have sex in her jeep after he extracts a bullet from her side. Machine Gun Woman is still tied up at the time. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/Camila" title="/pmwiki/pmwiki.php/Film/Camila">Camila</a></em>: The 19th-century equivalent thereof, as Camila and Ladislao have sex inside a carriage. </li><li> Happens in <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/Candy" title="/pmwiki/pmwiki.php/Film/Candy">Candy</a></em> where it's a sign of Dan and Candy coming back together again in their decision to try to go clean in the countryside. </li><li> The B-movie <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/TheChase" title="/pmwiki/pmwiki.php/Film/TheChase">The Chase</a></em> with <a class="twikilink" href="/pmwiki/pmwiki.php/Creator/CharlieSheen" title="/pmwiki/pmwiki.php/Creator/CharlieSheen">Charlie Sheen</a> and <a class="twikilink" href="/pmwiki/pmwiki.php/Creator/KristySwanson" title="/pmwiki/pmwiki.php/Creator/KristySwanson">Kristy Swanson</a> features their characters having sex in a car. <em>While Sheen is driving.</em> <em><a class="twikilink" href="/pmwiki/pmwiki.php/SugarWiki/MomentOfAwesome" title="/pmwiki/pmwiki.php/SugarWiki/MomentOfAwesome">And being chased by police.</a></em> </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/Crank" title="/pmwiki/pmwiki.php/Film/Crank">Crank</a></em>, Chev gets Eve to do this to him while they're being chased by gang members. <ul><li> He's <em>very</em> upset that she doesn't finish the job, but she points out that he needs to keep his adrenalin <em>up</em>, not fall asleep immediately after. In frustration, he walks out and shoots the bad guys, much to Eve's horror. <ul><li> Then again, it could be payback for <em>him</em> not finishing the job earlier in the movie, when he forced her to have sex in public in front of dozens of people (she resisted at first but got really into it later). </li></ul></li></ul></li><li> The opening scene of <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/DeathScreams" title="/pmwiki/pmwiki.php/Film/DeathScreams">Death Screams</a></em> provides a variation with two lovers on top of a motorcycle. </li><li> Parodied and Averted in <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/Dragnet" title="/pmwiki/pmwiki.php/Film/Dragnet">Dragnet</a></em>, in a scene where Streebek tries to figure out where Friday is: <div class="indent"><strong>Streebek:</strong> For a minute I pictures him introducing Ms. Swail to the one piece of his equipment not issued by the department. But then, I figured Joe Friday wouldn't be the type to spring for some third-rate motel. And since making love in a Yugo was a scientific impossibility, I knew something was up. </div></li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/DressedToKill" title="/pmwiki/pmwiki.php/Film/DressedToKill">Dressed to Kill</a></em>: Kate Miller (<a class="twikilink" href="/pmwiki/pmwiki.php/Creator/AngieDickinson" title="/pmwiki/pmwiki.php/Creator/AngieDickinson">Angie Dickinson</a>), a sexually unsatisfied suburban housewife, both seduces and is seduced by a handsome stranger in the Metropolitan Museum of Art; he consummates the seduction by dangling her glove (which she'd taken off earlier as a flirtation tactic) from the window of a taxicab. The couple have sex in the backseat, watched by <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ThePeepingTom" title="/pmwiki/pmwiki.php/Main/ThePeepingTom">The Peeping Tom</a> cab driver in his rear-view mirror, culminating in Kate having a vigorous climax while being felt up by her partner. </li><li> Implied in this exchange from <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/DudeWheresMyCar" title="/pmwiki/pmwiki.php/Film/DudeWheresMyCar">Dude, Where's My Car?</a></em>: <div class="indent"><strong>Jesse:</strong> Hey, have you seen my car? <br/><strong>Christy Boner:</strong> Well, I saw it last night. I saw the back seat. <br/><strong>Jesse:</strong> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ComicallyMissingThePoint" title="/pmwiki/pmwiki.php/Main/ComicallyMissingThePoint">No, I'm talking about the whole thing.</a> </div></li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/EightLeggedFreaks" title="/pmwiki/pmwiki.php/Film/EightLeggedFreaks">Eight Legged Freaks</a></em>, <a class="twikilink" href="/pmwiki/pmwiki.php/Creator/ScarlettJohansson" title="/pmwiki/pmwiki.php/Creator/ScarlettJohansson">Scarlett Johansson</a>'s character is a teenage girl whose boyfriend is trying to have sex with in his pickup truck. She tells him she doesn't want to lose her virginity in a car seat, which prompts him to suggest the back of the truck. She proceeds to zap him in the nuts with her mother's taser. They get back together at the end, though. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/Forbidden" title="/pmwiki/pmwiki.php/Film/Forbidden">Forbidden</a></em>: Tracy Ryan and Jason Schnuit have sex in the front seat of a Chevy Suburban. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/ForrestGump" title="/pmwiki/pmwiki.php/Film/ForrestGump">Forrest Gump</a></em> the titular character interrupts Jenny, who is apparently in the middle of this. He thought <a class="twikilink" href="/pmwiki/pmwiki.php/Main/DateRapeAverted" title="/pmwiki/pmwiki.php/Main/DateRapeAverted">she was being raped</a>. She wasn't]]. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/Gattaca" title="/pmwiki/pmwiki.php/Film/Gattaca">Gattaca</a></em>: The main character was conceived that way, which means he's <em>NOT</em> a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/DesignerBabies" title="/pmwiki/pmwiki.php/Main/DesignerBabies">Gattaca Baby</a>. </li></ul><div class="indent">''"I was conceived in the Riviera … but not the French Riviera. The Detroit variety."' </div><ul><li> At the beginning of <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/GoldenEye" title="/pmwiki/pmwiki.php/Film/GoldenEye">GoldenEye</a></em>, <a class="twikilink" href="/pmwiki/pmwiki.php/Film/JamesBond" title="/pmwiki/pmwiki.php/Film/JamesBond">James Bond</a> seduces his evaluator after a car chase in his Aston Martin DB5. He even has champagne and glasses stashed in the center console to help things along. </li><li> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/DiscussedTrope" title="/pmwiki/pmwiki.php/Main/DiscussedTrope">Discussed</a> in <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/GoneInSixtySeconds2000" title="/pmwiki/pmwiki.php/Film/GoneInSixtySeconds2000">Gone in 60 Seconds (2000)</a></em> when Memphis and Sway are waiting for the owners of the car they're trying to steal to close the blinds. They start slinging around <a class="twikilink" href="/pmwiki/pmwiki.php/Main/DoubleEntendre" title="/pmwiki/pmwiki.php/Main/DoubleEntendre">Double Entendres</a> about said car being a stick shift, and then start making out. But before things get too hot and heavy the blinds finally close and they have to scramble back in position to drive the car away. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/TheGraduate" title="/pmwiki/pmwiki.php/Film/TheGraduate">The Graduate</a></em>, Mrs. Robinson tells Ben that Elaine was conceived in the back of a Ford. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/Grease" title="/pmwiki/pmwiki.php/Film/Grease">Grease</a></em>, Rizzo and Kenickie have sex in his car. <ul><li> Also, Danny tries to have sex with Sandy in his car, but <a class="twikilink" href="/pmwiki/pmwiki.php/Main/DateRapeAverted" title="/pmwiki/pmwiki.php/Main/DateRapeAverted">she doesn't want it and gets away from him</a>. </li></ul></li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/Heathers" title="/pmwiki/pmwiki.php/Film/Heathers">Heathers</a></em>, J.D. and Veronica rapidly strip and pretend to engage in this, after having killed a couple of football players, when a couple of police officers approach. The next scene opens with them still in the car, J.D. with his clothes and hair slightly disheveled and Veronica lying down with her head in his lap, mirroring an earlier scene where they were cuddling just after having had sex. Some viewers have taken this to mean something <em>else</em> happened offscreen, but it's never stated outright. </li><li> Played with in <a class="twikilink" href="/pmwiki/pmwiki.php/Main/TheFilmOfTheBook" title="/pmwiki/pmwiki.php/Main/TheFilmOfTheBook">The Film of the Book</a> of <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/HighFidelity" title="/pmwiki/pmwiki.php/Film/HighFidelity">High Fidelity</a></em>—Rob and Laura have sex in the *front* seat of her car. </li><li> <em><a class="createlink" href="/pmwiki/pmwiki.php/Film/HOTS" title="/pmwiki/pmwiki.php/Film/HOTS">H.O.T.S.</a></em>: John and Cindy have sex in his van. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/HotShotsPartDeux" title="/pmwiki/pmwiki.php/Film/HotShotsPartDeux">Hot Shots! Part Deux</a></em> parodies the <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/NoWayOut" title="/pmwiki/pmwiki.php/Film/NoWayOut">No Way Out</a></em> scene. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/TheIceStorm" title="/pmwiki/pmwiki.php/Film/TheIceStorm">The Ice Storm</a></em>, Jim and Elena have found out that their respective wife and husband have been cheating on them. Being the last ones left at a "key party", they have quick and clumsy sex in his car but regret it immediately afterwards. </li><li> The intro of <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/Idiocracy" title="/pmwiki/pmwiki.php/Film/Idiocracy">Idiocracy</a></em> has one. </li><li> This happens twice in <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/K-9" title="/pmwiki/pmwiki.php/Film/K-9">K-9</a></em>. The film opens up showing two people making out heavily in their car, though no nudity is presented. The other scene is when the dog, Jerry Lee, spots a poodle in the other car in front of him. This then leads to Jerry Lee and the poodle presumably 'doing it' in the car, though it's not shown, it is implied from Dooley's words ("What are you doing?!") what they are doing, as well as showing the car shaking. </li><li> In the fourth <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/LakePlacid" title="/pmwiki/pmwiki.php/Film/LakePlacid">Lake Placid</a></em> movie, Brittany and Drew sneak back to the parked school bus and have sex inside. Later on, while jet-skiing, they position her so that they can make out on the seat while Drew's driving. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/LesValseuses" title="/pmwiki/pmwiki.php/Film/LesValseuses">Les Valseuses</a></em>, the two titular crooks pick up apathetic and terminally bored hairdresser Marie-Ange, who tags along for the ride. She informs them that she is incapable of orgasm, whatever they do to her, either singly or collectively. The guys take this as a challenge. In one scene, Pierrot is less than enchanted at being the third wheel, driving their car around a French city by night whilst his buddy Jean-Claude (played by <a class="twikilink" href="/pmwiki/pmwiki.php/Creator/GerardDepardieu" title="/pmwiki/pmwiki.php/Creator/GerardDepardieu">Gérard Depardieu</a>) makes love to Marie-Ange in the back seat, practically testing out the proposition. She does admit to a certain frisson of interest, but no orgasm. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/TheLivingEnd" title="/pmwiki/pmwiki.php/Film/TheLivingEnd">The Living End</a></em>, a road trip movie about sex and death, features several instances of this, including the traditional "back seat of the car" location. More memorably, in one scene Luke gives Jon a blow job <em>while he drives</em>. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/LordLoveADuck" title="/pmwiki/pmwiki.php/Film/LordLoveADuck">Lord Love a Duck</a></em> - high-schooler Roddy MacDowall takes new friend Tuesday Weld to the local make-out spot - with the express purpose of loudly disrupting the necking couples. </li><li> Subverted and averted in <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/TheLostBoys" title="/pmwiki/pmwiki.php/Film/TheLostBoys">The Lost Boys</a></em>: a disposable couple of characters are in a red-lit car, the man making advances towards the woman (who is amusingly more interested in reading comics) when a bunch of vampires shows up and, well, <a class="twikilink" href="/pmwiki/pmwiki.php/Main/DeathBySex" title="/pmwiki/pmwiki.php/Main/DeathBySex">the obvious happens...</a> </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/Mallrats" title="/pmwiki/pmwiki.php/Film/Mallrats">Mallrats</a></em> in a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/StrangeMindsThinkAlike" title="/pmwiki/pmwiki.php/Main/StrangeMindsThinkAlike">Strange Minds Think Alike</a> series of gags, everyone infers the same thing about Shannon (Ben Affleck). <div class="indent"><strong>Trish:</strong> He tried to screw me somewhere very uncomfortable. <br/><strong>Brodie:</strong> The backseat of a Volkswagen? </div></li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/NoWayOut" title="/pmwiki/pmwiki.php/Film/NoWayOut">No Way Out</a></em>: Kevin Costner's and Sean Young's characters hook up with each other at a diplomatic party in Washington and slip away to have sex in the back seat of a limousine while they're driven around the city by a delighted chauffeur who adjusts his rear-view mirror to watch the proceedings until he's chided by Costner to keep his eyes on the road. </li><li> <em>An Office Romance</em> ends with this: the main characters are last seen in a passionate embrace in a taxi seat (after <a class="twikilink" href="/pmwiki/pmwiki.php/Main/SlapSlapKiss" title="/pmwiki/pmwiki.php/Main/SlapSlapKiss">a good deal of throwing things at each other</a>), and then the titles tell us that nine months later, a son was born. </li><li> Subverted yet played straight in the movie <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/OnceBitten" title="/pmwiki/pmwiki.php/Film/OnceBitten">Once Bitten</a></em>. Mark Kendall (Jim Carrey) tries to get to first base with Robin Pierce (Karen Kopkins) but she doesn't want to make out with Mark, especially in an ice cream van. Frustrated, Mark steps out of his ice cream van only to notice in utter shock that <em><strong>EVERYONE ELSE</strong></em> was getting busy: the fleet of parked cars rocking and swaying from lovers' sowing their wild oats. Poor Mark. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/Parenthood" title="/pmwiki/pmwiki.php/Film/Parenthood">Parenthood</a></em>, Helen tries this on her husband Gil while they are driving. Jump to the next scene: The car is totaled. <ul><li> After which the cop walks up and asks Helen and Gil what happened. Gil's response? "Well, honey, do you want to show him?" </li></ul></li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/Pleasantville" title="/pmwiki/pmwiki.php/Film/Pleasantville">Pleasantville</a></em>: In which the sex act turns much of the town into color. Several at one go later in the movie. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/Priest1994" title="/pmwiki/pmwiki.php/Film/Priest1994">Priest (1994)</a></em>: Greg and his boyfriend-of-sorts Graham get arrested when they are caught by the police in the act. This gets public and pretty scandalous, as Greg is a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/VowOfCelibacy" title="/pmwiki/pmwiki.php/Main/VowOfCelibacy">Catholic priest</a>. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/RevolutionaryRoad" title="/pmwiki/pmwiki.php/Film/RevolutionaryRoad">Revolutionary Road</a></em>, April and Shep have sex in his car. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/RiseBloodHunter" title="/pmwiki/pmwiki.php/Film/RiseBloodHunter">Rise: Blood Hunter</a></em>: Sadie offers a hitchhiker sex in her car, but it's only a ruse for her to feed on him. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/TheRockyHorrorPictureShow" title="/pmwiki/pmwiki.php/Film/TheRockyHorrorPictureShow">The Rocky Horror Picture Show</a></em>, Janet sings about how "heavy petting" only leads to "seat wetting". </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/RuthlessPeople" title="/pmwiki/pmwiki.php/Film/RuthlessPeople">Ruthless People</a></em>, Chief Benton has wild sex with a prostitute at night in his car while Earl Mott is filming both of them in an attempt to prove Sam Stone murdered his wife. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/SaturdayNightFever" title="/pmwiki/pmwiki.php/Film/SaturdayNightFever">Saturday Night Fever</a></em>: <ul><li> One of Tony's friends is taking too long in the backseat with a girl he met at the disco, much to the annoyance of another buddy of theirs and <em>his</em> hookup. The couple in the backseat finishes with Tony and his friends watching. After which the guy asks her, "So, what did you say your name was?" </li><li> Tony has sex with Annette later, but stops when he finds out she's not "fixed" (no pill, no "IOU", no diaphragm). The implication of course is that he wasn't using a condom. At least it averts <a class="twikilink" href="/pmwiki/pmwiki.php/Main/CantGetAwayWithNuthin" title="/pmwiki/pmwiki.php/Main/CantGetAwayWithNuthin">Can't Get Away with Nuthin'</a>. </li><li> Also, Tony tries to have sex with Stephanie in his car, but she doesn't want it and gets away from him. </li><li> And Tony's friends take turns raping Annette in the backseat in another scene. </li></ul></li><li> In the first <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/ScaryMovie" title="/pmwiki/pmwiki.php/Film/ScaryMovie">Scary Movie</a></em>, a girl got run over by her father because her mother was giving him a blowjob. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/ScreamAndScreamAgain" title="/pmwiki/pmwiki.php/Film/ScreamAndScreamAgain">Scream and Scream Again</a></em>, Keith picks up women in nightclubs and then drives to remote commons where they start making out in his sports car before he murders them. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/SeekingAFriendForTheEndOfTheWorld" title="/pmwiki/pmwiki.php/Film/SeekingAFriendForTheEndOfTheWorld">Seeking a Friend for the End of the World</a></em>: Dodge and Penny have sex in their car after leaving a restaurant. </li><li> There's a very... <em><a class="twikilink" href="/pmwiki/pmwiki.php/Main/Squick" title="/pmwiki/pmwiki.php/Main/Squick">different</a></em> take on car sex in the movie <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/SouthlandTales" title="/pmwiki/pmwiki.php/Film/SouthlandTales">Southland Tales</a></em>. <a class="twikilink" href="/pmwiki/pmwiki.php/Main/NSFW" title="/pmwiki/pmwiki.php/Main/NSFW">NSFW</a> <a class="urllink" href="https://www.youtube.com/watch?v=c1qLs1BQjSA">video excerpt.<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a> </li><li> In the opening scene of <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/SplendorInTheGrass" title="/pmwiki/pmwiki.php/Film/SplendorInTheGrass">Splendor in the Grass</a></em>, the protagonists, Bud and Deanie are making out in Bud's car (Bud would like to do more, but Deanie doesn't let him). This was probably a privilege of the rich in 1928 when the film is set. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/Starkweather" title="/pmwiki/pmwiki.php/Film/Starkweather">Starkweather</a></em>: At the drive-in, Charlie and Caril Ann are having a deep and meaningful conversation in the front seat of the car while Bob and Barbara are engaging in some very heavy petting in the back seat. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/StudentServices" title="/pmwiki/pmwiki.php/Film/StudentServices">Student Services</a></em>: Laura's second client can't afford a hotel room. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/SuperTroopers" title="/pmwiki/pmwiki.php/Film/SuperTroopers">Super Troopers</a></em>, Foster and Ursula go at it in the backseat of his police cruiser... which doesn't open from the inside. They have to remove the door from its mount to get out afterwards. </li><li> This trope is <a class="twikilink" href="/pmwiki/pmwiki.php/Main/InvokedTrope" title="/pmwiki/pmwiki.php/Main/InvokedTrope">invoked</a> in Scorsese's <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/TaxiDriver" title="/pmwiki/pmwiki.php/Film/TaxiDriver">Taxi Driver</a></em> when the title character talks about his passenger's habits. </li><li> <em><a class="createlink" href="/pmwiki/pmwiki.php/Film/ThenSheFoundMe" title="/pmwiki/pmwiki.php/Film/ThenSheFoundMe">Then She Found Me</a></em>: <ul><li> April's biological mother that gave her up for adoption first says that April's father is Steve McQueen; turns out that really April's mother "fucked" her next-door neighbor in the backseat of his car while at the drive-in (the movie that was playing was <em>Bullitt</em>, a Steve McQueen film). </li><li> April and her <em>ex</em>-husband almost do this but stop. </li></ul></li><li> Believe it or not, this trope applies to <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/Titanic1997" title="/pmwiki/pmwiki.php/Film/Titanic1997">Titanic</a></em>. In 1912, on a ship in the middle of the North Atlantic, on a ship with enough beds for over a thousand passengers, Jack Dawson and Rose Dewitt Bukater wind up having sex in the back of a car which is being transported in the ship's hold. <ul><li> Lampshaded by <a class="twikilink" href="/pmwiki/pmwiki.php/Creator/CleolindaJones" title="/pmwiki/pmwiki.php/Creator/CleolindaJones">Cleolinda Jones</a>: "Aww, Grandma. You too?" </li><li> And there actually was a car in the <em>Titanic</em>'s cargo hold. </li></ul></li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/TragedyGirls" title="/pmwiki/pmwiki.php/Film/TragedyGirls">Tragedy Girls</a></em> begins with what appears to be the standard opening for a slasher film: a blonde girl and her boyfriend making out in the backseat of a car with steamed-up windows at the local make-out spot (in this case, a covered bridge). The girl hears a noise and sends the boy out to investigate. However, when the <a class="twikilink" href="/pmwiki/pmwiki.php/Main/SerialKiller" title="/pmwiki/pmwiki.php/Main/SerialKiller">Serial Killer</a> does show up, the film goes in a completely different direction. </li><li> In the first part of <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/Transformers" title="/pmwiki/pmwiki.php/Film/Transformers">Transformers</a></em>, Bumblebee seems to be trying to encourage Sam and Mikaela to do this. The situation is made weirder by the fact that Bumblebee <em>is</em> the car. The ending scene shows Sam and Mikaela making out on top of Bumblebee's hood while the other Autobots calmly watch in vehicle mode, quite possibly making the term "Auto-erotica" a little too literal. </li><li> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ZigZagged" title="/pmwiki/pmwiki.php/Main/ZigZagged">Zig-Zagged</a> in <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/TrueLies" title="/pmwiki/pmwiki.php/Film/TrueLies">True Lies</a></em>. When Simon and Helen are driving in his Corvette, Simon acts like they're being followed and pushes her head into his lap, telling her to "<a class="twikilink" href="/pmwiki/pmwiki.php/Main/DoubleEntendre" title="/pmwiki/pmwiki.php/Main/DoubleEntendre">keep your head down</a> until we're out of the city." While Helen doesn't actually take the bait, it looks awfully suspicious to Harry's surveillance team. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/VampiresVsZombies" title="/pmwiki/pmwiki.php/Film/VampiresVsZombies">Vampires vs. Zombies</a></em>, Carmilla and Tessa have lesbian sex in the Jeep on the side of the road. </li><li> Parodied and subverted in <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/WhipIt" title="/pmwiki/pmwiki.php/Film/WhipIt">Whip It</a></em> when the protagonist comes home to find her father's van rocking outside the house, and hear him shouting "YES! YES!". It turns out that he's watching a football game on a TV in the van because her mother won't let him watch in the house because he gets too excited. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/YoungLadyChatterleyII" title="/pmwiki/pmwiki.php/Film/YoungLadyChatterleyII">Young Lady Chatterley II</a></em>, Cynthia and the Count have sex in the back of her limousine as it is being driven back to her estate. Charles the chauffeur notices; Professor Bohart doesn't. </li></ul></div> <p></p><div class="folderlabel" onclick="togglefolder('folder6');">    Jokes </div><div class="folder" id="folder6" isfolder="true" style="display:block;"> <ul><li> There is a joke about a driver picking up a hitchhiking girl with a jerrycan. Turns out it's filled with fuel, which, according to her, tends to run out in all male-driven cars as soon as they get near a forest. </li><li> Another joke is about a man stating to his female companion that the break is serious, and they will have to stay there for the night, to which the girl replies "let's just stay here for the night quickly, and drive on". </li><li> A guy accepts the invitation of another man to climb into the back seat of his car where there's a woman good to go. While they are having sex a cop shines his flashlight into the back seat: <div class="indent"><strong>Man:</strong> "It's all right officer. She's my wife." </div><div class="indent"><strong>Cop:</strong> "I'm sorry. I didn't know." </div><div class="indent"><strong>Man:</strong> "Neither did I before you turned on the light." </div></li><li> Just before midnight, a police officer sees a car parked in the dark in the forest. He walks up with his flashlight and inside is a young couple. <div class="indent"> <strong>Cop:</strong> "So what are you doing, sir?" </div><div class="indent"> <strong>Man:</strong> "Oh, I'm just reading this book, officer." </div><div class="indent"> <strong>Cop:</strong> "And what are you doing, miss?" </div><div class="indent"> <strong>Woman:</strong> "I was also just reading, officer." </div><div class="indent"> <strong>Cop:</strong> "Son...how old is she?" </div><div class="indent"> <strong>Man:</strong> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/TheJailBaitWait" title="/pmwiki/pmwiki.php/Main/TheJailBaitWait">"Eighteen in twelve minutes, officer."</a> </div></li></ul></div> <p></p><div class="folderlabel" onclick="togglefolder('folder7');">    Literature </div><div class="folder" id="folder7" isfolder="true" style="display:block;"> <ul><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Literature/TheAliceNetwork" title="/pmwiki/pmwiki.php/Literature/TheAliceNetwork">The Alice Network</a></em>: Charlie often "parks" with boys. She has many one-night-stands that way and becomes known as a cheap date. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Literature/AmericanGods" title="/pmwiki/pmwiki.php/Literature/AmericanGods">American Gods</a></em>, Shadow's wife does this with his next-door neighbor while he's in prison. Except that it was the whilst driving variant, and they both ended up dead in the resulting crash. Shadow takes this revelation considerably better than his neighbour's widow. </li><li> In <a class="twikilink" href="/pmwiki/pmwiki.php/Creator/StephenKing" title="/pmwiki/pmwiki.php/Creator/StephenKing">Stephen King</a>'s <em><a class="twikilink" href="/pmwiki/pmwiki.php/Literature/Thinner" title="/pmwiki/pmwiki.php/Literature/Thinner">Thinner</a></em>, the protagonist's wife gives him a handjob while he's driving. Which starts the plot rolling... (In the film version of, the handjob is changed to a blowjob.) <ul><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Literature/Christine" title="/pmwiki/pmwiki.php/Literature/Christine">Christine</a></em>, the protagonist tries this with his girlfriend in the titular car, but she doesn't want. This does not end well. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Literature/TheTommyknockers" title="/pmwiki/pmwiki.php/Literature/TheTommyknockers">The Tommyknockers</a></em>, when Bobbi's truck explodes, Gardener recalls that they once had sex in it "during some stupid Ryan O'Neal picture". </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Literature/Carrie" title="/pmwiki/pmwiki.php/Literature/Carrie">Carrie</a></em>, Tommy Ross and Sue Snell have sex in his Ford. Carrie's fundamentalist mother often mentions "the evil that goes on in parking lots". </li></ul></li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Literature/TheWeirdness" title="/pmwiki/pmwiki.php/Literature/TheWeirdness">The Weirdness</a></em>, Billy considers signing up for a ZipCar solely for this purpose, as his girlfriend has 11 roommates and his apartment is also tiny, which is a problem considering his "room" doesn't even have a door. Or a fourth wall, for that matter. </li><li> A cheesy horror novel called <em>Ghoul</em> (not Michael Slade's), in which a cop interrupts a lover's-lane backseat tryst by a couple of teenagers. To the small-town cop's dismay, it turns out they're both girls. </li><li> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/CargoShip" title="/pmwiki/pmwiki.php/Main/CargoShip">Hideously</a> played with in <a class="twikilink" href="/pmwiki/pmwiki.php/Creator/ThomasPynchon" title="/pmwiki/pmwiki.php/Creator/ThomasPynchon">Thomas Pynchon</a>'s <em>Vineland</em>. </li><li> In one of the <a class="twikilink" href="/pmwiki/pmwiki.php/Literature/HonorHarrington" title="/pmwiki/pmwiki.php/Literature/HonorHarrington">Honor Harrington</a> novels two bit characters who haven't seen each other in a while reminisce about stealing an admirals hovercar and bringing some prostitutes and booze along </li><li> In <em><a class="createlink" href="/pmwiki/pmwiki.php/Literature/StoryOfAGirl" title="/pmwiki/pmwiki.php/Literature/StoryOfAGirl">Story Of A Girl</a></em> by Sara Zarr, Deanna is found by her father having sex in the backseat...at 13, with her 17-year-old boyfriend, Tommy. This wrecked her life, branded her the school slut, and is the opening of the book. </li><li> Cat, the <a class="twikilink" href="/pmwiki/pmwiki.php/Literature/NightHuntress" title="/pmwiki/pmwiki.php/Literature/NightHuntress">Night Huntress</a>, picks up vampires in bars, drives them to a secluded rural area and just when the vamps think they're about to have <a class="twikilink" href="/pmwiki/pmwiki.php/Main/BloodLust" title="/pmwiki/pmwiki.php/Main/BloodLust">dinner</a> and dessert, she kills them. One of Cat's would-be victims turns out to be a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/FriendlyNeighborhoodVampire" title="/pmwiki/pmwiki.php/Main/FriendlyNeighborhoodVampire">Friendly Neighborhood Vampire</a>, and they eventually start dating. They drive to the same location and playfully enact the same conversation as before, only this time with a happy ending. <div class="indent">"Not much room in here. Want to go outside so you can stretch out?" </div><div class="indent">"Oh no. Right here. <em>Love</em> to do it in a truck." </div></li><li> J.G. Ballard's <em><a class="twikilink" href="/pmwiki/pmwiki.php/Literature/Crash" title="/pmwiki/pmwiki.php/Literature/Crash">Crash</a></em> is about a subculture of people with a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/Fetish" title="/pmwiki/pmwiki.php/Main/Fetish">Fetish</a> for car crashes that deliberately crash cars and <a class="twikilink" href="/pmwiki/pmwiki.php/Main/FanDisservice" title="/pmwiki/pmwiki.php/Main/FanDisservice">have sex in the wrecks</a>. Adapted into a rather unpleasant movie by <a class="twikilink" href="/pmwiki/pmwiki.php/Creator/DavidCronenberg" title="/pmwiki/pmwiki.php/Creator/DavidCronenberg">David Cronenberg</a>. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Literature/HowToSurviveAHorrorMovie" title="/pmwiki/pmwiki.php/Literature/HowToSurviveAHorrorMovie">How to Survive a Horror Movie</a></em> lists car sex as one of <a class="twikilink" href="/pmwiki/pmwiki.php/Main/TheScourgeOfGod" title="/pmwiki/pmwiki.php/Main/TheScourgeOfGod">the seven deadly sins</a> that will get you killed in a horror movie. </li><li> In the horror novel <em><a class="twikilink" href="/pmwiki/pmwiki.php/Literature/TheDollmaker" title="/pmwiki/pmwiki.php/Literature/TheDollmaker">The Dollmaker</a></em> Stephen and Jessica consummate their relationship in her car. Of course, <span class="spoiler" title="you can set spoilers visible by default on your profile"> the fallout is on her brother, who is murdered (with just cause) by the dolls.</span> </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Literature/Bloodlines" title="/pmwiki/pmwiki.php/Literature/Bloodlines">Bloodlines</a></em> Sydney loves cars so much that Adrian suggests they have sex in his car as a special birthday treat for her, even though they have access to his apartment. <span class="spoiler" title="you can set spoilers visible by default on your profile"> And it ultimately leads to disaster after Sydney loses Adrian's phone (containing text messages referencing their relationship) in the car, where it is found by her sister.</span> </li><li> The back of a panel van is the preferred location for teen sex in <em><a class="twikilink" href="/pmwiki/pmwiki.php/Literature/PubertyBlues" title="/pmwiki/pmwiki.php/Literature/PubertyBlues">Puberty Blues</a></em>. This carries through to the series as well. </li><li> Blaze's sexual experience in <em><a class="twikilink" href="/pmwiki/pmwiki.php/Literature/BlazeOrLoveInTheTimeOfSupervillains" title="/pmwiki/pmwiki.php/Literature/BlazeOrLoveInTheTimeOfSupervillains">Blaze (or Love in the Time of Supervillains)</a></em> happens in the back of the minivan she drives her little brother around in. The only real consequence is him finding her bra in the back the next day and giving her a really funny look. </li><li> More than one couple does this in <em><a class="twikilink" href="/pmwiki/pmwiki.php/Literature/AddictedSeries" title="/pmwiki/pmwiki.php/Literature/AddictedSeries">Addicted</a></em>. </li><li> In a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/DownplayedTrope" title="/pmwiki/pmwiki.php/Main/DownplayedTrope">mild variation</a>, Don and Denise in <em><a class="twikilink" href="/pmwiki/pmwiki.php/Literature/WeCantRewind" title="/pmwiki/pmwiki.php/Literature/WeCantRewind">We Can't Rewind</a></em> don't actually <em>do it</em> in his car, but they do have a rather steamy make-out session there, and she gets him to <a class="twikilink" href="/pmwiki/pmwiki.php/Main/LetsWaitAWhile" title="/pmwiki/pmwiki.php/Main/LetsWaitAWhile">propose marriage to her so they can do these things properly</a>. </li><li> In both <em><a class="twikilink" href="/pmwiki/pmwiki.php/Literature/WitchesAbroad" title="/pmwiki/pmwiki.php/Literature/WitchesAbroad">Witches Abroad</a></em> and <em><a class="twikilink" href="/pmwiki/pmwiki.php/Literature/LordsAndLadies" title="/pmwiki/pmwiki.php/Literature/LordsAndLadies">Lords and Ladies</a></em>, reference is made to Count Giamo Casanunda, the Disc's second-greatest lover, demonstrating his skill in the back of a sedan-chair. The second book also has this exchange, when he's a passenger on <a class="twikilink" href="/pmwiki/pmwiki.php/Main/DirtyOldWoman" title="/pmwiki/pmwiki.php/Main/DirtyOldWoman">Nanny Ogg</a>'s <a class="twikilink" href="/pmwiki/pmwiki.php/Main/FlyingBroomstick" title="/pmwiki/pmwiki.php/Main/FlyingBroomstick">Flying Broomstick</a>: <div class="indent"><strong>Casanunda</strong>: Tell me, has anyone ever tried to... </div><div class="indent"><strong>Nanny</strong>: No. You'd fall off. </div><div class="indent"><strong>Casanunda</strong>: You don't know what I was going to ask. </div><div class="indent"><strong>Nanny</strong>: Bet you half a dollar? </div></li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Literature/NakedCameTheStranger" title="/pmwiki/pmwiki.php/Literature/NakedCameTheStranger">Naked Came the Stranger</a></em>: Gillian gives Marvin Goodman a blowjob as they drive towards a toll booth, causing a traffic jam behind them and a minor car accident. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Literature/TheWorldAccordingToGarp" title="/pmwiki/pmwiki.php/Literature/TheWorldAccordingToGarp">The World According to Garp</a></em>, Garp's wife gives her lover a blowjob in a parked car. This ends disastrously when <span class="spoiler" title="you can set spoilers visible by default on your profile">Garp discovers the couple, becomes enraged and rear-ends their car with his, causing Garp's wife to bite off her lover's penis</span>. </li></ul></div> <p></p><div class="folderlabel" onclick="togglefolder('folder8');">    Live-Action TV </div><div class="folder" id="folder8" isfolder="true" style="display:block;"> <ul><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/TheBoys2019" title="/pmwiki/pmwiki.php/Series/TheBoys2019">The Boys (2019)</a></em>: In "<a class="twikilink" href="/pmwiki/pmwiki.php/Recap/TheBoysS0204NothingLikeItInTheWorld" title="/pmwiki/pmwiki.php/Recap/TheBoysS0204NothingLikeItInTheWorld">NothingLikeItInTheWorld</a>" Butcher passionately has sex with his wife Rebecca in her car after years of being apart. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/BrothersAndSisters" title="/pmwiki/pmwiki.php/Series/BrothersAndSisters">Brothers &amp; Sisters</a></em>, Nora states she lost her virginity in the back seat of a car. As she starts to go into how the height difference between her and her partner was dealt with, <a class="twikilink" href="/pmwiki/pmwiki.php/Main/TooMuchInformation" title="/pmwiki/pmwiki.php/Main/TooMuchInformation">the rest of the family leave in disgust</a>. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/BuffyTheVampireSlayer" title="/pmwiki/pmwiki.php/Series/BuffyTheVampireSlayer">Buffy the Vampire Slayer</a></em>: <ul><li> In Season 2's "<a class="twikilink" href="/pmwiki/pmwiki.php/Recap/BuffyTheVampireSlayerS2E15Phases" title="/pmwiki/pmwiki.php/Recap/BuffyTheVampireSlayerS2E15Phases">Phases</a>", Cordelia has this in mind, but Xander is too busy griping about <a class="twikilink" href="/pmwiki/pmwiki.php/Main/GreenEyedMonster" title="/pmwiki/pmwiki.php/Main/GreenEyedMonster">Willow taking up with Oz</a>. </li></ul><div class="indent"><strong>Cordelia:</strong> Look around. We're in my daddy's car, it's just the two of us, there is a beautiful, big full moon outside tonight. It doesn't get more romantic than this. <a class="twikilink" href="/pmwiki/pmwiki.php/Main/BigShutUp" title="/pmwiki/pmwiki.php/Main/BigShutUp">So shut up!</a> </div><ul><li> In "<a class="twikilink" href="/pmwiki/pmwiki.php/Recap/BuffyTheVampireSlayerS2E12BadEggs" title="/pmwiki/pmwiki.php/Recap/BuffyTheVampireSlayerS2E12BadEggs">Bad Eggs</a>" Cordelia says that "her friend" was doing this, but that in the midst of all the excitement, the gear shift was jerked out of "Park" and <a class="twikilink" href="/pmwiki/pmwiki.php/Main/DidTheEarthMoveForYouToo" title="/pmwiki/pmwiki.php/Main/DidTheEarthMoveForYouToo">well..</a> car <br/>Oh baby, slow down, you're goin' way too far...'' </li><li> In "<a class="twikilink" href="/pmwiki/pmwiki.php/Recap/BuffyTheVampireSlayerS4E9SomethingBlue" title="/pmwiki/pmwiki.php/Recap/BuffyTheVampireSlayerS4E9SomethingBlue">Something Blue</a>", Riley hints that he might enjoy this too. </li></ul><div class="indent"><strong>Buffy:</strong> Cars and Buffy are, like...<a class="twikilink" href="/pmwiki/pmwiki.php/Main/BuffySpeak" title="/pmwiki/pmwiki.php/Main/BuffySpeak">un-mixy things</a>. </div><div class="indent"><strong>Riley:</strong> It's just because you haven't had a good experience yet. You can have the best time in a car. It's not about getting somewhere. You have to take your time. Forget about everything. Just...relax. Let it wash over you. The air...motion... Just, let it roll. </div><div class="indent"><strong>Buffy:</strong> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/JustLikeMakingLove" title="/pmwiki/pmwiki.php/Main/JustLikeMakingLove">We are talking about driving, right?</a> </div></li><li> On <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Cheers" title="/pmwiki/pmwiki.php/Series/Cheers">Cheers</a></em>, Rebecca Howe decides to tease Sam by making up a sordid story of her youth that supposedly earned her the nickname "Backseat Becky". <ul><li> Also... </li></ul><div class="indent"><strong>Henri:</strong> So, what's the strangest place you've made love, Sam? </div><div class="indent"><strong>Sam:</strong> Oh, I'd say the backseat of a car. </div><div class="indent"><strong>Henri:</strong> Well, that's not very unusual. </div><div class="indent"><strong>Sam:</strong> No, it was still on the assembly line. </div></li><li> Blair on <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/GossipGirl" title="/pmwiki/pmwiki.php/Series/GossipGirl">Gossip Girl</a></em> loses her virginity in a limo, of all places. Since then, both she and the person she was with seem inordinately fond of the limo. </li><li> On <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/HomeImprovement" title="/pmwiki/pmwiki.php/Series/HomeImprovement">Home Improvement</a></em> it's mentioned that Tim and Jill partook in this when they were younger: <div class="indent"><strong>Tim:</strong> I remember the song that we heard when we were in the back of my Corvair steaming the windows. </div><div class="indent"><strong><a class="twikilink" href="/pmwiki/pmwiki.php/Main/DeadpanSnarker" title="/pmwiki/pmwiki.php/Main/DeadpanSnarker">Jill</a>:</strong> So do I: <a class="twikilink" href="/pmwiki/pmwiki.php/Main/SpeedSex" title="/pmwiki/pmwiki.php/Main/SpeedSex">The Minute Waltz</a>. </div></li><li> In the <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/NCIS" title="/pmwiki/pmwiki.php/Series/NCIS">NCIS</a></em> episode "Trojan Horse", this conversation ensues: <div class="indent"><strong>Abby</strong>: My first time was in a cab. </div><div class="indent"><strong>Ziva</strong>: First time for what? </div><div class="indent"><strong>McGee</strong>: Front seat or back? </div><div class="indent"><strong>Abby</strong>: Back. Well, both, kinda. </div><div class="indent"><strong>Ziva</strong>: Oh! My first time was in a weapons carrier. </div><div class="indent"><strong>Abby and McGee</strong>: Of course it was. </div></li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/TheFosters" title="/pmwiki/pmwiki.php/Series/TheFosters">The Fosters</a></em>: At the end of episode 5, after trying to find time for themselves all episode, Stef and Lena get it on in the back seat of the family car after the kids go inside (putting some music on presumably to give themselves some cover). </li><li> In the <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/RedDwarf" title="/pmwiki/pmwiki.php/Series/RedDwarf">Red Dwarf</a></em> episode "Gunmen of the Apocalypse", Lister is doing this with <a class="twikilink" href="/pmwiki/pmwiki.php/Main/KissMeImVirtual" title="/pmwiki/pmwiki.php/Main/KissMeImVirtual">a virtual</a> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/FilmNoir" title="/pmwiki/pmwiki.php/Main/FilmNoir">Film Noir</a> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/TheVamp" title="/pmwiki/pmwiki.php/Main/TheVamp">vamp</a> when Kryten enters the sim and interrupts. However, he has to enter the sim as an enemy of said lady, who then tries to hit on him. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/TheShield" title="/pmwiki/pmwiki.php/Series/TheShield">The Shield</a></em>, Vic and Danny go at it in the back of Vic's Charger. Danny's son, Lee, was a direct result of that encounter. </li><li> Pretty much a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/RunningGag" title="/pmwiki/pmwiki.php/Main/RunningGag">Running Gag</a> in <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/That70sShow" title="/pmwiki/pmwiki.php/Series/That70sShow">That '70s Show</a></em>. <ul><li> In the episode "Parents Find Out", Donna and Eric were having sex (or attempting to) in a car, in a public place, and were caught by the police. <a class="twikilink" href="/pmwiki/pmwiki.php/Main/HilarityEnsues" title="/pmwiki/pmwiki.php/Main/HilarityEnsues">The cop raps on the window...</a> <div class="indent"><strong>Donna:</strong> Eric—we're <em>completely</em> naked. </div><div class="indent"><strong>Eric:</strong> Don't worry, I have a plan. </div><div class="indent"><strong>Eric:</strong> <em>[Turns to the cop]</em> </div><div class="indent"><strong>Eric:</strong> GO AWAY. </div><div class="indent"><strong>Donna:</strong> <em>That's</em> your plan? </div><div class="indent"><strong>Eric:</strong> Well, yeah. I mean, we're <em>completely</em> naked. I think he'll just go away. </div><div class="indent"><strong>Cop:</strong> <em>[Raps on the window again, shakes his head]</em> </div><div class="indent"><strong>Eric:</strong> Crap, have you seen my pants? </div></li><li> Kelso had sex with Jackie and Laurie in his van (not at the same time). <div class="indent">"If that van's a-rockin', we're in there <a class="twikilink" href="/pmwiki/pmwiki.php/Main/SubvertedRhymeEveryOccasion" title="/pmwiki/pmwiki.php/Main/SubvertedRhymeEveryOccasion">doin' it!</a>" </div><ul><li> Kelso and Jackie seem to be fond of Eric's Vista Cruiser - they've made out twice in the back, and also had sex in there at one point. </li><li> The Vista Cruiser's backseat also had a visit from Donna's parents Midge and Bob. Bad thing, Midge forgot her panties there... <a class="twikilink" href="/pmwiki/pmwiki.php/Main/MistakenForCheating" title="/pmwiki/pmwiki.php/Main/MistakenForCheating">and Donna thought Eric was two-timing her.</a> (And then <a class="twikilink" href="/pmwiki/pmwiki.php/Funny/That70sShow" title="/pmwiki/pmwiki.php/Funny/That70sShow">his friends believe he banged Midge</a>...) </li><li> Bob &amp; Midge also have sex in the back of their car. In a restaurant parking lot. When they're in their time of bitterness towards each other. And don't consider themselves back together after this. </li></ul></li><li> And then there was the time a cop came knocking on a misted-up car window and it turned out to be Red and Kitty. <ul><li> Fez once made out with a girl in the backseat of a car. </li><li> It's implied Fez is going to have sex with a girl in the back of a car sometime in season seven... </li></ul></li></ul></li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/TheUnit" title="/pmwiki/pmwiki.php/Series/TheUnit">The Unit</a></em> has Bob and his wife Kim about to do this (the car is in their closed garage) when the baby monitor goes off. </li><li> The episode "Secrets", for <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/TheWalkingDead" title="/pmwiki/pmwiki.php/Series/TheWalkingDead">The Walking Dead</a></em>, ends with <span class="spoiler" title="you can set spoilers visible by default on your profile">Shane and Andrea</span> getting busy in their car, stopped in the middle of the road.<span class="notelabel" onclick="togglenote('note0z7gv');"><sup>note </sup></span><span class="inlinefolder" id="note0z7gv" isnote="true" onclick="togglenote('note0z7gv');" style="cursor:pointer;font-size:smaller;display:none;">Zombie apocalypses do wonders for cutting down on traffic, once past roads clogged with the dead.</span> </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/TheGoldenGirls" title="/pmwiki/pmwiki.php/Series/TheGoldenGirls">The Golden Girls</a></em> has a variation on this routine. Dorothy and Stan get mistaken twice for teenagers. <ul><li> When Dorothy's son Michael gets thrown out by his wife, who also throws his clothes out of the window. He complains about how embarrassing it was to have to search for his underwear in the back of a convertible, to which <a class="twikilink" href="/pmwiki/pmwiki.php/Main/LovableSexManiac" title="/pmwiki/pmwiki.php/Main/LovableSexManiac">Blanche</a> replies "tell me about it." </li><li> A couple of the <a class="twikilink" href="/pmwiki/pmwiki.php/Main/MultipleChoicePast" title="/pmwiki/pmwiki.php/Main/MultipleChoicePast">multiple ways</a> Dorothy describes losing her virginity to Stan involves sex in his Studebaker. One involves <a class="twikilink" href="/pmwiki/pmwiki.php/Main/SlippingAMickey" title="/pmwiki/pmwiki.php/Main/SlippingAMickey">Slipping a Mickey</a>. </li></ul><div class="indent"><strong>Dorothy</strong>: When I came to, there was Stan, carving a notch in his dashboard. </div></li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Luck" title="/pmwiki/pmwiki.php/Series/Luck">Luck</a></em> episode 7 features a notably intense front-seat variant featuring Jerry and hot card dealer Naomi. </li><li> After killing the KGB officer who once raped her and dumping his body, Elizabeth and Philip from <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/TheAmericans" title="/pmwiki/pmwiki.php/Series/TheAmericans">The Americans</a></em> make out in the back of their Oldsmobile. The subtext is that it's the first time it's been "real" for them. </li><li> A couple attempting to do this in <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/BoardwalkEmpire" title="/pmwiki/pmwiki.php/Series/BoardwalkEmpire">Boardwalk Empire</a></em> are interrupted by a bloodied dying man arriving on the scene. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Monk" title="/pmwiki/pmwiki.php/Series/Monk">Monk</a></em>: In "Mr. Monk and the Leper," Natalie makes out with Dr. Aaron Polanski, but reacts pretty badly after he reveals that he used to have leprosy. </li><li> <em><a class="createlink" href="/pmwiki/pmwiki.php/Series/AverageJoe" title="/pmwiki/pmwiki.php/Series/AverageJoe">Average Joe</a></em>: Melana Scanlon tells of her makeout session with hunk Jason Peoples in the limo: <dl><dd><div class="indent"><strong>Melana:</strong> We were kissing and like, I looked over and the windows were fogged. I was like, we fogged the windows. </div></dd></dl><ul><li> They were probably engaged in heavy petting and not actual intercourse though. </li></ul></li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Supernatural" title="/pmwiki/pmwiki.php/Series/Supernatural">Supernatural</a></em>: <ul><li> Some special mention has to be made of Dean Winchester, who's had sex in the Impala with a literal angel while Bad Company's "Ready For Love" played on the soundtrack. No halfway measures there. </li><li> Season 9 also brings us a huntress feigning car trouble, getting picked up by a vampire to ostensibly indulge in some van-rocking action, and then she beheads him. </li><li> Season 12 heavily implies that <span class="spoiler" title="you can set spoilers visible by default on your profile">Mary and John</span> did in the deed in the Impala...and may have <span class="spoiler" title="you can set spoilers visible by default on your profile">conceived Dean</span> when they did it. </li></ul></li><li> In the seventh episode of <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/BreakingBad" title="/pmwiki/pmwiki.php/Series/BreakingBad">Breaking Bad</a></em>, Walt and Skyler are at a parent-teacher meeting discussing someone's (read: Walt's) theft of chemistry supplies from the school lab. Walt gets such a rush hearing people talk about his crime that he and Skyler have sex in the parking lot immediately after. <div class="indent"><strong>Skyler:</strong> Where did that come from? And why was it so damn good? </div><div class="indent"><strong>Walt:</strong> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/EvilFeelsGood" title="/pmwiki/pmwiki.php/Main/EvilFeelsGood">Because it was illegal.</a> </div></li><li> In the <em><a class="createlink" href="/pmwiki/pmwiki.php/Series/PassionCove" title="/pmwiki/pmwiki.php/Series/PassionCove">Passion Cove</a></em> episode, "Behind the Scenes", <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ShowWithinAShow" title="/pmwiki/pmwiki.php/Main/ShowWithinAShow">dating game reality show</a> producer Suzanne and her cameraman Ken get freaky in their van. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Seinfeld" title="/pmwiki/pmwiki.php/Series/Seinfeld">Seinfeld</a></em>: Frank and Estelle have sex in the back of a van. Of <em>course</em> George opens it up and finds them... <div class="indent"> If this van's a-rockin', don't come a-knockin'. </div></li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Homeland" title="/pmwiki/pmwiki.php/Series/Homeland">Homeland</a></em>: Carrie and Brody have sex in the back seat of Brody's car. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/OrphanBlack" title="/pmwiki/pmwiki.php/Series/OrphanBlack">Orphan Black</a></em>: Alison and Chad have sex in both the front and back of her minivan. </li><li> Subverted in <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Tyrant" title="/pmwiki/pmwiki.php/Series/Tyrant">Tyrant</a></em> when Jamal forces a woman to perform oral sex on him while he's driving, she <a class="twikilink" href="/pmwiki/pmwiki.php/Main/GroinAttack" title="/pmwiki/pmwiki.php/Main/GroinAttack">bites him</a> and causes a car crash. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Quantico" title="/pmwiki/pmwiki.php/Series/Quantico">Quantico</a></em>: Alex and Ryan have sex in the front seat of his car. The ABC episode actually shows this briefly, though both remain fully clothed from the, uh, steering wheel up. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Lucifer2016" title="/pmwiki/pmwiki.php/Series/Lucifer2016">Lucifer (2016)</a></em>: <a class="twikilink" href="/pmwiki/pmwiki.php/Main/AngelDevilShipping" title="/pmwiki/pmwiki.php/Main/AngelDevilShipping">Maze and Amenadiel</a> have sex for the first time in the back seat of a car, causing the windows to steam up considerably. This trope is combined with <a class="twikilink" href="/pmwiki/pmwiki.php/Main/SomethingElseAlsoRises" title="/pmwiki/pmwiki.php/Main/SomethingElseAlsoRises">Something Else Also Rises</a> when Amenadiel's wings pop out and break one of the windows at a... particular moment. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/NoTomorrow" title="/pmwiki/pmwiki.php/Series/NoTomorrow">No Tomorrow</a></em>: Kareema and Sofia have sex with each other in the back of a car more than once. Evie and Xavier also do it in the car at one point. </li><li> In the <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Sherlock" title="/pmwiki/pmwiki.php/Series/Sherlock">Sherlock</a></em> episode "The Hound of Baskerville", Watson notices a flashing light spelling out a meaningless message in Morse Code on the moor. The next night he tracks down the source of the light... <a class="twikilink" href="/pmwiki/pmwiki.php/Main/RedHerring" title="/pmwiki/pmwiki.php/Main/RedHerring">and finds the local make-out point, with some of the people screwing in their cars accidentally hitting the hi-beam lever at odd intervals</a>. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/AgentsOfShield" title="/pmwiki/pmwiki.php/Series/AgentsOfShield">Agents of S.H.I.E.L.D.</a></em>: When Bobbi and Lance reconcile, they have sex in the back of the team SUV. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/DeadLikeMe" title="/pmwiki/pmwiki.php/Series/DeadLikeMe">Dead Like Me</a></em>, Daisy can't see a car of a make that was around in the 1930s when she was alive without mentioning a sexual act she performed inside one with a <a class="twikilink" href="/pmwiki/pmwiki.php/UsefulNotes/TheGoldenAgeOfHollywood" title="/pmwiki/pmwiki.php/UsefulNotes/TheGoldenAgeOfHollywood">Golden Age of Hollywood</a> actor. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/MidsomerMurders" title="/pmwiki/pmwiki.php/Series/MidsomerMurders">Midsomer Murders</a></em>: In "Country Matters", <a class="twikilink" href="/pmwiki/pmwiki.php/Main/TheVicar" title="/pmwiki/pmwiki.php/Main/TheVicar">The Vicar</a> confesses to meeting her (married) lover in his van in a field. Although she claims they were just talking, the flashback shows <a class="twikilink" href="/pmwiki/pmwiki.php/Main/DontComeAKnockin" title="/pmwiki/pmwiki.php/Main/DontComeAKnockin">the van start rocking almost as soon as they get in</a>. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/StrangerThings" title="/pmwiki/pmwiki.php/Series/StrangerThings">Stranger Things</a></em>: In season 3 episode 4, when Hopper is interrogating mayor Larry Kline in his office about being acquainted with the thug who attacked him at the Hawkins lab, he tries to scare Kline by bringing up Kline's drug usage or the time Hopper's deputies caught Kline in the backseat of his car with his secretary Candace "going at it like a couple of bunnies". </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/TwoAndAHalfMen" title="/pmwiki/pmwiki.php/Series/TwoAndAHalfMen">Two and a Half Men</a></em>, Alan wants to have sex with Melissa in his car, because he's too cheap to rent a hotel room; however, she refuses. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Tyrant" title="/pmwiki/pmwiki.php/Series/Tyrant">Tyrant</a></em>: Jamal forces a woman to perform oral sex on him <em>while driving</em>. After she bites him, Jamal goes off the road, narrowly escaping death (she is killed). </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/Victorious" title="/pmwiki/pmwiki.php/Series/Victorious">Victorious</a></em>: <a class="twikilink" href="/pmwiki/pmwiki.php/Main/GettingCrapPastTheRadar" title="/pmwiki/pmwiki.php/Main/GettingCrapPastTheRadar">It's implied</a> that Beck wanted to do this with Jade. All the audience sees Beck and Jade sitting in a car and Beck asking Jade to do something. Jade refuses, claiming she doesn't feel like it. The two are interrupted before the audience finds out what they're talking about. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/TheWire" title="/pmwiki/pmwiki.php/Series/TheWire">The Wire</a></em>: <ul><li> McNulty and Pearlman have sex partially in the back seat of her car while it's parked in the police headquarters <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ParkingGarage" title="/pmwiki/pmwiki.php/Main/ParkingGarage">Parking Garage</a>. </li><li> In "Moral Midgetry," Marlo Stanfield has sex in his SUV with Devonne, a woman who has been sent by Avon Barksdale to lure him into a trap. After they have sex, Devonne asks to meet Marlo again, but he immediately realizes something's not kosher, and has Chris Partlow scope out the planned meeting place. </li></ul></li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/WorldOnFire" title="/pmwiki/pmwiki.php/Series/WorldOnFire">World on Fire</a></em>: Lois has sex with Harry in a car. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/AFrenchVillage" title="/pmwiki/pmwiki.php/Series/AFrenchVillage">A French Village</a></em>: Raymond and Marie, after breaking off their affair, later have another tryst in his car. </li></ul></div> <p></p><div class="folderlabel" onclick="togglefolder('folder9');">    Music </div><div class="folder" id="folder9" isfolder="true" style="display:block;"> <ul><li> <a class="twikilink" href="/pmwiki/pmwiki.php/Music/Beyonce" title="/pmwiki/pmwiki.php/Music/Beyonce">Beyoncé</a>'s song "Partition" is a very graphic description of having sex in the back of a limousine. </li><li> Five for Fighting's "'65 Mustang" includes the lyrics: <div class="indent"><em>She knows my secrets well <br/>But her backseat won't ever tell <br/>She's no Jezebel</em> </div></li><li> <a class="twikilink" href="/pmwiki/pmwiki.php/Music/MeatLoaf" title="/pmwiki/pmwiki.php/Music/MeatLoaf">Meat Loaf</a>'s song "Paradise by the Dashboard Light" is about a teenage boy trying to get the car rockin'. Unfortunately for him, the girl has conditions. <ul><li> Also used in the third verse of "Objects In The Rearview Mirror (May Appear Closer Than They Are)", when Meat reminisces about how he and his long-lost first love, Julie, had experimented with backseat sex as teenagers. </li><li> Meat Loaf made a cameo as Eddie in <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/TheRockyHorrorPictureShow" title="/pmwiki/pmwiki.php/Film/TheRockyHorrorPictureShow">The Rocky Horror Picture Show</a></em> and sang "What Ever Happened to Saturday Night?/Hot Patootie", which also features some of this. </li></ul></li><li> <a class="twikilink" href="/pmwiki/pmwiki.php/Music/PaulMcCartney" title="/pmwiki/pmwiki.php/Music/PaulMcCartney">Paul McCartney</a>, on the album <em>RAM</em>, actually recorded a song called "The Back Seat of My Car," which directly involves this trope. </li><li> The Hot Chocolate song "Heaven's in the Back Seat of My Cadillac". </li><li> The Bluetones' hilariously unsubtle "Autophilia <a class="twikilink" href="/pmwiki/pmwiki.php/Main/EitherOrTitle" title="/pmwiki/pmwiki.php/Main/EitherOrTitle">(Or, How I Learned To Stop Worrying And Love My Car)</a>", which is so ridiculous that it could easily be mistaken for the lust being directed towards <em>the car itself</em>. She does come in sixteen colours, after all. <ul><li> As opposed to Queen's "I'm In Love With My Car", which is <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ExactlyWhatItSaysOnTheTin" title="/pmwiki/pmwiki.php/Main/ExactlyWhatItSaysOnTheTin">Exactly What It Says on the Tin</a>. </li></ul></li><li> <a class="twikilink" href="/pmwiki/pmwiki.php/Music/BobSeger" title="/pmwiki/pmwiki.php/Music/BobSeger">Bob Seger</a>'s "Night Moves". ("Out in the back seat of my '60 Chevy...") </li><li> Semi-averted in <a class="twikilink" href="/pmwiki/pmwiki.php/Music/BigStar" title="/pmwiki/pmwiki.php/Music/BigStar">Big Star</a>'s "Back of a Car", as the singer winds up explaining that he/she just isn't ready yet: <div class="indent"><em>Why don't you take me home <br/>It's gone too far inside this car <br/>I know I'll feel a whole lot more <br/><a class="twikilink" href="/pmwiki/pmwiki.php/Main/ADateWithRosiePalms" title="/pmwiki/pmwiki.php/Main/ADateWithRosiePalms">When I get alone</a></em> </div></li><li> "Making Love in a Subaru" by Damaskas points out the difficulties of attempting this in a compact car. </li><li> <a class="twikilink" href="/pmwiki/pmwiki.php/Music/HarryChapin" title="/pmwiki/pmwiki.php/Music/HarryChapin">Harry Chapin</a>: <ul><li> In "Taxi", the singer mentions that he and Sue "learned about love in the back of a Dodge". </li><li> In "Northwest 222", his SO would pick him up from the airport in the van and they'd "find a place for parking when the loving would not wait". </li></ul></li><li> <a class="twikilink" href="/pmwiki/pmwiki.php/Music/DeathCabForCutie" title="/pmwiki/pmwiki.php/Music/DeathCabForCutie">Death Cab for Cutie</a>'s "We Looked Like Giants," remembering how the speaker and his old girlfriend were "fumbling to make contact" in his "gray subcompact." </li><li> <a class="twikilink" href="/pmwiki/pmwiki.php/Music/BillyJoel" title="/pmwiki/pmwiki.php/Music/BillyJoel">Billy Joel</a>'s "Keeping the Faith" mentions how he'd thought he was the Duke of Earl when he and a girl "made it" in a Chevrolet. </li><li> Vanessa Carlton's "<a class="twikilink" href="/pmwiki/pmwiki.php/Main/ComingOfAgeStory" title="/pmwiki/pmwiki.php/Main/ComingOfAgeStory">White Houses</a>" mentions this. <div class="indent"><em>Sneakin' to his car's cracked leather seat <br/>The smell of gasoline in the summer heat...</em> </div></li><li> Gwen Stefani's <a class="urllink" href="https://www.youtube.com/watch?v=6r9dAKHl-IQ">Crash<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a> is a not-so-subtle ode to this. <ul><li> Ditto "Bubble Pop Electric". <em>Take it to the backseat, run it like a track meet~</em> </li></ul></li><li> LL Cool J's <a class="urllink" href="https://www.youtube.com/watch?v=mYt5ouu4088-IQ">Back Seat<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a> pretty much describes this trope to the fullest extent. </li><li> "In the Car" by <a class="twikilink" href="/pmwiki/pmwiki.php/Music/BarenakedLadies" title="/pmwiki/pmwiki.php/Music/BarenakedLadies">Barenaked Ladies</a> is about this. </li><li> "Sleeping In My Car" by <a class="twikilink" href="/pmwiki/pmwiki.php/Music/Roxette" title="/pmwiki/pmwiki.php/Music/Roxette">Roxette</a>. </li><li> Elastica has "Car Song." Not just <em>inside</em> cars, in this case. <div class="indent"><em>Every shining bonnet <br/>Makes me think of my back on it.</em> </div></li><li> <a class="twikilink" href="/pmwiki/pmwiki.php/Music/TheSmiths" title="/pmwiki/pmwiki.php/Music/TheSmiths">The Smiths</a> have "You've Got Everything Now." </li><li> <a class="twikilink" href="/pmwiki/pmwiki.php/Music/OutKast" title="/pmwiki/pmwiki.php/Music/OutKast">OutKast</a>'s "Hey Ya": <div class="indent"><em>I don't want to meet your daddy <br/>I just want you in my Caddy <br/>I don't want to meet your momma <br/>I just want to make you come-a</em> </div></li><li> "<a class="urllink" href="https://www.youtube.com/watch?v=lMJgw8lK01g">Hey Bobby<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a>" by K.T. Oslin <ul><li> Also "Cornell Crawford": <div class="indent"><em>Cornell Crawford <br/>He's the one who turns me on <br/>He's gonna pick me up in his pick-up truck <br/>He's gonna take me down the road to have a little fun <br/>He's got a pack of Camels <br/>He's got that quart of whiskey <br/>And he's got it wrapped up nice in a brown paper bag <br/>Oh, we're gonna stop <br/>We're gonna park <br/>We're gonna get down to it in stark</em> </div></li></ul></li><li> Sammy Johns took the '70s van culture and made an ode to this trope with his "Chevy Van": <div class="indent"> <em>I gave a girl a ride in my wagon, she crawled in and took control. <br/>She was tired 'cause her mind was draggin', I said get some sleep and dream of rock and roll. <br/>Just like a picture she was layin' there, moonlight dancin' off her hair. <br/>She woke up and took me by the hand, we made love in my Chevy van and that's alright with me</em> </div></li><li> <a class="twikilink" href="/pmwiki/pmwiki.php/Music/Kesha" title="/pmwiki/pmwiki.php/Music/Kesha">Kesha</a> discusses the possibility of this in "Blah Blah Blah": <div class="indent"><em>Think you'll be getting this? Nah, nah, nah <br/>Not in the back of my car ah ah <br/>If you keep talking that blah, blah, blah</em> </div><ul><li> "Gold Trans Am" is an entire song dedicated to her trying to get a man into her "golden cockpit" until he's seeing stars and stripes. </li></ul></li><li> Marina and the Diamonds reference it in "The Outsider", in the context of the rest of the song, could be viewed as a little creepy... <div class="indent"> <em>Don't get on my bad side <br/>I can work a gun <br/>Hop into the backseat baby <br/>I'll show you some fun</em> </div></li><li> Lou Christie's "Rhapsody in the Rain" was banned upon release because of this trope: two teens had sex in a car on their first date, and the girl dumped the boy, who can only think of her now when he hears rain on the car. </li><li> The <a class="twikilink" href="/pmwiki/pmwiki.php/Music/Nickelback" title="/pmwiki/pmwiki.php/Music/Nickelback">Nickelback</a> song "Animals" is about this, ending with the singer and his girlfriend being <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ParentsWalkInAtTheWorstTime" title="/pmwiki/pmwiki.php/Main/ParentsWalkInAtTheWorstTime">interrupted by the girlfriend's father</a>. <a class="twikilink" href="/pmwiki/pmwiki.php/Main/OhCrap" title="/pmwiki/pmwiki.php/Main/OhCrap">Oh, Crap!</a> </li><li> "Hey Pretty (Drive-By 2001 Mix)" by Poe. </li><li> <a class="twikilink" href="/pmwiki/pmwiki.php/Music/Warrant" title="/pmwiki/pmwiki.php/Music/Warrant">Warrant</a>'s "Cherry Pie" mentions this: <div class="indent"> <em>Swingin' to the bass <br/>In the back of my car! <br/>Ain't got money! <br/>Ain't got no gas! <br/>But we'll get where <br/>We're goin' if we <br/>Swing real fast!</em> </div></li><li> <a class="twikilink" href="/pmwiki/pmwiki.php/Music/BruceSpringsteen" title="/pmwiki/pmwiki.php/Music/BruceSpringsteen">Bruce Springsteen</a> sang a fair bit about cars and girls in his <em>Born to Run</em> period, and the title track of that album raises the trope to the level of a fetish: <div class="indent"><em>Wendy let me in, I want to be your friend <br/>I want to guard your dreams and visions <br/>Just wrap your legs around these velvet rims <br/>And strap your hands across my engines...</em> </div><ul><li> Then Prefab Sprout averted the Springsteen version of the trope, very explicitly, in "Cars and Girls": </li></ul><div class="indent"><em>Brucie dreams life's a highway too many roads bypass my way <br/>Or they never begin. Innocence coming to grief <br/>At the hands of life - Stinkin' car thief, that's my concept of sin <br/>Does heaven wait all heavenly over the next horizon ? <br/>But look at us now, quit driving, some things hurt more much more than cars and girls. <br/>Just look at us now, start counting, what adds up the way it did when we were young? <br/>Look at us now, quit driving, some things hurt much more than cars and girls...</em> </div></li><li> <a class="twikilink" href="/pmwiki/pmwiki.php/Music/BonJovi" title="/pmwiki/pmwiki.php/Music/BonJovi">Bon Jovi</a>'s "Never Say Goodbye" <em>and</em> "Wild In The Streets" (both singles/"turntable hits" from <em>Slippery When Wet</em>) reference this. </li><li> Mentioned in the song "Ain't Goin' Down" by <a class="twikilink" href="/pmwiki/pmwiki.php/Music/GarthBrooks" title="/pmwiki/pmwiki.php/Music/GarthBrooks">Garth Brooks</a>. <div class="indent"> "One-o'-clock, that truck is rockin'" </div></li><li> Parodied in a video for <a class="twikilink" href="/pmwiki/pmwiki.php/Music/RunDMC" title="/pmwiki/pmwiki.php/Music/RunDMC">Run–D.M.C.</a>'s "Mary Mary", where the woman in charge of Women Against Rap <a class="twikilink" href="/pmwiki/pmwiki.php/Main/FunWithAcronyms" title="/pmwiki/pmwiki.php/Main/FunWithAcronyms">(W.A.R.)</a> sees a van that is rocking and assumes that sex is going on, but instead she opens it up and sees women inside working out with exercise machines. </li><li> "<a class="urllink" href="https://www.youtube.com/watch?v=GoarnA7qsVc">Sleeping In My Car<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a>" by <a class="twikilink" href="/pmwiki/pmwiki.php/Music/Roxette" title="/pmwiki/pmwiki.php/Music/Roxette">Roxette</a> </li><li> Paul Evans' 1959 hit "<a class="urllink" href="https://www.youtube.com/watch?v=fsa6DY8Gipc">Seven Little Girls Sitting in the Back Seat<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a>" is kind of a G-rated version of this. The narrator/driver keeps trying to capture the attention of the titular girls, to no avail: <div class="indent"><em>Keep your mind on your drivin' <br/>Keep your hands on the wheel <br/>Keep your snoopy eyes on the road ahead <br/>We're havin' fun sittin' in the back seat <br/>Kissin' and a-huggin' with Fred</em> </div></li><li> "<a class="urllink" href="https://www.youtube.com/watch?v=e04pzNwIqU8">Steamy Windows<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a>" by <a class="twikilink" href="/pmwiki/pmwiki.php/Music/TinaTurner" title="/pmwiki/pmwiki.php/Music/TinaTurner">Tina Turner</a>. </li><li> The <em><a class="twikilink" href="/pmwiki/pmwiki.php/Music/BowlingForSoup" title="/pmwiki/pmwiki.php/Music/BowlingForSoup">Bowling for Soup</a></em> song "Two-Seater" is a post-breakup song that references this trope. As part of his revenge against the girl who just dumped him, the singer broke into his ex's car and (among other vandalisms) removed the back seat where they used to make out. </li><li> The early <a class="twikilink" href="/pmwiki/pmwiki.php/Main/Industrial" title="/pmwiki/pmwiki.php/Main/Industrial">industrial</a> track "Warm Leatherette" by The Normal, a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/FilkSong" title="/pmwiki/pmwiki.php/Main/FilkSong">Filk Song</a> of the aforementioned <em>Crash</em>, graphically describes lovemaking in a <a class="twikilink" href="/pmwiki/pmwiki.php/Main/EveryCarIsAPinto" title="/pmwiki/pmwiki.php/Main/EveryCarIsAPinto">burning car wreck</a>. </li><li> The back cover of <a class="twikilink" href="/pmwiki/pmwiki.php/Music/TomWaits" title="/pmwiki/pmwiki.php/Music/TomWaits">Tom Waits</a>' album <em>Blue Valentines</em> shows him making out with his then-girlfriend Rickie Lee Jones against a car. </li><li> <a class="twikilink" href="/pmwiki/pmwiki.php/Music/ZZTop" title="/pmwiki/pmwiki.php/Music/ZZTop">ZZ Top</a>'s <a class="twikilink" href="/pmwiki/pmwiki.php/Music/EliminatorZZTopAlbum" title="/pmwiki/pmwiki.php/Music/EliminatorZZTopAlbum">"Got Me Under Pressure"</a>: <div class="indent">"But she won't let me use my passion <br/> Unless it's in a limousine" </div></li></ul></div> <p></p><div class="folderlabel" onclick="togglefolder('folder10');">    Theatre </div><div class="folder" id="folder10" isfolder="true" style="display:block;"> <ul><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Theatre/JB" title="/pmwiki/pmwiki.php/Theatre/JB">J.B.</a></em>, Nickles described this as one of the things Satan sees through the open eyes of his mask in the course of <a class="twikilink" href="/pmwiki/pmwiki.php/Main/WalkingTheEarth" title="/pmwiki/pmwiki.php/Main/WalkingTheEarth">Walking the Earth</a>: <div class="indent">He sees the parked car by the plane tree. <br/>He sees behind the fusty door, <br/>Beneath the rug, those almost children <br/>Struggling on the awkward seat— <br/>Every impossible delighted dream <br/>She's ever had of loveliness, of wonder, <br/>Spilled with her garters to the filthy floor. <br/>Absurd despair! Ridiculous agony! </div></li></ul></div> <p></p><div class="folderlabel" onclick="togglefolder('folder11');">    Video Games </div><div class="folder" id="folder11" isfolder="true" style="display:block;"> <ul><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/VideoGame/TheSims" title="/pmwiki/pmwiki.php/VideoGame/TheSims">The Sims</a> 2: Nightlife</em> expansion pack adds this option. </li><li> The <em><a class="twikilink" href="/pmwiki/pmwiki.php/VideoGame/GrandTheftAuto" title="/pmwiki/pmwiki.php/VideoGame/GrandTheftAuto">Grand Theft Auto</a></em> series of games allows you to hire prostitutes in your car. The fourth game actually lets you swivel the camera around and watch. <ul><li> What is there to watch? Every time you hire a prostitute, it just shows the two of you in a car while the woman moans. <ul><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/VideoGame/GrandTheftAutoIV" title="/pmwiki/pmwiki.php/VideoGame/GrandTheftAutoIV">Grand Theft Auto IV</a></em>, the prostitutes give you three price options. The cheapest is a hand-job, mid-price is a blow-job, and the highest priced service is sex. All three have accompanying animations for both characters, and fairly realistic at that - even though both characters remain fully clothed. In case you didn't spot the irony, it's basically every feature in the <a class="twikilink" href="/pmwiki/pmwiki.php/Main/HotCoffeeMinigame" title="/pmwiki/pmwiki.php/Main/HotCoffeeMinigame">Hot Coffee</a> content, minus the interaction. I don't think it's difficult to see exactly what Rockstar learned from that scandal. </li></ul></li></ul></li><li> Occurs in <a class="twikilink" href="/pmwiki/pmwiki.php/Main/HospitalHottie" title="/pmwiki/pmwiki.php/Main/HospitalHottie">Kaori</a>'s good ending in <em><a class="twikilink" href="/pmwiki/pmwiki.php/VisualNovel/CrescendoEienDatoOmotteItaAnoKoro" title="/pmwiki/pmwiki.php/VisualNovel/CrescendoEienDatoOmotteItaAnoKoro">Crescendo</a></em> <span class="spoiler" title="you can set spoilers visible by default on your profile"> after you-as-Ryo stop her from going through an <em>omiai</em> or arranged date.</span> </li><li> H-Game (Obviously) <em><a class="createlink" href="/pmwiki/pmwiki.php/Main/MoeroDownhillNight" title="/pmwiki/pmwiki.php/Main/MoeroDownhillNight">Moero Downhill Night</a></em> series have some of these. Granted, the games are about auto-racing anyway. </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/VideoGame/SaintsRow2" title="/pmwiki/pmwiki.php/VideoGame/SaintsRow2">Saints Row 2</a></em>'s "FUZZ" activity <span class="notelabel" onclick="togglenote('note1ypo1');"><sup>note </sup></span><span class="inlinefolder" id="note1ypo1" isnote="true" onclick="togglenote('note1ypo1');" style="cursor:pointer;font-size:smaller;display:none;">In which you pretend to be a police officer and get filmed for the local <em><a class="twikilink" href="/pmwiki/pmwiki.php/Series/COPS" title="/pmwiki/pmwiki.php/Series/COPS">COPS</a></em> expy</span> one of the situations you'll come across is busting two people in the middle of this. Pull them out, and <a class="twikilink" href="/pmwiki/pmwiki.php/Main/NakedPeopleAreFunny" title="/pmwiki/pmwiki.php/Main/NakedPeopleAreFunny">they'll be naked</a> with the relevant parts covered by <a class="twikilink" href="/pmwiki/pmwiki.php/Main/Pixellation" title="/pmwiki/pmwiki.php/Main/Pixellation">Pixellation</a>. <ul><li> The first 3 games also have the Escort activity where the player must drive a prostitute and her client around the city while accomplishing certain requests and avoiding news vans attempting to film them. </li></ul></li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/VideoGame/DeadRising3" title="/pmwiki/pmwiki.php/VideoGame/DeadRising3">Dead Rising 3</a></em>, Gary and Rhonda do it in the back of a van. </li></ul></div> <p></p><div class="folderlabel" onclick="togglefolder('folder12');">    Webcomics </div><div class="folder" id="folder12" isfolder="true" style="display:block;"> <ul><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Webcomic/QuestionableContent" title="/pmwiki/pmwiki.php/Webcomic/QuestionableContent">Questionable Content</a></em>, after Faye admitted she lost her virginity in the back seat of a Buick, she thinks Marten disapproves. In fact, he's envious: his first time was in a much <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ShoutOut" title="/pmwiki/pmwiki.php/Main/ShoutOut">smaller VW</a>. </li><li> After <a class="urllink" href="http://sabrina-online.com/2004-01.html">Zig Zag helps Sabrina buy a new car<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a> in <em><a class="twikilink" href="/pmwiki/pmwiki.php/WebComic/SabrinaOnline" title="/pmwiki/pmwiki.php/WebComic/SabrinaOnline">Sabrina Online</a></em>, <a class="urllink" href="http://sabrina-online.com/2004-03.html">she shows it off to her boyfriend.<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a> </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Webcomic/Misfile" title="/pmwiki/pmwiki.php/Webcomic/Misfile">Misfile</a></em>, newlyweds Kate and Harry could not wait for the honeymoon. Later referenced by Emily when she's checking out her vintage car and asks "How the hell did people have sex in these things?" </li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Webcomic/KevinAndKell" title="/pmwiki/pmwiki.php/Webcomic/KevinAndKell">Kevin &amp; Kell</a></em>, newly-married Rhonda and Quinn <a class="urllink" href="https://www.kevinandkell.com/2007/kk0717.html">make out in the backseat of Lindesfarne's car<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a> when she's trying to find out when they'll be getting an annulment since they only got married to break a betrothal between Quinn and Lindesfarne. She figured out she needed to find a new college roommate instead. <ul><li> Not long after Kell took over as CEO of Herd Thinners, Kevin <a class="urllink" href="https://www.kevinandkell.com/2011/kk0317.html">snuck in as driver of her limo<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a> for some March shenanigans. </li></ul></li><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/Webcomic/Avialae" title="/pmwiki/pmwiki.php/Webcomic/Avialae">Avialae</a></em>, Gannet and Bailey's first sexual encounter occurs in the backseat of Bailey's car. Gannet later refers to the spot where they made out as "Handjob Valley", much to Bailey's embarrassment. </li></ul></div> <p></p><div class="folderlabel" onclick="togglefolder('folder13');">    Web Original </div><div class="folder" id="folder13" isfolder="true" style="display:block;"> <ul><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Website/Snopes" title="/pmwiki/pmwiki.php/Website/Snopes">Snopes</a></em> has a <a class="urllink" href="http://www.snopes.com/autos/erotica/erotica.asp">category for urban legends about sex in a car<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a>, which uses the same pun as this trope's title. </li><li> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/GearheadShow" title="/pmwiki/pmwiki.php/Main/GearheadShow">Car website</a> Jalopnik has <a class="urllink" href="http://jalopnik.com/5971422/how-to-have-sex-in-any-kind-of-car">an article<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a> detailing exactly <em>how</em> to pull off <a class="twikilink" href="/pmwiki/pmwiki.php/Main/AutoErotica" title="/pmwiki/pmwiki.php/Main/AutoErotica">Auto Erotica</a>. </li><li> In the pregame of <em><a class="twikilink" href="/pmwiki/pmwiki.php/Roleplay/SurvivalOfTheFittest" title="/pmwiki/pmwiki.php/Roleplay/SurvivalOfTheFittest">Survival of the Fittest</a> V4</em>, Rosa Fiametta and Dustin Royal get it on in the back of his car. At the end of pregame for one of the Minis, <em>SOTF-TV</em>, Amber Lyons and Sterling Odair do the same, as do Nicole Husher and David Jackson in <em>Second Chances</em> pregame. </li><li> The second viewer submission of <a class="twikilink" href="/pmwiki/pmwiki.php/WebVideo/WhatTheFuckIsWrongWithYou" title="/pmwiki/pmwiki.php/WebVideo/WhatTheFuckIsWrongWithYou">What the Fuck Is Wrong with You?</a> included a very intoxicated man trying to have sex <a class="twikilink" href="/pmwiki/pmwiki.php/Main/Squick" title="/pmwiki/pmwiki.php/Main/Squick">WITH his car.</a> </li><li> When she was a reporter at WVEC-TV in Norfolk, VA, Allison Williams and another station employee made <a class="twikilink" href="/pmwiki/pmwiki.php/Main/HomePornMovie" title="/pmwiki/pmwiki.php/Main/HomePornMovie">a sex tape</a> in one of the news vans and the video has gone viral. </li><li> If <em><a class="twikilink" href="/pmwiki/pmwiki.php/Website/TextsFromLastNight" title="/pmwiki/pmwiki.php/Website/TextsFromLastNight">Texts From Last Night</a></em> is to be believed, this happens more commonly than you think. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/Website/TheOnion" title="/pmwiki/pmwiki.php/Website/TheOnion">The Onion</a></em> Reviews <em><a class="twikilink" href="/pmwiki/pmwiki.php/Franchise/StarWars" title="/pmwiki/pmwiki.php/Franchise/StarWars">Star Wars</a>: <a class="twikilink" href="/pmwiki/pmwiki.php/Film/TheForceAwakens" title="/pmwiki/pmwiki.php/Film/TheForceAwakens">The Force Awakens</a></em>. <a class="urllink" href="https://www.youtube.com/watch?v=qVVUfqy9yRs">Listen<img height="12" src="https://static.tvtropes.org/pmwiki/pub/external_link.gif" style="border:none;" width="12"/></a> as Peter K. Rosenthal describes not the movie, but rather, how he lost his virginity in the backseat of a Toyota Chaser while watching <em><a class="twikilink" href="/pmwiki/pmwiki.php/Film/ANewHope" title="/pmwiki/pmwiki.php/Film/ANewHope">A New Hope</a></em> in 1977. </li></ul></div> <p></p><div class="folderlabel" onclick="togglefolder('folder14');">    Western Animation </div><div class="folder" id="folder14" isfolder="true" style="display:block;"> <ul><li> One certain episode of <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/TwoStupidDogs" title="/pmwiki/pmwiki.php/WesternAnimation/TwoStupidDogs">2 Stupid Dogs</a></em> had said dogs try to watch a drive-thru movie. After sneaking in with their own car, the smaller dog got bored and asked: "Why do people come here?". <a class="twikilink" href="/pmwiki/pmwiki.php/Main/GettingCrapPastTheRadar" title="/pmwiki/pmwiki.php/Main/GettingCrapPastTheRadar">Zoom out to the entire car-filled lot (and even the film, with a car on a cliff) bouncing and squeaking suggestively.</a> </li><li> This is subverted in <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/Animaniacs" title="/pmwiki/pmwiki.php/WesternAnimation/Animaniacs">Animaniacs</a></em> "Drive-Insane" when the Warner Siblings are jumping up and down excitedly in Dr. Scratchansniff's car. A mother walks by with her child, the child sees the car rocking violently, and the mother quickly leads her child away. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/BeavisAndButthead" title="/pmwiki/pmwiki.php/WesternAnimation/BeavisAndButthead">Beavis And Butthead</a> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/TheMovie" title="/pmwiki/pmwiki.php/Main/TheMovie">Do America</a></em> follows this trope to the letter in one scene, right down to an ATF agent interrupting. <ul><li> On the TV show, the two wander around a drive-in theater, ignoring the movie, until they find a rockin' van and take a picture of the occupants. Then they spend the rest of the episode running from the hideous she-beast they disturbed. </li></ul></li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/BojackHorseman" title="/pmwiki/pmwiki.php/WesternAnimation/BojackHorseman">Bojack Horseman</a></em>: "Time's Arrow" reveals that BoJack was conceived during a one-night stand in Butterscoth's car. </li><li> Subverted in <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/CodenameKidsNextDoor" title="/pmwiki/pmwiki.php/WesternAnimation/CodenameKidsNextDoor">Codename: Kids Next Door</a></em>, when the KND investigate why so many of the hated Teenagers are planning to get together at "the Point" that night. Despite <a class="twikilink" href="/pmwiki/pmwiki.php/Main/GettingCrapPastTheRadar" title="/pmwiki/pmwiki.php/Main/GettingCrapPastTheRadar">repeated verbal and visual hints that they're going up there to have sex in their cars</a>, it turns out to be an unrelated scheme to become instant Adults. At least, that's what Numbah One <em>thinks</em> it is. The truth is far more disturbing. <span class="spoiler" title="you can set spoilers visible by default on your profile"> They're all going to a roller-skating rink. Without any ulterior plan and just wanting to have, well, fun. They get <strong>pissed</strong> with the KND ruining their night out, <a class="twikilink" href="/pmwiki/pmwiki.php/Main/JerkAssHasAPoint" title="/pmwiki/pmwiki.php/Main/JerkAssHasAPoint">and they're right</a>.</span> </li><li> Subverted in the <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/Downtown" title="/pmwiki/pmwiki.php/WesternAnimation/Downtown">Downtown</a></em> episode "Limo". In one scene, it looks like Alex and Jen are having sex in the limo Jen rented, but it then turns out that they're actually bouncing the limo around and pretending to make orgasmic exclamations to mess with the chauffeur. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/FamilyGuy" title="/pmwiki/pmwiki.php/WesternAnimation/FamilyGuy">Family Guy</a></em>, as Death has a flashback to his adolescence, citing the burden of anyone he touches immediately dying. <div class="indent"><strong>Death:</strong> Oh, Sandy! Sandy! </div><div class="indent"><em>Pause</em> </div><div class="indent"><strong>Death:</strong> Sandy? Not again! I'm gonna be a virgin forever! </div><div class="indent"><em>(beat)</em> </div><div class="indent"><strong>Death:</strong> <a class="twikilink" href="/pmwiki/pmwiki.php/Main/CrossesTheLineTwice" title="/pmwiki/pmwiki.php/Main/CrossesTheLineTwice">Or am I?</a> </div><div class="indent"><em>(car starts rocking)</em> </div></li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/Futurama" title="/pmwiki/pmwiki.php/WesternAnimation/Futurama">Futurama</a></em>: <ul><li> In "Put Your Head on My Shoulder" Fry and Amy's car breaks down on Mercury, leaving them stranded with hours to kill before the tow truck arrives. When the guy finally shows up, he finds the car windows fogged up and... <a class="twikilink" href="/pmwiki/pmwiki.php/Main/SubvertedTrope" title="/pmwiki/pmwiki.php/Main/SubvertedTrope">Fry and Amy playing cards</a>. <a class="twikilink" href="/pmwiki/pmwiki.php/Main/DoubleSubversion" title="/pmwiki/pmwiki.php/Main/DoubleSubversion">Then, while they're being towed...</a> <div class="indent"><strong>Amy:</strong> So, you wanna do it? <br/><strong>Fry:</strong> Yeah! </div></li><li> On a robot planet, a popular movie features a teenage robot couple making out in a car getting attacked by a hideous human (a robot in a bad costume). </li></ul></li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/KingOfTheHill" title="/pmwiki/pmwiki.php/WesternAnimation/KingOfTheHill">King of the Hill</a></em>: Nancy Gribble and John Red Corn have sex in the back of a demo model SUV <em>that is parked in the terminal at the Dallas airport.</em> <ul><li> The two also have sex in Dale's van, the Bugabago which is the company vehicle of Dale's extermination business, Dale's Dead Bug. </li></ul></li></ul><ul><li> In <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/MoralOrel" title="/pmwiki/pmwiki.php/WesternAnimation/MoralOrel">Moral Orel</a></em>, when Orel is invited to <a class="twikilink" href="/pmwiki/pmwiki.php/Main/MakeOutPoint" title="/pmwiki/pmwiki.php/Main/MakeOutPoint">Inspiration Point</a> by his sweetheart Christina, he wonders why there are so many cars parked up there. He hears people screaming "Oh, God, oh, God!" and "Thank you, Jesus!" and cheerfully concludes that <a class="twikilink" href="/pmwiki/pmwiki.php/Main/ChildrenAreInnocent" title="/pmwiki/pmwiki.php/Main/ChildrenAreInnocent">people go there to pray</a>. </li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/TheSimpsons" title="/pmwiki/pmwiki.php/WesternAnimation/TheSimpsons">The Simpsons</a></em> hits this one a couple of different times. <ul><li> Homer in a car muttering indistinct things such as "Oh baby" that indicated great enjoyment. <a class="twikilink" href="/pmwiki/pmwiki.php/Main/SubvertedTrope" title="/pmwiki/pmwiki.php/Main/SubvertedTrope">Turns out</a> he was back there with a mountain of junk food. </li><li> When Manjula wanted to get pregnant, Homer tried to help by having her and Apu roleplay a scenario as a cheerleader and football player making out in a convertible. </li><li> Kodos: "The most common spawning locations of your species... the back seat of a Camaro". </li><li> Groundskeeper Willie: likes to secretly videotape couples in cars. </li></ul></li><li> <em><a class="twikilink" href="/pmwiki/pmwiki.php/WesternAnimation/StevenUniverse" title="/pmwiki/pmwiki.php/WesternAnimation/StevenUniverse">Steven Universe</a></em>: <a class="twikilink" href="/pmwiki/pmwiki.php/Recap/StevenUniverseS2E5StoryForSteven" title="/pmwiki/pmwiki.php/Recap/StevenUniverseS2E5StoryForSteven">"Story for Steven"</a> implies that Sour Cream was <a class="twikilink" href="/pmwiki/pmwiki.php/Main/OneNightStandPregnancy" title="/pmwiki/pmwiki.php/Main/OneNightStandPregnancy">conceived from a one-night stand</a> in the back of Marty's van. </li></ul></div> <hr/> </div> <div class="lazy-video-script"> <a id="VideoExamples"></a> <div> </div> <div class="video-examples has-thumbnails"> <div class="video-examples-header"> <a class="font-s float-right text-blue" data-modal-target="login" href="#feedback">Feedback</a> <h3 class="bold">Video Example(s):</h3> </div> <div class="video-examples-featured"> <a class="video-launch-link video-overlay-link featured-widget-vid" data-video-approval="APPROVED" data-video-average-rating="5.00" data-video-descrip="Barbie tries making bank with a sex truck, and all she gets is a one-way ticket to jail." data-video-id="zfzbig" data-video-media-sources="Creator/SamAndMickey" data-video-rating-count="2" data-video-thumbnail="https://i.vimeocdn.com/video/825407574_640x360.jpg?r=pad" data-video-title="Sam &amp; Mickey" data-video-trope="Main/AutoErotica" data-video-tropename="Auto Erotica" data-video-troper-rating="" data-video-url="https://player.vimeo.com/external/368670236.sd.mp4?s=6e5b1df3d19510fa461fd6eacb5e3dc934d8980d&amp;profile_id=165&amp;oauth2_token_id=1043337761" href="#video-link"> <div class="featured-widget-vid-iframe"> <video class="video-js vjs-default-skin vjs-16-9" controls="" data-setup='{"ga": {"eventsToTrack": ["error"]}}' id="featured-video-player"> </video> </div> </a> <h2 class="bold font-l">Sam &amp; Mickey</h2> <p class="_pmvv-vidbox-descTxt"> Barbie tries making bank with a sex truck, and all she gets is a one-way ticket to jail. </p> </div> </div> </div> <div class="alt-titles section section-fact"> <h3> <strong>Alternative Title(s):</strong> <span>Back Seat Sex</span>, <span>Car Sex</span> </h3> </div> <div class="square_ad footer-article-ad main_2" data-isolated="1"></div> <div class="section-links" itemscope="" itemtype="http://schema.org/SiteNavigationElement"> <div class="titles"> <div><h3 class="text-center text-uppercase">Previous</h3></div> <div><h3 class="text-center text-uppercase">Index</h3></div> <div><h3 class="text-center text-uppercase">Next</h3></div> </div> <div class="links"> <ul> <li> <a href="/pmwiki/pmwiki.php/Main/ArtisticLicenseCars">Artistic License - Cars</a> </li> <li> <a href="/pmwiki/pmwiki.php/Main/MotorVehicleTropes">Motor Vehicle Tropes</a> </li> <li> <a href="/pmwiki/pmwiki.php/Main/AutomatedAutomobiles">Automated Automobiles</a> </li> </ul> <ul> <li> <a href="/pmwiki/pmwiki.php/Main/Auction">Auction</a> </li> <li> <a href="/pmwiki/pmwiki.php/TruthInTelevision/AToC">TruthInTelevision/A to C</a> </li> <li> <a href="/pmwiki/pmwiki.php/Main/AwesomeAnachronisticApparel">Awesome Anachronistic Apparel</a> </li> </ul> <ul> <li> <a href="/pmwiki/pmwiki.php/Main/AuthorityEqualsAsskicking">Authority Equals Asskicking</a> </li> <li> <a href="/pmwiki/pmwiki.php/Main/OlderThanDirt">Older Than Dirt</a> </li> <li> <a href="/pmwiki/pmwiki.php/Main/BackFromTheDead">Back from the Dead</a> </li> </ul> <ul> <li> <a href="/pmwiki/pmwiki.php/Main/AtomicFBomb">Atomic F-Bomb</a> </li> <li> <a href="/pmwiki/pmwiki.php/Main/JustForPun">Just for Pun</a> </li> <li> <a href="/pmwiki/pmwiki.php/Main/AwesomeMomentOfCrowning">Awesome Moment of Crowning</a> </li> </ul> <ul> <li> <a href="/pmwiki/pmwiki.php/Main/AttractiveBentGender">Attractive Bent-Gender</a> </li> <li> <a href="/pmwiki/pmwiki.php/NoRealLife/SexSexualityAndRapeTropes">NoRealLife/Sex, Sexuality, and Rape Tropes</a> </li> <li> <a href="/pmwiki/pmwiki.php/Main/AwfulBritishSexComedy">Awful British Sex Comedy</a> </li> </ul> <ul> <li> </li> <li> <a href="/pmwiki/pmwiki.php/Main/MakingLoveInAllTheWrongPlaces">Making Love in All the Wrong Places</a> </li> <li> <a href="/pmwiki/pmwiki.php/Main/ElevatorGoingDown">Elevator Going Down</a> </li> </ul> <ul> <li> <a href="/pmwiki/pmwiki.php/Main/Asexuality">Asexuality</a> </li> <li> <a href="/pmwiki/pmwiki.php/Main/SexTropes">Sex Tropes</a> </li> <li> <a href="/pmwiki/pmwiki.php/Main/AwfulBritishSexComedy">Awful British Sex Comedy</a> </li> </ul> <ul> <li> <a href="/pmwiki/pmwiki.php/Creator/SamAndMickey">Sam &amp; Mickey</a> </li> <li> <a href="/pmwiki/pmwiki.php/VideoSource/Internet">VideoSource/Internet</a> </li> <li> <a href="/pmwiki/pmwiki.php/Main/CameraAbuse">Camera Abuse</a> </li> </ul> <ul> <li> <a href="/pmwiki/pmwiki.php/Webcomic/SabrinaOnline">Sabrina Online</a> </li> <li> <a href="/pmwiki/pmwiki.php/ImageSource/Webcomics">ImageSource/Webcomics</a> </li> <li> <a href="/pmwiki/pmwiki.php/DeathGlare/WebComics">Webcomics</a> </li> </ul> </div> </div> </article> <div id="main-content-sidebar"><div class="sidebar-item display-options"> <ul class="sidebar display-toggles"> <li>Show Spoilers <div class="display-toggle show-spoilers" id="sidebar-toggle-showspoilers"></div></li> <li>Night Vision <div class="display-toggle night-vision" id="sidebar-toggle-nightvision"></div></li> <li>Sticky Header <div class="display-toggle sticky-header" id="sidebar-toggle-stickyheader"></div></li> <li>Wide Load <div class="display-toggle wide-load" id="sidebar-toggle-wideload"></div></li> </ul> <script>updateDesktopPrefs();</script> </div> <div class="sidebar-item ad sb-ad-unit"> <div class="proper-ad-unit"> <div id="proper-ad-tvtropes_ad_2"> <script>propertag.cmd.push(function() { proper_display('tvtropes_ad_2'); });</script> </div> </div></div> <div class="sidebar-item quick-links" itemtype="http://schema.org/SiteNavigationElement"> <p class="sidebar-item-title" data-title="Important Links">Important Links</p> <div class="padded"> <a href="/pmwiki/query.php?type=att">Ask The Tropers</a> <a href="/pmwiki/query.php?type=tf">Trope Finder</a> <a href="/pmwiki/query.php?type=ykts">You Know That Show...</a> <a href="/pmwiki/tlp_activity.php">Trope Launch Pad</a> <a href="/pmwiki/review_activity.php">Reviews</a> <a data-modal-target="login" href="/pmwiki/lbs.php">Live Blogs</a> <a href="/pmwiki/ad-free-subscribe.php">Go Ad Free!</a> </div> </div> <div class="sidebar-item sb-ad-unit"> <div class="sidebar-section"> <div class="square_ad ad-size-300x600 ad-section text-center"> <div class="proper-ad-unit"> <div id="proper-ad-tvtropes_ad_3"> <script>propertag.cmd.push(function() { proper_display('tvtropes_ad_3'); });</script> </div> </div> </div> </div> </div> <div class="sidebar-item"> <p class="sidebar-item-title" data-title="Crucial Browsing">Crucial Browsing</p> <ul class="padded font-s" itemscope="" itemtype="http://schema.org/SiteNavigationElement"> <li><a data-click-toggle="active" href="javascript:void(0);">Genre</a> <ul> <li><a href="/pmwiki/pmwiki.php/Main/ActionAdventureTropes" title="Main/ActionAdventureTropes">Action Adventure</a></li> <li><a href="/pmwiki/pmwiki.php/Main/ComedyTropes" title="Main/ComedyTropes">Comedy</a></li> <li><a href="/pmwiki/pmwiki.php/Main/CommercialsTropes" title="Main/CommercialsTropes">Commercials</a></li> <li><a href="/pmwiki/pmwiki.php/Main/CrimeAndPunishmentTropes" title="Main/CrimeAndPunishmentTropes">Crime &amp; Punishment</a></li> <li><a href="/pmwiki/pmwiki.php/Main/DramaTropes" title="Main/DramaTropes">Drama</a></li> <li><a href="/pmwiki/pmwiki.php/Main/HorrorTropes" title="Main/HorrorTropes">Horror</a></li> <li><a href="/pmwiki/pmwiki.php/Main/LoveTropes" title="Main/LoveTropes">Love</a></li> <li><a href="/pmwiki/pmwiki.php/Main/NewsTropes" title="Main/NewsTropes">News</a></li> <li><a href="/pmwiki/pmwiki.php/Main/ProfessionalWrestling" title="Main/ProfessionalWrestling">Professional Wrestling</a></li> <li><a href="/pmwiki/pmwiki.php/Main/SpeculativeFictionTropes" title="Main/SpeculativeFictionTropes">Speculative Fiction</a></li> <li><a href="/pmwiki/pmwiki.php/Main/SportsStoryTropes" title="Main/SportsStoryTropes">Sports Story</a></li> <li><a href="/pmwiki/pmwiki.php/Main/WarTropes" title="Main/WarTropes">War</a></li> </ul> </li> <li><a data-click-toggle="active" href="javascript:void(0);">Media</a> <ul> <li><a href="/pmwiki/pmwiki.php/Main/Media" title="Main/Media">All Media</a></li> <li><a href="/pmwiki/pmwiki.php/Main/AnimationTropes" title="Main/AnimationTropes">Animation (Western)</a></li> <li><a href="/pmwiki/pmwiki.php/Main/Anime" title="Main/Anime">Anime</a></li> <li><a href="/pmwiki/pmwiki.php/Main/ComicBookTropes" title="Main/ComicBookTropes">Comic Book</a></li> <li><a href="/pmwiki/pmwiki.php/Main/FanFic" title="FanFic/FanFics">Fan Fics</a></li> <li><a href="/pmwiki/pmwiki.php/Main/Film" title="Main/Film">Film</a></li> <li><a href="/pmwiki/pmwiki.php/Main/GameTropes" title="Main/GameTropes">Game</a></li> <li><a href="/pmwiki/pmwiki.php/Main/Literature" title="Main/Literature">Literature</a></li> <li><a href="/pmwiki/pmwiki.php/Main/MusicAndSoundEffects" title="Main/MusicAndSoundEffects">Music And Sound Effects</a></li> <li><a href="/pmwiki/pmwiki.php/Main/NewMediaTropes" title="Main/NewMediaTropes">New Media</a></li> <li><a href="/pmwiki/pmwiki.php/Main/PrintMediaTropes" title="Main/PrintMediaTropes">Print Media</a></li> <li><a href="/pmwiki/pmwiki.php/Main/Radio" title="Main/Radio">Radio</a></li> <li><a href="/pmwiki/pmwiki.php/Main/SequentialArt" title="Main/SequentialArt">Sequential Art</a></li> <li><a href="/pmwiki/pmwiki.php/Main/TabletopGames" title="Main/TabletopGames">Tabletop Games</a></li> <li><a href="/pmwiki/pmwiki.php/UsefulNotes/Television" title="Main/Television">Television</a></li> <li><a href="/pmwiki/pmwiki.php/Main/Theater" title="Main/Theater">Theater</a></li> <li><a href="/pmwiki/pmwiki.php/Main/VideogameTropes" title="Main/VideogameTropes">Videogame</a></li> <li><a href="/pmwiki/pmwiki.php/Main/Webcomics" title="Main/Webcomics">Webcomics</a></li> </ul> </li> <li><a data-click-toggle="active" href="javascript:void(0);">Narrative</a> <ul> <li><a href="/pmwiki/pmwiki.php/Main/UniversalTropes" title="Main/UniversalTropes">Universal</a></li> <li><a href="/pmwiki/pmwiki.php/Main/AppliedPhlebotinum" title="Main/AppliedPhlebotinum">Applied Phlebotinum</a></li> <li><a href="/pmwiki/pmwiki.php/Main/CharacterizationTropes" title="Main/CharacterizationTropes">Characterization</a></li> <li><a href="/pmwiki/pmwiki.php/Main/Characters" title="Main/Characters">Characters</a></li> <li><a href="/pmwiki/pmwiki.php/Main/CharactersAsDevice" title="Main/CharactersAsDevice">Characters As Device</a></li> <li><a href="/pmwiki/pmwiki.php/Main/Dialogue" title="Main/Dialogue">Dialogue</a></li> <li><a href="/pmwiki/pmwiki.php/Main/Motifs" title="Main/Motifs">Motifs</a></li> <li><a href="/pmwiki/pmwiki.php/Main/NarrativeDevices" title="Main/NarrativeDevices">Narrative Devices</a></li> <li><a href="/pmwiki/pmwiki.php/Main/Paratext" title="Main/Paratext">Paratext</a></li> <li><a href="/pmwiki/pmwiki.php/Main/Plots" title="Main/Plots">Plots</a></li> <li><a href="/pmwiki/pmwiki.php/Main/Settings" title="Main/Settings">Settings</a></li> <li><a href="/pmwiki/pmwiki.php/Main/Spectacle" title="Main/Spectacle">Spectacle</a></li> </ul> </li> <li><a data-click-toggle="active" href="javascript:void(0);">Other Categories</a> <ul> <li><a href="/pmwiki/pmwiki.php/Main/BritishTellyTropes" title="Main/BritishTellyTropes">British Telly</a></li> <li><a href="/pmwiki/pmwiki.php/Main/TheContributors" title="Main/TheContributors">The Contributors</a></li> <li><a href="/pmwiki/pmwiki.php/Main/CreatorSpeak" title="Main/CreatorSpeak">Creator Speak</a></li> <li><a href="/pmwiki/pmwiki.php/Main/Creators" title="Main/Creators">Creators</a></li> <li><a href="/pmwiki/pmwiki.php/Main/DerivativeWorks" title="Main/DerivativeWorks">Derivative Works</a></li> <li><a href="/pmwiki/pmwiki.php/Main/LanguageTropes" title="Main/LanguageTropes">Language</a></li> <li><a href="/pmwiki/pmwiki.php/Main/LawsAndFormulas" title="Main/LawsAndFormulas">Laws And Formulas</a></li> <li><a href="/pmwiki/pmwiki.php/Main/ShowBusiness" title="Main/ShowBusiness">Show Business</a></li> <li><a href="/pmwiki/pmwiki.php/Main/SplitPersonalityTropes" title="Main/SplitPersonalityTropes">Split Personality</a></li> <li><a href="/pmwiki/pmwiki.php/Main/StockRoom" title="Main/StockRoom">Stock Room</a></li> <li><a href="/pmwiki/pmwiki.php/Main/TropeTropes" title="Main/TropeTropes">Trope</a></li> <li><a href="/pmwiki/pmwiki.php/Main/Tropes" title="Main/Tropes">Tropes</a></li> <li><a href="/pmwiki/pmwiki.php/Main/TruthAndLies" title="Main/TruthAndLies">Truth And Lies</a></li> <li><a href="/pmwiki/pmwiki.php/Main/TruthInTelevision" title="Main/TruthInTelevision">Truth In Television</a></li> </ul> </li> <li><a data-click-toggle="active" href="javascript:void(0);">Topical Tropes</a> <ul> <li><a href="/pmwiki/pmwiki.php/Main/BetrayalTropes" title="Main/BetrayalTropes">Betrayal</a></li> <li><a href="/pmwiki/pmwiki.php/Main/CensorshipTropes" title="Main/CensorshipTropes">Censorship</a></li> <li><a href="/pmwiki/pmwiki.php/Main/CombatTropes" title="Main/CombatTropes">Combat</a></li> <li><a href="/pmwiki/pmwiki.php/Main/DeathTropes" title="Main/DeathTropes">Death</a></li> <li><a href="/pmwiki/pmwiki.php/Main/FamilyTropes" title="Main/FamilyTropes">Family</a></li> <li><a href="/pmwiki/pmwiki.php/Main/FateAndProphecyTropes" title="Main/FateAndProphecyTropes">Fate And Prophecy</a></li> <li><a href="/pmwiki/pmwiki.php/Main/FoodTropes" title="Main/FoodTropes">Food</a></li> <li><a href="/pmwiki/pmwiki.php/Main/HolidayTropes" title="Main/HolidayTropes">Holiday</a></li> <li><a href="/pmwiki/pmwiki.php/Main/MemoryTropes" title="Main/MemoryTropes">Memory</a></li> <li><a href="/pmwiki/pmwiki.php/Main/MoneyTropes" title="Main/MoneyTropes">Money</a></li> <li><a href="/pmwiki/pmwiki.php/Main/MoralityTropes" title="Main/MoralityTropes">Morality</a></li> <li><a href="/pmwiki/pmwiki.php/Main/PoliticsTropes" title="Main/PoliticsTropes">Politics</a></li> <li><a href="/pmwiki/pmwiki.php/Main/ReligionTropes" title="Main/ReligionTropes">Religion</a></li> <li><a href="/pmwiki/pmwiki.php/Main/SchoolTropes" title="Main/SchoolTropes">School</a></li> </ul> </li> </ul> </div> <div class="sidebar-item showcase"> <p class="sidebar-item-title" data-title="Community Showcase">Community Showcase <a class="bubble float-right hover-blue" href="/pmwiki/showcase.php">More</a></p> <p class="community-showcase"> <a href="https://sharetv.com/shows/echo_chamber" onclick="trackOutboundLink('https://sharetv.com/shows/echo_chamber');" target="_blank"> <img alt="" class="lazy-image" data-src="/images/communityShowcase-echochamber.jpg"/></a> <a href="/pmwiki/pmwiki.php/Webcomic/TwistedTropes"> <img alt="" class="lazy-image" data-src="/img/howlandsc-side.jpg"/></a> </p> </div> <div class="sidebar-item sb-ad-unit" id="stick-cont"> <div class="sidebar-section" id="stick-bar"> <div class="square_ad ad-size-300x600 ad-section text-center"> <div class="proper-ad-unit"> <div id="proper-ad-tvtropes_ad_4"> <script>propertag.cmd.push(function() { proper_display('tvtropes_ad_4'); });</script> </div> </div> </div> </div> </div> </div> </div> <div class="action-bar tablet-off" id="action-bar-bottom"> <a class="scroll-to-top dead-button" href="#top-of-page" onclick="$('html, body').animate({scrollTop : 0},500);">Top</a> </div> </div> <div class="proper-ad-unit ad-sticky"> <div id="proper-ad-tvtropes_sticky_ad"> <script>propertag.cmd.push(function() { proper_display('tvtropes_sticky_ad'); });</script> </div> </div> <footer id="main-footer"> <div id="main-footer-inner"> <div class="footer-left"> <a class="img-link" href="/"><img alt="TV Tropes" class="lazy-image" data-src="/img/tvtropes-footer-logo.png" title="TV Tropes"/></a> <form action="index.html" class="navbar-form newsletter-signup validate modal-replies" data-ajax-get="/ajax/subscribe_email.php" id="cse-search-box-mobile" name="" role=""> <button class="btn-submit newsletter-signup-submit-button" id="subscribe-btn" type="submit"><i class="fa fa-paper-plane"></i></button> <input class="form-control" id="subscription-email" name="q" placeholder="Subscribe" size="31" type="text" validate-type="email" value=""/> </form> <ul class="social-buttons"> <li><a class="btn fb" href="https://www.facebook.com/tvtropes" onclick="_gaq.push(['_trackEvent', 'btn-social-icon', 'click', 'btn-facebook']);" target="_blank"><i class="fa fa-facebook"></i></a></li> <li><a class="btn tw" href="https://www.twitter.com/tvtropes" onclick="_gaq.push(['_trackEvent', 'btn-social-icon', 'click', 'btn-twitter']);" target="_blank"><i class="fa fa-twitter"></i></a> </li> <li><a class="btn rd" href="https://www.reddit.com/r/tvtropes" onclick="_gaq.push(['_trackEvent', 'btn-social-icon', 'click', 'btn-reddit']);" target="_blank"><i class="fa fa-reddit-alien"></i></a></li> </ul> </div> <hr/> <ul class="footer-menu" itemscope="" itemtype="http://schema.org/SiteNavigationElement"> <li><h4 class="footer-menu-header">TVTropes</h4></li> <li><a href="/pmwiki/pmwiki.php/Main/Administrivia">About TVTropes</a></li> <li><a href="/pmwiki/pmwiki.php/Administrivia/TheGoalsOfTVTropes">TVTropes Goals</a></li> <li><a href="/pmwiki/pmwiki.php/Administrivia/TheTropingCode">Troping Code</a></li> <li><a href="/pmwiki/pmwiki.php/Administrivia/TVTropesCustoms">TVTropes Customs</a></li> <li><a href="/pmwiki/pmwiki.php/JustForFun/TropesOfLegend">Tropes of Legend</a></li> <li><a href="/pmwiki/ad-free-subscribe.php">Go Ad-Free</a></li> </ul> <hr/> <ul class="footer-menu" itemscope="" itemtype="http://schema.org/SiteNavigationElement"> <li><h4 class="footer-menu-header">Community</h4></li> <li><a href="/pmwiki/query.php?type=att">Ask The Tropers</a></li> <li><a href="/pmwiki/tlp_activity.php">Trope Launch Pad</a></li> <li><a href="/pmwiki/query.php?type=tf">Trope Finder</a></li> <li><a href="/pmwiki/query.php?type=ykts">You Know That Show</a></li> <li><a data-modal-target="login" href="/pmwiki/lbs.php">Live Blogs</a></li> <li><a href="/pmwiki/review_activity.php">Reviews</a></li> <li><a href="/pmwiki/topics.php">Forum</a></li> </ul> <hr/> <ul class="footer-menu" itemscope="" itemtype="http://schema.org/SiteNavigationElement"> <li><h4 class="footer-menu-header">Tropes HQ</h4></li> <li><a href="/pmwiki/about.php">About Us</a></li> <li><a href="/pmwiki/contact.php">Contact Us</a></li> <li><a href="/pmwiki/dmca.php">DMCA Notice</a></li> <li><a href="/pmwiki/privacypolicy.php">Privacy Policy</a></li> </ul> </div> <div class="text-center gutter-top gutter-bottom tablet-on" id="desktop-on-mobile-toggle"> <a href="/pmwiki/switchDeviceCss.php?mobileVersion=1" rel="nofollow">Switch to <span class="txt-desktop">Desktop</span><span class="txt-mobile">Mobile</span> Version</a> </div> <div class="legal"> <p>TVTropes is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. <br/>Permissions beyond the scope of this license may be available from <a href="mailto:thestaff@tvtropes.org" rel="cc:morePermissions" xmlns:cc="http://creativecommons.org/ns#"> thestaff@tvtropes.org</a>.</p> <br/> <div class="privacy_wrapper"> </div> </div> </footer> <style> div.fc-ccpa-root { position: absolute !important; bottom: 93px !important; margin: auto !important; width: 100% !important; z-index: 9999 !important; } .fc-ccpa-root .fc-dns-dialog .fc-dns-link p{ outline: none !important; text-decoration: underline !important; font-size: .7em !important; font-family: sans-serif !important; } .fc-ccpa-root .fc-dns-dialog .fc-dns-link .fc-button-background { background: none !important; } </style> <div class="full-screen" id="_pm_videoViewer"> <a class="close" href="#close" id="_pm_videoViewer-close"></a> <div class="_pmvv-body"> <div class="_pmvv-vidbox"> <video class="video-js vjs-default-skin vjs-16-9" data-video-id="zfzbig" id="overlay-video-player-box"> </video> <div class="_pmvv-vidbox-desc"> <h1 id="overlay-title">Sam &amp; Mickey</h1> <p class="_pmvv-vidbox-descTxt" id="overlay-descrip"> Barbie tries making bank with a sex truck, and all she gets is a one-way ticket to jail. </p> <div class="rating-row" data-video-id="zfzbig"> <input name="is_logged_in" type="hidden" value="0"/> <p>How well does it match the trope?</p> <div id="star-rating-group"> <div class="trope-rate"> <input id="lamp5" name="rate" type="radio" value="5"/> <label for="lamp5" title="Absolutely"></label> <input id="lamp4" name="rate" type="radio" value="4"/> <label for="lamp4" title="Yes"></label> <input id="lamp3" name="rate" type="radio" value="3"/> <label for="lamp3" title="Kind of"></label> <input id="lamp2" name="rate" type="radio" value="2"/> <label for="lamp2" title="Not really"></label> <input id="lamp1" name="rate" type="radio" value="1"/> <label for="lamp1" title="No"></label> </div> <div id="star-rating-total"> 5 (2 votes) </div> </div> </div> <div class="example-media-row"> <div class="example-overlay"> <p>Example of:</p> <div id="overlay-trope">Main / AutoErotica</div> </div> <div class="media-sources-overlay example-overlay"> <p>Media sources:</p> <div id="overlay-media">Main / AutoErotica</div> </div> </div> <p class="_pmvv-vidbox-stats text-right font-s" style="padding-top:8px; border-top: solid 1px rgba(255,255,255,0.2)"> <a class="float-right" data-modal-target="login" href="#video-feedback">Report</a> </p> </div> </div> </div> </div> <script type="text/javascript"> window.special_ops = { member : 'no', isolated : 1, tags : ['unknown'] }; </script> <script type="text/javascript"> var cleanCreativeEnabled = ""; var donation = ""; var live_ads = "1"; var img_domain = "https://static.tvtropes.org"; var snoozed = cookies.read('snoozedabm'); var snoozable = ""; if (adsRemovedWith) { live_ads = 0; } var elem = document.createElement('script'); elem.async = true; elem.src = '/design/assets/bundle.js?rev=c58d8df02f09262390bbd03db7921fc35c6af306'; elem.onload = function() { } document.getElementsByTagName('head')[0].appendChild(elem); </script> <script type="text/javascript"> function send_analytics_event(user_type, donation){ // if(user_type == 'uncached' || user_type == 'cached'){ // ga('send', 'event', 'caching', 'load', user_type, {'nonInteraction': 1}); // return; // } var event_name = user_type; if(donation == 'true'){ event_name += "_donation" }else if(typeof(valid_user) == 'undefined'){ event_name += "_blocked" }else if(valid_user == true){ event_name += "_unblocked"; }else{ event_name = "_unknown" } ga('send', 'event', 'ads', 'load', event_name, {'nonInteraction': 1}); } send_analytics_event("guest", "false"); </script> </body> </html>
124.716565
1,242
0.725444
18b3493e83661b0aa754a2d8b846a907fc894ff6
1,662
sql
SQL
data/test/sql/18b3493e83661b0aa754a2d8b846a907fc894ff6rules-core.messages.sql
aliostad/deep-learning-lang-detection
d6b031f3ebc690cf2ffd0ae1b08ffa8fb3b38a62
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/test/sql/18b3493e83661b0aa754a2d8b846a907fc894ff6rules-core.messages.sql
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/test/sql/18b3493e83661b0aa754a2d8b846a907fc894ff6rules-core.messages.sql
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
CREATE OR REPLACE RULE rule_archive_message AS ON UPDATE TO core.messages WHERE new.msg_status NOT IN ('NEW', 'ROUTED', 'SENT') DO INSTEAD ( -- Insert updated message into archive INSERT INTO core._messages_archive ( id, refer_id, uuid, src_app_id, dst_app_id, src_addr, dst_addr, date_received, date_processed, msg_status, external_id, charging, msg_type, msg_body, prio, retries, extra, qty ) VALUES ( new.id, new.refer_id, new.uuid, new.src_app_id, new.dst_app_id, new.src_addr, new.dst_addr, old.date_received, now(), new.msg_status, new.external_id, new.charging, new.msg_type, new.msg_body, new.prio, new.retries, new.extra, new.qty ); -- Remove message from core.messages DELETE FROM core._messages_queue WHERE _messages_queue.id = old.id; ); COMMENT ON RULE rule_archive_message ON core.messages IS 'Archive messages'; CREATE OR REPLACE RULE rule_enqueue_messages AS ON INSERT TO core.messages WHERE new.msg_status IN ('NEW', 'ROUTED', 'SENT') DO INSTEAD INSERT INTO core._messages_queue ( refer_id, uuid, src_app_id, dst_app_id, src_addr, dst_addr, date_received, date_processed, msg_status, external_id, charging, msg_type, msg_body, prio, retries, extra, qty ) VALUES ( new.refer_id, new.uuid, new.src_app_id, new.dst_app_id, new.src_addr, new.dst_addr, now(), NULL, new.msg_status, new.external_id, new.charging, new.msg_type, new.msg_body, new.prio, 0, new.extra, new.qty ); COMMENT ON RULE rule_enqueue_messages ON core.messages IS 'By default insert new messages into queue partition';
17.3125
112
0.707581
fba4aefcd69d3253a54d8a7843227ca11474758c
22,892
sql
SQL
SCCM/Install-UpdateComplianceReports/SourceFiles/UpdatesSummary.sql
ennnbeee/mem-scripts
98bd5c49a44de1cf63ad3de12f3010b33f406967
[ "MIT" ]
null
null
null
SCCM/Install-UpdateComplianceReports/SourceFiles/UpdatesSummary.sql
ennnbeee/mem-scripts
98bd5c49a44de1cf63ad3de12f3010b33f406967
[ "MIT" ]
null
null
null
SCCM/Install-UpdateComplianceReports/SourceFiles/UpdatesSummary.sql
ennnbeee/mem-scripts
98bd5c49a44de1cf63ad3de12f3010b33f406967
[ "MIT" ]
null
null
null
---SCRIPTVERSION: 20210801 ----------------------------------------------------------------------------------------------------------------------- ---- Disclaimer ---- ---- This sample script is not supported under any Microsoft standard support program or service. This sample ---- script is provided AS IS without warranty of any kind. Microsoft further disclaims all implied warranties ---- including, without limitation, any implied warranties of merchantability or of fitness for a particular ---- purpose. The entire risk arising out of the use or performance of this sample script and documentation ---- remains with you. In no event shall Microsoft, its authors, or anyone else involved in the creation, ---- production, or delivery of this script be liable for any damages whatsoever (including, without limitation, ---- damages for loss of business profits, business interruption, loss of business information, or other ---- pecuniary loss) arising out of the use of or inability to use this sample script or documentation, even ---- if Microsoft has been advised of the possibility of such damages. ----------------------------------------------------------------------------------------------------------------------- ---- Changelog: ---- 20211118: Added "Cumulative Update for Microsoft server operating system" string for server 2022 updates. ---- 20210801: Changed multi value parameter handling to use CTEs due to performance issues with some environments. ---- Also changed overall compliance to be only compliant in case the last rollup has been installed and changed name from "UpdateAssignmentCompliance" to "OverallComplianceState" ---- Changed name from "UpdateStatusCompliant" to "UpdateAssignmentCompliant" to be more accurate with the wording ---- Removed condition "UPDATESTATES.UpdatesApprovedAndMissing = 0" of overall compliance state since it does not really work with the way we exclude deployments ---- Added option to exclude deployments with starttime in the future ---- Disabled update deployments will now be excluded from overall compliance state ---- 20210614: Simplified RollupStatus and CurrentRollupStatus case when clauses ---- 20210610: Added update install errors and changed query logic due to performance problems starting with 35k systems ---- 20201130: Added "System Center Endpoint Protection" back to the exclusion list ---- 20201124: Changed some descriptions, the QuickFixEngineering query due to missing date entries and the language problem from 20201103, ---- QuickFixEngineering query will also use the rollups as a reference if possible, simplified the current- and last-rollup queries and removed the limitation for Server 2008 ---- 20201103: Changed 'max(CASE WHEN (ISDATE(QFE.InstalledOn0) = 0' to 'max(CASE WHEN (LEN(QFE.InstalledOn0) > 10' due to language problems ---- 20201103: Changed 'Windows Defender' to 'Microsoft Defender Antivirus' ----- just for testing in SQL directly Declare @CollectionID as varchar(max) = 'SMS00001'; ---- semicolon seperated list of collectionIDs Declare @ExcludeProductList as varchar(max) = N'Microsoft Defender Antivirus;System Center Endpoint Protection'; ---- semicolon seperated list of update products declare @ExcludeFutureDepl as int = 0 ---- 1 means deployments with a starttime in the future will be excluded. 0 means nothing will be excluded Declare @CollectionIDList as varchar(max) = @CollectionID ---- semicolon seperated list of collectionIDs Declare @ExcludeProducts as varchar(max) = @ExcludeProductList ---- semicolon seperated list of update products Declare @ExcludeFutureDeployments as int = @ExcludeFutureDepl --- 1 means deployments with a starttime in the future will be excluded. 0 means nothing will be excluded ---- IMPORTANT: ExcludeFutureDeployments Will not exclude updates from the statistics. It will just affect compliance state based on deployments. -- using prefix like "2017-07" to filter for the security rollup of the past month DECLARE @LastRollupPrefix as char(7); SET @LastRollupPrefix = (SELECT convert(char(7),DATEADD(MONTH,-1,GETDATE()),126)); -- using prefix like "2017-08" to filter for the current security rollup DECLARE @CurrentRollupPrefix as char(7); SET @CurrentRollupPrefix = (SELECT convert(char(7),DATEADD(MONTH,0,GETDATE()),126)); -- calculate 2nd Tuesday of month to add the correct date string in case install date is missing in v_GS_QUICK_FIX_ENGINEERING DECLARE @FirstDayOfMonth datetime; DECLARE @SecondTuesdayOfMonth datetime; DECLARE @UpdatePrefix as char(7); SET @FirstDayOfMonth = DATEADD(MONTH,DATEDIFF(MONTH,0,GETDATE()),0) SET @SecondTuesdayOfMonth = DATEADD(DAY,((10 - DATEPART(dw,@FirstDayOfMonth)) % 7) + 7, @FirstDayOfMonth) IF GETDATE() < @SecondTuesdayOfMonth SET @UpdatePrefix = @LastRollupPrefix ELSE SET @UpdatePrefix = @CurrentRollupPrefix; -- PRE QUERIES -- Create table for collection IDs. Converting string based list into CTE to avoid any parameter performance issues with certain SQL configurations. WITH CTE_CollIDPieces AS ( SELECT 1 AS ID ,1 AS [StartString] ,Cast(CHARINDEX(';', @CollectionIDList,0) as int) AS StopString UNION ALL SELECT ID + 1 ,StopString + 1 ,Cast(CHARINDEX(';', @CollectionIDList, StopString + 1) as int) FROM CTE_CollIDPieces WHERE StopString > 0 ) ,CTE_CollIDs AS ( SELECT (SUBSTRING(@CollectionIDList, StartString, CASE WHEN StopString > 0 THEN StopString - StartString ELSE LEN(@CollectionIDList) END)) AS CollectionID FROM CTE_CollIDPieces ) -- Create table for excluded products. Converting string based list into CTE to avoid any parameter performance issues with certain SQL configurations. ,CTE_ProductPieces AS ( SELECT 1 AS ID ,1 AS [StartString] ,Cast(CHARINDEX(';', @ExcludeProducts,0) as int) AS StopString UNION ALL SELECT ID + 1 ,StopString + 1 ,Cast(CHARINDEX(';', @ExcludeProducts, StopString + 1) as int) FROM CTE_ProductPieces WHERE StopString > 0 ) ,CTE_Products AS ( SELECT (SUBSTRING(@ExcludeProducts, StartString, CASE WHEN StopString > 0 THEN StopString - StartString ELSE LEN(@ExcludeProducts) END)) AS Product FROM CTE_ProductPieces ), -- generate list of systems we are insterested in ResourceList (ResourceID) as ( Select Distinct ResourceID from v_FullCollectionMembership FCM inner join CTE_CollIDs on CTE_CollIDs.CollectionID = FCM.CollectionID ), -- Defender Updates will be filtered out, because they will be updated more frequently ExcludedUpdates (AssignmentID,CI_ID,AssignmentType) as ( select CIA.AssignmentID, CIATOCI.CI_ID, AssignmentType = 1 --- 1 means excluded, 0 means incldued from v_CIAssignment CIA inner join v_CIAssignmentToCI CIATOCI on CIATOCI.AssignmentID = CIA.AssignmentID inner join v_CICategoryInfo CICI on CICI.Ci_ID = CIATOCI.CI_ID inner join CTE_Products PR on PR.Product = CICI.CategoryInstanceName UNION ALL select CIA.AssignmentID, CI_ID = 0, AssignmentType = @ExcludeFutureDeployments -- parameter to be able to toggle to ex or include future deployments from v_CIAssignment cia where cia.StartTime > GETDATE() -- deployments with starttime in the future, to be able to filter them out if we want to UNION ALL select CIA.AssignmentID, CI_ID = 0, AssignmentType = 1 from v_CIAssignment cia where cia.AssignmentEnabled = 0 -- exclude disabled deployments in overall compliance state ), -- list of cumulative updates of the current and the past month CumulativeUpdates (ArticleID,CI_ID, Latest) as ( Select 'KB' + updi.ArticleID as Article, CI_ID, Latest = 0 from v_updateinfo updi where (updi.Title like @LastRollupPrefix + ' Cumulative Update for Windows%' or updi.Title like @LastRollupPrefix + ' Security Monthly Quality Rollup%' or updi.Title like @LastRollupPrefix + ' Cumulative Update for Microsoft server operating system%') UNION ALL Select 'KB' + updi.ArticleID as Article, CI_ID, Latest = 1 from v_updateinfo updi where (updi.Title like @CurrentRollupPrefix + ' Cumulative Update for Windows%' or updi.Title like @CurrentRollupPrefix + ' Security Monthly Quality Rollup%' or updi.Title like @CurrentRollupPrefix + ' Cumulative Update for Microsoft server operating system%') ) --MAIN QUERY select [Name] = VRS.Name0 ,[ResourceID] = VRS.ResourceID ,[Counter] = 1 -- a counter to make it easier to count in reporting services ,[PendingReboot] = BGBL.ClientState ,[OSType] = GOS.Caption0 ,[OSBuild] = BGBL.DeviceOSBuild ,[ClientVersion] = VRS.Client_Version0 ,[WSUSVersion] = USS.LastWUAVersion ,[DefenderPattern] = AHS.AntivirusSignatureVersion ,[DefenderPatternAge] = AHS.AntivirusSignatureAge ,[WSUSScanError] = USS.LastErrorCode ,[DaysSinceLastOnline] = ISNULL((DateDiff(DAY,BGBL.LastPolicyRequest,GETDATE())),999) ,[DaysSinceLastAADSLogon] = ISNULL((DateDiff(DAY,VRS.Last_Logon_Timestamp0,GETDATE())), 999) ,[DaysSinceLastBoot] = ISNULL((DateDiff(DAY,GOS.LastBootUpTime0,GETDATE())), 999) ,[DaysSinceLastUpdateInstall] = ISNULL((DateDiff(DAY,UPDINSTDATE.LastInstallTime,GETDATE())), 999) ,[MonthSinceLastOnline] = ISNULL((DateDiff(MONTH,BGBL.LastPolicyRequest,GETDATE())), 999) ,[MonthSinceLastOnlineABC] = case when ISNULL((DateDiff(MONTH,BGBL.LastPolicyRequest,GETDATE())), 999) = 0 then 'A' when ISNULL((DateDiff(MONTH,BGBL.LastPolicyRequest,GETDATE())), 999) = 1 then 'B' else 'C' end ,[MonthSinceLastAADSLogon] = ISNULL((DateDiff(MONTH,VRS.Last_Logon_Timestamp0,GETDATE())), 999) ,[MonthSinceLastAADSLogonABC] = case when ISNULL((DateDiff(MONTH,VRS.Last_Logon_Timestamp0,GETDATE())), 999) = 0 then 'A' when ISNULL((DateDiff(MONTH,VRS.Last_Logon_Timestamp0,GETDATE())), 999) = 1 then 'B' else 'C' end ,[MonthSinceLastBoot] = ISNULL((DateDiff(MONTH,GOS.LastBootUpTime0,GETDATE())), 999) ,[MonthSinceLastBootABC] = case when ISNULL((DateDiff(MONTH,GOS.LastBootUpTime0,GETDATE())), 999) = 0 then 'A' when ISNULL((DateDiff(MONTH,GOS.LastBootUpTime0,GETDATE())), 999) = 1 then 'B' else 'C' end ,[MonthSinceLastUpdateInstall] = ISNULL((DateDiff(MONTH,UPDINSTDATE.LastInstallTime,GETDATE())), 999) ,[MonthSinceLastUpdateInstallABC] = case when ISNULL((DateDiff(MONTH,UPDINSTDATE.LastInstallTime,GETDATE())), 999) = 0 then 'A' when ISNULL((DateDiff(MONTH,UPDINSTDATE.LastInstallTime,GETDATE())), 999) = 1 then 'B' else 'C' end ,[MonthSinceLastUpdateScan] = ISNULL((DateDiff(MONTH,USS.LastScanTime,GETDATE())), 999) ---- custom compliance state based on deploymentstatus, update status, last installdate and last rollup state. Last update install needs to be at least in the past month ---- 20210801: Changed compliance to contain the last rollup ,[OverallComplianceState] = Case when AssignmentStatus.Compliant = AssignmentStatus.AssignmentSum and (DateDiff(MONTH,UPDINSTDATE.LastInstallTime,GETDATE()) <= 1) and (LASTROLLUPSTAT.Status = 3 or CURRROLLUPSTAT.Status = 3) then 1 else 0 end ---- 20210801: Original UpdateAssignmentCompliance query without last rollup state and with UPDATESTATES.UpdatesApprovedAndMissing = 0 ---- Query does not work anymore because of the way we filter future and not enabled update deployments and the changed name to "OverallComplianceState" --,[UpdateAssignmentCompliance] = Case when AssignmentStatus.Compliant = AssignmentStatus.AssignmentSum and UPDATESTATES.UpdatesApprovedAndMissing = 0 and (DateDiff(MONTH,UPDINSTDATE.LastInstallTime,GETDATE()) <= 1) then 1 else 0 end ---- "UpdateStatusCompliant" is now called "UpdateAssignmentCompliant" ,[UpdateAssignmentCompliant] = AssignmentStatus.Compliant ,[UpdateAssignmentSum] = AssignmentStatus.AssignmentSum ,[UpdateAssignmentNonCompliant] = AssignmentStatus.AssignmentSum - AssignmentStatus.Compliant --,[UpdateStatusNonCompliant] = AssignmentStatus.NonCompliant --,[UpdateStatusUnknown] = case when AssignmentStatus.Unknown is null then 999 --when (AssignmentStatus.Compliant is null and AssignmentStatus.NonCompliant is null and AssignmentStatus.Failed is null and AssignmentStatus.Pending is null) then 999 --else AssignmentStatus.Unknown end ---some are unknown, because the state message seems to be missing --,[UpdateStatusFailed] = AssignmentStatus.Failed --,[UpdateStatusPending] = AssignmentStatus.Pending ,[MissingUpdatesAll] = UPDATESTATES.UpdatesMissingAll ,[MissingUpdatesApproved] = UPDATESTATES.UpdatesApprovedAndMissing ,[UpdatesApprovedAll] = UPDATESTATES.UpdatesApproved ,[UpdatesApprovedMissingAndError] = UPDATESTATES.UpdatesApprovedAndMissingAndError ---- show status of reference security rollup update ---- if current rollup ist installed, the last one doesn't matter and will be set to installed as well ,[LastRollupStatus] = case when LASTROLLUPSTAT.Status = 3 or CURRROLLUPSTAT.Status = 3 then 3 else 2 end ,[CurrentRollupStatus] = case when CURRROLLUPSTAT.Status = 3 then 3 else 2 end ---- add a list of all the collections having a software update or all deployments maintenance window --,[UpdateMWs] = STUFF((select ';' + Description -- from v_FullCollectionMembership TX0 -- inner join v_ServiceWindow TX1 on TX1.CollectionID = TX0.CollectionID -- where TX1.ServiceWindowType in (1,4) and TX0.ResourceID = VRS.ResourceID FOR XML PATH('')), 1, 1, '') ---- add a list of all collections with update deployments to see gaps ,[UpdateCollections] = STUFF((select '; ' + CIA.CollectionName from v_FullCollectionMembership FCM inner join v_CIAssignment CIA on CIA.CollectionID = FCM.CollectionID where CIA.AssignmentType in (1,5) and FCM.ResourceID = VRS.ResourceID group by FCM.ResourceID, CIA.CollectionName FOR XML PATH('')), 1, 1, '') from v_R_System VRS inner join ResourceList on ResourceList.ResourceID = VRS.ResourceID ----- Join update states left join ( Select ucs.ResourceID ,[UpdatesApproved] = sum(case when AssignedUpdates.CI_ID is not null then 1 else 0 end) ,[UpdatesApprovedAndMissing] = sum(case when AssignedUpdates.CI_ID is not null and ucs.Status = 2 then 1 else 0 end) ,[UpdatesMissingAll] = sum(case when ucs.Status = 2 then 1 else 0 end) ,[UpdatesApprovedAndMissingAndError] = sum(case when AssignedUpdates.CI_ID is not null and ucs.Status = 2 and (ucs.LastErrorCode is not null and ucs.LastErrorCode !=0) then 1 else 0 end) from v_UpdateComplianceStatus ucs inner join v_UpdateCIs upd on upd.CI_ID = ucs.CI_ID inner join ResourceList on ResourceList.ResourceID = ucs.ResourceID left join ( -- updates deployed to the system select ATM.ResourceID, CATC.CI_ID from v_CIAssignmentTargetedMachines ATM inner join v_CIAssignmentToCI CATC on CATC.AssignmentID = ATM.AssignmentID inner join ResourceList on ResourceList.ResourceID = ATM.ResourceID group by ATM.ResourceID, CATC.CI_ID ) as AssignedUpdates on UCS.ResourceID = AssignedUpdates.ResourceID and AssignedUpdates.CI_ID = UCS.CI_ID where upd.IsHidden = 0 and upd.CIType_ID in (1,8) --- 1 = update, 8 = update bundle, 9 = update group and ucs.CI_ID not in (Select CI_ID from ExcludedUpdates) -- exclude Defender and SCEP from statistic group by ucs.ResourceID ) UPDATESTATES on UPDATESTATES.ResourceID = VRS.ResourceID --- join last Rollup as reference left join ( select UCS.ResourceID, max(UCS.Status) as Status from v_UpdateComplianceStatus UCS inner join ResourceList on ResourceList.ResourceID = ucs.ResourceID inner join CumulativeUpdates CUU on CUU.CI_ID = UCS.CI_ID and CUU.Latest = 0 group by UCS.ResourceID ) as LASTROLLUPSTAT on LASTROLLUPSTAT.ResourceID = VRS.ResourceID --- join current Rollup as reference left join ( select UCS.ResourceID, max(UCS.Status) as Status from v_UpdateComplianceStatus UCS inner join ResourceList on ResourceList.ResourceID = ucs.ResourceID inner join CumulativeUpdates CUU on CUU.CI_ID = UCS.CI_ID and CUU.Latest = 1 group by UCS.ResourceID ) as CURRROLLUPSTAT on CURRROLLUPSTAT.ResourceID = VRS.ResourceID --- Join OS Information left join v_GS_OPERATING_SYSTEM GOS on GOS.ResourceID = VRS.ResourceID --- Join Client Health status --left join v_CH_ClientSummary CHCS on CHCS.ResourceID = VRS.ResourceID --- Join WSUS Client Info left join v_UpdateScanStatus USS on USS.ResourceID = VRS.ResourceID --- Join Antimalware Info left join v_GS_AntimalwareHealthStatus AHS on AHS.ResourceID = VRS.ResourceID --- join update compliance status (for overall compliance, failed and pending status) left join ( SELECT uas.ResourceID, count(uas.ResourceID) as AssignmentSum, --max(uas.LastComplianceMessageTime) as LastComplianceMessageTime, sum(CASE WHEN (IsCompliant = 1) THEN 1 ELSE 0 END) AS Compliant --sum(CASE WHEN (IsCompliant = 0) THEN 1 ELSE 0 END) AS NonCompliant, --sum(CASE WHEN (IsCompliant is null) THEN 1 ELSE 0 END) AS Unknown, --sum(CASE WHEN (IsCompliant = 0) AND LastEnforcementMessageID in (6,9) THEN 1 ELSE 0 END) AS Failed, --sum(CASE WHEN (IsCompliant = 0) AND LastEnforcementMessageID not in (0,6,9) THEN 1 ELSE 0 END) AS Pending FROM v_UpdateAssignmentStatus uas inner join ResourceList on ResourceList.ResourceID = uas.ResourceID where UAS.AssignmentID not in (Select AssignmentID from ExcludedUpdates where AssignmentType = 1) -- exclude defender and scep deployments from compliants as well as future deployments if selected group by uas.ResourceID ) as AssignmentStatus on AssignmentStatus.ResourceID = VRS.ResourceID ---- join last update installdate for security updates just as a reference to find problematic clients not installing security updates at all ---- need to convert datetime for older OS from 64bit binary to datetime left join ( select qfe.ResourceID --- CUU.CI_ID is not null means the current rollup is installed and we can use that installdate as reference ,LastInstallTime = max(CASE WHEN CUU.CI_ID is not null then ( --- the current rollup is installed, but do we have a valid install date? In some cases the installdate seems to be mising. For some Win10 1803 systems for example. --- "-05" impossible date, since the update could not be released the 5th day of the month (normally). That should indicate the missing date info and give us enough info about the state of the system CASE WHEN qfe.InstalledOn0 = '' THEN @UpdatePrefix + '-05 00:00:00' ELSE TRY_CONVERT(datetime,qfe.InstalledOn0,101) END ) else --CUU.CI_ID IS null ( --- due to some older systems sending datetime as binary like this: 01cc31160e1c4bac and since there is no cumulative update for such systems "CUU.CI_ID is null" should always be valid --- Found three different date strings so far: MM/dd/yyyy or yyyMMdd or binary CASE WHEN (LEN(QFE.InstalledOn0) > 10) THEN CAST((TRY_CONVERT(BIGINT,TRY_CONVERT(VARBINARY(64), '0x' + QFE.InstalledOn0,1)) / 864000000000.0 - 109207) AS DATETIME) ELSE TRY_CONVERT(datetime,qfe.InstalledOn0,101) END ) END) from v_GS_QUICK_FIX_ENGINEERING QFE inner join ResourceList on ResourceList.ResourceID = QFE.ResourceID left join CumulativeUpdates CUU on CUU.ArticleID = QFE.HotFixID0 where (QFE.Description0 = 'Security Update' or QFE.Description0 is null) group by qfe.ResourceID ) UPDINSTDATE on UPDINSTDATE.ResourceID = VRS.ResourceID ---- join Pending Reboot Info ---- left join BGB_LiveData BGBL on BGBL.ResourceID = VRS.ResourceID ---- <- no direct rights assigned and no other view available, using v_CombinedDeviceResources instead left join v_CombinedDeviceResources BGBL on BGBL.MachineID = VRS.ResourceID ---- fix for SQL compat level problem ---- https://support.microsoft.com/en-us/help/3196320/sql-query-times-out-or-console-slow-on-certain-configuration-manager-d ---- Force legacy cardinality for SQL server versions before 2016 SP1 (SQL version less than 13.0.4001.0) --OPTION (QUERYTRACEON 9481) ---- Force legacy cardinality for SQL server versions 2016 SP1 and higher (SQL version equal or greater than 13.0.4001.0) --OPTION (USE HINT ('FORCE_LEGACY_CARDINALITY_ESTIMATION'))
74.810458
354
0.662939
f4ec5bc74ebfb1886bec659623478713a34d0ba4
251
swift
Swift
px-templates/VIP.xctemplate/Without header/___FILEBASENAME___Presenter.swift
daranguizml/px-ios
17d132b9410167c1edc0dc1c38483263e7c6f1fc
[ "MIT" ]
81
2016-09-22T16:09:23.000Z
2022-02-15T21:25:40.000Z
px-templates/VIP.xctemplate/Without header/___FILEBASENAME___Presenter.swift
daranguizml/px-ios
17d132b9410167c1edc0dc1c38483263e7c6f1fc
[ "MIT" ]
1,160
2016-07-12T18:30:31.000Z
2022-03-09T14:37:39.000Z
px-templates/VIP.xctemplate/Without header/___FILEBASENAME___Presenter.swift
daranguizml/px-ios
17d132b9410167c1edc0dc1c38483263e7c6f1fc
[ "MIT" ]
87
2016-12-05T19:22:50.000Z
2022-03-07T18:42:43.000Z
protocol ___FILEBASENAMEASIDENTIFIER___Protocol { } final class ___FILEBASENAMEASIDENTIFIER___: Presenter { } // MARK: ___FILEBASENAMEASIDENTIFIER___Protocol extension ___FILEBASENAMEASIDENTIFIER___: ___FILEBASENAMEASIDENTIFIER___Protocol { }
20.916667
82
0.85259
41c852dac500724106eb9f28167e5b20b42105fe
446
h
C
src/lib/bios_opencv/filter/flip.h
BioBoost/opencv_potty_detector
45700507dc491f899c8d8a2bfa5212fe4310e3e2
[ "MIT" ]
1
2018-02-21T19:00:29.000Z
2018-02-21T19:00:29.000Z
src/lib/bios_opencv/filter/flip.h
BioBoost/opencv_potty_detector
45700507dc491f899c8d8a2bfa5212fe4310e3e2
[ "MIT" ]
null
null
null
src/lib/bios_opencv/filter/flip.h
BioBoost/opencv_potty_detector
45700507dc491f899c8d8a2bfa5212fe4310e3e2
[ "MIT" ]
null
null
null
#pragma once #include "types/process_filter.h" namespace BiosOpenCV { enum FlipDirection { HORIZONTAL = 0, VERTICAL = 1, BOTH = -1 }; class Flip : public ProcessFilter { private: FlipDirection direction; public: Flip(const cv::Mat& original, cv::Mat& result, FlipDirection direction=HORIZONTAL); Flip(cv::Mat& image, FlipDirection direction=HORIZONTAL); public: virtual void execute(void); }; };
19.391304
89
0.672646
6c833fe58a4bf048273cfbd501c21ff1d1dcdff9
1,716
go
Go
meter/meter.go
tmeidinger/evcc
279dfe63a66948b0a461e371868563665483125b
[ "MIT" ]
null
null
null
meter/meter.go
tmeidinger/evcc
279dfe63a66948b0a461e371868563665483125b
[ "MIT" ]
null
null
null
meter/meter.go
tmeidinger/evcc
279dfe63a66948b0a461e371868563665483125b
[ "MIT" ]
null
null
null
package meter import ( "github.com/andig/evcc/api" "github.com/andig/evcc/provider" "github.com/andig/evcc/util" ) // MeterEnergyDecorator decorates an api.Meter with api.MeterEnergy type MeterEnergyDecorator struct { api.Meter api.MeterEnergy } // NewConfigurableFromConfig creates api.Meter from config func NewConfigurableFromConfig(log *util.Logger, other map[string]interface{}) api.Meter { cc := struct { Power provider.Config Energy *provider.Config // optional }{} util.DecodeOther(log, other, &cc) m := NewConfigurable(provider.NewFloatGetterFromConfig(log, cc.Power)) // decorate Meter with MeterEnergy if cc.Energy != nil { m = &MeterEnergyDecorator{ Meter: m, MeterEnergy: NewMeterEnergy(provider.NewFloatGetterFromConfig(log, *cc.Energy)), } } return m } // NewConfigurable creates a new charger func NewConfigurable(currentPowerG provider.FloatGetter) api.Meter { return &Meter{ currentPowerG: currentPowerG, } } // Meter is an api.Meter implementation with configurable getters and setters. type Meter struct { currentPowerG provider.FloatGetter } // CurrentPower implements the Meter.CurrentPower interface func (m *Meter) CurrentPower() (float64, error) { return m.currentPowerG() } // MeterEnergy is an api.MeterEnergy implementation with configurable getters and setters. type MeterEnergy struct { totalEnergyG provider.FloatGetter } // NewMeterEnergy creates a new charger func NewMeterEnergy(totalEnergyG provider.FloatGetter) api.MeterEnergy { return &MeterEnergy{ totalEnergyG: totalEnergyG, } } // TotalEnergy implements the Meter.TotalEnergy interface func (m *MeterEnergy) TotalEnergy() (float64, error) { return m.totalEnergyG() }
24.869565
90
0.7669
46bd9a1ed6d260c9e35b706581b7eee9c3b604a0
1,064
html
HTML
third_party/blink/web_tests/tables/mozilla/collapsing_borders/bug127040.html
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
third_party/blink/web_tests/tables/mozilla/collapsing_borders/bug127040.html
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
third_party/blink/web_tests/tables/mozilla/collapsing_borders/bug127040.html
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
<!doctype html public "-//w3c//dtd html 3.2//en"> <html> <head> <title>testcase for bug 127040</title> <meta name="GENERATOR" content="Arachnophilia 4.0"> <meta name="FORMATTER" content="Arachnophilia 4.0"> </head> <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000"> <TABLE style="background-color: green; border-collapse: collapse; border-color: blue; border-style: solid; border-width: 2px; "> <TR> <TD style="background-color: red; border-color: blue; border-width: 2px; border-style: solid; ">asdf</TD> <TD style="border-color: blue; border-width: 2px; border-style: solid; ">qwer</TD> </TR> <TR> <TD style="background-color: red; border-color: blue; border-width: 2px; border-style: solid; ">fdsa</TD> <TD style="background-color: red; border-color: blue; border-width: 2px; border-style: solid; ">rewq</TD> </TR> <TR> <TD style="border-color: blue; border-width: 2px; border-style: solid; ">zxcv</TD> <TD style="border-color: blue; border-width: 2px; border-style: solid; ">uiop</TD> </TR> </TABLE> </body> </html>
28.756757
86
0.68985
9cdb4e1d34227bf3c071b494f6a69e8c9e2ad616
39
css
CSS
pg-frontend/src/components/note-content/note-content.css
MKnoski/Playground
7f032070d890556b59741d31db00edca334f5781
[ "MIT" ]
null
null
null
pg-frontend/src/components/note-content/note-content.css
MKnoski/Playground
7f032070d890556b59741d31db00edca334f5781
[ "MIT" ]
3
2021-08-13T08:22:25.000Z
2022-02-26T14:29:45.000Z
pg-frontend/src/components/note-content/note-content.css
MKnoski/playground
7f032070d890556b59741d31db00edca334f5781
[ "MIT" ]
null
null
null
.note-content { margin: 20px 50px; }
9.75
20
0.641026
5a25bc75cdb1b82ef2d5adb5a86eed23d8e3b3a3
495
swift
Swift
Hydravion/Models/Resource.swift
bmlzootown/Hydravion-tvOS
1d51ebd7b3d3287b0e75e494d86cb5b63b0b5fb9
[ "MIT" ]
4
2020-05-05T07:46:15.000Z
2021-12-29T21:56:17.000Z
Hydravion/Models/Resource.swift
bmlzootown/Hydravion-tvOS
1d51ebd7b3d3287b0e75e494d86cb5b63b0b5fb9
[ "MIT" ]
null
null
null
Hydravion/Models/Resource.swift
bmlzootown/Hydravion-tvOS
1d51ebd7b3d3287b0e75e494d86cb5b63b0b5fb9
[ "MIT" ]
null
null
null
import Foundation struct Resource : Codable { let uri : String? let resourceData : ResourceData? enum CodingKeys: String, CodingKey { case uri = "uri" case resourceData = "data" } init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: CodingKeys.self) uri = try values.decodeIfPresent(String.self, forKey: .uri) resourceData = try values.decodeIfPresent(ResourceData.self, forKey: .resourceData) } }
24.75
91
0.662626
ebe638a70beeb3c741891af06b577b0ec4a24d84
365
dart
Dart
component_templates/state_notifier/{{componentName}}/{{componentName}}_notifier.dart
rydein/scaff_template
6b65de8c99cf7a53515ad4e1744567cd5c9e5884
[ "MIT" ]
null
null
null
component_templates/state_notifier/{{componentName}}/{{componentName}}_notifier.dart
rydein/scaff_template
6b65de8c99cf7a53515ad4e1744567cd5c9e5884
[ "MIT" ]
null
null
null
component_templates/state_notifier/{{componentName}}/{{componentName}}_notifier.dart
rydein/scaff_template
6b65de8c99cf7a53515ad4e1744567cd5c9e5884
[ "MIT" ]
null
null
null
import 'package:flutter/foundation.dart'; import 'package:state_notifier/state_notifier.dart'; import '{{componentName}}_state.dart'; class {{className}}Notifier extends StateNotifier<{{className}}State> with LocatorMixin { final repository; {{className}}Notifier({@required this.repository}) : super(const {{className}}State()); Future fetch() {} }
28.076923
89
0.736986
05efb43270d368534527751f8b621776f527a6e1
1,690
html
HTML
2-resources/__CHEAT-SHEETS/All/google_analytics.html
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/__CHEAT-SHEETS/All/google_analytics.html
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/__CHEAT-SHEETS/All/google_analytics.html
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-11-05T07:48:26.000Z
2021-11-05T07:48:26.000Z
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous"> <link rel="stylesheet" href="./prism.css"> <script async defer src="./prism.js"></script> </head> <body>; <h3 id="pageview">Pageview</h3> <pre><code>// Analytics.js ga(&#39;create&#39;, &#39;UA-XXXX-Y&#39;, &#39;auto&#39;); ga(&#39;send&#39;, &#39;pageview&#39;);</code></pre> <h3 id="track-events">Track events</h3> <pre><code>// ga.js // [..., category, action, label, value (int), noninteraction (bool)] _gaq.push([&#39;_trackEvent&#39;, &#39;Videos&#39;, &#39;Play&#39;, &#39;Birthday video&#39;, true]) _gaq.push([&#39;_trackEvent&#39;, &#39;Projects&#39;, &#39;Donate&#39;, &#39;Project name&#39;]) _gaq.push([&#39;_trackEvent&#39;, &#39;Accounts&#39;, &#39;Login&#39;]) // Analytics.js // , , category, action, label, value (int) ga(&#39;send&#39;, &#39;event&#39;, &#39;button&#39;, &#39;click&#39;, &#39;nav buttons&#39;, 4);</code></pre> <h3 id="variables">Variables</h3> <pre><code>// [..., index, name, value, scope (optional)] _gaq.push([&#39;_setCustomVar&#39;, 1, &#39;Logged in&#39;, &#39;Yes&#39;, 2]); // Scope = 1 (visitor), 2 (session), 3 (page, default)</code></pre> <p>https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingCustomVariables https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide</p> </body></html>
51.212121
211
0.659172
f3b306ef6338ab187d33066f58db9c6fa8c33d3e
24,231
asm
Assembly
third_party/boringssl/win-x86_64/crypto/bn/modexp512-x86_64.asm
domenic/mojo
53dda76fed90a47c35ed6e06baf833a0d44495b8
[ "BSD-3-Clause" ]
5
2019-05-24T01:25:34.000Z
2020-04-06T05:07:01.000Z
third_party/boringssl/win-x86_64/crypto/bn/modexp512-x86_64.asm
domenic/mojo
53dda76fed90a47c35ed6e06baf833a0d44495b8
[ "BSD-3-Clause" ]
null
null
null
third_party/boringssl/win-x86_64/crypto/bn/modexp512-x86_64.asm
domenic/mojo
53dda76fed90a47c35ed6e06baf833a0d44495b8
[ "BSD-3-Clause" ]
5
2016-12-23T04:21:10.000Z
2020-06-18T13:52:33.000Z
default rel %define XMMWORD %define YMMWORD %define ZMMWORD section .text code align=64 ALIGN 16 MULADD_128x512: mov rax,QWORD[rsi] mul rbp add r8,rax adc rdx,0 mov QWORD[rcx],r8 mov rbx,rdx mov rax,QWORD[8+rsi] mul rbp add r9,rax adc rdx,0 add r9,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[16+rsi] mul rbp add r10,rax adc rdx,0 add r10,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[24+rsi] mul rbp add r11,rax adc rdx,0 add r11,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[32+rsi] mul rbp add r12,rax adc rdx,0 add r12,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[40+rsi] mul rbp add r13,rax adc rdx,0 add r13,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[48+rsi] mul rbp add r14,rax adc rdx,0 add r14,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[56+rsi] mul rbp add r15,rax adc rdx,0 add r15,rbx adc rdx,0 mov r8,rdx mov rbp,QWORD[8+rdi] mov rax,QWORD[rsi] mul rbp add r9,rax adc rdx,0 mov QWORD[8+rcx],r9 mov rbx,rdx mov rax,QWORD[8+rsi] mul rbp add r10,rax adc rdx,0 add r10,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[16+rsi] mul rbp add r11,rax adc rdx,0 add r11,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[24+rsi] mul rbp add r12,rax adc rdx,0 add r12,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[32+rsi] mul rbp add r13,rax adc rdx,0 add r13,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[40+rsi] mul rbp add r14,rax adc rdx,0 add r14,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[48+rsi] mul rbp add r15,rax adc rdx,0 add r15,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[56+rsi] mul rbp add r8,rax adc rdx,0 add r8,rbx adc rdx,0 mov r9,rdx DB 0F3h,0C3h ;repret ALIGN 16 mont_reduce: lea rdi,[192+rsp] mov rsi,QWORD[32+rsp] add rsi,576 lea rcx,[520+rsp] mov rbp,QWORD[96+rcx] mov rax,QWORD[rsi] mul rbp mov r8,QWORD[rcx] add r8,rax adc rdx,0 mov QWORD[rdi],r8 mov rbx,rdx mov rax,QWORD[8+rsi] mul rbp mov r9,QWORD[8+rcx] add r9,rax adc rdx,0 add r9,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[16+rsi] mul rbp mov r10,QWORD[16+rcx] add r10,rax adc rdx,0 add r10,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[24+rsi] mul rbp mov r11,QWORD[24+rcx] add r11,rax adc rdx,0 add r11,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[32+rsi] mul rbp mov r12,QWORD[32+rcx] add r12,rax adc rdx,0 add r12,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[40+rsi] mul rbp mov r13,QWORD[40+rcx] add r13,rax adc rdx,0 add r13,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[48+rsi] mul rbp mov r14,QWORD[48+rcx] add r14,rax adc rdx,0 add r14,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[56+rsi] mul rbp mov r15,QWORD[56+rcx] add r15,rax adc rdx,0 add r15,rbx adc rdx,0 mov r8,rdx mov rbp,QWORD[104+rcx] mov rax,QWORD[rsi] mul rbp add r9,rax adc rdx,0 mov QWORD[8+rdi],r9 mov rbx,rdx mov rax,QWORD[8+rsi] mul rbp add r10,rax adc rdx,0 add r10,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[16+rsi] mul rbp add r11,rax adc rdx,0 add r11,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[24+rsi] mul rbp add r12,rax adc rdx,0 add r12,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[32+rsi] mul rbp add r13,rax adc rdx,0 add r13,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[40+rsi] mul rbp add r14,rax adc rdx,0 add r14,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[48+rsi] mul rbp add r15,rax adc rdx,0 add r15,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[56+rsi] mul rbp add r8,rax adc rdx,0 add r8,rbx adc rdx,0 mov r9,rdx mov rbp,QWORD[112+rcx] mov rax,QWORD[rsi] mul rbp add r10,rax adc rdx,0 mov QWORD[16+rdi],r10 mov rbx,rdx mov rax,QWORD[8+rsi] mul rbp add r11,rax adc rdx,0 add r11,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[16+rsi] mul rbp add r12,rax adc rdx,0 add r12,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[24+rsi] mul rbp add r13,rax adc rdx,0 add r13,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[32+rsi] mul rbp add r14,rax adc rdx,0 add r14,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[40+rsi] mul rbp add r15,rax adc rdx,0 add r15,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[48+rsi] mul rbp add r8,rax adc rdx,0 add r8,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[56+rsi] mul rbp add r9,rax adc rdx,0 add r9,rbx adc rdx,0 mov r10,rdx mov rbp,QWORD[120+rcx] mov rax,QWORD[rsi] mul rbp add r11,rax adc rdx,0 mov QWORD[24+rdi],r11 mov rbx,rdx mov rax,QWORD[8+rsi] mul rbp add r12,rax adc rdx,0 add r12,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[16+rsi] mul rbp add r13,rax adc rdx,0 add r13,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[24+rsi] mul rbp add r14,rax adc rdx,0 add r14,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[32+rsi] mul rbp add r15,rax adc rdx,0 add r15,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[40+rsi] mul rbp add r8,rax adc rdx,0 add r8,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[48+rsi] mul rbp add r9,rax adc rdx,0 add r9,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[56+rsi] mul rbp add r10,rax adc rdx,0 add r10,rbx adc rdx,0 mov r11,rdx xor rax,rax add r8,QWORD[64+rcx] adc r9,QWORD[72+rcx] adc r10,QWORD[80+rcx] adc r11,QWORD[88+rcx] adc rax,0 mov QWORD[64+rdi],r8 mov QWORD[72+rdi],r9 mov rbp,r10 mov QWORD[88+rdi],r11 mov QWORD[384+rsp],rax mov r8,QWORD[rdi] mov r9,QWORD[8+rdi] mov r10,QWORD[16+rdi] mov r11,QWORD[24+rdi] add rdi,8*10 add rsi,64 lea rcx,[296+rsp] call MULADD_128x512 mov rax,QWORD[384+rsp] add r8,QWORD[((-16))+rdi] adc r9,QWORD[((-8))+rdi] mov QWORD[64+rcx],r8 mov QWORD[72+rcx],r9 adc rax,rax mov QWORD[384+rsp],rax lea rdi,[192+rsp] add rsi,64 mov r8,QWORD[rsi] mov rbx,QWORD[8+rsi] mov rax,QWORD[rcx] mul r8 mov rbp,rax mov r9,rdx mov rax,QWORD[8+rcx] mul r8 add r9,rax mov rax,QWORD[rcx] mul rbx add r9,rax mov QWORD[8+rdi],r9 sub rsi,192 mov r8,QWORD[rcx] mov r9,QWORD[8+rcx] call MULADD_128x512 mov rax,QWORD[rsi] mov rbx,QWORD[8+rsi] mov rdi,QWORD[16+rsi] mov rdx,QWORD[24+rsi] mov rbp,QWORD[384+rsp] add r8,QWORD[64+rcx] adc r9,QWORD[72+rcx] adc rbp,rbp shl rbp,3 mov rcx,QWORD[32+rsp] add rbp,rcx xor rsi,rsi add r10,QWORD[rbp] adc r11,QWORD[64+rbp] adc r12,QWORD[128+rbp] adc r13,QWORD[192+rbp] adc r14,QWORD[256+rbp] adc r15,QWORD[320+rbp] adc r8,QWORD[384+rbp] adc r9,QWORD[448+rbp] sbb rsi,0 and rax,rsi and rbx,rsi and rdi,rsi and rdx,rsi mov rbp,1 sub r10,rax sbb r11,rbx sbb r12,rdi sbb r13,rdx sbb rbp,0 add rcx,512 mov rax,QWORD[32+rcx] mov rbx,QWORD[40+rcx] mov rdi,QWORD[48+rcx] mov rdx,QWORD[56+rcx] and rax,rsi and rbx,rsi and rdi,rsi and rdx,rsi sub rbp,1 sbb r14,rax sbb r15,rbx sbb r8,rdi sbb r9,rdx mov rsi,QWORD[144+rsp] mov QWORD[rsi],r10 mov QWORD[8+rsi],r11 mov QWORD[16+rsi],r12 mov QWORD[24+rsi],r13 mov QWORD[32+rsi],r14 mov QWORD[40+rsi],r15 mov QWORD[48+rsi],r8 mov QWORD[56+rsi],r9 DB 0F3h,0C3h ;repret ALIGN 16 mont_mul_a3b: mov rbp,QWORD[rdi] mov rax,r10 mul rbp mov QWORD[520+rsp],rax mov r10,rdx mov rax,r11 mul rbp add r10,rax adc rdx,0 mov r11,rdx mov rax,r12 mul rbp add r11,rax adc rdx,0 mov r12,rdx mov rax,r13 mul rbp add r12,rax adc rdx,0 mov r13,rdx mov rax,r14 mul rbp add r13,rax adc rdx,0 mov r14,rdx mov rax,r15 mul rbp add r14,rax adc rdx,0 mov r15,rdx mov rax,r8 mul rbp add r15,rax adc rdx,0 mov r8,rdx mov rax,r9 mul rbp add r8,rax adc rdx,0 mov r9,rdx mov rbp,QWORD[8+rdi] mov rax,QWORD[rsi] mul rbp add r10,rax adc rdx,0 mov QWORD[528+rsp],r10 mov rbx,rdx mov rax,QWORD[8+rsi] mul rbp add r11,rax adc rdx,0 add r11,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[16+rsi] mul rbp add r12,rax adc rdx,0 add r12,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[24+rsi] mul rbp add r13,rax adc rdx,0 add r13,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[32+rsi] mul rbp add r14,rax adc rdx,0 add r14,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[40+rsi] mul rbp add r15,rax adc rdx,0 add r15,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[48+rsi] mul rbp add r8,rax adc rdx,0 add r8,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[56+rsi] mul rbp add r9,rax adc rdx,0 add r9,rbx adc rdx,0 mov r10,rdx mov rbp,QWORD[16+rdi] mov rax,QWORD[rsi] mul rbp add r11,rax adc rdx,0 mov QWORD[536+rsp],r11 mov rbx,rdx mov rax,QWORD[8+rsi] mul rbp add r12,rax adc rdx,0 add r12,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[16+rsi] mul rbp add r13,rax adc rdx,0 add r13,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[24+rsi] mul rbp add r14,rax adc rdx,0 add r14,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[32+rsi] mul rbp add r15,rax adc rdx,0 add r15,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[40+rsi] mul rbp add r8,rax adc rdx,0 add r8,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[48+rsi] mul rbp add r9,rax adc rdx,0 add r9,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[56+rsi] mul rbp add r10,rax adc rdx,0 add r10,rbx adc rdx,0 mov r11,rdx mov rbp,QWORD[24+rdi] mov rax,QWORD[rsi] mul rbp add r12,rax adc rdx,0 mov QWORD[544+rsp],r12 mov rbx,rdx mov rax,QWORD[8+rsi] mul rbp add r13,rax adc rdx,0 add r13,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[16+rsi] mul rbp add r14,rax adc rdx,0 add r14,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[24+rsi] mul rbp add r15,rax adc rdx,0 add r15,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[32+rsi] mul rbp add r8,rax adc rdx,0 add r8,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[40+rsi] mul rbp add r9,rax adc rdx,0 add r9,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[48+rsi] mul rbp add r10,rax adc rdx,0 add r10,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[56+rsi] mul rbp add r11,rax adc rdx,0 add r11,rbx adc rdx,0 mov r12,rdx mov rbp,QWORD[32+rdi] mov rax,QWORD[rsi] mul rbp add r13,rax adc rdx,0 mov QWORD[552+rsp],r13 mov rbx,rdx mov rax,QWORD[8+rsi] mul rbp add r14,rax adc rdx,0 add r14,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[16+rsi] mul rbp add r15,rax adc rdx,0 add r15,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[24+rsi] mul rbp add r8,rax adc rdx,0 add r8,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[32+rsi] mul rbp add r9,rax adc rdx,0 add r9,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[40+rsi] mul rbp add r10,rax adc rdx,0 add r10,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[48+rsi] mul rbp add r11,rax adc rdx,0 add r11,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[56+rsi] mul rbp add r12,rax adc rdx,0 add r12,rbx adc rdx,0 mov r13,rdx mov rbp,QWORD[40+rdi] mov rax,QWORD[rsi] mul rbp add r14,rax adc rdx,0 mov QWORD[560+rsp],r14 mov rbx,rdx mov rax,QWORD[8+rsi] mul rbp add r15,rax adc rdx,0 add r15,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[16+rsi] mul rbp add r8,rax adc rdx,0 add r8,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[24+rsi] mul rbp add r9,rax adc rdx,0 add r9,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[32+rsi] mul rbp add r10,rax adc rdx,0 add r10,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[40+rsi] mul rbp add r11,rax adc rdx,0 add r11,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[48+rsi] mul rbp add r12,rax adc rdx,0 add r12,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[56+rsi] mul rbp add r13,rax adc rdx,0 add r13,rbx adc rdx,0 mov r14,rdx mov rbp,QWORD[48+rdi] mov rax,QWORD[rsi] mul rbp add r15,rax adc rdx,0 mov QWORD[568+rsp],r15 mov rbx,rdx mov rax,QWORD[8+rsi] mul rbp add r8,rax adc rdx,0 add r8,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[16+rsi] mul rbp add r9,rax adc rdx,0 add r9,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[24+rsi] mul rbp add r10,rax adc rdx,0 add r10,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[32+rsi] mul rbp add r11,rax adc rdx,0 add r11,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[40+rsi] mul rbp add r12,rax adc rdx,0 add r12,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[48+rsi] mul rbp add r13,rax adc rdx,0 add r13,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[56+rsi] mul rbp add r14,rax adc rdx,0 add r14,rbx adc rdx,0 mov r15,rdx mov rbp,QWORD[56+rdi] mov rax,QWORD[rsi] mul rbp add r8,rax adc rdx,0 mov QWORD[576+rsp],r8 mov rbx,rdx mov rax,QWORD[8+rsi] mul rbp add r9,rax adc rdx,0 add r9,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[16+rsi] mul rbp add r10,rax adc rdx,0 add r10,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[24+rsi] mul rbp add r11,rax adc rdx,0 add r11,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[32+rsi] mul rbp add r12,rax adc rdx,0 add r12,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[40+rsi] mul rbp add r13,rax adc rdx,0 add r13,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[48+rsi] mul rbp add r14,rax adc rdx,0 add r14,rbx adc rdx,0 mov rbx,rdx mov rax,QWORD[56+rsi] mul rbp add r15,rax adc rdx,0 add r15,rbx adc rdx,0 mov r8,rdx mov QWORD[584+rsp],r9 mov QWORD[592+rsp],r10 mov QWORD[600+rsp],r11 mov QWORD[608+rsp],r12 mov QWORD[616+rsp],r13 mov QWORD[624+rsp],r14 mov QWORD[632+rsp],r15 mov QWORD[640+rsp],r8 jmp NEAR mont_reduce ALIGN 16 sqr_reduce: mov rcx,QWORD[16+rsp] mov rbx,r10 mov rax,r11 mul rbx mov QWORD[528+rsp],rax mov r10,rdx mov rax,r12 mul rbx add r10,rax adc rdx,0 mov r11,rdx mov rax,r13 mul rbx add r11,rax adc rdx,0 mov r12,rdx mov rax,r14 mul rbx add r12,rax adc rdx,0 mov r13,rdx mov rax,r15 mul rbx add r13,rax adc rdx,0 mov r14,rdx mov rax,r8 mul rbx add r14,rax adc rdx,0 mov r15,rdx mov rax,r9 mul rbx add r15,rax adc rdx,0 mov rsi,rdx mov QWORD[536+rsp],r10 mov rbx,QWORD[8+rcx] mov rax,QWORD[16+rcx] mul rbx add r11,rax adc rdx,0 mov QWORD[544+rsp],r11 mov r10,rdx mov rax,QWORD[24+rcx] mul rbx add r12,rax adc rdx,0 add r12,r10 adc rdx,0 mov QWORD[552+rsp],r12 mov r10,rdx mov rax,QWORD[32+rcx] mul rbx add r13,rax adc rdx,0 add r13,r10 adc rdx,0 mov r10,rdx mov rax,QWORD[40+rcx] mul rbx add r14,rax adc rdx,0 add r14,r10 adc rdx,0 mov r10,rdx mov rax,r8 mul rbx add r15,rax adc rdx,0 add r15,r10 adc rdx,0 mov r10,rdx mov rax,r9 mul rbx add rsi,rax adc rdx,0 add rsi,r10 adc rdx,0 mov r11,rdx mov rbx,QWORD[16+rcx] mov rax,QWORD[24+rcx] mul rbx add r13,rax adc rdx,0 mov QWORD[560+rsp],r13 mov r10,rdx mov rax,QWORD[32+rcx] mul rbx add r14,rax adc rdx,0 add r14,r10 adc rdx,0 mov QWORD[568+rsp],r14 mov r10,rdx mov rax,QWORD[40+rcx] mul rbx add r15,rax adc rdx,0 add r15,r10 adc rdx,0 mov r10,rdx mov rax,r8 mul rbx add rsi,rax adc rdx,0 add rsi,r10 adc rdx,0 mov r10,rdx mov rax,r9 mul rbx add r11,rax adc rdx,0 add r11,r10 adc rdx,0 mov r12,rdx mov rbx,QWORD[24+rcx] mov rax,QWORD[32+rcx] mul rbx add r15,rax adc rdx,0 mov QWORD[576+rsp],r15 mov r10,rdx mov rax,QWORD[40+rcx] mul rbx add rsi,rax adc rdx,0 add rsi,r10 adc rdx,0 mov QWORD[584+rsp],rsi mov r10,rdx mov rax,r8 mul rbx add r11,rax adc rdx,0 add r11,r10 adc rdx,0 mov r10,rdx mov rax,r9 mul rbx add r12,rax adc rdx,0 add r12,r10 adc rdx,0 mov r15,rdx mov rbx,QWORD[32+rcx] mov rax,QWORD[40+rcx] mul rbx add r11,rax adc rdx,0 mov QWORD[592+rsp],r11 mov r10,rdx mov rax,r8 mul rbx add r12,rax adc rdx,0 add r12,r10 adc rdx,0 mov QWORD[600+rsp],r12 mov r10,rdx mov rax,r9 mul rbx add r15,rax adc rdx,0 add r15,r10 adc rdx,0 mov r11,rdx mov rbx,QWORD[40+rcx] mov rax,r8 mul rbx add r15,rax adc rdx,0 mov QWORD[608+rsp],r15 mov r10,rdx mov rax,r9 mul rbx add r11,rax adc rdx,0 add r11,r10 adc rdx,0 mov QWORD[616+rsp],r11 mov r12,rdx mov rbx,r8 mov rax,r9 mul rbx add r12,rax adc rdx,0 mov QWORD[624+rsp],r12 mov QWORD[632+rsp],rdx mov r10,QWORD[528+rsp] mov r11,QWORD[536+rsp] mov r12,QWORD[544+rsp] mov r13,QWORD[552+rsp] mov r14,QWORD[560+rsp] mov r15,QWORD[568+rsp] mov rax,QWORD[24+rcx] mul rax mov rdi,rax mov r8,rdx add r10,r10 adc r11,r11 adc r12,r12 adc r13,r13 adc r14,r14 adc r15,r15 adc r8,0 mov rax,QWORD[rcx] mul rax mov QWORD[520+rsp],rax mov rbx,rdx mov rax,QWORD[8+rcx] mul rax add r10,rbx adc r11,rax adc rdx,0 mov rbx,rdx mov QWORD[528+rsp],r10 mov QWORD[536+rsp],r11 mov rax,QWORD[16+rcx] mul rax add r12,rbx adc r13,rax adc rdx,0 mov rbx,rdx mov QWORD[544+rsp],r12 mov QWORD[552+rsp],r13 xor rbp,rbp add r14,rbx adc r15,rdi adc rbp,0 mov QWORD[560+rsp],r14 mov QWORD[568+rsp],r15 mov r10,QWORD[576+rsp] mov r11,QWORD[584+rsp] mov r12,QWORD[592+rsp] mov r13,QWORD[600+rsp] mov r14,QWORD[608+rsp] mov r15,QWORD[616+rsp] mov rdi,QWORD[624+rsp] mov rsi,QWORD[632+rsp] mov rax,r9 mul rax mov r9,rax mov rbx,rdx add r10,r10 adc r11,r11 adc r12,r12 adc r13,r13 adc r14,r14 adc r15,r15 adc rdi,rdi adc rsi,rsi adc rbx,0 add r10,rbp mov rax,QWORD[32+rcx] mul rax add r10,r8 adc r11,rax adc rdx,0 mov rbp,rdx mov QWORD[576+rsp],r10 mov QWORD[584+rsp],r11 mov rax,QWORD[40+rcx] mul rax add r12,rbp adc r13,rax adc rdx,0 mov rbp,rdx mov QWORD[592+rsp],r12 mov QWORD[600+rsp],r13 mov rax,QWORD[48+rcx] mul rax add r14,rbp adc r15,rax adc rdx,0 mov QWORD[608+rsp],r14 mov QWORD[616+rsp],r15 add rdi,rdx adc rsi,r9 adc rbx,0 mov QWORD[624+rsp],rdi mov QWORD[632+rsp],rsi mov QWORD[640+rsp],rbx jmp NEAR mont_reduce global mod_exp_512 mod_exp_512: mov QWORD[8+rsp],rdi ;WIN64 prologue mov QWORD[16+rsp],rsi mov rax,rsp $L$SEH_begin_mod_exp_512: mov rdi,rcx mov rsi,rdx mov rdx,r8 mov rcx,r9 push rbp push rbx push r12 push r13 push r14 push r15 mov r8,rsp sub rsp,2688 and rsp,-64 mov QWORD[rsp],r8 mov QWORD[8+rsp],rdi mov QWORD[16+rsp],rsi mov QWORD[24+rsp],rcx $L$body: pxor xmm4,xmm4 movdqu xmm0,XMMWORD[rsi] movdqu xmm1,XMMWORD[16+rsi] movdqu xmm2,XMMWORD[32+rsi] movdqu xmm3,XMMWORD[48+rsi] movdqa XMMWORD[512+rsp],xmm4 movdqa XMMWORD[528+rsp],xmm4 movdqa XMMWORD[608+rsp],xmm4 movdqa XMMWORD[624+rsp],xmm4 movdqa XMMWORD[544+rsp],xmm0 movdqa XMMWORD[560+rsp],xmm1 movdqa XMMWORD[576+rsp],xmm2 movdqa XMMWORD[592+rsp],xmm3 movdqu xmm0,XMMWORD[rdx] movdqu xmm1,XMMWORD[16+rdx] movdqu xmm2,XMMWORD[32+rdx] movdqu xmm3,XMMWORD[48+rdx] lea rbx,[384+rsp] mov QWORD[136+rsp],rbx call mont_reduce lea rcx,[448+rsp] xor rax,rax mov QWORD[rcx],rax mov QWORD[8+rcx],rax mov QWORD[24+rcx],rax mov QWORD[32+rcx],rax mov QWORD[40+rcx],rax mov QWORD[48+rcx],rax mov QWORD[56+rcx],rax mov QWORD[128+rsp],rax mov QWORD[16+rcx],1 lea rbp,[640+rsp] mov rsi,rcx mov rdi,rbp mov rax,8 loop_0: mov rbx,QWORD[rcx] mov WORD[rdi],bx shr rbx,16 mov WORD[64+rdi],bx shr rbx,16 mov WORD[128+rdi],bx shr rbx,16 mov WORD[192+rdi],bx lea rcx,[8+rcx] lea rdi,[256+rdi] dec rax jnz NEAR loop_0 mov rax,31 mov QWORD[32+rsp],rax mov QWORD[40+rsp],rbp mov QWORD[136+rsp],rsi mov r10,QWORD[rsi] mov r11,QWORD[8+rsi] mov r12,QWORD[16+rsi] mov r13,QWORD[24+rsi] mov r14,QWORD[32+rsi] mov r15,QWORD[40+rsi] mov r8,QWORD[48+rsi] mov r9,QWORD[56+rsi] init_loop: lea rdi,[384+rsp] call mont_mul_a3b lea rsi,[448+rsp] mov rbp,QWORD[40+rsp] add rbp,2 mov QWORD[40+rsp],rbp mov rcx,rsi mov rax,8 loop_1: mov rbx,QWORD[rcx] mov WORD[rbp],bx shr rbx,16 mov WORD[64+rbp],bx shr rbx,16 mov WORD[128+rbp],bx shr rbx,16 mov WORD[192+rbp],bx lea rcx,[8+rcx] lea rbp,[256+rbp] dec rax jnz NEAR loop_1 mov rax,QWORD[32+rsp] sub rax,1 mov QWORD[32+rsp],rax jne NEAR init_loop movdqa XMMWORD[64+rsp],xmm0 movdqa XMMWORD[80+rsp],xmm1 movdqa XMMWORD[96+rsp],xmm2 movdqa XMMWORD[112+rsp],xmm3 mov eax,DWORD[126+rsp] mov rdx,rax shr rax,11 and edx,0x07FF mov DWORD[126+rsp],edx lea rsi,[640+rax*2+rsp] mov rdx,QWORD[8+rsp] mov rbp,4 loop_2: movzx rbx,WORD[192+rsi] movzx rax,WORD[448+rsi] shl rbx,16 shl rax,16 mov bx,WORD[128+rsi] mov ax,WORD[384+rsi] shl rbx,16 shl rax,16 mov bx,WORD[64+rsi] mov ax,WORD[320+rsi] shl rbx,16 shl rax,16 mov bx,WORD[rsi] mov ax,WORD[256+rsi] mov QWORD[rdx],rbx mov QWORD[8+rdx],rax lea rsi,[512+rsi] lea rdx,[16+rdx] sub rbp,1 jnz NEAR loop_2 mov QWORD[48+rsp],505 mov rcx,QWORD[8+rsp] mov QWORD[136+rsp],rcx mov r10,QWORD[rcx] mov r11,QWORD[8+rcx] mov r12,QWORD[16+rcx] mov r13,QWORD[24+rcx] mov r14,QWORD[32+rcx] mov r15,QWORD[40+rcx] mov r8,QWORD[48+rcx] mov r9,QWORD[56+rcx] jmp NEAR sqr_2 main_loop_a3b: call sqr_reduce call sqr_reduce call sqr_reduce sqr_2: call sqr_reduce call sqr_reduce mov rcx,QWORD[48+rsp] mov rax,rcx shr rax,4 mov edx,DWORD[64+rax*2+rsp] and rcx,15 shr rdx,cl and rdx,0x1F lea rsi,[640+rdx*2+rsp] lea rdx,[448+rsp] mov rdi,rdx mov rbp,4 loop_3: movzx rbx,WORD[192+rsi] movzx rax,WORD[448+rsi] shl rbx,16 shl rax,16 mov bx,WORD[128+rsi] mov ax,WORD[384+rsi] shl rbx,16 shl rax,16 mov bx,WORD[64+rsi] mov ax,WORD[320+rsi] shl rbx,16 shl rax,16 mov bx,WORD[rsi] mov ax,WORD[256+rsi] mov QWORD[rdx],rbx mov QWORD[8+rdx],rax lea rsi,[512+rsi] lea rdx,[16+rdx] sub rbp,1 jnz NEAR loop_3 mov rsi,QWORD[8+rsp] call mont_mul_a3b mov rcx,QWORD[48+rsp] sub rcx,5 mov QWORD[48+rsp],rcx jge NEAR main_loop_a3b end_main_loop_a3b: mov rdx,QWORD[8+rsp] pxor xmm4,xmm4 movdqu xmm0,XMMWORD[rdx] movdqu xmm1,XMMWORD[16+rdx] movdqu xmm2,XMMWORD[32+rdx] movdqu xmm3,XMMWORD[48+rdx] movdqa XMMWORD[576+rsp],xmm4 movdqa XMMWORD[592+rsp],xmm4 movdqa XMMWORD[608+rsp],xmm4 movdqa XMMWORD[624+rsp],xmm4 movdqa XMMWORD[512+rsp],xmm0 movdqa XMMWORD[528+rsp],xmm1 movdqa XMMWORD[544+rsp],xmm2 movdqa XMMWORD[560+rsp],xmm3 call mont_reduce mov rax,QWORD[8+rsp] mov r8,QWORD[rax] mov r9,QWORD[8+rax] mov r10,QWORD[16+rax] mov r11,QWORD[24+rax] mov r12,QWORD[32+rax] mov r13,QWORD[40+rax] mov r14,QWORD[48+rax] mov r15,QWORD[56+rax] mov rbx,QWORD[24+rsp] add rbx,512 sub r8,QWORD[rbx] sbb r9,QWORD[8+rbx] sbb r10,QWORD[16+rbx] sbb r11,QWORD[24+rbx] sbb r12,QWORD[32+rbx] sbb r13,QWORD[40+rbx] sbb r14,QWORD[48+rbx] sbb r15,QWORD[56+rbx] mov rsi,QWORD[rax] mov rdi,QWORD[8+rax] mov rcx,QWORD[16+rax] mov rdx,QWORD[24+rax] cmovnc rsi,r8 cmovnc rdi,r9 cmovnc rcx,r10 cmovnc rdx,r11 mov QWORD[rax],rsi mov QWORD[8+rax],rdi mov QWORD[16+rax],rcx mov QWORD[24+rax],rdx mov rsi,QWORD[32+rax] mov rdi,QWORD[40+rax] mov rcx,QWORD[48+rax] mov rdx,QWORD[56+rax] cmovnc rsi,r12 cmovnc rdi,r13 cmovnc rcx,r14 cmovnc rdx,r15 mov QWORD[32+rax],rsi mov QWORD[40+rax],rdi mov QWORD[48+rax],rcx mov QWORD[56+rax],rdx mov rsi,QWORD[rsp] mov r15,QWORD[rsi] mov r14,QWORD[8+rsi] mov r13,QWORD[16+rsi] mov r12,QWORD[24+rsi] mov rbx,QWORD[32+rsi] mov rbp,QWORD[40+rsi] lea rsp,[48+rsi] $L$epilogue: mov rdi,QWORD[8+rsp] ;WIN64 epilogue mov rsi,QWORD[16+rsp] DB 0F3h,0C3h ;repret $L$SEH_end_mod_exp_512: EXTERN __imp_RtlVirtualUnwind ALIGN 16 mod_exp_512_se_handler: push rsi push rdi push rbx push rbp push r12 push r13 push r14 push r15 pushfq sub rsp,64 mov rax,QWORD[120+r8] mov rbx,QWORD[248+r8] lea r10,[$L$body] cmp rbx,r10 jb NEAR $L$in_prologue mov rax,QWORD[152+r8] lea r10,[$L$epilogue] cmp rbx,r10 jae NEAR $L$in_prologue mov rax,QWORD[rax] mov rbx,QWORD[32+rax] mov rbp,QWORD[40+rax] mov r12,QWORD[24+rax] mov r13,QWORD[16+rax] mov r14,QWORD[8+rax] mov r15,QWORD[rax] lea rax,[48+rax] mov QWORD[144+r8],rbx mov QWORD[160+r8],rbp mov QWORD[216+r8],r12 mov QWORD[224+r8],r13 mov QWORD[232+r8],r14 mov QWORD[240+r8],r15 $L$in_prologue: mov rdi,QWORD[8+rax] mov rsi,QWORD[16+rax] mov QWORD[152+r8],rax mov QWORD[168+r8],rsi mov QWORD[176+r8],rdi mov rdi,QWORD[40+r9] mov rsi,r8 mov ecx,154 DD 0xa548f3fc mov rsi,r9 xor rcx,rcx mov rdx,QWORD[8+rsi] mov r8,QWORD[rsi] mov r9,QWORD[16+rsi] mov r10,QWORD[40+rsi] lea r11,[56+rsi] lea r12,[24+rsi] mov QWORD[32+rsp],r10 mov QWORD[40+rsp],r11 mov QWORD[48+rsp],r12 mov QWORD[56+rsp],rcx call QWORD[__imp_RtlVirtualUnwind] mov eax,1 add rsp,64 popfq pop r15 pop r14 pop r13 pop r12 pop rbp pop rbx pop rdi pop rsi DB 0F3h,0C3h ;repret section .pdata rdata align=4 ALIGN 4 DD $L$SEH_begin_mod_exp_512 wrt ..imagebase DD $L$SEH_end_mod_exp_512 wrt ..imagebase DD $L$SEH_info_mod_exp_512 wrt ..imagebase section .xdata rdata align=8 ALIGN 8 $L$SEH_info_mod_exp_512: DB 9,0,0,0 DD mod_exp_512_se_handler wrt ..imagebase
12.847826
44
0.681235
e3ddcccf25a5dee558294011ba9f4b46bcee7e2e
4,302
swift
Swift
D&DCodexBestia/UI/ViewControllers/ChallengeRatingDetailViewController.swift
QuaereVeritatem/DungeonsAndDragonsBestiaCodex
dcf03a38ca61b2f212834d3f05fcbac078815b4b
[ "MIT" ]
null
null
null
D&DCodexBestia/UI/ViewControllers/ChallengeRatingDetailViewController.swift
QuaereVeritatem/DungeonsAndDragonsBestiaCodex
dcf03a38ca61b2f212834d3f05fcbac078815b4b
[ "MIT" ]
null
null
null
D&DCodexBestia/UI/ViewControllers/ChallengeRatingDetailViewController.swift
QuaereVeritatem/DungeonsAndDragonsBestiaCodex
dcf03a38ca61b2f212834d3f05fcbac078815b4b
[ "MIT" ]
null
null
null
// // ChallengeRatingDetailViewController.swift // D&DCodexBestia // // Created by Robert Martin on 5/12/18. // Copyright © 2018 Robert Martin. All rights reserved. // import UIKit // tableView protocols needed class ChallengeRatingDetailViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { @IBOutlet weak var tableView: UITableView! @IBOutlet weak var challengeRatingBannerNum: UILabel! @IBAction func unwindToChallengeRatingDetailViewController(segue:UIStoryboardSegue) { } var monsters: [MonsterModel] = [] var chosenDetailMonster: MonsterModel? var monsterCount: Int? var challengeRatingArray: [MonsterModel] = [MonsterModel]() var screenName = "ChallengeRatingDetailViewController" override func viewDidLoad() { super.viewDidLoad() //find a way to get this to be an integer not a float challengeRatingBannerNum.text! = String(challengeRatingArray.first!.challengeRating) // Do any additional setup after loading the view. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } // MARK: - TableView functions func numberOfSections(in tableView: UITableView) -> Int { return 1 } func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return challengeRatingArray.count } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "challengeCell") as! ChallengeRatingTableViewCell cell.indexNum.text! = String(challengeRatingArray[indexPath.row].alignment) cell.monsterName.text! = challengeRatingArray[indexPath.row].name cell.armorClassNum.text! = String(challengeRatingArray[indexPath.row].armorClass) cell.monsterType.text! = challengeRatingArray[indexPath.row].type cell.monsterSize.text! = challengeRatingArray[indexPath.row].size cell.challengeRatingNum.text! = String(challengeRatingArray[indexPath.row].challengeRating) cell.hitPointsNum.text! = String(challengeRatingArray[indexPath.row].hitPoints) switch challengeRatingArray[indexPath.row].type { case "aberration": cell.monsterIcon.image = UIImage(named: "Aberration") case "beast": cell.monsterIcon.image = UIImage(named: "Beast") case "celestial": cell.monsterIcon.image = UIImage(named: "Celestial") case "construct": cell.monsterIcon.image = UIImage(named: "Construct") case "dragon": cell.monsterIcon.image = UIImage(named: "DragonIconAvatar") case "fey": cell.monsterIcon.image = UIImage(named: "Fey") case "fiend": cell.monsterIcon.image = UIImage(named: "Fiend") case "giant": cell.monsterIcon.image = UIImage(named: "Giant") case "ooze": cell.monsterIcon.image = UIImage(named: "OOze") case "plant": cell.monsterIcon.image = UIImage(named: "PLant") case "swarm of Tiny beasts": cell.monsterIcon.image = UIImage(named: "swarm") case "undead": cell.monsterIcon.image = UIImage(named: "Undead") case "humanoid": cell.monsterIcon.image = UIImage(named: "Humanoid") case "monstrosity": cell.monsterIcon.image = UIImage(named: "Monstrosity") case "elemental": cell.monsterIcon.image = UIImage(named: "Elemental") default: cell.monsterIcon.image = UIImage(named: "WolfIcon") } return cell } func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { let selectedCell = indexPath.row chosenDetailMonster = challengeRatingArray[selectedCell] self.performSegue(withIdentifier: "challenge2Monster", sender: self) } func avatarBasedOnType(monsterType: String) { // return image string to use } override func prepare(for segue: UIStoryboardSegue, sender: Any?) { if segue.destination is MonsterDetailViewController { print("The segue identifier is \(String(describing: segue.identifier))") let vc = segue.destination as? MonsterDetailViewController vc!.previousScreenName = screenName vc?.monsters.append(chosenDetailMonster!) // print("We sending the challenge rating \(selectedCRArray[0].challengeRating) over") } } }
41.76699
110
0.725709
ca119c1ee7cf84351c24ffe79b8f63442203b3eb
54,813
java
Java
com/sun/mail/imap/IMAPFolder.java
CoOwner/StaffAuth
0f7abd4f6b10f36a2de8bb732bca19f4c101e644
[ "MIT" ]
null
null
null
com/sun/mail/imap/IMAPFolder.java
CoOwner/StaffAuth
0f7abd4f6b10f36a2de8bb732bca19f4c101e644
[ "MIT" ]
null
null
null
com/sun/mail/imap/IMAPFolder.java
CoOwner/StaffAuth
0f7abd4f6b10f36a2de8bb732bca19f4c101e644
[ "MIT" ]
null
null
null
package com.sun.mail.imap; import java.io.*; import javax.mail.internet.*; import javax.mail.search.*; import java.util.*; import javax.mail.*; import com.sun.mail.iap.*; import com.sun.mail.imap.protocol.*; public class IMAPFolder extends Folder implements UIDFolder, ResponseHandler { protected String fullName; protected String name; protected int type; protected char separator; protected Flags availableFlags; protected Flags permanentFlags; protected boolean exists; protected boolean isNamespace; protected String[] attributes; protected IMAPProtocol protocol; protected Vector messageCache; protected Object messageCacheLock; protected Hashtable uidTable; protected static final char UNKNOWN_SEPARATOR = '\uffff'; private boolean opened; private boolean reallyClosed; private int total; private int recent; private int realTotal; private int uidvalidity; private int uidnext; private boolean doExpungeNotification; private Status cachedStatus; private long cachedStatusTime; private boolean debug; private PrintStream out; private boolean connectionPoolDebug; protected IMAPFolder(final String fullName, final char separator, final IMAPStore store) { this(fullName, separator, store, false); } protected IMAPFolder(final String fullName, final char separator, final IMAPStore store, final boolean isNamespace) { super(store); this.exists = false; this.isNamespace = false; this.opened = false; this.reallyClosed = true; this.total = -1; this.recent = -1; this.realTotal = -1; this.uidvalidity = -1; this.uidnext = -1; this.doExpungeNotification = true; this.cachedStatus = null; this.cachedStatusTime = 0L; this.debug = false; if (fullName == null) { throw new NullPointerException("Folder name is null"); } this.fullName = fullName; this.separator = separator; this.isNamespace = isNamespace; this.messageCacheLock = new Object(); this.debug = store.getSession().getDebug(); this.connectionPoolDebug = store.getConnectionPoolDebug(); this.out = store.getSession().getDebugOut(); if (this.out == null) { this.out = System.out; } } protected IMAPFolder(final ListInfo li, final IMAPStore store) { this(li.name, li.separator, store); if (li.hasInferiors) { this.type |= 0x2; } if (li.canOpen) { this.type |= 0x1; } this.exists = true; this.attributes = li.attrs; } private void checkExists() throws MessagingException { if (!this.exists && !this.exists()) { throw new FolderNotFoundException(this, this.fullName + " not found"); } } private void checkClosed() { if (this.opened) { throw new IllegalStateException("This operation is not allowed on an open folder"); } } private void checkOpened() throws FolderClosedException { if (this.opened) { return; } if (this.reallyClosed) { throw new IllegalStateException("This operation is not allowed on a closed folder"); } throw new FolderClosedException(this, "Lost folder connection to server"); } private void checkRange(final int msgno) throws MessagingException { if (msgno < 1) { throw new IndexOutOfBoundsException(); } if (msgno <= this.total) { return; } synchronized (this.messageCacheLock) { try { this.keepConnectionAlive(false); } catch (ConnectionException cex) { throw new FolderClosedException(this, cex.getMessage()); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } } if (msgno > this.total) { throw new IndexOutOfBoundsException(); } } private void checkFlags(final Flags flags) throws MessagingException { if (this.mode != 2) { throw new IllegalStateException("Cannot change flags on READ_ONLY folder: " + this.fullName); } if (!this.availableFlags.contains(flags)) { throw new MessagingException("These flags are not supported by this implementation"); } } public String getName() { if (this.name == null) { try { this.name = this.fullName.substring(this.fullName.lastIndexOf(this.getSeparator()) + 1); } catch (MessagingException ex) {} } return this.name; } public String getFullName() { return this.fullName; } public Folder getParent() throws MessagingException { final char c = this.getSeparator(); final int index; if ((index = this.fullName.lastIndexOf(c)) != -1) { return new IMAPFolder(this.fullName.substring(0, index), c, (IMAPStore)this.store); } return new DefaultFolder((IMAPStore)this.store); } public boolean exists() throws MessagingException { ListInfo[] li = null; String lname; if (this.isNamespace && this.separator != '\0') { lname = this.fullName + this.separator; } else { lname = this.fullName; } li = (ListInfo[])this.doCommand(new ProtocolCommand() { public Object doCommand(final IMAPProtocol p) throws ProtocolException { return p.list("", lname); } }); if (li != null) { final int i = this.findName(li, lname); this.fullName = li[i].name; this.separator = li[i].separator; final int len = this.fullName.length(); if (this.separator != '\0' && len > 0 && this.fullName.charAt(len - 1) == this.separator) { this.fullName = this.fullName.substring(0, len - 1); } this.type = 0; if (li[i].hasInferiors) { this.type |= 0x2; } if (li[i].canOpen) { this.type |= 0x1; } this.exists = true; this.attributes = li[i].attrs; } else { this.exists = false; } return this.exists; } private int findName(final ListInfo[] li, final String lname) { int i; for (i = 0; i < li.length && !li[i].name.equals(lname); ++i) {} if (i >= li.length) { i = 0; } return i; } public Folder[] list(final String pattern) throws MessagingException { return this.doList(pattern, false); } public Folder[] listSubscribed(final String pattern) throws MessagingException { return this.doList(pattern, true); } private Folder[] doList(final String pattern, final boolean subscribed) throws MessagingException { this.checkExists(); if (!this.isDirectory()) { return new Folder[0]; } final char c = this.getSeparator(); final ListInfo[] li = (ListInfo[])this.doCommandIgnoreFailure(new ProtocolCommand() { public Object doCommand(final IMAPProtocol p) throws ProtocolException { if (subscribed) { return p.lsub("", IMAPFolder.this.fullName + c + pattern); } return p.list("", IMAPFolder.this.fullName + c + pattern); } }); if (li == null) { return new Folder[0]; } int start = 0; if (li.length > 0 && li[0].name.equals(this.fullName + c)) { start = 1; } final IMAPFolder[] folders = new IMAPFolder[li.length - start]; for (int i = start; i < li.length; ++i) { folders[i - start] = new IMAPFolder(li[i], (IMAPStore)this.store); } return folders; } public synchronized char getSeparator() throws MessagingException { if (this.separator == '\uffff') { ListInfo[] li = null; li = (ListInfo[])this.doCommand(new ProtocolCommand() { public Object doCommand(final IMAPProtocol p) throws ProtocolException { if (p.isREV1()) { return p.list(IMAPFolder.this.fullName, ""); } return p.list("", IMAPFolder.this.fullName); } }); if (li != null) { this.separator = li[0].separator; } else { this.separator = '/'; } } return this.separator; } public int getType() throws MessagingException { this.checkExists(); return this.type; } public boolean isSubscribed() { ListInfo[] li = null; String lname; if (this.isNamespace && this.separator != '\0') { lname = this.fullName + this.separator; } else { lname = this.fullName; } try { li = (ListInfo[])this.doProtocolCommand(new ProtocolCommand() { public Object doCommand(final IMAPProtocol p) throws ProtocolException { return p.lsub("", lname); } }); } catch (ProtocolException ex) {} if (li != null) { final int i = this.findName(li, lname); return li[i].canOpen; } return false; } public void setSubscribed(final boolean subscribe) throws MessagingException { this.doCommandIgnoreFailure(new ProtocolCommand() { public Object doCommand(final IMAPProtocol p) throws ProtocolException { if (subscribe) { p.subscribe(IMAPFolder.this.fullName); } else { p.unsubscribe(IMAPFolder.this.fullName); } return null; } }); } public synchronized boolean create(final int type) throws MessagingException { char c = '\0'; if ((type & 0x1) == 0x0) { c = this.getSeparator(); } final char sep = c; final Object ret = this.doCommandIgnoreFailure(new ProtocolCommand() { public Object doCommand(final IMAPProtocol p) throws ProtocolException { if ((type & 0x1) == 0x0) { p.create(IMAPFolder.this.fullName + sep); } else { p.create(IMAPFolder.this.fullName); if ((type & 0x2) != 0x0) { final ListInfo[] li = p.list("", IMAPFolder.this.fullName); if (li != null && !li[0].hasInferiors) { p.delete(IMAPFolder.this.fullName); throw new ProtocolException("Unsupported type"); } } } return Boolean.TRUE; } }); if (ret == null) { return false; } final boolean retb = this.exists(); this.notifyFolderListeners(1); return retb; } public synchronized boolean hasNewMessages() throws MessagingException { this.checkExists(); if (this.opened) { synchronized (this.messageCacheLock) { try { this.keepConnectionAlive(true); } catch (ConnectionException cex) { throw new FolderClosedException(this, cex.getMessage()); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } } return this.recent > 0; } final Boolean b = (Boolean)this.doCommandIgnoreFailure(new ProtocolCommand() { public Object doCommand(final IMAPProtocol p) throws ProtocolException { final ListInfo[] li = p.list("", IMAPFolder.this.fullName); if (li != null) { if (li[0].changeState == 1) { return Boolean.TRUE; } if (li[0].changeState == 2) { return Boolean.FALSE; } } final Status status = IMAPFolder.this.getStatus(); if (status.recent > 0) { return Boolean.TRUE; } return Boolean.FALSE; } }); return b != null && b; } public Folder getFolder(final String name) throws MessagingException { if (this.exists && !this.isDirectory()) { throw new MessagingException("Cannot contain subfolders"); } final char c = this.getSeparator(); return new IMAPFolder(this.fullName + c + name, c, (IMAPStore)this.store); } public synchronized boolean delete(final boolean recurse) throws MessagingException { this.checkClosed(); if (recurse) { final Folder[] f = this.list(); for (int i = 0; i < f.length; ++i) { f[i].delete(recurse); } } final Object ret = this.doCommandIgnoreFailure(new ProtocolCommand() { public Object doCommand(final IMAPProtocol p) throws ProtocolException { p.delete(IMAPFolder.this.fullName); return Boolean.TRUE; } }); if (ret == null) { return false; } this.exists = false; this.notifyFolderListeners(2); return true; } public synchronized boolean renameTo(final Folder f) throws MessagingException { this.checkClosed(); this.checkExists(); if (f.getStore() != this.store) { throw new MessagingException("Can't rename across Stores"); } final Object ret = this.doCommandIgnoreFailure(new ProtocolCommand() { public Object doCommand(final IMAPProtocol p) throws ProtocolException { p.rename(IMAPFolder.this.fullName, f.getFullName()); return Boolean.TRUE; } }); if (ret == null) { return false; } this.exists = false; this.notifyFolderRenamedListeners(f); return true; } public synchronized void open(final int mode) throws MessagingException { this.checkClosed(); MailboxInfo mi = null; this.protocol = ((IMAPStore)this.store).getProtocol(this); CommandFailedException exc = null; Label_0460: { synchronized (this.messageCacheLock) { this.protocol.addResponseHandler(this); try { if (mode == 1) { mi = this.protocol.examine(this.fullName); } else { mi = this.protocol.select(this.fullName); } } catch (CommandFailedException cex) { this.releaseProtocol(true); this.protocol = null; exc = cex; break Label_0460; } catch (ProtocolException pex) { try { this.protocol.logout(); } catch (ProtocolException pex2) {} finally { this.releaseProtocol(false); this.protocol = null; throw new MessagingException(pex.getMessage(), pex); } } if (mi.mode != mode) { if (mode != 2 || mi.mode != 1 || !((IMAPStore)this.store).allowReadOnlySelect()) { try { this.protocol.close(); this.releaseProtocol(true); } catch (ProtocolException pex) { try { this.protocol.logout(); } catch (ProtocolException pex2) {} finally { this.releaseProtocol(false); } } finally { this.protocol = null; throw new ReadOnlyFolderException(this, "Cannot open in desired mode"); } } } this.opened = true; this.reallyClosed = false; this.mode = mi.mode; this.availableFlags = mi.availableFlags; this.permanentFlags = mi.permanentFlags; final int total = mi.total; this.realTotal = total; this.total = total; this.recent = mi.recent; this.uidvalidity = mi.uidvalidity; this.uidnext = mi.uidnext; this.messageCache = new Vector(this.total); for (int i = 0; i < this.total; ++i) { this.messageCache.addElement(new IMAPMessage(this, i + 1, i + 1)); } } } if (exc == null) { this.notifyConnectionListeners(1); return; } this.checkExists(); if ((this.type & 0x1) == 0x0) { throw new MessagingException("folder cannot contain messages"); } throw new MessagingException(exc.getMessage(), exc); } public synchronized void fetch(final Message[] msgs, final FetchProfile fp) throws MessagingException { this.checkOpened(); IMAPMessage.fetch(this, msgs, fp); } public synchronized void setFlags(final Message[] msgs, final Flags flag, final boolean value) throws MessagingException { this.checkOpened(); this.checkFlags(flag); if (msgs.length == 0) { return; } synchronized (this.messageCacheLock) { try { final MessageSet[] ms = Utility.toMessageSet(msgs, null); if (ms == null) { throw new MessageRemovedException("Messages have been removed"); } this.protocol.storeFlags(ms, flag, value); } catch (ConnectionException cex) { throw new FolderClosedException(this, cex.getMessage()); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } } } public synchronized void close(final boolean expunge) throws MessagingException { this.close(expunge, false); } public synchronized void forceClose() throws MessagingException { this.close(false, true); } private void close(final boolean expunge, final boolean force) throws MessagingException { synchronized (this.messageCacheLock) { if (!this.opened && this.reallyClosed) { throw new IllegalStateException("This operation is not allowed on a closed folder"); } this.reallyClosed = true; if (!this.opened) { return; } try { if (force) { if (this.debug) { this.out.println("DEBUG: forcing folder " + this.fullName + " to close"); } if (this.protocol != null) { this.protocol.disconnect(); } } else if (((IMAPStore)this.store).isConnectionPoolFull()) { if (this.debug) { this.out.println("DEBUG: pool is full, not adding an Authenticated connection"); } if (expunge) { this.protocol.close(); } if (this.protocol != null) { this.protocol.logout(); } } else { if (!expunge && this.mode == 2) { try { final MailboxInfo mi = this.protocol.examine(this.fullName); } catch (ProtocolException pex2) { if (this.protocol != null) { this.protocol.disconnect(); } } } if (this.protocol != null) { this.protocol.close(); } } } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } finally { if (this.opened) { this.cleanup(true); } } } } private void cleanup(final boolean returnToPool) { this.releaseProtocol(returnToPool); this.protocol = null; this.messageCache = null; this.uidTable = null; this.exists = false; this.opened = false; this.notifyConnectionListeners(3); } public synchronized boolean isOpen() { synchronized (this.messageCacheLock) { if (this.opened) { try { this.keepConnectionAlive(false); } catch (ProtocolException ex) {} } } return this.opened; } public Flags getPermanentFlags() { return this.permanentFlags; } public synchronized int getMessageCount() throws MessagingException { this.checkExists(); if (!this.opened) { try { final Status status = this.getStatus(); return status.total; } catch (BadCommandException bex) { IMAPProtocol p = null; try { p = this.getStoreProtocol(); final MailboxInfo minfo = p.examine(this.fullName); p.close(); return minfo.total; } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } finally { this.releaseStoreProtocol(p); } } catch (ConnectionException cex) { throw new StoreClosedException(this.store, cex.getMessage()); } catch (ProtocolException pex2) { throw new MessagingException(pex2.getMessage(), pex2); } } synchronized (this.messageCacheLock) { try { this.keepConnectionAlive(true); return this.total; } catch (ConnectionException cex2) { throw new FolderClosedException(this, cex2.getMessage()); } catch (ProtocolException pex3) { throw new MessagingException(pex3.getMessage(), pex3); } } } public synchronized int getNewMessageCount() throws MessagingException { this.checkExists(); if (!this.opened) { try { final Status status = this.getStatus(); return status.recent; } catch (BadCommandException bex) { IMAPProtocol p = null; try { p = this.getStoreProtocol(); final MailboxInfo minfo = p.examine(this.fullName); p.close(); return minfo.recent; } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } finally { this.releaseStoreProtocol(p); } } catch (ConnectionException cex) { throw new StoreClosedException(this.store, cex.getMessage()); } catch (ProtocolException pex2) { throw new MessagingException(pex2.getMessage(), pex2); } } synchronized (this.messageCacheLock) { try { this.keepConnectionAlive(true); return this.recent; } catch (ConnectionException cex2) { throw new FolderClosedException(this, cex2.getMessage()); } catch (ProtocolException pex3) { throw new MessagingException(pex3.getMessage(), pex3); } } } public synchronized int getUnreadMessageCount() throws MessagingException { this.checkExists(); if (!this.opened) { try { final Status status = this.getStatus(); return status.unseen; } catch (BadCommandException bex) { return -1; } catch (ConnectionException cex) { throw new StoreClosedException(this.store, cex.getMessage()); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } } final Flags f = new Flags(); f.add(Flags.Flag.SEEN); try { synchronized (this.messageCacheLock) { final int[] matches = this.protocol.search(new FlagTerm(f, false)); return matches.length; } } catch (ConnectionException cex2) { throw new FolderClosedException(this, cex2.getMessage()); } catch (ProtocolException pex2) { throw new MessagingException(pex2.getMessage(), pex2); } } public synchronized int getDeletedMessageCount() throws MessagingException { this.checkExists(); if (!this.opened) { return -1; } final Flags f = new Flags(); f.add(Flags.Flag.DELETED); try { synchronized (this.messageCacheLock) { final int[] matches = this.protocol.search(new FlagTerm(f, true)); return matches.length; } } catch (ConnectionException cex) { throw new FolderClosedException(this, cex.getMessage()); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } } private Status getStatus() throws ProtocolException { final int statusCacheTimeout = ((IMAPStore)this.store).getStatusCacheTimeout(); if (statusCacheTimeout > 0 && this.cachedStatus != null && System.currentTimeMillis() - this.cachedStatusTime < statusCacheTimeout) { return this.cachedStatus; } IMAPProtocol p = null; try { p = this.getStoreProtocol(); final Status s = p.status(this.fullName, null); if (statusCacheTimeout > 0) { this.cachedStatus = s; this.cachedStatusTime = System.currentTimeMillis(); } return s; } finally { this.releaseStoreProtocol(p); } } public synchronized Message getMessage(final int msgnum) throws MessagingException { this.checkOpened(); this.checkRange(msgnum); return this.messageCache.elementAt(msgnum - 1); } public void appendMessages(final Message[] msgs) throws MessagingException { this.checkExists(); final int maxsize = ((IMAPStore)this.store).getAppendBufferSize(); for (int i = 0; i < msgs.length; ++i) { final Message m = msgs[i]; MessageLiteral mos; try { mos = new MessageLiteral(m, (m.getSize() > maxsize) ? 0 : maxsize); } catch (IOException ex) { throw new MessagingException("IOException while appending messages", ex); } catch (MessageRemovedException mrex) { continue; } Date d = m.getReceivedDate(); if (d == null) { d = m.getSentDate(); } final Date dd = d; final Flags f = m.getFlags(); this.doCommand(new ProtocolCommand() { public Object doCommand(final IMAPProtocol p) throws ProtocolException { p.append(IMAPFolder.this.fullName, f, dd, mos); return null; } }); } } public AppendUID[] appendUIDMessages(final Message[] msgs) throws MessagingException { this.checkExists(); final int maxsize = ((IMAPStore)this.store).getAppendBufferSize(); final AppendUID[] uids = new AppendUID[msgs.length]; for (int i = 0; i < msgs.length; ++i) { final Message m = msgs[i]; MessageLiteral mos; try { mos = new MessageLiteral(m, (m.getSize() > maxsize) ? 0 : maxsize); } catch (IOException ex) { throw new MessagingException("IOException while appending messages", ex); } catch (MessageRemovedException mrex) { continue; } Date d = m.getReceivedDate(); if (d == null) { d = m.getSentDate(); } final Date dd = d; final Flags f = m.getFlags(); final AppendUID auid = (AppendUID)this.doCommand(new ProtocolCommand() { public Object doCommand(final IMAPProtocol p) throws ProtocolException { return p.appenduid(IMAPFolder.this.fullName, f, dd, mos); } }); uids[i] = auid; } return uids; } public Message[] addMessages(final Message[] msgs) throws MessagingException { this.checkOpened(); final Message[] rmsgs = new MimeMessage[msgs.length]; final AppendUID[] uids = this.appendUIDMessages(msgs); for (int i = 0; i < uids.length; ++i) { final AppendUID auid = uids[i]; if (auid != null && auid.uidvalidity == this.uidvalidity) { try { rmsgs[i] = this.getMessageByUID(auid.uid); } catch (MessagingException ex) {} } } return rmsgs; } public synchronized void copyMessages(final Message[] msgs, final Folder folder) throws MessagingException { this.checkOpened(); if (msgs.length == 0) { return; } if (folder.getStore() == this.store) { synchronized (this.messageCacheLock) { try { final MessageSet[] ms = Utility.toMessageSet(msgs, null); if (ms == null) { throw new MessageRemovedException("Messages have been removed"); } this.protocol.copy(ms, folder.getFullName()); } catch (CommandFailedException cfx) { if (cfx.getMessage().indexOf("TRYCREATE") != -1) { throw new FolderNotFoundException(folder, folder.getFullName() + " does not exist"); } throw new MessagingException(cfx.getMessage(), cfx); } catch (ConnectionException cex) { throw new FolderClosedException(this, cex.getMessage()); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } } } else { super.copyMessages(msgs, folder); } } public synchronized Message[] expunge() throws MessagingException { return this.expunge(null); } public synchronized Message[] expunge(final Message[] msgs) throws MessagingException { this.checkOpened(); final Vector v = new Vector(); if (msgs != null) { final FetchProfile fp = new FetchProfile(); fp.add(UIDFolder.FetchProfileItem.UID); this.fetch(msgs, fp); } synchronized (this.messageCacheLock) { this.doExpungeNotification = false; try { if (msgs != null) { this.protocol.uidexpunge(Utility.toUIDSet(msgs)); } else { this.protocol.expunge(); } } catch (CommandFailedException cfx) { if (this.mode != 2) { throw new IllegalStateException("Cannot expunge READ_ONLY folder: " + this.fullName); } throw new MessagingException(cfx.getMessage(), cfx); } catch (ConnectionException cex) { throw new FolderClosedException(this, cex.getMessage()); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } finally { this.doExpungeNotification = true; } int i = 0; while (i < this.messageCache.size()) { final IMAPMessage m = this.messageCache.elementAt(i); if (m.isExpunged()) { v.addElement(m); this.messageCache.removeElementAt(i); if (this.uidTable == null) { continue; } final long uid = m.getUID(); if (uid == -1L) { continue; } this.uidTable.remove(new Long(uid)); } else { m.setMessageNumber(m.getSequenceNumber()); ++i; } } } this.total = this.messageCache.size(); final Message[] rmsgs = new Message[v.size()]; v.copyInto(rmsgs); if (rmsgs.length > 0) { this.notifyMessageRemovedListeners(true, rmsgs); } return rmsgs; } public synchronized Message[] search(final SearchTerm term) throws MessagingException { this.checkOpened(); try { Message[] matchMsgs = null; synchronized (this.messageCacheLock) { final int[] matches = this.protocol.search(term); if (matches != null) { matchMsgs = new IMAPMessage[matches.length]; for (int i = 0; i < matches.length; ++i) { matchMsgs[i] = this.getMessageBySeqNumber(matches[i]); } } } return matchMsgs; } catch (CommandFailedException cfx) { return super.search(term); } catch (SearchException sex) { return super.search(term); } catch (ConnectionException cex) { throw new FolderClosedException(this, cex.getMessage()); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } } public synchronized Message[] search(final SearchTerm term, final Message[] msgs) throws MessagingException { this.checkOpened(); if (msgs.length == 0) { return msgs; } try { Message[] matchMsgs = null; synchronized (this.messageCacheLock) { final MessageSet[] ms = Utility.toMessageSet(msgs, null); if (ms == null) { throw new MessageRemovedException("Messages have been removed"); } final int[] matches = this.protocol.search(ms, term); if (matches != null) { matchMsgs = new IMAPMessage[matches.length]; for (int i = 0; i < matches.length; ++i) { matchMsgs[i] = this.getMessageBySeqNumber(matches[i]); } } } return matchMsgs; } catch (CommandFailedException cfx) { return super.search(term, msgs); } catch (SearchException sex) { return super.search(term, msgs); } catch (ConnectionException cex) { throw new FolderClosedException(this, cex.getMessage()); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } } public synchronized long getUIDValidity() throws MessagingException { if (this.opened) { return this.uidvalidity; } IMAPProtocol p = null; Status status = null; try { p = this.getStoreProtocol(); final String[] item = { "UIDVALIDITY" }; status = p.status(this.fullName, item); } catch (BadCommandException bex) { throw new MessagingException("Cannot obtain UIDValidity", bex); } catch (ConnectionException cex) { this.throwClosedException(cex); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } finally { this.releaseStoreProtocol(p); } return status.uidvalidity; } public synchronized long getUIDNext() throws MessagingException { if (this.opened) { return this.uidnext; } IMAPProtocol p = null; Status status = null; try { p = this.getStoreProtocol(); final String[] item = { "UIDNEXT" }; status = p.status(this.fullName, item); } catch (BadCommandException bex) { throw new MessagingException("Cannot obtain UIDNext", bex); } catch (ConnectionException cex) { this.throwClosedException(cex); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } finally { this.releaseStoreProtocol(p); } return status.uidnext; } public synchronized Message getMessageByUID(final long uid) throws MessagingException { this.checkOpened(); final Long l = new Long(uid); IMAPMessage m = null; if (this.uidTable != null) { m = this.uidTable.get(l); if (m != null) { return m; } } else { this.uidTable = new Hashtable(); } try { synchronized (this.messageCacheLock) { final UID u = this.protocol.fetchSequenceNumber(uid); if (u != null && u.msgno <= this.total) { m = this.messageCache.elementAt(u.msgno - 1); m.setUID(u.uid); this.uidTable.put(l, m); } } } catch (ConnectionException cex) { throw new FolderClosedException(this, cex.getMessage()); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } return m; } public synchronized Message[] getMessagesByUID(final long start, final long end) throws MessagingException { this.checkOpened(); if (this.uidTable == null) { this.uidTable = new Hashtable(); } Message[] msgs; try { synchronized (this.messageCacheLock) { final UID[] ua = this.protocol.fetchSequenceNumbers(start, end); msgs = new Message[ua.length]; for (int i = 0; i < ua.length; ++i) { final IMAPMessage m = this.messageCache.elementAt(ua[i].msgno - 1); m.setUID(ua[i].uid); msgs[i] = m; this.uidTable.put(new Long(ua[i].uid), m); } } } catch (ConnectionException cex) { throw new FolderClosedException(this, cex.getMessage()); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } return msgs; } public synchronized Message[] getMessagesByUID(final long[] uids) throws MessagingException { this.checkOpened(); long[] unavailUids = uids; if (this.uidTable != null) { final Vector v = new Vector(); for (int i = 0; i < uids.length; ++i) { final Long l; if (!this.uidTable.containsKey(l = new Long(uids[i]))) { v.addElement(l); } } final int vsize = v.size(); unavailUids = new long[vsize]; for (int j = 0; j < vsize; ++j) { unavailUids[j] = v.elementAt(j); } } else { this.uidTable = new Hashtable(); } if (unavailUids.length > 0) { try { synchronized (this.messageCacheLock) { final UID[] ua = this.protocol.fetchSequenceNumbers(unavailUids); for (int j = 0; j < ua.length; ++j) { final IMAPMessage m = this.messageCache.elementAt(ua[j].msgno - 1); m.setUID(ua[j].uid); this.uidTable.put(new Long(ua[j].uid), m); } } } catch (ConnectionException cex) { throw new FolderClosedException(this, cex.getMessage()); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } } final Message[] msgs = new Message[uids.length]; for (int k = 0; k < uids.length; ++k) { msgs[k] = this.uidTable.get(new Long(uids[k])); } return msgs; } public synchronized long getUID(final Message message) throws MessagingException { if (message.getFolder() != this) { throw new NoSuchElementException("Message does not belong to this folder"); } this.checkOpened(); final IMAPMessage m = (IMAPMessage)message; long uid; if ((uid = m.getUID()) != -1L) { return uid; } UID u = null; synchronized (this.messageCacheLock) { m.checkExpunged(); try { u = this.protocol.fetchUID(m.getSequenceNumber()); } catch (ConnectionException cex) { throw new FolderClosedException(this, cex.getMessage()); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } } if (u != null) { uid = u.uid; m.setUID(uid); if (this.uidTable == null) { this.uidTable = new Hashtable(); } this.uidTable.put(new Long(uid), m); } return uid; } public Quota[] getQuota() throws MessagingException { return (Quota[])this.doOptionalCommand("QUOTA not supported", new ProtocolCommand() { public Object doCommand(final IMAPProtocol p) throws ProtocolException { return p.getQuotaRoot(IMAPFolder.this.fullName); } }); } public void setQuota(final Quota quota) throws MessagingException { this.doOptionalCommand("QUOTA not supported", new ProtocolCommand() { public Object doCommand(final IMAPProtocol p) throws ProtocolException { p.setQuota(quota); return null; } }); } public ACL[] getACL() throws MessagingException { return (ACL[])this.doOptionalCommand("ACL not supported", new ProtocolCommand() { public Object doCommand(final IMAPProtocol p) throws ProtocolException { return p.getACL(IMAPFolder.this.fullName); } }); } public void addACL(final ACL acl) throws MessagingException { this.setACL(acl, '\0'); } public void removeACL(final String name) throws MessagingException { this.doOptionalCommand("ACL not supported", new ProtocolCommand() { public Object doCommand(final IMAPProtocol p) throws ProtocolException { p.deleteACL(IMAPFolder.this.fullName, name); return null; } }); } public void addRights(final ACL acl) throws MessagingException { this.setACL(acl, '+'); } public void removeRights(final ACL acl) throws MessagingException { this.setACL(acl, '-'); } public Rights[] listRights(final String name) throws MessagingException { return (Rights[])this.doOptionalCommand("ACL not supported", new ProtocolCommand() { public Object doCommand(final IMAPProtocol p) throws ProtocolException { return p.listRights(IMAPFolder.this.fullName, name); } }); } public Rights myRights() throws MessagingException { return (Rights)this.doOptionalCommand("ACL not supported", new ProtocolCommand() { public Object doCommand(final IMAPProtocol p) throws ProtocolException { return p.myRights(IMAPFolder.this.fullName); } }); } private void setACL(final ACL acl, final char mod) throws MessagingException { this.doOptionalCommand("ACL not supported", new ProtocolCommand() { public Object doCommand(final IMAPProtocol p) throws ProtocolException { p.setACL(IMAPFolder.this.fullName, mod, acl); return null; } }); } public String[] getAttributes() throws MessagingException { if (this.attributes == null) { this.exists(); } return this.attributes.clone(); } public void handleResponse(final Response r) { if (r.isOK() || r.isNO() || r.isBAD() || r.isBYE()) { ((IMAPStore)this.store).handleResponseCode(r); } if (r.isBYE()) { if (this.opened) { this.cleanup(false); } return; } if (r.isOK()) { return; } if (!r.isUnTagged()) { return; } if (!(r instanceof IMAPResponse)) { this.out.println("UNEXPECTED RESPONSE : " + r.toString()); this.out.println("CONTACT javamail@sun.com"); return; } final IMAPResponse ir = (IMAPResponse)r; if (ir.keyEquals("EXISTS")) { final int exists = ir.getNumber(); if (exists <= this.realTotal) { return; } final int count = exists - this.realTotal; final Message[] msgs = new Message[count]; for (int i = 0; i < count; ++i) { final IMAPMessage msg = new IMAPMessage(this, ++this.total, ++this.realTotal); msgs[i] = msg; this.messageCache.addElement(msg); } this.notifyMessageAddedListeners(msgs); } else if (ir.keyEquals("EXPUNGE")) { final IMAPMessage msg2 = this.getMessageBySeqNumber(ir.getNumber()); msg2.setExpunged(true); for (int j = msg2.getMessageNumber(); j < this.total; ++j) { final IMAPMessage m = this.messageCache.elementAt(j); if (!m.isExpunged()) { m.setSequenceNumber(m.getSequenceNumber() - 1); } } --this.realTotal; if (this.doExpungeNotification) { final Message[] msgs2 = { msg2 }; this.notifyMessageRemovedListeners(false, msgs2); } } else if (ir.keyEquals("FETCH")) { final FetchResponse f = (FetchResponse)ir; final Flags flags = (Flags)f.getItem(Flags.class); if (flags != null) { final IMAPMessage msg3 = this.getMessageBySeqNumber(f.getNumber()); if (msg3 != null) { msg3._setFlags(flags); this.notifyMessageChangedListeners(1, msg3); } } } else if (ir.keyEquals("RECENT")) { this.recent = ir.getNumber(); } } void handleResponses(final Response[] r) { for (int i = 0; i < r.length; ++i) { if (r[i] != null) { this.handleResponse(r[i]); } } } protected synchronized IMAPProtocol getStoreProtocol() throws ProtocolException { if (this.connectionPoolDebug) { this.out.println("DEBUG: getStoreProtocol() - borrowing a connection"); } return ((IMAPStore)this.store).getStoreProtocol(); } private synchronized void throwClosedException(final ConnectionException cex) throws FolderClosedException, StoreClosedException { if ((this.protocol != null && cex.getProtocol() == this.protocol) || (this.protocol == null && !this.reallyClosed)) { throw new FolderClosedException(this, cex.getMessage()); } throw new StoreClosedException(this.store, cex.getMessage()); } public IMAPProtocol getProtocol() { return this.protocol; } public Object doCommand(final ProtocolCommand cmd) throws MessagingException { try { return this.doProtocolCommand(cmd); } catch (ConnectionException cex) { this.throwClosedException(cex); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } return null; } public Object doOptionalCommand(final String err, final ProtocolCommand cmd) throws MessagingException { try { return this.doProtocolCommand(cmd); } catch (BadCommandException bex) { throw new MessagingException(err, bex); } catch (ConnectionException cex) { this.throwClosedException(cex); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } return null; } public Object doCommandIgnoreFailure(final ProtocolCommand cmd) throws MessagingException { try { return this.doProtocolCommand(cmd); } catch (CommandFailedException cfx) { return null; } catch (ConnectionException cex) { this.throwClosedException(cex); } catch (ProtocolException pex) { throw new MessagingException(pex.getMessage(), pex); } return null; } protected Object doProtocolCommand(final ProtocolCommand cmd) throws ProtocolException { synchronized (this) { if (this.opened && !((IMAPStore)this.store).hasSeparateStoreConnection()) { synchronized (this.messageCacheLock) { return cmd.doCommand(this.getProtocol()); } } } IMAPProtocol p = null; try { p = this.getStoreProtocol(); return cmd.doCommand(p); } finally { this.releaseStoreProtocol(p); } } protected synchronized void releaseStoreProtocol(final IMAPProtocol p) { if (p != this.protocol) { ((IMAPStore)this.store).releaseStoreProtocol(p); } } private void releaseProtocol(final boolean returnToPool) { if (this.protocol != null) { this.protocol.removeResponseHandler(this); if (returnToPool) { ((IMAPStore)this.store).releaseProtocol(this, this.protocol); } else { ((IMAPStore)this.store).releaseProtocol(this, null); } } } private void keepConnectionAlive(final boolean keepStoreAlive) throws ProtocolException { if (System.currentTimeMillis() - this.protocol.getTimestamp() > 1000L) { this.protocol.noop(); } if (keepStoreAlive && ((IMAPStore)this.store).hasSeparateStoreConnection()) { IMAPProtocol p = null; try { p = ((IMAPStore)this.store).getStoreProtocol(); if (System.currentTimeMillis() - p.getTimestamp() > 1000L) { p.noop(); } } finally { ((IMAPStore)this.store).releaseStoreProtocol(p); } } } IMAPMessage getMessageBySeqNumber(final int seqnum) { for (int i = seqnum - 1; i < this.total; ++i) { final IMAPMessage msg = this.messageCache.elementAt(i); if (msg.getSequenceNumber() == seqnum) { return msg; } } return null; } private boolean isDirectory() { return (this.type & 0x2) != 0x0; } public static class FetchProfileItem extends FetchProfile.Item { public static final FetchProfileItem HEADERS; public static final FetchProfileItem SIZE; protected FetchProfileItem(final String name) { super(name); } static { HEADERS = new FetchProfileItem("HEADERS"); SIZE = new FetchProfileItem("SIZE"); } } public interface ProtocolCommand { Object doCommand(final IMAPProtocol p0) throws ProtocolException; } }
35.755382
141
0.51506
46d9ee80e4163a1e73a398d84c020a69375b6d02
5,707
html
HTML
built/index.html
Echo-Peak/Falcon
2d9eaed304ca045a9c8b1ffd67fe081fd0107331
[ "MIT" ]
null
null
null
built/index.html
Echo-Peak/Falcon
2d9eaed304ca045a9c8b1ffd67fe081fd0107331
[ "MIT" ]
null
null
null
built/index.html
Echo-Peak/Falcon
2d9eaed304ca045a9c8b1ffd67fe081fd0107331
[ "MIT" ]
null
null
null
<html><head><meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"/><meta charset="UTF-8"/><title>Falcon</title><link href="https://fonts.googleapis.com/css?family=Josefin+Sans" rel="stylesheet" type="text/css"/><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.2/css/font-awesome.min.css"/><link rel="stylesheet" href="styles.css"/><link rel="icon" href="demo.png"/></head><body><div class="app"><div class="container"><div data-element="pannel" class="pannel"><div class="pannel-flex"><div class="pannel-user"><h4 data-element="user"> </h4></div><div class="switch-and-logout"><div data-element="pannel-logout" class="logout"><span> </span></div></div><div data-element="settings" class="pannel-settings"> <i class="fa fa-gear"> </i></div></div></div><div class="content"><div data-element="undo" class="undo-pannel-container"><div class="undo-pannel"><span>Undo</span></div></div><div data-element="add-clear" class="add-clear"><div class="current-group"><span data-element="current-group">Default</span></div><div data-element="add" class="add"><span>Add</span><i class="fa fa-plus"></i></div></div><div data-element="editor" style="display:none" class="editor"><form data-element="editor-form"><div class="title"><input type="text" data-element="editor-title" placeholder="Enter Title"/></div><div class="body"><textarea name="" cols="30" rows="10" data-element="editor-body" placeholder="Body"></textarea></div><!--.scale//input(type="number" min="0" max="10" maxlength='2' data-element='editor-scale' placeholder='scale of 1 - 10')--><div class="save"><button type="submit" value="Add" data-element="editor-save">Add</button></div><div class="exit"><button type="button" name="button" data-element="editor-exit">Close</button></div></form></div><div data-element="homepage" class="homepage"><div data-element="homepage-stickys" class="sticky-notes"><section class="back"><div class="text"><h4>Lorem ipsum dolor</h4></div><div><i class="fa fa-camera-retro"> </i></div></section><section class="middle"><div class="heading"><h4>Lorem ipsum dolor</h4></div><div class="text"></div><div class="show-colors-pallet"><ul><li></li><li></li><li></li><li></li></ul></div></section><section class="front"><div class="heading"><h4>Lorem ipsum dolor</h4></div><p>Donec rhoncus egestas eros, ac lobortis augue ornare nec.</p></section></div><div class="features"><ul data-element="homepage-features"><li><div class="icon"><i class="fa fa-edit"></i></div><div class="text"> <span>Nullam vel neque vitae dolor porta dictum. Etiam nec velit eget erat fringilla feugiat.</span></div></li><li><div class="icon"><i class="fa fa-paint-brush"></i></div><div class="text"> <span>Suspendisse at finibus est. Praesent tempus tellus eu elementum sollicitudin.</span></div></li><li><div class="icon"><i class="fa fa-rocket"></i></div><div class="text"> <span>Fusce sit amet tellus consequat, malesuada quam eu, interdum felis. </span></div></li></ul></div><div class="homepage-auth"><span data-element="auth-login-btn"></span><span data-element="auth-signup-btn"></span><div data-element="auth" class="auth"><div class="login-with-third-partys"><div data-element="signin-google" class="google"><div class="shadow"></div><div><i class="fa fa-google-plus"></i><span>Sign in with Google</span></div></div><div data-element="signin-facebook" class="facebook"><div class="shadow"></div><div><i class="fa fa-facebook"></i><span>Sign in with Facebook</span></div></div><div data-element="signin-twitter" class="twitter"><div class="shadow"></div><div><i class="fa fa-twitter"></i><span>Sign in with twitter</span></div></div></div><div class="auth-pannel"><button data-element="demo" class="demo-btn">Demo</button></div></div></div></div><div data-element="settings-element" class="settings"><ul><div class="groups"><div data-element="settings-changeGroup-button" class="change"><span>Change Group</span></div><div data-element="settings-addGroup-button" class="add"><span>Add Group</span></div></div><div data-element="settings-groups" class="groupsUI"><div class="changeGroup"><ul></ul></div><div class="addGroups"><input type="text" placeholder="Add Group"/><button>Add</button></div></div><div data-element="settings-clear-button" class="clear"> <span>Clear current list</span></div><div data-element="settings-share" class="clear"> <span data-element="settings-share-button"> Share</span></div></ul></div><div data-element="color-element" class="color-pannel"><div data-element="color-overlay" class="overlay"></div><div data-element="color-content" class="color-content"><h4>pick a color</h4><div class="colors"><div data-element="color-group" class="all-colors"><li color-id="0"></li><li color-id="1"></li><li color-id="2"></li><li color-id="3"></li><li color-id="4"></li><li color-id="5"></li><li color-id="6"></li><li color-id="7"></li><li color-id="8"></li><li color-id="9"></li><li color-id="10"></li><li color-id="11"></li></div><div data-element="color-defaults" class="default-btn"><button>Defaults</button></div><div data-element="color-close" class="close-btn"><button>Close</button></div></div></div></div><div data-element="nothing" class="nothing-to-load"><h2>Nothing to load</h2></div><ul data-element="mount" class="mount"></ul></div></div></div><script src="https://www.gstatic.com/firebasejs/live/3.0/firebase.js"></script><script>var config = { apiKey: "AIzaSyC_t5wHZIXceqv6N6nHXQYjCPe7V-oR4d4", authDomain: "falcon-5eb88.firebaseapp.com", databaseURL: "https://falcon-5eb88.firebaseio.com" }; window.__firebase__ = firebase.initializeApp(config); </script><script src="context.js"> </script></body></html>
713.375
5,439
0.702996
3b76ad2580d152c506cd8da4d93aecc59f237e85
311
h
C
boundary-value-problem/src/type.h
ahuglajbclajep/numerical-analysis-exercises
4e504532c32dd54d20ba1ac28e8ea5fde5961b53
[ "MIT" ]
1
2018-10-02T16:37:37.000Z
2018-10-02T16:37:37.000Z
boundary-value-problem/src/type.h
ahuglajbclajep/numerical-analysis-exercises
4e504532c32dd54d20ba1ac28e8ea5fde5961b53
[ "MIT" ]
7
2017-04-24T15:55:10.000Z
2017-08-06T17:44:41.000Z
boundary-value-problem/src/type.h
ahuglajbclajep/numerical-analysis-exercises
4e504532c32dd54d20ba1ac28e8ea5fde5961b53
[ "MIT" ]
null
null
null
#ifndef BOUNDARY_VALUE_PROBLEM_TYPE_H #define BOUNDARY_VALUE_PROBLEM_TYPE_H typedef char* string; typedef struct { int len_x; int len_y; double* lattice; } xy_plane; static inline double* get_ptr(xy_plane* xy, int x, int y) { return xy->lattice + xy->len_x * (xy->len_y -1 -y) + x; } #endif
18.294118
59
0.697749
e5654f5c7a499e43964ff199923b1679a721d8be
303
ts
TypeScript
src/store/base/list/type.ts
starsoft35/quark
f01ce43e84c4b7b8e651bd97c275f6c633f63ef8
[ "MIT" ]
null
null
null
src/store/base/list/type.ts
starsoft35/quark
f01ce43e84c4b7b8e651bd97c275f6c633f63ef8
[ "MIT" ]
null
null
null
src/store/base/list/type.ts
starsoft35/quark
f01ce43e84c4b7b8e651bd97c275f6c633f63ef8
[ "MIT" ]
null
null
null
import { SectionStateEnum } from '@vdfor/util'; export interface IListBasicState { pageSize: number; pageNum: number; hasMore: boolean; loadMoreLoading: boolean; refreshLoading: boolean; status: SectionStateEnum; } export interface IQuxListState extends IListBasicState { data: any[]; }
20.2
56
0.752475
2e91aafaebbdf7bd46340735525a8910358b48b4
7,059
swift
Swift
AppBus/Classes/Router.swift
pozi119/AppBus
13927a34269e8bcbde4332048ac0a899d5c75368
[ "MIT" ]
null
null
null
AppBus/Classes/Router.swift
pozi119/AppBus
13927a34269e8bcbde4332048ac0a899d5c75368
[ "MIT" ]
null
null
null
AppBus/Classes/Router.swift
pozi119/AppBus
13927a34269e8bcbde4332048ac0a899d5c75368
[ "MIT" ]
null
null
null
// // Router.swift // AppBus // // Created by Valo on 2019/9/11. // import Foundation #if os(iOS) || os(tvOS) import UIKit typealias APPViewController = UIViewController #else import AppKit typealias APPViewController = NSViewController #endif open class Page { enum Method { case push, present, pop, dismiss } var type: APPViewController.Type? var name: String? var storyboard: String? var bundle: Bundle? var parameters: [String: Any] = [:] var method: Method = .push /// (willShowController, topMostController or topMostController.navigationController) var willShow: ((APPViewController, APPViewController?) -> Void)? var completion: (() -> Void)? private var _viewController: APPViewController? var viewController: APPViewController? { get { if _viewController != nil { return _viewController } if type != nil { _viewController = type!.init() } else if name != nil { if storyboard == nil { _viewController = APPViewController(nibName: name!, bundle: bundle) } else { #if os(iOS) || os(tvOS) let sb = UIStoryboard(name: name!, bundle: bundle) _viewController = sb.instantiateViewController(withIdentifier: name!) #else let sb = NSStoryboard(name: name!, bundle: bundle) _viewController = sb.instantiateController(withIdentifier: name!) as? APPViewController #endif } } if _viewController != nil { _viewController!.setValuesForKeys(parameters) } return _viewController } set { _viewController = newValue } } init(_ type: APPViewController.Type, parameters: [String: Any] = [:]) { self.type = type self.parameters = parameters } init(_ name: String, storyboard: String, bundle: Bundle? = nil, parameters: [String: Any] = [:]) { self.name = name self.storyboard = storyboard self.bundle = bundle self.parameters = parameters } #if os(iOS) || os(tvOS) func show() -> Bool { guard let topMostViewController = APPViewController.topMost else { return false } switch method { case .push: guard let vc = viewController, let navigationController = topMostViewController.navigationController else { return false } if willShow != nil { willShow!(vc, navigationController) } navigationController.pushViewController(vc, animated: true) case .present: guard let vc = viewController else { return false } if willShow != nil { willShow!(vc, topMostViewController) } topMostViewController.present(vc, animated: true, completion: completion) case .pop: guard let navigationController = topMostViewController.navigationController else { return false } if let vc = viewController { let filtered = navigationController.viewControllers.filter { $0.isKind(of: vc.classForCoder) } if let targetController = filtered.first { targetController.setValuesForKeys(parameters) navigationController.popToViewController(targetController, animated: true) return true } } navigationController.popViewController(animated: true) case .dismiss: if let vc = viewController { var count = 0 var targetController: APPViewController? var controller: APPViewController? = topMostViewController while controller != nil, targetController != nil { if controller!.isKind(of: vc.classForCoder) { targetController = controller } else { controller = controller!.presentedViewController count += 1 } } if targetController != nil { for _ in 0 ..< count - 1 { topMostViewController.dismiss(animated: false, completion: nil) } } } topMostViewController.dismiss(animated: true, completion: completion) } return true } #endif } /// URL Router public final class Router { fileprivate static let shared: Router = Router() public typealias Handler = (_ path: String, _ parameters: [String: String]) -> Bool private var routers: [String: Any] = [:] } extension Router { /// register url path for handler public class func register(_ path: String, handler: @escaping Handler) { shared.routers[path] = handler } /// register url path for page public class func register(_ path: String, page: Page) { shared.routers[path] = page } /// deregister provider public class func deregister(_ path: String) { shared.routers.removeValue(forKey: path) } } extension Router { /// open url /// /// - Parameters: /// - url: url as follows /// - `app://provider/action/sub1path/sub2path?key1=val1&key2=val2 ...`, /// - `app://www.xxx.com/provider/action/sub1path/sub2path?key1=val1&key2=val2 ...`, /// - `app://192.168.11.2/provider/action/sub1path/sub2path?key1=val1&key2=val2 ...` /// - Returns: success or not @discardableResult public class func open(_ url: URL) -> Bool { if let parameters = url.routerParameters { let item = shared.routers[parameters.path] switch item { case let item as Page: #if os(iOS) || os(watchOS) return item.show() #else break #endif case let item as Handler: return item(parameters.path, parameters.parameters) default: break } } if let request = url.serviceRequest { _ = Service.sync(request) return true } return false } /// open url /// /// - Parameters: /// - url: url as follows /// - `app://provider/action/sub1path/sub2path?key1=val1&key2=val2 ...`, /// - `app://www.xxx.com/provider/action/sub1path/sub2path?key1=val1&key2=val2 ...`, /// - `app://192.168.11.2/provider/action/sub1path/sub2path?key1=val1&key2=val2 ...` /// - Returns: success or not @discardableResult public class func open(_ url: String) -> Bool { guard let _url = URL(string: url) else { return false } return open(_url) } }
35.651515
138
0.555319
1816b86e4ba5afcd915611b0db79fffb21b80faf
172
css
CSS
boda-web/src/main/webapp/resources/css/tareaDetail.css
Uniandes-isis2603/s4_bodas
7bbec854e6bad4b7fc3fe6dece28fee35693a6f2
[ "MIT" ]
null
null
null
boda-web/src/main/webapp/resources/css/tareaDetail.css
Uniandes-isis2603/s4_bodas
7bbec854e6bad4b7fc3fe6dece28fee35693a6f2
[ "MIT" ]
null
null
null
boda-web/src/main/webapp/resources/css/tareaDetail.css
Uniandes-isis2603/s4_bodas
7bbec854e6bad4b7fc3fe6dece28fee35693a6f2
[ "MIT" ]
1
2018-08-06T16:07:23.000Z
2018-08-06T16:07:23.000Z
.margin-top{ padding-top: 30px; } #nombreTarea, #headPanel { text-align: left; background: #ffdffc; font-size: xx-large; font-family: 'Pacifico'; }
11.466667
27
0.610465
f1d30647fb883fe1d52819ca7817491488b10b8a
587
swift
Swift
validation-test/compiler_crashers_2_fixed/0199-rdar52679284.swift
lwhsu/swift
e1e7a3fe75b4762d5e3d4d241f40b56946a03fdb
[ "Apache-2.0" ]
72,551
2015-12-03T16:45:13.000Z
2022-03-31T18:57:59.000Z
validation-test/compiler_crashers_2_fixed/0199-rdar52679284.swift
lwhsu/swift
e1e7a3fe75b4762d5e3d4d241f40b56946a03fdb
[ "Apache-2.0" ]
39,352
2015-12-03T16:55:06.000Z
2022-03-31T23:43:41.000Z
validation-test/compiler_crashers_2_fixed/0199-rdar52679284.swift
lwhsu/swift
e1e7a3fe75b4762d5e3d4d241f40b56946a03fdb
[ "Apache-2.0" ]
13,845
2015-12-03T16:45:13.000Z
2022-03-31T11:32:29.000Z
// RUN: %target-swift-frontend -typecheck %s -verify public protocol MyBindableObject {} @propertyWrapper public struct MyBinding<T> where T : MyBindableObject { // expected-error{{internal initializer 'init(wrappedValue:)' cannot have more restrictive access than its enclosing property wrapper type 'MyBinding' (which is public)}} public var wrappedValue: T } class BeaconDetector: MyBindableObject { @MyBinding var detector = BeaconDetector() init() { detector.undefined = 45 // expected-error{{value of type 'BeaconDetector' has no member 'undefined'}} } }
39.133333
226
0.741056
6d142340cfc7c88e9e465facf32daa7f71546ef0
1,031
sql
SQL
modules/boonex/membership/install/sql/uninstall.sql
Drakula35332458/dolphin.pro
c4cfe3e0fcff22dbfc9d8e1af1de1190f21ef388
[ "CC-BY-3.0" ]
152
2015-08-24T07:52:11.000Z
2022-02-11T12:49:57.000Z
modules/boonex/membership/install/sql/uninstall.sql
Drakula35332458/dolphin.pro
c4cfe3e0fcff22dbfc9d8e1af1de1190f21ef388
[ "CC-BY-3.0" ]
673
2015-08-23T05:28:29.000Z
2021-12-30T03:33:36.000Z
modules/boonex/membership/install/sql/uninstall.sql
Drakula35332458/dolphin.pro
c4cfe3e0fcff22dbfc9d8e1af1de1190f21ef388
[ "CC-BY-3.0" ]
182
2015-08-24T10:55:33.000Z
2022-02-11T12:50:02.000Z
SET @sModuleName = 'Membership'; -- options SET @iCategoryId = (SELECT `ID` FROM `sys_options_cats` WHERE `name`=@sModuleName LIMIT 1); DELETE FROM `sys_options_cats` WHERE `name`=@sModuleName LIMIT 1; DELETE FROM `sys_options` WHERE `kateg`=@iCategoryId OR `Name`='permalinks_module_membership'; -- menus DELETE FROM `sys_permalinks` WHERE `check`='permalinks_module_membership'; DELETE FROM `sys_menu_top` WHERE `Name`='My Membership'; DELETE FROM `sys_menu_admin` WHERE `name`=@sModuleName; -- pages and blocks DELETE FROM `sys_page_compose_pages` WHERE `Name` IN ('bx_mbp_my_membership', 'bx_mbp_join'); DELETE FROM `sys_page_compose` WHERE `Page` IN ('bx_mbp_my_membership', 'bx_mbp_join'); -- cron DELETE FROM `sys_cron_jobs` WHERE `name`=@sModuleName; -- alerts SET @iHandlerId = (SELECT `id` FROM `sys_alerts_handlers` WHERE `name`=@sModuleName LIMIT 1); DELETE FROM `sys_alerts_handlers` WHERE `name`=@sModuleName LIMIT 1; DELETE FROM `sys_alerts` WHERE `handler_id`=@iHandlerId;
33.258065
95
0.737148
6026a4974144dc3f48d6c2a7a91654421dd3819e
1,060
lua
Lua
military-extended_1.8.0/prototypes/items/ammunition/heavy_duty_bullets.lua
Sigma-One/military-extended
7f04c2d8c47ee57193d01caa2e7acfeb58b8a88d
[ "MIT" ]
null
null
null
military-extended_1.8.0/prototypes/items/ammunition/heavy_duty_bullets.lua
Sigma-One/military-extended
7f04c2d8c47ee57193d01caa2e7acfeb58b8a88d
[ "MIT" ]
null
null
null
military-extended_1.8.0/prototypes/items/ammunition/heavy_duty_bullets.lua
Sigma-One/military-extended
7f04c2d8c47ee57193d01caa2e7acfeb58b8a88d
[ "MIT" ]
null
null
null
data:extend ({ -- heavy bullets { type = "ammo", name = "heavy-bullet-magazine", icon = "__military-extended__/graphics/ammo/heavy-bullet.png", flags = {"goes-to-main-inventory"}, ammo_type = { category = "heavy-bullet", target_type = "direction", action = { { type = "direct", action_delivery = { type = "instant", source_effects = { { type = "create-explosion", entity_name = "explosion-gunshot" } } } }, { type = "direct", action_delivery = { type = "projectile", projectile = "minigun-bullet", starting_speed = 1.2, direction_deviation = 0.1, range_deviation = 0.3, max_range = 22 } } } }, magazine_size = 20, subgroup = "ammo", order = "b[heavy-bullet-magazine]", stack_size = 100 } })
21.632653
66
0.442453
0447d5dc924f2b5a11374fcd682025037d60e21a
1,727
java
Java
src/main/java/com/android/tools/r8/ir/optimize/info/field/InstanceFieldArgumentInitializationInfo.java
mateuszkrzeszowiec/r8
c4e4ae59b83f3d913c34c55e90000a4756cfe65f
[ "Apache-2.0", "BSD-3-Clause" ]
8
2019-02-16T19:27:05.000Z
2020-10-30T20:10:42.000Z
src/main/java/com/android/tools/r8/ir/optimize/info/field/InstanceFieldArgumentInitializationInfo.java
mateuszkrzeszowiec/r8
c4e4ae59b83f3d913c34c55e90000a4756cfe65f
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/main/java/com/android/tools/r8/ir/optimize/info/field/InstanceFieldArgumentInitializationInfo.java
mateuszkrzeszowiec/r8
c4e4ae59b83f3d913c34c55e90000a4756cfe65f
[ "Apache-2.0", "BSD-3-Clause" ]
5
2019-03-03T04:49:03.000Z
2021-11-23T15:47:38.000Z
// Copyright (c) 2020, the R8 project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. package com.android.tools.r8.ir.optimize.info.field; import com.android.tools.r8.graph.AppView; import com.android.tools.r8.graph.GraphLens; import com.android.tools.r8.shaking.AppInfoWithLiveness; /** * Used to represent that a constructor initializes an instance field on the newly created instance * with argument number {@link #argumentIndex} from the constructor's argument list. */ public class InstanceFieldArgumentInitializationInfo implements InstanceFieldInitializationInfo { private final int argumentIndex; /** Intentionally package private, use {@link InstanceFieldInitializationInfoFactory} instead. */ InstanceFieldArgumentInitializationInfo(int argumentIndex) { this.argumentIndex = argumentIndex; } public int getArgumentIndex() { return argumentIndex; } @Override public boolean isArgumentInitializationInfo() { return true; } @Override public InstanceFieldArgumentInitializationInfo asArgumentInitializationInfo() { return this; } @Override public InstanceFieldInitializationInfo rewrittenWithLens( AppView<AppInfoWithLiveness> appView, GraphLens lens) { // We don't have the context here to determine what should happen. It is the responsibility of // optimizations that change the proto of instance initializers to update the argument // initialization info. return this; } @Override public String toString() { return "InstanceFieldArgumentInitializationInfo(argumentIndex=" + argumentIndex + ")"; } }
33.211538
99
0.770122
3b4f9f4e5aa040319e4166085ac1ff4298ce7ae3
2,534
h
C
algorithms/kernel/brownboost/inner/brownboost_train_kernel_v1.h
zjf2012/daal
1d53cb3d71fb8f49fc7d79e50ca3c503c40a2b04
[ "Apache-2.0" ]
null
null
null
algorithms/kernel/brownboost/inner/brownboost_train_kernel_v1.h
zjf2012/daal
1d53cb3d71fb8f49fc7d79e50ca3c503c40a2b04
[ "Apache-2.0" ]
null
null
null
algorithms/kernel/brownboost/inner/brownboost_train_kernel_v1.h
zjf2012/daal
1d53cb3d71fb8f49fc7d79e50ca3c503c40a2b04
[ "Apache-2.0" ]
null
null
null
/* file: brownboost_train_kernel_v1.h */ /******************************************************************************* * Copyright 2014-2019 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *******************************************************************************/ /* //++ // Declaration of template function that trains Brown Boost model. //-- */ #ifndef __BROWN_BOOST_TRAIN_KERNEL_V1_H___ #define __BROWN_BOOST_TRAIN_KERNEL_V1_H___ #include "brownboost_model.h" #include "brownboost_training_types.h" #include "kernel.h" #include "service_numeric_table.h" using namespace daal::data_management; namespace daal { namespace algorithms { namespace brownboost { namespace training { namespace internal { template <Method method, typename algorithmFPType, CpuType cpu> class I1BrownBoostTrainKernel : public Kernel { public: services::Status compute(size_t n, NumericTablePtr *a, brownboost::interface1::Model *r, const brownboost::interface1::Parameter *par); private: typedef typename daal::internal::HomogenNumericTableCPU<algorithmFPType, cpu> HomogenNT; typedef typename services::SharedPtr<HomogenNT> HomogenNTPtr; void updateWeights(size_t nVectors, algorithmFPType s, algorithmFPType c, algorithmFPType invSqrtC, const algorithmFPType *r, algorithmFPType *nra, algorithmFPType *nre2, algorithmFPType *w); algorithmFPType *reallocateAlpha(size_t oldAlphaSize, size_t alphaSize, algorithmFPType *oldAlpha, services::Status& s); services::Status brownBoostFreundKernel(size_t nVectors, NumericTablePtr weakLearnerInputTables[], const HomogenNTPtr& hTable, const algorithmFPType *y, brownboost::interface1::Model *boostModel, brownboost::interface1::Parameter *parameter, size_t& nWeakLearners, algorithmFPType *&alpha); }; } // namespace daal::algorithms::brownboost::training::internal } } } } // namespace daal #endif
34.243243
143
0.688635
fb4a266318b4cf9e43bbf48eeca04a48ccec39b4
882
c
C
FreeBSD/contrib/ipfilter/lib/print_toif.c
TigerBSD/FreeBSD-Custom-ThinkPad
3d092f261b362f73170871403397fc5d6b89d1dc
[ "0BSD" ]
4
2016-08-22T22:02:55.000Z
2017-03-04T22:56:44.000Z
FreeBSD/contrib/ipfilter/lib/print_toif.c
TigerBSD/FreeBSD-Custom-ThinkPad
3d092f261b362f73170871403397fc5d6b89d1dc
[ "0BSD" ]
21
2016-08-11T09:43:43.000Z
2017-01-29T12:52:56.000Z
FreeBSD/contrib/ipfilter/lib/print_toif.c
TigerBSD/TigerBSD
3d092f261b362f73170871403397fc5d6b89d1dc
[ "0BSD" ]
null
null
null
/* $FreeBSD$ */ /* * Copyright (C) 2012 by Darren Reed. * * See the IPFILTER.LICENCE file for details on licencing. * * $Id$ */ #include "ipf.h" void print_toif(family, tag, base, fdp) int family; char *tag; char *base; frdest_t *fdp; { switch (fdp->fd_type) { case FRD_NORMAL : PRINTF("%s %s%s", tag, base + fdp->fd_name, (fdp->fd_ptr || (long)fdp->fd_ptr == -1) ? "" : "(!)"); #ifdef USE_INET6 if (family == AF_INET6) { if (IP6_NOTZERO(&fdp->fd_ip6)) { char ipv6addr[80]; inet_ntop(AF_INET6, &fdp->fd_ip6, ipv6addr, sizeof(fdp->fd_ip6)); PRINTF(":%s", ipv6addr); } } else #endif if (fdp->fd_ip.s_addr) PRINTF(":%s", inet_ntoa(fdp->fd_ip)); putchar(' '); break; case FRD_DSTLIST : PRINTF("%s dstlist/%s ", tag, base + fdp->fd_name); break; default : PRINTF("%s <%d>", tag, fdp->fd_type); break; } }
17.294118
64
0.580499
9c9e8a9423680880d0c1dcba2ad0a9bf2c5a1f5e
327
kt
Kotlin
app/src/main/java/com/mgoes/supermercado/listadesupermercado/OutraActivity.kt
marcos-goes/lista-supermercado
ffd06115b233443f6288e6e8f0ae424bf75fa99d
[ "MIT" ]
null
null
null
app/src/main/java/com/mgoes/supermercado/listadesupermercado/OutraActivity.kt
marcos-goes/lista-supermercado
ffd06115b233443f6288e6e8f0ae424bf75fa99d
[ "MIT" ]
null
null
null
app/src/main/java/com/mgoes/supermercado/listadesupermercado/OutraActivity.kt
marcos-goes/lista-supermercado
ffd06115b233443f6288e6e8f0ae424bf75fa99d
[ "MIT" ]
null
null
null
package com.mgoes.supermercado.listadesupermercado import android.os.Bundle import android.support.v7.app.AppCompatActivity class OutraActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_outra) } }
25.153846
56
0.7737
0bb65a8a7a5c97d7bbbf160a8b21192e001e28cc
38,482
js
JavaScript
dist/index.common.js
xuliangzhan/vxe-table-plugin-excel
179514cf007e2f869bf3a4c396d9b95928d5f7db
[ "MIT" ]
8
2019-08-13T09:33:12.000Z
2020-01-17T02:12:57.000Z
dist/index.common.js
x-extends/vxe-table-plugin-excel
179514cf007e2f869bf3a4c396d9b95928d5f7db
[ "MIT" ]
1
2020-03-04T05:55:18.000Z
2020-05-23T10:20:43.000Z
dist/index.common.js
xuliangzhan/vxe-table-plugin-excel
179514cf007e2f869bf3a4c396d9b95928d5f7db
[ "MIT" ]
2
2019-10-25T00:45:51.000Z
2020-04-16T09:36:12.000Z
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = exports.VXETablePluginExcel = void 0; var _ctor = _interopRequireDefault(require("xe-utils/ctor")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } /* eslint-enable no-unused-vars */ var excelEditConfig = { trigger: 'dblclick', mode: 'cell', showIcon: false, showStatus: false }; var excelContextMenu = { header: { options: [[{ code: 'exportAll', name: '隐藏列' }, { code: 'exportAll', name: '取消所有隐藏' }]] }, body: { options: [[{ code: 'clip', name: '剪贴(Ctrl+X)' }, { code: 'copy', name: '复制(Ctrl+C)' }, { code: 'paste', name: '粘贴(Ctrl+V)' }], [{ code: 'insert', name: '插入' }, { code: 'remove', name: '删除' }, { code: 'clearData', name: '清除内容(Del)' }], [{ code: 'filter', name: '筛选', children: [{ code: 'clearFilter', name: '清除筛选' }, { code: 'filterSelect', name: '按所选单元格的值筛选' }] }, { code: 'sort', name: '排序', children: [{ code: 'clearSort', name: '清除排序' }, { code: 'sortAsc', name: '升序' }, { code: 'sortDesc', name: '倒序' }] }], [{ code: 'exportAll', name: '导出数据.csv' }]] } }; function registerComponent(params) { var _Vue = params.Vue; var Table = params.Table; var Excel = { name: 'VxeExcel', props: { columns: Array }, data: function data() { return { excelStore: { uploadRows: [] } }; }, computed: { tableProps: function tableProps() { var $props = this.$props, editConfig = this.editConfig, sortConfig = this.sortConfig, filterConfig = this.filterConfig; return _ctor["default"].assign({}, $props, { border: true, resizable: true, showOverflow: null, contextMenu: excelContextMenu, mouseConfig: { selected: true, checked: true }, keyboardConfig: { isArrow: true, isDel: true, isEnter: true, isTab: true, isCut: true, isEdit: true }, editConfig: Object.assign({}, excelEditConfig, editConfig), sortConfig: Object.assign({ showIcon: false }, sortConfig), filterConfig: Object.assign({ showIcon: false }, filterConfig), optimization: { scrollX: { gt: 100 }, scrollY: { gt: 200 } } }); } }, watch: { columns: function columns(value) { this.loadColumn(value); } }, mounted: function mounted() { var columns = this.columns; if (columns && columns.length) { this.loadColumn(this.columns); } }, render: function render(h) { var $slots = this.$slots, $listeners = this.$listeners, tableProps = this.tableProps; return h('vxe-table', { "class": 'vxe-excel', props: tableProps, on: _ctor["default"].assign({}, $listeners, { 'context-menu-click': this.contextMenuClickEvent }), ref: 'xTable' }, $slots["default"]); }, methods: { contextMenuClickEvent: function contextMenuClickEvent(params, evnt) { var menu = params.menu, row = params.row, column = params.column; var $table = this.$refs.xTable; var property = column.property; switch (menu.code) { case 'clip': $table.handleCopyed(true, evnt); break; case 'copy': $table.handleCopyed(false, evnt); break; case 'paste': $table.handlePaste(evnt); break; case 'insert': $table.insertAt({}, row); break; case 'remove': $table.remove(row); break; case 'clearData': $table.clearData(row, property); break; case 'clearFilter': $table.clearFilter(column); break; case 'filterSelect': $table.setFilter(column, [{ data: _ctor["default"].get(row, property), checked: true }]); $table.updateData(); $table.clearIndexChecked(); $table.clearHeaderChecked(); $table.clearChecked(); $table.clearSelected(); $table.clearCopyed(); break; case 'clearSort': $table.clearSort(); break; case 'sortAsc': $table.sort(property, 'asc'); break; case 'sortDesc': $table.sort(property, 'desc'); break; case 'exportAll': $table.exportData({ isHeader: false }); break; } } } }; // 继承 Table _ctor["default"].assign(Excel.props, Table.props); _ctor["default"].each(Table.methods, function (cb, name) { Excel.methods[name] = function () { return this.$refs.xTable[name].apply(this.$refs.xTable, arguments); }; }); _Vue.component(Excel.name, Excel); } var rowHeight = 24; function getCursorPosition(textarea) { var rangeData = { text: '', start: 0, end: 0 }; if (textarea.setSelectionRange) { rangeData.start = textarea.selectionStart; rangeData.end = textarea.selectionEnd; } return rangeData; } function setCursorPosition(textarea, rangeData) { if (textarea.setSelectionRange) { textarea.focus(); textarea.setSelectionRange(rangeData.start, rangeData.end); } } /** * 渲染函数 */ var renderMap = { cell: { autofocus: 'textarea', renderEdit: function renderEdit(h, editRender, params) { var $table = params.$table, row = params.row; var $excel = $table.$parent; var excelStore = $excel.excelStore; var uploadRows = excelStore.uploadRows; var column = params.column; var model = column.model; return [h('div', { "class": 'vxe-textarea vxe-excel-cell', style: { height: "".concat(column.renderHeight, "px") } }, [h('textarea', { "class": 'vxe-textarea--inner', style: { width: "".concat(column.renderWidth, "px") }, domProps: { value: model.value }, on: { input: function input(evnt) { var inpElem = evnt.target; model.update = true; model.value = inpElem.value; if (inpElem.scrollHeight > inpElem.offsetHeight) { if (uploadRows.indexOf(row) === -1) { inpElem.style.width = "".concat(inpElem.offsetWidth + 20, "px"); } else { inpElem.style.height = "".concat(inpElem.scrollHeight, "px"); } } }, change: function change() { if (uploadRows.indexOf(row) === -1) { uploadRows.push(row); } }, keydown: function keydown(evnt) { var inpElem = evnt.target; if (evnt.altKey && evnt.keyCode === 13) { evnt.preventDefault(); evnt.stopPropagation(); var rangeData = getCursorPosition(inpElem); var pos = rangeData.end; var cellValue = inpElem.value; cellValue = "".concat(cellValue.slice(0, pos), "\n").concat(cellValue.slice(pos, cellValue.length)); inpElem.value = cellValue; model.update = true; model.value = cellValue; inpElem.style.height = "".concat((Math.floor(inpElem.offsetHeight / rowHeight) + 1) * rowHeight, "px"); setTimeout(function () { rangeData.start = rangeData.end = ++pos; setCursorPosition(inpElem, rangeData); }); } } } })])]; }, renderCell: function renderCell(h, editRender, params) { var row = params.row, column = params.column; return [h('span', { domProps: { innerHTML: _ctor["default"].escape(_ctor["default"].get(row, column.property)).replace(/\n/g, '<br>') } })]; } } }; /** * 基于 vxe-table 表格的增强插件,实现简单的 EXCEL 表格 */ var VXETablePluginExcel = { install: function install(xtable) { var renderer = xtable.renderer, v = xtable.v; if (v !== 'v2') { throw new Error('[vxe-table-plugin-excel] V2 version is required.'); } // 添加到渲染器 renderer.mixin(renderMap); // 注册组件 registerComponent(xtable); } }; exports.VXETablePluginExcel = VXETablePluginExcel; if (typeof window !== 'undefined' && window.VXETable) { window.VXETable.use(VXETablePluginExcel); } var _default = VXETablePluginExcel; exports["default"] = _default; //# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbImV4Y2VsRWRpdENvbmZpZyIsInRyaWdnZXIiLCJtb2RlIiwic2hvd0ljb24iLCJzaG93U3RhdHVzIiwiZXhjZWxDb250ZXh0TWVudSIsImhlYWRlciIsIm9wdGlvbnMiLCJjb2RlIiwibmFtZSIsImJvZHkiLCJjaGlsZHJlbiIsInJlZ2lzdGVyQ29tcG9uZW50IiwicGFyYW1zIiwiX1Z1ZSIsIlZ1ZSIsIlRhYmxlIiwiRXhjZWwiLCJwcm9wcyIsImNvbHVtbnMiLCJBcnJheSIsImRhdGEiLCJleGNlbFN0b3JlIiwidXBsb2FkUm93cyIsImNvbXB1dGVkIiwidGFibGVQcm9wcyIsIiRwcm9wcyIsImVkaXRDb25maWciLCJzb3J0Q29uZmlnIiwiZmlsdGVyQ29uZmlnIiwiWEVVdGlscyIsImFzc2lnbiIsImJvcmRlciIsInJlc2l6YWJsZSIsInNob3dPdmVyZmxvdyIsImNvbnRleHRNZW51IiwibW91c2VDb25maWciLCJzZWxlY3RlZCIsImNoZWNrZWQiLCJrZXlib2FyZENvbmZpZyIsImlzQXJyb3ciLCJpc0RlbCIsImlzRW50ZXIiLCJpc1RhYiIsImlzQ3V0IiwiaXNFZGl0IiwiT2JqZWN0Iiwib3B0aW1pemF0aW9uIiwic2Nyb2xsWCIsImd0Iiwic2Nyb2xsWSIsIndhdGNoIiwidmFsdWUiLCJsb2FkQ29sdW1uIiwibW91bnRlZCIsImxlbmd0aCIsInJlbmRlciIsImgiLCIkc2xvdHMiLCIkbGlzdGVuZXJzIiwib24iLCJjb250ZXh0TWVudUNsaWNrRXZlbnQiLCJyZWYiLCJtZXRob2RzIiwiZXZudCIsIm1lbnUiLCJyb3ciLCJjb2x1bW4iLCIkdGFibGUiLCIkcmVmcyIsInhUYWJsZSIsInByb3BlcnR5IiwiaGFuZGxlQ29weWVkIiwiaGFuZGxlUGFzdGUiLCJpbnNlcnRBdCIsInJlbW92ZSIsImNsZWFyRGF0YSIsImNsZWFyRmlsdGVyIiwic2V0RmlsdGVyIiwiZ2V0IiwidXBkYXRlRGF0YSIsImNsZWFySW5kZXhDaGVja2VkIiwiY2xlYXJIZWFkZXJDaGVja2VkIiwiY2xlYXJDaGVja2VkIiwiY2xlYXJTZWxlY3RlZCIsImNsZWFyQ29weWVkIiwiY2xlYXJTb3J0Iiwic29ydCIsImV4cG9ydERhdGEiLCJpc0hlYWRlciIsImVhY2giLCJjYiIsImFwcGx5IiwiYXJndW1lbnRzIiwiY29tcG9uZW50Iiwicm93SGVpZ2h0IiwiZ2V0Q3Vyc29yUG9zaXRpb24iLCJ0ZXh0YXJlYSIsInJhbmdlRGF0YSIsInRleHQiLCJzdGFydCIsImVuZCIsInNldFNlbGVjdGlvblJhbmdlIiwic2VsZWN0aW9uU3RhcnQiLCJzZWxlY3Rpb25FbmQiLCJzZXRDdXJzb3JQb3NpdGlvbiIsImZvY3VzIiwicmVuZGVyTWFwIiwiY2VsbCIsImF1dG9mb2N1cyIsInJlbmRlckVkaXQiLCJlZGl0UmVuZGVyIiwiJGV4Y2VsIiwiJHBhcmVudCIsIm1vZGVsIiwic3R5bGUiLCJoZWlnaHQiLCJyZW5kZXJIZWlnaHQiLCJ3aWR0aCIsInJlbmRlcldpZHRoIiwiZG9tUHJvcHMiLCJpbnB1dCIsImlucEVsZW0iLCJ0YXJnZXQiLCJ1cGRhdGUiLCJzY3JvbGxIZWlnaHQiLCJvZmZzZXRIZWlnaHQiLCJpbmRleE9mIiwib2Zmc2V0V2lkdGgiLCJjaGFuZ2UiLCJwdXNoIiwia2V5ZG93biIsImFsdEtleSIsImtleUNvZGUiLCJwcmV2ZW50RGVmYXVsdCIsInN0b3BQcm9wYWdhdGlvbiIsInBvcyIsImNlbGxWYWx1ZSIsInNsaWNlIiwiTWF0aCIsImZsb29yIiwic2V0VGltZW91dCIsInJlbmRlckNlbGwiLCJpbm5lckhUTUwiLCJlc2NhcGUiLCJyZXBsYWNlIiwiVlhFVGFibGVQbHVnaW5FeGNlbCIsImluc3RhbGwiLCJ4dGFibGUiLCJyZW5kZXJlciIsInYiLCJFcnJvciIsIm1peGluIiwid2luZG93IiwiVlhFVGFibGUiLCJ1c2UiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFFQTs7OztBQVVBO0FBRUEsSUFBTUEsZUFBZSxHQUFHO0FBQ3RCQyxFQUFBQSxPQUFPLEVBQUUsVUFEYTtBQUV0QkMsRUFBQUEsSUFBSSxFQUFFLE1BRmdCO0FBR3RCQyxFQUFBQSxRQUFRLEVBQUUsS0FIWTtBQUl0QkMsRUFBQUEsVUFBVSxFQUFFO0FBSlUsQ0FBeEI7QUFPQSxJQUFNQyxnQkFBZ0IsR0FBRztBQUN2QkMsRUFBQUEsTUFBTSxFQUFFO0FBQ05DLElBQUFBLE9BQU8sRUFBRSxDQUNQLENBQ0U7QUFDRUMsTUFBQUEsSUFBSSxFQUFFLFdBRFI7QUFFRUMsTUFBQUEsSUFBSSxFQUFFO0FBRlIsS0FERixFQUtFO0FBQ0VELE1BQUFBLElBQUksRUFBRSxXQURSO0FBRUVDLE1BQUFBLElBQUksRUFBRTtBQUZSLEtBTEYsQ0FETztBQURILEdBRGU7QUFldkJDLEVBQUFBLElBQUksRUFBRTtBQUNKSCxJQUFBQSxPQUFPLEVBQUUsQ0FDUCxDQUNFO0FBQ0VDLE1BQUFBLElBQUksRUFBRSxNQURSO0FBRUVDLE1BQUFBLElBQUksRUFBRTtBQUZSLEtBREYsRUFLRTtBQUNFRCxNQUFBQSxJQUFJLEVBQUUsTUFEUjtBQUVFQyxNQUFBQSxJQUFJLEVBQUU7QUFGUixLQUxGLEVBU0U7QUFDRUQsTUFBQUEsSUFBSSxFQUFFLE9BRFI7QUFFRUMsTUFBQUEsSUFBSSxFQUFFO0FBRlIsS0FURixDQURPLEVBZVAsQ0FDRTtBQUNFRCxNQUFBQSxJQUFJLEVBQUUsUUFEUjtBQUVFQyxNQUFBQSxJQUFJLEVBQUU7QUFGUixLQURGLEVBS0U7QUFDRUQsTUFBQUEsSUFBSSxFQUFFLFFBRFI7QUFFRUMsTUFBQUEsSUFBSSxFQUFFO0FBRlIsS0FMRixFQVNFO0FBQ0VELE1BQUFBLElBQUksRUFBRSxXQURSO0FBRUVDLE1BQUFBLElBQUksRUFBRTtBQUZSLEtBVEYsQ0FmTyxFQTZCUCxDQUNFO0FBQ0VELE1BQUFBLElBQUksRUFBRSxRQURSO0FBRUVDLE1BQUFBLElBQUksRUFBRSxJQUZSO0FBR0VFLE1BQUFBLFFBQVEsRUFBRSxDQUNSO0FBQ0VILFFBQUFBLElBQUksRUFBRSxhQURSO0FBRUVDLFFBQUFBLElBQUksRUFBRTtBQUZSLE9BRFEsRUFLUjtBQUNFRCxRQUFBQSxJQUFJLEVBQUUsY0FEUjtBQUVFQyxRQUFBQSxJQUFJLEVBQUU7QUFGUixPQUxRO0FBSFosS0FERixFQWVFO0FBQ0VELE1BQUFBLElBQUksRUFBRSxNQURSO0FBRUVDLE1BQUFBLElBQUksRUFBRSxJQUZSO0FBR0VFLE1BQUFBLFFBQVEsRUFBRSxDQUNSO0FBQ0VILFFBQUFBLElBQUksRUFBRSxXQURSO0FBRUVDLFFBQUFBLElBQUksRUFBRTtBQUZSLE9BRFEsRUFLUjtBQUNFRCxRQUFBQSxJQUFJLEVBQUUsU0FEUjtBQUVFQyxRQUFBQSxJQUFJLEVBQUU7QUFGUixPQUxRLEVBU1I7QUFDRUQsUUFBQUEsSUFBSSxFQUFFLFVBRFI7QUFFRUMsUUFBQUEsSUFBSSxFQUFFO0FBRlIsT0FUUTtBQUhaLEtBZkYsQ0E3Qk8sRUErRFAsQ0FDRTtBQUNFRCxNQUFBQSxJQUFJLEVBQUUsV0FEUjtBQUVFQyxNQUFBQSxJQUFJLEVBQUU7QUFGUixLQURGLENBL0RPO0FBREw7QUFmaUIsQ0FBekI7O0FBeUZBLFNBQVNHLGlCQUFULENBQTRCQyxNQUE1QixFQUF1QztBQUNyQyxNQUFNQyxJQUFJLEdBQWVELE1BQU0sQ0FBQ0UsR0FBaEM7QUFDQSxNQUFNQyxLQUFLLEdBQVFILE1BQU0sQ0FBQ0csS0FBMUI7QUFDQSxNQUFNQyxLQUFLLEdBQTJCO0FBQ3BDUixJQUFBQSxJQUFJLEVBQUUsVUFEOEI7QUFFcENTLElBQUFBLEtBQUssRUFBRTtBQUNMQyxNQUFBQSxPQUFPLEVBQUVDO0FBREosS0FGNkI7QUFLcENDLElBQUFBLElBTG9DLGtCQUtoQztBQUNGLGFBQU87QUFDTEMsUUFBQUEsVUFBVSxFQUFFO0FBQ1ZDLFVBQUFBLFVBQVUsRUFBRTtBQURGO0FBRFAsT0FBUDtBQUtELEtBWG1DO0FBWXBDQyxJQUFBQSxRQUFRLEVBQUU7QUFDUkMsTUFBQUEsVUFEUSx3QkFDRTtBQUFBLFlBQ0FDLE1BREEsR0FDaUQsSUFEakQsQ0FDQUEsTUFEQTtBQUFBLFlBQ1FDLFVBRFIsR0FDaUQsSUFEakQsQ0FDUUEsVUFEUjtBQUFBLFlBQ29CQyxVQURwQixHQUNpRCxJQURqRCxDQUNvQkEsVUFEcEI7QUFBQSxZQUNnQ0MsWUFEaEMsR0FDaUQsSUFEakQsQ0FDZ0NBLFlBRGhDO0FBRVIsZUFBT0MsaUJBQVFDLE1BQVIsQ0FBZSxFQUFmLEVBQW1CTCxNQUFuQixFQUEyQjtBQUNoQ00sVUFBQUEsTUFBTSxFQUFFLElBRHdCO0FBRWhDQyxVQUFBQSxTQUFTLEVBQUUsSUFGcUI7QUFHaENDLFVBQUFBLFlBQVksRUFBRSxJQUhrQjtBQUloQ0MsVUFBQUEsV0FBVyxFQUFFOUIsZ0JBSm1CO0FBS2hDK0IsVUFBQUEsV0FBVyxFQUFFO0FBQUVDLFlBQUFBLFFBQVEsRUFBRSxJQUFaO0FBQWtCQyxZQUFBQSxPQUFPLEVBQUU7QUFBM0IsV0FMbUI7QUFNaENDLFVBQUFBLGNBQWMsRUFBRTtBQUFFQyxZQUFBQSxPQUFPLEVBQUUsSUFBWDtBQUFpQkMsWUFBQUEsS0FBSyxFQUFFLElBQXhCO0FBQThCQyxZQUFBQSxPQUFPLEVBQUUsSUFBdkM7QUFBNkNDLFlBQUFBLEtBQUssRUFBRSxJQUFwRDtBQUEwREMsWUFBQUEsS0FBSyxFQUFFLElBQWpFO0FBQXVFQyxZQUFBQSxNQUFNLEVBQUU7QUFBL0UsV0FOZ0I7QUFPaENsQixVQUFBQSxVQUFVLEVBQUVtQixNQUFNLENBQUNmLE1BQVAsQ0FBYyxFQUFkLEVBQWtCL0IsZUFBbEIsRUFBbUMyQixVQUFuQyxDQVBvQjtBQVFoQ0MsVUFBQUEsVUFBVSxFQUFFa0IsTUFBTSxDQUFDZixNQUFQLENBQWM7QUFBRTVCLFlBQUFBLFFBQVEsRUFBRTtBQUFaLFdBQWQsRUFBbUN5QixVQUFuQyxDQVJvQjtBQVNoQ0MsVUFBQUEsWUFBWSxFQUFFaUIsTUFBTSxDQUFDZixNQUFQLENBQWM7QUFBRTVCLFlBQUFBLFFBQVEsRUFBRTtBQUFaLFdBQWQsRUFBbUMwQixZQUFuQyxDQVRrQjtBQVVoQ2tCLFVBQUFBLFlBQVksRUFBRTtBQUNaQyxZQUFBQSxPQUFPLEVBQUU7QUFDUEMsY0FBQUEsRUFBRSxFQUFFO0FBREcsYUFERztBQUlaQyxZQUFBQSxPQUFPLEVBQUU7QUFDUEQsY0FBQUEsRUFBRSxFQUFFO0FBREc7QUFKRztBQVZrQixTQUEzQixDQUFQO0FBbUJEO0FBdEJPLEtBWjBCO0FBb0NwQ0UsSUFBQUEsS0FBSyxFQUFFO0FBQ0xoQyxNQUFBQSxPQURLLG1CQUNlaUMsS0FEZixFQUNvQztBQUN2QyxhQUFLQyxVQUFMLENBQWdCRCxLQUFoQjtBQUNEO0FBSEksS0FwQzZCO0FBeUNwQ0UsSUFBQUEsT0F6Q29DLHFCQXlDN0I7QUFBQSxVQUNHbkMsT0FESCxHQUNlLElBRGYsQ0FDR0EsT0FESDs7QUFFTCxVQUFJQSxPQUFPLElBQUlBLE9BQU8sQ0FBQ29DLE1BQXZCLEVBQStCO0FBQzdCLGFBQUtGLFVBQUwsQ0FBZ0IsS0FBS2xDLE9BQXJCO0FBQ0Q7QUFDRixLQTlDbUM7QUErQ3BDcUMsSUFBQUEsTUEvQ29DLGtCQStDakJDLENBL0NpQixFQStDRDtBQUFBLFVBQ3pCQyxNQUR5QixHQUNVLElBRFYsQ0FDekJBLE1BRHlCO0FBQUEsVUFDakJDLFVBRGlCLEdBQ1UsSUFEVixDQUNqQkEsVUFEaUI7QUFBQSxVQUNMbEMsVUFESyxHQUNVLElBRFYsQ0FDTEEsVUFESztBQUVqQyxhQUFPZ0MsQ0FBQyxDQUFDLFdBQUQsRUFBYztBQUNwQixpQkFBTyxXQURhO0FBRXBCdkMsUUFBQUEsS0FBSyxFQUFFTyxVQUZhO0FBR3BCbUMsUUFBQUEsRUFBRSxFQUFFOUIsaUJBQVFDLE1BQVIsQ0FBZSxFQUFmLEVBQW1CNEIsVUFBbkIsRUFBK0I7QUFDakMsZ0NBQXNCLEtBQUtFO0FBRE0sU0FBL0IsQ0FIZ0I7QUFNcEJDLFFBQUFBLEdBQUcsRUFBRTtBQU5lLE9BQWQsRUFPTEosTUFBTSxXQVBELENBQVI7QUFRRCxLQXpEbUM7QUEwRHBDSyxJQUFBQSxPQUFPLEVBQUU7QUFDUEYsTUFBQUEscUJBRE8saUNBQzJCaEQsTUFEM0IsRUFDbURtRCxJQURuRCxFQUM0RDtBQUFBLFlBQ3pEQyxJQUR5RCxHQUNuQ3BELE1BRG1DLENBQ3pEb0QsSUFEeUQ7QUFBQSxZQUNuREMsR0FEbUQsR0FDbkNyRCxNQURtQyxDQUNuRHFELEdBRG1EO0FBQUEsWUFDOUNDLE1BRDhDLEdBQ25DdEQsTUFEbUMsQ0FDOUNzRCxNQUQ4QztBQUVqRSxZQUFNQyxNQUFNLEdBQUcsS0FBS0MsS0FBTCxDQUFXQyxNQUExQjtBQUZpRSxZQUd6REMsUUFIeUQsR0FHNUNKLE1BSDRDLENBR3pESSxRQUh5RDs7QUFJakUsZ0JBQVFOLElBQUksQ0FBQ3pELElBQWI7QUFDRSxlQUFLLE1BQUw7QUFDRTRELFlBQUFBLE1BQU0sQ0FBQ0ksWUFBUCxDQUFvQixJQUFwQixFQUEwQlIsSUFBMUI7QUFDQTs7QUFDRixlQUFLLE1BQUw7QUFDRUksWUFBQUEsTUFBTSxDQUFDSSxZQUFQLENBQW9CLEtBQXBCLEVBQTJCUixJQUEzQjtBQUNBOztBQUNGLGVBQUssT0FBTDtBQUNFSSxZQUFBQSxNQUFNLENBQUNLLFdBQVAsQ0FBbUJULElBQW5CO0FBQ0E7O0FBQ0YsZUFBSyxRQUFMO0FBQ0VJLFlBQUFBLE1BQU0sQ0FBQ00sUUFBUCxDQUFnQixFQUFoQixFQUFvQlIsR0FBcEI7QUFDQTs7QUFDRixlQUFLLFFBQUw7QUFDRUUsWUFBQUEsTUFBTSxDQUFDTyxNQUFQLENBQWNULEdBQWQ7QUFDQTs7QUFDRixlQUFLLFdBQUw7QUFDRUUsWUFBQUEsTUFBTSxDQUFDUSxTQUFQLENBQWlCVixHQUFqQixFQUFzQkssUUFBdEI7QUFDQTs7QUFDRixlQUFLLGFBQUw7QUFDRUgsWUFBQUEsTUFBTSxDQUFDUyxXQUFQLENBQW1CVixNQUFuQjtBQUNBOztBQUNGLGVBQUssY0FBTDtBQUNFQyxZQUFBQSxNQUFNLENBQUNVLFNBQVAsQ0FBaUJYLE1BQWpCLEVBQXlCLENBQ3ZCO0FBQUU5QyxjQUFBQSxJQUFJLEVBQUVTLGlCQUFRaUQsR0FBUixDQUFZYixHQUFaLEVBQWlCSyxRQUFqQixDQUFSO0FBQW9DakMsY0FBQUEsT0FBTyxFQUFFO0FBQTdDLGFBRHVCLENBQXpCO0FBR0E4QixZQUFBQSxNQUFNLENBQUNZLFVBQVA7QUFDQVosWUFBQUEsTUFBTSxDQUFDYSxpQkFBUDtBQUNBYixZQUFBQSxNQUFNLENBQUNjLGtCQUFQO0FBQ0FkLFlBQUFBLE1BQU0sQ0FBQ2UsWUFBUDtBQUNBZixZQUFBQSxNQUFNLENBQUNnQixhQUFQO0FBQ0FoQixZQUFBQSxNQUFNLENBQUNpQixXQUFQO0FBQ0E7O0FBQ0YsZUFBSyxXQUFMO0FBQ0VqQixZQUFBQSxNQUFNLENBQUNrQixTQUFQO0FBQ0E7O0FBQ0YsZUFBSyxTQUFMO0FBQ0VsQixZQUFBQSxNQUFNLENBQUNtQixJQUFQLENBQVloQixRQUFaLEVBQXNCLEtBQXRCO0FBQ0E7O0FBQ0YsZUFBSyxVQUFMO0FBQ0VILFlBQUFBLE1BQU0sQ0FBQ21CLElBQVAsQ0FBWWhCLFFBQVosRUFBc0IsTUFBdEI7QUFDQTs7QUFDRixlQUFLLFdBQUw7QUFDRUgsWUFBQUEsTUFBTSxDQUFDb0IsVUFBUCxDQUFrQjtBQUFFQyxjQUFBQSxRQUFRLEVBQUU7QUFBWixhQUFsQjtBQUNBO0FBNUNKO0FBOENEO0FBbkRNO0FBMUQyQixHQUF0QyxDQUhxQyxDQW1IckM7O0FBQ0EzRCxtQkFBUUMsTUFBUixDQUFlZCxLQUFLLENBQUNDLEtBQXJCLEVBQTRCRixLQUFLLENBQUNFLEtBQWxDOztBQUNBWSxtQkFBUTRELElBQVIsQ0FBYTFFLEtBQUssQ0FBQytDLE9BQW5CLEVBQTRCLFVBQUM0QixFQUFELEVBQWVsRixJQUFmLEVBQStCO0FBQ3pEUSxJQUFBQSxLQUFLLENBQUM4QyxPQUFOLENBQWN0RCxJQUFkLElBQXNCLFlBQUE7QUFDcEIsYUFBTyxLQUFLNEQsS0FBTCxDQUFXQyxNQUFYLENBQWtCN0QsSUFBbEIsRUFBd0JtRixLQUF4QixDQUE4QixLQUFLdkIsS0FBTCxDQUFXQyxNQUF6QyxFQUFpRHVCLFNBQWpELENBQVA7QUFDRCxLQUZEO0FBR0QsR0FKRDs7QUFLQS9FLEVBQUFBLElBQUksQ0FBQ2dGLFNBQUwsQ0FBZTdFLEtBQUssQ0FBQ1IsSUFBckIsRUFBMkJRLEtBQTNCO0FBQ0Q7O0FBRUQsSUFBTThFLFNBQVMsR0FBVyxFQUExQjs7QUFRQSxTQUFTQyxpQkFBVCxDQUE0QkMsUUFBNUIsRUFBeUM7QUFDdkMsTUFBTUMsU0FBUyxHQUFpQjtBQUFFQyxJQUFBQSxJQUFJLEVBQUUsRUFBUjtBQUFZQyxJQUFBQSxLQUFLLEVBQUUsQ0FBbkI7QUFBc0JDLElBQUFBLEdBQUcsRUFBRTtBQUEzQixHQUFoQzs7QUFDQSxNQUFJSixRQUFRLENBQUNLLGlCQUFiLEVBQWdDO0FBQzlCSixJQUFBQSxTQUFTLENBQUNFLEtBQVYsR0FBa0JILFFBQVEsQ0FBQ00sY0FBM0I7QUFDQUwsSUFBQUEsU0FBUyxDQUFDRyxHQUFWLEdBQWdCSixRQUFRLENBQUNPLFlBQXpCO0FBQ0Q7O0FBQ0QsU0FBT04sU0FBUDtBQUNEOztBQUVELFNBQVNPLGlCQUFULENBQTRCUixRQUE1QixFQUEyQ0MsU0FBM0MsRUFBa0U7QUFDaEUsTUFBSUQsUUFBUSxDQUFDSyxpQkFBYixFQUFnQztBQUM5QkwsSUFBQUEsUUFBUSxDQUFDUyxLQUFUO0FBQ0FULElBQUFBLFFBQVEsQ0FBQ0ssaUJBQVQsQ0FBMkJKLFNBQVMsQ0FBQ0UsS0FBckMsRUFBNENGLFNBQVMsQ0FBQ0csR0FBdEQ7QUFDRDtBQUNGO0FBRUQ7Ozs7O0FBR0EsSUFBTU0sU0FBUyxHQUFHO0FBQ2hCQyxFQUFBQSxJQUFJLEVBQUU7QUFDSkMsSUFBQUEsU0FBUyxFQUFFLFVBRFA7QUFFSkMsSUFBQUEsVUFGSSxzQkFFUXJELENBRlIsRUFFMEJzRCxVQUYxQixFQUUrRGxHLE1BRi9ELEVBRTZGO0FBQUEsVUFDdkZ1RCxNQUR1RixHQUN2RXZELE1BRHVFLENBQ3ZGdUQsTUFEdUY7QUFBQSxVQUMvRUYsR0FEK0UsR0FDdkVyRCxNQUR1RSxDQUMvRXFELEdBRCtFO0FBRS9GLFVBQU04QyxNQUFNLEdBQVE1QyxNQUFNLENBQUM2QyxPQUEzQjtBQUYrRixVQUd2RjNGLFVBSHVGLEdBR3hFMEYsTUFId0UsQ0FHdkYxRixVQUh1RjtBQUFBLFVBSXZGQyxVQUp1RixHQUl4RUQsVUFKd0UsQ0FJdkZDLFVBSnVGO0FBSy9GLFVBQU00QyxNQUFNLEdBQVF0RCxNQUFNLENBQUNzRCxNQUEzQjtBQUNBLFVBQU0rQyxLQUFLLEdBQW9DL0MsTUFBTSxDQUFDK0MsS0FBdEQ7QUFDQSxhQUFPLENBQ0x6RCxDQUFDLENBQUMsS0FBRCxFQUFRO0FBQ1AsaUJBQU8sNkJBREE7QUFFUDBELFFBQUFBLEtBQUssRUFBRTtBQUNMQyxVQUFBQSxNQUFNLFlBQUtqRCxNQUFNLENBQUNrRCxZQUFaO0FBREQ7QUFGQSxPQUFSLEVBS0UsQ0FDRDVELENBQUMsQ0FBQyxVQUFELEVBQWE7QUFDWixpQkFBTyxxQkFESztBQUVaMEQsUUFBQUEsS0FBSyxFQUFFO0FBQ0xHLFVBQUFBLEtBQUssWUFBS25ELE1BQU0sQ0FBQ29ELFdBQVo7QUFEQSxTQUZLO0FBS1pDLFFBQUFBLFFBQVEsRUFBRTtBQUNScEUsVUFBQUEsS0FBSyxFQUFFOEQsS0FBSyxDQUFDOUQ7QUFETCxTQUxFO0FBUVpRLFFBQUFBLEVBQUUsRUFBRTtBQUNGNkQsVUFBQUEsS0FERSxpQkFDS3pELElBREwsRUFDYztBQUNkLGdCQUFNMEQsT0FBTyxHQUFHMUQsSUFBSSxDQUFDMkQsTUFBckI7QUFDQVQsWUFBQUEsS0FBSyxDQUFDVSxNQUFOLEdBQWUsSUFBZjtBQUNBVixZQUFBQSxLQUFLLENBQUM5RCxLQUFOLEdBQWNzRSxPQUFPLENBQUN0RSxLQUF0Qjs7QUFDQSxnQkFBSXNFLE9BQU8sQ0FBQ0csWUFBUixHQUF1QkgsT0FBTyxDQUFDSSxZQUFuQyxFQUFpRDtBQUMvQyxrQkFBSXZHLFVBQVUsQ0FBQ3dHLE9BQVgsQ0FBbUI3RCxHQUFuQixNQUE0QixDQUFDLENBQWpDLEVBQW9DO0FBQ2xDd0QsZ0JBQUFBLE9BQU8sQ0FBQ1AsS0FBUixDQUFjRyxLQUFkLGFBQXlCSSxPQUFPLENBQUNNLFdBQVIsR0FBc0IsRUFBL0M7QUFDRCxlQUZELE1BRU87QUFDTE4sZ0JBQUFBLE9BQU8sQ0FBQ1AsS0FBUixDQUFjQyxNQUFkLGFBQTBCTSxPQUFPLENBQUNHLFlBQWxDO0FBQ0Q7QUFDRjtBQUNGLFdBWkM7QUFhRkksVUFBQUEsTUFiRSxvQkFhSTtBQUNKLGdCQUFJMUcsVUFBVSxDQUFDd0csT0FBWCxDQUFtQjdELEdBQW5CLE1BQTRCLENBQUMsQ0FBakMsRUFBb0M7QUFDbEMzQyxjQUFBQSxVQUFVLENBQUMyRyxJQUFYLENBQWdCaEUsR0FBaEI7QUFDRDtBQUNGLFdBakJDO0FBa0JGaUUsVUFBQUEsT0FsQkUsbUJBa0JPbkUsSUFsQlAsRUFrQmdCO0FBQ2hCLGdCQUFNMEQsT0FBTyxHQUFHMUQsSUFBSSxDQUFDMkQsTUFBckI7O0FBQ0EsZ0JBQUkzRCxJQUFJLENBQUNvRSxNQUFMLElBQWVwRSxJQUFJLENBQUNxRSxPQUFMLEtBQWlCLEVBQXBDLEVBQXdDO0FBQ3RDckUsY0FBQUEsSUFBSSxDQUFDc0UsY0FBTDtBQUNBdEUsY0FBQUEsSUFBSSxDQUFDdUUsZUFBTDtBQUNBLGtCQUFNckMsU0FBUyxHQUFHRixpQkFBaUIsQ0FBQzBCLE9BQUQsQ0FBbkM7QUFDQSxrQkFBSWMsR0FBRyxHQUFHdEMsU0FBUyxDQUFDRyxHQUFwQjtBQUNBLGtCQUFJb0MsU0FBUyxHQUFHZixPQUFPLENBQUN0RSxLQUF4QjtBQUNBcUYsY0FBQUEsU0FBUyxhQUFNQSxTQUFTLENBQUNDLEtBQVYsQ0FBZ0IsQ0FBaEIsRUFBbUJGLEdBQW5CLENBQU4sZUFBa0NDLFNBQVMsQ0FBQ0MsS0FBVixDQUFnQkYsR0FBaEIsRUFBcUJDLFNBQVMsQ0FBQ2xGLE1BQS9CLENBQWxDLENBQVQ7QUFDQW1FLGNBQUFBLE9BQU8sQ0FBQ3RFLEtBQVIsR0FBZ0JxRixTQUFoQjtBQUNBdkIsY0FBQUEsS0FBSyxDQUFDVSxNQUFOLEdBQWUsSUFBZjtBQUNBVixjQUFBQSxLQUFLLENBQUM5RCxLQUFOLEdBQWNxRixTQUFkO0FBQ0FmLGNBQUFBLE9BQU8sQ0FBQ1AsS0FBUixDQUFjQyxNQUFkLGFBQTBCLENBQUN1QixJQUFJLENBQUNDLEtBQUwsQ0FBV2xCLE9BQU8sQ0FBQ0ksWUFBUixHQUF1Qi9CLFNBQWxDLElBQStDLENBQWhELElBQXFEQSxTQUEvRTtBQUNBOEMsY0FBQUEsVUFBVSxDQUFDLFlBQUs7QUFDZDNDLGdCQUFBQSxTQUFTLENBQUNFLEtBQVYsR0FBa0JGLFNBQVMsQ0FBQ0csR0FBVixHQUFnQixFQUFFbUMsR0FBcEM7QUFDQS9CLGdCQUFBQSxpQkFBaUIsQ0FBQ2lCLE9BQUQsRUFBVXhCLFNBQVYsQ0FBakI7QUFDRCxlQUhTLENBQVY7QUFJRDtBQUNGO0FBcENDO0FBUlEsT0FBYixDQURBLENBTEYsQ0FESSxDQUFQO0FBd0RELEtBakVHO0FBa0VKNEMsSUFBQUEsVUFsRUksc0JBa0VRckYsQ0FsRVIsRUFrRTBCc0QsVUFsRTFCLEVBa0UrRGxHLE1BbEUvRCxFQWtFNkY7QUFBQSxVQUN2RnFELEdBRHVGLEdBQ3ZFckQsTUFEdUUsQ0FDdkZxRCxHQUR1RjtBQUFBLFVBQ2xGQyxNQURrRixHQUN2RXRELE1BRHVFLENBQ2xGc0QsTUFEa0Y7QUFFL0YsYUFBTyxDQUNMVixDQUFDLENBQUMsTUFBRCxFQUFTO0FBQ1IrRCxRQUFBQSxRQUFRLEVBQUU7QUFDUnVCLFVBQUFBLFNBQVMsRUFBRWpILGlCQUFRa0gsTUFBUixDQUFlbEgsaUJBQVFpRCxHQUFSLENBQVliLEdBQVosRUFBaUJDLE1BQU0sQ0FBQ0ksUUFBeEIsQ0FBZixFQUFrRDBFLE9BQWxELENBQTBELEtBQTFELEVBQWlFLE1BQWpFO0FBREg7QUFERixPQUFULENBREksQ0FBUDtBQU9EO0FBM0VHO0FBRFUsQ0FBbEI7QUFnRkE7Ozs7QUFHTyxJQUFNQyxtQkFBbUIsR0FBRztBQUNqQ0MsRUFBQUEsT0FEaUMsbUJBQ3hCQyxNQUR3QixFQUNEO0FBQUEsUUFDdEJDLFFBRHNCLEdBQ05ELE1BRE0sQ0FDdEJDLFFBRHNCO0FBQUEsUUFDWkMsQ0FEWSxHQUNORixNQURNLENBQ1pFLENBRFk7O0FBRTlCLFFBQUlBLENBQUMsS0FBSyxJQUFWLEVBQWdCO0FBQ2QsWUFBTSxJQUFJQyxLQUFKLENBQVUsa0RBQVYsQ0FBTjtBQUNELEtBSjZCLENBSzlCOzs7QUFDQUYsSUFBQUEsUUFBUSxDQUFDRyxLQUFULENBQWU3QyxTQUFmLEVBTjhCLENBTzlCOztBQUNBL0YsSUFBQUEsaUJBQWlCLENBQUN3SSxNQUFELENBQWpCO0FBQ0Q7QUFWZ0MsQ0FBNUI7OztBQWFQLElBQUksT0FBT0ssTUFBUCxLQUFrQixXQUFsQixJQUFpQ0EsTUFBTSxDQUFDQyxRQUE1QyxFQUFzRDtBQUNwREQsRUFBQUEsTUFBTSxDQUFDQyxRQUFQLENBQWdCQyxHQUFoQixDQUFvQlQsbUJBQXBCO0FBQ0Q7O2VBRWNBLG1CIiwiZmlsZSI6ImluZGV4LmNvbW1vbi5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLXVudXNlZC12YXJzICovXHJcbmltcG9ydCBWdWUsIHsgQ3JlYXRlRWxlbWVudCB9IGZyb20gJ3Z1ZSdcclxuaW1wb3J0IFhFVXRpbHMgZnJvbSAneGUtdXRpbHMvY3RvcidcclxuaW1wb3J0IHtcclxuICBWWEVUYWJsZSxcclxuICBDb2x1bW5Db25maWcsXHJcbiAgQ29sdW1uRWRpdFJlbmRlck9wdGlvbnMsXHJcbiAgQ29sdW1uRWRpdFJlbmRlclBhcmFtcyxcclxuICBDb2x1bW5DZWxsUmVuZGVyT3B0aW9ucyxcclxuICBDb2x1bW5DZWxsUmVuZGVyUGFyYW1zLFxyXG4gIE1lbnVMaW5rUGFyYW1zXHJcbn0gZnJvbSAndnhlLXRhYmxlL2xpYi92eGUtdGFibGUnXHJcbi8qIGVzbGludC1lbmFibGUgbm8tdW51c2VkLXZhcnMgKi9cclxuXHJcbmNvbnN0IGV4Y2VsRWRpdENvbmZpZyA9IHtcclxuICB0cmlnZ2VyOiAnZGJsY2xpY2snLFxyXG4gIG1vZGU6ICdjZWxsJyxcclxuICBzaG93SWNvbjogZmFsc2UsXHJcbiAgc2hvd1N0YXR1czogZmFsc2VcclxufVxyXG5cclxuY29uc3QgZXhjZWxDb250ZXh0TWVudSA9IHtcclxuICBoZWFkZXI6IHtcclxuICAgIG9wdGlvbnM6IFtcclxuICAgICAgW1xyXG4gICAgICAgIHtcclxuICAgICAgICAgIGNvZGU6ICdleHBvcnRBbGwnLFxyXG4gICAgICAgICAgbmFtZTogJ+makOiXj+WIlydcclxuICAgICAgICB9LFxyXG4gICAgICAgIHtcclxuICAgICAgICAgIGNvZGU6ICdleHBvcnRBbGwnLFxyXG4gICAgICAgICAgbmFtZTogJ+WPlua2iOaJgOaciemakOiXjydcclxuICAgICAgICB9XHJcbiAgICAgIF1cclxuICAgIF1cclxuICB9LFxyXG4gIGJvZHk6IHtcclxuICAgIG9wdGlvbnM6IFtcclxuICAgICAgW1xyXG4gICAgICAgIHtcclxuICAgICAgICAgIGNvZGU6ICdjbGlwJyxcclxuICAgICAgICAgIG5hbWU6ICfliarotLQoQ3RybCtYKSdcclxuICAgICAgICB9LFxyXG4gICAgICAgIHtcclxuICAgICAgICAgIGNvZGU6ICdjb3B5JyxcclxuICAgICAgICAgIG5hbWU6ICflpI3liLYoQ3RybCtDKSdcclxuICAgICAgICB9LFxyXG4gICAgICAgIHtcclxuICAgICAgICAgIGNvZGU6ICdwYXN0ZScsXHJcbiAgICAgICAgICBuYW1lOiAn57KY6LS0KEN0cmwrViknXHJcbiAgICAgICAgfVxyXG4gICAgICBdLFxyXG4gICAgICBbXHJcbiAgICAgICAge1xyXG4gICAgICAgICAgY29kZTogJ2luc2VydCcsXHJcbiAgICAgICAgICBuYW1lOiAn5o+S5YWlJ1xyXG4gICAgICAgIH0sXHJcbiAgICAgICAge1xyXG4gICAgICAgICAgY29kZTogJ3JlbW92ZScsXHJcbiAgICAgICAgICBuYW1lOiAn5Yig6ZmkJ1xyXG4gICAgICAgIH0sXHJcbiAgICAgICAge1xyXG4gICAgICAgICAgY29kZTogJ2NsZWFyRGF0YScsXHJcbiAgICAgICAgICBuYW1lOiAn5riF6Zmk5YaF5a65KERlbCknXHJcbiAgICAgICAgfVxyXG4gICAgICBdLFxyXG4gICAgICBbXHJcbiAgICAgICAge1xyXG4gICAgICAgICAgY29kZTogJ2ZpbHRlcicsXHJcbiAgICAgICAgICBuYW1lOiAn562b6YCJJyxcclxuICAgICAgICAgIGNoaWxkcmVuOiBbXHJcbiAgICAgICAgICAgIHtcclxuICAgICAgICAgICAgICBjb2RlOiAnY2xlYXJGaWx0ZXInLFxyXG4gICAgICAgICAgICAgIG5hbWU6ICfmuIXpmaTnrZvpgIknXHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIHtcclxuICAgICAgICAgICAgICBjb2RlOiAnZmlsdGVyU2VsZWN0JyxcclxuICAgICAgICAgICAgICBuYW1lOiAn5oyJ5omA6YCJ5Y2V5YWD5qC855qE5YC8562b6YCJJ1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICBdXHJcbiAgICAgICAgfSxcclxuICAgICAgICB7XHJcbiAgICAgICAgICBjb2RlOiAnc29ydCcsXHJcbiAgICAgICAgICBuYW1lOiAn5o6S5bqPJyxcclxuICAgICAgICAgIGNoaWxkcmVuOiBbXHJcbiAgICAgICAgICAgIHtcclxuICAgICAgICAgICAgICBjb2RlOiAnY2xlYXJTb3J0JyxcclxuICAgICAgICAgICAgICBuYW1lOiAn5riF6Zmk5o6S5bqPJ1xyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICB7XHJcbiAgICAgICAgICAgICAgY29kZTogJ3NvcnRBc2MnLFxyXG4gICAgICAgICAgICAgIG5hbWU6ICfljYfluo8nXHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIHtcclxuICAgICAgICAgICAgICBjb2RlOiAnc29ydERlc2MnLFxyXG4gICAgICAgICAgICAgIG5hbWU6ICflgJLluo8nXHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgIF1cclxuICAgICAgICB9XHJcbiAgICAgIF0sXHJcbiAgICAgIFtcclxuICAgICAgICB7XHJcbiAgICAgICAgICBjb2RlOiAnZXhwb3J0QWxsJyxcclxuICAgICAgICAgIG5hbWU6ICflr7zlh7rmlbDmja4uY3N2J1xyXG4gICAgICAgIH1cclxuICAgICAgXVxyXG4gICAgXVxyXG4gIH1cclxufVxyXG5cclxuZnVuY3Rpb24gcmVnaXN0ZXJDb21wb25lbnQgKHBhcmFtczogYW55KSB7XHJcbiAgY29uc3QgX1Z1ZTogdHlwZW9mIFZ1ZSA9IHBhcmFtcy5WdWVcclxuICBjb25zdCBUYWJsZTogYW55ID0gcGFyYW1zLlRhYmxlXHJcbiAgY29uc3QgRXhjZWw6IHsgW2tleTogc3RyaW5nXTogYW55IH0gPSB7XHJcbiAgICBuYW1lOiAnVnhlRXhjZWwnLFxyXG4gICAgcHJvcHM6IHtcclxuICAgICAgY29sdW1uczogQXJyYXlcclxuICAgIH0sXHJcbiAgICBkYXRhICgpIHtcclxuICAgICAgcmV0dXJuIHtcclxuICAgICAgICBleGNlbFN0b3JlOiB7XHJcbiAgICAgICAgICB1cGxvYWRSb3dzOiBbXVxyXG4gICAgICAgIH1cclxuICAgICAgfVxyXG4gICAgfSxcclxuICAgIGNvbXB1dGVkOiB7XHJcbiAgICAgIHRhYmxlUHJvcHMgKHRoaXM6IGFueSkge1xyXG4gICAgICAgIGNvbnN0IHsgJHByb3BzLCBlZGl0Q29uZmlnLCBzb3J0Q29uZmlnLCBmaWx0ZXJDb25maWcgfSA9IHRoaXNcclxuICAgICAgICByZXR1cm4gWEVVdGlscy5hc3NpZ24oe30sICRwcm9wcywge1xyXG4gICAgICAgICAgYm9yZGVyOiB0cnVlLFxyXG4gICAgICAgICAgcmVzaXphYmxlOiB0cnVlLFxyXG4gICAgICAgICAgc2hvd092ZXJmbG93OiBudWxsLFxyXG4gICAgICAgICAgY29udGV4dE1lbnU6IGV4Y2VsQ29udGV4dE1lbnUsXHJcbiAgICAgICAgICBtb3VzZUNvbmZpZzogeyBzZWxlY3RlZDogdHJ1ZSwgY2hlY2tlZDogdHJ1ZSB9LFxyXG4gICAgICAgICAga2V5Ym9hcmRDb25maWc6IHsgaXNBcnJvdzogdHJ1ZSwgaXNEZWw6IHRydWUsIGlzRW50ZXI6IHRydWUsIGlzVGFiOiB0cnVlLCBpc0N1dDogdHJ1ZSwgaXNFZGl0OiB0cnVlIH0sXHJcbiAgICAgICAgICBlZGl0Q29uZmlnOiBPYmplY3QuYXNzaWduKHt9LCBleGNlbEVkaXRDb25maWcsIGVkaXRDb25maWcpLFxyXG4gICAgICAgICAgc29ydENvbmZpZzogT2JqZWN0LmFzc2lnbih7IHNob3dJY29uOiBmYWxzZSB9LCBzb3J0Q29uZmlnKSxcclxuICAgICAgICAgIGZpbHRlckNvbmZpZzogT2JqZWN0LmFzc2lnbih7IHNob3dJY29uOiBmYWxzZSB9LCBmaWx0ZXJDb25maWcpLFxyXG4gICAgICAgICAgb3B0aW1pemF0aW9uOiB7XHJcbiAgICAgICAgICAgIHNjcm9sbFg6IHtcclxuICAgICAgICAgICAgICBndDogMTAwXHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIHNjcm9sbFk6IHtcclxuICAgICAgICAgICAgICBndDogMjAwXHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgIH1cclxuICAgICAgICB9KVxyXG4gICAgICB9XHJcbiAgICB9LFxyXG4gICAgd2F0Y2g6IHtcclxuICAgICAgY29sdW1ucyAodGhpczogYW55LCB2YWx1ZTogQ29sdW1uQ29uZmlnW10pIHtcclxuICAgICAgICB0aGlzLmxvYWRDb2x1bW4odmFsdWUpXHJcbiAgICAgIH1cclxuICAgIH0sXHJcbiAgICBtb3VudGVkICh0aGlzOiBhbnkpIHtcclxuICAgICAgY29uc3QgeyBjb2x1bW5zIH0gPSB0aGlzXHJcbiAgICAgIGlmIChjb2x1bW5zICYmIGNvbHVtbnMubGVuZ3RoKSB7XHJcbiAgICAgICAgdGhpcy5sb2FkQ29sdW1uKHRoaXMuY29sdW1ucylcclxuICAgICAgfVxyXG4gICAgfSxcclxuICAgIHJlbmRlciAodGhpczogYW55LCBoOiBDcmVhdGVFbGVtZW50KSB7XHJcbiAgICAgIGNvbnN0IHsgJHNsb3RzLCAkbGlzdGVuZXJzLCB0YWJsZVByb3BzIH0gPSB0aGlzXHJcbiAgICAgIHJldHVybiBoKCd2eGUtdGFibGUnLCB7XHJcbiAgICAgICAgY2xhc3M6ICd2eGUtZXhjZWwnLFxyXG4gICAgICAgIHByb3BzOiB0YWJsZVByb3BzLFxyXG4gICAgICAgIG9uOiBYRVV0aWxzLmFzc2lnbih7fSwgJGxpc3RlbmVycywge1xyXG4gICAgICAgICAgJ2NvbnRleHQtbWVudS1jbGljayc6IHRoaXMuY29udGV4dE1lbnVDbGlja0V2ZW50XHJcbiAgICAgICAgfSksXHJcbiAgICAgICAgcmVmOiAneFRhYmxlJ1xyXG4gICAgICB9LCAkc2xvdHMuZGVmYXVsdClcclxuICAgIH0sXHJcbiAgICBtZXRob2RzOiB7XHJcbiAgICAgIGNvbnRleHRNZW51Q2xpY2tFdmVudCAodGhpczogYW55LCBwYXJhbXM6IE1lbnVMaW5rUGFyYW1zLCBldm50OiBhbnkpIHtcclxuICAgICAgICBjb25zdCB7IG1lbnUsIHJvdywgY29sdW1uIH0gPSBwYXJhbXNcclxuICAgICAgICBjb25zdCAkdGFibGUgPSB0aGlzLiRyZWZzLnhUYWJsZVxyXG4gICAgICAgIGNvbnN0IHsgcHJvcGVydHkgfSA9IGNvbHVtblxyXG4gICAgICAgIHN3aXRjaCAobWVudS5jb2RlKSB7XHJcbiAgICAgICAgICBjYXNlICdjbGlwJzpcclxuICAgICAgICAgICAgJHRhYmxlLmhhbmRsZUNvcHllZCh0cnVlLCBldm50KVxyXG4gICAgICAgICAgICBicmVha1xyXG4gICAgICAgICAgY2FzZSAnY29weSc6XHJcbiAgICAgICAgICAgICR0YWJsZS5oYW5kbGVDb3B5ZWQoZmFsc2UsIGV2bnQpXHJcbiAgICAgICAgICAgIGJyZWFrXHJcbiAgICAgICAgICBjYXNlICdwYXN0ZSc6XHJcbiAgICAgICAgICAgICR0YWJsZS5oYW5kbGVQYXN0ZShldm50KVxyXG4gICAgICAgICAgICBicmVha1xyXG4gICAgICAgICAgY2FzZSAnaW5zZXJ0JzpcclxuICAgICAgICAgICAgJHRhYmxlLmluc2VydEF0KHt9LCByb3cpXHJcbiAgICAgICAgICAgIGJyZWFrXHJcbiAgICAgICAgICBjYXNlICdyZW1vdmUnOlxyXG4gICAgICAgICAgICAkdGFibGUucmVtb3ZlKHJvdylcclxuICAgICAgICAgICAgYnJlYWtcclxuICAgICAgICAgIGNhc2UgJ2NsZWFyRGF0YSc6XHJcbiAgICAgICAgICAgICR0YWJsZS5jbGVhckRhdGEocm93LCBwcm9wZXJ0eSlcclxuICAgICAgICAgICAgYnJlYWtcclxuICAgICAgICAgIGNhc2UgJ2NsZWFyRmlsdGVyJzpcclxuICAgICAgICAgICAgJHRhYmxlLmNsZWFyRmlsdGVyKGNvbHVtbilcclxuICAgICAgICAgICAgYnJlYWtcclxuICAgICAgICAgIGNhc2UgJ2ZpbHRlclNlbGVjdCc6XHJcbiAgICAgICAgICAgICR0YWJsZS5zZXRGaWx0ZXIoY29sdW1uLCBbXHJcbiAgICAgICAgICAgICAgeyBkYXRhOiBYRVV0aWxzLmdldChyb3csIHByb3BlcnR5KSwgY2hlY2tlZDogdHJ1ZSB9XHJcbiAgICAgICAgICAgIF0pXHJcbiAgICAgICAgICAgICR0YWJsZS51cGRhdGVEYXRhKClcclxuICAgICAgICAgICAgJHRhYmxlLmNsZWFySW5kZXhDaGVja2VkKClcclxuICAgICAgICAgICAgJHRhYmxlLmNsZWFySGVhZGVyQ2hlY2tlZCgpXHJcbiAgICAgICAgICAgICR0YWJsZS5jbGVhckNoZWNrZWQoKVxyXG4gICAgICAgICAgICAkdGFibGUuY2xlYXJTZWxlY3RlZCgpXHJcbiAgICAgICAgICAgICR0YWJsZS5jbGVhckNvcHllZCgpXHJcbiAgICAgICAgICAgIGJyZWFrXHJcbiAgICAgICAgICBjYXNlICdjbGVhclNvcnQnOlxyXG4gICAgICAgICAgICAkdGFibGUuY2xlYXJTb3J0KClcclxuICAgICAgICAgICAgYnJlYWtcclxuICAgICAgICAgIGNhc2UgJ3NvcnRBc2MnOlxyXG4gICAgICAgICAgICAkdGFibGUuc29ydChwcm9wZXJ0eSwgJ2FzYycpXHJcbiAgICAgICAgICAgIGJyZWFrXHJcbiAgICAgICAgICBjYXNlICdzb3J0RGVzYyc6XHJcbiAgICAgICAgICAgICR0YWJsZS5zb3J0KHByb3BlcnR5LCAnZGVzYycpXHJcbiAgICAgICAgICAgIGJyZWFrXHJcbiAgICAgICAgICBjYXNlICdleHBvcnRBbGwnOlxyXG4gICAgICAgICAgICAkdGFibGUuZXhwb3J0RGF0YSh7IGlzSGVhZGVyOiBmYWxzZSB9KVxyXG4gICAgICAgICAgICBicmVha1xyXG4gICAgICAgIH1cclxuICAgICAgfVxyXG4gICAgfVxyXG4gIH1cclxuICAvLyDnu6fmib8gVGFibGVcclxuICBYRVV0aWxzLmFzc2lnbihFeGNlbC5wcm9wcywgVGFibGUucHJvcHMpXHJcbiAgWEVVdGlscy5lYWNoKFRhYmxlLm1ldGhvZHMsIChjYjogRnVuY3Rpb24sIG5hbWU6IHN0cmluZykgPT4ge1xyXG4gICAgRXhjZWwubWV0aG9kc1tuYW1lXSA9IGZ1bmN0aW9uICh0aGlzOiBhbnkpIHtcclxuICAgICAgcmV0dXJuIHRoaXMuJHJlZnMueFRhYmxlW25hbWVdLmFwcGx5KHRoaXMuJHJlZnMueFRhYmxlLCBhcmd1bWVudHMpXHJcbiAgICB9XHJcbiAgfSlcclxuICBfVnVlLmNvbXBvbmVudChFeGNlbC5uYW1lLCBFeGNlbClcclxufVxyXG5cclxuY29uc3Qgcm93SGVpZ2h0OiBudW1iZXIgPSAyNFxyXG5cclxuaW50ZXJmYWNlIHBvc1JhbmdlRGF0YSB7XHJcbiAgdGV4dDogc3RyaW5nO1xyXG4gIHN0YXJ0OiBudW1iZXI7XHJcbiAgZW5kOiBudW1iZXI7XHJcbn1cclxuXHJcbmZ1bmN0aW9uIGdldEN1cnNvclBvc2l0aW9uICh0ZXh0YXJlYTogYW55KTogcG9zUmFuZ2VEYXRhIHtcclxuICBjb25zdCByYW5nZURhdGE6IHBvc1JhbmdlRGF0YSA9IHsgdGV4dDogJycsIHN0YXJ0OiAwLCBlbmQ6IDAgfVxyXG4gIGlmICh0ZXh0YXJlYS5zZXRTZWxlY3Rpb25SYW5nZSkge1xyXG4gICAgcmFuZ2VEYXRhLnN0YXJ0ID0gdGV4dGFyZWEuc2VsZWN0aW9uU3RhcnRcclxuICAgIHJhbmdlRGF0YS5lbmQgPSB0ZXh0YXJlYS5zZWxlY3Rpb25FbmRcclxuICB9XHJcbiAgcmV0dXJuIHJhbmdlRGF0YVxyXG59XHJcblxyXG5mdW5jdGlvbiBzZXRDdXJzb3JQb3NpdGlvbiAodGV4dGFyZWE6IGFueSwgcmFuZ2VEYXRhOiBwb3NSYW5nZURhdGEpIHtcclxuICBpZiAodGV4dGFyZWEuc2V0U2VsZWN0aW9uUmFuZ2UpIHtcclxuICAgIHRleHRhcmVhLmZvY3VzKClcclxuICAgIHRleHRhcmVhLnNldFNlbGVjdGlvblJhbmdlKHJhbmdlRGF0YS5zdGFydCwgcmFuZ2VEYXRhLmVuZClcclxuICB9XHJcbn1cclxuXHJcbi8qKlxyXG4gKiDmuLLmn5Plh73mlbBcclxuICovXHJcbmNvbnN0IHJlbmRlck1hcCA9IHtcclxuICBjZWxsOiB7XHJcbiAgICBhdXRvZm9jdXM6ICd0ZXh0YXJlYScsXHJcbiAgICByZW5kZXJFZGl0IChoOiBDcmVhdGVFbGVtZW50LCBlZGl0UmVuZGVyOiBDb2x1bW5FZGl0UmVuZGVyT3B0aW9ucywgcGFyYW1zOiBDb2x1bW5FZGl0UmVuZGVyUGFyYW1zKSB7XHJcbiAgICAgIGNvbnN0IHsgJHRhYmxlLCByb3cgfSA9IHBhcmFtc1xyXG4gICAgICBjb25zdCAkZXhjZWw6IGFueSA9ICR0YWJsZS4kcGFyZW50XHJcbiAgICAgIGNvbnN0IHsgZXhjZWxTdG9yZSB9ID0gJGV4Y2VsXHJcbiAgICAgIGNvbnN0IHsgdXBsb2FkUm93cyB9ID0gZXhjZWxTdG9yZVxyXG4gICAgICBjb25zdCBjb2x1bW46IGFueSA9IHBhcmFtcy5jb2x1bW5cclxuICAgICAgY29uc3QgbW9kZWw6IHsgdmFsdWU6IGFueSwgdXBkYXRlOiBib29sZWFuIH0gPSBjb2x1bW4ubW9kZWxcclxuICAgICAgcmV0dXJuIFtcclxuICAgICAgICBoKCdkaXYnLCB7XHJcbiAgICAgICAgICBjbGFzczogJ3Z4ZS10ZXh0YXJlYSB2eGUtZXhjZWwtY2VsbCcsXHJcbiAgICAgICAgICBzdHlsZToge1xyXG4gICAgICAgICAgICBoZWlnaHQ6IGAke2NvbHVtbi5yZW5kZXJIZWlnaHR9cHhgXHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgfSwgW1xyXG4gICAgICAgICAgaCgndGV4dGFyZWEnLCB7XHJcbiAgICAgICAgICAgIGNsYXNzOiAndnhlLXRleHRhcmVhLS1pbm5lcicsXHJcbiAgICAgICAgICAgIHN0eWxlOiB7XHJcbiAgICAgICAgICAgICAgd2lkdGg6IGAke2NvbHVtbi5yZW5kZXJXaWR0aH1weGBcclxuICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgZG9tUHJvcHM6IHtcclxuICAgICAgICAgICAgICB2YWx1ZTogbW9kZWwudmFsdWVcclxuICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgb246IHtcclxuICAgICAgICAgICAgICBpbnB1dCAoZXZudDogYW55KSB7XHJcbiAgICAgICAgICAgICAgICBjb25zdCBpbnBFbGVtID0gZXZudC50YXJnZXRcclxuICAgICAgICAgICAgICAgIG1vZGVsLnVwZGF0ZSA9IHRydWVcclxuICAgICAgICAgICAgICAgIG1vZGVsLnZhbHVlID0gaW5wRWxlbS52YWx1ZVxyXG4gICAgICAgICAgICAgICAgaWYgKGlucEVsZW0uc2Nyb2xsSGVpZ2h0ID4gaW5wRWxlbS5vZmZzZXRIZWlnaHQpIHtcclxuICAgICAgICAgICAgICAgICAgaWYgKHVwbG9hZFJvd3MuaW5kZXhPZihyb3cpID09PSAtMSkge1xyXG4gICAgICAgICAgICAgICAgICAgIGlucEVsZW0uc3R5bGUud2lkdGggPSBgJHtpbnBFbGVtLm9mZnNldFdpZHRoICsgMjB9cHhgXHJcbiAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgICAgaW5wRWxlbS5zdHlsZS5oZWlnaHQgPSBgJHtpbnBFbGVtLnNjcm9sbEhlaWdodH1weGBcclxuICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgICAgY2hhbmdlICgpIHtcclxuICAgICAgICAgICAgICAgIGlmICh1cGxvYWRSb3dzLmluZGV4T2Yocm93KSA9PT0gLTEpIHtcclxuICAgICAgICAgICAgICAgICAgdXBsb2FkUm93cy5wdXNoKHJvdylcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICAgIGtleWRvd24gKGV2bnQ6IGFueSkge1xyXG4gICAgICAgICAgICAgICAgY29uc3QgaW5wRWxlbSA9IGV2bnQudGFyZ2V0XHJcbiAgICAgICAgICAgICAgICBpZiAoZXZudC5hbHRLZXkgJiYgZXZudC5rZXlDb2RlID09PSAxMykge1xyXG4gICAgICAgICAgICAgICAgICBldm50LnByZXZlbnREZWZhdWx0KClcclxuICAgICAgICAgICAgICAgICAgZXZudC5zdG9wUHJvcGFnYXRpb24oKVxyXG4gICAgICAgICAgICAgICAgICBjb25zdCByYW5nZURhdGEgPSBnZXRDdXJzb3JQb3NpdGlvbihpbnBFbGVtKVxyXG4gICAgICAgICAgICAgICAgICBsZXQgcG9zID0gcmFuZ2VEYXRhLmVuZFxyXG4gICAgICAgICAgICAgICAgICBsZXQgY2VsbFZhbHVlID0gaW5wRWxlbS52YWx1ZVxyXG4gICAgICAgICAgICAgICAgICBjZWxsVmFsdWUgPSBgJHtjZWxsVmFsdWUuc2xpY2UoMCwgcG9zKX1cXG4ke2NlbGxWYWx1ZS5zbGljZShwb3MsIGNlbGxWYWx1ZS5sZW5ndGgpfWBcclxuICAgICAgICAgICAgICAgICAgaW5wRWxlbS52YWx1ZSA9IGNlbGxWYWx1ZVxyXG4gICAgICAgICAgICAgICAgICBtb2RlbC51cGRhdGUgPSB0cnVlXHJcbiAgICAgICAgICAgICAgICAgIG1vZGVsLnZhbHVlID0gY2VsbFZhbHVlXHJcbiAgICAgICAgICAgICAgICAgIGlucEVsZW0uc3R5bGUuaGVpZ2h0ID0gYCR7KE1hdGguZmxvb3IoaW5wRWxlbS5vZmZzZXRIZWlnaHQgLyByb3dIZWlnaHQpICsgMSkgKiByb3dIZWlnaHR9cHhgXHJcbiAgICAgICAgICAgICAgICAgIHNldFRpbWVvdXQoKCkgPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgIHJhbmdlRGF0YS5zdGFydCA9IHJhbmdlRGF0YS5lbmQgPSArK3Bvc1xyXG4gICAgICAgICAgICAgICAgICAgIHNldEN1cnNvclBvc2l0aW9uKGlucEVsZW0sIHJhbmdlRGF0YSlcclxuICAgICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgIH0pXHJcbiAgICAgICAgXSlcclxuICAgICAgXVxyXG4gICAgfSxcclxuICAgIHJlbmRlckNlbGwgKGg6IENyZWF0ZUVsZW1lbnQsIGVkaXRSZW5kZXI6IENvbHVtbkNlbGxSZW5kZXJPcHRpb25zLCBwYXJhbXM6IENvbHVtbkNlbGxSZW5kZXJQYXJhbXMpIHtcclxuICAgICAgY29uc3QgeyByb3csIGNvbHVtbiB9ID0gcGFyYW1zXHJcbiAgICAgIHJldHVybiBbXHJcbiAgICAgICAgaCgnc3BhbicsIHtcclxuICAgICAgICAgIGRvbVByb3BzOiB7XHJcbiAgICAgICAgICAgIGlubmVySFRNTDogWEVVdGlscy5lc2NhcGUoWEVVdGlscy5nZXQocm93LCBjb2x1bW4ucHJvcGVydHkpKS5yZXBsYWNlKC9cXG4vZywgJzxicj4nKVxyXG4gICAgICAgICAgfVxyXG4gICAgICAgIH0pXHJcbiAgICAgIF1cclxuICAgIH1cclxuICB9XHJcbn1cclxuXHJcbi8qKlxyXG4gKiDln7rkuo4gdnhlLXRhYmxlIOihqOagvOeahOWinuW8uuaPkuS7tu+8jOWunueOsOeugOWNleeahCBFWENFTCDooajmoLxcclxuICovXHJcbmV4cG9ydCBjb25zdCBWWEVUYWJsZVBsdWdpbkV4Y2VsID0ge1xyXG4gIGluc3RhbGwgKHh0YWJsZTogdHlwZW9mIFZYRVRhYmxlKSB7XHJcbiAgICBjb25zdCB7IHJlbmRlcmVyLCB2IH0gPSB4dGFibGVcclxuICAgIGlmICh2ICE9PSAndjInKSB7XHJcbiAgICAgIHRocm93IG5ldyBFcnJvcignW3Z4ZS10YWJsZS1wbHVnaW4tZXhjZWxdIFYyIHZlcnNpb24gaXMgcmVxdWlyZWQuJylcclxuICAgIH1cclxuICAgIC8vIOa3u+WKoOWIsOa4suafk+WZqFxyXG4gICAgcmVuZGVyZXIubWl4aW4ocmVuZGVyTWFwKVxyXG4gICAgLy8g5rOo5YaM57uE5Lu2XHJcbiAgICByZWdpc3RlckNvbXBvbmVudCh4dGFibGUpXHJcbiAgfVxyXG59XHJcblxyXG5pZiAodHlwZW9mIHdpbmRvdyAhPT0gJ3VuZGVmaW5lZCcgJiYgd2luZG93LlZYRVRhYmxlKSB7XHJcbiAgd2luZG93LlZYRVRhYmxlLnVzZShWWEVUYWJsZVBsdWdpbkV4Y2VsKVxyXG59XHJcblxyXG5leHBvcnQgZGVmYXVsdCBWWEVUYWJsZVBsdWdpbkV4Y2VsXHJcbiJdfQ==
102.618667
29,227
0.881165
1e3171b47f3ec26c73ef591ad999311f7966128e
1,642
swift
Swift
SudoPasswordManager/Extensions/Data.swift
sudoplatform/sudo-password-manager-ios
7a89e52657cc0d540440b6e59e18ef3599d5bb7a
[ "Apache-2.0" ]
null
null
null
SudoPasswordManager/Extensions/Data.swift
sudoplatform/sudo-password-manager-ios
7a89e52657cc0d540440b6e59e18ef3599d5bb7a
[ "Apache-2.0" ]
null
null
null
SudoPasswordManager/Extensions/Data.swift
sudoplatform/sudo-password-manager-ios
7a89e52657cc0d540440b6e59e18ef3599d5bb7a
[ "Apache-2.0" ]
null
null
null
// // Copyright © 2020 Anonyome Labs, Inc. All rights reserved. // // SPDX-License-Identifier: Apache-2.0 // import Foundation import CommonCrypto import Security extension Data { /// Hexadecimal string representation of `Data` object. var hexString: String { return map { String(format: "%02x", $0) }.joined().uppercased() } /// Converts a hex string `Data` /// - Parameter string: The input string. Odd lenth strings are padded with a 0. /// - Returns: The hex string as data, or nil iff the string contains non hex characters init?(hexdecimalString string: String) { // Pad the string if needed var hexString = string if !hexString.count.isEven { hexString = "0" + hexString } // Convert each element to an integer quartet. let elementsAsHexBytes = hexString.compactMap({$0.hexDigitValue}) // Check if the input had non-hex characters guard elementsAsHexBytes.count == hexString.count else { return nil } // Chunk into pairs and concat the high and low bits to make a single byte. let bytes: [UInt8] = elementsAsHexBytes.chunked(into: 2).map({ hexPair in // shift the 1st part over by 4 and combine with the 2nd half return UInt8((hexPair[0] << 4) + hexPair[1]) }) // convert UInt8 array to data self.init(bytes) } func sha1Hash() -> Data { var buffer = [UInt8](repeating: 0, count: Int(CC_SHA1_DIGEST_LENGTH)) self.withUnsafeBytes { _ = CC_SHA1($0.baseAddress, CC_LONG(self.count), &buffer) } return Data(buffer) } }
32.84
92
0.634592
74f051a8e9069a0c55aaacdca7b108f8a0df0043
2,683
rs
Rust
src/tex_the_program/section_0037.rs
crlf0710/tex-rs
9e3950423ec57175484794904151c92ee4adaa68
[ "Apache-2.0", "MIT" ]
18
2020-10-08T04:25:49.000Z
2022-02-12T04:34:00.000Z
src/tex_the_program/section_0037.rs
crlf0710/tex-rs
9e3950423ec57175484794904151c92ee4adaa68
[ "Apache-2.0", "MIT" ]
2
2021-01-03T07:10:54.000Z
2022-02-03T05:07:07.000Z
src/tex_the_program/section_0037.rs
crlf0710/tex-rs
9e3950423ec57175484794904151c92ee4adaa68
[ "Apache-2.0", "MIT" ]
3
2020-12-11T09:12:56.000Z
2021-11-11T13:51:48.000Z
//! @ The following program does the required initialization //! without retrieving a possible command line. //! It should be clear how to modify this routine to deal with command lines, //! if the system permits them. //! @^system dependencies@> // // @p function init_terminal:boolean; {gets the terminal input started} /// gets the terminal input started pub(crate) fn init_terminal(globals: &mut TeXGlobals) -> boolean { // label exit; // begin t_open_in; t_open_in(globals); // loop@+begin wake_up_terminal; write(term_out,'**'); update_terminal; loop { wake_up_terminal(globals); write(&mut globals.term_out, "**"); update_terminal(globals); // @.**@> // if not input_ln(term_in,true) then {this shouldn't happen} if !input_ln(make_globals_io_view!(globals), &mut globals.term_in, true) { /// this shouldn't happen const _: () = (); // begin write_ln(term_out); write_ln_noargs(&mut globals.term_out); // write(term_out,'! End of file on the terminal... why?'); write( &mut globals.term_out, "! End of file on the terminal... why?", ); // @.End of file on the terminal@> // init_terminal:=false; return; return false; // end; } // loc:=first; loc!(globals) = globals.first.get(); // while (loc<last)and(buffer[loc]=" ") do incr(loc); while loc!(globals) < globals.last.get() && globals.buffer[loc!(globals)] == ASCII_code_literal!(b' ') { incr!(loc!(globals)); } // if loc<last then if loc!(globals) < globals.last.get() { // begin init_terminal:=true; // return; {return unless the line was all blank} /// return unless the line was all blank return true; // end; } // write_ln(term_out,'Please type the name of your input file.'); write_ln( &mut globals.term_out, "Please type the name of your input file.", ); // end; } // exit:end; } use crate::io_support::{write, write_ln, write_ln_noargs}; use crate::pascal::boolean; use crate::section_0004::make_globals_io_view; use crate::section_0004::TeXGlobals; use crate::section_0004::TeXGlobalsIoView; use crate::section_0016::incr; use crate::section_0018::ASCII_code_literal; use crate::section_0031::input_ln; use crate::section_0033::t_open_in; use crate::section_0034::update_terminal; use crate::section_0034::wake_up_terminal; use crate::section_0036::loc;
36.753425
82
0.597093
84c621982538720e3b7f199b10ba0b1eb3b66a1d
13,285
c
C
lsass/server/ntlm/initsecctxt.c
kbore/pbis-open
a05eb9309269b6402b4d6659bc45961986ea5eab
[ "Apache-2.0" ]
372
2016-10-28T10:50:35.000Z
2022-03-18T19:54:37.000Z
lsass/server/ntlm/initsecctxt.c
kbore/pbis-open
a05eb9309269b6402b4d6659bc45961986ea5eab
[ "Apache-2.0" ]
317
2016-11-02T17:41:48.000Z
2021-11-08T20:28:19.000Z
lsass/server/ntlm/initsecctxt.c
kenferrara/pbis-open
690c325d947b2bf6fb3032f9d660e41b94aea4be
[ "Apache-2.0" ]
107
2016-11-03T19:25:16.000Z
2022-03-20T21:15:22.000Z
/* Editor Settings: expandtabs and use 4 spaces for indentation * ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: * */ /* * Copyright © BeyondTrust Software 2004 - 2019 * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * BEYONDTRUST MAKES THIS SOFTWARE AVAILABLE UNDER OTHER LICENSING TERMS AS * WELL. IF YOU HAVE ENTERED INTO A SEPARATE LICENSE AGREEMENT WITH * BEYONDTRUST, THEN YOU MAY ELECT TO USE THE SOFTWARE UNDER THE TERMS OF THAT * SOFTWARE LICENSE AGREEMENT INSTEAD OF THE TERMS OF THE APACHE LICENSE, * NOTWITHSTANDING THE ABOVE NOTICE. IF YOU HAVE QUESTIONS, OR WISH TO REQUEST * A COPY OF THE ALTERNATE LICENSING TERMS OFFERED BY BEYONDTRUST, PLEASE CONTACT * BEYONDTRUST AT beyondtrust.com/contact */ /* * Copyright (C) BeyondTrust Software. All rights reserved. * * Module Name: * * initsecctxt.c * * Abstract: * * BeyondTrust Security and Authentication Subsystem (LSASS) * * InitializeSecurityContext client wrapper API * * Authors: Krishna Ganugapati (krishnag@likewisesoftware.com) * Marc Guy (mguy@likewisesoftware.com */ #include "ntlmsrvapi.h" DWORD NtlmServerInitializeSecurityContext( IN OPTIONAL NTLM_CRED_HANDLE hCredential, IN OPTIONAL const NTLM_CONTEXT_HANDLE hContext, IN OPTIONAL SEC_CHAR* pszTargetName, IN DWORD fContextReq, IN DWORD Reserved1, IN DWORD TargetDataRep, IN OPTIONAL const SecBuffer* pInput, IN DWORD Reserved2, IN OUT OPTIONAL PNTLM_CONTEXT_HANDLE phNewContext, OUT PSecBuffer pOutput, OUT PDWORD pfContextAttr, OUT OPTIONAL PTimeStamp ptsExpiry ) { DWORD dwError = LW_ERROR_SUCCESS; PNTLM_CREDENTIALS pCred = (PNTLM_CREDENTIALS)hCredential; PNTLM_CONTEXT pNtlmContext = NULL; PSTR pWorkstation = NULL; PSTR pDomain = NULL; PNTLM_CHALLENGE_MESSAGE pMessage = NULL; DWORD dwMessageSize ATTRIBUTE_UNUSED = 0; BOOLEAN bInLock = FALSE; pOutput->pvBuffer = NULL; if (hContext) { pNtlmContext = hContext; } if (!pNtlmContext) { if (pCred) { NTLM_LOCK_MUTEX(bInLock, &pCred->Mutex); dwError = NtlmGetNameInformation( pCred->pszDomainName, &pWorkstation, &pDomain, NULL, NULL); BAIL_ON_LSA_ERROR(dwError); NTLM_UNLOCK_MUTEX(bInLock, &pCred->Mutex); } else { dwError = NtlmGetNameInformation( NULL, &pWorkstation, &pDomain, NULL, NULL); BAIL_ON_LSA_ERROR(dwError); } // If we start with a NULL context, create a negotiate message dwError = NtlmCreateNegotiateContext( hCredential, fContextReq, pDomain, pWorkstation, (PBYTE)&gXpSpoof, //for now add OS ver info... config later &pNtlmContext, pOutput); BAIL_ON_LSA_ERROR(dwError); dwError = LW_WARNING_CONTINUE_NEEDED; } else { if (pInput->BufferType != SECBUFFER_TOKEN || pInput->cbBuffer == 0) { dwError = LW_ERROR_INVALID_PARAMETER; BAIL_ON_LSA_ERROR(dwError); } pMessage = pInput->pvBuffer; dwMessageSize = pInput->cbBuffer; dwError = NtlmCreateResponseContext( pMessage, hCredential, pNtlmContext->bDoAnonymous, &pNtlmContext, pOutput); BAIL_ON_LSA_ERROR(dwError); } *phNewContext = pNtlmContext; if (pfContextAttr) { NtlmGetContextInfo( pNtlmContext, NULL, pfContextAttr, NULL, NULL, NULL); } cleanup: if (pCred) { NTLM_UNLOCK_MUTEX(bInLock, &pCred->Mutex); } LW_SAFE_FREE_STRING(pWorkstation); LW_SAFE_FREE_STRING(pDomain); return dwError; error: LW_SAFE_FREE_MEMORY(pOutput->pvBuffer); pOutput->cbBuffer = 0; pOutput->BufferType = 0; // If this function has already succeed once, we MUST make sure phNewContext // is set so the caller can cleanup whatever context is remaining. It // could be the original negotiate context or a new response context but // either way it is vital that the caller get a context they can actually // cleanup ONCE they've received ANY context from this function. // // If hContext is NULL, that indicates this is the first time through this // call and we can safely release our context. if ( pNtlmContext && !hContext) { NtlmReleaseContext(&pNtlmContext); phNewContext = NULL; } goto cleanup; } DWORD NtlmCreateNegotiateContext( IN NTLM_CRED_HANDLE hCred, IN DWORD fContextReq, IN PCSTR pDomain, IN PCSTR pWorkstation, IN PBYTE pOsVersion, OUT PNTLM_CONTEXT* ppNtlmContext, OUT PSecBuffer pOutput ) { DWORD dwError = LW_ERROR_SUCCESS; PNTLM_CONTEXT pNtlmContext = NULL; DWORD dwMessageSize = 0; PNTLM_NEGOTIATE_MESSAGE_V1 pMessage = NULL; NTLM_CONFIG config; DWORD dwDefaultOptions = // Always do signing and sealing since they cannot be turned off on // Windows NTLM_FLAG_SIGN | NTLM_FLAG_SEAL | NTLM_FLAG_OEM | NTLM_FLAG_REQUEST_TARGET | NTLM_FLAG_NTLM | NTLM_FLAG_DOMAIN | 0; DWORD dwDceStyleOptions = NTLM_FLAG_OEM | NTLM_FLAG_REQUEST_TARGET | NTLM_FLAG_NTLM | NTLM_FLAG_DOMAIN | 0; DWORD dwOptions = 0; *ppNtlmContext = NULL; dwError = NtlmCreateContext(hCred, &pNtlmContext); BAIL_ON_LSA_ERROR(dwError); dwError = NtlmReadRegistry(&config); BAIL_ON_LSA_ERROR(dwError); if (fContextReq & ISC_REQ_USE_DCE_STYLE) { dwOptions = dwDceStyleOptions; } else { dwOptions = dwDefaultOptions; } if (config.bSupportUnicode) { dwOptions |= NTLM_FLAG_UNICODE; } if (config.bSupportNTLM2SessionSecurity) { dwOptions |= NTLM_FLAG_NTLM2; } if (config.bSupportKeyExchange) { dwOptions |= NTLM_FLAG_KEY_EXCH; } if (config.bSupport56bit) { dwOptions |= NTLM_FLAG_56; } if (config.bSupport128bit) { dwOptions |= NTLM_FLAG_128; } if (fContextReq & ISC_REQ_INTEGRITY) { dwOptions |= NTLM_FLAG_SIGN; } if (fContextReq & ISC_REQ_CONFIDENTIALITY) { dwOptions |= NTLM_FLAG_SEAL; } if (fContextReq & ISC_REQ_NULL_SESSION) { pNtlmContext->bDoAnonymous = TRUE; } dwError = NtlmCreateNegotiateMessage( dwOptions, pDomain, pWorkstation, pOsVersion, &dwMessageSize, &pMessage); BAIL_ON_LSA_ERROR(dwError); pOutput->cbBuffer = dwMessageSize; pOutput->BufferType = SECBUFFER_TOKEN; pOutput->pvBuffer = pMessage; pNtlmContext->NtlmState = NtlmStateNegotiate; cleanup: *ppNtlmContext = pNtlmContext; return dwError; error: LW_SAFE_FREE_MEMORY(pMessage); pOutput->cbBuffer = 0; pOutput->BufferType = 0; pOutput->pvBuffer = NULL; if (pNtlmContext) { NtlmFreeContext(&pNtlmContext); } goto cleanup; } DWORD NtlmCreateResponseContext( IN PNTLM_CHALLENGE_MESSAGE pChlngMsg, IN NTLM_CRED_HANDLE hCred, IN BOOLEAN bDoAnonymous, OUT PNTLM_CONTEXT* ppNtlmContext, OUT PSecBuffer pOutput ) { DWORD dwError = LW_ERROR_SUCCESS; PNTLM_RESPONSE_MESSAGE_V1 pMessage = NULL; PCSTR pUserNameTemp = NULL; PCSTR pPassword = NULL; PNTLM_CONTEXT pNtlmContext = NULL; PBYTE pMasterKey = NULL; BYTE LmUserSessionKey[NTLM_SESSION_KEY_SIZE] = {0}; BYTE NtlmUserSessionKey[NTLM_SESSION_KEY_SIZE] = {0}; BYTE LanManagerSessionKey[NTLM_SESSION_KEY_SIZE] = {0}; BYTE SecondaryKey[NTLM_SESSION_KEY_SIZE] = {0}; PLSA_LOGIN_NAME_INFO pUserNameInfo = NULL; DWORD dwMessageSize = 0; NTLM_CONFIG config; DWORD dwNtRespType = 0; DWORD dwLmRespType = 0; *ppNtlmContext = NULL; dwError = NtlmReadRegistry(&config); BAIL_ON_LSA_ERROR(dwError); if (bDoAnonymous) { pUserNameTemp = ""; pPassword = ""; } else { NtlmGetCredentialInfo( hCred, &pUserNameTemp, &pPassword, NULL); if (!pUserNameTemp[0] && !pPassword[0]) { bDoAnonymous = TRUE; } } if (bDoAnonymous) { dwError = LwAllocateMemory( sizeof(*pUserNameInfo), OUT_PPVOID(&pUserNameInfo)); BAIL_ON_LSA_ERROR(dwError); dwError = LwAllocateString( "", &pUserNameInfo->pszName); BAIL_ON_LSA_ERROR(dwError); dwError = LwAllocateString( "", &pUserNameInfo->pszDomain); BAIL_ON_LSA_ERROR(dwError); } else { dwError = LsaSrvCrackDomainQualifiedName( pUserNameTemp, &pUserNameInfo); BAIL_ON_LSA_ERROR(dwError); } dwError = NtlmCreateContext(hCred, &pNtlmContext); BAIL_ON_LSA_ERROR(dwError); dwError = LwAllocateString( pUserNameTemp, &pNtlmContext->pszClientUsername); BAIL_ON_LSA_ERROR(dwError); if (bDoAnonymous) { dwNtRespType = NTLM_RESPONSE_TYPE_ANON_NTLM; dwLmRespType = NTLM_RESPONSE_TYPE_ANON_LM; } else if (config.bSendNTLMv2) { dwNtRespType = NTLM_RESPONSE_TYPE_NTLMv2; // TODO: the correct thing is to use LMv2 dwLmRespType = NTLM_RESPONSE_TYPE_LM; } else if(LW_LTOH32(pChlngMsg->NtlmFlags) & NTLM_FLAG_NTLM2) { dwLmRespType = NTLM_RESPONSE_TYPE_NTLM2; dwNtRespType = NTLM_RESPONSE_TYPE_NTLM2; } else { dwNtRespType = NTLM_RESPONSE_TYPE_NTLM; dwLmRespType = NTLM_RESPONSE_TYPE_LM; } dwError = NtlmCreateResponseMessage( pChlngMsg, pUserNameInfo->pszName, pUserNameInfo->pszDomain, pPassword, (PBYTE)&gXpSpoof, dwNtRespType, dwLmRespType, &dwMessageSize, &pMessage, LmUserSessionKey, NtlmUserSessionKey ); BAIL_ON_LSA_ERROR(dwError); // As a side effect of creating the response, we must also set/produce the // master session key... pMasterKey = NtlmUserSessionKey; if (LW_LTOH32(pChlngMsg->NtlmFlags) & NTLM_FLAG_LM_KEY) { NtlmGenerateLanManagerSessionKey( pMessage, LmUserSessionKey, LanManagerSessionKey); pMasterKey = LanManagerSessionKey; } if (LW_LTOH32(pChlngMsg->NtlmFlags) & NTLM_FLAG_KEY_EXCH) { // This is the key we will use for session security... dwError = NtlmGetRandomBuffer( SecondaryKey, NTLM_SESSION_KEY_SIZE); BAIL_ON_LSA_ERROR(dwError); // Encrypt it with the "master key" set above and send it along with the // response NtlmStoreSecondaryKey( pMasterKey, SecondaryKey, pMessage); pMasterKey = SecondaryKey; } NtlmWeakenSessionKey( pChlngMsg, pMasterKey, &pNtlmContext->cbSessionKeyLen); memcpy(pNtlmContext->SessionKey, pMasterKey, NTLM_SESSION_KEY_SIZE); pNtlmContext->NegotiatedFlags = LW_LTOH32(pChlngMsg->NtlmFlags); pOutput->cbBuffer = dwMessageSize; pOutput->BufferType = SECBUFFER_TOKEN; pOutput->pvBuffer = pMessage; pNtlmContext->NtlmState = NtlmStateResponse; pNtlmContext->bInitiatedSide = TRUE; pNtlmContext->bDoAnonymous = bDoAnonymous; dwError = NtlmInitializeKeys(pNtlmContext); BAIL_ON_LSA_ERROR(dwError); cleanup: if (pUserNameInfo) { LsaSrvFreeNameInfo(pUserNameInfo); } *ppNtlmContext = pNtlmContext; return dwError; error: LW_SAFE_FREE_MEMORY(pMessage); if (pNtlmContext) { NtlmFreeContext(&pNtlmContext); } pOutput->cbBuffer = 0; pOutput->BufferType = 0; pOutput->pvBuffer = NULL; goto cleanup; } /* local variables: mode: c c-basic-offset: 4 indent-tabs-mode: nil tab-width: 4 end: */
26.151575
81
0.618818
96219375eb6794571671c9c64b9bb06c501208e2
2,212
sql
SQL
foodfyDB.sql
Henryquecimento/foodfy_projec
ed89f645bafa4298c56caee88f1fc1cde83d65b5
[ "MIT" ]
1
2022-03-09T09:58:42.000Z
2022-03-09T09:58:42.000Z
foodfyDB.sql
Henryquecimento/foodfy_project
ed89f645bafa4298c56caee88f1fc1cde83d65b5
[ "MIT" ]
null
null
null
foodfyDB.sql
Henryquecimento/foodfy_project
ed89f645bafa4298c56caee88f1fc1cde83d65b5
[ "MIT" ]
null
null
null
-- DROP DATABASE IF EXISTS foodfydb; -- CREATE DATABASE foodfydb; CREATE TABLE chefs ( id SERIAL PRIMARY KEY, name TEXT NOT NULL, created_at TIMESTAMP DEFAULT (now()), updated_at TIMESTAMP DEFAULT (now()) ); CREATE TABLE recipes ( id SERIAL PRIMARY KEY, chef_id INT NOT NULL, title TEXT NOT NULL, ingredients TEXT[] NOT NULL, preparation TEXT[] NOT NULL, information text, created_at TIMESTAMP DEFAULT (now()) ); CREATE TABLE files ( id SERIAL PRIMARY KEY, name TEXT, path TEXT NOT NULL ); CREATE TABLE recipe_files ( id SERIAL PRIMARY KEY, recipe_id INTEGER REFERENCES recipes(id) ON DELETE CASCADE, file_id INTEGER REFERENCES files(id) ON DELETE CASCADE ); /* ALTER TABLES */ ALTER TABLE chefs ADD COLUMN file_id INTEGER REFERENCES files(id); ALTER TABLE recipes ADD COLUMN updated_at TIMESTAMP DEFAULT(now()); /* PROCEDURES AND TRIGGERS */ CREATE FUNCTION trigger_set_timestamp() RETURNS TRIGGER AS $$ BEGIN NEW.updated_at = NOW(); RETURN NEW; END; $$ LANGUAGE plpgsql; CREATE TRIGGER set_timestamp BEFORE UPDATE ON recipes FOR EACH ROW EXECUTE PROCEDURE trigger_set_timestamp(); CREATE TRIGGER set_timestamp BEFORE UPDATE ON chefs FOR EACH ROW EXECUTE PROCEDURE trigger_set_timestamp(); -- USERS CREATE TABLE users( id SERIAL PRIMARY KEY, name text NOT NULL, email text NOT NULL, password text NOT NULL, reset_token text, reset_token_expires text, is_admin BOOLEAN DEFAULT false, created_at TIMESTAMP DEFAULT(now()), updated_at TIMESTAMP DEFAULT(now()) ); -- PRODUCTS user_id Foreign key ALTER TABLE recipes ADD COLUMN user_id int, ADD CONSTRAINT recipes_user_id_fkey FOREIGN KEY ("user_id") REFERENCES "users" ("id"); -- SESSION CREATE TABLE "session" ( "sid" varchar NOT NULL COLLATE "default", "sess" json NOT NULL, "expire" timestamp(6) NOT NULL ) WITH (OIDS=FALSE); ALTER TABLE "session" ADD CONSTRAINT "session_pkey" PRIMARY KEY ("sid") NOT DEFERRABLE INITIALLY IMMEDIATE; /* ALTER SEQUENCES */ ALTER SEQUENCE chefs_id_seq RESTART WITH 1; ALTER SEQUENCE files_id_seq RESTART WITH 1; ALTER SEQUENCE recipe_files_id_seq RESTART WITH 1; ALTER SEQUENCE recipes_id_seq RESTART WITH 1; ALTER SEQUENCE users_id_seq RESTART WITH 1;
22.12
67
0.757685
4a752d029d61d0908148e56cec0da5e034dc6c21
11,791
html
HTML
_site/2013/09/13/a-masking-scrubbing-anonymizing-api/index.html
kinlane/api-evangelist
60747b44c2f87e93e0d2008b578d4f351c1f4ffc
[ "CC-BY-3.0" ]
44
2015-02-09T10:28:37.000Z
2022-03-18T03:12:04.000Z
_site/2013/09/13/a-masking-scrubbing-anonymizing-api/index.html
kinlane/api-evangelist
60747b44c2f87e93e0d2008b578d4f351c1f4ffc
[ "CC-BY-3.0" ]
23
2015-01-02T18:58:25.000Z
2019-06-14T00:10:02.000Z
_site/2013/09/13/a-masking-scrubbing-anonymizing-api/index.html
kinlane/api-evangelist
60747b44c2f87e93e0d2008b578d4f351c1f4ffc
[ "CC-BY-3.0" ]
30
2015-03-05T16:40:36.000Z
2020-10-01T18:08:49.000Z
<!DOCTYPE html> <html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us"> <html> <title>A Masking, Scrubbing, Anonymizing API</title> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> <!--[if lte IE 8]><script src="/assets/js/ie/html5shiv.js"></script><![endif]--> <link rel="stylesheet" href="/assets/css/main.css" /> <link rel="stylesheet" href="/assets/css/bootstrap.min.css" /> <!--[if lte IE 9]><link rel="stylesheet" href="/assets/css/ie9.css" /><![endif]--> <!--[if lte IE 8]><link rel="stylesheet" href="/assets/css/ie8.css" /><![endif]--> <!-- Icons --> <link rel="shortcut icon" type="image/x-icon" href="https://apievangelist.com/favicon.ico"> <link rel="icon" type="image/x-icon" href="https://apievangelist.com/favicon.ico"> <link rel="alternate" type="application/rss+xml" title="API Evangelist Blog - RSS 2.0" href="https://apievangelist.com/blog.xml" /> <link rel="alternate" type="application/atom+xml" title="API Evangelist Blog - Atom" href="https://apievangelist.com/atom.xml"> <!-- JQuery --> <script src="/js/jquery-latest.min.js" type="text/javascript" charset="utf-8"></script> <script src="/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script> <script src="/js/utility.js" type="text/javascript" charset="utf-8"></script> <!-- Github.js - http://github.com/michael/github --> <script src="/js/github.js" type="text/javascript" charset="utf-8"></script> <!-- Cookies.js - http://github.com/ScottHamper/Cookies --> <script src="/js/cookies.js"></script> <!-- D3.js http://github.com/d3/d3 --> <script src="/js/d3.v3.min.js"></script> <!-- js-yaml - http://github.com/nodeca/js-yaml --> <script src="/js/js-yaml.min.js"></script> <script src="/js/subway-map-1.js" type="text/javascript"></script> <style type="text/css"> .gist {width:100% !important;} .gist-file .gist-data {max-height: 500px;} /* The main DIV for the map */ .subway-map { margin: 0; width: 110px; height: 5000px; background-color: white; } /* Text labels */ .text { text-decoration: none; color: black; } #legend { border: 1px solid #000; float: left; width: 250px; height:400px; } #legend div { height: 25px; } #legend span { margin: 5px 5px 5px 0; } .subway-map span { margin: 5px 5px 5px 0; } .container { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; } .video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } </style> <meta property="og:url" content=""> <meta property="og:type" content="website"> <meta property="og:title" content="A Masking, Scrubbing, Anonymizing API | API Evangelist"> <meta property="og:site_name" content="API Evangelist"> <meta property="og:description" content="A network of research sites dedicated to the technology, business, and politics of APIs."> <meta property="og:image" content="https://s3.amazonaws.com/kinlane-productions2/bw-icons/bw-question-mark.png"> <meta name="twitter:url" content=""> <meta name="twitter:card" content="summary"> <meta name="twitter:title" content="A Masking, Scrubbing, Anonymizing API | API Evangelist"> <meta name="twitter:site" content="API Evangelist"> <meta name="twitter:description" content="A network of research sites dedicated to the technology, business, and politics of APIs."> <meta name="twitter:creator" content="@apievangelist"> <meta property="twitter:image" content="https://s3.amazonaws.com/kinlane-productions2/bw-icons/bw-question-mark.png"> </head> <body> <div id="wrapper"> <div id="main"> <div class="inner"> <header id="header"> <a href="http://apievangelist.com" class="logo"><img src="https://kinlane-productions2.s3.amazonaws.com/api-evangelist/api-evangelist-logo-400.png" width="75%" /></a> <ul class="icons"> <li><a href="https://twitter.com/apievangelist" class="icon fa-twitter"><span class="label">Twitter</span></a></li> <li><a href="https://github.com/api-evangelist" class="icon fa-github"><span class="label">Github</span></a></li> <li><a href="https://www.linkedin.com/company/api-evangelist/" class="icon fa-linkedin"><span class="label">LinkedIn</span></a></li> <li><a href="http://apievangelist.com/atom.xml" class="icon fa-rss"><span class="label">RSS</span></a></li> </ul> </header> <h2>A Masking, Scrubbing, Anonymizing API</h2> <p><span class="post-date">13 Sep 2013</span></p> <p><img style="padding: 15px;" src="https://s3.amazonaws.com/kinlane-productions2/bw-icons/bw-question-mark.png" alt="" width="250" align="right" /> <p>In government there is a fear of exposing public data via APIs--rightfully so. This is not just a government concern, it exists in all industries within each an every business and organization. We all possess private data, and when opening up API driven resources, we need to make sure none of this is exposed in un-desired ways. <p>I find it hard to believe, that after almost 10 years of public APIs, there isn't a reasonable solution to masking, scrubbing and anonymizing data that is made available via APIs. I wrote about r<a href="http://apievangelist.com/2013/03/13/an-api-that-scrubs-personally-identifiable-information-from-other-apis/">esearch into finding a solution at UC Berkeley</a> a while back, but to date I have not seen any real solutions to this problem yet. <p>I was talking with another Presidential Innovation Fellow (PIF) the other day about possible solutions for making sure Personally Identifiable Information (PII) doesn't get exposed via government APIs. Afterwards, I got to thinking about possible API options, and I don't think it would be that difficult to get started with a basic solution. <p>My thoughts are, that you could provide a simple API proxy, that would terminate requests from any <a href="https://developers.helloreverb.com/swagger/">Swagger</a> defined APIs and easily iterate through each value and apply a series of regular expressions against it to look for common PII or other data that shouldn't be exposed. The proxy could automatically replace with template values like John or Jane Doe for names, 1234 Street for addresses, etc. <p>API providers could set a list of areas they are concerned about exposing with the API proxy configuration, and it would enforce all filtering required. The proxy could also look for other common patterns, and make recommendations of other areas that could be masked, scrubbed or anonymized that the API provider didn't consider. <p>Technically it sounds like a pretty simple solution, that could get smarter and faster over time at identifying sensitive information, to better serve API providers. This type of proxy could be default in healthcare, education and in other sensitive environments and be default in development environments, or in production environments that are accessible to non-trusted consumers. <p>Of course this is something I'd love to explore, but I just don't have the time to build it. This is something that wouldn't be too hard to build and evolve, and could have potentially huge impacts across many important industries, and go far to protect all of our sensitive data from potential privacy violations. <p>As with all of my ideas, I just want to share it publicly, in hopes someone will build it. <hr /> <ul class="pagination" style="text-align: center;"> <li style="text-align:left;"><a href="https://apievangelist.com/2013/09/09/the-spreadsheet-will-play-a-central-role-in-the-api-space/" class="button"><< Prev</a></li> <li style="width: 75%"><span></span></li> <li style="text-align:right;"><a href="https://apievangelist.com/2013/09/13/the-perils-of-api-transport-over-the-public-internet/" class="button">Next >></a></li> </ul> <footer> <hr> <div class="features"> <article> <div class="content"> <p align="center"><a href="https://www.postman.com" target="_blank"><img src="https://kinlane-productions2.s3.amazonaws.com/partners/postman-logo.png" width="60%" style="padding: 15px; border: 1px solid #000;" /></a></p> </div> </article> <article> <div class="content"> <p align="center"><a href="https://github.com/postmanlabs/newman" target="_blank"><img src="https://kinlane-productions2.s3.amazonaws.com/postman/newman-logo.png" width="60%" style="padding: 15px; border: 1px solid #000;" /></a></p> </div> </article> </div> </footer> </div> </div> <div id="sidebar"> <div class="inner"> <nav id="menu"> <header class="major"> <h2>Menu</h2> </header> <ul> <li><a href="/">Home Page</a></li> <li><a href="/blog/">The Blog</a></li> <li><a href="https://101.apievangelist.com/">API 101</a></li> <li><a href="http://history.apievangelist.com">History of APIs</a></li> <li><a href="https://women-in-tech.apievangelist.com/">Women in Technology</a></li> </ul> </nav> <section> <div class="mini-posts"> <header> <h2 style="text-align: center;"><i>API Evangelist Sponsors</i></h2> </header> <article> <div class="content"> <p align="center"><a href="https://www.postman.com" target="_blank"><img src="https://kinlane-productions2.s3.amazonaws.com/partners/postman-logo.png" width="75%" style="padding: 5px; border: 1px solid #000;" /></a></p> </div> </article> <article> <div class="content"> <p align="center"><a href="https://tyk.io/" target="_blank"><img src="https://kinlane-productions2.s3.amazonaws.com/tyk/tyk-logo.png" width="75%" style="padding: 5px; border: 1px solid #000;" /></a></p> </div> </article> <article> <div class="content"> <p align="center"><a href="https://www.openapis.org/" target="_blank"><img src="https://kinlane-productions2.s3.amazonaws.com/specifications/openapi.png" width="75%" style="padding: 5px; border: 1px solid #000;" /></a></p> </div> </article> <article> <div class="content"> <p align="center"><a href="https://www.asyncapi.com/" target="_blank"><img src="https://kinlane-productions2.s3.amazonaws.com/asyncapi/asyncapi-horiozontal.png" width="75%" style="padding: 5px; border: 1px solid #000;" /></a></p> </div> </article> <article> <div class="content"> <p align="center"><a href="https://json-schema.org/" target="_blank"><img src="https://kinlane-productions2.s3.amazonaws.com/specifications/json-schema.png" width="75%" style="padding: 5px; border: 1px solid #000;" /></a></p> </div> </article> <article> <div class="content"> <p align="center"><a href="https://github.com/postmanlabs/newman" target="_blank"><img src="https://kinlane-productions2.s3.amazonaws.com/postman/newman-logo.png" width="75%" style="padding: 5px; border: 1px solid #000;" /></a></p> </div> </article> </div> </section> </div> </div> </div> <script src="/assets/js/skel.min.js"></script> <script src="/assets/js/util.js"></script> <!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]--> <script src="/assets/js/main.js"></script> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-1119465-51"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-1119465-51'); </script> </body> </html>
46.058594
460
0.667628
700be5da9bf62c237b4790bd8b3beeb1dc1244c4
101
kt
Kotlin
app/src/main/java/com/chargebee/example/util/Constants.kt
cb-amutha/chargebee-android
cb02d87aa10fb27614e5570620c8c18b79e48c47
[ "MIT" ]
null
null
null
app/src/main/java/com/chargebee/example/util/Constants.kt
cb-amutha/chargebee-android
cb02d87aa10fb27614e5570620c8c18b79e48c47
[ "MIT" ]
10
2022-02-03T16:39:35.000Z
2022-02-25T13:19:15.000Z
app/src/main/java/com/chargebee/example/util/Constants.kt
cb-amutha/chargebee-android
cb02d87aa10fb27614e5570620c8c18b79e48c47
[ "MIT" ]
null
null
null
package com.chargebee.example.util object Constants { const val PRODUCTS_LIST_KEY = "products" }
20.2
44
0.772277
661dc265416ce47934cb16be2ecddd76433decbd
4,320
cpp
C++
epoll/server.cpp
wangxw666/GNetwork
601eabc50185fd5c86b1b47069759a252e4f2a47
[ "Apache-2.0" ]
null
null
null
epoll/server.cpp
wangxw666/GNetwork
601eabc50185fd5c86b1b47069759a252e4f2a47
[ "Apache-2.0" ]
null
null
null
epoll/server.cpp
wangxw666/GNetwork
601eabc50185fd5c86b1b47069759a252e4f2a47
[ "Apache-2.0" ]
null
null
null
#include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/time.h> #include <netinet/in.h> #include <arpa/inet.h> #include <stdio.h> #include <sys/epoll.h> #include <fcntl.h> #define MAX_EVENT 20 #define READ_BUF_LEN 256 #define BACK_LOG 1024 void setNonblocking(int sockfd) { int opts; opts = fcntl(sockfd, F_GETFL); if (opts < 0) { perror("fcntl(sock,GETFL)"); return; } //if opts = opts | O_NONBLOCK; if (fcntl(sockfd, F_SETFL, opts) < 0) { perror("fcntl(sock,SETFL,opts)"); return; } //if } int main() { int sock_fd; //监听套接字 // 1.建立sock_fd套接字 if ((sock_fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) { perror("socket error"); exit(1); } printf("server_sock_fd = %d\n", sock_fd); int on = 1; // 设置套接口的选项 SO_REUSEADDR 允许在同一个端口启动服务器的多个实例 // setsockopt的第二个参数SOL SOCKET 指定系统中,解释选项的级别 普通套接字 if (setsockopt(sock_fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(int)) == -1) { perror("setsockopt error \n"); exit(1); } // 2.声明server addr结构体,client addr结构体 struct sockaddr_in serv_addr; struct sockaddr_in clnt_addr; socklen_t serv_addr_size = sizeof(serv_addr); socklen_t clnt_addr_size = sizeof(clnt_addr); // 初始化结构体 memset(&serv_addr, 0, sizeof(serv_addr)); serv_addr.sin_family = AF_INET; //使用IPv4地址 serv_addr.sin_addr.s_addr = inet_addr("127.0.0.1"); //具体的IP地址 serv_addr.sin_port = htons(8081); //端口 // 3.bind bind(sock_fd, (struct sockaddr *)&serv_addr, serv_addr_size); // 4.listen listen(sock_fd, BACK_LOG); setNonblocking(sock_fd); /*声明epoll_event结构体变量,ev用于注册事件,数组用于回传要处理的事件*/ struct epoll_event ev, events[MAX_EVENT]; // 5.创建epoll实例 int epfd = epoll_create1(0); /*设置监听描述符*/ ev.data.fd = sock_fd; /*设置处理事件类型, 为边缘触发*/ ev.events = EPOLLIN | EPOLLET; /*注册事件*/ epoll_ctl(epfd, EPOLL_CTL_ADD, sock_fd, &ev); int sockfd; // 设置读缓冲区 char buffer[READ_BUF_LEN]; char str[] = "Hello World!"; ssize_t n, ret; for (;;) { printf("epoll wait...\n"); int nfds = epoll_wait(epfd, events, MAX_EVENT, -1); if (nfds <= 0) continue; printf("nfds = %d\n", nfds); for (int i = 0; i < nfds; i++) { // 新连接接入 if (events[i].data.fd == sock_fd) { int clnt_sock = accept(sock_fd, (struct sockaddr *)&clnt_addr, &clnt_addr_size); printf("accpet a new client fd=[%d]: %s:%d\n", clnt_sock, inet_ntoa(clnt_addr.sin_addr), clnt_addr.sin_port); // 设置非阻塞 setNonblocking(clnt_sock); /*设置监听描述符*/ ev.data.fd = clnt_sock; /*设置处理事件类型, 为边缘触发*/ ev.events = EPOLLIN | EPOLLET; epoll_ctl(epfd, EPOLL_CTL_ADD, clnt_sock, &ev); } else if (events[i].events & EPOLLIN) { // if ((sockfd = events[i].data.fd) < 0) continue; if ((ret = read(sockfd, buffer, sizeof(buffer))) <= 0) { printf("client fd=[%d] close\n", sock_fd); close(sockfd); events[i].data.fd = -1; } else { printf("clint fd=[%d] recv message: %s\n", sock_fd, buffer); /*设置用于注册写操作文件描述符和事件*/ ev.data.fd = sockfd; ev.events = EPOLLOUT | EPOLLET; epoll_ctl(epfd, EPOLL_CTL_MOD, sockfd, &ev); } } else if (events[i].events & EPOLLOUT) { if ((sockfd = events[i].data.fd) < 0) continue; write(sockfd, str, sizeof(str)); printf("clint fd=[%d] send message: %s\n", sock_fd, str); //if /*设置用于读的文件描述符和事件*/ ev.data.fd = sockfd; ev.events = EPOLLIN | EPOLLET; /*修改*/ epoll_ctl(epfd, EPOLL_CTL_MOD, sockfd, &ev); } } } }
28.051948
125
0.515741
db1f527f832a47aeceacb2eadd589f79e5a8483e
12,730
lua
Lua
SCRIPTS/MIXES/lowvltw.lua
kaos67/Taranis-X9D-Plus
3bb131213bf0ffe09bc036d2081d7637c8f78771
[ "MIT" ]
null
null
null
SCRIPTS/MIXES/lowvltw.lua
kaos67/Taranis-X9D-Plus
3bb131213bf0ffe09bc036d2081d7637c8f78771
[ "MIT" ]
null
null
null
SCRIPTS/MIXES/lowvltw.lua
kaos67/Taranis-X9D-Plus
3bb131213bf0ffe09bc036d2081d7637c8f78771
[ "MIT" ]
1
2021-09-11T19:52:12.000Z
2021-09-11T19:52:12.000Z
----------------------------------------------------------------------------- -- This script is build for the Taranis X9D PLUS. It offers the ability to -- play the lowest cell value of the battery attached to the receiver. -- To get the the precise value of the lowest cell an additional telemetry -- module named "FrSky FLVSS LiPo Voltage Sensor With Smart Port" is needed. -- This module offers the sensor "lowest" which should be used as voltage -- input sensor for this script. -- -- To activate the voltage announcement either a logical or a hardware switch -- can be used and selected as switch input for this script. -- -- Depending on which switch is used the voltage announcement includes an -- additional warning text or not. -- -- Version: 1.01 -- -- (c) 2016 Kai Schmitz, Velbert, Germany (schmitz.kai@me.com) -- -- License: MIT, see http://choosealicense.com/licenses/mit/ ----------------------------------------------------------------------------- ---------------------------------------------------------------------------- -- Do some Init's ---------------------------------------------------------------------------- local switch_status = false local logical_switch_is_active = false local physical_switch_is_active = true local switch_logic_on_position = 1024 -- (off 0 | on 1024) local switch_2pos_on_position = 1024 -- (SW↑ 0 | SW↓ 1024) local switch_3pos_on_position = 1024 -- (SW↑ -1024 | SW- 0 | SW↓ 1024) local volt_pre_delimiter = 0 local volt_post_delimiter_digits_count = 0 local volt_post_delimiter_first_digit = 0 local volt_post_delimiter_second_digit = 0 local play_next_time = 0 local play_delay = 1500 local wav_lwstcellvoltzero = "/SOUNDS/en/batfault.wav" local wav_lwstcellvoltcritical = "/SOUNDS/en/lwstcvcrit.wav" local wav_lwstcellwarn = "/SOUNDS/en/lwstcellwrn.wav" local wav_lwstcell = "/SOUNDS/en/lwstcell.wav" local wav_delimiter = "/SOUNDS/en/system/0112.wav" ---------------------------------------------------------------------------- -- Script input/output -- -- input: [1] Telemetry sensor (i.e. Cmin) -- [2] Logical switch (i.e. L1) -- [3] Physical 2 way switch (i.e. SH) -- or -- [4] Physical 3 way switch (i.e. SC) ---------------------------------------------------------------------------- local inputs = { { "Sensor" , SOURCE }, { "SW_logic" , SOURCE }, { "SW_2pos" , SOURCE }, { "SW_3pos" , SOURCE } } ---------------------------------------------------------------------------- -- NAME : round(num, idp) -- -- DESCRIPTION : Splits the float voltage value -- into three integers (= Int1.Int2Int3) -- -- Author : http://lua-users.org/wiki/SimpleRound -- -- INPUTS : round(number, number of digital places) -- -- OUTPUT : rounded number -- -- PROCESS : [1] get float value of input source -- [2] Split float into three integer -- -- CHANGES : DATE AUTHOR DETAIL -- 2016-04-21 KS Original Code ---------------------------------------------------------------------------- function round(num, idp) local mult = 10^(idp or 0) return math.floor(num * mult + 0.5) / mult end ---------------------------------------------------------------------------- -- NAME : change_volt_float_to_single_digits(sensor_voltage) -- -- DESCRIPTION : Splits the float voltage value -- into three integers (= Int1.Int2Int3) -- -- Author : Kai Schmitz (KS), Velbert, Germany -- -- INPUTS : sensor_voltage (Voltage of input source) -- -- PROCESS : [1] get float value of input source -- [2] Split float into three integer -- -- CHANGES : DATE AUTHOR DETAIL -- 2016-04-06 KS Original Code -- 2016-04-07 KS An input of i.e. 3.5 (with a single digit -- right of point) causes a value of 0.5. -- The announcment then is "zero". Fixed -- with "if value < 1 then value * 10" -- 2016-04-21 KS Change calulation of values before and -- after delimiter to get the right values -- i.e. at 3.05 Volts ---------------------------------------------------------------------------- local function change_volt_float_to_single_digits(sensor) local int_a, int_b = math.modf(sensor) volt_pre_delimiter = int_a volt_post_delimiter_first_digit = tonumber(string.sub(round(int_b, 2), 3, 3)) volt_post_delimiter_second_digit = tonumber(string.sub(round(int_b, 2), 4, 4)) end ---------------------------------------------------------------------------- -- NAME : get_volt_post_delimiter_digits() -- -- DESCRIPTION : Checks if digits after volt delimiter are nil -- -- Author : Kai Schmitz (KS), Velbert, Germany -- -- OUTPUT : true/false -- -- PROCESS : [1] checks if second digit after volt delimiter is not nil -- [2] checks if first digit after volt delimiter is not nil -- [3] returns zero if both digit after volt delimiter are nil -- -- CHANGES : DATE AUTHOR DETAIL -- 2016-04-21 KS Original Code -- 2016-05-11 KS Improve check and return behavior ---------------------------------------------------------------------------- local function get_volt_post_delimiter_digits() if (volt_post_delimiter_second_digit ~= nil) then return 2 elseif (volt_post_delimiter_first_digit ~= nil) then return 1 else return 0 end end ---------------------------------------------------------------------------- -- NAME : play_voltage() -- -- DESCRIPTION : Combines some sounds with actual voltage values -- to announce the actual lowest cell voltage. -- -- Author : Kai Schmitz (KS), Velbert, Germany -- -- PROCESS : [1] play a intro -- [2] call function to play volt value -- -- CHANGES : DATE AUTHOR DETAIL -- 2016-04-06 KS Original Code -- 2016-04-07 KS Create function input as path to wav file -- 2016-04-21 KS Rename function, add announcement for -- first and second digit after delimiter -- 2016-04-26 KS Remove the combined value announcement -- after delimiter -- 2016-04-15 KS Value announcement now even when logical -- and physical switch is active ---------------------------------------------------------------------------- local function play_voltage() volt_post_delimiter_digits_count = get_volt_post_delimiter_digits() if (volt_pre_delimiter == 0) or (volt_pre_delimiter == nil) then playFile(wav_lwstcellvoltzero) elseif (volt_pre_delimiter > 0) then if logical_switch_is_active and not physical_switch_is_active then playFile(wav_lwstcellvoltcritical) elseif logical_switch_is_active and physical_switch_is_active then playFile(wav_lwstcellwarn) elseif not logical_switch_is_active and physical_switch_is_active then playFile(wav_lwstcell) end if (volt_post_delimiter_digits_count == 0) then playNumber(volt_pre_delimiter, 1) else playNumber(volt_pre_delimiter, 0) end if (volt_post_delimiter_digits_count ~= 0) then playFile(wav_delimiter) if (volt_post_delimiter_digits_count == 2) then -- If the value after delimiter has 2 digits and the first number zero, -- the value should be announced divided into single numbers. -- Example: 4.[05] Volts = announcing: zero, fife playNumber(volt_post_delimiter_first_digit, 0) playNumber(volt_post_delimiter_second_digit, 1) elseif (volt_post_delimiter_digits_count == 1) then -- If the value after delimiter has no second digit (=nil), -- the value should be announced as single digit number. playNumber(volt_post_delimiter_first_digit, 1) end end end end ---------------------------------------------------------------------------- -- NAME : set_play_next_time() -- -- DESCRIPTION : Defines the minimum time to next repeat of the warning -- -- Author : Kai Schmitz (KS), Velbert, Germany -- -- PROCESS : [1] get actual time and add a delay -- -- CHANGES : DATE AUTHOR DETAIL -- 2016-04-06 KS Original Code ---------------------------------------------------------------------------- local function set_play_next_time() play_next_time = getTime() + play_delay end ---------------------------------------------------------------------------- -- NAME : time_to_play() -- -- DESCRIPTION : Checks if the delay time between to announces is still -- active or not -- -- Author : Kai Schmitz (KS), Velbert, Germany -- -- PROCESS : [1] checks if delay is over -- [2] initiates setup of next playtime -- -- CHANGES : DATE AUTHOR DETAIL -- 2016-04-30 KS Original Code ---------------------------------------------------------------------------- local function time_to_play() if getTime() >= play_next_time then set_play_next_time() return true else return false end end ---------------------------------------------------------------------------- -- NAME : switch_is_active(switch_logic, switch_2pos, switch_3pos) -- -- DESCRIPTION : Checks if one of the possible input switches is active -- -- Author : Kai Schmitz (KS), Velbert, Germany -- -- INPUTS : switch_logic (Voltage of logical input switch) -- switch_2pos (Voltage of 2 way input switch) -- switch_3pos (Voltage of 3 way input switch) -- -- PROCESS : [1] checks if one switch is active -- [2] set semaphore if the logic switch is active -- [3] returns if a switch is active or not -- -- CHANGES : DATE AUTHOR DETAIL -- 2016-04-30 KS Original Code -- 2016-05-15 KS Correction of return statements, now -- switches always stay on ---------------------------------------------------------------------------- local function switch_is_active(switch_logic, switch_2pos, switch_3pos) if (switch_logic == switch_logic_on_position) then logical_switch_is_active = true else logical_switch_is_active = false end if (switch_2pos == switch_2pos_on_position) or (switch_3pos == switch_3pos_on_position) then physical_switch_is_active = true else physical_switch_is_active = false end if not (logical_switch_is_active or physical_switch_is_active) then return false else return true end end ---------------------------------------------------------------------------- -- NAME : run(trigger) -- -- DESCRIPTION : If function is triggered (i.e. by logical switch to observe -- minimum cell value) it will play a personalized low voltage -- warning. -- -- Author : Kai Schmitz (KS), Velbert, Germany -- -- INPUTS : trigger (physical or logical switch) -- -- PROCESS : [1] checks if switch is active and the play delay is over -- [2] processing the sensor voltage into pronounceable values -- [3] announce t the sensor value -- -- CHANGES : DATE AUTHOR DETAIL -- 2016-04-06 KS Original Code -- 2016-04-07 KS Added logical AND physical switch as input -- 2016-04-30 KS Complete redesign of this script ---------------------------------------------------------------------------- local function run(sensor, switch_logic, switch_2pos, switch_3pos) if switch_is_active(switch_logic, switch_2pos, switch_3pos) and time_to_play() then change_volt_float_to_single_digits(sensor) play_voltage() end end return { run=run, input=inputs }
34.128686
86
0.521053
77d82685953de52c984a1a9d04fac76d567bdfcd
6,515
lua
Lua
kfx scripts/karaED.lua
cN3rd/tokyo-scripts
e3ed2492930f905f4c744c8a42304620b466b43a
[ "WTFPL" ]
1
2016-10-18T12:06:00.000Z
2016-10-18T12:06:00.000Z
kfx scripts/karaED.lua
cN3rd/tokyo-scripts
e3ed2492930f905f4c744c8a42304620b466b43a
[ "WTFPL" ]
null
null
null
kfx scripts/karaED.lua
cN3rd/tokyo-scripts
e3ed2492930f905f4c744c8a42304620b466b43a
[ "WTFPL" ]
null
null
null
-------------------------------- -- Utils --------------------------------- function msfix(t) return math.ceil(t/fDur)*fDur end function relfrm(l,s) return frm(l.start_time+s.start_time)-frm(l.start_time) end function relfrm2(l,s) return frm(s.start_time)-frm(l.start_time) end function frm(t) return math.floor(msfix(t)/fDur) end function round(n) return math.floor((math.floor(n*2) + 1)/2) end function clrtag(text) --[[ Move first \k tag in override blocks to the front ]] return string.gsub(text, "{([^{}]-)(.-)}","") end function dump(o) if type(o) == 'table' then local s = '{ ' for k,v in pairs(o) do if type(k) ~= 'number' then k = '"'..k..'"' end s = s .. '['..k..'] = ' .. dump(v) .. ',' end return s .. '} ' else return tostring(o) end end function calculateM(max) frClr = {} color = yellow for i=1,max do if next(kf) and i > kf[1][3] then table.remove(kf,1) end if next(kf) and (i <= kf[1][3] and kf[1][1] <= i) then progress = (i-kf[1][1])/(kf[1][3]-kf[1][1]) color = utils.interpolate(progress,kf[1][2],kf[1][4]) end table.insert(frClr,color) end return frClr end -------------------------------- -- Pixelization --------------------------------- squareSize = 5; fps = 24000/1001; fDur = 1000/fps; fOut = 1000 amp = 3; bezel = 12; correctY = {} correctY["EDKara-Romaji"] = 889 correctY["EDKara-TL"] = 967 correctY["EDTalk-Romaji"]=60 correctY["EDTalk-TL"]=126 yellow = "&H56FBFF&" blue = "&HDE1429&" kf = {{565,yellow,568,blue},{857,blue,858,yellow},{1577,yellow,1581,blue},{1683,blue,1688,yellow}} colors = calculateM(2182) function pixelize(syl, l, inverse, type, relfrm, showshape, rtl) -- initializing matrix bezel = 0.05*syl.width lines = {} deltas = {} grWidth = math.ceil((syl.width+bezel*2)/squareSize) grHeight = math.ceil((syl.height+5)/squareSize) for i=0,grHeight-1 do lines[i] = 0 deltas[i] = 0 end -- initializing relative values if rtl then sX = syl.right + bezel; else sX = syl.left - bezel; end sY = correctY[l.style] ss = l.start_time se = l.end_time -- initializing lines texts preStr = string.format("{\\%s(m %d %d",inverse and "iclip" or "clip",sX,sY-bezel) postStr = string.format(" l %d %d)}",sX-bezel,sY+grHeight*squareSize) shapeStr = "{\\bord0\\shad0\\p1\\pos(0,0)}" txt = string.format("{\\pos(%d,%d)}%s", syl.x, syl.y, syl.text) -- do pixelization for s, e, i, n in utils.frames(ss, se, fDur) do -- fixing times to prevent frame drops l.start_time = msfix(s) l.end_time = msfix(e) thold = type=="syl" and math.ceil(grWidth/n/1.5) or math.ceil(grWidth/n) -- initialize strings again str = preStr shape = shapeStr for j=0, grHeight-1 do -- add previous deltas to lines lines[j] = lines[j] + deltas[j] -- calculate deltas for next round deltas[j] = round(math.random())*thold+thold deltas[j] = lines[j] + deltas[j] > grWidth and 0 or deltas[j] if rtl then lX = sX-lines[j]*squareSize else lX = sX+lines[j]*squareSize end lY = sY+j*squareSize -- add to mask str = str.. string.format(" l %d %d l %d %d",lX,lY,lX,(lY+squareSize)) -- add to shape wdth = math.floor(deltas[j]/thold)*squareSize if rtl then lxEnd = lX lX = lX-wdth else lxEnd = lX+wdth end shape = shape.. string.format(" m %d %d l %d %d l %d %d l %d %d l %d %d",lX,lY, lxEnd,lY, lxEnd,(lY+squareSize), lX,(lY+squareSize), lX,lY) end -- create lines str = str..postStr l.text = str..txt sh = table.copy(l) sh.style = "FFFF" sh.text = string.format("{\\c%s}",colors[frm(l.start_time)+1])..shape -- FFFFFFFF it if showshape then io.write_line(sh) end io.write_line(l) end return color end --------------------------------- -- Line proccessors --------------------------------- -- Prefrernces fadSub = 25 fadRom = 40 ddd = 2/3 -- duration of pixelization (relative to syllable time) (perhaps test value) atRom = 1000 atSub = 1000 -- additional time for subs -- Romaji function romaji(line, l) --TODO charCnt = 0 l2 = table.copy(l) l2.layer = 0 l2.text = "{\\1a&HFF&\\3a&H7F&}"..line.text l2.start_time = l2.start_time - 250 l2.end_time = l2.end_time - 750 sub(l2,table.copy(l2),false, false) l.layer = 2 for syl_index, syl in ipairs(line.syls) do if syl.text ~= "" then -- init values ltag = table.copy(l) -- pix-in ltag.start_time = msfix(line.start_time+syl.start_time) ltag.end_time = msfix(line.start_time+syl.start_time+syl.duration*ddd) color = pixelize(syl,ltag,false,"syl",relfrm(line,syl),true,false); -- line duration ltag.start_time = ltag.end_time ltag.end_time = msfix(line.end_time + atRom - (line.text:len()-charCnt)*fadRom) ltag.text = string.format("{\\pos(%d,%d)}%s", syl.x, syl.y, syl.text) io.write_line(ltag) charCnt = charCnt + syl.text:len() end end -- line fadeouts charCnt = 0 for syl_index, syl in ipairs(line.syls) do if syl.text ~= "" then ltag = table.copy(l) ltag.end_time = msfix(line.end_time + atRom - (line.text:len()-charCnt)*fadRom) ltag.start_time = ltag.end_time ltag.end_time = ltag.end_time + syl.text:len()*fadRom color = pixelize(syl,ltag,true,"syl",relfrm2(line,ltag),true,false); charCnt = charCnt + syl.text:len() end end end -- Subtitle function sub(line, l, rtl) ltag = table.copy(l) -- pix-in ltag.start_time = msfix(line.start_time) ltag.end_time = msfix(line.start_time+fadSub*line.text:len()) pixelize(l,ltag,false,"line",0,true,rtl) -- line duration ltag.text = string.format("{\\pos(%d,%d)}%s",line.x,line.y,line.text) ltag.start_time = msfix(ltag.end_time) ltag.end_time = msfix(msfix(line.end_time+atSub-fadSub*clrtag(line.text):len()+fDur*2)-fDur*2,true) io.write_line(ltag) -- pix-out ltag.text = line.text ltag.start_time = ltag.end_time ltag.end_time = msfix(line.end_time+atSub) pixelize(l,ltag,true,"line",relfrm2(line,ltag),true,rtl) end --------------------------------- -- Actual Processor --------------------------------- for li, line in ipairs(lines) do if not line.comment then local l = table.copy(line); if (line.styleref.name == "EDKara-Romaji") then romaji( line, table.copy(line) ) else if line.styleref.name == "EDKara-TL" or line.styleref.name == "EDTalk-TL" then sub( line, table.copy(line), true ) else sub( line, table.copy(line), false ) end end end end
25.853175
143
0.611819
8ef13e9e6035e13e41e58237ca31c1db4396b821
2,197
lua
Lua
_scratch/imageviewExample.lua
asmagill/hammerspoon-conf
432c65705203d7743d3298441bd4319137b466fd
[ "MIT" ]
67
2015-04-16T07:06:01.000Z
2021-09-02T14:47:12.000Z
_scratch/imageviewExample.lua
zhangaz1/hammerspoon-config-take2
3cf7deadbe010a4890c935b1a48d1037fadfd857
[ "MIT" ]
5
2016-11-20T19:23:18.000Z
2020-04-11T07:51:41.000Z
_scratch/imageviewExample.lua
asmagill/hammerspoon-conf
432c65705203d7743d3298441bd4319137b466fd
[ "MIT" ]
11
2015-07-21T10:13:00.000Z
2020-10-19T02:44:35.000Z
local guitk = require("hs._asm.guitk") local image = require("hs.image") local stext = require("hs.styledtext") local canvas = require("hs.canvas") local module = {} local gui = guitk.new{ x = 100, y = 100, h = 500, w = 500 }:show() local mgr = guitk.manager.new() gui:contentManager(mgr) mgr[#mgr + 1] = { _element = guitk.element.textfield.newLabel(stext.new( "Drag an image file into the box or\npaste one from the clipboard", { paragraphStyle = { alignment = "center" } } )), frameDetails = { cX = "50%", y = 5, } } local placeholder = canvas.new{ x = 0, y = 0, h = 500, w = 500 }:appendElements{ { type = "image", image = image.imageFromName(image.systemImageNames.ExitFullScreenTemplate) }, { type = "image", image = image.imageFromName(image.systemImageNames.ExitFullScreenTemplate), transformation = canvas.matrix.translate(250,250):rotate(90):translate(-250,-250), } }:imageFromCanvas() local imageElement = guitk.element.image.new():image(placeholder) :allowsCutCopyPaste(true) :editable(true) :imageAlignment("center") :imageFrameStyle("bezel") :imageScaling("proportionallyUpOrDown") :callback(function(o) if module.canvas then module.canvas:delete() end module.canvas = canvas.new{ x = 700, y = 100, h = 100, w = 100 }:show() module.canvas[1] = { type = "image", image = o:image() } end) mgr:insert(imageElement, { w = 450, h = 450 }) imageElement:moveBelow(mgr(1), 5, "centered") module.manager = mgr return module
39.945455
121
0.461083
baa9034498f199df63c529c000a8017b65d1979e
386
asm
Assembly
basic-assembly-programs/MOV-INSTRUCTION-RULES.asm
ralphcajipe/assembly-8086
3a8763886dc789025bfe18b8d7540c0879c974a8
[ "MIT" ]
null
null
null
basic-assembly-programs/MOV-INSTRUCTION-RULES.asm
ralphcajipe/assembly-8086
3a8763886dc789025bfe18b8d7540c0879c974a8
[ "MIT" ]
null
null
null
basic-assembly-programs/MOV-INSTRUCTION-RULES.asm
ralphcajipe/assembly-8086
3a8763886dc789025bfe18b8d7540c0879c974a8
[ "MIT" ]
null
null
null
.MODEL SMALL ;DIRECTIVE that defines where the machine code to be placed in memory. ORG 100h ;MOV REG,REG ;MOV AX,CL ;error because of wrong parameter, operands do not match: 16 bit and 8 bit register ;MOV REG,IMM MOV AL,45 ;error because of wrong parameters: MOV DS, AL MOV DS, AL ;wrong use of segment register RET
27.571429
98
0.629534
dd8640592a0cfc03b2b6048f68b5cb48d401dc10
7,426
sql
SQL
backend/de.metas.dlm/base/src/main/sql/postgresql/system/5448640_sys_gh235_add_view_and_functions.sql
dram/metasfresh
a1b881a5b7df8b108d4c4ac03082b72c323873eb
[ "RSA-MD" ]
1,144
2016-02-14T10:29:35.000Z
2022-03-30T09:50:41.000Z
backend/de.metas.dlm/base/src/main/sql/postgresql/system/5448640_sys_gh235_add_view_and_functions.sql
vestigegroup/metasfresh
4b2d48c091fb2a73e6f186260a06c715f5e2fe96
[ "RSA-MD" ]
8,283
2016-04-28T17:41:34.000Z
2022-03-30T13:30:12.000Z
backend/de.metas.dlm/base/src/main/sql/postgresql/system/5448640_sys_gh235_add_view_and_functions.sql
vestigegroup/metasfresh
4b2d48c091fb2a73e6f186260a06c715f5e2fe96
[ "RSA-MD" ]
441
2016-04-29T08:06:07.000Z
2022-03-28T06:09:56.000Z
DROP VIEW IF EXISTS dlm.indices; CREATE OR REPLACE VIEW dlm.indices AS SELECT c_t.relname table_name, c_i.relname index_name, pg_relation_size(c_i.relname::regclass) AS current_index_size, pg_size_pretty(pg_relation_size(c_i.relname::regclass)) AS current_index_size_pretty, pg_get_indexdef(indexrelid) || ';' AS current_index_create_ddl, 'DROP INDEX IF EXISTS ' || c_i.relname || ';' AS index_drop_ddl, pg_get_indexdef(indexrelid) || CASE /* prepend the "where" and the condition */ WHEN NOT pg_get_indexdef(indexrelid) ILIKE '% WHERE %' THEN ' WHERE COALESCE(dlm_level, 0::smallint) = 0::smallint' /* just prepend the condition, there is already a "where" */ WHEN pg_get_indexdef(indexrelid) ILIKE '% WHERE %' AND NOT pg_get_indexdef(indexrelid) ILIKE ' WHERE%COALESCE(dlm_level, 0::smallint) = 0::smallint%' THEN ' AND COALESCE(dlm_level, 0::smallint) = 0::smallint' /* do nothing */ WHEN pg_get_indexdef(indexrelid) ILIKE ' WHERE %COALESCE(dlm_level, 0::smallint) = 0::smallint%' THEN '' END || ';' AS new_index_create_ddl FROM pg_index i JOIN pg_class c_t ON c_t.oid = i.indrelid JOIN pg_class c_i ON c_i.oid = i.indexrelid WHERE true AND c_t.relname LIKE '%_tbl' AND NOT i.IndIsPrimary AND NOT i.indIsUnique AND NOT c_i.relname ILIKE '%_dlm_level' /* dont't fiddle with "our" DLM indexes, that's already done elsewhere */ ORDER BY index_name; COMMENT ON VIEW dlm.indices IS 'This view is used by the functions tha DLM and un-DLM tables'; --SELECT * FROM dlm.indices; CREATE OR REPLACE FUNCTION dlm.add_table_to_dlm(p_table_name text) RETURNS void AS $BODY$ DECLARE _index_view_row dlm.indices; BEGIN EXECUTE 'ALTER TABLE ' || p_table_name || ' RENAME TO ' || p_table_name || '_tbl;'; RAISE NOTICE 'Renamed table % to %', p_table_name, p_table_name||'_tbl'; BEGIN EXECUTE 'ALTER TABLE ' || p_table_name || '_tbl ADD COLUMN DLM_Level smallint;'; /* using smallint, see https://www.postgresql.org/docs/9.1/static/datatype-numeric.html */ RAISE NOTICE 'Added column DLM_Level to table %', p_table_name||'_tbl'; EXCEPTION WHEN duplicate_column THEN RAISE NOTICE 'Column DLM_Level already exists in %. Nothing do to', p_table_name||'_tbl'; END; /* non-partial index; we know that postgresql could pick this one, but it's large and grows with the table EXECUTE 'CREATE INDEX ' || p_table_name || '_DLM_Level ON ' || p_table_name || '_tbl (COALESCE(DLM_Level,0::smallint))'; */ /* partial index; we *want* postgresql to actually pick this one, because it's small and doesn't grow with the table, as long as we manage to limit the number of "production" records we can't have current_setting('metasfresh.DLM_Level') in the index predicate (a.k.a. where-clause) because it's not an immutable function. Also see http://stackoverflow.com/a/26031289/1012103 */ EXECUTE 'CREATE INDEX ' || p_table_name || '_DLM_Level ON ' || p_table_name || '_tbl (COALESCE(DLM_Level,0::smallint)) WHERE COALESCE(DLM_Level,0::smallint) = 0::smallint;'; RAISE NOTICE 'Created index %_DLM_Level', p_table_name; /* DLM_Level <= current_setting(''metasfresh.DLM_Level'')::smallint didn't work. Even with the parameter beeing 0, the planner didn't know to use the partial index. Note that if the views where is changed, the partial indexe's predicate needs to be synched. Again, also see http://stackoverflow.com/a/26031289/1012103 */ EXECUTE 'CREATE VIEW dlm.' || p_table_name || ' AS SELECT * FROM ' || p_table_name || '_tbl WHERE COALESCE(DLM_Level,0::smallint) = 0::smallint;'; RAISE NOTICE 'Created view dlm.%', p_table_name; FOR _index_view_row IN EXECUTE 'SELECT * FROM dlm.indices v WHERE lower(v.table_name) = lower('''|| p_table_name||'_tbl'')' LOOP EXECUTE 'ALTER INDEX ' || _index_view_row.index_name || ' RENAME TO ' || _index_view_row.index_name || '_dlm_full'; /* rename the existing index. we want to keep it */ EXECUTE _index_view_row.new_index_create_ddl; /* add the "partial" voersion of the existing index */ EXECUTE 'ALTER INDEX ' || _index_view_row.index_name || ' RENAME TO ' || _index_view_row.index_name || '_dlm_partial'; /* rename partial index */ RAISE NOTICE 'Renamed pre-existing index % to ..._dlm_full and added a ..._dlm_partial pendant', _index_view_row.index_name; END LOOP; /* make sure that the DB actually takes note of what we just did */ EXECUTE 'ANALYZE ' || p_table_name || '_tbl;'; RAISE NOTICE 'Called ANALYZE %', p_table_name || '_tbl'; END; $BODY$ LANGUAGE plpgsql VOLATILE; COMMENT ON FUNCTION dlm.add_table_to_dlm(text) IS '#235: DLMs the given table: * Adds a DLM_Level column to the table. * Renames the table to "<tablename>_tbl" and creates a view names <tablename> that select from the table, but has a where-clause to make it select only DLM_Level=0 * Creates a partial index for the new DLM_Level column * Creates a new index named "<indexname>_dlm_partial" for each non-unique index. That partial index is like the original one, but with an additional predicate (where-clause) on DLM_Level=0. Caveat: won''t deal well with existing ORed predicates (TODO: fix) * Renames all existing non-unique indixed to "<indexname>_dlm_full" * Does an analyze on the table '; CREATE OR REPLACE FUNCTION dlm.remove_table_from_dlm(p_table_name text, p_retain_dlm_column boolean DEFAULT true) RETURNS void AS $BODY$ DECLARE _index_view_row dlm.indices; BEGIN EXECUTE 'DROP VIEW IF EXISTS dlm.' || p_table_name; EXECUTE 'DROP INDEX IF EXISTS ' || p_table_name || '_DLM_Level;'; IF p_retain_dlm_column = false THEN EXECUTE 'ALTER TABLE ' || p_table_name || '_Tbl DROP DLM_Level;'; RAISE NOTICE 'Dropped column %.DLM_Level, if it existed ', p_table_name; ELSE RAISE NOTICE 'Retained column %.DLM_Level ', p_table_name; END IF; FOR _index_view_row IN EXECUTE 'SELECT * FROM dlm.indices v WHERE lower(v.table_name) = lower('''|| p_table_name||'_tbl'') AND v.index_name LIKE ''%_dlm_partial''' LOOP EXECUTE 'DROP INDEX IF EXISTS ' || _index_view_row.index_name; RAISE NOTICE 'Dropped partial index %', _index_view_row.index_name; END LOOP; -- RAISE NOTICE 'will run %', 'SELECT * FROM dlm.indices v WHERE lower(v.table_name) = lower('''|| p_table_name||'_tbl'') AND v.index_name LIKE ''%_dlm_full'''; FOR _index_view_row IN EXECUTE 'SELECT * FROM dlm.indices v WHERE lower(v.table_name) = lower('''|| p_table_name||'_tbl'') AND v.index_name LIKE ''%_dlm_full''' LOOP /* rename the full index brack to its former name without the "_dlm_full" suffix */ EXECUTE 'ALTER INDEX ' || _index_view_row.index_name || ' RENAME TO ' || REGEXP_REPLACE(_index_view_row.index_name,'_dlm_full$', ''); RAISE NOTICE 'Renamed full index % back to %', _index_view_row.index_name, REGEXP_REPLACE(_index_view_row.index_name,'_dlm_full$', ''); END LOOP; EXECUTE 'ALTER TABLE ' || p_table_name || '_Tbl RENAME TO ' || p_table_name || ';'; RAISE NOTICE 'Renamed table % back to % ', p_table_name||'_Tbl', p_table_name; END; $BODY$ LANGUAGE plpgsql VOLATILE; COMMENT ON FUNCTION dlm.remove_table_from_dlm(text, boolean) IS '#235: Un-DLMs the given table: * drops the view and removes the "_tbl" suffix from the table name * drops partial indices * renames the original "full" indices back to the lod name (i.e. removes the "_dlm_full" suffix) * optionally drops the DLM column, if told so explicitly with the p_retain_dlm_column parameter set to false.';
51.93007
211
0.733773
c723e6216d99ebf1544758511e5019cc3ec92d11
275
lua
Lua
wsbuild.lua
PonyvilleFM/aura
eec9f1d1a2274a1ea260be710bc76fff785f54c8
[ "MIT" ]
28
2017-01-07T21:20:22.000Z
2022-02-24T18:28:23.000Z
wsbuild.lua
PonyvilleFM/aura
eec9f1d1a2274a1ea260be710bc76fff785f54c8
[ "MIT" ]
10
2017-01-21T23:31:41.000Z
2017-09-27T01:58:37.000Z
wsbuild.lua
PonyvilleFM/aura
eec9f1d1a2274a1ea260be710bc76fff785f54c8
[ "MIT" ]
9
2017-01-20T20:29:40.000Z
2019-09-18T05:32:07.000Z
local md = require "markdown" local fout, err, errno = io.open("./index.html", "w") if err ~= nil then error("error opening index.html: ", errno, ": ", err) end local html, err = md.dofile("./README.md") if err ~= nil then error(err) end fout:write(html) fout:close()
18.333333
55
0.643636
6f8b2bcf91bf7e487f0fa1975d32e554e49aea64
108,575
psm1
PowerShell
src/NetworkUtility/Erwine.Leonard.T.NetworkUtility.psm1
erwinel/PowerShell-Modules
e1bbf38b8d97b7a92e9a90b68a4fe2c90d82f936
[ "Apache-2.0" ]
null
null
null
src/NetworkUtility/Erwine.Leonard.T.NetworkUtility.psm1
erwinel/PowerShell-Modules
e1bbf38b8d97b7a92e9a90b68a4fe2c90d82f936
[ "Apache-2.0" ]
5
2016-05-03T13:47:57.000Z
2016-05-10T15:53:48.000Z
src/NetworkUtility/Erwine.Leonard.T.NetworkUtility.psm1
erwinel/PowerShell-Modules
e1bbf38b8d97b7a92e9a90b68a4fe2c90d82f936
[ "Apache-2.0" ]
1
2021-04-08T17:01:31.000Z
2021-04-08T17:01:31.000Z
Add-Type -AssemblyName 'System.Web'; Add-Type -AssemblyName 'System.Web.Services'; $Script:Regex = New-Object -TypeName 'System.Management.Automation.PSObject' -Property @{ EndingNewline = New-Object -TypeName 'System.Text.RegularExpressions.Regex' -ArgumentList '(\r\n?|\n)$', ([System.Text.RegularExpressions.RegexOptions]::Compiled); UrlEncodedItem = New-Object -TypeName 'System.Text.RegularExpressions.Regex' -ArgumentList '(^|&)(?<key>[^&=]*)(=(?<value>[^&]*))?', ([System.Text.RegularExpressions.RegexOptions]::Compiled); }; Function New-IPAddress { <# .SYNOPSIS Create IP address object. .DESCRIPTION Returns an object which represents an IP address. .OUTPUTS System.Net.IPAddress. An object which represents an IP address. .LINK Test-IPAddressIsLoopback .LINK ConvertTo-IPv6 .LINK ConvertTo-IPv4 .LINK https://msdn.microsoft.com/en-us/library/system.net.ipaddress.aspx #> [CmdletBinding(DefaultParameterSetName = 'Bytes')] [OutputType([System.Net.IPAddress])] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ParameterSetName = 'NewAddress')] # The long value of the IP address. [long]$NewAddress, [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ParameterSetName = 'Parse')] # A string that contains an IP address in dotted-quad notation for IPv4 and in colon-hexadecimal notation for IPv6. [string]$IpString, [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'Bytes')] # The byte array value of the IP address. [byte[]]$Bytes, [Parameter(Position = 1, ParameterSetName = 'Bytes')] # The long value of the scope identifier. [long]$Scopeid ) Process { switch ($PSCmdlet.ParameterSetName) { 'NewAdress' { New-Object -TypeName 'System.Net.IPAddress' -ArgumentList $NewAddress; break; } 'IpString' { [System.Net.IPAddress]::Parse($IpString); break; } default { if ($PSBoundParameters.ContainsKey('Scopeid')) { New-Object -TypeName 'System.Net.IPAddress' -ArgumentList (,$Bytes, $Scopeid); } else { New-Object -TypeName 'System.Net.IPAddress' -ArgumentList (,$Bytes); } break; } } } } Function Test-IPAddressIsLoopback { <# .SYNOPSIS Determines whether IP address is the loopback address. .DESCRIPTION Returns true if the IP address is the loopback address, otherwise returns false. .OUTPUTS System.Boolean. True if the IP address is the loopback address, otherwise returns false. .LINK New-IPAddress .LINK ConvertTo-IPv6 .LINK ConvertTo-IPv4 .LINK https://msdn.microsoft.com/en-us/library/system.net.ipaddress.isloopback.aspx #> [CmdletBinding()] [OutputType([bool])] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)] # The IP address to test. [System.Net.IPAddress]$Address ) Process { [System.Net.IPAddress]::IsLoopback($Address) } } Function ConvertTo-IPv6 { <# .SYNOPSIS Convert IP address to IPv6. .DESCRIPTION Maps the IPAddress object to an IPv6 address. .OUTPUTS System.Net.IPAddress. IP address converted to IPv6. .LINK New-IPAddress .LINK ConvertTo-IPv4 .LINK Test-IPAddressIsLoopback .LINK https://msdn.microsoft.com/en-us/library/system.net.ipaddress.maptoipv6.aspx #> [CmdletBinding()] [OutputType([System.Net.IPAddress])] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)] # The IP address to be converted. [System.Net.IPAddress]$IPAddress ) Process { $IPAddress.MapToIPv6() } } Function ConvertTo-IPv4 { <# .SYNOPSIS Convert IP address to IPv4. .DESCRIPTION Maps the IPAddress object to an IPv4 address. .OUTPUTS System.Net.IPAddress. IP address converted to IPv4. .LINK New-IPAddress .LINK ConvertTo-IPv6 .LINK Test-IPAddressIsLoopback .LINK https://msdn.microsoft.com/en-us/library/system.net.ipaddress.maptoipv6.aspx #> [CmdletBinding()] [OutputType([System.Net.IPAddress])] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)] # The IP address to be converted. [System.Net.IPAddress]$IPAddress ) Process { $IPAddress.MapToIPv4() } } Function Resolve-DnsHost { <# .SYNOPSIS Resolve DNS host. .DESCRIPTION Resolves a DNS host name or IP address to an IPHostEntry instance. .OUTPUTS System.Net.IPHostEntry. An IPHostEntry instance that contains address information about the host specified in hostName. .LINK Get-DnsHostEntry .LINK Get-DnsHostAddresses .LINK New-IPAddress .LINK https://msdn.microsoft.com/en-us/library/system.net.dns.resolve.aspx #> [CmdletBinding()] [OutputType([System.Net.IPHostEntry])] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ParameterSetName = 'Name')] [Alias('HostName', 'Host', 'HostNameOrAddress', 'ComputerName')] # A DNS-style host name or IP address [string]$Name, [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ParameterSetName = 'Address')] [System.Net.IPAddress]$Address ) Process { if ($PSCmdlet.ParameterSetName -eq 'Name') { [System.Net.Dns]::Resolve($Name); } else { [System.Net.Dns]::Resolve($Address); } } } Function Get-DnsHostEntry { <# .SYNOPSIS Resolve DNS host. .DESCRIPTION Resolves a DNS host name or IP address to an IPHostEntry instance. .OUTPUTS System.Net.IPHostEntry. An IPHostEntry instance that contains address information about the host specified in hostName. .LINK Get-DnsHostAddresses .LINK New-IPAddress .LINK https://msdn.microsoft.com/en-us/library/system.net.dns.gethostentry.aspx #> [CmdletBinding(DefaultParameterSetName = 'Name')] [OutputType([System.Net.IPHostEntry])] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ParameterSetName = 'Name')] [Alias('HostName', 'Host', 'HostNameOrAddress', 'ComputerName')] # The host name or IP address to resolve. [string]$Name, [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ParameterSetName = 'Address')] # An IP address to resolve. [System.Net.IPAddress]$Address ) Process { if ($PSCmdlet.ParameterSetName -eq 'Name') { [System.Net.Dns]::GetHostEntry($Name); } else { [System.Net.Dns]::GetHostEntry($Address); } } } Function Get-DnsHostAddresses { <# .SYNOPSIS Get IP addresses for host. .DESCRIPTION Returns the Internet Protocol (IP) addresses for the specified host. .OUTPUTS System.Net.IPAddress[]. An array of type IPAddress that holds the IP addresses for the host that is specified by the hostNameOrAddress parameter. .LINK Get-DnsHostEntry .LINK New-IPAddress .LINK https://msdn.microsoft.com/en-us/library/system.net.dns.gethostentry.aspx #> [CmdletBinding()] [OutputType([System.Net.IPAddress[]])] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)] [Alias('HostName', 'Host', 'Name', 'Address', 'ComputerName')] # The host name or IP address to resolve. [string]$HostNameOrAddress ) Process { [System.Net.Dns]::GetHostAddresses($HostNameOrAddress) } } Function Get-NetworkInterfaces { <# .SYNOPSIS Get network interfaces. .DESCRIPTION Returns objects that describe the network interfaces on the local computer. .OUTPUTS System.Net.NetworkInformation.NetworkInterface[]. A NetworkInterface array that contains objects that describe the available network interfaces, or an empty array if no interfaces are detected. .LINK Get-NetworkInterfaceIPProperties .LINK Get-NetworkInterfacePhysicalAddress .LINK Test-NetworkInterfaceSupports .LINK https://msdn.microsoft.com/en-us/library/system.net.networkinformation.networkinterface.getallnetworkinterfaces.aspx #> [CmdletBinding()] [OutputType([System.Net.NetworkInformation.NetworkInterface[]])] Param() [System.Net.NetworkInformation.NetworkInterface]::GetAllNetworkInterfaces(); } Function Get-NetworkInterfaceIPProperties { <# .SYNOPSIS Get network interfaces. .DESCRIPTION Returns objects that describe the network interfaces on the local computer. .OUTPUTS System.Net.NetworkInformation.NetworkInterface[]. A NetworkInterface array that contains objects that describe the available network interfaces, or an empty array if no interfaces are detected. .LINK Get-NetworkInterfaces .LINK Get-NetworkInterfacePhysicalAddress .LINK Test-NetworkInterfaceSupports .LINK https://msdn.microsoft.com/en-us/library/system.net.networkinformation.networkinterface.getipproperties.aspx #> [CmdletBinding()] [OutputType([System.Net.NetworkInformation.IPInterfaceProperties])] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)] # A Network interface. [System.Net.NetworkInformation.NetworkInterface]$NetworkInterface ) Process { $NetworkInterface.GetIPProperties() } } Function Get-NetworkInterfaceIPStatistics { [CmdletBinding()] [OutputType([System.Net.NetworkInformation.IPInterfaceStatistics])] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)] [System.Net.NetworkInformation.NetworkInterface]$NetworkInterface ) Process { $NetworkInterface.GetIPStatistics() } } Function Get-NetworkInterfacePhysicalAddress { <# .SYNOPSIS Get network physical address. .DESCRIPTION Returns the Media Access Control (MAC) or physical address for this adapter. .OUTPUTS System.Net.NetworkInformation.PhysicalAddress. A PhysicalAddress object that contains the physical address. .LINK Get-NetworkInterfaces .LINK Get-NetworkInterfaceIPProperties .LINK Test-NetworkInterfaceSupports .LINK https://msdn.microsoft.com/en-us/library/system.net.networkinformation.networkinterface.getphysicaladdress.aspx #> [CmdletBinding()] [OutputType([System.Net.NetworkInformation.PhysicalAddress])] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)] # A Network interface. [System.Net.NetworkInformation.NetworkInterface]$NetworkInterface ) Process { $NetworkInterface.GetPhysicalAddress() } } Function Test-NetworkInterfaceSupports { <# .SYNOPSIS Test whether the interface supports the specified protocol. .DESCRIPTION Returns a Boolean value that indicates whether the interface supports the specified protocol. .OUTPUTS System.Boolean. True if the specified protocol is supported; otherwise, false. .LINK Get-NetworkInterfaces .LINK Get-NetworkInterfaceIPProperties .LINK Get-NetworkInterfacePhysicalAddress .LINK https://msdn.microsoft.com/en-us/library/system.net.networkinformation.networkinterface.supports.aspx #> [CmdletBinding(DefaultParameterSetName = 'IPv4')] [OutputType([System.Net.NetworkInformation.PhysicalAddress])] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)] # A Network interface to test. [System.Net.NetworkInformation.NetworkInterface]$NetworkInterface, [Parameter(Mandatory = $true, ParameterSetName = 'IPv4')] # Tests whether network supports IPv4. [switch]$IPv4, [Parameter(Mandatory = $true, ParameterSetName = 'IPv6')] # Tests whether network supports IPv6. [switch]$IPv6 ) Process { if ($IPv4) { $NetworkInterface.Supports([System.Net.NetworkInformation.NetworkInterfaceComponent]::IPv4); } else { $NetworkInterface.Supports([System.Net.NetworkInformation.NetworkInterfaceComponent]::IPv6); } } } Function New-PingOptions { <# .SYNOPSIS Create Ping options object. .DESCRIPTION Returns an object which is used to control how Ping data packets are transmitted. .OUTPUTS System.Net.NetworkInformation.PingOptions. An object which is used to control how Ping data packets are transmitted. .LINK Send-Ping .LINK https://msdn.microsoft.com/en-us/library/system.net.networkinformation.pingoptions.aspx #> [CmdletBinding()] [OutputType([System.Net.NetworkInformation.PingOptions])] Param( [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)] # An Int32 value greater than zero that specifies the number of times that the Ping data packets can be forwarded. [int]$Ttl, [Parameter(ValueFromPipelineByPropertyName = $true)] # True to prevent data sent to the remote host from being fragmented; otherwise, false [switch]$DontFragment ) Process { if ($PSBoundParameters.ContainsKey('Ttl')) { New-Object -TypeName 'System.Net.NetworkInformation.PingOptions' -ArgumentList $Ttl, $DontFragment; } else { $PingOptions = New-Object -TypeName 'System.Net.NetworkInformation.PingOptions'; $PingOptions.DontFragment = $DontFragment; $PingOptions | Write-Output; } } } Function Send-Ping { <# .SYNOPSIS Send ICMP Ping to host. .DESCRIPTION Attempts to send an Internet Control Message Protocol (ICMP) echo message to the specified host, and receive a corresponding ICMP echo reply message from that host. .OUTPUTS System.Net.NetworkInformation.PingReply. ICMP echo reply message from host. .LINK New-PingOptions .LINK https://msdn.microsoft.com/en-us/library/system.net.networkinformation.ping.aspx .LINK https://msdn.microsoft.com/en-us/library/system.net.networkinformation.pingreply.aspx #> [CmdletBinding(DefaultParameterSetName = 'HostNameOptionParam')] [OutputType([System.Net.NetworkInformation.PingReply])] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ParameterSetName = 'Name')] [Alias('HostName', 'Host', 'HostNameOrAddress', 'ComputerName')] # A String that identifies the computer that is the destination for the ICMP echo message. The value specified for this parameter can be a host name or a string representation of an IP address. [string]$Name, [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ParameterSetName = 'Address')] # IP address that is the destination for the ICMP echo message. [System.Net.IPAddress]$Address, [ValidateRange(1, 2147483647)] # Number of ICMP pings to send. [int]$Count = 3, [ValidateRange(0, 2147483647)] # An Int32 value that specifies the maximum number of milliseconds (after sending the echo message) to wait for the ICMP echo reply message [int]$Timeout = 5000, # A Byte array that contains data to be sent with the ICMP echo message and returned in the ICMP echo reply message. The array cannot contain more than 65,500 bytes. [byte[]]$Buffer, # A PingOptions object used to control fragmentation and Time-to-Live values for the ICMP echo message packet. [System.Net.NetworkInformation.PingOptions]$Options, # Ping object to use [System.Net.NetworkInformation.Ping]$Pinger ) Begin { if ($PSBoundParameters.ContainsKey('Pinger')) { $Ping = $Pinger; } else { $Ping = New-Object -TypeName 'System.Net.NetworkInformation.Ping'; } if ($PSBoundParameters.ContainsKey('Options') -and -not $PSBoundParameters.ContainsKey('Buffer')) { $Buffer = [System.Text.Encoding]::ASCII.GetBytes('1234567890ABCDEFGHIJKLMNOPQRSTUV'); } } Process { if ($PSCmdlet.ParameterSetName -eq 'Name') { if ($PSBoundParameters.ContainsKey('Options')) { for ($i = 0; $i -lt $Count; $i++) { $Ping.Send($Name, $Timeout, $Buffer, $Options) } } else { if ($PSBoundParameters.ContainsKey('Buffer')) { for ($i = 0; $i -lt $Count; $i++) { $Ping.Send($Name, $Timeout, $Buffer) } } else { if ($PSBoundParameters.ContainsKey('Timeout')) { for ($i = 0; $i -lt $Count; $i++) { $Ping.Send($Name, $Timeout) } } else { for ($i = 0; $i -lt $Count; $i++) { $Ping.Send($Name) } } } } } else { if ($PSBoundParameters.ContainsKey('Options')) { for ($i = 0; $i -lt $Count; $i++) { $Ping.Send($Address, $Timeout, $Buffer, $Options) } } else { if ($PSBoundParameters.ContainsKey('Buffer')) { for ($i = 0; $i -lt $Count; $i++) { $Ping.Send($Address, $Timeout, $Buffer) } } else { if ($PSBoundParameters.ContainsKey('Timeout')) { for ($i = 0; $i -lt $Count; $i++) { $Ping.Send($Address, $Timeout) } } else { for ($i = 0; $i -lt $Count; $i++) { $Ping.Send($Address) } } } } } } End { if (-not $PSBoundParameters.ContainsKey('Pinger')) { $Ping.Dispose() } } } Function Trace-Route { <# .SYNOPSIS Trace route to host. .DESCRIPTION Attempts to send an Internet Control Message Protocol (ICMP) echo messages to computers in the route to the specified host, and receives corresponding ICMP echo reply messages from the hosts. .OUTPUTS System.Net.NetworkInformation.PingReply[]. ICMP echo reply messages from hosts. .LINK New-PingOptions .LINK https://msdn.microsoft.com/en-us/library/system.net.networkinformation.ping.aspx .LINK https://msdn.microsoft.com/en-us/library/system.net.networkinformation.pingreply.aspx #> [CmdletBinding(DefaultParameterSetName = 'HostName')] [OutputType([System.Net.NetworkInformation.PingReply[]])] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ParameterSetName = 'Name')] [Alias('HostName', 'Host', 'HostNameOrAddress', 'ComputerName')] # A String that identifies the computer that is the destination for the ICMP echo message. The value specified for this parameter can be a host name or a string representation of an IP address. [string]$Name, [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ParameterSetName = 'Address')] # IP address that is the destination for the ICMP echo message. [System.Net.IPAddress]$Address, # An Int32 value that specifies the maximum number of milliseconds (after sending the echo message) to wait for the ICMP echo reply message [ValidateRange(0, 2147483647)] [int]$Timeout = 5000, # Maximum number of forwards in the trace. [ValidateRange(1, 2147483647)] [int]$MaxTtl = 128, # Ping object to use [System.Net.NetworkInformation.Ping]$Pinger ) Begin { if ($PSBoundParameters.ContainsKey('Pinger')) { $Ping = $Pinger; } else { $Ping = New-Object -TypeName 'System.Net.NetworkInformation.Ping'; } } Process { if ($PSBoundParameters.ContainsKey('Name')) { $Splat = @{ Name = $Name; Count = 1; }; } else { $Splat = @{ Address = $Address; Count = 1; }; } $Splat.Options = New-PingOptions -Ttl 1 -DontFragment; if ($PSBoundParameters.ContainsKey('Timeout')) { $Splat.Timeout = $Timeout } $Splat.Pinger = $Ping; while ($Splat.Options.Ttl -le $MaxTtl) { $PingReply = Send-Ping @splat; if ($PingReply.Status -eq [System.Net.NetworkInformation.IPStatus]::Success) { $PingReply | Write-Output; break; } $Splat.Options.Ttl++; if ($PingReply.Address -ne $null) { if ($PSBoundParameters.ContainsKey('Timeout')) { Send-Ping -Address $PingReply.Address -Count 1 -Options $Splat.Options -Timeout $Timeout -Pinger $Ping; } else { Send-Ping -Address $PingReply.Address -Count 1 -Options $Splat.Options -Pinger $Ping; } } else { $PingReply | Write-Output; } if ($PingReply.Status -ne [System.Net.NetworkInformation.IPStatus]::TtlExpired -and $PingReply.Status -ne [System.Net.NetworkInformation.IPStatus]::TimedOut) { break; } } } End { if (-not $PSBoundParameters.ContainsKey('Pinger')) { $Ping.Dispose() } } } Function Get-TraceRouteStatus { [CmdletBinding()] [OutputType([System.Net.NetworkInformation.IPStatus])] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)] [System.Net.NetworkInformation.PingReply[]]$PingReply ) Begin { $LastTtl = $null; $LastStatus = [System.Net.NetworkInformation.IPStatus]::TtlExpired; } Process { if ($LastTtl -ne $null -and $PingReply.Options.Ttl -le $LastTtl) { $LastStatus | Write-Output } $LastTtl = $PingReply.Options.Ttl; $LastStatus = $PingReply.Status; } End { $LastStatus | Write-Output } } Function New-SqlConnection { <# .SYNOPSIS Get SQL database connection. .DESCRIPTION Returns an object which represents a connection to a SQL Server database. .OUTPUTS System.Data.SqlClient.SqlConnection. An object which represents a connection to a SQL Server database. .LINK New-SqlCommand .LINK https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.aspx #> [CmdletBinding()] [OutputType([System.Data.SqlClient.SqlConnection])] Param( [Parameter(Mandatory = $true, Position = 0)] # The connection used to open the SQL Server database. [string]$ConnectionString, # Indicates that the connection should not be actually opened. [switch]$DoNotOpen ) $SqlConnection = New-Object -TypeName '' -ArgumentList $ConnectionString if ($DoNotOpen) { $SqlConnection | Write-Output; } else { try { $SqlConnection.Open(); $SqlConnection | Write-Output; } catch { $SqlConnection.Dispose(); throw; } } } Function New-SqlCommand { <# .SYNOPSIS Create new SQL command. .DESCRIPTION Creates and returns a SqlCommand object associated with the SqlConnection. .OUTPUTS System.Data.SqlClient.SqlConnection. An object which represents a connection to a SQL Server database. .LINK New-SqlConnection .LINK New-SqlParameter .LINK Read-SqlCommand .LINK https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.aspx .LINK https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.createcommand.aspx #> [CmdletBinding(DefaultParameterSetName = 'Optional')] [OutputType([System.Data.SqlClient.SqlCommand])] Param( [Parameter(Mandatory = $true, Position = 0)] # The SqlConnection to be used by the new SqlCommand. [System.Data.SqlClient.SqlConnection]$SqlConnection, [Parameter(Position = 1, ParameterSetName = 'Optional')] [Parameter(Mandatory = $true, Position = 1, ParameterSetName = 'CommandType')] # The Transact-SQL statement, table name or stored procedure to execute at the data source. [string]$CommandText, [Parameter(Mandatory = $true, ParameterSetName = 'CommandType')] # Indicates how the CommandText parameter is to be interpreted. [System.Data.CommandType]$CommandType = [System.Data.CommandType]::Text ) $SqlCommand = $ConnectionString.CreateCommand(); if ($PSBoundParameters.ContainsKey('CommandText')) { try { $SqlCommand.CommandText = $CommandText; $SqlCommand.CommandType = $CommandType; $SqlCommand | Write-Output; } catch { $SqlCommand.Dispose(); throw; } } else { $SqlCommand | Write-Output; } } Function New-SqlParameter { <# .SYNOPSIS Create new SQL parameter. .DESCRIPTION Creates and returns a SqlParameter object for use with an SqlCommand. .OUTPUTS System.Data.SqlClient.SqlParameter. A SqlParameter object for use with an SqlCommand. .LINK New-SqlCommand .LINK Read-SqlCommand .LINK New-SqlConnection .LINK https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlparameter.aspx .LINK https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.createparameter.aspx #> [CmdletBinding(DefaultParameterSetName = 'NotNull')] [OutputType([System.Data.SqlClient.SqlParameter])] Param( [Parameter(Mandatory = $true, Position = 0)] # The command to which the parameter is to be added. [System.Data.SqlClient.SqlCommand]$SqlCommand, [Parameter(Mandatory = $true, Position = 1)] [Alias('ParameterName')] # The name of the SqlParameter. [string]$Name, [Parameter(Mandatory = $true, Position = 2, ParameterSetName = 'NotNull')] [Alias('ParameterName')] [AllowEmptyString()] # The value of the parameter. [object]$Value, [Parameter(Mandatory = $true, Position = 3, ParameterSetName = 'NotNull')] [Parameter(Mandatory = $true, Position = 2, ParameterSetName = 'Null')] # The type of the parameter. [System.Data.SqlDbType]$DbType, # Indicates whether the parameter is input-only, output-only, bidirectional, or a stored procedure return value parameter. [System.Data.ParameterDirection]$Direction = [System.Data.ParameterDirection]::Input, # Name of the source column mapped to the DataSet and used for loading or returning the Value. [string]$SourceColumn, # Maximum size, in bytes, of the data within the column. [int]$Size, # Maximum number of digits used to represent the Value property. [byte]$Precision, # Number of decimal places to which Value is resolved. [byte]$Scale, [Parameter(ParameterSetName = 'NotNull')] # Indicates whether the parameter accepts null values. [switch]$IsNullable, [Parameter(ParameterSetName = 'Null')] # Indicates that the parameter is to contain a null value. [switch]$NullValue, # Do not actually add the parameter to the SqlCommand. [switch]$DoNotAdd ) $SqlParameter = $SqlCommand.CreateParameter(); $SqlParameter.ParameterName = $Name; $SqlParameter.SqlDbType = $DbType; $SqlParameter.Direction = $Direction; $SqlParameter.IsNullable = $IsNullable.IsPresent -or $NullValue.IsPresent; if ($PSBoundParameters.ContainsKey('SourceColumn')) { $SqlParameter.SourceColumn = $SourceColumn } if ($PSBoundParameters.ContainsKey('Size')) { $SqlParameter.Size = $Size } if ($PSBoundParameters.ContainsKey('Precision')) { $SqlParameter.Precision = $Precision } if ($PSBoundParameters.ContainsKey('Scale')) { $SqlParameter.Scale = $Scale } if ($NullValue) { $SqlParameter.Value = [System.DBNull]::Value; } else { $SqlParameter.Value = $Value; } if ($DoNotAdd) { $SqlParameter | Write-Output; } else { $SqlCommand.Parameters.Add($SqlParameter) | Write-Output; } } Function Read-SqlData { <# .SYNOPSIS Get data from an SQL data reader. .DESCRIPTION Returns data from the SqlDataReader. .OUTPUTS System.Management.Automation.PSObject[]. The data read from the SqlDataReader. .LINK Read-SqlCommand .LINK New-SqlCommand .LINK New-SqlParameter .LINK New-SqlConnection .LINK https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldatareader.aspx #> [CmdletBinding()] [OutputType([System.Management.Automation.PSObject[]])] Param( [Parameter(Mandatory = $true, Position = 0)] # The SQL Data Reader to be read from. [System.Data.SqlClient.SqlDataReader]$SqlDataReader ) if ($SqlDataReader.HasRows) { while ($SqlDataReader.Read()) { $Properties = @{}; for ($i = 0; $i -lt $SqlDataReader.FieldCount; $i++) { $name = $SqlDatReader.GetName($i); if ($SqlDataReader.IsDBNull($i)) { $Properties[$name] = $null; } else { $Properties[$name] = $SqlDataReader.Getvalue($i); } } } } New-Object -TypeName 'System.Management.Automation.PSObject' -Property $Properties; } Function Read-SqlCommand { <# .SYNOPSIS Get data from an SQL command. .DESCRIPTION Sends the CommandText to the Connection and builds a SqlDataReader, returning the result set. .OUTPUTS System.Management.Automation.PSObject[]. The data read from the SqlDataReader. .LINK Read-SqlData .LINK New-SqlCommand .LINK New-SqlParameter .LINK New-SqlConnection .LINK https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.executereader.aspx .LINK https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldatareader.aspx #> [CmdletBinding(DefaultParameterSetName = 'CommandText')] [OutputType([System.Management.Automation.PSObject[]])] Param( [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'SqlCommand')] # The command to be executed. [System.Data.SqlClient.SqlCommand]$SqlCommand, [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'CommandText')] [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'CommandType')] # The connection for the SQL command. [System.Data.SqlClient.SqlConnection]$SqlConnection, [Parameter(Position = 1, ParameterSetName = 'CommandText')] [Parameter(Mandatory = $true, Position = 1, ParameterSetName = 'CommandType')] # The Transact-SQL statement, table name or stored procedure to execute at the data source. [string]$CommandText, [Parameter(Mandatory = $true, ParameterSetName = 'CommandType')] # Indicates how the CommandText parameter is to be interpreted. [System.Data.CommandType]$CommandType ) if ($PSCmdlet.ParameterSetName -eq 'SqlCommand') { $SqlDataReader = $SqlCommand.ExecuteReader(); try { Read-SqlData -SqlDataReader $SqlDataReader; } catch { throw; } finally { $SqlDataReader.Dispose(); } } else { if ($PSCmdlet.ParameterSetName -eq 'CommandType') { $SqlCommand = New-SqlCommand -SqlConnection $SqlConnection -CommandText $CommandText -CommandType $CommandType; } else { $SqlCommand = New-SqlCommand -SqlConnection $SqlConnection -CommandText $CommandText; } try { Read-SqlCommand -SqlCommand $SqlCommand; } catch { throw; } finally { $SqlCommand.Dispose(); } } } Function Get-SqlTableInfo { <# .SYNOPSIS Get information about database tables. .DESCRIPTION Returns a list of objects that can be queried in the current environment. This means any table or view, except synonym objects. .OUTPUTS System.Management.Automation.PSObject[]. Information about data tables and views. .LINK Get-SqlTableColumnInfo .LINK https://msdn.microsoft.com/en-us/library/ms186250.aspx #> [CmdletBinding()] [OutputType([System.Management.Automation.PSObject[]])] Param( [Parameter(Mandatory = $true, Position = 0)] [System.Data.SqlClient.SqlConnection]$SqlConnection, # Table/View name to filter by. [string]$Name, [Alias('Owner')] # Name of the schema (owner) to filter by. [string]$Schema, [Alias('Database')] # Name of the object qualifier to filter by. [string]$Qualifier, [ValidateSet('TABLE', 'SYSTEMTABLE', 'VIEW')] # Table types to be returned. [string[]]$Type ) $SqlCommand = New-SqlCommand -SqlConnection $SqlConnection -CommandText = 'sp_tables' -CommandType StoredProcedure; try { if ($PSBoundParameters.ContainsKey('Name')) { New-SqlParameter -SqlCommand $SqlCommand -Name 'table_name' -DbType ([System.Data.SqlDbType]::NVarChar) -Value $Name -Size 384 | Out-Null; } if ($PSBoundParameters.ContainsKey('Schema')) { New-SqlParameter -SqlCommand $SqlCommand -Name 'table_owner' -DbType ([System.Data.SqlDbType]::NVarChar) -Value $Schema -Size 384 | Out-Null; } if ($PSBoundParameters.ContainsKey('Qualifier')) { New-SqlParameter -SqlCommand $SqlCommand -Name 'table_qualifier' -DbType ([System.Data.SqlDbType]::NVarChar) -Value $Qualifier | Out-Null; } if ($PSBoundParameters.ContainsKey('Type')) { New-SqlParameter -SqlCommand $SqlCommand -Name 'table_type' -DbType ([System.Data.SqlDbType]::NVarChar) -Value (($Type | Select-Object -Unique) -join ', ') -Size 100 | Out-Null; } Read-SqlCommand -SqlCommand $SqlCommand; } catch { throw; } finally { $SqlCommand.Dispose(); } } Function Get-SqlTableColumnInfo { <# .SYNOPSIS Get table or view column information. .DESCRIPTION Returns column information for the specified objects that can be queried in the current environment. .OUTPUTS System.Management.Automation.PSObject[]. Table and/or View columns. .LINK Get-SqlTableInfo .LINK https://msdn.microsoft.com/en-us/library/ms176077.aspx #> [CmdletBinding()] [OutputType([System.Management.Automation.PSObject[]])] Param( [Parameter(Mandatory = $true, Position = 0)] # The SQL connection representing the environment to use. [System.Data.SqlClient.SqlConnection]$SqlConnection, # Name of the object that is used to return catalog information. [string]$TableName, [Alias('Owner')] # Name of the schema (owner) to filter by. [string]$Schema, [Alias('Database')] # Name of the object qualifier to filter by. [string]$Qualifier, [Alias('Column')] # Name of a single column to return. [string]$Name ) $SqlCommand = New-SqlCommand -SqlConnection $SqlConnection -CommandText = 'sp_columns' -CommandType StoredProcedure; New-SqlParameter -SqlCommand $SqlCommand -Name 'table_name' -DbType ([System.Data.SqlDbType]::NVarChar) -Value $TableName -Size 384 | Out-Null; try { if ($PSBoundParameters.ContainsKey('Schema')) { New-SqlParameter -SqlCommand $SqlCommand -Name 'table_owner' -DbType ([System.Data.SqlDbType]::NVarChar) -Value $Schema -Size 384 | Out-Null; } if ($PSBoundParameters.ContainsKey('Qualifier')) { New-SqlParameter -SqlCommand $SqlCommand -Name 'table_qualifier' -DbType ([System.Data.SqlDbType]::NVarChar) -Value $Qualifier | Out-Null; } if ($PSBoundParameters.ContainsKey('Name')) { New-SqlParameter -SqlCommand $SqlCommand -Name 'column_name' -DbType ([System.Data.SqlDbType]::NVarChar) -Value $Name -Size 384 | Out-Null; } Read-SqlCommand -SqlCommand $SqlCommand; } catch { throw; } finally { $SqlCommand.Dispose(); } } Function Get-SqlStoredProcedureInfo { <# .SYNOPSIS Get information about stored procedures. .DESCRIPTION Returns a list of stored procedures in the current environment. .OUTPUTS System.Management.Automation.PSObject[]. Information about stored procedures. .LINK Get-SqlStoredProcedureColumnInfo .LINK https://msdn.microsoft.com/en-us/library/ms190504.aspx #> [CmdletBinding()] [OutputType([System.Management.Automation.PSObject[]])] Param( [Parameter(Mandatory = $true, Position = 0)] [System.Data.SqlClient.SqlConnection]$SqlConnection, # Name of the stored procedure to filter by. [string]$Name, [Alias('Owner')] # Name of the schema (owner) to filter by. [string]$Schema, [Alias('Database')] # Name of the procedure qualifier. [string]$Qualifier ) $SqlCommand = New-SqlCommand -SqlConnection $SqlConnection -CommandText = 'sp_stored_procedures' -CommandType StoredProcedure; try { if ($PSBoundParameters.ContainsKey('Name')) { New-SqlParameter -SqlCommand $SqlCommand -Name 'sp_name' -DbType ([System.Data.SqlDbType]::NVarChar) -Value $Name -Size 390 | Out-Null; } if ($PSBoundParameters.ContainsKey('Schema')) { New-SqlParameter -SqlCommand $SqlCommand -Name 'sp_owner' -DbType ([System.Data.SqlDbType]::NVarChar) -Value $Schema -Size 384 | Out-Null; } if ($PSBoundParameters.ContainsKey('Qualifier')) { New-SqlParameter -SqlCommand $SqlCommand -Name 'sp_qualifier' -DbType ([System.Data.SqlDbType]::NVarChar) -Value $Qualifier | Out-Null; } Read-SqlCommand -SqlCommand $SqlCommand; } catch { throw; } finally { $SqlCommand.Dispose(); } } Function Get-SqlStoredProcedureColumnInfo { <# .SYNOPSIS Get stored procedure column information. .DESCRIPTION Returns column information for a single stored procedure or user-defined function in the current environment. .OUTPUTS System.Management.Automation.PSObject[]. Stored procedure columns. .LINK Get-SqlStoredProcedureInfo .LINK https://msdn.microsoft.com/en-us/library/ms182705.aspx #> [CmdletBinding()] [OutputType([System.Management.Automation.PSObject[]])] Param( [Parameter(Mandatory = $true, Position = 0)] # The SQL connection representing the environment to use. [System.Data.SqlClient.SqlConnection]$SqlConnection, # Name of the procedure used to return catalog information. [string]$StoredProcedure, [Alias('Owner')] # Name of the schema (owner) to filter by. [string]$Schema, [Alias('Database')] # Name of the owner of the procedure to filter by. [string]$Qualifier, [Alias('Column')] # Name of a single column to return. [string]$Name ) $SqlCommand = New-SqlCommand -SqlConnection $SqlConnection -CommandText = 'sp_sproc_columns' -CommandType StoredProcedure; New-SqlParameter -SqlCommand $SqlCommand -Name 'procedure_name' -DbType ([System.Data.SqlDbType]::NVarChar) -Value $StoredProcedure -Size 390 | Out-Null; try { if ($PSBoundParameters.ContainsKey('Schema')) { New-SqlParameter -SqlCommand $SqlCommand -Name 'procedure_owner' -DbType ([System.Data.SqlDbType]::NVarChar) -Value $Schema -Size 384 | Out-Null; } if ($PSBoundParameters.ContainsKey('Qualifier')) { New-SqlParameter -SqlCommand $SqlCommand -Name 'procedure_qualifier' -DbType ([System.Data.SqlDbType]::NVarChar) -Value $Qualifier | Out-Null; } if ($PSBoundParameters.ContainsKey('Name')) { New-SqlParameter -SqlCommand $SqlCommand -Name 'column_name' -DbType ([System.Data.SqlDbType]::NVarChar) -Value $Name -Size 384 | Out-Null; } Read-SqlCommand -SqlCommand $SqlCommand; } catch { throw; } finally { $SqlCommand.Dispose(); } } Function Test-ContentType { <# .SYNOPSIS Check validity of a content type specification. .DESCRIPTION Returns boolean value to indicate whether the content type is a recognized content type. .OUTPUTS System.Boolean. True if content type is a valid and recognized content type; otherwise False. .LINK Get-WebResponse .LINK https://msdn.microsoft.com/en-us/library/system.net.mime.contenttype.aspx #> [CmdletBinding(DefaultParameterSetName = 'Validate')] [OutputType([bool])] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ParameterSetName = 'Validate')] [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ParameterSetName = 'String_String')] [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ParameterSetName = 'String_ContentType')] [AllowNull()] [AllowEmptyString()] # MIME protocol Content Type strings to be tested. [string[]]$InputString, [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ParameterSetName = 'ContentType_String')] [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ParameterSetName = 'ContentType_ContentType')] [AllowNull()] # MIME protocol Content-Type headers to be tested. [System.Net.Mime.ContentType[]]$InputObject, [Parameter(Mandatory = $true, Position = 1, ParameterSetName = 'String_String')] [Parameter(Mandatory = $true, Position = 1, ParameterSetName = 'ContentType_String')] [ValidateScript({ Test-ContentType -InputString $_ })] # Content type that is expected. [string]$Expected, [Parameter(Mandatory = $true, Position = 1, ParameterSetName = 'String_ContentType')] [Parameter(Mandatory = $true, Position = 1, ParameterSetName = 'ContentType_ContentType')] # MIME protocol Content-Type header to be tested. [System.Net.Mime.ContentType]$ContentType, [Parameter(ParameterSetName = 'String_String')] [Parameter(ParameterSetName = 'String_ContentType')] [Parameter(ParameterSetName = 'ContentType_String')] [Parameter(ParameterSetName = 'ContentType_ContentType')] # Only the media type is to be validated. [switch]$MediaTypeOnly, [Parameter(ParameterSetName = 'Validate')] # Allow empty media types. [switch]$AllowEmpty ) Process { if ($PSCmdlet.ParameterSetName -eq 'Validate') { if ([System.String]::IsNullOrEmpty($InputString)) { $AllowEmpty.IsPresent | Write-Output; } else { try { $c = New-Object -TypeName 'System.Net.Mime.ContentType' -ArgumentList $InputString } catch { $c = $null } ($c -ne $null) | Write-Output; } } else { if ($PSBoundParameters.ContainsKey('Expected')) { $ContentType = New-Object -TypeName 'System.Net.Mime.ContentType' -ArgumentList $Expected; } $success = $true; if ($PSBoundParameters.ContainsKey('InputString')) { if ($InputString -eq $null -or $InputString.Length -eq 0) { $success = $false; } else {$ContentType = New-Object -TypeName 'System.Net.Mime.ContentType' -ArgumentList $str if ($MediaTypeOnly) { foreach ($str in $InputString) { if ([System.String]::IsNullOrEmpty($str)) { $success = $false; break; } $c = $null; try { $c = New-Object -TypeName 'System.Net.Mime.ContentType' -ArgumentList $str } catch { } if ($c -eq $null -or -not (Test-ContentType -InputObject $c -ContentType $ContentType -MediaTypeOnly)) { $success = $false; break; } } } else { foreach ($str in $InputString) { if ([System.String]::IsNullOrEmpty($str)) { $success = $false; break; } $c = $null; try { $c = New-Object -TypeName 'System.Net.Mime.ContentType' -ArgumentList $str } catch { } if ($c -eq $null -or -not (Test-ContentType -InputObject $c -ContentType $ContentType)) { $success = $false; break; } } } } } else { if ($InputObject -eq $null -or $InputObject.Length -eq 0) { $success = $false; } else { if ($MediaTypeOnly) { foreach ($c in $InputObject) { if ($c -eq $null -or $c.MediaType -ne $ContentType.MediaType) { $success = $false; break; } } } else { foreach ($c in $InputObject) { if ($c -eq $null -or $c.MediaType -ne $ContentType.MediaType) { $success = $false; break; } if ([System.String]::IsNullOrEmpty($ContentType.CharSet)) { if (-not [System.String]::IsNullOrEmpty($c.CharSet)) { $success = $false; break; } } else { if ([System.String]::IsNullOrEmpty($c.CharSet) -or $c.CharSet -ne $ContentType.CharSet) { $success = $false; break; } } } } } } $success | Write-Output; } } } Function New-WebRequest { <# .SYNOPSIS Create new web request object. .DESCRIPTION Creates an object which represents a request to a Uniform Resource Identifier (URI). .OUTPUTS System.Boolean. Indicates whether the content type matched the specified criteria. .LINK Get-WebResponse .LINK https://msdn.microsoft.com/en-us/library/system.net.webrequest.aspx .LINK https://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx .LINK https://msdn.microsoft.com/en-us/library/system.net.filewebrequest.aspx .LINK https://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx #> [CmdletBinding(DefaultParameterSetName = 'PSCredential')] [OutputType([System.Net.WebRequest])] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)] # URI of the Internet resource associated with the request. [System.Uri]$Uri, # Default cache policy for the request. [System.Net.Cache.RequestCacheLevel]$CachePolicy, # Protocol method to use in the request. [string]$Method, # Name of the connection group for the request. [string]$ConnectionGroupName, # Header name/value pairs to be associated with the request [Hashtable]$Headers, # Indicates whether to pre-authenticate the request. [bool]$PreAuthenticate, [ValidateRange(0, 2147483647)] # Length of time, in milliseconds, before the request times out. [int]$Timeout, # Indicates the level of authentication and impersonation used for the request. [System.Net.Security.AuthenticationLevel]$AuthenticationLevel, # Impersonation level for the request. [System.Security.Principal.TokenImpersonationLevel]$ImpersonationLevel, [Parameter(ParameterSetName = 'PSCredential')] # Credentials used for authenticating the request with the Internet resource. [System.Management.Automation.PSCredential]$PSCredential, [Parameter(Mandatory = $true, ParameterSetName = 'ICredentials')] # Network credentials used for authenticating the request with the Internet resource. [System.Net.ICredentials]$Credentials, [Parameter(Mandatory = $true, ParameterSetName = 'UseDefaultCredentials')] # Send default credentials with the request. [switch]$UseDefaultCredentials ) Process { $WebRequest = [System.Net.WebRequest]::Create($Uri); if ($WebRequest -ne $null) { $WebRequest.UseDefaultCredentials = $UseDefaultCredentials; if ($PSBoundParameters.ContainsKey('CachePolicy')) { $WebRequest.CachePolicy = New-Object -TypeName 'System.Net.Cache.RequestCachePolicy' -ArgumentList $CachePolicy } if ($PSBoundParameters.ContainsKey('Method')) { $WebRequest.Method = $Method } if ($PSBoundParameters.ContainsKey('ConnectionGroupName')) { $WebRequest.ConnectionGroupName = $ConnectionGroupName } if ($PSBoundParameters.ContainsKey('PreAuthenticate')) { $WebRequest.PreAuthenticate = $PreAuthenticate } if ($PSBoundParameters.ContainsKey('Timeout')) { $WebRequest.Timeout = $Timeout } if ($PSBoundParameters.ContainsKey('AuthenticationLevel')) { $WebRequest.AuthenticationLevel = $AuthenticationLevel } if ($PSBoundParameters.ContainsKey('ImpersonationLevel')) { $WebRequest.ImpersonationLevel = $ImpersonationLevel } if ($PSBoundParameters.ContainsKey('PSCredential')) { $WebRequest.Credentials = $PSCredential.GetNetworkCredential() } if ($PSBoundParameters.ContainsKey('Credentials')) { $WebRequest.Credentials = $Credentials } if ($PSBoundParameters.ContainsKey('Headers') -and $Headers.Count -gt 0) { $Headers.Keys | ForEach-Object { if ($_ -is [string]) { $Key = $_ } else { $Key = $Script:Regex.EndingNewline.Replace(($_ | Out-String), '') } if ($Headers[$_] -eq $null) { $WebRequest.Headers.Add($Key, ''); } else { if ($Headers[$_] -is [string]) { $WebRequest.Headers.Add($Key, $Headers[$_]); } else { $WebRequest.Headers.Add($Key, $Script:Regex.EndingNewline.Replace(($Headers[$_] | Out-String), '')); } } } } $WebRequest | Write-Output; } } } Function Read-FormUrlEncoded { <# .SYNOPSIS Read Url-Encoded form data. .DESCRIPTION Reads application/x-www-form-urlencoded data. .OUTPUTS System.Collections.Specialized.NameValueCollection. Key/Value pairs representing decoded data. .LINK Write-FormUrlEncoded .LINK Get-WebResponse .LINK https://msdn.microsoft.com/en-us/library/system.net.webresponse.aspx .LINK https://msdn.microsoft.com/en-us/library/system.io.textreader.aspx .LINK https://msdn.microsoft.com/en-us/library/system.io.stream.aspx .LINK https://msdn.microsoft.com/en-us/library/system.collections.specialized.namevaluecollection.aspx #> [CmdletBinding(DefaultParameterSetName = 'InputString')] [OutputType([System.Collections.Specialized.NameValueCollection])] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ParameterSetName = 'InputString')] [AllowEmptyString()] # String containing URL-Encoded form data. [string]$InputString, [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'TextReader')] # Text reader containing url-encoded form data. [System.IO.TextReader]$Reader, [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'Stream')] # Stream containing url-encoded form data. [System.IO.Stream]$Stream, [Parameter(Position = 1, ParameterSetName = 'Stream')] # Default encoding to use [System.Text.Encoding]$Encoding, # Indicates whether return a Hashtable or a custom PSObject [switch]$Hashtable ) Process { if ($Hashtable) { $splat = @{}; foreach ($k in $PSBoundParameters.Keys) { if ($k -ne 'Hashtable') { $splat.Add($k, $PSBoundParameters[$k]) } } $OutputHashtable = @{}; Read-FormUrlEncoded @splat | ForEach-Object { if ($OutputHashtable.ContainsKey($_.Key)) { $OutputHashtable[$_.Key] = @($OutputHashtable[$_.Key]) + @($_.Value); } else { $OutputHashtable[$_.Key] = $_.Value; } } $OutputHashtable | Write-Output; } else { switch ($PSCmdlet.ParameterSetName) { 'TextReader' { Read-FormUrlEncoded -InputString $Reader.ReadToEnd(); break; } 'Stream' { if ($PSBoundParameters.ContainsKey('Encoding')) { $Reader = New-Object -TypeName 'System.IO.StreamReader' -ArgumentList $Stream, $true; } else { $Reader = New-Object -TypeName 'System.IO.StreamReader' -ArgumentList $Stream, $Encoding; } try { Read-FormUrlEncoded -Reader $Reader; } catch { throw; } finally { $Reader.Dispose(); } break; } default { if ($InputString.Length -gt 0) { if ($InputString[0] -eq '?') { [System.Text.RegularExpressions.MatchCollection]$MatchCollection = $Script:Regex.UrlEncodedItem.Matches($InputString.Substring(1)); } else { [System.Text.RegularExpressions.MatchCollection]$MatchCollection = $Script:Regex.UrlEncodedItem.Matches($InputString); } for ($i = 0; $i -lt $MatchCollection.Count; $i++) { $Propertes = @{ Index = $i; $Key = [System.Uri]::UnescapeDataString($MatchCollection[$i].Groups['key'].Value); } if ($MatchCollection[$i].Groups['value'].Success) { $Propertes['Value'] = [System.Uri]::UnescapeDataString($MatchCollection[$i].Groups['value'].Value); } else { $Propertes['Value'] = $null; } $Item = New-Object -TypeName 'System.Management.Automation.PSObject' -Property $Propertes; $Item.TypeNames.Insert(0, 'Erwine.Leonard.T.NetworkUtility.FormValue'); $Item | Write-Output; } } break; } } } } } Function New-TextWriter { <# .SYNOPSIS Create text writer. .DESCRIPTION Create object to write text data. .OUTPUTS System.IO.TextWriter. Writer object to write text data. .LINK https://msdn.microsoft.com/en-us/library/system.io.textwriter.aspx .LINK https://msdn.microsoft.com/en-us/library/system.io.streamwriter.aspx .LINK https://msdn.microsoft.com/en-us/library/system.io.stringwriter.aspx .LINK https://msdn.microsoft.com/en-us/library/system.web.httpwriter.aspx .LINK https://msdn.microsoft.com/en-us/library/system.web.ui.htmltextwriter.aspx .LINK https://msdn.microsoft.com/en-us/library/system.collections.specialized.namevaluecollection.aspx #> [CmdletBinding(DefaultParameterSetName = 'StringWriter')] [OutputType([System.IO.TextWriter])] Param( [Parameter(Position = 0, ParameterSetName = 'StringWriter')] # Create text writer which writes text to a string builder. [System.Text.StringBuilder]$StringBuilder, [Parameter(Position = 1, ParameterSetName = 'StringWriter')] # Format provider to use with string builder. [System.IFormatProvider]$FormatProvider, [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'Stream')] # Stream which text writer will write to. [System.IO.Stream]$Stream, [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'Path')] # Path which text writer will write to. [string]$Path, [Parameter(Position = 1, ParameterSetName = 'Stream')] [Parameter(Position = 1, ParameterSetName = 'Path')] # Character encoding to use when writing text. [System.Text.Encoding]$Encoding = [System.Text.Encoding]::UTF8, [Parameter(Position = 2, ParameterSetName = 'Stream')] [Parameter(Position = 2, ParameterSetName = 'Path')] # The write buffer size, in bytes. [int]$BufferSize = 32767, [Parameter(Position = 3, ParameterSetName = 'Stream')] # Leave stream open after stream writer is disposed. [switch]$LeaveOpen, [Parameter(Position = 3, ParameterSetName = 'Path')] # Append text to file. [switch]$Append ) switch ($PSCmdlet.ParameterSetName) { 'Path' { if ($PSBoundParameters.ContainsKey('BufferSize')) { New-Object -TypeName 'System.IO.StreamWriter' -ArgumentList $Stream, $Append.IsPresent, $Encoding, $BufferSize; } else { if ($PSBoundParameters.ContainsKey('Encoding')) { New-Object -TypeName 'System.IO.StreamWriter' -ArgumentList $Stream, $Append.IsPresent, $Encoding; } else { if ($PSBoundParameters.ContainsKey('Append')) { New-Object -TypeName 'System.IO.StreamWriter' -ArgumentList $Stream, $Append.IsPresent; } else { New-Object -TypeName 'System.IO.StreamWriter' -ArgumentList $Stream; } } } break; } 'Stream' { if ($PSBoundParameters.ContainsKey('LeaveOpen')) { New-Object -TypeName 'System.IO.StreamWriter' -ArgumentList $Stream, $Encoding, $BufferSize, $LeaveOpen.IsPresent; } else { if ($PSBoundParameters.ContainsKey('BufferSize')) { New-Object -TypeName 'System.IO.StreamWriter' -ArgumentList $Stream, $Encoding, $BufferSize; } else { if ($PSBoundParameters.ContainsKey('Encoding')) { New-Object -TypeName 'System.IO.StreamWriter' -ArgumentList $Stream, $Encoding; } else { New-Object -TypeName 'System.IO.StreamWriter' -ArgumentList $Stream; } } } break; } default { if ($PSBoundParameters.ContainsKey('StringBuilder')) { if ($PSBoundParameters.ContainsKey('FormatProvider')) { New-Object -TypeName 'System.IO.StringWriter' -ArgumentList $StringBuilder, $FormatProvider; } else { New-Object -TypeName 'System.IO.StringWriter' -ArgumentList $StringBuilder; } } else { if ($PSBoundParameters.ContainsKey('FormatProvider')) { New-Object -TypeName 'System.IO.StringWriter' -ArgumentList $FormatProvider; } else { New-Object -TypeName 'System.IO.StringWriter'; } } } } } Function Write-FormUrlEncoded { <# .SYNOPSIS Write Url-Encoded form data. .DESCRIPTION Writes application/x-www-form-urlencoded data. .OUTPUTS System.Collections.Specialized.NameValueCollection. Key/Value pairs representing decoded data. .LINK Read-FormUrlEncoded .LINK New-WebRequest .LINK Get-WebResponse .LINK https://msdn.microsoft.com/en-us/library/system.collections.specialized.namevaluecollection.aspx .LINK https://msdn.microsoft.com/en-us/library/system.net.webrequest.aspx .LINK https://msdn.microsoft.com/en-us/library/system.io.textreader.aspx .LINK https://msdn.microsoft.com/en-us/library/system.io.stream.aspx #> [CmdletBinding(DefaultParameterSetName = 'KeyValue_OutString')] [OutputType([string], ParameterSetName = 'KeyValue_OutString')] [OutputType([string], ParameterSetName = 'Nvc_OutString')] [OutputType([string], ParameterSetName = 'Hashtable_OutString')] Param( [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'Nvc_OutString')] [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'Nvc_Stream')] [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'Nvc_TextWriter')] [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'Nvc_WebRequest')] [AllowEmptyCollection()] # Key/Value pairs to be encoded. [System.Collections.Specialized.NameValueCollection]$NameValueCollection, [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'Hashtable_OutString')] [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'Hashtable_Stream')] [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'Hashtable_TextWriter')] [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'Hashtable_WebRequest')] [AllowEmptyCollection()] # Key/Value pairs to be encoded. [Hashtable]$Data, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'KeyValue_OutString')] [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'KeyValue_Stream')] [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'KeyValue_TextWriter')] [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'KeyValue_WebRequest')] [AllowEmptyString()] # Key to encoded and written. [object]$Key, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'KeyValue_OutString')] [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'KeyValue_Stream')] [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'KeyValue_TextWriter')] [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'KeyValue_WebRequest')] [AllowNull()] [AllowEmptyString()] # Value to encoded and written. [object]$Value, [Parameter(ParameterSetName = 'Hashtable_Stream')] [Parameter(ParameterSetName = 'KeyValue_Stream')] [Parameter(ParameterSetName = 'Hashtable_WebRequest')] [Parameter(ParameterSetName = 'KeyValue_WebRequest')] # Character encoding to use. [System.Text.Encoding]$Encoding, [Parameter(Mandatory = $true, ParameterSetName = 'Hashtable_TextWriter')] [Parameter(Mandatory = $true, ParameterSetName = 'KeyValue_TextWriter')] # Text writer to write encoded data to. [System.IO.TextWriter]$Writer, [Parameter(Mandatory = $true, ParameterSetName = 'Hashtable_WebRequest')] [Parameter(Mandatory = $true, ParameterSetName = 'KeyValue_WebRequest')] [Alias('Request')] # Web Request to write encoded data to. This will also set the content type and length. [System.Net.WebRequest]$WebRequest, [Parameter(Mandatory = $true, ParameterSetName = 'Hashtable_Stream')] [Parameter(Mandatory = $true, ParameterSetName = 'KeyValue_Stream')] # Stream to write encoded data to. [System.IO.Stream]$Stream, [Parameter(ParameterSetName = 'KeyValue_OutString')] [Parameter(Mandatory = $true, ParameterSetName = 'Nvc_OutString')] [Parameter(Mandatory = $true, ParameterSetName = 'Hashtable_OutString')] # Return encoded data as a string. [switch]$ToString ) Begin { if (-not $PSBoundParameters.ContainsKey('NameValueCollection')) { $NameValueCollection = New-Object -TypeName 'System.Collections.Specialized.NameValueCollection'; } $AllItems = @(); ($InputType, $OutpuType) = $PSCmdlet.ParameterSetName.Split('_'); } Process { if ($InputType -eq 'Hashtable') { foreach ($Key in $Data.Keys) { $Value = $Data[$Key]; if ($Key -is [string]) { $k = $Key; } else { $k = $Key.ToString(); } if ($Value -ne $null) { $NameValueCollection.Add($k, $null); } else { $Value = @($Value); if ($Value.Count -eq 0) { $NameValueCollection.Add($k, ''); } else { $Value | ForEach-Object { if ($_ -eq $null -or $_ -is [string]) { $NameValueCollection.Add($k, $_); } else { $NameValueCollection.Add($k, $_.ToString()); } } } } } } else { if ($InputType -eq 'KeyValue') { if ($Key -is [string]) { $k = $Key; } else { $k = $Key.ToString(); } if ($Value -eq $null) { $NameValueCollection.Add($k, $null); } else { $v = @($Value); if ($v.Count -eq 0) { $NameValueCollection.Add($k, ''); } else { $v | ForEach-Object { if ($_ -eq $null -or $_ -is [string]) { $NameValueCollection.Add($k, $_); } else { $NameValueCollection.Add($k, $_.ToString()); } } } } } } } End { switch ($OutpuType) { 'Stream' { [NetworkUtilityCLR.FormEncoder]::Encode($NameValueCollection, $Stream, $false, $Encoding); break; } 'WebRequest' { [NetworkUtilityCLR.FormEncoder]::Encode($NameValueCollection, $WebRequest, $false, $Encoding); } 'TextWriter' { [NetworkUtilityCLR.FormEncoder]::Encode($NameValueCollection, $Writer, $false); } default { # OutString [NetworkUtilityCLR.FormEncoder]::Encode($NameValueCollection, $false) | Write-Output; break; } } } } Function Write-FormUrlEncoded2 { [CmdletBinding(DefaultParameterSetName = 'KeyValue_OutString')] [OutputType([string], ParameterSetName = 'KeyValue_OutString')] [OutputType([string], ParameterSetName = 'Hashtable_OutString')] Param( [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'Hashtable_OutString')] [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'Hashtable_Stream')] [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'Hashtable_TextWriter')] [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'Hashtable_WebRequest')] [AllowEmptyCollection()] [Hashtable]$Data, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'KeyValue_OutString')] [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'KeyValue_Stream')] [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'KeyValue_TextWriter')] [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'KeyValue_WebRequest')] [AllowEmptyString()] [object]$Key, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'KeyValue_OutString')] [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'KeyValue_Stream')] [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'KeyValue_TextWriter')] [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'KeyValue_WebRequest')] [AllowNull()] [object]$Value, [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'KeyValue_OutString')] [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'KeyValue_Stream')] [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'KeyValue_TextWriter')] [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'KeyValue_WebRequest')] [int]$Index = 0, [Parameter(Mandatory = $true, ParameterSetName = 'Hashtable_Stream')] [Parameter(Mandatory = $true, ParameterSetName = 'KeyValue_Stream')] [System.IO.Stream]$Stream, [Parameter(ParameterSetName = 'Hashtable_Stream')] [Parameter(ParameterSetName = 'KeyValue_Stream')] [Parameter(ParameterSetName = 'Hashtable_WebRequest')] [Parameter(ParameterSetName = 'KeyValue_WebRequest')] [System.Text.Encoding]$Encoding, [Parameter(Mandatory = $true, ParameterSetName = 'Hashtable_TextWriter')] [Parameter(Mandatory = $true, ParameterSetName = 'KeyValue_TextWriter')] [System.IO.TextWriter]$Writer, [Parameter(Mandatory = $true, ParameterSetName = 'Hashtable_WebRequest')] [Parameter(Mandatory = $true, ParameterSetName = 'KeyValue_WebRequest')] [Alias('Request')] [System.Net.WebRequest]$WebRequest ) Begin { $AllItems = @(); $ParameterSetParts = $PSCmdlet.ParameterSetName.Split('_'); } Process { if ($ParameterSetParts[0] -eq 'Hashtable') { foreach ($Key in $Data.Keys) { $Value = $Data[$Key]; if ($Value -ne $null) { $AllItems += New-Object -TypeName 'System.Management.Automation.PSObject' -Property @{ Key = $Key; Value = $null; }; } else { $Value = @($Value); if ($Value.Count -eq 0) { $AllItems += New-Object -TypeName 'System.Management.Automation.PSObject' -Property @{ Key = $Key; Value = ''; }; } else { $Value | ForEach-Object { $AllItems += New-Object -TypeName 'System.Management.Automation.PSObject' -Property @{ Key = $Key; Value = $_; }; } } } } } else { if ($PSBoundParameters.ContainsKey('Index')) { $AllItems += New-Object -TypeName 'System.Management.Automation.PSObject' -Property @{ Key = $Key; Index = $Index; Value = $Value; }; } else { $AllItems += New-Object -TypeName 'System.Management.Automation.PSObject' -Property @{ Key = $Key; Value = $Value; }; } } } End { if ($AllItems.Count -gt 0) { switch ($ParameterSetParts[1]) { 'OutString' { $TextWriter = New-Object -TypeName 'System.IO.StringWriter'; break; } 'Stream' { if ($PSBoundParameters.ContainsKey('Encoding')) { $TextWriter = New-Object -TypeName 'System.IO.StreamWriter' -ArgumentList $Stream, $Encoding; } else { $TextWriter = New-Object -TypeName 'System.IO.StreamWriter' -ArgumentList $Stream, ([System.Text.Encoding]::UTF8); } break; } 'TextWriter' { $TextWriter = $Writer; break; } default { if ($ParameterSetParts[1] -eq 'WebRequest') { $Stream = $WebRequest.GetRequestStream(); [long]$TotalLength = 0; } if (-not $PSBoundParameters.ContainsKey('Encoding')) { $Encoding = [System.Text.Encoding]::UTF8 } $TextWriter = New-Object -TypeName 'System.IO.StreamWriter' -ArgumentList $Stream, $Encoding; break; } } $IndexedItems = $AllItems | Where-Object { $_.Index -ne $null } if ($IndexedItems -ne $null) { $AllItems = @($IndexedItems | Sort-Object -Property 'Index') + @($AllItems | Where-Object { $_.Index -eq $null }); } try { if ($PSCmdlet.ParameterSetName -eq 'KeyValueIndexed') { $AllItems = $AllItems | Sort-Object -Property 'Index' } for ($i = 0; $i -lt $AllItems.Count; $i++) { if ($i -gt 0) { if ($ParameterSetParts[1] -eq 'WebRequest') { [long]$TotalLength = $TotalLength + ([long]($Encoding.GetByteCount('&'))) } $TextWriter.Write('&'); } if ($AllItems[$i].Key -ne $null) { if ($AllItems[$i].Key -is [string]) { $Key = $AllItems[$i].Key; } else { $Key = $Script:Regex.EndingNewline.Replace(($AllItems[$i].Key | Out-String), ''); } if ($Key -ne '') { $Key = [System.Uri]::EscapeDataString($Key); if ($ParameterSetParts[1] -eq 'WebRequest') { [long]$TotalLength = $TotalLength + ([long]($Encoding.GetByteCount($Key))) } $TextWriter.Write($Key) | Out-Null; } } if ($AllItems[$i].Value -ne $null) { $TextWriter.Write('=') | Out-Null; if ($ParameterSetParts[1] -eq 'WebRequest') { [long]$TotalLength = $TotalLength + ([long]($Encoding.GetByteCount('='))) } if ($AllItems[$i].Value -is [string]) { $Value = $AllItems[$i].Value; } else { $Value = $Script:Regex.EndingNewline.Replace(($AllItems[$i].Value | Out-String), ''); } if ($Value -ne '') { $Value = [System.Uri]::EscapeDataString($Value); if ($ParameterSetParts[1] -eq 'WebRequest') { [long]$TotalLength = $TotalLength + ([long]($Encoding.GetByteCount($Value))) } $TextWriter.Write($Value) | Out-Null; } } } $TextWriter.Flush(); switch ($ParameterSetParts[1]) { 'OutString' { $TextWriter.ToString(); break; } 'WebRequest' { $ContentType = New-Object -TypeName 'System.Net.Mime.ContentType' -ArgumentList 'application/x-www-form-urlencoded'; $ContentType.CharSet = $Encoding.BodyName; $WebRequest.ContentType = $ContentType.ToString(); $WebRequest.ContentLength = $TotalLength; } } } catch { throw; } finally { if (-not $PSBoundParameters.ContainsKey('TextWriter')) { $TextWriter.Dispose() } if (-not $PSBoundParameters.ContainsKey('Stream')) { $Stream.Dispose() } } } } } Function Write-XmlResponseData { [CmdletBinding(DefaultParameterSetName = 'WebRequestEncoding')] [OutputType([string], ParameterSetName = 'String')] Param( [Parameter(Mandatory = $true)] [ValidateScript({ ($_.NodeType -eq [System.Xml.XmlNodeType]::Document -and $_.DocumentElement -ne $null) -or $_.NodeType -eq [System.Xml.XmlNodeType]::Element })] [System.Xml.XmlNode]$XmlData, [Parameter(Mandatory = $true, ParameterSetName = 'Stream')] [System.IO.Stream]$Stream, [Parameter(ParameterSetName = 'Stream')] [Parameter(ParameterSetName = 'WebRequestEncoding')] [System.Text.Encoding]$Encoding, [Parameter(Mandatory = $true, ParameterSetName = 'WebRequestContentType')] [System.Net.Mime.ContentType]$ContentType, [Parameter(Mandatory = $true, ParameterSetName = 'Writer')] [System.IO.TextWriter]$Writer, [Parameter(Mandatory = $true, ParameterSetName = 'WebRequestEncoding')] [Parameter(Mandatory = $true, ParameterSetName = 'WebRequestContentType')] [Alias('Request')] [System.Net.WebRequest]$WebRequest, [Parameter(ParameterSetName = 'String')] [Parameter(ParameterSetName = 'Stream')] [Parameter(ParameterSetName = 'WebRequestContentType')] [System.Xml.XmlWriterSettings]$Settings, [Parameter(Mandatory = $true, ParameterSetName = 'String')] [switch]$AsString ) switch ($PSCmdlet.ParameterSetName) { 'Stream' { if ($PSBoundParameters.ContainsKey('Settings')) { $Writer = [System.Xml.XmlWriter]::Create($Stream, $Settings); } else { $XmlData.WriteTo($Stream); } break; } 'String' { $Stream = New-Object -TypeName 'System.IO.MemoryStream'; if ($PSBoundParameters.ContainsKey('Settings')) { $Settings = $Settings.Clone(); } else { $Settings = New-Object -TypeName 'System.Xml.XmlWriterSettings'; } $Settings.CloseOutput = $true; $Writer = [System.Xml.XmlWriter]::Create($Stream, $Settings); break; } 'WebRequestEncoding' { $Stream = $WebRequest.GetRequestStream(); if ($PSBoundParameters.ContainsKey('Settings')) { $Settings = $Settings.Clone(); } else { $Settings = New-Object -TypeName 'System.Xml.XmlWriterSettings'; } $Settings.Encoding = $Encoding; $Settings.CloseOutput = $true; $Writer = [System.Xml.XmlWriter]::Create($Stream, $Settings); } 'WebRequestContentType' { $Stream = $WebRequest.GetRequestStream(); if (-not [System.String]::IsNullOrEmpty($ContentType.CharSet)) { try { $Encoding = [System.Text.Encoding]::GetEncoding($ContentType.CharSet) } catch { } } if ($Encoding -eq $null) { $Encoding = [System.Text.Encoding]::UTF8 } $Settings = New-Object -TypeName 'System.Xml.XmlWriterSettings' -Property @{ Indent = $Indent; CloseOutput = $true; Encoding = $Encoding; } $Writer = [System.Xml.XmlWriter]::Create($Stream, $Settings); } } if ($Writer -ne $null) { try { $XmlData.WriteTo($Writer); $Writer.Flush(); switch ($PSCmdlet.ParameterSetName) { 'String' { $Settings.Encoding.GetString($Stream.ToArray()); break; } 'WebRequestEncoding' { } 'WebRequestContentType' { } } } catch { throw; } finally { if (-not $PSBoundParameters.ContainsKey('Writer')) { $Writer.Dispose() } if ($Stream -ne $null -and -not $PSBoundParameters.ContainsKey('Stream')) { $Stream.Close() } } } } Function Initialize-WebRequestPostXml { <# .SYNOPSIS Initialze web request for posting xml data. .DESCRIPTION Initializes a System.Net.WebRequest object for an XML POST request. .OUTPUTS System.Net.WebResponse. If GetResponse is used, the response to the request. .OUTPUTS System.Net.WebRequest. If PassThru is used, then the WebRequest that was passed to command is returned. .LINK New-WebRequest .LINK Get-WebResponse .LINK Write-XmlResponseData .LINK https://msdn.microsoft.com/en-us/library/system.net.webresponse.aspx .LINK https://msdn.microsoft.com/en-us/library/system.net.webrequest.aspx .LINK https://msdn.microsoft.com/en-us/library/system.xml.xmlnode.aspx #> [CmdletBinding(DefaultParameterSetName = 'GetRequest')] [OutputType([System.Net.WebRequest], ParameterSetName = 'GetRequest')] [OutputType([System.Management.Automation.PSObject], ParameterSetName = 'GetResponse')] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)] [Alias('Request')] # Web request to be initialized. [System.Net.WebRequest]$WebRequest, [Parameter(Mandatory = $true)] # XML data to send. [System.Xml.XmlNode]$XmlData, [Parameter(Mandatory = $true, ParameterSetName = 'GetRequest')] # Returns System.Net.WebRequest that was initialized. [switch]$PassThru, [Parameter(ParameterSetName = 'GetResponse')] # Whether to allow redirection. [bool]$AllowRedirect, [Parameter(Mandatory = $true, ParameterSetName = 'GetResponse')] # Get response after initializing. [switch]$GetResponse ) Process { $WebRequest.Method = 'POST'; $WebRequest.ContentType = 'text/xml;charset=utf-8'; $Stream = $WebRequest.GetRequestStream(); try { $XmlWriterSettings = New-Object -TypeName 'System.Xml.XmlWriterSettings' -Property @{ Indent = $true; CloseOutput = $true; Encoding = [System.Text.Encoding]::UTF8; OmitXmlDeclaration = $true; }; $XmlWriter = [System.Xml.XmlWriter]::Create($Stream, $XmlWriterSettings); try { $XmlData.WriteTo($XmlWriter); } catch { throw; } finally { $XmlWriter.Flush(); $Stream.Flush(); $WebRequest.ContentLength = [int]$Stream.Position; $XmlWriter.Close(); $XmlWriter = $null; $Stream = $null; } } catch { throw; } finally { if ($Stream -ne $null) { $Stream.Dispose() } } if ($GetResponse) { if ($PSBoundParameters.ContainsKey('AllowRedirect')) { $WebRequest.AllowRedirect = $AllowRedirect } $WebRequest.GetResponse() | Write-Output; } else { if ($PassThru) { $WebRequest | Write-Output }; } } } Function Get-WebResponse { <# .SYNOPSIS Get response for a web request. .DESCRIPTION returns a response to an Internet request. .OUTPUTS System.Net.WebResponse. A WebResponse containing the response to the Internet request. .LINK New-WebRequest .LINK Initialize-WebRequestPostXml .LINK Write-FormUrlEncoded .LINK https://msdn.microsoft.com/en-us/library/system.net.webresponse.aspx .LINK https://msdn.microsoft.com/en-us/library/system.net.webrequest.getresponse.aspx #> [CmdletBinding()] [OutputType([System.Management.Automation.PSObject])] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)] [Alias('Request')] # Object representing an internet request. [System.Net.WebRequest]$WebRequest, # Whether to allow redirection. [bool]$AllowRedirect ) Begin { $SuccessCodes = @( [System.Net.HttpStatusCode]::Continue, [System.Net.HttpStatusCode]::SwitchingProtocols, [System.Net.HttpStatusCode]::OK, [System.Net.HttpStatusCode]::Created, [System.Net.HttpStatusCode]::Accepted, [System.Net.HttpStatusCode]::PartialContent, [System.Net.HttpStatusCode]::MultipleChoices, [System.Net.HttpStatusCode]::MovedPermanently, [System.Net.HttpStatusCode]::Moved, [System.Net.HttpStatusCode]::Found, [System.Net.HttpStatusCode]::Redirect, [System.Net.HttpStatusCode]::NotModified, [System.Net.HttpStatusCode]::TemporaryRedirect, [System.Net.HttpStatusCode]::RedirectKeepVerb, [System.Net.FtpStatusCode]::OpeningData, [System.Net.FtpStatusCode]::CommandOK, [System.Net.FtpStatusCode]::DirectoryStatus, [System.Net.FtpStatusCode]::FileStatus, [System.Net.FtpStatusCode]::SystemType, [System.Net.FtpStatusCode]::SendUserCommand, [System.Net.FtpStatusCode]::ClosingControl, [System.Net.FtpStatusCode]::ClosingData, [System.Net.FtpStatusCode]::EnteringPassive, [System.Net.FtpStatusCode]::LoggedInProceed, [System.Net.FtpStatusCode]::FileActionOK, [System.Net.FtpStatusCode]::PathnameCreated, [System.Net.FtpStatusCode]::SendPasswordCommand, [System.Net.FtpStatusCode]::FileCommandPending ); } Process { if ($PSBoundParameters.ContainsKey('AllowRedirect')) { $WebRequest.AllowAutoRedirect = $AllowRedirect } $Response = @{ Request = $WebRequest; ErrorStatus = [System.Net.WebExceptionStatus]::UnknownError; StatusCode = [System.Management.Automation.PSInvocationState]::NotStarted; Success = $false; StatusDescription = 'Request not sent.'; }; try { $Response['Response'] = $WebRequest.GetResponse(); $Response['ErrorStatus'] = [System.Net.WebExceptionStatus]::Success; if ($Response['Response'].StatusCode -ne $null) { $Response['StatusCode'] = $Response['Response'].StatusCode; $Response['Success'] = $SuccessCodes -contains $Response['StatusCode']; } else { $Response['StatusCode'] = [System.Management.Automation.PSInvocationState]::Completed; $Response['Success'] = $true; } if ($Response['Response'].StatusDescription -eq $null -or $Response['Response'].StatusDescription.Trim() -eq '') { $Response['StatusDescription'] = $Response['StatusCode'].ToString('F'); } else { $Response['StatusDescription'] = $Response['Response'].StatusDescription; } if ($Response['Response'] -ne $null -and $Response['Response'].ContentType -ne $null -and $Response['Response'].ContentType.Trim().Length -gt 0) { try { $Response['ContentType'] = New-Object -TypeName 'System.Net.Mime.ContentType' -ArgumentList $Response['Response'].ContentType } catch { } } } catch [System.Net.WebException] { $Response['ErrorStatus'] = $_.Exception.Status; $Response['Response'] = $_.Exception.Response; $Response['Error'] = $_; if ($Response['Response'] -ne $null -and $Response['Response'].StatusCode -ne $null) { $Response['StatusCode'] = $Response['Response'].StatusCode; } else { $Response['StatusCode'] = [System.Management.Automation.PSInvocationState]::Failed; } if ($Response['Response'] -eq $null -or $Response['Response'].StatusDescription -eq $null -or $Response['Response'].StatusDescription.Trim() -eq '') { if ($_.ErrorDetails -eq $null -or $_.ErrorDetails.Message -eq $null -or $_.ErrorDetails.Message.Trim() -eq '') { if ($_.Exception -eq $null -or $_.Exception.Message -eq $null -or $_.Exception.Message.Trim() -eq '') { $Response['StatusDescription'] = $Response['StatusCode'].ToString('F'); } else { $Response['StatusDescription'] = $_.Exception.Message; } } else { $Response['StatusDescription'] = $_.ErrorDetails.Message; } } else { $Response['StatusDescription'] = $Response['Response'].StatusDescription; } } catch [System.Net.Sockets.SocketException] { $Response['StatusCode'] = $_.SocketErrorCode; $Response['Error'] = $_; if ($_.ErrorDetails -eq $null -or $_.ErrorDetails.Message -eq $null -or $_.ErrorDetails.Message.Trim() -eq '') { if ($_.Exception -eq $null -or $_.Exception.Message -eq $null -or $_.Exception.Message.Trim() -eq '') { $Response['StatusDescription'] = $Response['StatusCode'].ToString('F'); } else { $Response['StatusDescription'] = $_.Exception.Message; } } else { $Response['StatusDescription'] = $_.ErrorDetails.Message; } } catch { $Response['StatusCode'] = [System.Management.Automation.PSInvocationState]::Failed; if ($_.Exception -ne $null -and $_.Exception -is [System.Management.Automation.MethodException]) { if ($_.Exception.ErrorRecord -ne $null) { $Response['Error'] = $_.Exception.ErrorRecord; } else { $Response['Error'] = $_; } if ($_.Exception.InnerException -ne $null) { $e = $_.Exception.InnerException; } else { $e = $null; } } else { $e = $null; } if ($e -ne $null -and $e.Message -ne $null -and $e.Message.Trim() -ne '') { $Response['StatusDescription'] = $e.Message; } else { if ($Response['Error'].ErrorDetails -eq $null -or $Response['Error'].ErrorDetails.Message -eq $null -or $Response['Error'].ErrorDetails.Message.Trim() -eq '') { if ($Response['Error'].Exception -eq $null -or $Response['Error'].Exception.Message -eq $null -or $Response['Error'].Exception.Message.Trim() -eq '') { $Response['StatusDescription'] = $Response['StatusCode'].ToString('F'); } else { $Response['StatusDescription'] = $Response['Error'].Exception.Message; } } else { $Response['StatusDescription'] = $Response['Error'].ErrorDetails.Message; } } } New-Object -TypeName 'System.Management.Automation.PSObject' -Property $Response; } } Function Test-SoapEnvelope { <# .SYNOPSIS Validate a soap envelope. .DESCRIPTION Returns true if the object represents a valid soap envelope; otherwise false, if it does not. .OUTPUTS System.Boolean. true if the object represents a valid soap envelope; otherwise false, if it does not. .LINK New-SoapEnvelope .LINK Initialize-WebRequestPostXml #> [CmdletBinding(DefaultParameterSetName = 'XmlNamespaceManager')] [OutputType([bool])] Param( [Parameter(Mandatory = $true, Position = 0, ParameterSetname = 'PSObject')] # Object containing an XmlDocument property which contains the SOAP envelope XML. [System.Management.Automation.PSObject]$SoapEnvelope, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'Properties')] # Xml document to be tested whether it represents a valid a SOAP envelope. [System.Xml.XmlDocument]$XmlDocument, [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'Properties')] [Parameter(Mandatory = $true, ParameterSetName = 'XmlNamespaceManager')] # Namespace manager to use when validating the SOAP envelope. [System.Xml.XmlNamespaceManager]$XmlNamespaceManager ) Process { switch ($PSCmdlet.ParameterSetName) { 'PSObject' { if ($SoapEnvelope.XmlDocument -eq $null) { $false } else { $SoapEnvelope.XmlDocument | Test-SoapEnvelope } break; } 'Properties' { if ($PSBoundParameters.ContainsKey('XmlNamespaceManager')) { $XmlNamespaceManager = New-Object -TypeName 'System.Xml.XmlNamespaceManager' -ArgumentList $XmlDocument.NameTable; $XmlNamespaceManager.AddNamespace('xsd', 'http://www.w3.org/2001/XMLSchema'); $XmlNamespaceManager.AddNamespace('xsi', 'http://www.w3.org/2001/XMLSchema-instance'); $XmlNamespaceManager.AddNamespace('soap12', 'http://www.w3.org/2003/05/soap-envelope'); } if (Test-SoapEnvelope -XmlNamespaceManager $XmlNamespaceManager) { $XPath = '/{0}:Envelope/{0}:Body' -f $XmlNamespaceManager.LookupNamespace('http://www.w3.org/2003/05/soap-envelope'); if ($XmlDocument.SelectNodes($XPath, $XmlNamespaceManager).Count -eq 1) { $true } else { $false } } else { $false; } } default { if ($XmlNamespaceManager.HasNamespace('http://www.w3.org/2001/XMLSchema') -and $XmlNamespaceManager.HasNamespace('http://www.w3.org/2001/XMLSchema-instance') -and ` $XmlNamespaceManager.HasNamespace('http://www.w3.org/2003/05/soap-envelope')) { $true } else { $false; } } } } } Function Get-SoapXmlNamespacePrefix { <# .SYNOPSIS Get XML name prefix for a SOAP namespace. .DESCRIPTION Returns the XML name prefix for a SOAP namespace. .OUTPUTS System.String. Name prefix of a SOAP namespace. .LINK New-SoapEnvelope #> [CmdletBinding(DefaultParameterSetname = 'PropertiesSoap')] [OutputType([string])] Param( [Parameter(Mandatory = $true, Position = 0, ParameterSetname = 'PSObjectSoap')] [Parameter(Mandatory = $true, Position = 0, ParameterSetname = 'PSObjectSchema')] [Parameter(Mandatory = $true, Position = 0, ParameterSetname = 'PSObjectInstance')] [ValidateScript({ $_ | Test-SoapEnvelope })] # Object containing an XmlDocument property which contains the SOAP envelope XML. [System.Management.Automation.PSObject]$SoapEnvelope, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'PropertiesSoap')] [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'PropertiesSchema')] [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'PropertiesInstance')] [ValidateScript({ Test-SoapEnvelope -XmlDocument $_ })] # XmlDocument which contains the SOAP envelope XML. [System.Xml.XmlDocument]$XmlDocument, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'Properties')] [ValidateScript({ Test-SoapEnvelope -XmlNamespaceManager $_ })] # Namespace manager to use with the SOAP envelope. [System.Xml.XmlNamespaceManager]$XmlNamespaceManager, [Parameter(ParameterSetname = 'PropertiesSoap')] [Parameter(Mandatory = $true, ParameterSetname = 'PSObjectSoap')] # Get prefix associated with the "http://www.w3.org/2003/05/soap-envelope" namespace. [switch]$Soap, [Parameter(Mandatory = $true, ParameterSetname = 'PSObjectSchema')] [Parameter(Mandatory = $true, ParameterSetname = 'PropertiesSchema')] # Get prefix associated with the "http://www.w3.org/2001/XMLSchema" namespace. [switch]$Schema, [Parameter(Mandatory = $true, ParameterSetname = 'PSObjectInstance')] [Parameter(Mandatory = $true, ParameterSetname = 'PropertiesInstance')] # Get prefix associated with the "http://www.w3.org/2001/XMLSchema-instance" namespace. [switch]$SchemaInstance ) Process { switch ($PSCmdlet.ParameterSetName) { 'PSObjectSoap' { $SoapEnvelope | Get-SoapXmlNamespacePrefix -Soap; break; } 'PSObjectSchema' { $SoapEnvelope | Get-SoapXmlNamespacePrefix -Schema; break; } 'PSObjectInstance' { $SoapEnvelope | Get-SoapXmlNamespacePrefix -SchemaInstance; break; } 'PropertiesSoap' { $XmlNamespaceManager.LookupNamespace('http://www.w3.org/2003/05/soap-envelope'); break; } 'PropertiesSchema' { $XmlNamespaceManager.LookupNamespace('http://www.w3.org/2001/XMLSchema'); break; } default { $XmlNamespaceManager.LookupNamespace('http://www.w3.org/2001/XMLSchema-instance'); break; } } } } Function Add-SoapBodyElement { <# .SYNOPSIS Add body to SOAP envelope. .DESCRIPTION Returns the XML name prefix for a SOAP namespace. .OUTPUTS System.Xml.XmlElement[]. Elements imported into the SOAP body. .LINK New-SoapEnvelope .LINK Get-SoapBodyElement .LINK Get-SoapXmlNamespacePrefix #> [CmdletBinding(DefaultParameterSetName = 'Properties')] [OutputType([System.Xml.XmlElement[]])] Param( [Parameter(Mandatory = $true, Position = 0, ParameterSetname = 'PSObject')] [ValidateScript({ $_ | Test-SoapEnvelope })] # Object containing an XmlDocument property which contains the SOAP envelope XML. [System.Management.Automation.PSObject]$SoapEnvelope, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'Properties')] [ValidateScript({ Test-SoapEnvelope -XmlDocument $_ })] # XmlDocument which contains the SOAP envelope XML. [System.Xml.XmlDocument]$XmlDocument, [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'Properties')] [ValidateScript({ Test-SoapEnvelope -XmlNamespaceManager $_ })] # Namespace manager to use with the SOAP envelope. [System.Xml.XmlNamespaceManager]$XmlNamespaceManager, [Parameter(Mandatory = $true, Position = 1, ValueFromPipeline = $true, ParameterSetname = 'PSObject')] [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'Properties')] # Elements to add to the SOAP body. [System.Xml.XmlElement[]]$Body ) Begin { if ($PSCmdlet.ParameterSetName -eq 'PSObject') { $BodyElements = @() } } Process { if ($PSCmdlet.ParameterSetName -eq 'PSObject') { $BodyElements = $BodyElements + $Body; } else { $XPath = '/{0}:Envelope/{0}:Body' -f $XmlNamespaceManager.LookupNamespace('http://www.w3.org/2003/05/soap-envelope'); $BodyElement = $XmlDocument.SelectSingleNode($XPath, $XmlNamespaceManager); foreach ($XmlElement in $Body) { $BodyElement.AppendChild($XmlDocument.ImportNode($XmlElement)) } } } End { if ($PSCmdlet.ParameterSetName -eq 'PSObject') { $SoapEnvelope | Add-SoapBodyElement -Body $BodyElements } } } Function Get-SoapBodyElement { <# .SYNOPSIS Get elements contained within the SOAP body. .DESCRIPTION Returns the elements contained within the SOAP body. .OUTPUTS System.Xml.XmlElement[]. Elements contained within the SOAP body. .LINK New-SoapEnvelope .LINK Add-SoapBodyElement #> [CmdletBinding(DefaultParameterSetName = 'Properties')] [OutputType([System.Xml.XmlElement[]])] Param( [Parameter(Mandatory = $true, Position = 0, ParameterSetname = 'PSObject')] [ValidateScript({ $_ | Test-SoapEnvelope })] # Object containing an XmlDocument property which contains the SOAP envelope XML. [System.Management.Automation.PSObject]$SoapEnvelope, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'Properties')] [ValidateScript({ Test-SoapEnvelope -XmlDocument $_ })] # XmlDocument which contains the SOAP envelope XML. [System.Xml.XmlDocument]$XmlDocument, [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'Properties')] [ValidateScript({ Test-SoapEnvelope -XmlNamespaceManager $_ })] # Namespace manager to use with the SOAP envelope. [System.Xml.XmlNamespaceManager]$XmlNamespaceManager ) Process { if ($PSCmdlet.ParameterSetName -eq 'PSObject') { $SoapEnvelope | Get-SoapBodyElement } else { $XPath = '/{0}:Envelope/{0}:Body/*' -f $XmlNamespaceManager.LookupNamespace('http://www.w3.org/2003/05/soap-envelope'); $XmlNodeList = $XmlDocument.SelectNodes($XPath, $XmlNamespaceManager); for ($n = 0; $n -lt $XmlNodeList.Count; $n++) { $XmlNodeList.Item($n) } } } } Function New-SoapEnvelope { <# .SYNOPSIS Create new SOAP envelope object. .DESCRIPTION Creates an XmlDocument which represents a SOAP envelope. .OUTPUTS System.Xml.XmlDocument. Object which represents a SOAP envelope. .LINK Get-SoapBodyElement .LINK Add-SoapBodyElement #> [CmdletBinding()] [OutputType([System.Xml.XmlDocument])] Param( [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)] # Elements to include in the SOAP body. [System.Xml.XmlElement[]]$Body ) [Xml]$XmlDocument = @' <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body /> </soap12:Envelope> '@; $XmlNamespaceManager = New-Object -TypeName 'System.Xml.XmlNamespaceManager' -ArgumentList $SoapEnvelope.NameTable; $XmlNamespaceManager.AddNamespace('xsd', 'http://www.w3.org/2001/XMLSchema'); $XmlNamespaceManager.AddNamespace('xsi', 'http://www.w3.org/2001/XMLSchema-instance'); $XmlNamespaceManager.AddNamespace('soap12', 'http://www.w3.org/2003/05/soap-envelope'); New-Object -TypeName 'System.Management.Automation.PSObject' -Property @{ XmlDocument = $XmlDocument; XmlNamespaceManager = $XmlNamespaceManager; } }
39.93196
201
0.579056
5b0f9a470329d550eb0b54c55e7e76e1cc988cf9
781
h
C
OrangeVideo/OrangeVideo/Classes/Main/Model/Status.h
HXICoder/OrangeVideo
52d416272f3d861e49ae17f1b81bd4eb1286b5e8
[ "Apache-2.0" ]
null
null
null
OrangeVideo/OrangeVideo/Classes/Main/Model/Status.h
HXICoder/OrangeVideo
52d416272f3d861e49ae17f1b81bd4eb1286b5e8
[ "Apache-2.0" ]
null
null
null
OrangeVideo/OrangeVideo/Classes/Main/Model/Status.h
HXICoder/OrangeVideo
52d416272f3d861e49ae17f1b81bd4eb1286b5e8
[ "Apache-2.0" ]
null
null
null
// // Status.h // OrangeVideo // // Created by xing on 2017/7/19. // Copyright © 2017年 xing. All rights reserved. // #import "BaseModel.h" @interface Status : BaseModel @property (nonatomic, strong) NSString *follows; //关注 @property (nonatomic, strong) NSString *fans; //粉丝 @property (nonatomic, strong) NSString *scribe; //订阅游戏 @property (nonatomic, strong) NSString *zans; //赞数 @property (nonatomic, strong) NSString *trends; //动态 @property (nonatomic, strong) NSString *zan; @property (nonatomic, strong) NSString *play; @property (nonatomic, strong) NSString *favour; @property (nonatomic, strong) NSString *comments; @property (nonatomic, strong) NSString *share; @property (nonatomic, assign) NSInteger comment; //just for news @end
27.892857
68
0.695262
56bda2dc8fd920a9e43db368089512e4a9704bf0
2,468
go
Go
eth2/beacon/slashings/slashings.go
LeastAuthority/zrnt
da7071bfd7a4d8cfa20374ad6de5b16c6fce9a86
[ "MIT" ]
null
null
null
eth2/beacon/slashings/slashings.go
LeastAuthority/zrnt
da7071bfd7a4d8cfa20374ad6de5b16c6fce9a86
[ "MIT" ]
null
null
null
eth2/beacon/slashings/slashings.go
LeastAuthority/zrnt
da7071bfd7a4d8cfa20374ad6de5b16c6fce9a86
[ "MIT" ]
null
null
null
package slashings import ( . "github.com/protolambda/zrnt/eth2/core" "github.com/protolambda/zrnt/eth2/meta" ) type SlashingsState struct { // Balances slashed at every withdrawal period Slashings [EPOCHS_PER_SLASHINGS_VECTOR]Gwei } func (state *SlashingsState) ResetSlashings(epoch Epoch) { state.Slashings[epoch%EPOCHS_PER_SLASHINGS_VECTOR] = 0 } type SlashingsEpochProcess interface { ProcessEpochSlashings() } type SlashingFeature struct { State *SlashingsState Meta interface { meta.Versioning meta.Validators meta.Proposers meta.Balance meta.Staking meta.EffectiveBalances meta.Slashing meta.Exits } } // Slash the validator with the given index. func (f *SlashingFeature) SlashValidator(slashedIndex ValidatorIndex, whistleblowerIndex *ValidatorIndex) { slot := f.Meta.CurrentSlot() currentEpoch := slot.ToEpoch() validator := f.Meta.Validator(slashedIndex) f.Meta.InitiateValidatorExit(currentEpoch, slashedIndex) validator.Slashed = true if w := currentEpoch + EPOCHS_PER_SLASHINGS_VECTOR; w > validator.WithdrawableEpoch { validator.WithdrawableEpoch = w } f.State.Slashings[currentEpoch%EPOCHS_PER_SLASHINGS_VECTOR] += validator.EffectiveBalance f.Meta.DecreaseBalance(slashedIndex, validator.EffectiveBalance/MIN_SLASHING_PENALTY_QUOTIENT) propIndex := f.Meta.GetBeaconProposerIndex(slot) if whistleblowerIndex == nil { whistleblowerIndex = &propIndex } whistleblowerReward := validator.EffectiveBalance / WHISTLEBLOWER_REWARD_QUOTIENT proposerReward := whistleblowerReward / PROPOSER_REWARD_QUOTIENT f.Meta.IncreaseBalance(propIndex, proposerReward) f.Meta.IncreaseBalance(*whistleblowerIndex, whistleblowerReward-proposerReward) } func (f *SlashingFeature) ProcessEpochSlashings() { totalBalance := f.Meta.GetTotalStake() slashingsSum := Gwei(0) for _, s := range f.State.Slashings { slashingsSum += s } withdrawableEpoch := f.Meta.CurrentEpoch() + (EPOCHS_PER_SLASHINGS_VECTOR / 2) for _, index := range f.Meta.GetIndicesToSlash(withdrawableEpoch) { // Factored out from penalty numerator to avoid uint64 overflow penaltyNumerator := f.Meta.EffectiveBalance(index) / EFFECTIVE_BALANCE_INCREMENT if slashingsWeight := slashingsSum * 3; totalBalance < slashingsWeight { penaltyNumerator *= totalBalance } else { penaltyNumerator *= slashingsWeight } penalty := penaltyNumerator / totalBalance * EFFECTIVE_BALANCE_INCREMENT f.Meta.DecreaseBalance(index, penalty) } }
29.73494
107
0.787682
82494616000f96dec83ac572f425cf775bc2436a
40
sql
SQL
queries/delete_from_report.sql
zaidrashid/my-car-value-nestjs
6acfe0449845ef2ce4ab798a1f7c22b9d323f564
[ "MIT" ]
null
null
null
queries/delete_from_report.sql
zaidrashid/my-car-value-nestjs
6acfe0449845ef2ce4ab798a1f7c22b9d323f564
[ "MIT" ]
null
null
null
queries/delete_from_report.sql
zaidrashid/my-car-value-nestjs
6acfe0449845ef2ce4ab798a1f7c22b9d323f564
[ "MIT" ]
null
null
null
delete from report where id is not NULL;
20
21
0.8
b061b5e76b260a0c6b3e704f8e7ea207f926d6b8
5,621
html
HTML
index.html
atrotter0/stress-test
39c35ce485794cc07e3c2c55c74f4fd543e0be25
[ "MIT" ]
null
null
null
index.html
atrotter0/stress-test
39c35ce485794cc07e3c2c55c74f4fd543e0be25
[ "MIT" ]
null
null
null
index.html
atrotter0/stress-test
39c35ce485794cc07e3c2c55c74f4fd543e0be25
[ "MIT" ]
null
null
null
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link href="css/bootstrap.css" rel="stylesheet"> <link href="css/styles.css" rel="stylesheet"> <script src="js/jquery-3.3.1.js"></script> <script src="js/scripts.js"></script> <title>STRESS TEST</title> </head> <body> <div class="container"> <h1>STRESS TEST</h1> <form id="stressTest"> <div class="form-group"> <!-- warning signs --> <p>Are you experiencing any of these warning signs? (check all that apply)</p> <div class="checkbox"> <label for="warningSleep"> <input type="checkbox" name="warning" value="warningSleep" id="warningSleep"> Loss of sleep. </label> </div> <div class="checkbox"> <label for="warningOverwhelmed"> <input type="checkbox" name="warning" value="warningOverwhelmed" id="warningOverwhelmed"> Feeling overwhelmed. </label> </div> <div class="checkbox"> <label for="warningAppetite"> <input type="checkbox" name="warning" value="warningAppetite" id="warningAppetite"> Loss of appetite. </label> </div> <div class="checkbox"> <label for="warningLethargy"> <input type="checkbox" name="warning" value="warningLethargy" id="warningLethargy"> Lethargy. </label> </div> <div class="checkbox"> <label for="warningHopelessness"> <input type="checkbox" name="warning" value="warningHopelessness" id="warningHopelessness"> Hopelessness. </label> </div> <div class="checkbox"> <label for="warningKick"> <input type="checkbox" name="warning" value="warningKick" id="warningKick"> Desire to kick dogs and/or cats. </label> </div> </div> <!-- health symptoms --> <p>Are you experiencing any of these symptoms? (check all that apply)</p> <div class="checkbox"> <label for="symptomBlood"> <input type="checkbox" name="symptoms" value="symptomBlood" id="symptomBlood"> High blood pressure. </label> </div> <div class="checkbox"> <label for="symptomAnxiety"> <input type="checkbox" name="symptoms" value="symptomAnxiety" id="symptomAnxiety"> Anxiety. </label> </div> <div class="checkbox"> <label for="symptomHair"> <input type="checkbox" name="symptoms" value="symptomHair" id="symptomHair"> Hair loss. </label> </div> <div class="checkbox"> <label for="symptomWeight"> <input type="checkbox" name="symptoms" value="symptomWeight" id="symptomWeight"> Weight loss/gain. </label> </div> <div class="checkbox"> <label for="symptomBags"> <input type="checkbox" name="symptoms" value="symptomBags" id="symptomBags"> Bags under eyes. </label> </div> <div class="checkbox"> <label for="symptomStinky"> <input type="checkbox" name="symptoms" value="symptomStinky" id="symptomStinky"> Aversion to hygene. </label> </div> <div class="checkbox"> <label for="symptomPoop"> <input type="checkbox" name="symptoms" value="symptomPoop" id="symptomPoop"> Loose/impacted stool. </label> </div> <!-- coping methods --> <p>What methods of self-care do you regularly practice?</p> <div class="checkbox"> <label for="copingMeditation"> <input type="checkbox" name="coping" value="copingMeditation" id="copingMeditation"> Meditation. </label> </div> <div class="checkbox"> <label for="copingWeed"> <input type="checkbox" name="coping" value="copingWeed" id="copingWeed"> Smoke trees. </label> </div> <div class="checkbox"> <label for="copingPet"> <input type="checkbox" name="coping" value="copingPet" id="copingPet"> Pet a dog/cat. </label> </div> <div class="checkbox"> <label for="copingHeroin"> <input type="checkbox" name="coping" value="copingHeroin" id="copingHeroin"> Mainline heroin. </label> </div> <div class="checkbox"> <label for="copingTime"> <input type="checkbox" name="coping" value="copingTime" id="copingTime"> Manage your time. </label> </div> <div class="checkbox"> <label for="copingBlame"> <input type="checkbox" name="coping" value="copingBlame" id="copingBlame"> Blame others. </label> </div> <div class="checkbox"> <label for="copingIgnore"> <input type="checkbox" name="coping" value="copingIgnore" id="copingIgnore"> Stick fingers in ears and say, "<strong>LALALALALALA</strong>". </label> </div> <div class="checkbox"> <label for="copingNetflix"> <input type="checkbox" name="coping" value="copingNetflix" id="copingNetflix"> Binge watch Narcos. </label> </div> <button type="submit" class="btn btn-default btn-lg" id="submit">Submit Survey</button> <button type="reset" class="btn btn-default btn-lg" id="reset">Reset</button> </form> <div id="surveyResults"> <span id="scoreResults"></span> <div class="results-image"> </div> </div> </div> </body> </html>
35.13125
103
0.565024
4da8c54b0b8dca9514df72d11cae3c64f0823c98
45,852
sql
SQL
data/dev-database.sql
ephelsa/my-career-api
06716e8c8955229579f3a288531fadab19677c69
[ "MIT" ]
1
2020-11-21T03:56:34.000Z
2020-11-21T03:56:34.000Z
data/dev-database.sql
ephelsa/my-career-api
06716e8c8955229579f3a288531fadab19677c69
[ "MIT" ]
5
2020-11-22T02:47:34.000Z
2020-11-22T16:03:17.000Z
data/dev-database.sql
ephelsa/my-career-api
06716e8c8955229579f3a288531fadab19677c69
[ "MIT" ]
2
2020-12-18T08:58:56.000Z
2021-02-23T00:42:17.000Z
-- -- PostgreSQL database dump -- -- Dumped from database version 13.1 (Debian 13.1-1.pgdg100+1) -- Dumped by pg_dump version 13.1 (Debian 13.1-1.pgdg100+1) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_security = off; -- -- Name: pgcrypto; Type: EXTENSION; Schema: -; Owner: - -- CREATE EXTENSION IF NOT EXISTS pgcrypto WITH SCHEMA public; -- -- Name: EXTENSION pgcrypto; Type: COMMENT; Schema: -; Owner: -- COMMENT ON EXTENSION pgcrypto IS 'cryptographic functions'; -- -- Name: authenticate_user(text, text); Type: FUNCTION; Schema: public; Owner: developer -- CREATE FUNCTION public.authenticate_user(u_email text, u_pass text) RETURNS boolean LANGUAGE plpgsql AS $$ DECLARE match BOOLEAN DEFAULT FALSE; BEGIN IF (check_user_existence(u_email)) THEN -- Probably could add registry confirmation validation. SELECT (password = crypt(u_pass, password)) INTO match FROM "user" WHERE email = u_email; END IF; RETURN match; END; $$; ALTER FUNCTION public.authenticate_user(u_email text, u_pass text) OWNER TO developer; -- -- Name: check_user_existence(text); Type: FUNCTION; Schema: public; Owner: developer -- CREATE FUNCTION public.check_user_existence(u_email text) RETURNS boolean LANGUAGE plpgsql AS $$ DECLARE exists BOOLEAN DEFAULT false; BEGIN SELECT (count(email) > 0) INTO exists FROM "user" WHERE email = u_email; RETURN exists; END; $$; ALTER FUNCTION public.check_user_existence(u_email text) OWNER TO developer; -- -- Name: check_user_registry_confirmed(text); Type: FUNCTION; Schema: public; Owner: developer -- CREATE FUNCTION public.check_user_registry_confirmed(u_email text) RETURNS boolean LANGUAGE plpgsql AS $$ DECLARE confirmed BOOLEAN DEFAULT false; BEGIN SELECT COUNT(registry_confirmed) > 0 INTO confirmed FROM "user" WHERE email = u_email AND registry_confirmed = true; RETURN confirmed; END; $$; ALTER FUNCTION public.check_user_registry_confirmed(u_email text) OWNER TO developer; -- -- Name: cypher_new_user_pass(); Type: FUNCTION; Schema: public; Owner: developer -- CREATE FUNCTION public.cypher_new_user_pass() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN UPDATE "user" SET password = encrypt_user_password(NEW.password) WHERE email = NEW.email; RETURN NEW; END; $$; ALTER FUNCTION public.cypher_new_user_pass() OWNER TO developer; -- -- Name: encrypt_user_password(text); Type: FUNCTION; Schema: public; Owner: developer -- CREATE FUNCTION public.encrypt_user_password(pass text) RETURNS text LANGUAGE sql AS $$ SELECT crypt(pass, gen_salt('bf')); $$; ALTER FUNCTION public.encrypt_user_password(pass text) OWNER TO developer; -- -- Name: process_user_answer_audit(); Type: FUNCTION; Schema: public; Owner: developer -- CREATE FUNCTION public.process_user_answer_audit() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN IF (TG_OP = 'DELETE') THEN INSERT INTO log_user_answer (operation, time_stamp, email, document_type, document, question, survey, answer) SELECT 'D', now(), OLD.email, OLD.document_type, OLD.document, OLD.question, OLD.survey, OLD.answer; RETURN OLD; ELSIF (TG_OP = 'UPDATE') THEN INSERT INTO log_user_answer (operation, time_stamp, email, document_type, document, question, survey, answer) SELECT 'U', now(), NEW.email, NEW.document_type, NEW.document, NEW.question, NEW.survey, NEW.answer; RETURN NEW; ELSIF (TG_OP = 'INSERT') THEN INSERT INTO log_user_answer (operation, time_stamp, email, document_type, document, question, survey, answer) SELECT 'I', now(), NEW.email, NEW.document_type, NEW.document, NEW.question, NEW.survey, NEW.answer; RETURN NEW; END IF; RETURN NULL; -- result is ignored since this is an AFTER trigger END; $$; ALTER FUNCTION public.process_user_answer_audit() OWNER TO developer; -- -- Name: process_user_audit(); Type: FUNCTION; Schema: public; Owner: developer -- CREATE FUNCTION public.process_user_audit() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN IF (TG_OP = 'DELETE') THEN INSERT INTO log_user (operation, time_stamp, email, document_type, document, first_name, second_name, first_surname, second_surname, password, institution_name, study_level, institution_type, registry_confirmed, department_code, municipality_code, country_code) SELECT 'D', now(), OLD.email, OLD.document_type, OLD.document, OLD.first_name, OLD.second_name, OLD.first_surname, OLD.second_surname, encrypt_user_password(OLD.password), OLD.institution_name, OLD.study_level, OLD.institution_type, OLD.registry_confirmed, OLD.department_code, OLD.municipality_code, OLD.country_code; RETURN OLD; ELSIF (TG_OP = 'UPDATE') THEN INSERT INTO log_user (operation, time_stamp, email, document_type, document, first_name, second_name, first_surname, second_surname, password, institution_name, study_level, institution_type, registry_confirmed, department_code, municipality_code, country_code) SELECT 'U', now(), NEW.email, NEW.document_type, NEW.document, NEW.first_name, NEW.second_name, NEW.first_surname, NEW.second_surname, encrypt_user_password(NEW.password), NEW.institution_name, NEW.study_level, NEW.institution_type, NEW.registry_confirmed, NEW.department_code, NEW.municipality_code, NEW.country_code; RETURN NEW; ELSIF (TG_OP = 'INSERT') THEN INSERT INTO log_user (operation, time_stamp, email, document_type, document, first_name, second_name, first_surname, second_surname, password, institution_name, study_level, institution_type, registry_confirmed, department_code, municipality_code, country_code) SELECT 'I', now(), NEW.email, NEW.document_type, NEW.document, NEW.first_name, NEW.second_name, NEW.first_surname, NEW.second_surname, encrypt_user_password(NEW.password), NEW.institution_name, NEW.study_level, NEW.institution_type, NEW.registry_confirmed, NEW.department_code, NEW.municipality_code, NEW.country_code; RETURN NEW; END IF; RETURN NULL; -- result is ignored since this is an AFTER trigger END; $$; ALTER FUNCTION public.process_user_audit() OWNER TO developer; -- -- Name: retrieve_poll(integer); Type: FUNCTION; Schema: public; Owner: developer -- CREATE FUNCTION public.retrieve_poll(poll_id integer) RETURNS TABLE(survey_id integer, survey_name text, question_id integer, question text, question_type text, option_id integer, option text) LANGUAGE sql AS $$ SELECT s.id AS surve_id, s.name, q.id AS question_id, q.question, qt.type, a.id AS option_id, a.option FROM survey s INNER JOIN survey_question sq ON s.id = sq.survey_id INNER JOIN question q ON q.id = sq.question_id INNER JOIN question_type qt ON q.question_type = qt.id LEFT JOIN answer_options ao ON q.answer_options = ao.code LEFT JOIN answer_option a ON ao.answer_option = a.id WHERE s.id = poll_id AND s.active = true ORDER BY q.id, a.option; $$; ALTER FUNCTION public.retrieve_poll(poll_id integer) OWNER TO developer; -- -- Name: retrieve_survey_answers_by_user_survey(text, integer); Type: FUNCTION; Schema: public; Owner: developer -- CREATE FUNCTION public.retrieve_survey_answers_by_user_survey(u_email text, survey_id integer) RETURNS TABLE(email text, question text, answer text) LANGUAGE sql AS $$ SELECT ua.email AS email, q.question, CASE WHEN ao.option is null THEN ua.answer ELSE ao.option END answer FROM user_answer ua INNER JOIN question q ON q.id = ua.question LEFT JOIN answer_option ao ON ua.answer = ao.id::text WHERE ua.email = u_email AND ua.survey = survey_id; $$; ALTER FUNCTION public.retrieve_survey_answers_by_user_survey(u_email text, survey_id integer) OWNER TO developer; SET default_tablespace = ''; SET default_table_access_method = heap; -- -- Name: user; Type: TABLE; Schema: public; Owner: developer -- CREATE TABLE public."user" ( first_name text NOT NULL, second_name text, first_surname text NOT NULL, second_surname text NOT NULL, email text NOT NULL, password text NOT NULL, document_type character(5) NOT NULL, institution_name text NOT NULL, study_level integer NOT NULL, institution_type integer NOT NULL, registry_confirmed boolean DEFAULT false NOT NULL, department_code text NOT NULL, municipality_code text NOT NULL, country_code text, document text NOT NULL ); ALTER TABLE public."user" OWNER TO developer; -- -- Name: TABLE "user"; Type: COMMENT; Schema: public; Owner: developer -- COMMENT ON TABLE public."user" IS 'User information'; -- -- Name: update_user_pass(text, text, text); Type: FUNCTION; Schema: public; Owner: developer -- CREATE FUNCTION public.update_user_pass(u_email text, old_pass text, new_pass text) RETURNS public."user" LANGUAGE plpgsql AS $$ DECLARE u_user "user"; BEGIN IF (authenticate_user(u_email, old_pass)) THEN UPDATE "user" SET password = encrypt_user_password(new_pass) WHERE email = u_email; SELECT * INTO u_user FROM "user" WHERE email = u_email; RETURN u_user; ELSE RAISE EXCEPTION '% must be auth', u_email; END IF; END; $$; ALTER FUNCTION public.update_user_pass(u_email text, old_pass text, new_pass text) OWNER TO developer; -- -- Name: answer_option; Type: TABLE; Schema: public; Owner: developer -- CREATE TABLE public.answer_option ( id integer NOT NULL, option text NOT NULL ); ALTER TABLE public.answer_option OWNER TO developer; -- -- Name: TABLE answer_option; Type: COMMENT; Schema: public; Owner: developer -- COMMENT ON TABLE public.answer_option IS 'Option for the answer_options'; -- -- Name: answer_option_id_seq; Type: SEQUENCE; Schema: public; Owner: developer -- CREATE SEQUENCE public.answer_option_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.answer_option_id_seq OWNER TO developer; -- -- Name: answer_option_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: developer -- ALTER SEQUENCE public.answer_option_id_seq OWNED BY public.answer_option.id; -- -- Name: answer_options; Type: TABLE; Schema: public; Owner: developer -- CREATE TABLE public.answer_options ( id integer NOT NULL, code integer NOT NULL, answer_option integer ); ALTER TABLE public.answer_options OWNER TO developer; -- -- Name: TABLE answer_options; Type: COMMENT; Schema: public; Owner: developer -- COMMENT ON TABLE public.answer_options IS 'Options for the question'; -- -- Name: answer_options_id_seq; Type: SEQUENCE; Schema: public; Owner: developer -- CREATE SEQUENCE public.answer_options_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.answer_options_id_seq OWNER TO developer; -- -- Name: answer_options_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: developer -- ALTER SEQUENCE public.answer_options_id_seq OWNED BY public.answer_options.id; -- -- Name: country; Type: TABLE; Schema: public; Owner: developer -- CREATE TABLE public.country ( iso_code text NOT NULL, name text NOT NULL ); ALTER TABLE public.country OWNER TO developer; -- -- Name: department; Type: TABLE; Schema: public; Owner: developer -- CREATE TABLE public.department ( code text NOT NULL, name text NOT NULL, country_code text NOT NULL ); ALTER TABLE public.department OWNER TO developer; -- -- Name: TABLE department; Type: COMMENT; Schema: public; Owner: developer -- COMMENT ON TABLE public.department IS 'DANE departments'; -- -- Name: document_type; Type: TABLE; Schema: public; Owner: developer -- CREATE TABLE public.document_type ( id character(5) NOT NULL, value text NOT NULL ); ALTER TABLE public.document_type OWNER TO developer; -- -- Name: TABLE document_type; Type: COMMENT; Schema: public; Owner: developer -- COMMENT ON TABLE public.document_type IS 'Types of documents id'; -- -- Name: institution_type; Type: TABLE; Schema: public; Owner: developer -- CREATE TABLE public.institution_type ( id integer NOT NULL, value text NOT NULL ); ALTER TABLE public.institution_type OWNER TO developer; -- -- Name: TABLE institution_type; Type: COMMENT; Schema: public; Owner: developer -- COMMENT ON TABLE public.institution_type IS 'If a public, private or semi public entity'; -- -- Name: institution_type_id_seq; Type: SEQUENCE; Schema: public; Owner: developer -- CREATE SEQUENCE public.institution_type_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.institution_type_id_seq OWNER TO developer; -- -- Name: institution_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: developer -- ALTER SEQUENCE public.institution_type_id_seq OWNED BY public.institution_type.id; -- -- Name: log_user; Type: TABLE; Schema: public; Owner: developer -- CREATE TABLE public.log_user ( operation character(1) NOT NULL, time_stamp timestamp without time zone NOT NULL, email text, document_type character varying(5), document text, first_name text, second_name text, first_surname text, second_surname text, password text, institution_name text, study_level integer, institution_type integer, registry_confirmed boolean, department_code text, municipality_code text, country_code text ); ALTER TABLE public.log_user OWNER TO developer; -- -- Name: TABLE log_user; Type: COMMENT; Schema: public; Owner: developer -- COMMENT ON TABLE public.log_user IS 'U after an I is the same, the U is the crypt password updated after a new register'; -- -- Name: log_user_answer; Type: TABLE; Schema: public; Owner: developer -- CREATE TABLE public.log_user_answer ( email text NOT NULL, survey integer, question integer, answer text, time_stamp timestamp without time zone NOT NULL, operation character(1) NOT NULL, document_type character varying(5), document text ); ALTER TABLE public.log_user_answer OWNER TO developer; -- -- Name: municipality; Type: TABLE; Schema: public; Owner: developer -- CREATE TABLE public.municipality ( code text NOT NULL, department_code text NOT NULL, name text NOT NULL, country_code text NOT NULL ); ALTER TABLE public.municipality OWNER TO developer; -- -- Name: TABLE municipality; Type: COMMENT; Schema: public; Owner: developer -- COMMENT ON TABLE public.municipality IS 'DANE municipality'; -- -- Name: question; Type: TABLE; Schema: public; Owner: developer -- CREATE TABLE public.question ( id integer NOT NULL, question text NOT NULL, question_type integer NOT NULL, answer_options integer ); ALTER TABLE public.question OWNER TO developer; -- -- Name: TABLE question; Type: COMMENT; Schema: public; Owner: developer -- COMMENT ON TABLE public.question IS 'Questions for polls'; -- -- Name: question_id_seq; Type: SEQUENCE; Schema: public; Owner: developer -- CREATE SEQUENCE public.question_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.question_id_seq OWNER TO developer; -- -- Name: question_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: developer -- ALTER SEQUENCE public.question_id_seq OWNED BY public.question.id; -- -- Name: question_type; Type: TABLE; Schema: public; Owner: developer -- CREATE TABLE public.question_type ( id integer NOT NULL, type text NOT NULL ); ALTER TABLE public.question_type OWNER TO developer; -- -- Name: TABLE question_type; Type: COMMENT; Schema: public; Owner: developer -- COMMENT ON TABLE public.question_type IS 'Type of questions'; -- -- Name: question_type_id_seq; Type: SEQUENCE; Schema: public; Owner: developer -- CREATE SEQUENCE public.question_type_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.question_type_id_seq OWNER TO developer; -- -- Name: question_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: developer -- ALTER SEQUENCE public.question_type_id_seq OWNED BY public.question_type.id; -- -- Name: study_level; Type: TABLE; Schema: public; Owner: developer -- CREATE TABLE public.study_level ( id integer NOT NULL, value text NOT NULL ); ALTER TABLE public.study_level OWNER TO developer; -- -- Name: TABLE study_level; Type: COMMENT; Schema: public; Owner: developer -- COMMENT ON TABLE public.study_level IS 'Level of study'; -- -- Name: study_level_id_seq; Type: SEQUENCE; Schema: public; Owner: developer -- CREATE SEQUENCE public.study_level_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.study_level_id_seq OWNER TO developer; -- -- Name: study_level_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: developer -- ALTER SEQUENCE public.study_level_id_seq OWNED BY public.study_level.id; -- -- Name: survey; Type: TABLE; Schema: public; Owner: developer -- CREATE TABLE public.survey ( id integer NOT NULL, name text NOT NULL, description text, active boolean DEFAULT false NOT NULL ); ALTER TABLE public.survey OWNER TO developer; -- -- Name: TABLE survey; Type: COMMENT; Schema: public; Owner: developer -- COMMENT ON TABLE public.survey IS 'Survey information'; -- -- Name: survey_info_code_seq; Type: SEQUENCE; Schema: public; Owner: developer -- CREATE SEQUENCE public.survey_info_code_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.survey_info_code_seq OWNER TO developer; -- -- Name: survey_info_code_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: developer -- ALTER SEQUENCE public.survey_info_code_seq OWNED BY public.survey.id; -- -- Name: survey_question; Type: TABLE; Schema: public; Owner: developer -- CREATE TABLE public.survey_question ( survey_id integer NOT NULL, question_id integer NOT NULL ); ALTER TABLE public.survey_question OWNER TO developer; -- -- Name: TABLE survey_question; Type: COMMENT; Schema: public; Owner: developer -- COMMENT ON TABLE public.survey_question IS 'Intermediate table for survey and question'; -- -- Name: user_answer; Type: TABLE; Schema: public; Owner: developer -- CREATE TABLE public.user_answer ( email text NOT NULL, question integer NOT NULL, answer text, survey integer NOT NULL, document_type character varying(5) NOT NULL, document text NOT NULL ); ALTER TABLE public.user_answer OWNER TO developer; -- -- Name: TABLE user_answer; Type: COMMENT; Schema: public; Owner: developer -- COMMENT ON TABLE public.user_answer IS 'Answers for the user'; -- -- Name: COLUMN user_answer.answer; Type: COMMENT; Schema: public; Owner: developer -- COMMENT ON COLUMN public.user_answer.answer IS 'Can be an answer_option or something'; -- -- Name: answer_option id; Type: DEFAULT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.answer_option ALTER COLUMN id SET DEFAULT nextval('public.answer_option_id_seq'::regclass); -- -- Name: answer_options id; Type: DEFAULT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.answer_options ALTER COLUMN id SET DEFAULT nextval('public.answer_options_id_seq'::regclass); -- -- Name: institution_type id; Type: DEFAULT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.institution_type ALTER COLUMN id SET DEFAULT nextval('public.institution_type_id_seq'::regclass); -- -- Name: question id; Type: DEFAULT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.question ALTER COLUMN id SET DEFAULT nextval('public.question_id_seq'::regclass); -- -- Name: question_type id; Type: DEFAULT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.question_type ALTER COLUMN id SET DEFAULT nextval('public.question_type_id_seq'::regclass); -- -- Name: study_level id; Type: DEFAULT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.study_level ALTER COLUMN id SET DEFAULT nextval('public.study_level_id_seq'::regclass); -- -- Name: survey id; Type: DEFAULT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.survey ALTER COLUMN id SET DEFAULT nextval('public.survey_info_code_seq'::regclass); -- -- Data for Name: answer_option; Type: TABLE DATA; Schema: public; Owner: developer -- COPY public.answer_option (id, option) FROM stdin; 1 Ingeniería de sistemas 2 Ingeniería mecánica 3 1 4 2 5 3 6 4 7 5 8 Sí 9 No 10 Ingeniería electrónica 11 Bioingeniería 12 Indufácil 13 Ingeniería eléctrica 14 Tal vez \. -- -- Data for Name: answer_options; Type: TABLE DATA; Schema: public; Owner: developer -- COPY public.answer_options (id, code, answer_option) FROM stdin; 1 1 8 2 1 9 3 2 3 4 2 4 5 2 5 6 2 6 7 2 7 8 3 1 9 3 2 10 3 10 11 3 11 12 3 12 13 3 13 14 1 14 \. -- -- Data for Name: country; Type: TABLE DATA; Schema: public; Owner: developer -- COPY public.country (iso_code, name) FROM stdin; CO COLOMBIA \. -- -- Data for Name: department; Type: TABLE DATA; Schema: public; Owner: developer -- COPY public.department (code, name, country_code) FROM stdin; 70 SUCRE CO 05 ANTIOQUIA CO \. -- -- Data for Name: document_type; Type: TABLE DATA; Schema: public; Owner: developer -- COPY public.document_type (id, value) FROM stdin; CC Cédula de Ciudadanía TI Tarjeta de identidad CE Cédula de Extranjería \. -- -- Data for Name: institution_type; Type: TABLE DATA; Schema: public; Owner: developer -- COPY public.institution_type (id, value) FROM stdin; 1 Pública 2 Privada 3 Semi-privada \. -- -- Data for Name: log_user; Type: TABLE DATA; Schema: public; Owner: developer -- COPY public.log_user (operation, time_stamp, email, document_type, document, first_name, second_name, first_surname, second_surname, password, institution_name, study_level, institution_type, registry_confirmed, department_code, municipality_code, country_code) FROM stdin; I 2020-11-21 06:59:04.228874 xephelsax@gmail.com CC 1037656066 Leonardo \N Perez Castilla $2a$06$QKJMdh8TVNf89g4yCWK2Q.pdeuZlyIbhHSICkh.BOiEv4LCeMW4gu Liceo Panamericano Campestre 4 2 f 70 001 CO U 2020-11-21 06:59:04.228874 xephelsax@gmail.com CC 1037656066 Leonardo \N Perez Castilla $2a$06$hfFCyJADUolN/DJ/ZrTStOSd0fingiNVl3h8P8vMhX5wzwFfxrTi. Liceo Panamericano Campestre 4 2 f 70 001 CO D 2020-11-21 07:03:50.21651 xephelsax@gmail.com CC 1037656066 Leonardo \N Perez Castilla $2a$06$fQyf1ZOT2kcDKHlw/iJ6KeSAZG/IMmxmLQDd.NDo3Fy8Jffo09QVW Liceo Panamericano Campestre 4 2 f 70 001 CO I 2020-11-21 07:04:20.245328 xephelsax@gmail.com CC 1037656066 Leonardo \N Perez Castilla $2a$06$qvCYBatFBEFTD60QZJi0u.NPTLCtV2MaJyTxqx5os89PF2TS0ahEm Liceo Panamericano Campestre 4 2 f 70 001 CO U 2020-11-21 07:04:20.245328 xephelsax@gmail.com CC 1037656066 Leonardo \N Perez Castilla $2a$06$JkB68Ho1QOWcnG40aTlPRee0k4Bk72.Vq/IUMhj9ljxqexWkuq94u Liceo Panamericano Campestre 4 2 f 70 001 CO D 2020-11-21 08:24:38.180446 xephelsax@gmail.com CC 1037656066 Leonardo \N Perez Castilla $2a$06$NT7hn1.jtFcIipP3VDu/6.oVL1QWC0VoWqSJz0RxJYyePhbKUEFUO Liceo Panamericano Campestre 4 2 f 70 001 CO I 2020-11-21 08:24:40.067754 xephelsax@gmail.com CC 1037656066 Leonardo Andres Perez Castilla $2a$06$vPXxhY3o385XkBGUQC2Iv.iBdabS9VGCbSOnfliYgeEKNl0ygV9ge Liceo Panamericano Campestre 4 2 f 70 001 CO U 2020-11-21 08:24:40.067754 xephelsax@gmail.com CC 1037656066 Leonardo Andres Perez Castilla $2a$06$yqUQ0/3WtbM4Jbx4Y.OMYOmXqjJ01MSjmDj4H5sKVhXTCCg7p5dd. Liceo Panamericano Campestre 4 2 f 70 001 CO D 2020-11-21 08:24:52.370495 xephelsax@gmail.com CC 1037656066 Leonardo Andres Perez Castilla $2a$06$LrmKGiSX8doJs7ld20YCd.RipfkSs5dUc3QkrwPKi8VwjBA5v2SDW Liceo Panamericano Campestre 4 2 f 70 001 CO I 2020-11-21 08:25:34.92914 xephelsax@gmail.com CC 1037656066 Leonardo Andres Perez Castilla $2a$06$MY2Q6xhcMeX67D5ok5xs9uwSEs/vJQUJlaot39wguCd0BFw/auj0u Liceo Panamericano Campestre 4 2 f 70 001 CO U 2020-11-21 08:25:34.92914 xephelsax@gmail.com CC 1037656066 Leonardo Andres Perez Castilla $2a$06$3sJ9ZiwZu8z3iRsBIKcGJei20w0PAVRzq3mE7WLsx2OIsWabUmbyu Liceo Panamericano Campestre 4 2 f 70 001 CO D 2020-11-21 08:26:01.781104 xephelsax@gmail.com CC 1037656066 Leonardo Andres Perez Castilla $2a$06$.FsbuItieQkoJCKsabpnFupJaenLnDwgf4Q0cW7iqwH4kFgXyzSjG Liceo Panamericano Campestre 4 2 f 70 001 CO I 2020-11-21 08:26:03.491667 xephelsax@gmail.com CC 1037656066 Leonardo Andres Perez Castilla $2a$06$g7IVO0dBP/KPGAfoFHrQPOMSyXuqPW5mmtPNVNR6YB190CfQDrk.e Liceo Panamericano Campestre 4 2 f 70 001 CO U 2020-11-21 08:26:03.491667 xephelsax@gmail.com CC 1037656066 Leonardo Andres Perez Castilla $2a$06$xJDA5EWSixI1Cjrv4.sO4uwNJcBWMwQYSz1k6UArKh0KCBudPOEZq Liceo Panamericano Campestre 4 2 f 70 001 CO D 2020-11-22 00:45:43.748477 xephelsax@gmail.com CC 1037656066 Leonardo Andres Perez Castilla $2a$06$0yfn/okdVjwrQGEm013yKOmLOLgviXWQIB52gc.wk7OlNyd3br3iO Liceo Panamericano Campestre 4 2 f 70 001 CO I 2020-11-22 00:45:45.338048 xephelsax@gmail.com CC 1037656066 Leonardo Andres Perez Castilla $2a$06$vyjke/8rwpN0fl9Iwews1upTfHLaM4FAQeZaAau1Dw7lPSxyMgFES Liceo Panamericano Campestre 4 2 f 70 001 CO U 2020-11-22 00:45:45.338048 xephelsax@gmail.com CC 1037656066 Leonardo Andres Perez Castilla $2a$06$EAIjDQqQuhPW3EsIdF3ObOYJxwxTbHtizQtK5xLkG37hLipgR80pm Liceo Panamericano Campestre 4 2 f 70 001 CO U 2020-11-22 05:20:22.266248 xephelsax@gmail.com CC 1037656066 Leonardo Andres Perez Castilla $2a$06$L9P/gEOn7F1h26PHZslHme2w8wW93f/k253vToS8ucBSuLJsW9fPa Liceo Panamericano Campestre 4 2 t 70 001 CO I 2020-11-23 05:39:52.919289 landres.perez@gmail.com CC 23123 Leonardo Andres Perez Castilla $2a$06$HgZYoWqtbJhT52GYb3f4c.hVfbC0.RLJr.eNzT0WEQHyZ8q/iDFbe Liceo Panamericano Campestre 4 2 f 70 001 CO U 2020-11-23 05:39:52.919289 landres.perez@gmail.com CC 23123 Leonardo Andres Perez Castilla $2a$06$FOvLwASzgXdoYQ7/jODuMe54MIG0p8eaDi.MmVHZgtQbgRDumPKBK Liceo Panamericano Campestre 4 2 f 70 001 CO I 2020-11-24 07:03:06.798534 ephelsa@hotmail.com CC 1037656066 Leonardo Pérez Castilla $2a$06$4CeSbR489tXye4D2.WKxWeeoAob8o4XYWxA1P7no7Ubo0VTUifFN2 Liceo Panamericano Campestre 4 2 f 70 001 CO U 2020-11-24 07:03:06.798534 ephelsa@hotmail.com CC 1037656066 Leonardo Pérez Castilla $2a$06$zlvbIsnyLmfLaVcGtbNMx.Gqqr2iKUy2Zin11ZyAHWOlo2cVOwYDe Liceo Panamericano Campestre 4 2 f 70 001 CO U 2020-11-24 07:09:23.612914 ephelsa@hotmail.com CC 1037656066 Leonardo Pérez Castilla $2a$06$zkdlY7bPWoIJIxdQIVI.WuX4kW0P6utl9fKZa6OESPaIjvYig0fGG Liceo Panamericano Campestre 4 2 t 70 001 CO \. -- -- Data for Name: log_user_answer; Type: TABLE DATA; Schema: public; Owner: developer -- COPY public.log_user_answer (email, survey, question, answer, time_stamp, operation, document_type, document) FROM stdin; xephelsax@gmail.com 1 1 8 2020-12-03 05:33:52.141387 I CC 1037656066 xephelsax@gmail.com 1 1 xephelsax@gmail.com 2020-12-03 05:56:09.201606 U CC 1037656066 xephelsax@gmail.com 1 1 8 2020-12-03 05:56:18.894657 U CC 1037656066 xephelsax@gmail.com 1 2 8 2020-12-03 05:57:26.075741 I CC 1037656066 xephelsax@gmail.com 1 2 9 2020-12-03 05:57:34.2466 U CC 1037656066 xephelsax@gmail.com 1 1 8 2020-12-03 06:08:31.499158 U CC 1037656066 xephelsax@gmail.com 1 1 8 2020-12-03 06:08:33.423087 U CC 1037656066 xephelsax@gmail.com 1 1 8 2020-12-03 06:08:33.924898 U CC 1037656066 xephelsax@gmail.com 1 1 8 2020-12-03 06:08:34.160088 U CC 1037656066 xephelsax@gmail.com 1 1 8 2020-12-03 06:17:06.432437 U CC 1037656066 xephelsax@gmail.com 1 1 8 2020-12-03 06:17:08.065597 U CC 1037656066 xephelsax@gmail.com 1 1 8 2020-12-03 06:17:08.747803 U CC 1037656066 xephelsax@gmail.com 1 1 8 2020-12-03 06:17:09.420431 U CC 1037656066 xephelsax@gmail.com 1 1 8 2020-12-03 06:17:10.095956 U CC 1037656066 xephelsax@gmail.com 1 2 1 2020-12-03 06:22:22.374415 U CC 1037656066 xephelsax@gmail.com 1 1 8 2020-12-03 06:22:52.670989 U CC 1037656066 xephelsax@gmail.com 1 1 Something 2020-12-03 06:23:03.239079 U CC 1037656066 xephelsax@gmail.com 1 1 9 2020-12-03 06:23:10.783856 U CC 1037656066 xephelsax@gmail.com 1 1 9 2020-12-03 06:23:46.354626 U CC 1037656066 xephelsax@gmail.com 1 1 9 2020-12-03 06:24:42.984976 U CC 1037656066 xephelsax@gmail.com 1 1 9 2020-12-03 06:28:15.981238 U CC 1037656066 xephelsax@gmail.com 1 1 9 2020-12-03 06:28:19.328196 U CC 1037656066 xephelsax@gmail.com 1 1 9 2020-12-03 14:19:23.143758 D CC 1037656066 xephelsax@gmail.com 1 2 1 2020-12-03 14:19:23.143758 D CC 1037656066 xephelsax@gmail.com 1 1 9 2020-12-03 14:19:26.556914 I CC 1037656066 xephelsax@gmail.com 1 5 Liceo Campestre 2020-12-03 14:19:55.874435 I CC 1037656066 xephelsax@gmail.com 1 5 Liceo Panamericano Campestre 2020-12-03 14:20:11.576963 U CC 1037656066 xephelsax@gmail.com 1 5 Liceo Campestre 2020-12-03 14:20:30.205594 U CC 1037656066 xephelsax@gmail.com 1 5 Liceo Panamericano Campestre 2020-12-03 14:20:41.858486 U CC 1037656066 \. -- -- Data for Name: municipality; Type: TABLE DATA; Schema: public; Owner: developer -- COPY public.municipality (code, department_code, name, country_code) FROM stdin; 110 70 BUENAVISTA CO 124 70 CAIMITO CO 204 70 COLOSO CO 215 70 COROZAL CO 221 70 COVEÑAS CO 230 70 CHALAN CO 233 70 EL ROBLE CO 235 70 GALERAS CO 265 70 GUARANDA CO 400 70 LA UNION CO 418 70 LOS PALMITOS CO 429 70 MAJAGUAL CO 473 70 MORROA CO 508 70 OVEJAS CO 523 70 PALMITO CO 670 70 SAMPUES CO 678 70 SAN BENITO ABAD CO 702 70 SAN JUAN DE BETULIA CO 708 70 SAN MARCOS CO 713 70 SAN ONOFRE CO 717 70 SAN PEDRO CO 742 70 SAN LUIS DE SINCE CO 771 70 SUCRE CO 820 70 SANTIAGO DE TOLU CO 823 70 TOLU VIEJO CO 001 70 SINCELEJO CO 001 05 MEDELLIN CO 002 05 ABEJORRAL CO 004 05 ABRIAQUI CO 021 05 ALEJANDRIA CO 030 05 AMAGA CO 031 05 AMALFI CO 034 05 ANDES CO 036 05 ANGELOPOLIS CO 038 05 ANGOSTURA CO 040 05 ANORI CO 042 05 SANTAFE DE ANTIOQUIA CO 044 05 ANZA CO 045 05 APARTADO CO 051 05 ARBOLETES CO 055 05 ARGELIA CO 059 05 ARMENIA CO 079 05 BARBOSA CO 086 05 BELMIRA CO 088 05 BELLO CO 091 05 BETANIA CO 093 05 BETULIA CO 101 05 CIUDAD BOLIVAR CO 107 05 BRICEÑO CO 113 05 BURITICA CO 120 05 CACERES CO 125 05 CAICEDO CO 129 05 CALDAS CO 134 05 CAMPAMENTO CO 138 05 CAÑASGORDAS CO 142 05 CARACOLI CO 145 05 CARAMANTA CO 147 05 CAREPA CO 148 05 EL CARMEN DE VIBORAL CO 150 05 CAROLINA CO 154 05 CAUCASIA CO 172 05 CHIGORODO CO 190 05 CISNEROS CO 197 05 COCORNA CO 206 05 CONCEPCION CO 209 05 CONCORDIA CO 212 05 COPACABANA CO 234 05 DABEIBA CO 237 05 DON MATIAS CO 240 05 EBEJICO CO 250 05 EL BAGRE CO 264 05 ENTRERRIOS CO 266 05 ENVIGADO CO 282 05 FREDONIA CO 284 05 FRONTINO CO 306 05 GIRALDO CO 308 05 GIRARDOTA CO 310 05 GOMEZ PLATA CO 313 05 GRANADA CO 315 05 GUADALUPE CO 318 05 GUARNE CO 321 05 GUATAPE CO 347 05 HELICONIA CO 353 05 HISPANIA CO 360 05 ITAGUI CO 361 05 ITUANGO CO 364 05 JARDIN CO 368 05 JERICO CO 376 05 LA CEJA CO 380 05 LA ESTRELLA CO 390 05 LA PINTADA CO 400 05 LA UNION CO 411 05 LIBORINA CO 425 05 MACEO CO 440 05 MARINILLA CO 467 05 MONTEBELLO CO 475 05 MURINDO CO 480 05 MUTATA CO 483 05 NARIÑO CO 490 05 NECOCLI CO 495 05 NECHI CO 501 05 OLAYA CO 541 05 PEÐOL CO 543 05 PEQUE CO 576 05 PUEBLORRICO CO 579 05 PUERTO BERRIO CO 585 05 PUERTO NARE CO 591 05 PUERTO TRIUNFO CO 604 05 REMEDIOS CO 607 05 RETIRO CO 615 05 RIONEGRO CO 628 05 SABANALARGA CO 631 05 SABANETA CO 642 05 SALGAR CO 647 05 SAN ANDRES DE CUERQUIA CO 649 05 SAN CARLOS CO 652 05 SAN FRANCISCO CO 656 05 SAN JERONIMO CO 658 05 SAN JOSE DE LA MONTAÑA CO 659 05 SAN JUAN DE URABA CO 660 05 SAN LUIS CO 664 05 SAN PEDRO CO 665 05 SAN PEDRO DE URABA CO 667 05 SAN RAFAEL CO 670 05 SAN ROQUE CO 674 05 SAN VICENTE CO 679 05 SANTA BARBARA CO 686 05 SANTA ROSA DE OSOS CO 690 05 SANTO DOMINGO CO 697 05 EL SANTUARIO CO 736 05 SEGOVIA CO 756 05 SONSON CO 761 05 SOPETRAN CO 789 05 TAMESIS CO 790 05 TARAZA CO 792 05 TARSO CO 809 05 TITIRIBI CO 819 05 TOLEDO CO 837 05 TURBO CO 842 05 URAMITA CO 847 05 URRAO CO 854 05 VALDIVIA CO 856 05 VALPARAISO CO 858 05 VEGACHI CO 861 05 VENECIA CO 873 05 VIGIA DEL FUERTE CO 885 05 YALI CO 887 05 YARUMAL CO 890 05 YOLOMBO CO 893 05 YONDO CO 895 05 ZARAGOZA CO \. -- -- Data for Name: question; Type: TABLE DATA; Schema: public; Owner: developer -- COPY public.question (id, question, question_type, answer_options) FROM stdin; 1 ¿Te gusta el queso? 1 1 2 ¿Te gusta la patilla? 1 1 3 ¿Qué tanto te gusta leer? 1 2 5 Institución donde estudias 2 \N 6 ¿Qué carrera estudias? 1 3 \. -- -- Data for Name: question_type; Type: TABLE DATA; Schema: public; Owner: developer -- COPY public.question_type (id, type) FROM stdin; 1 select 2 text \. -- -- Data for Name: study_level; Type: TABLE DATA; Schema: public; Owner: developer -- COPY public.study_level (id, value) FROM stdin; 1 Bachiller 2 Técnico 3 Tecnólogo 4 Universitario 5 Primaria 6 Posgrado \. -- -- Data for Name: survey; Type: TABLE DATA; Schema: public; Owner: developer -- COPY public.survey (id, name, description, active) FROM stdin; 1 Perfilamiento de prueba Esta es una simple pruebita t 2 Otro questionario \N f \. -- -- Data for Name: survey_question; Type: TABLE DATA; Schema: public; Owner: developer -- COPY public.survey_question (survey_id, question_id) FROM stdin; 1 1 1 2 2 3 2 1 1 5 1 6 \. -- -- Data for Name: user; Type: TABLE DATA; Schema: public; Owner: developer -- COPY public."user" (first_name, second_name, first_surname, second_surname, email, password, document_type, institution_name, study_level, institution_type, registry_confirmed, department_code, municipality_code, country_code, document) FROM stdin; Leonardo Andres Perez Castilla xephelsax@gmail.com $2a$06$Ya0biuVS63LTX4XQ0qABruXfLQ5NWo4ksOw6kD139b6rzcN5L9vYK CC Liceo Panamericano Campestre 4 2 t 70 001 CO 1037656066 Leonardo Andres Perez Castilla landres.perez@gmail.com $2a$06$.shV05nG810Eqx2pv4fI1.7VBZEqBxQr59/b.0/xN/ECbfPzZ43By CC Liceo Panamericano Campestre 4 2 f 70 001 CO 23123 Leonardo Pérez Castilla ephelsa@hotmail.com $2a$06$Ng88bxzLnKixb8nxX7Gg4.QblbDw2H7UEF2I6kjAu3hd8KZjJ18US CC Liceo Panamericano Campestre 4 2 t 70 001 CO 1037656066 \. -- -- Data for Name: user_answer; Type: TABLE DATA; Schema: public; Owner: developer -- COPY public.user_answer (email, question, answer, survey, document_type, document) FROM stdin; xephelsax@gmail.com 1 9 1 CC 1037656066 xephelsax@gmail.com 5 Liceo Panamericano Campestre 1 CC 1037656066 \. -- -- Name: answer_option_id_seq; Type: SEQUENCE SET; Schema: public; Owner: developer -- SELECT pg_catalog.setval('public.answer_option_id_seq', 14, true); -- -- Name: answer_options_id_seq; Type: SEQUENCE SET; Schema: public; Owner: developer -- SELECT pg_catalog.setval('public.answer_options_id_seq', 14, true); -- -- Name: institution_type_id_seq; Type: SEQUENCE SET; Schema: public; Owner: developer -- SELECT pg_catalog.setval('public.institution_type_id_seq', 3, true); -- -- Name: question_id_seq; Type: SEQUENCE SET; Schema: public; Owner: developer -- SELECT pg_catalog.setval('public.question_id_seq', 6, true); -- -- Name: question_type_id_seq; Type: SEQUENCE SET; Schema: public; Owner: developer -- SELECT pg_catalog.setval('public.question_type_id_seq', 2, true); -- -- Name: study_level_id_seq; Type: SEQUENCE SET; Schema: public; Owner: developer -- SELECT pg_catalog.setval('public.study_level_id_seq', 6, true); -- -- Name: survey_info_code_seq; Type: SEQUENCE SET; Schema: public; Owner: developer -- SELECT pg_catalog.setval('public.survey_info_code_seq', 2, true); -- -- Name: answer_option answer_option_pk; Type: CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.answer_option ADD CONSTRAINT answer_option_pk PRIMARY KEY (id); -- -- Name: answer_options answer_options_pk; Type: CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.answer_options ADD CONSTRAINT answer_options_pk PRIMARY KEY (id); -- -- Name: country country_pk; Type: CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.country ADD CONSTRAINT country_pk PRIMARY KEY (iso_code); -- -- Name: department department_pk; Type: CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.department ADD CONSTRAINT department_pk PRIMARY KEY (country_code, code); -- -- Name: document_type document_type_pk; Type: CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.document_type ADD CONSTRAINT document_type_pk PRIMARY KEY (id); -- -- Name: institution_type institution_type_pk; Type: CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.institution_type ADD CONSTRAINT institution_type_pk PRIMARY KEY (id); -- -- Name: municipality municipality_pk; Type: CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.municipality ADD CONSTRAINT municipality_pk PRIMARY KEY (country_code, department_code, code); -- -- Name: question question_pk; Type: CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.question ADD CONSTRAINT question_pk PRIMARY KEY (id); -- -- Name: question_type question_type_pk; Type: CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.question_type ADD CONSTRAINT question_type_pk PRIMARY KEY (id); -- -- Name: study_level study_level_pk; Type: CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.study_level ADD CONSTRAINT study_level_pk PRIMARY KEY (id); -- -- Name: survey survey_info_pk; Type: CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.survey ADD CONSTRAINT survey_info_pk PRIMARY KEY (id); -- -- Name: survey_question survey_question_pk; Type: CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.survey_question ADD CONSTRAINT survey_question_pk PRIMARY KEY (question_id, survey_id); -- -- Name: user_answer user_answer_pk; Type: CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.user_answer ADD CONSTRAINT user_answer_pk PRIMARY KEY (email, document_type, document, survey, question); -- -- Name: user user_pk; Type: CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public."user" ADD CONSTRAINT user_pk PRIMARY KEY (email, document, document_type); -- -- Name: answer_option_option_uindex; Type: INDEX; Schema: public; Owner: developer -- CREATE UNIQUE INDEX answer_option_option_uindex ON public.answer_option USING btree (option); -- -- Name: department_code_uindex; Type: INDEX; Schema: public; Owner: developer -- CREATE UNIQUE INDEX department_code_uindex ON public.department USING btree (code); -- -- Name: document_type_id_uindex; Type: INDEX; Schema: public; Owner: developer -- CREATE UNIQUE INDEX document_type_id_uindex ON public.document_type USING btree (id); -- -- Name: question_type_type_uindex; Type: INDEX; Schema: public; Owner: developer -- CREATE UNIQUE INDEX question_type_type_uindex ON public.question_type USING btree (type); -- -- Name: user_email_uindex; Type: INDEX; Schema: public; Owner: developer -- CREATE UNIQUE INDEX user_email_uindex ON public."user" USING btree (email); -- -- Name: user log_user; Type: TRIGGER; Schema: public; Owner: developer -- CREATE TRIGGER log_user AFTER INSERT OR DELETE OR UPDATE ON public."user" FOR EACH ROW EXECUTE FUNCTION public.process_user_audit(); -- -- Name: user_answer log_user_answer; Type: TRIGGER; Schema: public; Owner: developer -- CREATE TRIGGER log_user_answer AFTER INSERT OR DELETE OR UPDATE ON public.user_answer FOR EACH ROW EXECUTE FUNCTION public.process_user_answer_audit(); -- -- Name: user new_user; Type: TRIGGER; Schema: public; Owner: developer -- CREATE TRIGGER new_user AFTER INSERT ON public."user" FOR EACH ROW EXECUTE FUNCTION public.cypher_new_user_pass(); -- -- Name: answer_options answer_options_answer_option_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.answer_options ADD CONSTRAINT answer_options_answer_option_id_fk FOREIGN KEY (answer_option) REFERENCES public.answer_option(id); -- -- Name: department department_country_code_fk; Type: FK CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.department ADD CONSTRAINT department_country_code_fk FOREIGN KEY (country_code) REFERENCES public.country(iso_code); -- -- Name: log_user_answer log_user_answer_user_email_document_document_type_fk; Type: FK CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.log_user_answer ADD CONSTRAINT log_user_answer_user_email_document_document_type_fk FOREIGN KEY (email, document, document_type) REFERENCES public."user"(email, document, document_type); -- -- Name: log_user log_user_institution_type_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.log_user ADD CONSTRAINT log_user_institution_type_id_fk FOREIGN KEY (institution_type) REFERENCES public.institution_type(id); -- -- Name: log_user log_user_municipality_code_country_code_department_code_fk; Type: FK CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.log_user ADD CONSTRAINT log_user_municipality_code_country_code_department_code_fk FOREIGN KEY (municipality_code, country_code, department_code) REFERENCES public.municipality(code, country_code, department_code); -- -- Name: log_user log_user_study_level_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.log_user ADD CONSTRAINT log_user_study_level_id_fk FOREIGN KEY (study_level) REFERENCES public.study_level(id); -- -- Name: municipality municipality_department_code_country_code_fk; Type: FK CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.municipality ADD CONSTRAINT municipality_department_code_country_code_fk FOREIGN KEY (department_code, country_code) REFERENCES public.department(code, country_code); -- -- Name: question question_question_type_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.question ADD CONSTRAINT question_question_type_id_fk FOREIGN KEY (question_type) REFERENCES public.question_type(id); -- -- Name: survey_question survey_question_question_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.survey_question ADD CONSTRAINT survey_question_question_id_fk FOREIGN KEY (question_id) REFERENCES public.question(id); -- -- Name: survey_question survey_question_survey_info_code_fk; Type: FK CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.survey_question ADD CONSTRAINT survey_question_survey_info_code_fk FOREIGN KEY (survey_id) REFERENCES public.survey(id); -- -- Name: user_answer user_answer_survey_question_question_id_survey_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.user_answer ADD CONSTRAINT user_answer_survey_question_question_id_survey_id_fk FOREIGN KEY (question, survey) REFERENCES public.survey_question(question_id, survey_id); -- -- Name: user_answer user_answer_user_document_type_document_email_fk; Type: FK CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public.user_answer ADD CONSTRAINT user_answer_user_document_type_document_email_fk FOREIGN KEY (document_type, document, email) REFERENCES public."user"(document_type, document, email); -- -- Name: user user_document_type_fk; Type: FK CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public."user" ADD CONSTRAINT user_document_type_fk FOREIGN KEY (document_type) REFERENCES public.document_type(id); -- -- Name: user user_institution_type_fk; Type: FK CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public."user" ADD CONSTRAINT user_institution_type_fk FOREIGN KEY (institution_type) REFERENCES public.institution_type(id); -- -- Name: user user_municipality_code_country_code_department_code_fk; Type: FK CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public."user" ADD CONSTRAINT user_municipality_code_country_code_department_code_fk FOREIGN KEY (municipality_code, country_code, department_code) REFERENCES public.municipality(code, country_code, department_code); -- -- Name: user user_study_level_fk; Type: FK CONSTRAINT; Schema: public; Owner: developer -- ALTER TABLE ONLY public."user" ADD CONSTRAINT user_study_level_fk FOREIGN KEY (study_level) REFERENCES public.study_level(id); -- -- PostgreSQL database dump complete --
28.461825
273
0.745376
0d0b3bb6d710ac9eb8c4e4c0aae51e0daa93342a
10,298
lua
Lua
MMOCoreORB/bin/scripts/object/custom_content/tangible/loot/misc/objects.lua
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
18
2017-02-09T15:36:05.000Z
2021-12-21T04:22:15.000Z
MMOCoreORB/bin/scripts/object/custom_content/tangible/loot/misc/objects.lua
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
61
2016-12-30T21:51:10.000Z
2021-12-10T20:25:56.000Z
MMOCoreORB/bin/scripts/object/custom_content/tangible/loot/misc/objects.lua
V-Fib/FlurryClone
40e0ca7245ec31b3815eb6459329fd9e70f88936
[ "Zlib", "OpenSSL" ]
71
2017-01-01T05:34:38.000Z
2022-03-29T01:04:00.000Z
object_tangible_loot_misc_shared_axkva_token = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_axkva_token.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_axkva_token, "object/tangible/loot/misc/shared_axkva_token.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_black_sun_token = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_black_sun_token.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_black_sun_token, "object/tangible/loot/misc/shared_black_sun_token.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_buddy_level_holocron = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_buddy_level_holocron.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_buddy_level_holocron, "object/tangible/loot/misc/shared_buddy_level_holocron.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_echo_base_token = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_echo_base_token.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_echo_base_token, "object/tangible/loot/misc/shared_echo_base_token.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_exar_token = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_exar_token.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_exar_token, "object/tangible/loot/misc/shared_exar_token.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_frn_all_painting_efol_11_s01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_frn_all_painting_efol_11_s01.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_frn_all_painting_efol_11_s01, "object/tangible/loot/misc/shared_frn_all_painting_efol_11_s01.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_frn_all_painting_efol_11_s02 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_frn_all_painting_efol_11_s02.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_frn_all_painting_efol_11_s02, "object/tangible/loot/misc/shared_frn_all_painting_efol_11_s02.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_frn_all_painting_efol_11_s03 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_frn_all_painting_efol_11_s03.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_frn_all_painting_efol_11_s03, "object/tangible/loot/misc/shared_frn_all_painting_efol_11_s03.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_frn_all_painting_efol_11_s04 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_frn_all_painting_efol_11_s04.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_frn_all_painting_efol_11_s04, "object/tangible/loot/misc/shared_frn_all_painting_efol_11_s04.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_frn_all_painting_efol_11_s05 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_frn_all_painting_efol_11_s05.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_frn_all_painting_efol_11_s05, "object/tangible/loot/misc/shared_frn_all_painting_efol_11_s05.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_heroic_exar_kun_torture_table = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_heroic_exar_kun_torture_table.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_heroic_exar_kun_torture_table, "object/tangible/loot/misc/shared_heroic_exar_kun_torture_table.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_heroic_token_box = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_heroic_token_box.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_heroic_token_box, "object/tangible/loot/misc/shared_heroic_token_box.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_ig88_token = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_ig88_token.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_ig88_token, "object/tangible/loot/misc/shared_ig88_token.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_item_esb_destroyer_painting = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_item_esb_destroyer_painting.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_item_esb_destroyer_painting, "object/tangible/loot/misc/shared_item_esb_destroyer_painting.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_item_esb_firespray_painting = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_item_esb_firespray_painting.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_item_esb_firespray_painting, "object/tangible/loot/misc/shared_item_esb_firespray_painting.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_item_esb_xwing_painting = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_item_esb_xwing_painting.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_item_esb_xwing_painting, "object/tangible/loot/misc/shared_item_esb_xwing_painting.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_kashyyyk_cave_plant = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_kashyyyk_cave_plant.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_kashyyyk_cave_plant, "object/tangible/loot/misc/shared_kashyyyk_cave_plant.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_marauder_token = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_marauder_token.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_marauder_token, "object/tangible/loot/misc/shared_marauder_token.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_massiff_poodoo = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_massiff_poodoo.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_massiff_poodoo, "object/tangible/loot/misc/shared_massiff_poodoo.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_portable_fryer_non_container = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_portable_fryer_non_container.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_portable_fryer_non_container, "object/tangible/loot/misc/shared_portable_fryer_non_container.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_trader_experimentation_buff = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_trader_experimentation_buff.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_trader_experimentation_buff, "object/tangible/loot/misc/shared_trader_experimentation_buff.iff") ------------------------------------------------------------------------------------------------------------------------------------ object_tangible_loot_misc_shared_tusken_token = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/misc/shared_tusken_token.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_misc_shared_tusken_token, "object/tangible/loot/misc/shared_tusken_token.iff") ------------------------------------------------------------------------------------------------------------------------------------
58.180791
167
0.636823
25a91191bc8f9defcaeda96afe54aedf0ddf70a4
438
kt
Kotlin
picture_library/src/main/java/com/luck/picture/lib/listener/OnQueryDataResultListener.kt
MoustafaShahin/InsGallery
6cc5ff6a5c86c491a852304c58ce979ed42d6225
[ "Apache-2.0" ]
null
null
null
picture_library/src/main/java/com/luck/picture/lib/listener/OnQueryDataResultListener.kt
MoustafaShahin/InsGallery
6cc5ff6a5c86c491a852304c58ce979ed42d6225
[ "Apache-2.0" ]
null
null
null
picture_library/src/main/java/com/luck/picture/lib/listener/OnQueryDataResultListener.kt
MoustafaShahin/InsGallery
6cc5ff6a5c86c491a852304c58ce979ed42d6225
[ "Apache-2.0" ]
null
null
null
package com.luck.picture.lib.listener /** * @author:luck * @date:2020-04-16 12:42 * @describe:OnQueryMediaResultListener */ interface OnQueryDataResultListener<T> { /** * Query to complete The callback listener * * @param data The data source * @param currentPage The page number * @param isHasMore Is there more */ fun onComplete(data: List<T>?, currentPage: Int, isHasMore: Boolean) }
25.764706
72
0.659817
fbe7572c86b1eb946c1de814dea9247a5f93dea9
717
java
Java
mdsp-transaction/mdsp-transaction-message/src/main/java/com/yhcoo/tsc/msg/api/MdspMessageApi.java
fucora/mdsp
4e6489c3e00228adf7e2d6a19ad2250847f03b4d
[ "Apache-2.0" ]
6
2019-05-10T15:48:23.000Z
2020-09-17T02:17:40.000Z
mdsp-transaction/mdsp-transaction-message/src/main/java/com/yhcoo/tsc/msg/api/MdspMessageApi.java
yhcoo/mdsp-boot
b60073a6419be92f6883f63258185be91668864e
[ "Apache-2.0" ]
null
null
null
mdsp-transaction/mdsp-transaction-message/src/main/java/com/yhcoo/tsc/msg/api/MdspMessageApi.java
yhcoo/mdsp-boot
b60073a6419be92f6883f63258185be91668864e
[ "Apache-2.0" ]
7
2019-05-07T06:39:13.000Z
2022-01-12T08:30:52.000Z
package com.yhcoo.tsc.msg.api; import com.yhcoo.tsc.msg.dto.MessageLogDto; import org.springframework.web.bind.annotation.*; public interface MdspMessageApi { @PostMapping("message/saveMessageWaitingConfirm") String saveMessageWaitingConfirm(@RequestBody MessageLogDto messageLogDto); @PostMapping("message/confirmAndSendMessage/{messageId}") boolean confirmAndSendMessage(@PathVariable("messageId") String messageId); @PostMapping("message/consumerSuccess/{messageId}") boolean consumerSuccess(@PathVariable("messageId") String messageId); @RequestMapping("message/reSendMessageByMessageId") boolean reSendMessageByMessageId(@RequestParam("messageId") String messageId); }
29.875
82
0.788006
2f7954932d19b40a7dc0075890f8caca6ce6d822
3,980
swift
Swift
Common/Extensions/Double-Extension.swift
adrianapaulaborges/Nightscouter
1fe90e2cbda1a64a0b1557bb3876b1c4142a5d26
[ "MIT" ]
1
2020-02-03T08:46:36.000Z
2020-02-03T08:46:36.000Z
Common/Extensions/Double-Extension.swift
adrianapaulaborges/Nightscouter
1fe90e2cbda1a64a0b1557bb3876b1c4142a5d26
[ "MIT" ]
null
null
null
Common/Extensions/Double-Extension.swift
adrianapaulaborges/Nightscouter
1fe90e2cbda1a64a0b1557bb3876b1c4142a5d26
[ "MIT" ]
null
null
null
// // ApplicationExtensions.swift // Nightscout // // Created by Peter Ina on 5/18/15. // Copyright (c) 2015 Peter Ina. All rights reserved. // import Foundation public extension Range { public var randomInt: Int { get { var offset = 0 if (lowerBound as! Int) < 0 // allow negative ranges { offset = abs(lowerBound as! Int) } let mini = UInt32(lowerBound as! Int + offset) let maxi = UInt32(upperBound as! Int + offset) return Int(mini + arc4random_uniform(maxi - mini)) - offset } } } public extension MgdlValue { public var toMmol: Double { get{ return (self / 18) } } public var toMgdl: Double { get{ return floor(self * 18) } } internal var mgdlFormatter: NumberFormatter { let numberFormat = NumberFormatter() numberFormat.numberStyle = .none return numberFormat } public var formattedForMgdl: String { if let reserved = ReservedValues(mgdl: self) { return reserved.description } return self.mgdlFormatter.string(from: NSNumber(value: self))! } internal var mmolFormatter: NumberFormatter { let numberFormat = NumberFormatter() numberFormat.numberStyle = .decimal numberFormat.minimumFractionDigits = 1 numberFormat.maximumFractionDigits = 1 numberFormat.secondaryGroupingSize = 1 return numberFormat } public var formattedForMmol: String { if let reserved = ReservedValues(mgdl: self) { return reserved.description } return self.mmolFormatter.string(from: NSNumber(value: self.toMmol))! } } public extension MgdlValue { internal var bgDeltaFormatter: NumberFormatter { let numberFormat = NumberFormatter() numberFormat.numberStyle = .decimal numberFormat.positivePrefix = numberFormat.plusSign numberFormat.negativePrefix = numberFormat.minusSign return numberFormat } public func formattedBGDelta(forUnits units: GlucoseUnit, appendString: String? = nil) -> String { var formattedNumber: String = "" switch units { case .mmol: let numberFormat = bgDeltaFormatter numberFormat.minimumFractionDigits = 1 numberFormat.maximumFractionDigits = 1 numberFormat.secondaryGroupingSize = 1 formattedNumber = numberFormat.string(from: NSNumber(value: self)) ?? "?" case .mgdl: formattedNumber = self.bgDeltaFormatter.string(from: NSNumber(value: self)) ?? "?" } var unitMarker: String = units.rawValue if let appendString = appendString { unitMarker = appendString } return formattedNumber + " " + unitMarker } public var formattedForBGDelta: String { return self.bgDeltaFormatter.string(from: NSNumber(value: self))! } } public extension Double { var isInteger: Bool { return rint(self) == self } } public extension Double { public mutating func millisecondsToSecondsTimeInterval() -> TimeInterval { let milliseconds = self/1000 let rounded = milliseconds.rounded(.toNearestOrAwayFromZero) return rounded } public var inThePast: TimeInterval { return -self } public mutating func toDateUsingMilliseconds() -> Date { let date = Date(timeIntervalSince1970:millisecondsToSecondsTimeInterval()) return date } } public extension TimeInterval { public var millisecond: Double { return self*1000 } } extension Int { var msToSeconds: Double { return Double(self) / 1000 } }
26.357616
102
0.599497
3aa9bfb76f6f96342c1bcb4fa904a74638940a0c
2,558
kt
Kotlin
src/commonMain/kotlin/generated/gen-attributes.kt
mpetuska/kotlinx.html
e208c14f43fbd7fcbd6e4ffbd2a3d99cfe17863f
[ "Apache-2.0" ]
null
null
null
src/commonMain/kotlin/generated/gen-attributes.kt
mpetuska/kotlinx.html
e208c14f43fbd7fcbd6e4ffbd2a3d99cfe17863f
[ "Apache-2.0" ]
null
null
null
src/commonMain/kotlin/generated/gen-attributes.kt
mpetuska/kotlinx.html
e208c14f43fbd7fcbd6e4ffbd2a3d99cfe17863f
[ "Apache-2.0" ]
null
null
null
package kotlinx.html import kotlinx.html.attributes.* /******************************************************************************* DO NOT EDIT This file was generated by module generate *******************************************************************************/ internal val attributeStringString: Attribute<String> = StringAttribute() internal val attributeSetStringStringSet: Attribute<Set<String>> = StringSetAttribute() internal val attributeBooleanBoolean: Attribute<Boolean> = BooleanAttribute() internal val attributeBooleanBooleanOnOff: Attribute<Boolean> = BooleanAttribute("on", "off") internal val attributeBooleanTicker: Attribute<Boolean> = TickerAttribute() internal val attributeButtonFormEncTypeEnumButtonFormEncTypeValues: Attribute<ButtonFormEncType> = EnumAttribute(buttonFormEncTypeValues) internal val attributeButtonFormMethodEnumButtonFormMethodValues: Attribute<ButtonFormMethod> = EnumAttribute(buttonFormMethodValues) internal val attributeButtonTypeEnumButtonTypeValues: Attribute<ButtonType> = EnumAttribute(buttonTypeValues) internal val attributeCommandTypeEnumCommandTypeValues: Attribute<CommandType> = EnumAttribute(commandTypeValues) internal val attributeDirEnumDirValues: Attribute<Dir> = EnumAttribute(dirValues) internal val attributeDraggableEnumDraggableValues: Attribute<Draggable> = EnumAttribute(draggableValues) internal val attributeFormEncTypeEnumFormEncTypeValues: Attribute<FormEncType> = EnumAttribute(formEncTypeValues) internal val attributeFormMethodEnumFormMethodValues: Attribute<FormMethod> = EnumAttribute(formMethodValues) internal val attributeIframeSandboxEnumIframeSandboxValues: Attribute<IframeSandbox> = EnumAttribute(iframeSandboxValues) internal val attributeInputFormEncTypeEnumInputFormEncTypeValues: Attribute<InputFormEncType> = EnumAttribute(inputFormEncTypeValues) internal val attributeInputFormMethodEnumInputFormMethodValues: Attribute<InputFormMethod> = EnumAttribute(inputFormMethodValues) internal val attributeInputTypeEnumInputTypeValues: Attribute<InputType> = EnumAttribute(inputTypeValues) internal val attributeKeyGenKeyTypeEnumKeyGenKeyTypeValues: Attribute<KeyGenKeyType> = EnumAttribute(keyGenKeyTypeValues) internal val attributeRunAtEnumRunAtValues: Attribute<RunAt> = EnumAttribute(runAtValues) internal val attributeTextAreaWrapEnumTextAreaWrapValues: Attribute<TextAreaWrap> = EnumAttribute(textAreaWrapValues) internal val attributeThScopeEnumThScopeValues: Attribute<ThScope> = EnumAttribute(thScopeValues)
44.103448
117
0.808444
6b4c826760c439a7896fee654d3da294cc65d395
680
asm
Assembly
oeis/235/A235988.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/235/A235988.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/235/A235988.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A235988: Sum of the partition parts of 3n into 3 parts. ; Submitted by Jamie Morken(s2) ; 3,18,63,144,285,486,777,1152,1647,2250,3003,3888,4953,6174,7605,9216,11067,13122,15447,18000,20853,23958,27393,31104,35175,39546,44307,49392,54897,60750,67053,73728,80883,88434,96495,104976,113997,123462,133497,144000,155103,166698,178923,191664,205065,219006,233637,248832,264747,281250,298503,316368,335013,354294,374385,395136,416727,439002,462147,486000,510753,536238,562653,589824,617955,646866,676767,707472,739197,771750,805353,839808,875343,911754,949275,987696,1027257,1067742,1109397 add $0,1 mov $2,$0 pow $0,2 mul $0,3 add $0,1 div $0,2 mul $2,6 mul $0,$2 div $0,12 mul $0,3
45.333333
495
0.783824