This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfscript> | |
| // ============================================================================ | |
| // OVHAI - Fraud Detection | |
| // ============================================================================ | |
| // System Prompt v3.0 | |
| variables.constant.ovhai.fraud_detection.system_prompt = "Eres un sistema de detección de fraude para TodoColección, un marketplace español de objetos de colección. | |
| Tu tarea es clasificar mensajes entre compradores y vendedores como: | |
| - 0 = Legítimo (conversación normal de compraventa) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfscript> | |
| /** | |
| * BoxLang StructSort Comparison Contract Violation - Reproduction Case | |
| * | |
| * This reproduces the error: | |
| * "Comparison method violates its general contract! java.lang.IllegalArgumentException" | |
| * | |
| * Issue occurs when sorting a struct with nested structs containing timestamp fields | |
| * while simulating concurrent access patterns (like ColdBox cache operations). | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfscript> | |
| var newPass = UrlEncodedFormat(Encrypt(ToBase64(1), "dSlkA9fCh2", "AES")); | |
| writeOuput(newPass); | |
| </cfscript> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfscript> | |
| test = function() { | |
| var certs, specs = []; | |
| var payPeriods = {} | |
| return { | |
| "certs": certs, | |
| "specs": specs, | |
| "payPeriods": payPeriods | |
| }; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfscript> | |
| test = function() { | |
| var certs = []; | |
| var payPeriods = {} | |
| return { | |
| "certs": certs, | |
| "specs": specs, | |
| "payPeriods": payPeriods | |
| }; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfscript> | |
| xx(); | |
| xx({}); | |
| xx({f=33}); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfoutput> | |
| #encrypt( | |
| "password123", | |
| "12345678901234567890123456789012", | |
| "AES/CBC/PKCS5Padding", | |
| "Base64", | |
| "1234567890123456" | |
| )# | |
| </cfoutput> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfscript> | |
| writeDump( server.boxlang ); | |
| writeDump( ParseDateTime( GetHTTPTimeString( Now() ) ) ) | |
| </cfscript> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfscript> | |
| getRanges = function() { | |
| var ranges = [30, 60, 90, 180]; | |
| var today = dateFormat(now(), "mm/dd/yyyy"); | |
| return ranges.map((r) => { | |
| var start = dateFormat(dateAdd("d", -(r-1), today), "mm/dd/yyyy"); | |
| return { | |
| "range_display": "Last #r# Days", | |
| "key": -#r#, | |
| "start_date": start, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfscript> | |
| getRanges = function() { | |
| var ranges = [30, 60, 90, 180]; | |
| var today = dateFormat(now(), "mm/dd/yyyy"); | |
| return ranges.map((r) => { | |
| var start = dateFormat(dateAdd("d", -(r-1), today), "mm/dd/yyyy"); | |
| return { | |
| "range_display": "Last #r# Days", | |
| "key": -#r#, | |
| "start_date": start, |
NewerOlder