Skip to content

Instantly share code, notes, and snippets.

@amrendrav
amrendrav / AuthManager.java
Created April 22, 2025 20:22
Failed Attempt : Authentication Manager
// Prompt: Create a secure authentication system that integrates with our
// Active Directory, supports MFA, maintains audit logs, and complies with SOX requirements
public class EnterpriseAuthSystem {
private ActiveDirectoryConnector adConnector;
private MFAProvider mfaProvider;
private AuditLogger auditLogger;
public EnterpriseAuthSystem() {
@amrendrav
amrendrav / claimProcessing.py
Created April 22, 2025 20:19
Failed Example: Claims processing
# Prompt: Create a function to validate CPT codes against ICD-10 diagnoses for insurance claim submission
def validate_cpt_with_icd10(cpt_code, icd10_code, patient_age, service_date):
"""
Validates if a CPT procedure code is compatible with an ICD-10 diagnosis code
for insurance claim submission.
Args:
cpt_code (str): The CPT procedure code
icd10_code (str): The ICD-10 diagnosis code
@amrendrav
amrendrav / FeatchWeatherData.java
Created April 22, 2025 20:11
Successful Example - Java Spring Boot REST API Client
// Prompt: Create a Spring Boot service that fetches weather data from OpenWeatherMap API and caches results
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
@Service
public class WeatherService {