main.pyStatic analysis
1 """Entry point for the PySonar2 code intelligence demo.""" 2 3 from pysonar_demo import DemoApp 4 5 6 def run_demo(): 7 app = DemoApp("Prediction Lab") 8 markets = [ 9 { 10 "question": "Will Python remain the most popular AI language?", 11 "yes_price": 0.72, 12 "volume": 125000, 13 }, 14 { 15 "question": "Will a static analyzer find this reference?", 16 "yes_price": 0.91, 17 "volume": 42000, 18 }, 19 { 20 "question": "Will type inference improve developer tools?", 21 "yes_price": 0.64, 22 "volume": 88000, 23 }, 24 ] 25 26 report = app.build_report(markets) 27 print(report.title) 28 for prediction in report.predictions: 29 print(prediction.summary()) 30 return report 31 32 33 REPORT = run_demo()