-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c553eef
commit d8010ce
Showing
40 changed files
with
615 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"model": "gpt4", # mandatory | ||
"prompt_type": "m2", # mandatory, data only, code, code+library | ||
"data_constraints_can_be_checked": "na", | ||
"executable_data_constraints": "np", # mandatory only for M2/M3 | ||
"number_of_options_in_the_generators": "10", # optional | ||
"cultural_alignment": "4", # mandatory overall subjective assessment with expertise | ||
"cultural_alignment_quantitative": "4/10=0.4", # optional | ||
"executes": "no", # mandatory | ||
"contains_true_generator":"no", # for m1/m2 should not simply configure the library https://gist.github.com/monperrus/744141e76501643c5970e1df0cfa00e4 | ||
"comments":"Not bad." # optional | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
星龙 | ||
雪石 | ||
雨影 | ||
雪狼 | ||
夜露 | ||
水石 | ||
月剑 | ||
霜露 | ||
雪剑 | ||
水凤 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
了解,我将为你创建一个简单的武林外传风格的角色名生成器。 | ||
|
||
首先,我们可以考虑武林外传中的命名特点,结合武侠文化中的常见元素和词汇来生成。为了简化过程,我会创建一个固定的前缀和后缀列表,然后从这两个列表中随机组合来生成角色名。 | ||
|
||
以下是一个简单的Java代码来完成这个任务: | ||
|
||
```java | ||
import java.util.Random; | ||
|
||
public class WuxiaNameGenerator { | ||
|
||
private static final String[] PREFIXES = { | ||
"风", "雨", "云", "霜", "雪", "月", "夜", "星", "山", "水" | ||
}; | ||
|
||
private static final String[] SUFFIXES = { | ||
"剑", "影", "鹰", "狼", "龙", "凤", "花", "叶", "露", "石" | ||
}; | ||
|
||
private Random random = new Random(); | ||
|
||
public String generateName() { | ||
String prefix = PREFIXES[random.nextInt(PREFIXES.length)]; | ||
String suffix = SUFFIXES[random.nextInt(SUFFIXES.length)]; | ||
return prefix + suffix; | ||
} | ||
|
||
public static void main(String[] args) { | ||
WuxiaNameGenerator generator = new WuxiaNameGenerator(); | ||
for (int i = 0; i < 10; i++) { | ||
System.out.println(generator.generateName()); | ||
} | ||
} | ||
} | ||
``` | ||
|
||
运行上面的代码,你可以得到10个武侠风格的角色名。每次运行的结果可能会有所不同,因为它是随机生成的。 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
扮演一名经验丰富的软件开发人员,你的任务是为电视节目生成一个伪造风格的生成器,并且不使用任何相关的lib。我会输入我希望你使用的编程语言和生成目标。 | ||
编程语言:Java | ||
电视剧:武林外传 | ||
生成目标:请为武林外传这部电视剧生成十个合适的角色名。 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"model": "gpt4", # mandatory | ||
"prompt_type": "m2", # mandatory, data only, code, code+library | ||
"data_constraints_can_be_checked": "na", | ||
"executable_data_constraints": "np", # mandatory only for M2/M3 | ||
"number_of_options_in_the_generators": "10", # optional | ||
"cultural_alignment": "5", # mandatory overall subjective assessment with expertise | ||
"cultural_alignment_quantitative": "10/10=1", # optional | ||
"executes": "no", # mandatory | ||
"contains_true_generator":"no", # for m1/m2 should not simply configure the library https://gist.github.com/monperrus/744141e76501643c5970e1df0cfa00e4 | ||
"comments":"Perfect!" # optional | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
金霞馆 | ||
银泉院 | ||
翠霞堂 | ||
银庭轩 | ||
银月寺 | ||
兰星院 | ||
菊星堂 | ||
梅风舍 | ||
菊月斋 | ||
凤庭轩 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
好的,我可以帮你编写一个简单的基于Java的武林外传风格的建筑名称生成器。考虑到“武林外传”是一个古装喜剧,我们可以结合一些古代的元素和修饰词来制作这个生成器。 | ||
|
||
以下是一个简单的代码示例: | ||
|
||
```java | ||
import java.util.Random; | ||
|
||
public class BuildingNameGenerator { | ||
private static final String[] PREFIXES = { | ||
"翠", "玉", "金", "银", "龙", "凤", "梅", "兰", "竹", "菊" | ||
}; | ||
|
||
private static final String[] MIDDLES = { | ||
"泉", "峰", "庭", "梦", "霞", "雨", "风", "月", "星", "云" | ||
}; | ||
|
||
private static final String[] SUFFIXES = { | ||
"楼", "阁", "院", "舍", "馆", "轩", "斋", "堂", "寺", "府" | ||
}; | ||
|
||
private Random random = new Random(); | ||
|
||
public String generateBuildingName() { | ||
return PREFIXES[random.nextInt(PREFIXES.length)] + | ||
MIDDLES[random.nextInt(MIDDLES.length)] + | ||
SUFFIXES[random.nextInt(SUFFIXES.length)]; | ||
} | ||
|
||
public static void main(String[] args) { | ||
BuildingNameGenerator generator = new BuildingNameGenerator(); | ||
for (int i = 0; i < 10; i++) { | ||
System.out.println(generator.generateBuildingName()); | ||
} | ||
} | ||
} | ||
``` | ||
|
||
当你运行上面的程序,它将输出10个基于“武林外传”风格的建筑名称。这些名称是通过将前缀、中缀和后缀随机组合来生成的。你可以根据需要添加更多的词汇或进行调整。 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
且不使用任何相关的lib。我会输入我希望你使用的编程语言和生成目标。 | ||
编程语言:Java | ||
电视剧:武林外传 | ||
生成目标:请为武林外传这部电视剧生成十个合适的建筑名。 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"model": "gpt4", # mandatory | ||
"prompt_type": "m2", # mandatory, data only, code, code+library | ||
"data_constraints_can_be_checked": "na", | ||
"executable_data_constraints": "np", # mandatory only for M2/M3 | ||
"number_of_options_in_the_generators": "10", # optional | ||
"cultural_alignment": "5", # mandatory overall subjective assessment with expertise | ||
"cultural_alignment_quantitative": "10/10=1", # optional | ||
"executes": "no", # mandatory | ||
"contains_true_generator":"no", # for m1/m2 should not simply configure the library https://gist.github.com/monperrus/744141e76501643c5970e1df0cfa00e4 | ||
"comments":"Perfect." # optional | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
江湖医生 | ||
茶馆掌柜 | ||
画师 | ||
宝石商 | ||
丐帮弟子 | ||
剑宗弟子 | ||
捕快 | ||
酒馆老板 | ||
马贩 | ||
鱼贩 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
好的,首先我们可以考虑"武林外传"这部电视剧的背景,它是一部古装武侠喜剧,所以所产生的职业需要与古代和武侠题材相匹配。 | ||
|
||
这里是一个简单的Java程序,它包含了一个预定义的职业列表,并从中随机选择10个职业来生成: | ||
|
||
```java | ||
import java.util.ArrayList; | ||
import java.util.HashSet; | ||
import java.util.List; | ||
import java.util.Random; | ||
|
||
public class WuLinOccupationGenerator { | ||
private static final String[] occupations = { | ||
"镖头", "草药商", "捕快", "江湖医生", "书生", | ||
"酒馆老板", "打铁匠", "剑宗弟子", "丐帮弟子", "鱼贩", | ||
"茶馆掌柜", "马贩", "画师", "戏班子演员", "宝石商" | ||
}; | ||
|
||
public static void main(String[] args) { | ||
WuLinOccupationGenerator generator = new WuLinOccupationGenerator(); | ||
List<String> generatedOccupations = generator.generate(10); | ||
for (String occupation : generatedOccupations) { | ||
System.out.println(occupation); | ||
} | ||
} | ||
|
||
public List<String> generate(int count) { | ||
HashSet<String> resultSet = new HashSet<>(); | ||
Random rand = new Random(); | ||
|
||
while (resultSet.size() < count) { | ||
int index = rand.nextInt(occupations.length); | ||
resultSet.add(occupations[index]); | ||
} | ||
|
||
return new ArrayList<>(resultSet); | ||
} | ||
} | ||
``` | ||
|
||
当你运行此程序时,它将从预定义的职业列表中随机选择10个职业并打印出来。这只是一个简单的示例,你可以根据需要进一步扩展或修改它。 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
扮演一名经验丰富的软件开发人员,你的任务是为电视节目生成一个伪造风格的生成器,并且不使用任何相关的lib。我会输入我希望你使用的编程语言和生成目标。 | ||
编程语言:Java | ||
电视剧:武林外传 | ||
生成目标:请为武林外传这部电视剧生成十个合适的人物职业。 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"model": "gpt4", # mandatory | ||
"prompt_type": "m2", # mandatory, data only, code, code+library | ||
"data_constraints_can_be_checked": "na", | ||
"executable_data_constraints": "np", # mandatory only for M2/M3 | ||
"number_of_options_in_the_generators": "10", # optional | ||
"cultural_alignment": "5", # mandatory overall subjective assessment with expertise | ||
"cultural_alignment_quantitative": "10/10=1", # optional | ||
"executes": "no", # mandatory | ||
"contains_true_generator":"no", # for m1/m2 should not simply configure the library https://gist.github.com/monperrus/744141e76501643c5970e1df0cfa00e4 | ||
"comments":"Perfect." # optional | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
菊雪巷 | ||
竹雪路 | ||
松月巷 | ||
金月路 | ||
梅花巷 | ||
龙风道 | ||
竹风巷 | ||
兰月道 | ||
凤云道 | ||
金风坊 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
很好,首先我们需要了解“武林外传”的背景和风格。该电视剧是一个古装喜剧,所以街道名称需要反映古代中国的风格,同时也可以加入一些幽默或古怪的元素,因为这部剧的风格是喜剧。 | ||
|
||
下面是一个简单的Java程序,用于生成10个与“武林外传”风格匹配的街道名称: | ||
|
||
```java | ||
import java.util.Random; | ||
|
||
public class WuxiaStreetNameGenerator { | ||
|
||
private static final String[] PREFIXES = { | ||
"金", "银", "玉", "龙", "凤", "梅", "兰", "竹", "菊", "松" | ||
}; | ||
|
||
private static final String[] MIDDLES = { | ||
"水", "风", "雨", "霜", "月", "云", "雪", "夜", "日", "花" | ||
}; | ||
|
||
private static final String[] SUFFIXES = { | ||
"巷", "街", "路", "道", "弄", "坊" | ||
}; | ||
|
||
public static void main(String[] args) { | ||
Random rand = new Random(); | ||
for (int i = 0; i < 10; i++) { | ||
String prefix = PREFIXES[rand.nextInt(PREFIXES.length)]; | ||
String middle = MIDDLES[rand.nextInt(MIDDLES.length)]; | ||
String suffix = SUFFIXES[rand.nextInt(SUFFIXES.length)]; | ||
|
||
System.out.println(prefix + middle + suffix); | ||
} | ||
} | ||
} | ||
``` | ||
|
||
运行上述代码,你将得到10个类似于“金水街”或“龙风巷”的街道名称。这些名称既有古代中国的风格,又与“武林外传”的幽默风格相匹配。 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
扮演一名经验丰富的软件开发人员,你的任务是为电视节目生成一个伪造风格的生成器,并且不使用任何相关的lib。我会输入我希望你使用的编程语言和生成目标。 | ||
编程语言:Java | ||
电视剧:武林外传 | ||
生成目标:请为武林外传这部电视剧生成十个合适的街道名。 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"model": "gpt4", # mandatory | ||
"prompt_type": "m2", # mandatory, data only, code, code+library | ||
"data_constraints_can_be_checked": "na", | ||
"executable_data_constraints": "np", # mandatory only for M2/M3 | ||
"number_of_options_in_the_generators": "10", # optional | ||
"cultural_alignment": "4", # mandatory overall subjective assessment with expertise | ||
"cultural_alignment_quantitative": "7/10=0.7", # optional | ||
"executes": "no", # mandatory | ||
"contains_true_generator":"no", # for m1/m2 should not simply configure the library https://gist.github.com/monperrus/744141e76501643c5970e1df0cfa00e4 | ||
"comments":"Looks good." # optional | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
金狮宫 | ||
夜影门 | ||
冰魄塔 | ||
霸天塔 | ||
银蛇剑 | ||
银蛇寺 | ||
夜影拳 | ||
金狮山 | ||
金狮寺 | ||
紫霞剑 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
好的,我明白了。首先,我将创建一个简单的武林门派名称生成器。为了生成名称,我会采用以下策略: | ||
|
||
使用一些武林、江湖常见的前缀或后缀,例如“霸天”、“龙翔”、“夜影”等。 | ||
结合一些与自然、动物或特定的武技有关的词汇,例如“山”、“雁”、“剑”等。 | ||
将两者结合起来,生成门派名称。 | ||
|
||
接下来,我将为你提供一个Java版本的代码来生成这些名称。 | ||
|
||
以下是Java版本的武林门派名称生成器代码: | ||
import java.util.Random; | ||
|
||
public class MartialArtsSectGenerator { | ||
|
||
public static void main(String[] args) { | ||
// Common martial art world prefixes and suffixes | ||
String[] prefixes = {"霸天", "龙翔", "夜影", "铁血", "白云", "紫霞", "金狮", "银蛇", "赤火", "冰魄"}; | ||
String[] suffixes = {"山", "雁", "剑", "掌", "拳", "派", "门", "宫", "寺", "塔"}; | ||
|
||
Random random = new Random(); | ||
|
||
// Generate 10 martial art sect names | ||
for (int i = 0; i < 10; i++) { | ||
String sectName = prefixes[random.nextInt(prefixes.length)] + suffixes[random.nextInt(suffixes.length)]; | ||
System.out.println(sectName); | ||
} | ||
} | ||
} | ||
|
||
你可以运行上述Java代码以生成武林门派的名称。这只是一个简单的示例,你可以根据需要进一步扩展或修改它。 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
扮演一名经验丰富的软件开发人员,你的任务是为电视节目生成一个伪造风格的生成器,并且不使用任何相关的lib。我会输入我希望你使用的编程语言和生成目标。 | ||
编程语言:Java | ||
电视剧:武林外传 | ||
生成目标:请为武林外传这部电视剧生成十个合适的武林门派。 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"model": "gpt4", # mandatory | ||
"prompt_type": "m2", # mandatory, data only, code, code+library | ||
"data_constraints_can_be_checked": "na", | ||
"executable_data_constraints": "np", # mandatory only for M2/M3 | ||
"number_of_options_in_the_generators": "10", # optional | ||
"cultural_alignment": "4", # mandatory overall subjective assessment with expertise | ||
"cultural_alignment_quantitative": "7/10=0.7", # optional | ||
"executes": "no", # mandatory | ||
"contains_true_generator":"no", # for m1/m2 should not simply configure the library https://gist.github.com/monperrus/744141e76501643c5970e1df0cfa00e4 | ||
"comments":"Good." # optional | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
雷战 | ||
雪残 | ||
凤独 | ||
雷笑 | ||
雷孤 | ||
月独 | ||
风舞 | ||
凤孤 | ||
星舞 | ||
月静 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
好的,我会使用 Rust 来为“武林外传”生成伪造的角色名。 | ||
|
||
首先,我们可以考虑一些常见的武侠名字的特点,例如“风”、“云”、“雪”、“龙”、“凤”等字眼,再加上一些常见的形容词或者武侠界中的修为描述,如“独”、“孤”、“残”、“无双”等。 | ||
|
||
基于这些信息,我会先为你展示一个 Rust 的基本框架,然后生成伪造的角色名。 | ||
|
||
```rust | ||
use rand::seq::SliceRandom; | ||
|
||
fn main() { | ||
let first_parts = vec![ | ||
"风", "云", "雪", "龙", "凤", "月", "星", "天", "日", "雷" | ||
]; | ||
let second_parts = vec![ | ||
"独", "孤", "残", "无双", "追", "影", "舞", "笑", "战", "静" | ||
]; | ||
|
||
let mut rng = rand::thread_rng(); | ||
|
||
for _ in 0..10 { | ||
let first = first_parts.choose(&mut rng).unwrap(); | ||
let second = second_parts.choose(&mut rng).unwrap(); | ||
println!("{}{}", first, second); | ||
} | ||
} | ||
``` | ||
|
||
这个简单的程序会从两个数组中随机选择一个词汇,然后将它们组合起来生成一个伪造的角色名。这样我们可以得到像“风独”、“云舞”、“龙笑”这样的角色名。 | ||
|
||
请注意,为了运行此代码,你需要在你的 Rust 项目的 `Cargo.toml` 文件中添加 `rand` 作为依赖。 | ||
|
||
你可以运行这个程序来得到十个伪造的角色名,或者调整数组中的词汇来得到更多的组合。 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
扮演一名经验丰富的软件开发人员,你的任务是为电视节目生成一个伪造风格的生成器,并且不使用任何相关的lib。我会输入我希望你使用的编程语言和生成目标。 | ||
编程语言:Rust | ||
电视剧:武林外传 | ||
生成目标:请为武林外传这部电视剧生成十个合适的角色名。 |
Oops, something went wrong.