This file contains 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
from llama_index.core import ( | |
Settings, | |
SimpleDirectoryReader, | |
StorageContext, | |
VectorStoreIndex, | |
) | |
from llama_index.legacy.vector_stores import Neo4jVectorStore | |
from llama_index.llms.ollama import Ollama | |
Settings.llm = Ollama( |
This file contains 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 logging | |
from datetime import datetime | |
from github import GitHubIntegration | |
class GitHubCheckHandler(logging.handler): | |
""" | |
A logging handler that sends messages to GitHub as a Check. | |
""" |
This file contains 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.0.0 | |
paths: | |
/account/approve_registers: | |
post: | |
responses: | |
"200": | |
description: approve accounts successful | |
"400": | |
description: approve accounts have some fails | |
summary: get account infomation from database |
This file contains 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
plugins { | |
// The gradle-release plugin is designed to work similar to the Maven release plugin. (https://github.com/researchgate/gradle-release) | |
id 'net.researchgate.release' version '3.0.2' | |
} |
This file contains 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
plugins { | |
// Applies security defined for a repository in Maven's settings.xml file to MavenRepository elements in a Gradle build - both upload and download. (https://plugins.gradle.org/plugin/org.hibernate.build.maven-repo-auth) | |
id "org.hibernate.build.maven-repo-auth" version "3.0.4" | |
} |
This file contains 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
<settings> | |
<servers> | |
<server> | |
<id>repo-for-snapshots</id> | |
<username>ming</username> | |
<password>{ABCDEFGHIJKLMNOP=}</password> | |
</server> | |
<server> | |
<id>repo-for-releases</id> | |
<username>ming</username> |
This file contains 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
publishing { | |
publications { | |
// Defines a publication that sends the compiled Java component to Maven. | |
maven(MavenPublication) { from(components.java) } | |
} | |
repositories { | |
maven { | |
def type = version.endsWith('SNAPSHOT') ? 'snapshots' : 'releases' | |
name = "repo-for-${type}" | |
url = "https://example.com/repositories/${type}/" |
This file contains 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
<distributionManagement> | |
<snapshotRepository> | |
<id>repo-for-snapshots</id> | |
<name>Repository for Snapshots</name> | |
<url>https://example.com/repositories/snapshots/</url> | |
</snapshotRepository> | |
<repository> | |
<id>repo-for-releases</id> | |
<name>Repository for Releases</name> | |
<url>https://example.com/repositories/releases/</url> |
This file contains 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
plugins { | |
id 'org.hidetake.swagger.generator' version '2.19.2' | |
} | |
dependencies { | |
// https://github.com/int128/gradle-swagger-generator-plugin#code-generation | |
swaggerCodegen 'io.swagger.codegen.v3:swagger-codegen-cli:3.0.35' | |
} | |
swaggerSources { | |
// We name this API "petstore". | |
petstore { |
This file contains 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
<plugin> | |
<groupId>io.swagger</groupId> | |
<artifactId>swagger-codegen-maven-plugin</artifactId> | |
<version>2.3.1</version> | |
<executions> | |
<execution> | |
<!-- We name this API "petstore". --> | |
<id>petstore</id> | |
<goals> | |
<goal>generate</goal> |
NewerOlder