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
| { | |
| "openapi": "3.1.0", | |
| "info": { | |
| "title": "Anthropic API", | |
| "version": "138" | |
| }, | |
| "paths": { | |
| "/v1/messages": { | |
| "post": { | |
| "summary": "Create a Message", |
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
| { | |
| "type": "object", | |
| "properties": { | |
| "command": { | |
| "type": "string", | |
| "description": "The command to execute" | |
| }, | |
| "timeout": { | |
| "type": "number", | |
| "description": "Optional timeout in milliseconds (max 600000)" |
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
| #!/usr/bin/env python3 | |
| """ | |
| Test script to verify if token counting works with code_execution_20250522 tool. | |
| This answers Brad's question: "Does token counting not work with code_execution_20250522?" | |
| According to the docs: | |
| - Token counting: https://docs.anthropic.com/en/docs/build-with-claude/token-counting | |
| - Code execution tool: https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/code-execution-tool | |
| """ |
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
| { | |
| "$schema": "https://json-schema.org/draft/2020-12/schema", | |
| "type": "object", | |
| "properties": { | |
| "street": { "type": "string" }, | |
| "city": { "type": "string" } | |
| }, | |
| "required": ["street", "city"] | |
| } |
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
| [JsonProperty("visibility_policies")] | |
| public List<LinkVisibility> VisibilityPolicies { get; set; } | |
| [JsonProperty("audience_options")] | |
| public List<AudienceOption> AudienceOptions { get; set; } | |
| [JsonIgnore] | |
| public bool IsRighteousLink => AudienceOptions != null; | |
| /* |
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
| void UnitConverter::RestoreUserPreferences(const wstring& userPreferences) | |
| { | |
| if (userPreferences.empty()) | |
| { | |
| return; | |
| } | |
| vector<wstring> outerTokens = StringToVector(userPreferences, L"|"); | |
| if (outerTokens.size() == 3) | |
| { |
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
| [472] ./~/redux-logger/lib/index.js 8.49 kB {0} [built] | |
| [473] ./src/containers/LectureContainer/LectureContainer.js 4.32 kB {0} [built] | |
| [474] ./src/containers/LectureContainer/LectureActions.js 376 bytes {0} [built] | |
| [475] ./src/components/Lecture/Lectures.js 3.37 kB {0} [built] | |
| [476] ./src/components/Lecture/Lecture.js 3.6 kB {0} [built] | |
| [477] ./src/components/Lecture/Lecture.css 937 bytes {0} [built] [1 error] | |
| [479] ./~/style-loader/addStyles.js 7.21 kB {0} [built] | |
| [480] ./~/react-select/lib/Select.js 30.5 kB {0} [built] | |
| [481] ./~/react-select/~/react-input-autosize/lib/AutosizeInput.js 4.67 kB {0} [built] | |
| [482] ./~/react-select/~/classnames/index.js 1.1 kB {0} [built] |
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
| import java.io.BufferedInputStream; | |
| import java.io.BufferedOutputStream; | |
| import java.io.PrintWriter; | |
| import java.util.Scanner; | |
| public class DBlocks { | |
| public static void main(String[] args) { | |
| final Scanner scanner = new Scanner(new BufferedInputStream(System.in)); | |
| final PrintWriter writer = new PrintWriter(new BufferedOutputStream(System.out)); |
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
| import java.io.BufferedInputStream; | |
| import java.io.BufferedOutputStream; | |
| import java.io.PrintWriter; | |
| import java.util.*; | |
| // UVa 10765 - Doves and bombs | |
| public class Main { | |
| public static void main(String[] args) { | |
| final Scanner scanner = new Scanner(new BufferedInputStream(System.in)); |
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
| import java.io.BufferedInputStream; | |
| import java.io.BufferedOutputStream; | |
| import java.io.PrintWriter; | |
| import java.util.Scanner; | |
| /* | |
| UVa 1232 - SKYLINE | |
| https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=3673 | |
| https://uva.onlinejudge.org/external/12/1232.pdf | |
| */ |
NewerOlder