|
Download mc/mc-0032.jsonl from winapiadmin/tinycodinglm: direct link, hf CLI and curl.
- Browser
- Download file 1.88 kB
-
https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/main/mc/mc-0032.jsonl
- Command line
-
hf download hf://datasets/winapiadmin/tinycodinglm/mc/mc-0032.jsonl
-
curl -L -o mc-0032.jsonl https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/main/mc/mc-0032.jsonl
1.88 kB
| {"type": "session", "harness": "deepseek-harness", "id": "mc-0032", "name": "React Native components"} | |
| {"type": "message", "message": {"role": "system", "content": "You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies."}} | |
| {"type": "message", "message": {"role": "user", "content": "How do I build a React Native app?"}} | |
| {"type": "message", "message": {"role": "assistant", "content": "```jsx\nimport React, { useState, useEffect } from 'react';\nimport { View, Text, FlatList, TouchableOpacity, StyleSheet, ActivityIndicator } from 'react-native';\n\nconst App = () => {\n const [items, setItems] = useState([]);\n const [loading, setLoading] = useState(true);\n\n useEffect(() => {\n fetch('https://api.example.com/items')\n .then(res => res.json())\n .then(data => { setItems(data); setLoading(false); });\n }, []);\n\n const renderItem = ({ item }) => (\n <TouchableOpacity style={styles.item} onPress={() => alert(item.name)}>\n <Text style={styles.title}>{item.name}</Text>\n <Text>{item.description}</Text>\n </TouchableOpacity>\n );\n\n if (loading) return <ActivityIndicator size=\"large\" />;\n\n return (\n <View style={styles.container}>\n <FlatList\n data={items}\n renderItem={renderItem}\n keyExtractor={item => item.id.toString()}\n />\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: { flex: 1, padding: 20 },\n item: { padding: 15, borderBottomWidth: 1, borderBottomColor: '#ccc' },\n title: { fontSize: 18, fontWeight: 'bold' },\n});\n```"}} | |