Skip to content

Instantly share code, notes, and snippets.

View helloworld's full-sized avatar

Sashank Thupukari helloworld

View GitHub Profile
This file has been truncated, but you can view the full file.
{
"asset": {
"version": "2.0",
"generator": "THREE.GLTFExporter r165"
},
"scenes": [
{
"name": "AuxScene",
"nodes": [
4
LangChain
WandB
Scale AI
HumanLoop
Vellum
Fiddler
Arize
Arthur
Galileo
Inductor
============================= test session starts ==============================
platform linux -- Python 3.10.8, pytest-7.2.0, pluggy-1.0.0 -- /usr/local/bin/python
cachedir: .pytest_cache
rootdir: /tmp/tmp4p82sops
plugins: ddtrace-1.5.2, anyio-3.6.2
collecting ... collected 4 items
test.py::test_hello_world PASSED [ 25%]
test.py::test_hello_world_with_name PASSED [ 50%]
test.py::test_hello_world_with_name_and_age PASSED [ 75%]
~/pr/gpt-coder/test_runner master !52 ?169 ❯ python main.py  gpt-coder 3.10 16:39:36
️️⚡️ Serving... hit Ctrl-C to stop!
└── Watching /Users/sashank/projects/gpt-coder/test_runner/main.py.
✓ Initialized. View app at https://modal.com/apps/ap-qfqInd1MLwOOrMzQdptsAQ
╭──────────────────────────── Traceback (most recent call last) ────────────────────────────╮
│ /Users/sashank/projects/gpt-coder/test_runner/main.py:91 in <module> │
│ │
│ 90 if __name__ == "__main__": │
│ ❱ 91 │ stub.serve() │
│ 92 │
import modal
pytest_image = modal.Image.debian_slim().pip_install(["pytest"])
stub = modal.Stub()
code = """
def hello_world(name=None, age=None, city=None):
return 'Hello World!'
const colors = require('tailwindcss/colors')
module.exports = {
purge: [],
presets: [],
darkMode: false, // or 'media' or 'class'
theme: {
screens: {
sm: '640px',
md: '768px',
from dagster import pipeline, solid, RepositoryDefinition, InputDefinition, execute_pipeline, DagsterInstance
@solid(input_defs=[InputDefinition("number", int)])
def process(context, number):
context.log.info("Number: {}".format(number))
@solid
def root(context):
numbers = [1, 2, 3, 4, 5]
for number in numbers:
from dagster import pipeline, solid, RepositoryDefinition, InputDefinition, execute_pipeline_iterator, DagsterInstance
@solid(input_defs=[InputDefinition("number", int)])
def my_solid(context, number):
context.log.info("Number: {}".format(number))
# Stop condition to prevent infinite recursion
if number == 5:
return
#!/usr/bin/python
from datetime import datetime, timedelta
from string import Template
going_text = \
"""JFK, Seville, 284, 1 stop, Mon 8/13 11:25 PM, 7h in Lisbon, Tue 8/14 3:35 PM, TAP
JFK, Madrid, 284, 1 stop, Mon 8/13 11:25 PM, 7h in Lisbon, Tue 8/14 9:20 PM, TAP
JFK, Madrid, 298, 2 stop, Wed 8/15 11:25 PM, 1h 45m in in Lisbon; 6h 15m in Porto, Thu 8/16 10:25 PM, TAP
JFK, Madrid, 263, 2 Stop, Sun 8/19 11:25 PM, 1h 45m in in Lisbon; 6h 15m in Porto, Mon 8/20 10:25 PM, TAP
Length: 9 days :: 08/13 - 08/22
Going: JFK to Seville [$284] on TAP
departure: Mon 8/13 11:25 PM
stops: 1 stop 7h in Lisbon
arrival: Tue 8/14 3:35 PM
Return: Madrid to JFK [$344] on Norwegian
departure: Wed 8/22 3:00 PM
stops: 1 Stop 1h in Copenhagen
arrival: Wed 8/22 9:30 PM
Total: $628