100+ results for 'hello world lisp'

Not the results you expected?

overload_simple_runme.pl (https://swig.svn.sourceforge.net/svnroot/swig) Perl · 199 lines ✨ Summary

This Perl code tests the functionality of the overload_simple module, which provides a simple way to overload operators and functions for custom classes. It creates instances of various classes, including Foo, Bar, Spam, and others, and checks how they behave when passed different types of arguments, such as integers, floats, strings, and objects.

90 is(overload_simple::foo("3.0"), "foo:char *", "foo:char * - string double");

91

92 is(overload_simple::foo("hello"), "foo:char *", "foo:char * string");

93

94 is(overload_simple::foo($f), "foo:Foo *", "foo:Foo *");

100 is(overload_simple::blah(3), "blah:double", "blah:double");

101

102 is(overload_simple::blah("hello"), "blah:char *", "blah:char *");

103

104 my $s = new overload_simple::Spam();

108 is($s->foo(3.0), "foo:double", "Spam::foo(double)");

109

110 is($s->foo("hello"), "foo:char *", "Spam::foo:char *");

111

112 is($s->foo($f), "foo:Foo *", "Spam::foo(Foo *)");

BasicJTableCellReaderTest.java (http://fest.googlecode.com/svn/) Java · 252 lines ✨ Summary

This Java code is a test class for the BasicJTableCellReader class, which reads data from a JTable component. It tests various scenarios, such as rendering different types of components (e.g., JLabel, JComboBox, JCheckBox) and retrieving their values. The tests are run in the Event Dispatch Thread (EDT) to ensure thread safety.

157 robot.waitForIdle();

158 String value = valueAt(reader, table, 0, 0);

159 assertThat(value).isEqualTo("Hello");

160 }

161

164 return execute(new GuiQuery<JLabel>() {

165 protected JLabel executeInEDT() {

166 JLabel label = new JLabel("Hello");

167 setCellRendererComponent(table, label);

168 return label;

198 @Test(dataProvider = "booleans", dataProviderClass = BooleanProvider.class)

199 public void shouldReturnIsSelectedIfRendererIsJCheckBox(boolean selected) {

200 setJCheckBoxAsCellRenderer(table, "Hello", selected);

201 robot.waitForIdle();

202 String value = valueAt(reader, table, 0, 0);

java_typemaps_proxy_runme.java (https://swig.svn.sourceforge.net/svnroot/swig) Java · 82 lines ✨ Summary

This Java code tests the functionality of the java_typemaps_proxy library, which is used to interface with C++ code from Java. It creates objects, calls methods, and checks for correct behavior, including exception handling, garbage collection prevention, and template metaprogramming. The test ensures that the pure Java code compiles correctly and behaves as expected when interacting with native C++ code.

22

23 // Check that pure Java methods have been added

24 greet.sayhello();

25 bye.saybye(new java.math.BigDecimal(java.math.BigInteger.ONE));

26

std_containers.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 208 lines

156 %inline

157 {

158 int hello(Param<std::complex<double> > c)

159 {

160 return 0;

ATWalkerTest.java (http://ambienttalk.googlecode.com/svn/) Java · 227 lines ✨ Summary

This Java code is a parser for a programming language, specifically designed to parse and analyze the syntax of the language. It tests various aspects of the language’s grammar, including operator precedence, literal types, annotations, and macro definitions. The test cases cover different scenarios, such as curried invocations, optional arguments, and annotation usage.

51 parser.program();

52 CommonAST t = (CommonAST)parser.getAST();

53 // Print the resulting tree out in LISP notation

54 System.out.println(t.toStringList());

55 TreeWalkerImpl walker = new TreeWalkerImpl();

182 testWalker("1.05");

183 testWalker("-5.04e-10","-(5.04E-10)");

184 testWalker("\"hello \\tworld\"", "\"hello \tworld\"");

185 testWalker("[a,b,c]");

186 testWalker("[]");

overload_simple_runme.tcl (https://swig.svn.sourceforge.net/svnroot/swig) TCL · 167 lines ✨ Summary

The TCL code tests the functionality of two classes, Foo and Bar, which are part of a custom class hierarchy. It checks that instances of these classes can be correctly created and returned by the foo and bar methods, respectively, with various types of arguments. The tests also verify that the cget -type method returns the correct type for each instance.

20 }

21

22 set x [foo hello]

23 if {$x != "foo:char *"} {

24 puts stderr "foo(char *) test failed"

58 }

59

60 set x [s foo hello]

61 if {$x != "foo:char *"} {

62 puts stderr "Spam::foo(char *) test failed"

95 }

96

97 set x [Spam_bar hello]

98 if {$x != "bar:char *"} {

99 puts stderr "Spam::bar(char *) test failed"

configure.ac (https://code.google.com/p/msysgit/) m4 · 40 lines ✨ Summary

This is an Autoconf configuration file for a PHP program that uses GNU gettext for internationalization. It checks for the availability of the php executable, sets up the prefix and locale directories, and configures the Makefiles for the po directory.

5

6 AC_INIT

7 AC_CONFIG_SRCDIR(hello.php)

8 AM_INIT_AUTOMAKE(hello-php, 0)

34

35 AC_CONFIG_FILES([Makefile])

36 AC_CONFIG_FILES([hello:hello.php], [chmod a+x hello])

37 AC_CONFIG_FILES([m4/Makefile])

38 AC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])

ReleasesClientTests.cs (https://gitlab.com/WoomyNightClub/GitHub-API-.NET) C# · 857 lines

431 var release = await _releaseClient.Create(_context.RepositoryOwner, _context.RepositoryName, releaseWithNoUpdate);

432

433 var stream = Helper.LoadFixture("hello-world.txt");

434

435 var newAsset = new ReleaseAssetUpload("hello-world.txt", "text/plain", stream, null);

519 var release = await _releaseClient.Create(_context.RepositoryOwner, _context.RepositoryName, releaseWithNoUpdate);

520

521 var stream = Helper.LoadFixture("hello-world.txt");

522

523 var newAsset = new ReleaseAssetUpload("hello-world.txt", "text/plain", stream, null);

544 var stream = Helper.LoadFixture("hello-world.txt");

545

546 var newAsset = new ReleaseAssetUpload("hello-world.txt", "text/plain", stream, null);

547

548 var result = await _releaseClient.UploadAsset(release, newAsset);

dialogDefinition.js (https://github.com/mattpclark/drupal7_base.git) JavaScript · 1166 lines

39 * label : 'Test Text 1',

40 * id : 'testText1',

41 * 'default' : 'hello world!'

42 * }

43 * ]

repos_releases_test.go (https://gitlab.com/mayakarya/go-github) Go · 352 lines

216 testHeader(t, r, "Accept", defaultMediaType)

217 w.Header().Set("Content-Type", "application/octet-stream")

218 w.Header().Set("Content-Disposition", "attachment; filename=hello-world.txt")

219 fmt.Fprint(w, "Hello World")

224 t.Errorf("Repositories.DownloadReleaseAsset returned error: %v", err)

225 }

226 want := []byte("Hello World")

227 content, err := ioutil.ReadAll(reader)

228 if err != nil {

dialogDefinition.js (https://github.com/Arsen/travelmozo.git) JavaScript · 1166 lines

39 * label : 'Test Text 1',

40 * id : 'testText1',

41 * 'default' : 'hello world!'

42 * }

43 * ]

README (https://freespeech.svn.sourceforge.net/svnroot/freespeech) Unknown · 5 lines

1

2 This is GnomeHello, an example program for my book about Gnome development.

3

4

c_file.py (http://hadesmem.googlecode.com/svn/trunk/) Python · 0 lines ✨ Summary

This Python script tests a BoostBuild system by creating a project with two C files (hello.cpp and a.c) and an executable that depends on both. The test verifies that the executable is compiled correctly, specifically that the C file a.c is compiled in C mode to avoid compilation errors.

13 t.write("jamroot.jam", """

14 project ;

15 exe hello : hello.cpp a.c ;

16 """)

17

18 t.write("hello.cpp", """

19 extern "C" int foo();

20 int main() { return foo(); }

32

33 t.run_build_system()

34 t.expect_addition("bin/$toolset/debug/hello.exe")

35

36 t.cleanup()

ScriptSerializer.scala (https://bitbucket.org/stepancheg/mysql-diff/) Scala · 402 lines ✨ Summary

This Scala code defines a class ScriptSerializer that serializes SQL scripts into a string format. It provides methods to serialize various SQL elements, such as tables, comments, data types, columns, and values. The class is designed to work with a specific context and environment, and it can be used to generate SQL scripts programmatically.

This Scala code defines a class ScriptSerializer that serializes SQL scripts into a string format. It provides methods to serialize various SQL elements, such as tables, comments, data types, columns, and values. The class is designed to work with a specific context and environment, and it can be used to generate SQL scripts programmatically.

394 scriptSerializer.serializeValue(StringValue("hello")) must_== "'hello'"

395 scriptSerializer.serializeValue(StringValue("'hello world'")) must_== "'''hello world'''"

396 scriptSerializer.serializeValue(NowValue) must_== "NOW()" // XXX: or CURRENT_TIMESTAMP

397 scriptSerializer.serializeValue(DateValue("2009-03-09")) must_== "DATE '2009-03-09'"

JavaFutureTests.java (https://github.com/GunioRobot/akka.git) Java · 261 lines

27 Future<String> f1 = ff.future(new Callable<String>() {

28 public String call() {

29 return "Hello";

30 }

31 });

33 Future<String> f2 = f1.map(new Function<String, String>() {

34 public String apply(String s) {

35 return s + " World";

36 }

37 }, t);

38

39 assertEquals("Hello World", f2.get());

40 }

41

ObjectSerializationTests.cs (https://gitlab.com/sharadag/Roslyn) C# · 631 lines

261 TestRoundTripArray(new object[] { "hello" });

262 TestRoundTripArray(new object[] { "hello", "world" });

263 TestRoundTripArray(new object[] { "hello", "world", "good" });

264 TestRoundTripArray(new object[] { "hello", "world", "good", "bye" });

265 TestRoundTripArray(new object[] { "hello", 123, 45m, 99.9, 'c' });

266 TestRoundTripArray(new string[] { "hello", null, "world" });

267 }

268

DisposableResourceTrackerSupplierImplTest.java (https://github.com/jmchilton/TINT.git) Java · 210 lines

140 }

141 replay();

142 final byte[] bytes = "Hello World".getBytes();

143 if(addType.equals(AddType.STREAM)) {

144 tracker.add(new ByteArrayInputStream(bytes));

151 } else if(addType.equals(AddType.COPY)) {

152 final File fileToCopy = File.createTempFile("tpxtest", "");

153 FileUtils.writeStringToFile(fileToCopy, "Hello World");

154 tracker.addCopy(fileToCopy);

155 }

162 expect(factory.apply(tempFile)).andReturn(disposableResource);

163 replay();

164 final byte[] bytes = "Hello World".getBytes();

165 if(addType.equals(AddType.STREAM)) {

166 tracker.add(new ByteArrayInputStream(bytes));

97c4c4fac3c0e0d63e70588bb61c6baf4124aff9Show-Window.ps1 (https://github.com/aliostad/deep-learning-lang-detection.git) Powershell · 226 lines

20 of the thread displaying it.

21 .Example

22 New-Label "Hello World" | Show-Window

23 #>

24 [CmdletBinding(DefaultParameterSetName="Window")]

PullRequestReviewCommentReactionsClientTests.cs (https://gitlab.com/Hexexpeck/GitHub-API-.NET) C# · 228 lines

134 // Creating a commit in master

135

136 var createdCommitInMaster = await CreateCommit(repoName, "Hello World!", "README.md", "heads/master", "A master commit message");

137

138 // Creating a branch

143 // Creating a commit in the branch

144

145 var createdCommitInBranch = await CreateCommit(repoName, "Hello from the fork!", path, branchHead, "A branch commit message");

146

147 // Creating a pull request

test_input.rb (https://github.com/umarsheikh/gold-notes.git) Ruby · 405 lines

6 it 'should correctly amend the last line of input when no line number specified ' do

7 str_output = StringIO.new

8 redirect_pry_io(InputTester.new("def hello", "puts :bing", "amend-line puts :blah", "show-input", "exit-all"), str_output) do

9 pry

10 end

96 it 'should correctly delete the previous line using the ! for content' do

97 str_output = StringIO.new

98 redirect_pry_io(InputTester.new("def hello", "puts :bing", "puts :bang", "puts :boast", "puts :heart", "amend-line !", "show-input", "exit-all"), str_output) do

99 pry

100 end

273 pry

274 end

275 str_output.string.should =~ /hello\n.*world/

276 end

277

DisplayCaps.yml (https://gitlab.com/Rockyspade/titanium_mobile) YAML · 176 lines

82

83 var label = Ti.UI.createLabel({

84 text:'Hello world'

85 });

86 win.add(label);

128

129 var label = Ti.UI.createLabel({

130 text:'Hello world'

131 });

132 win.add(label);

ruby.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 459 lines

50 </SPAN>

51

52 <!-- %Q(Hello world) %(Hello world)-->

53 <SPAN_REGEXP HASH_CHAR="%" TYPE="LITERAL1" DELEGATE="doubleQuoteLiteral">

54 <BEGIN>%Q?\(</BEGIN>

62 </SPAN>

63

64 <!-- %Q{Hello world} %{Hello world} -->

65 <SPAN_REGEXP HASH_CHAR="%" TYPE="LITERAL1" DELEGATE="doubleQuoteLiteral">

66 <BEGIN>%Q?\{</BEGIN>

74 </SPAN>

75

76 <!-- %Q[Hello world] %[Hello world] -->

77 <SPAN_REGEXP HASH_CHAR="%" TYPE="LITERAL1" DELEGATE="doubleQuoteLiteral">

78 <BEGIN>%Q?\[</BEGIN>

ServletUtilTests.java (https://github.com/webx/citrus.git) Java · 245 lines

67 "http://localhost:8080/myapp/turbine/aaa/bbb");

68

69 add(data, true, "/hello.world", "/turbine", //

70 "/hello.world/turbine", "http://localhost:8080/myapp", //

71 "/turbine", "http://localhost:8080/myapp/hello.world", //

72 "http://localhost:8080/myapp/hello.world/turbine");

73

74 add(data, true, " hello.world ", " turbine/ ", //

75 "/hello.world/turbine/", "http://localhost:8080/myapp", //

76 "/turbine/", "http://localhost:8080/myapp/hello.world", //

77 "http://localhost:8080/myapp/hello.world/turbine/");

93 "http://localhost:8080/myapp/turbine");

94

95 add(data, true, "/hello.world/turbine", null, //

96 "/hello.world/turbine", "http://localhost:8080/myapp", //

PathDataTests.cs (https://github.com/lundbeck/n2cms.git) C# · 328 lines

129 public void Attach_creates_cloned_object()

130 {

131 var path = new PathData { Action = "hej", CurrentItem = item, Ignore = true, IsCacheable = true, IsPubliclyAvailable = true, IsRewritable = true, Path = "/x", StopItem = page, TemplateUrl = "/hello.aspx" };

132

133 var detached = path.Detach();

153 detached.TemplateUrl = "/world.aspx";

154 detached.QueryParameters["Hello"] = "world";

155

156 path.Action.ShouldNotBe("hejdå");

184 detached.TemplateUrl = "/world.aspx";

185 detached.QueryParameters["Hello"] = "world";

186

187 reattached.Action.ShouldNotBe("hejdå");

285 public void Cloned_path_data_has_same_values()

286 {

287 var path = new PathData(page, item) { Action = "hello", Argument = "world", Ignore = true, IsCacheable = false, IsPubliclyAvailable = true, IsRewritable = false, TemplateUrl = "asdf" };

288 var clone = path.Clone();

289

SQLRunnerCloseTest.as (https://github.com/rusin/air-sqlite.git) ActionScript · 424 lines

173 _sqlRunner = new SQLRunner(_dbFile);

174

175 var stmt1:QueuedStatement = new QueuedStatement(ADD_ROW_SQL, {colString:"Hello", colInt:7});

176 var stmt2:QueuedStatement = new QueuedStatement(ADD_ROW_SQL, {colString:"World", colInt:17});

219 _sqlRunner = new SQLRunner(_dbFile);

220

221 var stmt1:QueuedStatement = new QueuedStatement(ADD_ROW_SQL, {colString:"Hello", colInt:7});

222 var stmt2:QueuedStatement = new QueuedStatement(ADD_ROW_SQL, {colString:"World", colInt:17});

296 _sqlRunner = new SQLRunner(_dbFile);

297

298 var stmt1:QueuedStatement = new QueuedStatement(ADD_ROW_SQL, {colString:"Hello", colInt:7});

299 var stmt2:QueuedStatement = new QueuedStatement(ADD_ROW_SQL, {colString:"World", colInt:17});

test_gui.py (https://gitlab.com/rbax81/DAT) Python · 301 lines

71 nd.register_notification('notif_A', notif2)

72

73 nd.send_notification('notif_A', 'hello', 'world', rep=42)

74 first_call = (['hello', 'world'], dict(rep=42))

printf-stdarg.c (https://bitbucket.org/minux/freertos.git) C · 289 lines

214 int main(void)

215 {

216 char *ptr = "Hello world!";

217 char *np = 0;

218 int i = 5;

255 * this should display (on 32bit int machine) :

256 *

257 * Hello world!

258 * printf test

259 * (null) is null pointer

JavaFutureTests.java (https://github.com/andreum/akka.git) Java · 257 lines

23 Future<String> f1 = future(new Callable<String>() {

24 public String call() {

25 return "Hello";

26 }

27 });

29 Future<String> f2 = f1.map(new Function<String, String>() {

30 public String apply(String s) {

31 return s + " World";

32 }

33 });

34

35 assertEquals("Hello World", f2.get());

36 }

37

test-irregex-mosh.ss (git://github.com/higepon/mosh.git) Scheme · 329 lines ✨ Summary

This Scheme code tests and implements a regular expression library, irregex. It checks various aspects of the library, including pattern matching, submatch extraction, replacement, and folding (aggregation) of matches. The tests cover different scenarios, such as simple patterns, email addresses, and more complex cases like chunked folding. The output indicates whether each test passes or fails, providing a snapshot of the library’s functionality.

308 (test "h*llo world"

309 (irregex-replace "[aeiou]" "hello world" "*"))

310 (test "h*ll* w*rld"

311 (irregex-replace/all "[aeiou]" "hello world" "*"))

actions_spec.js (https://gitlab.com/artofhuman/gitlab-ce) JavaScript · 512 lines

286 testAction(

287 receiveTraceSuccess,

288 'hello world',

289 mockedState,

290 [{ type: types.RECEIVE_TRACE_SUCCESS, payload: 'hello world' }],

source.rs (https://github.com/Logicalshift/flowbetween.git) Rust · 394 lines

245 let mut encoded = String::new();

246

247 encoded.write_str("Hello, world");

248 assert!(encoded.chars().next_string() == "Hello, world".to_string());

336 encoded.write_usize(1234);

337 encoded.write_small_u64(1234);

338 encoded.write_str("Hello, world");

339 encoded.write_u32(1234);

340 encoded.write_i32(-1234);

350 encoded.write_usize(1234);

351 encoded.write_small_u64(1234);

352 encoded.write_str("Hello, world");

353 encoded.write_u32(1234);

354 encoded.write_i32(-1234);

366 assert!(src.next_usize() == 1234);

367 assert!(src.next_small_u64() == 1234);

368 assert!(src.next_string() == "Hello, world".to_string());

369 assert!(src.next_u32() == 1234);

370 assert!(src.next_i32() == -1234);

Makefile (https://github.com/deldelda/Box2d-Mods.git) Makefile · 200 lines

146

147 # Convenience name for target.

148 HelloWorld: HelloWorld/CMakeFiles/HelloWorld.dir/rule

149 .PHONY : HelloWorld

152 HelloWorld/fast:

153 cd /Users/Andy/Documents/Box2D_v2.1.2/Box2D/Build && $(MAKE) -f HelloWorld/CMakeFiles/HelloWorld.dir/build.make HelloWorld/CMakeFiles/HelloWorld.dir/build

154 .PHONY : HelloWorld/fast

157 HelloWorld.o:

158 cd /Users/Andy/Documents/Box2D_v2.1.2/Box2D/Build && $(MAKE) -f HelloWorld/CMakeFiles/HelloWorld.dir/build.make HelloWorld/CMakeFiles/HelloWorld.dir/HelloWorld.o

159 .PHONY : HelloWorld.o

162 HelloWorld.i:

163 cd /Users/Andy/Documents/Box2D_v2.1.2/Box2D/Build && $(MAKE) -f HelloWorld/CMakeFiles/HelloWorld.dir/build.make HelloWorld/CMakeFiles/HelloWorld.dir/HelloWorld.i

164 .PHONY : HelloWorld.i

167 HelloWorld.s:

168 cd /Users/Andy/Documents/Box2D_v2.1.2/Box2D/Build && $(MAKE) -f HelloWorld/CMakeFiles/HelloWorld.dir/build.make HelloWorld/CMakeFiles/HelloWorld.dir/HelloWorld.s

169 .PHONY : HelloWorld.s

normal-template.js (https://github.com/haxd/normal-template.git) JavaScript · 250 lines

35 {title: "Hello3", content: "World3"}

36 ]};

37 assert.equal(t(data), "Hello1: World1 Hello2: World2 Hello3: World3 ");

38

39 t = compile("test {:r articles}{=title}: {=content} {/:r}");

108 {title: "Hello3", content: "World3"}

109 ]};

110 assert.equal(t(data), "<li>Hello1: World1</li><li>Hello2: World2</li><li>Hello3: World3</li>");

111

112 var data = {};

238 {title: "Hello3", content: "World3"}

239 ]};

240 assert.equal(t(data), "Hello1: World1,Hello2: World2,Hello3: World3");

241

242 t = compile("test {:r articles ','}{=title}: {=content} {/:r}");

PortalWebTestSuite.java (https://github.com/monicali/liferay-portal.git) Java · 135 lines

32 import com.liferay.portalweb.portlet.hellovelocity.HelloVelocityTestPlan;

33 import com.liferay.portalweb.portlet.helloworld.HelloWorldTestPlan;

34 import com.liferay.portalweb.portlet.iframe.IFrameTestPlan;

35 import com.liferay.portalweb.portlet.imagegallery.ImageGalleryTestPlan;

94 testSuite.addTest(HelloVelocityTestPlan.suite());

95 testSuite.addTest(HelloWorldTestPlan.suite());

96 testSuite.addTest(IFrameTestPlan.suite());

97 testSuite.addTest(ImageGalleryTestPlan.suite());

debugger.markdown (https://gitlab.com/MichelZuniga/node) Markdown · 170 lines

29 setTimeout(function () {

30 debugger;

31 console.log("world");

32 }, 1000);

33 console.log("hello");

43 3 debugger;

44 debug> cont

45 < hello

46 break in /home/indutny/Code/git/indutny/myscript.js:3

47 1 x = 5;

48 2 setTimeout(function () {

49 3 debugger;

50 4 console.log("world");

51 5 }, 1000);

52 debug> next

usage.md (https://bitbucket.org/larryg/powerhut.git) Markdown · 158 lines

78

79 $logger->pushProcessor(function ($record) {

80 $record['extra']['dummy'] = 'Hello world!';

81

82 return $record;

repl.md (https://github.com/nibblebot/cluster.git) Markdown · 165 lines

148

149 var server = http.createServer(function(req, res){

150 var body = 'Hello World';

151 res.writeHead(200, { 'Content-Length': body.length });

152 res.end(body);

PatchTests.cs (https://github.com/louthy/language-ext.git) C# · 588 lines

24 public void EmptyPatchAppendPatchIsPatch()

25 {

26 var docA = List("Hello", "World");

27 var docB = List("Hello", "World", "Again");

36 public void PatchCommutes()

37 {

38 var docA = List("Hello", "World");

39 var docB = List("Hello", "World", "Again");

285 public void ApplyDeleteAtMidDiff()

286 {

287 var docA = List("Hello", "Again", "World");

288 var docB = List("Hello", "World");

399 var docA = List("It's", "Hello", "Again", "World", "Cheers");

400 var docB = List("Yes", "Hello", "My", "World", "Of Joy");

401

402 var patch = diff<EqString, string>(docA, docB);

AddConstructorParametersFromMembersTests.cs (https://github.com/dotnet/roslyn.git) C# · 1905 lines

622 {

623 [|string bar;

624 int HelloWorld { get; set; }|]

625 public C(string bar, int helloWorld)

640 {

641 [|int i;

642 int Hello { get; set; }|]

643 public C(int i)

644 {

652 public C(int i, int hello)

653 {

654 Hello = hello;

655 }

656 }"

680 {

681 this.i = i;

682 Hello = hello;

683 }

684 }"

ob-picolisp-more-tests.org (https://github.com/tj64/ob-picolisp.git) Org · 583 lines

154 (html 0 "Hello" "@lib.css" NIL

155 (<h1> NIL "Hello World!")

156 (<br> "This is some text.")

157 (ht:Prin "And this is a number: " (+ 1 2 3)) )

338 <script type="text/javascript" src="http://://usr/lib/picolisp/lib/form.js"></script>

339 </head>

340 <body><h1>Hello World!</h1>

341 This is some text.<br/>

342 And this is a number: 6</body></html>

388 (html 0 "Hello" "@lib.css" NIL

389 (<h1> NIL "Hello World!")

390 (<br> "This is some text.")

391 (ht:Prin "And this is a number: " (+ 1 2 3)) )

553 (html 0 "Hello" "@lib.css" NIL

554 (<h1> NIL "Hello World!")

555 (<br> "This is some text.")

556 (ht:Prin "And this is a number: " (+ 1 2 3)) )

render_spec.rb (https://github.com/Sharagoz/engine.git) Ruby · 209 lines

39 before(:each) do

40 @controller.instance_variable_set(:@page, @page)

41 @controller.send(:prepare_and_set_response, 'Hello world !')

42 end

43

48 it 'sets the content type to the one specified by the page' do

49 @page.response_type = 'application/json'

50 @controller.send(:prepare_and_set_response, 'Hello world !')

51 @controller.response.headers['Content-Type'].should == 'application/json; charset=utf-8'

52 end

57

58 it 'displays the output' do

59 @controller.output.should == 'Hello world !'

60 end

61

ViewPortletSiteMapTest.java (https://github.com/monicali/liferay-portal.git) Java · 123 lines

54 assertEquals(RuntimeVariables.replace("Sign In"),

55 selenium.getText("xPath=(//h1[@class='portlet-title'])[1]"));

56 assertEquals(RuntimeVariables.replace("Hello World"),

57 selenium.getText("xPath=(//h1[@class='portlet-title'])[2]"));

58 assertTrue(selenium.isVisible("xPath=(//section[@class='portlet'])[1]"));

contextswitch.h (https://github.com/zeroality2/pokemon-online.git) C Header · 181 lines

73 free(stack2);

74

75 cout << "Hello world!" << endl;

76 return 0;

77 }

index.html (https://github.com/tnajdek/gamejs.git) HTML · 199 lines

30 var font = new Font('20px monospace');

31 // render text - this returns a surface with the text written on it.

32 var helloSurface = font.render('Hello World')</code></pre>

33

34

browser_dbg_propertyview-05.js (https://github.com/Anachid/mozilla-central.git) JavaScript · 99 lines

45

46

47 testVar.addProperties({ "helloWorld": { "value": "hello world" } });

48

49 is(testVar.querySelector(".details").childNodes.length, 1,

51

52

53 testVar.addProperties({ "helloWorld": { "value": "hello jupiter" } });

54

55 is(testVar.querySelector(".details").childNodes.length, 1,

DynamicProcessTest.java (https://github.com/mariofusco/jbpm.git) Java · 143 lines

46 @Test

47 public void testDynamicProcess() throws Exception {

48 RuleFlowProcessFactory factory = RuleFlowProcessFactory.createProcess("org.jbpm.HelloWorld");

49 factory

50 // Header

51 .name("HelloWorldProcess")

52 .version("1.0")

53 .packageName("org.jbpm")

96

97 final ProcessInstanceImpl processInstance = (ProcessInstanceImpl)

98 ksession.startProcess("org.jbpm.HelloWorld");

99

100 HumanTaskNode node = new HumanTaskNode();

open_graph.js (https://gitlab.com/nycancccat/hexo) JavaScript · 368 lines

36 it('title - page', function() {

37 var ctx = {

38 page: {title: 'Hello world'},

39 config: hexo.config,

40 is_post: isPost

48 it('title - options', function() {

49 var result = openGraph.call({

50 page: {title: 'Hello world'},

51 config: hexo.config,

52 is_post: isPost

332 config: hexo.config,

333 is_post: isPost

334 }, {twitter_site: 'Hello'});

335

336 result.should.contain(meta({name: 'twitter:site', content: 'Hello'}));

tester.fs (https://github.com/martintrojer/scheme-fsharp.git) F# · 271 lines

219 [<Test>]

220 member tc.testFunction() =

221 let env, _ = "(define (hello) (display \"hello world\"))" |> parse |> List.head |> (eval testEnv)

222 let _ = "(hello)" |> parse |> List.head |> (eval env)

260 [<Test>]

261 member tc.testDisplay() =

262 let _ = "(display \"hello world\")" |> parse |> List.head |> (eval testEnv)

263 let _ = "(display (+ 1 2))" |> parse |> List.head |> (eval testEnv)

264

index.rst (https://gitlab.com/ricardo.hernandez/salt) ReStructuredText · 125 lines

35

36 def a_runner(outputter=None, display_progress=False):

37 print('Hello world')

38 ...

39

47 Data:

48 {'_stamp': '2015-01-13T15:26:45.078707',

49 'data': 'hello',

50 'outputter': 'pprint'}

51

xhello.el (https://github.com/emacsmirror/ohio-archive.git) Emacs Lisp · 122 lines

1 ;;; hello --- hello world X demo/testbed

2

3 ;; Copyright (C) 1996, 1997, 1998 Eric M. Ludlam

31 ;;; Commentary:

32 ;;

33 ;; Example HELLO WORLD Emacs X program

34

35 (require 'xlib)

91 (defun Xhello-expose (win params)

92 ;; checkdoc-params: (params)

93 "Expose the hello window WIN."

94 (let ((dpy (X-window-get-display win)))

95 (XDrawLine dpy win Xhello-gc-2 5 5 100 50)

98 (XDrawRectangle dpy win Xhello-gc-1 2 38 38 15)

99 (XDrawString dpy win Xhello-gc-1 5 50 "HELLO!")

100 (XDrawSegments dpy win Xhello-gc-2 '(100 0 50 10 100 100 50 90))

line_index.rs (https://github.com/mun-lang/runtime.git) Rust · 266 lines

187 #[test]

188 fn test_line_index() {

189 let text = "hello\nworld";

190 let index = LineIndex::new(text);

191 assert_eq!(

code-block-exports-no-color.org (https://github.com/wallyqs/org-ruby.git) Org · 466 lines

96 #+begin_src emacs-lisp

97 (message "hello world")

98 #+end_src

99

158 Hello world!

159 Hello world!

160 Hello world!

362 Hello world!

363 Hello world!

364 #+end_example

365

408 #+name: hello_ruby_exports_both_long

409 #+begin_src ruby :exports both

410 hello = <<HELLO

411 The following is a text

412 that will contain at least 10 lines or more

kernel.c (https://gitlab.com/bluehole/myos-32bit) C · 108 lines

34 SetTextColour(BRIGHTBLUE);

35 clear();

36 kprintf("\t****************Hello Tiny OS-32****************\n");

37 kprintf("\t*****************Keep Patience******************\n");

38 kprintf("\t================================================\n");

100 // box(100,100,400,400);

101 // init_windows();

102 // errmsgbox("Test Error$","Hello World this is not enough$");

103 // displaymessages(100,100,"Hello World$",4);

active_admin.rb.erb (https://github.com/macfanatic/active_admin.git) Ruby HTML · 209 lines

26 #

27 # eg:

28 # config.default_namespace = :hello_world

29 #

30 # This will create resources in the HelloWorld module and

31 # will namespace routes to /hello_world/*

32 #

33 # To set no namespace by default, use:

inline_editing_content.feature (https://github.com/markn86/moodle.git) Gherkin Specification · 192 lines

45 And I switch to "h5p-player" class iframe

46 And I switch to "h5p-iframe" class iframe

47 And I should see "Hello world!"

48 And I switch to the main frame

49 # Modify the H5P content using the edit button (which opens the H5P editor).

57 And I switch to "h5p-iframe" class iframe

58 # Check the H5P content has changed.

59 And I should not see "Hello world!"

60 And I should see "It's a Wonderful Life!"

61 And I switch to the main frame

67 And I switch to "h5p-player" class iframe

68 And I switch to "h5p-iframe" class iframe

69 And I should not see "Hello world!"

70 And I should see "It's a Wonderful Life!"

71 And I switch to the main frame

ap4r_client.rb (https://github.com/futonaka/ap4r.git) Ruby · 132 lines

14 # Examples: The part of calling next asynchronous logics in a controller in the HelloWorld Sample.

15 #

16 # req = WorldRequest.new([:world_id => 1, :message => "World"})

17 # ap4r.async_to({:controller => 'async_world', :action => 'execute'},

77 #

78 # ap4r.async_to({:controller => 'next_controller', :action => 'next_action'}) do

79 # body :world, World.find(1)

80 # body :message, "World"

120 #

121 # ap4r.transaction do

122 # req = WorldRequest.new([:world_id => 1, :message => "World"})

123 # ap4r.async_to({:controller => 'async_world', :action => 'execute'},

124 # {:world_id => 1, :message => "World"})

125 #

126 # render :action => 'response'

test-generate-application.ss (https://github.com/jsjohnst/moby-scheme.git) Scheme · 166 lines

46 (define test-pinholes (make-test "pinholes.ss"))

47 (define test-rectangles (make-test "rectangles.ss"))

48 (define test-hello-world (make-test "hello-world.ss"))

49 (define test-approx-equal (make-test "approx-equal.ss"))

50 (define test-struct-question (make-test "struct-question.ss"))

69 (define test-local (make-test "local.ss"))

70

71 (define test-gui-world-hello-world (make-test "gui-world-hello-world.ss"))

72 (define test-gui-world-drop-down (make-test "gui-world-drop-down.ss"))

75 (define test-gui-world-checkbox (make-test "gui-world-checkbox.ss"))

76 (define test-gui-world-location (make-test "gui-world-location.ss"))

77

78 (define test-simple-bootstrap-game (make-test "simple-bootstrap-game.ss"))

120 #;test-parse-google-maps-places

121 #;test-grocery-shopper

122 #;test-gui-world-hello-world

123 #;test-gui-world-drop-down

SqlResultsTest.java (http://mycila.googlecode.com/svn/) Java · 83 lines ✨ Summary

This Java code tests a database connection using H2, a lightweight relational database. It creates three test databases and runs various queries to verify data insertion and retrieval functionality, including testing byte arrays, Java objects, blobs, clobs, and arrays as column values. The output is printed to the console for verification purposes.

63 @Test

64 public void test_insert_complex() throws Exception {

65 db3.prepare("INSERT INTO TESTTYPES(c13) VALUES(?)").setBytes(1, "hello".getBytes()).commit(); // byte arrays

66 db3.prepare("INSERT INTO TESTTYPES(c14) VALUES(?)").setObject(1, UUID.randomUUID()).commit(); // java object seralized

67 db3.prepare("INSERT INTO TESTTYPES(c18) VALUES(?)").setBlob(1, new SerialBlob("hello".getBytes())).commit(); // blob

68 db3.prepare("INSERT INTO TESTTYPES(c19) VALUES(?)").setClob(1, new SerialClob("hello".toCharArray())).commit(); // clob

69 db3.prepare("INSERT INTO TESTTYPES(column21) VALUES(?)").setObjects(1, new Object[]{1, "h", 'R'}).commit(); // array

70 System.out.println(db3.prepare("SELECT * FROM TESTTYPES").query());

Menubar.File.js (https://gitlab.com/rs15010411/three.js) JavaScript · 335 lines

298 var parameters = {

299 files: [

300 { 'url': 'data:text/plain;base64,' + window.btoa( "Hello, World" ), 'filename': 'app/test.txt' }

301 ]

302 };

test-openpty.c (https://gitlab.com/changlimin/gnulib) C · 111 lines

16

17 /* Written by Simon Josefsson <simon@josefsson.org>, 2009

18 and Bruno Haible <bruno@clisp.org>, 2010. */

19

20 #include <config.h>

74 /* Write into the master side. */

75 {

76 static const char input[] = "Hello worst\177\177ld!\n";

77

78 if (write (master, input, strlen (input)) < (int) strlen (input))

87 char buf[100];

88 int res = read (slave, buf, sizeof (buf));

89 static const char expected[] = "Hello world!\n";

90

91 if (res < 0)

tempo-tests.el (https://gitlab.com/RobertCochran/emacs) Emacs Lisp · 228 lines

85 (cl-letf (((symbol-function 'read-string) (lambda (&rest _) "world!")))

86 (tempo-insert-template 'tempo-template-test nil))

87 (should (equal (buffer-string) "hello world! world!")))))

88

89 (ert-deftest tempo-&-element-test ()

182 "Testing template with nil elements."

183 (with-temp-buffer

184 (tempo-define-template "test" '("Hello," nil " World!"))

185 (tempo-insert-template 'tempo-template-test nil)

186 (should (equal (buffer-string) "Hello, World!"))))

212 "Testing expansion of a template with a tag."

213 (with-temp-buffer

214 (tempo-define-template "test" '("Hello, World!") "hello")

215 (insert "hello")

220 "Testing expansion of a template with a tag, with a partial match."

221 (with-temp-buffer

222 (tempo-define-template "test" '("Hello, World!") "hello")

223 (insert "hel")

224 (tempo-complete-tag)

pages_spec.rb (https://github.com/metaminded/contentr.git) Ruby · 73 lines

8 content_page = create(:page, name: 'info', parent: a.default_page,

9 slug: 'info', published: true, page_type: create(:page_type))

10 paragraph = create(:paragraph, page: content_page, body: 'hello world!', visible: true)

11 paragraph.publish!

12 visit "/en/articles/#{a.id}/info"

13 expect(content_page.paragraphs.count).to be 1

14 expect(page).to have_content('hello world!')

15 end

16

19 a = create(:article)

20 visit article_path(id: a)

21 expect(page).to have_no_content('Hello World!')

22 click_link 'body'

23 select 'Standard', from: 'choose-paragraph-type'

BridgeTest.as (https://github.com/scho/melomel.git) ActionScript · 217 lines

159 {

160 // Create proxy for object

161 var object:Object = {testFunc:function(name:String):String{return "Hello " + name}};

162 var proxy:ObjectProxy = bridge.objectProxyManager.addItem(object);

163

169 // Check send for correct data and send data to bridge

170 socket.addEventListener("send", function(event:DataEvent):void{

171 Assert.assertEquals('<return value="Hello World" dataType="string"/>', event.data);

172 }, false, 100);

173 socket.receive('<invoke object="' + proxy.id + '" method="testFunc"><args><arg value="World" dataType="string"/></args></invoke>');

AbstractSessionTest.java (https://github.com/derickbailey/qedserver.git) Java · 175 lines

87

88 // confirm that client1 has same session attributes as client2

89 assertTrue(client2.setAttribute("/contextA", cookie2, "hello", "world"));

90 assertTrue(client1.hasAttribute("/contextA", cookie2, "hello", "world"));

guidialog.h (https://bitbucket.org/thunderk/stormwar.git) C Header · 188 lines

35 *

36 * dialog = GuiDialog_new(GUIDIALOG_OKCANCEL, dialogcallback);

37 * GuiDialog_addParagraph(dialog, "Hello World !");

38 * GuiDialog_addTextInput(dialog, "answer", "How are you today ?", NULL, NULL);

39 * GuiDialog_launch(dialog);

tag.rb (https://github.com/royratcliffe/rails.git) Ruby · 135 lines

81 # # Get funky: assert that there is a "div", with an "ul" ancestor

82 # # and an "li" parent (with "class" = "enum"), and containing a

83 # # "span" descendant that contains text matching /hello world/

84 # assert_tag tag: "div",

85 # ancestor: { tag: "ul" },

87 # attributes: { class: "enum" } },

88 # descendant: { tag: "span",

89 # child: /hello world/ }

90 #

91 # <b>Please note</b>: +assert_tag+ and +assert_no_tag+ only work

ActorDSLSpec.scala (https://github.com/amir343/akka.git) Scala · 235 lines

28 "function as implicit sender" in {

29 implicit val i = inbox()

30 echo ! "hello"

31 i.receive() must be("hello")

37 val res = Future.sequence(Seq(

38 Future { i.receive() } recover { case x ⇒ x },

39 Future { Thread.sleep(100); i.select() { case "world" ⇒ 1 } } recover { case x ⇒ x },

40 Future { Thread.sleep(200); i.select() { case "hello" ⇒ 2 } } recover { case x ⇒ x }))

42 res.isCompleted must be(false)

43 i.receiver ! 42

44 i.receiver ! "hello"

45 i.receiver ! "world"

49 "support selective receives" in {

50 val i = inbox()

51 i.receiver ! "hello"

52 i.receiver ! "world"

README.md (https://github.com/christianblais/tableize.git) Markdown · 223 lines

38 <tbody>

39 <tr class="post_1">

40 <td>Hello World!</td>

41 <td>Christian Blais</td>

42 </tr>

132 `Tableize` also accepts hashes instead of regular collections. Use it the same way.

133

134 collection = [{:title => "Hello World", "author" => "Christian Blais"}]

135

136 table_for Post, collection do |t|

218 <tbody>

219 <tr class="post_1">

220 <td class="title_td">Hello World!</td>

221 </tr>

222 </tbody>

README.md (https://github.com/Neohapsis/httpShell.git) Markdown · 62 lines

25 This application encodes traffic into the words specified in this dictionary files. There are seperate dictionaries used for data sent by the client and by the server. This option specifies a dictionary file to be used by both. This file is parsed, treating each line as a seperate dictionary element. It is advisable that different dictionaries be used by both client and server. It is necessary that both the client and server have the same dictionary options specified. This works as follows: A base is defined as the number of different strings in the dictionary (the number of lines). The strings to be sent by client or server are converted into arrays of integers of the base derived from the dictionary (the number of dictionary elements). These integers then correspond to the elements in the dictionary which are concatenated together. The following is an example:

26

27 Dictionary: \[hello,world\]

28 Input String: 'A' = 0x41 = 0b1000001

29 Input Base: 256

30 Output base: 2 (2 elements in the dictionary)

31 Output Integer Array (base 2): 1,0,0,0,0,0,1

32 Output String: 'world hello hello hello hello hello world'

33

34 ###-g --clientdict \<filename\>

37 Path to the dictionary to use for server communication. See above for a better description of what this does. This defaults to \[hello,world\]

38 ###-i --clienttemplate \<filename\>

39 Path to the template file to use for client communication. This only needs to be set on the client. In addition to encoding transmission data into dictionaries, the output is placed into a template for further obfuscation. In the template one should specify where to put the data. The string '##$$##' is replaced with the specified data. If the output string is encoded into the dictionary as 'world hello hello hello hello hello world' and the template is 'foo ##$$## bar' then the overall output will be 'foo world hello hello hello hello hello world bar'. This, for example, allows you to embed data that has been encoded to look like HTML into a larger HTML template to provide context and legitimacy.

40 ###-j --servertemplate \<filename\>

41 Path to the template file to use for server communication. This only needs to be set on the server. In addition to encoding transmission data into dictionaries, the output is placed into a template for further obfuscation. In the template one should specify where to put the data. The string '##$$##' is replaced with the specified data. If the output string is encoded into the dictionary as 'world hello hello hello hello hello world' and the template is 'foo ##$$## bar' then the overall output will be 'foo world hello hello hello hello hello world bar'. This, for example, allows you to embed data that has been encoded to look like HTML into a larger HTML template to provide context and legitimacy.

browser_webconsole_bug_613280_jsterm_copy.js (https://github.com/diogogmt/mozilla-central.git) JavaScript · 79 lines

59 is(controller.isCommandEnabled("cmd_copy"), false, "cmd_copy is disabled");

60

61 HUD.jsterm.execute("'bug613280: hello world!'");

62

63 HUD.outputNode.selectedIndex = HUD.outputNode.itemCount - 1;

ScriptCalls.cpp (https://github.com/xiaofeng2009/TC2.git) C++ · 127 lines

26 #include "Platform/Define.h"

27 #include "ScriptCalls.h"

28 #include "World.h"

29 #include "Config/ConfigEnv.h"

30

79 ||!(testScript->ScriptsFree =(scriptCallScriptsFree )TRINITY_GET_PROC_ADDR(testScript->hScriptsLib,"ScriptsFree" ))

80 ||!(testScript->ScriptsVersion =(scriptCallScriptsVersion )TRINITY_GET_PROC_ADDR(testScript->hScriptsLib,"ScriptsVersion" ))

81 ||!(testScript->GossipHello =(scriptCallGossipHello )TRINITY_GET_PROC_ADDR(testScript->hScriptsLib,"GossipHello" ))

82 ||!(testScript->GOChooseReward =(scriptCallGOChooseReward )TRINITY_GET_PROC_ADDR(testScript->hScriptsLib,"GOChooseReward" ))

83 ||!(testScript->QuestAccept =(scriptCallQuestAccept )TRINITY_GET_PROC_ADDR(testScript->hScriptsLib,"QuestAccept" ))

91 ||!(testScript->GODialogStatus =(scriptCallGODialogStatus )TRINITY_GET_PROC_ADDR(testScript->hScriptsLib,"GODialogStatus" ))

92 ||!(testScript->ChooseReward =(scriptCallChooseReward )TRINITY_GET_PROC_ADDR(testScript->hScriptsLib,"ChooseReward" ))

93 ||!(testScript->ItemHello =(scriptCallItemHello )TRINITY_GET_PROC_ADDR(testScript->hScriptsLib,"ItemHello" ))

94 ||!(testScript->GOHello =(scriptCallGOHello )TRINITY_GET_PROC_ADDR(testScript->hScriptsLib,"GOHello" ))

121 Script->ScriptsInit(sConfig.GetFilename().c_str());

122

123 sWorld.SetScriptsVersion(Script->ScriptsVersion());

124

125 return true;

node_test.go (https://gitlab.com/CORP-RESELLER/dashboard) Go · 246 lines

241 s := newStore()

242 nd := newDir(s, key, 0, nil, time.Now().Add(expiration))

243 cKey, cVal := "hello", "world"

244 child := newKV(s, cKey, cVal, 0, nd, time.Now().Add(expiration))

245 return nd, child

CallbackValidatorTest.php (https://github.com/deviantintegral/symfony.git) PHP · 256 lines

240 $payloadCopy = $payload;

241 },

242 'payload' => 'Hello world!',

243 ));

244 $this->validator->validate($object, $constraint);

245 $this->assertEquals('Hello world!', $payloadCopy);

246

247 $payloadCopy = null;

IFramePortletInstanceConfiguration.java (https://github.com/danielreuther/liferay-portal.git) Java · 116 lines

70

71 @Meta.AD(

72 deflt = "var1=hello|var2=world", name = "hidden-variables",

73 required = false

74 )

2015-03-03-html-inline-semantics.md (https://gitlab.com/jnettome/marksheet) Markdown · 91 lines

74 {% highlight html %}

75 <p>

76 He said <q>“Hello World”</q> and just left.

77 </p>

78 {% endhighlight %}

80 <div class="result">

81 <p>

82 He said <q>“Hello World”</q> and just left.

83 </p>

84 </div>

89

90 *[CD]: Compact Disc

91 *[W3C]: World Wide Web Consortium

92

test-cases.scm (git://github.com/tonyg/newmoon.git) Scheme · 443 lines

143 (rt-eval '(defmacro test-case-define-outer (v1 v2)

144 `(begin

145 (define ,v1 "hello")

146 (define ,v2 "world"))))

147 (rt-eval '(test-case-define-outer xx yy))

148 (rt-expect "helloworld"

149 '(string-append xx yy))))

150

155 `(begin

156 (define ,v1 "goodbye")

157 (define ,v2 "world"))))

158 (rt-expect "goodbyeworld"

tools.tex (https://gitlab.com/essere.lab.public/qualitas.class-corpus) LaTeX · 134 lines

46 assembler syntax:

47 \begin{listing}{1}

48 .class public HelloWorld

49 .super java/lang/Object

50

59

60 ;

61 ; main() - prints out Hello World

62 ;

63 .method public static main([Ljava/lang/String;)V

68

69 ; push a string onto the stack

70 ldc "Hello World!"

71

72 ; call the PrintStream.println() method.

test_list_summary.py (https://gitlab.com/msapiro/postorius) Python · 196 lines

188 ```

189 def function:

190 print('Hello World')

191 ```

192 """

en.yml (https://github.com/lucasmpavelski/PharmaCC.git) YAML · 249 lines

3

4 en:

5 hello: "Hello world"

6

7 errors:

project01.cpp (https://gitlab.com/cmarch314/PythonProjects) C++ · 286 lines

4 // Version :

5 // Copyright :

6 // Description : Hello World in C++, Ansi-style

7 //============================================================================

8

01pharSimple.php (https://gitlab.com/techniconline/kmc) PHP · 112 lines

56 echo date('H:i:s'), " Add some data", EOL;

57 $objPHPExcel->setActiveSheetIndex(0)

58 ->setCellValue('A1', 'Hello')

59 ->setCellValue('B2', 'world!')

60 ->setCellValue('C1', 'Hello')

61 ->setCellValue('D2', 'world!');

test_attributes.rb (https://github.com/jmazzi/attrtastic.git) Ruby · 421 lines

324 <li class="attribute">

325 <span class="label">Title</span>

326 <span class="value">Hello World!</span>

327 </li>

328 </ol>

399 <li class="attribute">

400 <span class="label">Title</span>

401 <span class="value">Hello World!</span>

402 </li>

403 </ol>

LocalizeWCWebContentTemplateWCDTest.java (https://github.com/lululiferay/liferay-portal.git) Java · 217 lines

71 selenium.waitForPageToLoad("30000");

72 assertEquals(RuntimeVariables.replace(

73 "Hello World Localized Article"),

74 selenium.getText("//h1[@class='header-title']"));

75 assertEquals(RuntimeVariables.replace(

121 assertEquals(RuntimeVariables.replace("Status: Draft"),

122 selenium.getText("//span[@class='workflow-status']"));

123 assertEquals("Hello World Page Name",

124 selenium.getValue("//input[@id='page-name']"));

125 assertEquals("Hello World Page Description",

204 RuntimeVariables.replace("Publish"));

205 selenium.waitForPageToLoad("30000");

206 assertEquals(RuntimeVariables.replace("Hello World Page Name"),

207 selenium.getText("//td[@class='page-name']"));

208 assertEquals(RuntimeVariables.replace(

message_test.go (https://gitlab.com/akomba/ether-bot-wallet) Go · 158 lines

28 // Tests whether a message can be wrapped without any identity or encryption.

29 func TestMessageSimpleWrap(t *testing.T) {

30 payload := []byte("hello world")

31

32 msg := NewMessage(payload)

54 t.Fatalf("failed to create crypto key: %v", err)

55 }

56 payload := []byte("hello world")

57

58 msg := NewMessage(payload)

87 t.Fatalf("failed to create recipient crypto key: %v", err)

88 }

89 payload := []byte("hello world")

90

91 msg := NewMessage(payload)

opengl.py (https://github.com/titusz/freetype-py.git) Python · 122 lines

13

14 base, texid = 0, 0

15 text = '''Hello World !'''

16

17 def on_display( ):

interactiveshell.py (git://github.com/ipython/ipython.git) Python · 669 lines ✨ Summary

This is a class implementation of an interactive shell for IPython, a Python interpreter. It provides a terminal-based interface for users to input and execute Python code. The class handles various features such as parsing user input, executing code, displaying output, and managing the shell’s state. It also includes magic functions that provide additional functionality, such as pasting code from the clipboard or clearing the screen.

582 In [8]: %cpaste

583 Pasting code; enter '--' alone on the line to stop.

584 :>>> a = ["world!", "Hello"]

585 :>>> print " ".join(sorted(a))

586 :--

587 Hello world!

588 """

589

COPYING (https://freespeech.svn.sourceforge.net/svnroot/freespeech) Unknown · 375 lines

1

2 GnomeHello is Copyright (C) 1999 Havoc Pennington. The program is

3 released to you under two licenses, at your option; the first is

4 similar to that of the X Window System, the second is the GNU General

faq-items1.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 687 lines

349 abbreviations and other programming support for over 60 programming

350 languages and file types, including C, C++, C#,

351 Cobol, HTML, Java, Javascript, Lisp, Pascal, Perl, PHP, Python,

352 TCL, Visual Basic and XML. The full list can be found on the

353 <ulink url="http://www.jedit.org/index.php?page=features">jEdit web

577 <para>

578 There is almost always someone from the developer team

579 signed on the channel. Just say hello and describe your problem.

580 </para></answer>

581 </qandaentry>

Android.mk (https://bitbucket.org/Tsiannian/cocos2d-x.git) Makefile · 27 lines

3 include $(CLEAR_VARS)

4

5 LOCAL_MODULE := hellolua_shared

6

7 LOCAL_MODULE_FILENAME := libhellolua

8

9 LOCAL_SRC_FILES := hellolua/main.cpp \

10 ../../Classes/AppDelegate.cpp \

11 ../../../../scripting/lua/cocos2dx_support/CCLuaEngine.cpp \

GppFunctionalTest.groovy (https://bitbucket.org/nbargnesi/idea.git) Groovy · 616 lines

505 @Trait

506 class Some {

507 public void doSmth() { println "hello" }

508 }

509 Some s

StyleOptionPane.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 453 lines ✨ Summary

This Java code is a graphical user interface (GUI) for editing syntax highlighting settings. It allows users to select font styles, colors, and sizes for text editors. The GUI consists of checkboxes and buttons that enable users to customize their text editor’s appearance. When the “OK” button is clicked, the selected settings are applied to the text editor.

248 setOpaque(true);

249 setBorder(StyleOptionPane.noFocusBorder);

250 setText("Hello World");

251 } //}}}

252

overload_extend.scm (https://swig.svn.sourceforge.net/svnroot/swig) Lisp · 13 lines

4 (error "test integer bad"))

5

6 (if (not (= (Foo-test f "hello") 2))

7 (error "test string bad"))

8

template_default_arg_runme.java (https://swig.svn.sourceforge.net/svnroot/swig) Java · 157 lines ✨ Summary

This Java code tests a C++ template library generated by SWIG, which allows for interoperability between C++ and Java. It creates instances of various classes with different templates and calls methods on them to verify that the correct results are returned. The test cases cover various scenarios, including default arguments, overloading, and type conversions.

16 public static void main(String argv[]) {

17 {

18 Hello_int helloInt = new Hello_int();

19 helloInt.foo(Hello_int.Hi.hi);

50 }

51 {

52 X_hello_unsigned x = new X_hello_unsigned();

53 x = new X_hello_unsigned(20.0);

54 x = new X_hello_unsigned(20.0, new Hello_int());

55 }

56 {

57 Y_hello_unsigned y = new Y_hello_unsigned();

58 y.meth(20.0, new Hello_int());

std_string.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 153 lines

23 can be used as

24

25 s="hello world"

26 s2=test_value(s)

27 assert(s==s2)

main.xml (http://softkeyboard.googlecode.com/svn/) XML · 13 lines

8 android:layout_width="fill_parent"

9 android:layout_height="wrap_content"

10 android:text="@string/hello"

11 />

12 </LinearLayout>

example.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 28 lines

8 #define CCONST 'x'

9 #define CCONST2 '\n'

10 #define SCONST "Hello World"

11 #define SCONST2 "\"Hello World\""

runme.pl (https://swig.svn.sourceforge.net/svnroot/swig) Perl · 74 lines ✨ Summary

The Perl code demonstrates the interaction between a Perl module and its C implementation. It sets variables, prints their values from both languages, updates a structure variable, and attempts to modify read-only variables using eval. The output shows the values printed from both languages and the errors encountered when trying to modify read-only variables.

16 $example::fvar = 3.14159;

17 $example::dvar = 2.1828;

18 $example::strvar = "Hello World";

19 $example::iptrvar= example::new_int(37);

20 $example::ptptr = example::new_Point(37,42);

primitives_tests.cpp (http://hadesmem.googlecode.com/svn/trunk/) C++ · 0 lines ✨ Summary

This C++ code tests the functionality of the Boost.Phoenix library, specifically its argument handling and value extraction capabilities. It creates various variables and constants, then uses Phoenix functions to extract values from them, testing for correctness and compile-time errors. The test results are reported using BOOST_TEST macros.

37 cout << val("Hello,")() << val(' ')() << val("World")() << endl;

38 BOOST_TEST(val(3)() == 3);

39 BOOST_TEST(val("Hello, world")() == std::string("Hello, world"));

40 BOOST_TEST(val(_1)(i1) == i1);

41

node-app.js (https://github.com/apalsapure/pubnub-api.git) JavaScript · 35 lines

29 pubnub.publish({

30 channel : "my_browser_channel",

31 message : 'Hello from Node!'

32 });

33 }, 1000 );

id.po (https://code.google.com/p/msysgit/) Unknown · 27 lines

1 # translation of hello-csharp-forms-0.15-pre5.po to Indonesian

2 # Copyright (C) 2006 Yoyodyne, Inc.

3 # This file is distributed under the same license as the PACKAGE package.

6 msgid ""

7 msgstr ""

8 "Project-Id-Version: hello-csharp-forms-0.15-pre5\n"

9 "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"

10 "PO-Revision-Date: 2006-09-27 20:19+0700\n"

19 #: hello.cs:29

20 msgid "Hello, world!"

21 msgstr "Hello, world!"

22

23 #: hello.cs:36

24 #, csharp-format

25 msgid "This program is running as process number {0}."

zh_HK.po (https://code.google.com/p/msysgit/) Unknown · 25 lines

1 # Chinese (Hong Kong) translation of hello-csharp-forms.

2 # Copyright (C) 2006 Yoyodyne, Inc.

3 # Abel Cheung <abelcheung@gmail.com>, 2006.

5 msgid ""

6 msgstr ""

7 "Project-Id-Version: hello-csharp-forms 0.15-pre5\n"

8 "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"

9 "PO-Revision-Date: 2006-07-05 15:40+0800\n"

17 #: hello.cs:29

18 msgid "Hello, world!"

19 msgstr "???"

20

21 #: hello.cs:36

22 #, csharp-format

23 msgid "This program is running as process number {0}."

cpp_namespace.scm (https://swig.svn.sourceforge.net/svnroot/swig) Lisp · 43 lines ✨ Summary

This Lisp code tests various functions and variables to ensure they return expected values, throwing an error if any assertion fails. It creates instances of different test classes (Test, Test2, Test3, Test4, Test5) and calls their methods with specific arguments, verifying the method names are correct. If all assertions pass, it exits with a success code (0).

16 (error "Bad return value!"))

17

18 (weird "hello" 4)

19

20 ;; (delete-Test t)

ignore_parameter_runme.R (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 11 lines

4 cacheMetaData(1)

5

6 unittest(jaguar(1, 1.0), "hello")

7 q(save="no")

8