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.util.*; | |
| /** | |
| * US7680791B2特許の最適化完全実装: Adaptive Quicksort (AQS) v2 | |
| * | |
| * 特許の3つの核心技術を完全実装 + 追加最適化: | |
| * 1. Common Prefix Skipping Quicksort (CPS-QS) | |
| * 2. Key Substring Caching (2バイト + 拡張オプション) | |
| * 3. Adaptive Quicksort (Quicksort ↔ Radix Sort 相互再帰) | |
| * |
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 module java.desktop; | |
| void main() { | |
| var f = new JFrame("Javaランチャー"); | |
| f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | |
| f.setSize(800, 600); | |
| f.setLocationRelativeTo(null); | |
| var split = new JSplitPane(JSplitPane.VERTICAL_SPLIT); | |
| var taSource = new JTextArea(); |
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
| package kis; | |
| import module java.desktop; | |
| import module java.base; | |
| import java.net.http.HttpClient; | |
| import java.util.List; | |
| import com.fasterxml.jackson.annotation.JsonIgnore; | |
| import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
| import com.fasterxml.jackson.annotation.JsonProperty; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 dev.langchain4j.agent.tool.Tool; | |
| import dev.langchain4j.http.client.jdk.JdkHttpClient; | |
| import dev.langchain4j.memory.chat.MessageWindowChatMemory; | |
| import dev.langchain4j.model.openai.OpenAiStreamingChatModel; | |
| import dev.langchain4j.service.AiServices; | |
| import dev.langchain4j.service.TokenStream; | |
| import module java.desktop; | |
| import java.net.http.HttpClient; | |
| import java.time.LocalTime; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 gradio as gr | |
| from PIL import Image | |
| import threading | |
| import requests | |
| from transformers import AutoModelForCausalLM, AutoProcessor, set_seed, TextIteratorStreamer, BitsAndBytesConfig | |
| # Define model path | |
| model_path = "sbintuitions/sarashina2.2-vision-3b" | |
| # Load model and processor |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder