100+ results for 'helloworld java'

Not the results you expected?

CompositeComponentClientBehaviorTestCase.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 274 lines

63 public void testSimpleClientBehaviorDefault() throws Exception

64 {

65 HelloWorld helloWorld = new HelloWorld();

66

67 facesContext.getExternalContext().getRequestMap().put("helloWorldBean",

208 public void testCompositeClientBehavior() throws Exception

209 {

210 HelloWorld helloWorld = new HelloWorld();

211

212 facesContext.getExternalContext().getRequestMap().put("helloWorldBean",

241 public void testCompositeDoubleClientBehavior() throws Exception

242 {

243 HelloWorld helloWorld = new HelloWorld();

244

245 facesContext.getExternalContext().getRequestMap().put("helloWorldBean",

ExtDynamicClass.as (https://github.com/changm/tessa.git) ActionScript · 217 lines

38

39 var SECTION = "Definitions"; // provide a document reference (ie, ECMA section)

40 var VERSION = "Clean AS2"; // Version of JavaScript or ECMA

41 var TITLE = "Extend Dynamic Class"; // Provide ECMA section title or a description

42 var BUGNUMBER = "";

53 * For example, a test might look like this:

54 *

55 * var helloWorld = "Hello World";

56 *

57 * AddTestCase(

58 * "var helloWorld = 'Hello World'", // description of the test

59 * "Hello World", // expected result

60 * helloWorld ); // actual result

ImplicitReferenceTest.java (https://gitlab.com/cde/debian_android-tools_libsmali-java) Java · 260 lines

106 ".super Ljava/lang/Object;\n" +

107 ".field public static field1:Ljava/lang/reflect/Method; = LHelloWorld;->toString()V\n" +

108 ".field public static field2:Ljava/lang/reflect/Method; = LHelloWorld;->V()V\n" +

243 ".field public static field2:Ljava/lang/reflect/Field; = LHelloWorld;->V:I\n" +

244 ".field public static field3:Ljava/lang/reflect/Field; = LHelloWorld;->I:I";

245

246 String expected = "" +

248 ".super Ljava/lang/Object;\n" +

249 "# static fields\n" +

250 ".field public static field1:Ljava/lang/reflect/Field; = LHelloWorld;->someField:I\n" +

251 ".field public static field2:Ljava/lang/reflect/Field; = LHelloWorld;->V:I\n" +

252 ".field public static field3:Ljava/lang/reflect/Field; = LHelloWorld;->I:I\n";

253

254 BaksmaliOptions options = new BaksmaliOptions();

ExtInternalClass.as (https://github.com/changm/tessa.git) ActionScript · 263 lines

40

41 var SECTION = "Definitions"; // provide a document reference (ie, ECMA section)

42 var VERSION = "Clean AS2"; // Version of JavaScript or ECMA

43 var TITLE = "Extend Default Class"; // Provide ECMA section title or a description

44 var BUGNUMBER = "";

55 * For example, a test might look like this:

56 *

57 * var helloWorld = "Hello World";

58 *

59 * AddTestCase(

60 * "var helloWorld = 'Hello World'", // description of the test

61 * "Hello World", // expected result

62 * helloWorld ); // actual result

DynExtDefaultClass.as (https://github.com/bsdf/trx.git) ActionScript · 297 lines

48

49 var SECTION = "Definitions"; // provide a document reference (ie, ECMA section)

50 var VERSION = "AS 3.0"; // Version of JavaScript or ECMA

51 var TITLE = "Dynamic Class Extends Default Class"; // Provide ECMA section title or a description

52 //var BUGNUMBER = "";

63 * For example, a test might look like this:

64 *

65 * var helloWorld = "Hello World";

66 *

67 * AddTestCase(

68 * "var helloWorld = 'Hello World'", // description of the test

69 * "Hello World", // expected result

70 * helloWorld ); // actual result

Upload_test.php (https://bitbucket.org/saifshuvo/codeigniter.git) PHP · 268 lines

60 {

61 $dir = 'uploads';

62 $isnew = 'helloworld.txt';

63 $exists = 'hello-world.txt';

64 $this->ci_vfs_create($exists, 'Hello world.', $this->ci_app_root, $dir);

223 $this->ci_vfs_create($file1, 'The billy goat was waiting for them.', $this->ci_vfs_root, $dir);

224 $this->ci_vfs_create($file2, '', $this->ci_vfs_root, $dir);

225 $this->ci_vfs_create($file3, '<script type="text/javascript">alert("Boo! said the billy goat")</script>', $this->ci_vfs_root, $dir);

226

227 $this->upload->file_temp = $this->ci_vfs_path($file1, $dir);

hello_world.wsdl (https://github.com/liucong/jms4cxf2.git) Web Services Description Language · 245 lines

18 under the License.

19 -->

20 <wsdl:definitions name="HelloWorld" targetNamespace="http://apache.org/hello_world"

21 xmlns="http://schemas.xmlsoap.org/wsdl/"

22 xmlns:jms="http://cxf.apache.org/transports/jms"

183 jndiDestinationName="dynamicQueues/test.cxf.jmstransport.queue">

184

185 <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>

186 <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://localhost:61616"/>

PipedWriterTest.java (https://gitlab.com/cde/debian_android-tools_android-platform-libcore) Java · 477 lines

71

72 /**

73 * java.io.PipedWriter#PipedWriter(java.io.PipedReader)

74 */

75 public void test_ConstructorLjava_io_PipedReader() throws Exception {

76 // Test for method java.io.PipedWriter(java.io.PipedReader)

77 char[] buf = new char[10];

78 "HelloWorld".getChars(0, 10, buf, 0);

108

109 /**

110 * java.io.PipedWriter#connect(java.io.PipedReader)

111 */

112 public void test_connectLjava_io_PipedReader() throws Exception {

113 // Test for method void java.io.PipedWriter.connect(java.io.PipedReader)

114 char[] buf = new char[10];

115 "HelloWorld".getChars(0, 10, buf, 0);

CACIDiscoveryNonJunitTests.java (https://github.com/societies/SOCIETIES-Platform.git) Java · 209 lines

1 package org.societies.personalisation.CACIDiscovery.test;

2

3 import java.io.Serializable;

4 import java.net.URI;

5 import java.net.URISyntaxException;

6 import java.util.ArrayList;

7 import java.util.HashMap;

8 import java.util.List;

22 static ICAUITaskManager cauiTaskManager = null;

23

24 private static final String SERVICE_SRI1 = "css://requestor.societies.org/HelloWorld";

25 private static final String SERVICE_TYPE = "radio_service";

26 private static ServiceResourceIdentifier serviceSri1;

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

5 \subsection{javap}

6 {\tt javap} lists the contents of a Java classfile.

7 It's particularly bad at displaying corrupted

8 classfiles.

50

51 ;

52 ; standard initializer (calls java.lang.Object's initializer)

53 ;

54 .method public <init>()V

65

66 ; push System.out onto the stack

67 getstatic java/lang/System/out Ljava/io/PrintStream;

68

69 ; push a string onto the stack

71

72 ; call the PrintStream.println() method.

73 invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V

74

75 ; done

FinExtDynamicClass.as (https://github.com/changm/tessa.git) ActionScript · 250 lines

53

54 var SECTION = "Definitions\Ext"; // provide a document reference (ie, ECMA section)

55 var VERSION = "AS3"; // Version of JavaScript or ECMA

56 var TITLE = "Final Class Extends Dynamic Class Default Methods"; // Provide ECMA section title or a description

57 //var BUGNUMBER = "";

68 * For example, a test might look like this:

69 *

70 * var helloWorld = "Hello World";

71 *

72 * AddTestCase(

73 * "var helloWorld = 'Hello World'", // description of the test

74 * "Hello World", // expected result

75 * helloWorld ); // actual result

DynExtDefaultClassPubStat.as (https://github.com/bsdf/trx.git) ActionScript · 222 lines

41

42 var SECTION = "Definitions"; // provide a document reference (ie, ECMA section)

43 var VERSION = "AS 3.0"; // Version of JavaScript or ECMA

44 var TITLE = "public static extend Default Class"; // Provide ECMA section title or a description

45 var BUGNUMBER = "";

56 * For example, a test might look like this:

57 *

58 * var helloWorld = "Hello World";

59 *

60 * AddTestCase(

61 * "var helloWorld = 'Hello World'", // description of the test

62 * "Hello World", // expected result

63 * helloWorld ); // actual result

ClassDataTest.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 264 lines

38 public void setUp()

39 {

40 a.setSourceFileName("com/example/HelloWorld.java");

41 b.setSourceFileName("com/example/HelloWorld.java");

42 c.setSourceFileName("com/example/HelloWorld.java");

43 defPckg.setSourceFileName("DefaultPackageClass.java");

228 {

229 a.setSourceFileName(null);

230 assertEquals("com/example/HelloWorld.java", a.getSourceFileName());

231 a.setSourceFileName("HelloWorld.java");

232 assertEquals("com/example/HelloWorld.java", a.getSourceFileName());

233

234 ClassData d = new ClassData("org.jaxen.expr.IdentitySet$IdentityWrapp");

HelloWorld.html (https://github.com/derickbailey/qedserver.git) HTML · 145 lines

3 <HTML>

4 <HEAD>

5 <!-- Generated by javadoc (build 1.6.0_22) on Thu Nov 11 09:12:14 EST 2010 -->

6 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">

7 <TITLE>

8 Uses of Class com.acme.HelloWorld (Jetty Server Project 6.1.26 API)

9 </TITLE>

10

11 <META NAME="date" CONTENT="2010-11-11">

12

13 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../javadoc.css" TITLE="Style">

14

15 <SCRIPT type="text/javascript">

DumpBytes.java (https://github.com/ccrouch/rhq.git) Java · 373 lines

19 package org.rhq.enterprise.communications.util;

20

21 import java.io.File;

22 import java.io.FileInputStream;

24 /**

25 * Dumps hexadecimal, decimal, octal and binary representations of any given File, String or byte array. For example,

26 * the different representations for the string "helloworld" will show:

27 *

28 * <p>Hexadecimal:</p>

29 *

30 * <PRE>

31 * 68 65 6c 6c 6f 77 6f 72 6c 64 helloworld

32 * </PRE>

33 *

ExtDynamicImplDefDefStat.as (https://github.com/bsdf/trx.git) ActionScript · 246 lines

38

39 var SECTION = "Definitions"; // provide a document reference (ie, ECMA section)

40 var VERSION = "Clean AS2"; // Version of JavaScript or ECMA

41 var TITLE = "Extend Dynamic Class Implement 2 Default Interfaces"; // Provide ECMA section title or a description

42 var BUGNUMBER = "";

53 * For example, a test might look like this:

54 *

55 * var helloWorld = "Hello World";

56 *

57 * AddTestCase(

58 * "var helloWorld = 'Hello World'", // description of the test

59 * "Hello World", // expected result

60 * helloWorld ); // actual result

Main.java (https://gitlab.com/androidopensourceproject/platform-art) Java · 235 lines

15 */

16

17 import java.util.ArrayList;

18 import java.util.Arrays;

19 import java.util.Iterator;

20 import java.util.List;

131 };

132 thread.start();

133 thread.setName("HelloWorld"); // b/17302037 hang if setName called after start

134 if (!thread.getName().equals("HelloWorld")) {

136 }

137 thread.join();

138 if (!thread.getName().equals("HelloWorld")) {

139 throw new AssertionError("Unexpected thread name after join: " + thread.getName());

140 }

RunningExtendedAppletSamples.html (https://gitlab.com/essere.lab.public/qualitas.class-corpus) HTML · 32 lines

6 <title>Run HelloWorld Extended Applet Sample - Java Card 3 Development

7 </title></head><body class="body"><a name="RunningExtendedAppletSamples"></a><h2>Run <tt>HelloWorld</tt> Extended Applet Sample</h2><p class="p">This <tt>HelloWorld</tt> sample demonstrates the basic structure of a Java Card 3 platform

8 extended applet that developers can use to develop, deploy, create, execute, delete, and unload

9 extended applets. It is a minimal extended applet utilizing the simplest source code

10 and meta-files. This sample contains one project that demonstrates the function of an

11 extended applet.</p><p class="p">Running the sample consists of using the IDE to start the <tt>HelloWorld</tt>

12 applet. When running, the project installs the applet, processes an incoming APDU, and responds

13 with a text greeting in the Output window.</p>

14

15 <h2>Before You Begin</h2>

16 <p class="p">Before performing the following procedure, either download and install the Java Card 3

17 Development Kit, Connected Edition on your development system or download the sample from

18 the Kenai Java Card 3 repository. See <a href="GetAdditionalExtendedAppletSamples.html">Getting Additional Extended Applet Samples</a> for instructions required to download samples

19 from the Kenai Java Card 3 repository.</p>

20

21 <hr><p class="p"><b>Note - </b>Refer to the Development Kit documentation for additional details about working with the

DynExtDefaultClassPub.as (https://github.com/adobe/avmplus.git) ActionScript · 235 lines

8

9 // var SECTION = "Definitions"; // provide a document reference (ie, ECMA section)

10 // var VERSION = "AS3"; // Version of JavaScript or ECMA

11 // var TITLE = "Public Class Extends Default Class"; // Provide ECMA section title or a description

12 var BUGNUMBER = "";

22 * For example, a test might look like this:

23 *

24 * var helloWorld = "Hello World";

25 *

26 * Assert.expectEq(

27 * "var helloWorld = 'Hello World'", // description of the test

28 * "Hello World", // expected result

29 * helloWorld ); // actual result

app-engine-part-1.md (https://gitlab.com/learn-co-curriculum/cssi-teacher-bootcamp) Markdown · 121 lines

3 ### GAE as a Connector

4 * Platform as a Service (Paas) to build/run applications hosted on Google's servers

5 * App Engine connects the back-end (the Python scripts) and front-end (the HTML/CSS/JavaScript) for you with minimal work on your end

6

7

67 <body>

68 <h1>Hello World!</h1>

69 <img height="100px" width="150px" src="https://blackgeoscientists.files.wordpress.com/2014/06/helloworld.jpg" alt="A cute Pic of a Dude on the World">

70 <h2>How are ya?</h2>

71 </body>

97 ```python

98 jinja_environment = jinja2.Environment(

99 loader=jinja2.FileSystemLoader(os.path.dirname(__file__)))#this little bit sets jinja's relative directory to match the directory name(dirname) of the current __file__, in this case, helloworld.py

100 ```

101 4. Use get_template method on your jinja_environment path

CMakeLists.txt (https://github.com/LinjieChen/Slicer-1.git) CMake · 138 lines

3 # Since not all dashboard are running cmake 2.8.1, let's set the legacy variable

4 if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_LESS "2.8.1")

5 set(Java_JAVA_EXECUTABLE ${JAVA_RUNTIME})

6 set(Java_JAVAC_EXECUTABLE ${JAVA_COMPILE})

10 if(NOT Java_JAVAC_EXECUTABLE)

11 message(STATUS "Skipping installation of CLI/Application/Java - Set Java_JAVAC_EXECUTABLE variable to fix the problem")

12 return()

13 endif()

36 if( Java_JAVAC_EXECUTABLE )

37 # message (STATUS "Java run time = ${Java_JAVA_EXECUTABLE}, compiler = ${Java_JAVAC_EXECUTABLE}, jar = ${Java_JAR_EXECUTABLE}")

38

39 # source files

49 endif( WIN32 )

50

51 # message (STATUS "Adding custom java compile target: ${Java_JAVAC_EXECUTABLE} -d ${CMAKE_CURRENT_BINARY_DIR} -classpath ${${CLP}_CLASSPATH} ${${CLP}_JAR_SRCS}")

52 add_custom_target( ${CLP}.jar.classes ALL

53 ${Java_JAVAC_EXECUTABLE} -d ${CMAKE_CURRENT_BINARY_DIR} -classpath ${${CLP}_CLASSPATH} ${${CLP}_JAR_SRCS}

HelloWorldResourceAdapter.java (https://github.com/rzimmermann/jboss-as.git) Java · 62 lines

23 package org.jboss.as.test.integration.rar;

24

25 import javax.resource.ResourceException;

26 import javax.resource.spi.ActivationSpec;

27 import javax.resource.spi.BootstrapContext;

28 import javax.resource.spi.Connector;

29 import javax.resource.spi.ResourceAdapter;

30 import javax.resource.spi.ResourceAdapterInternalException;

31 import javax.resource.spi.TransactionSupport;

32 import javax.resource.spi.endpoint.MessageEndpointFactory;

33 import javax.transaction.xa.XAResource;

34

35 /**

example.rst (https://github.com/rillian/firefox.git) ReStructuredText · 132 lines

5 =======

6

7 .. code-block:: javascript

8

9 Cu.import("resource://gre/modules/CloudSync.jsm");

10

11 let HelloWorld = {

12 onLoad: function() {

13 let cloudSync = CloudSync();

14 console.log("CLOUDSYNC -- hello world", cloudSync.local.id, cloudSync.local.name, cloudSync.adapters);

15 cloudSync.adapters.register('helloworld', {});

16 console.log("CLOUDSYNC -- " + JSON.stringify(cloudSync.adapters.getAdapterNames()));

17

AddPortletHWDuplicateTest.java (https://github.com/azzazzel/liferay-portal.git) Java · 91 lines

13 */

14

15 package com.liferay.portalweb.portlet.helloworld.portlet.addportlethwduplicate;

16

17 import com.liferay.portalweb.portal.BaseTestCase;

24 public void testAddPortletHWDuplicate() throws Exception {

25 selenium.open("/web/guest/home/");

26 loadRequiredJavaScriptModules();

27

28 for (int second = 0;; second++) {

45 RuntimeVariables.replace("Hello World Test Page"));

46 selenium.waitForPageToLoad("30000");

47 loadRequiredJavaScriptModules();

48 assertEquals(RuntimeVariables.replace("More\u2026"),

49 selenium.getText("//a[@id='_145_addApplication']"));

SampleController.java (https://gitlab.com/perlilja/spring-boot) Java · 78 lines

17 package sample.actuator;

18

19 import java.util.Collections;

20 import java.util.Date;

21 import java.util.LinkedHashMap;

22 import java.util.Map;

36

37 @Autowired

38 private HelloWorldService helloWorldService;

39

40 @RequestMapping(value = "/", method = RequestMethod.GET)

42 public Map<String, String> hello() {

43 return Collections.singletonMap("message",

44 this.helloWorldService.getHelloMessage());

45 }

46

FinExtPublicClassPub.as (https://github.com/bsdf/trx.git) ActionScript · 225 lines

52

53 var SECTION = "Definitions\Ext"; // provide a document reference (ie, ECMA section)

54 var VERSION = "AS 3.0"; // Version of JavaScript or ECMA

55 var TITLE = "Final Class Extends Public Class Public Methods"; // Provide ECMA section title or a description

56 var BUGNUMBER = "";

67 * For example, a test might look like this:

68 *

69 * var helloWorld = "Hello World";

70 *

71 * AddTestCase(

72 * "var helloWorld = 'Hello World'", // description of the test

73 * "Hello World", // expected result

74 * helloWorld ); // actual result

FinExtDefaultClassPub.as (https://github.com/bsdf/trx.git) ActionScript · 224 lines

51

52 var SECTION = "Definitions\Ext"; // provide a document reference (ie, ECMA section)

53 var VERSION = "AS 3.0"; // Version of JavaScript or ECMA

54 var TITLE = "Final Class Extends Default Class Public Methods"; // Provide ECMA section title or a description

55 var BUGNUMBER = "";

66 * For example, a test might look like this:

67 *

68 * var helloWorld = "Hello World";

69 *

70 * AddTestCase(

71 * "var helloWorld = 'Hello World'", // description of the test

72 * "Hello World", // expected result

73 * helloWorld ); // actual result

ExtDefaultImplDefDefPub.as (https://github.com/bsdf/trx.git) ActionScript · 130 lines

38

39 var SECTION = "Definitions"; // provide a document reference (ie, ECMA section)

40 var VERSION = "Clean AS2"; // Version of JavaScript or ECMA

41 var TITLE = "Extend Default Class Implement Default interface"; // Provide ECMA section title or a description

42 var BUGNUMBER = "";

53 * For example, a test might look like this:

54 *

55 * var helloWorld = "Hello World";

56 *

57 * AddTestCase(

58 * "var helloWorld = 'Hello World'", // description of the test

59 * "Hello World", // expected result

60 * helloWorld ); // actual result

JDKTimerServiceTest.java (https://github.com/esteban-aliverti/drools.git) Java · 175 lines

45 TimerService timeService = TimerServiceFactory.getTimerService( config );

46 Trigger trigger = new DelayedTrigger( 100 );

47 HelloWorldJobContext ctx = new HelloWorldJobContext( "hello world", timeService);

48 timeService.scheduleJob( new HelloWorldJob(), ctx, trigger);

58 TimerService timeService = TimerServiceFactory.getTimerService( config );

59 Trigger trigger = new DelayedTrigger( new long[] { 100, 100, 100} );

60 HelloWorldJobContext ctx = new HelloWorldJobContext( "hello world", timeService);

61 timeService.scheduleJob( new HelloWorldJob(), ctx, trigger);

72 TimerService timeService = TimerServiceFactory.getTimerService( config );

73 Trigger trigger = new DelayedTrigger( new long[] {100, 100, 100, 100, 100, 100, 100, 100} );

74 HelloWorldJobContext ctx = new HelloWorldJobContext( "hello world", timeService);

75 ctx.setLimit( 3 );

76 timeService.scheduleJob( new HelloWorldJob(), ctx, trigger);

82 public static class HelloWorldJob implements Job {

83 public void execute(JobContext c) {

84 HelloWorldJobContext ctx = (HelloWorldJobContext) c;

85 int counter = ctx.increaseCounter();

86 if ( counter > 3 ) {

PubExtPublicClassStat.as (https://github.com/bsdf/trx.git) ActionScript · 218 lines

44

45 var SECTION = "Definitions"; // provide a document reference (ie, ECMA section)

46 var VERSION = "AS 3.0"; // Version of JavaScript or ECMA

47 var TITLE = "dynamic Class Extends Public Class"; // Provide ECMA section title or a description

48 var BUGNUMBER = "";

59 * For example, a test might look like this:

60 *

61 * var helloWorld = "Hello World";

62 *

63 * AddTestCase(

64 * "var helloWorld = 'Hello World'", // description of the test

65 * "Hello World", // expected result

66 * helloWorld ); // actual result

TemperatureTableTest.java (https://github.com/Morriar/ProxyJDK.git) Java · 502 lines

405 "HelloWorld.java",

406 "HelloWorld.java", 3);

407

408 checkLocation("JSP", hello, "hello BP",

413 "HelloWorld.java",

414 "HelloWorld.java", 3);

415

416 checkLocation(null, hello, "hello BP",

480 "HelloWorld.java",

481 "HelloWorld.java", 3);

482

483 checkLocation("Java", hello, "hello BP",

484 "HelloWorld.java",

485 "HelloWorld.java", 3);

486

487 /*

InternalHelloWorldLexer.java (https://bitbucket.org/phaneesh/xtext-samples.git) Java · 803 lines

44 // ../com.np.dsl.xtext.helloworld.ui/src-gen/com/np/dsl/xtext/ui/contentassist/antlr/internal/InternalHelloWorld.g:11:7: ( 'Hello' )

45 // ../com.np.dsl.xtext.helloworld.ui/src-gen/com/np/dsl/xtext/ui/contentassist/antlr/internal/InternalHelloWorld.g:11:9: 'Hello'

46 {

47 match("Hello");

63 int _type = T__12;

64 int _channel = DEFAULT_TOKEN_CHANNEL;

65 // ../com.np.dsl.xtext.helloworld.ui/src-gen/com/np/dsl/xtext/ui/contentassist/antlr/internal/InternalHelloWorld.g:12:7: ( '!' )

66 // ../com.np.dsl.xtext.helloworld.ui/src-gen/com/np/dsl/xtext/ui/contentassist/antlr/internal/InternalHelloWorld.g:12:9: '!'

375 match("/*");

376

377 // ../com.np.dsl.xtext.helloworld.ui/src-gen/com/np/dsl/xtext/ui/contentassist/antlr/internal/InternalHelloWorld.g:252:24: ( options {greedy=false; } : . )*

378 loop7:

379 do {

448 switch (alt8) {

449 case 1 :

450 // ../com.np.dsl.xtext.helloworld.ui/src-gen/com/np/dsl/xtext/ui/contentassist/antlr/internal/InternalHelloWorld.g:254:24: ~ ( ( '\\n' | '\\r' ) )

451 {

452 if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {

HelloWorldController.java (https://gitlab.com/always-busy/SpringMVC) Java · 83 lines

1 package com.demo.web.controllers;

2

3 import java.sql.SQLException;

4

5 import org.springframework.stereotype.Controller;

16 */

17 @Controller

18 // ����ʾ�Ը�controller������action������������"/helloworld����ʼ��

19 @RequestMapping(value = "/helloworld")

20 public class HelloWorldController extends BaseController{

21

22 //¶Ô¸ÃActionÉèÖÃÁËÁ½¸öÓ³Éä

ServiceEstadisticas.wsdl (https://bitbucket.org/rjulietagarcia/estadisticas.git) Web Services Description Language · 944 lines

18 <s:import schemaLocation="http://localhost:7003/ServiceEstadisticas.asmx?schema=DsAvanceCaptura" namespace="http://tempuri.org/DsAvanceCaptura.xsd" />

19 <s:import schemaLocation="http://localhost:7003/ServiceEstadisticas.asmx?schema=DsComentarios" namespace="http://tempuri.org/DsComentarios.xsd" />

20 <s:element name="HelloWorld">

21 <s:complexType />

22 </s:element>

23 <s:element name="HelloWorldResponse">

24 <s:complexType>

25 <s:sequence>

26 <s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult" type="s:string" />

27 </s:sequence>

28 </s:complexType>

StreamResultTest.java (https://bitbucket.org/rainboyan/webwork.git) Java · 203 lines

14 import org.springframework.mock.web.MockHttpServletResponse;

15

16 import java.io.File;

17 import java.io.FileInputStream;

18 import java.io.InputStream;

19 import java.net.URI;

20 import java.net.URL;

21

22 /**

40

41 try {

42 result.doExecute("helloworld", mai);

43 fail("Should have thrown an IllegalArgumentException");

44 } catch (IllegalArgumentException e) {

HelloWorld4Resource.java (https://gitlab.com/jaragan/jersey) Java · 55 lines

9 * may not use this file except in compliance with the License. You can

10 * obtain a copy of the License at

11 * http://glassfish.java.net/public/CDDL+GPL_1_1.html

12 * or packager/legal/LICENSE.txt. See the License for the specific

13 * language governing permissions and limitations under the License.

40 package org.glassfish.jersey.tests.integration.servlet_3_init_provider;

41

42 import javax.ws.rs.Path;

43

44 /**

47 @Path("helloworld4")

48 public class HelloWorld4Resource extends AbstractHelloWorldResource {

49

50 @Override

HelloWorld2Resource.java (https://gitlab.com/jaragan/jersey) Java · 55 lines

9 * may not use this file except in compliance with the License. You can

10 * obtain a copy of the License at

11 * http://glassfish.java.net/public/CDDL+GPL_1_1.html

12 * or packager/legal/LICENSE.txt. See the License for the specific

13 * language governing permissions and limitations under the License.

40 package org.glassfish.jersey.tests.integration.servlet_3_init_provider;

41

42 import javax.ws.rs.Path;

43

44 /**

47 @Path("helloworld2")

48 public class HelloWorld2Resource extends AbstractHelloWorldResource {

49

50 @Override

HelloWorldInterface.html (https://github.com/Quicksilver666/jucy.git) HTML · 172 lines

81 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">

82 <TD COLSPAN=2><FONT SIZE="+2">

83 Packages that use <A HREF="../../../../../net/sbbi/upnp/samples/HelloWorldInterface.html" title="interface in net.sbbi.upnp.samples">HelloWorldInterface</A></FONT></TD>

84 </TR>

85 <TR BGCOLOR="white" CLASS="TableRowColor">

102 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">

103 <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">

104 <TD COLSPAN=2>Classes in <A HREF="../../../../../net/sbbi/upnp/samples/package-summary.html">net.sbbi.upnp.samples</A> that implement <A HREF="../../../../../net/sbbi/upnp/samples/HelloWorldInterface.html" title="interface in net.sbbi.upnp.samples">HelloWorldInterface</A></FONT></TD>

105 </TR>

106 <TR BGCOLOR="white" CLASS="TableRowColor">

107 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">

108 <CODE>&nbsp;class</CODE></FONT></TD>

109 <TD><CODE><B><A HREF="../../../../../net/sbbi/upnp/samples/HelloWorld.html" title="class in net.sbbi.upnp.samples">HelloWorld</A></B></CODE>

110

111 <BR>

AjaxHits.wsdl (https://github.com/kiouftis/Web-Services-Indexing-In-P2P.git) Web Services Description Language · 741 lines

30 </schema>

31 <s:schema elementFormDefault="qualified" targetNamespace="http://www.quickrooms.com/">

32 <s:element name="HelloWorld">

33 <s:complexType>

34 <s:sequence>

37 </s:complexType>

38 </s:element>

39 <s:element name="HelloWorldResponse">

40 <s:complexType>

41 <s:sequence>

42 <s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult" type="s:string"/>

43 </s:sequence>

44 </s:complexType>

LayoutConverterTest.java (https://github.com/kiyoshilee/liferay-portal.git) Java · 1243 lines

51 import com.liferay.portal.test.rule.PermissionCheckerMethodTestRule;

52

53 import java.util.ArrayList;

54 import java.util.Collections;

55 import java.util.Comparator;

56 import java.util.HashMap;

57 import java.util.HashSet;

58 import java.util.List;

59 import java.util.Map;

60 import java.util.Set;

61 import java.util.TreeMap;

62

63 import org.junit.After;

index.adoc (https://github.com/rachmatowicz/wildfly.git) AsciiDoc · 97 lines

45

46 * The link:Getting_Started_Developing_Applications_Guide{outfilesuffix}[Getting

47 Started Developing Applications Guide] shows you how to build Java EE

48 applications and deploy them to WildFly. The guide starts by showing you

49 the simplest _helloworld_ application using just Servlet and CDI, and

58 WildFly.

59

60 * The link:JavaEE_Tutorial{outfilesuffix}[JavaEE Tutorial] ( _in progress_)

61 builds on what you learnt in the

62 link:Getting_Started_Developing_Applications_Guide{outfilesuffix}[Getting Started

WordTest.java (https://github.com/fritsric/EPIM.git) Java · 287 lines

8 import cz.cvut.hnatuluk.factories.WordFactory.WordDocument;

9 import cz.cvut.hnatuluk.factories.WordFactory.WordOutputFactory;

10 import java.io.File;

11 import java.math.BigInteger;

49 public void testHelloWord() throws Exception {

50 WordOutputFactory wof = ExportFactory.getWordFactory();

51 File f = wof.createOutputFile("testFiles/WordFactory/helloWorld.docx");

52 WordDocument wd = wof.createOutputWorkbook(f);

53 Body b = wd.getDocumentBody();

run_new_examples.bat (https://github.com/xrl/opensplice.git) Batch · 397 lines

71 REM :SAJHelloWorld

72 REM SET EXAMPLE=dcps/HelloWorld/Java/Standalone/Windows/Bat

73 REM SET NEXTEXAMPLE=CCPPHelloWorld

81 REM :CJHelloWorld

82 REM SET EXAMPLE=dcps/HelloWorld/Java/Corba/JacORB/Windows/Bat

83 REM SET NEXTEXAMPLE=SACSHelloWorld

84 REM CALL :RunNewExample

85

86 REM :SACSHelloWorld

87 REM SET EXAMPLE=dcps/HelloWorld/CS/Standalone/VS2005/Bat

110

111 REM :CJContentFilteredTopic

112 REM SET EXAMPLE=dcps/ContentFilteredTopic/Java/Corba/JacORB/Windows/Bat

113 REM SET NEXTEXAMPLE=SACSContentFilteredTopic

114 REM CALL :RunNewExample

HelloWorldMDB.java (https://gitlab.com/avinashmx/WildFly) Java · 60 lines

17 package org.jboss.as.quickstarts.cmt.mdb;

18

19 import java.util.logging.Logger;

20

21 import javax.ejb.ActivationConfigProperty;

22 import javax.ejb.MessageDriven;

23 import javax.jms.JMSException;

24 import javax.jms.Message;

25 import javax.jms.MessageListener;

26 import javax.jms.TextMessage;

27

28 /**

package-summary.html (https://github.com/jingchan/jh_rogue.git) HTML · 166 lines

3 <HTML>

4 <HEAD>

5 <!-- Generated by javadoc (build 1.6.0_22) on Fri Apr 22 12:10:31 EDT 2011 -->

6 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">

7 <TITLE>

13 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">

14

15 <SCRIPT type="text/javascript">

16 function windowTitle()

17 {

57 <TR>

58 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">

59 &nbsp;<A HREF="../../jme3test/helloworld/package-summary.html"><B>PREV PACKAGE</B></A>&nbsp;

60 &nbsp;<A HREF="../../jme3test/input/combomoves/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD>

61 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">

HelloNode.html (https://github.com/jingchan/jh_rogue.git) HTML · 145 lines

3 <HTML>

4 <HEAD>

5 <!-- Generated by javadoc (build 1.6.0_22) on Fri Apr 22 12:10:33 EDT 2011 -->

6 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">

7 <TITLE>

41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>

42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>

43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../jme3test/helloworld/HelloNode.html" title="class in jme3test.helloworld"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>

44 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>

45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>

101 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>

102 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>

103 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../jme3test/helloworld/HelloNode.html" title="class in jme3test.helloworld"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>

104 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>

105 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>

HelloLoop.html (https://github.com/jingchan/jh_rogue.git) HTML · 145 lines

3 <HTML>

4 <HEAD>

5 <!-- Generated by javadoc (build 1.6.0_22) on Fri Apr 22 12:10:33 EDT 2011 -->

6 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">

7 <TITLE>

41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>

42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>

43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../jme3test/helloworld/HelloLoop.html" title="class in jme3test.helloworld"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>

44 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>

45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>

101 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>

102 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>

103 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../jme3test/helloworld/HelloLoop.html" title="class in jme3test.helloworld"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>

104 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>

105 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>

HelloJME3.html (https://github.com/jingchan/jh_rogue.git) HTML · 145 lines

3 <HTML>

4 <HEAD>

5 <!-- Generated by javadoc (build 1.6.0_22) on Fri Apr 22 12:10:33 EDT 2011 -->

6 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">

7 <TITLE>

41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>

42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>

43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../jme3test/helloworld/HelloJME3.html" title="class in jme3test.helloworld"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>

44 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>

45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>

101 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>

102 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>

103 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../jme3test/helloworld/HelloJME3.html" title="class in jme3test.helloworld"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>

104 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>

105 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>

PubExtDefaultClassPubStat.as (https://github.com/bsdf/trx.git) ActionScript · 231 lines

41

42 var SECTION = "Definitions"; // provide a document reference (ie, ECMA section)

43 var VERSION = "AS 3.0"; // Version of JavaScript or ECMA

44 var TITLE = "public extend Default Class"; // Provide ECMA section title or a description

45 var BUGNUMBER = "";

56 * For example, a test might look like this:

57 *

58 * var helloWorld = "Hello World";

59 *

60 * AddTestCase(

61 * "var helloWorld = 'Hello World'", // description of the test

62 * "Hello World", // expected result

63 * helloWorld ); // actual result

JavaFirstTestCase.java (https://github.com/vorburger/tuscany-sca-2.x.git) Java · 123 lines

24 import static org.junit.Assert.fail;

25

26 import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher;

27 import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher;

36 import org.junit.Test;

37

38 public class JavaFirstTestCase {

39

40 private Node node;

41 private HelloWorldServiceLauncher externalService;

42 private HelloWorldClientLauncher externalClient;

49

50 // Start the SCA contribution

51 node = NodeFactory.newInstance().createNode(new Contribution("java-first", "../contribution-java-first/target/itest-ws-contribution-java-first.jar"));

52 node.start();

53

Upload_test.php (https://github.com/ekoisa/pyrocms.git) PHP · 270 lines

68 $this->upload->file_ext = '.txt';

69

70 $this->assertEquals('helloworld.txt', $this->upload->set_filename(vfsStream::url('testDir').'/', 'helloworld.txt'));

71 $this->assertEquals('hello-world1.txt', $this->upload->set_filename(vfsStream::url('testDir').'/', 'hello-world.txt'));

72 }

225 $file1 = vfsStream::newFile('file1.txt')->withContent('The billy goat was waiting for them.')->at($this->_test_dir);

226 $file2 = vfsStream::newFile('file2.txt')->at($this->_test_dir);

227 $file3 = vfsStream::newFile('file3.txt')->withContent('<script type="text/javascript">alert("Boo! said the billy goat")</script>')->at($this->_test_dir);

228

229 $this->upload->file_temp = vfsStream::url('file1.txt');

package-use.html (https://bitbucket.org/dhruvkp/imreal.git) HTML · 144 lines

3 <HTML>

4 <HEAD>

5 <!-- Generated by javadoc (build 1.6.0_20) on Thu Aug 12 23:36:36 CEST 2010 -->

6 <TITLE>

7 Uses of Package basic.helloWorld

12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">

13

14 <SCRIPT type="text/javascript">

15 function windowTitle()

16 {

17 if (location.href.indexOf('is-external=true') == -1) {

18 parent.document.title="Uses of Package basic.helloWorld";

19 }

20 }

PubExtDynamicClass.as (https://github.com/bsdf/trx.git) ActionScript · 181 lines

40

41 var SECTION = "Definitions"; // provide a document reference (ie, ECMA section)

42 var VERSION = "AS 3.0"; // Version of JavaScript or ECMA

43 var TITLE = "public extend Dynamic Class"; // Provide ECMA section title or a description

44 var BUGNUMBER = "";

55 * For example, a test might look like this:

56 *

57 * var helloWorld = "Hello World";

58 *

59 * AddTestCase(

60 * "var helloWorld = 'Hello World'", // description of the test

61 * "Hello World", // expected result

62 * helloWorld ); // actual result

DynExtDynamicClassFin.as (https://github.com/bsdf/trx.git) ActionScript · 189 lines

41

42 var SECTION = "Definitions"; // provide a document reference (ie, ECMA section)

43 var VERSION = "AS 3.0"; // Version of JavaScript or ECMA

44 var TITLE = "dynamic class extend dynamic class"; // Provide ECMA section title or a description

45 var BUGNUMBER = "";

56 * For example, a test might look like this:

57 *

58 * var helloWorld = "Hello World";

59 *

60 * AddTestCase(

61 * "var helloWorld = 'Hello World'", // description of the test

62 * "Hello World", // expected result

63 * helloWorld ); // actual result

HelloWorldResourceAdapter.java (https://github.com/tomathome/jboss-as.git) Java · 162 lines

27 import javax.resource.spi.ActivationSpec;

28 import javax.resource.spi.BootstrapContext;

29 import javax.resource.spi.ConfigProperty;

34 import javax.resource.spi.endpoint.MessageEndpointFactory;

35 import javax.transaction.xa.XAResource;

36

37 /**

38 * HelloWorldResourceAdapter

39 *

40 * @version $Revision: $

150 if (!(other instanceof HelloWorldResourceAdapter))

151 return false;

152 HelloWorldResourceAdapter obj = (HelloWorldResourceAdapter)other;

153 boolean result = true;

154 if (result) {

Permission2Test.java (https://github.com/MIPS/libcore.git) Java · 166 lines

25 import java.security.Permission;

26 import java.security.PermissionCollection;

27 import java.security.SecurityPermission;

52

53 /**

54 * @tests java.security.Permission#Permission(java.lang.String)

55 */

56 @TestTargetNew(

88

89 /**

90 * @tests java.security.Permission#checkGuard(java.lang.Object)

91 */

92 @TestTargetNew(

96 args = {java.lang.Object.class}

97 )

98 public void test_checkGuardLjava_lang_Object() {

99 // test method java.security.permission.checkGuard(object)

PhantomTouch.java (https://github.com/Morriar/ProxyJDK.git) Java · 93 lines

28 import com.sun.mirror.util.*;

29

30 import java.util.Collection;

31 import java.util.Set;

32 import java.util.Arrays;

33 import java.util.Collections;

34 import java.io.*;

35

36 public class PhantomTouch implements AnnotationProcessorFactory {

47 try {

48 // Create temporary file

49 java.io.File f = new java.io.File("touched");

50 result = f.createNewFile();

51

DynExtDefaultClassPub.as (https://github.com/bsdf/trx.git) ActionScript · 269 lines

40

41 var SECTION = "Definitions"; // provide a document reference (ie, ECMA section)

42 var VERSION = "AS3"; // Version of JavaScript or ECMA

43 var TITLE = "Public Class Extends Default Class"; // Provide ECMA section title or a description

44 var BUGNUMBER = "";

55 * For example, a test might look like this:

56 *

57 * var helloWorld = "Hello World";

58 *

59 * AddTestCase(

60 * "var helloWorld = 'Hello World'", // description of the test

61 * "Hello World", // expected result

62 * helloWorld ); // actual result

VMDeathLastTest.java (https://github.com/Morriar/ProxyJDK.git) Java · 142 lines

30 *

31 * @run build TestScaffold VMConnection TargetListener TargetAdapter

32 * @run compile -g HelloWorld.java

33 * @run build VMDeathLastTest

34 * @run main VMDeathLastTest

38 import com.sun.jdi.request.*;

39

40 import java.util.*;

41

42 /********** test program **********/

104 * to determine targetClass and mainThread

105 */

106 startToMain("HelloWorld");

107 if (!vm().canBeModified()) {

108 failure("VM says it is read-only");

CouldntNarrowMethodMatchesExceptionTest.java (https://gitlab.com/nashjain/c3) Java · 58 lines

27 import org.dom4j.Element;

28

29 import java.util.LinkedList;

30

31

44 ex = new CouldntNarrowMethodMatchesException(panopticodeMethod, possibleElements);

45

46 assertEquals("Couldn't narrow match for method 'HelloWorld.sayHello()' from ['foo', 'bar'] in class 'HelloWorld'",

47 ex.getMessage());

48 }

content_editor_shared_examples.rb (https://github.com/gitlabhq/gitlabhq.git) Ruby · 122 lines

57 end

58

59 it 'sets code block type to "javascript" for `js`' do

60 find(content_editor_testid).send_keys [:enter, :enter]

61

63 find(content_editor_testid).send_keys 'var a = 0'

64

65 expect(find('[data-testid="code-block-bubble-menu"]')).to have_text('Javascript')

66 end

67

81

82 find(content_editor_testid).send_keys '```mermaid '

83 find(content_editor_testid).send_keys ['graph TD;', :enter, ' JohnDoe12 --> HelloWorld34']

84 end

85

FinExtPublicClass.as (https://github.com/bsdf/trx.git) ActionScript · 209 lines

41

42 var SECTION = "Definitions\Ext"; // provide a document reference (ie, ECMA section)

43 var VERSION = "AS 3.0"; // Version of JavaScript or ECMA

44 var TITLE = "Final Class Extends Public Class Default Methods"; // Provide ECMA section title or a description

45 var BUGNUMBER = "";

56 * For example, a test might look like this:

57 *

58 * var helloWorld = "Hello World";

59 *

60 * AddTestCase(

61 * "var helloWorld = 'Hello World'", // description of the test

62 * "Hello World", // expected result

63 * helloWorld ); // actual result

PubExtInternalClass.as (https://github.com/bsdf/trx.git) ActionScript · 186 lines

39

40 var SECTION = "Definitions"; // provide a document reference (ie, ECMA section)

41 var VERSION = "AS3"; // Version of JavaScript or ECMA

42 var TITLE = "Extend Default Class"; // Provide ECMA section title or a description

43 var BUGNUMBER = "";

54 * For example, a test might look like this:

55 *

56 * var helloWorld = "Hello World";

57 *

58 * AddTestCase(

59 * "var helloWorld = 'Hello World'", // description of the test

60 * "Hello World", // expected result

61 * helloWorld ); // actual result

index.html (https://github.com/lovelysystems/pyjamas.git) HTML · 183 lines

24 particular example.</p>

25

26 <h2>helloworld</h2>

27 <p>Port of GWT hello world example<br />

28 <a href="helloworld/output/Hello.html">see demo</a> |

29 <a href="helloworld/">source directory</a><p>

30

31 <h2>onclicktest</h2>

110

111 <h2>jsobject</h2>

112 <p>javascript objects example<br />

113 <a href="jsobject/output/TestRect.html">see demo1</a> |

114 <a href="jsobject/output/TestDict.html">see demo2</a> |

116

117 <h2>jsimport</h2>

118 <p>javascript import example<br />

119 <a href="jsimport/output/examplejs.html">see demo</a> |

120 <a href="jsimport/">source directory</a><p>

HelloWorldResourceAdapter.java (https://github.com/rachmatowicz/wildfly.git) Java · 162 lines

28 import javax.resource.spi.BootstrapContext;

29 import javax.resource.spi.ConfigProperty;

30 import javax.resource.spi.Connector;

33 import javax.resource.spi.TransactionSupport;

34 import javax.resource.spi.endpoint.MessageEndpointFactory;

35 import javax.transaction.xa.XAResource;

43 reauthenticationSupport = false,

44 transactionSupport = TransactionSupport.TransactionSupportLevel.NoTransaction)

45 public class HelloWorldResourceAdapter implements ResourceAdapter {

46 /** The logger */

47 private static Logger log = Logger.getLogger("HelloWorldResourceAdapter");

150 if (!(other instanceof HelloWorldResourceAdapter))

151 return false;

152 HelloWorldResourceAdapter obj = (HelloWorldResourceAdapter)other;

153 boolean result = true;

154 if (result) {

heclandjava.html (https://github.com/soundanny/hecl.git) HTML · 60 lines

1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Interfacing Hecl and Java</title><link rel="stylesheet" href="hecl.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.1"><link rel="home" href="index.html" title="Hecl - The Mobile Scripting Language"><link rel="up" href="index.html" title="Hecl - The Mobile Scripting Language"><link rel="prev" href="kxml.getname.html" title="kxml.getname"><link rel="next" href="creating_new_hecl_commands.html" title="Creating new Hecl commands"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Interfacing Hecl and Java</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="kxml.getname.html"><img src="images/prev.png" alt="Prev"></a>�</td><th width="60%" align="center">�</th><td width="20%" align="right">�<a accesskey="n" href="creating_new_hecl_commands.html"><img src="images/next.png" alt="Next"></a></td></tr></table></div><div class="section" title="Interfacing Hecl and Java"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="heclandjava"></a>Interfacing Hecl and Java</h2></div></div></div><div class="toc"><dl><dt><span class="section"><a href="heclandjava.html#%0A%09id-1.7.3">Calling Hecl code from Java</a></span></dt><dt><span class="section"><a href="creating_new_hecl_commands.html">Creating new Hecl commands</a></span></dt><dt><span class="section"><a href="building_hecl.html">Building Hecl: Ant Targets</a></span></dt><dt><span class="section"><a href="hecl_javadocs.html">JavaDocs</a></span></dt></dl></div>

2

3

4 <p>

5 Hecl is not a replacement for Java, and is indeed meant to work hand in hand with Java. We

6 attempt to make it as easy as possible to call Java from Hecl, via the creation of new Hecl

7 commands that can call Java code, in addition to calling Hecl from Java, which is a matter of

8 a few lines of code.

9 </p>

10

11 <div class="section" title="Calling Hecl code from Java"><div class="titlepage"><div><div><h3 class="title"><a name="id-1.7.3.1"></a>Calling Hecl code from Java</h3></div></div></div>

12

13

active_admin.rb (https://github.com/gmanley/loggia.git) Ruby · 214 lines

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 #

131

132

133 # == Register Stylesheets & Javascripts

134 #

135 # We recommend using the built in Active Admin layout and loading

136 # up your own stylesheets / javascripts to customize the look

137 # and feel.

138 #

145 # To load a javascript file:

146 # config.register_javascript 'my_javascript.js'

147

148

package-summary.html (https://bitbucket.org/arkban/somersault.git) HTML · 187 lines

103 </TR>

104 <TR BGCOLOR="white" CLASS="TableRowColor">

105 <TD WIDTH="15%"><B><A HREF="../../../../com/martiansoftware/jsap/examples/Manual_HelloWorld_5.html" title="class in com.martiansoftware.jsap.examples">Manual_HelloWorld_5</A></B></TD>

106 <TD>&nbsp;</TD>

107 </TR>

115 </TR>

116 <TR BGCOLOR="white" CLASS="TableRowColor">

117 <TD WIDTH="15%"><B><A HREF="../../../../com/martiansoftware/jsap/examples/Manual_HelloWorld_8.html" title="class in com.martiansoftware.jsap.examples">Manual_HelloWorld_8</A></B></TD>

118 <TD>&nbsp;</TD>

119 </TR>

124 </TR>

125 <TR BGCOLOR="white" CLASS="TableRowColor">

126 <TD WIDTH="15%"><B><A HREF="../../../../com/martiansoftware/jsap/examples/Manual_HelloWorld_Simple.html" title="class in com.martiansoftware.jsap.examples">Manual_HelloWorld_Simple</A></B></TD>

127 <TD>&nbsp;</TD>

128 </TR>

DynExtDynamicClass.as (https://github.com/bsdf/trx.git) ActionScript · 159 lines

40

41 var SECTION = "Definitions"; // provide a document reference (ie, ECMA section)

42 var VERSION = "AS 3.0"; // Version of JavaScript or ECMA

43 var TITLE = "dynamic extend Dynamic Class"; // Provide ECMA section title or a description

44 var BUGNUMBER = "";

55 * For example, a test might look like this:

56 *

57 * var helloWorld = "Hello World";

58 *

59 * AddTestCase(

60 * "var helloWorld = 'Hello World'", // description of the test

61 * "Hello World", // expected result

62 * helloWorld ); // actual result

WebSockServer.java (https://github.com/cbradyatinquire/NetLogoWebSockets.git) Java · 124 lines

1 package websocket;

2

3 import java.util.concurrent.ConcurrentLinkedQueue;

4

5 import javax.servlet.http.HttpServletRequest;

56 // _wsHandler.setHandler(_rHandler);

57

58 _wsHandler.setHandler( new HelloWorld() );

59

60 }

HelloWorldTTF.html (https://bitbucket.org/maxgoebel/tableannotator.git) HTML · 144 lines

3 <HTML>

4 <HEAD>

5 <!-- Generated by javadoc -->

6 <TITLE>

7 Uses of Class org.apache.pdfbox.examples.pdmodel.HelloWorldTTF (pdfbox-1.6.0-SNAPSHOT API)

12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">

13

14 <SCRIPT type="text/javascript">

15 function windowTitle()

16 {

17 if (location.href.indexOf('is-external=true') == -1) {

18 parent.document.title="Uses of Class org.apache.pdfbox.examples.pdmodel.HelloWorldTTF (pdfbox-1.6.0-SNAPSHOT API)";

19 }

20 }

SpringRequestResource.java (https://gitlab.com/jaragan/jersey) Java · 68 lines

9 * may not use this file except in compliance with the License. You can

10 * obtain a copy of the License at

11 * http://glassfish.java.net/public/CDDL+GPL_1_1.html

12 * or packager/legal/LICENSE.txt. See the License for the specific

13 * language governing permissions and limitations under the License.

38 * holder.

39 */

40 package org.glassfish.jersey.examples.helloworld.spring;

41

42 import javax.ws.rs.GET;

43 import javax.ws.rs.Path;

44 import javax.ws.rs.Produces;

45 import javax.ws.rs.core.MediaType;

46

47 import org.springframework.beans.factory.annotation.Autowired;

Activator.java (https://github.com/ops4j/org.ops4j.pax.web.git) Java · 188 lines

40 private ServiceTracker<WebContainer, WebContainer> tracker;

41

42 private HelloWorldServlet helloWorldServlet;

43 private HelloWorldFilter helloWorldFilter;

101 final Dictionary<String, String> initParamsServlet = new Hashtable<>();

102 initParamsServlet.put("from", "WebContainer");

103 helloWorldServlet = new HelloWorldServlet();

104 webContainer.registerServlet(helloWorldServlet, new String[] { "/helloworld/wc" },

123 new String[] { "HelloWorld" }, initParamsFilter, true, httpContext);

124

125 helloWorldListener = new HelloWorldListener();

126 webContainer.registerEventListener(helloWorldListener, httpContext);

147

148 // register error page for any Exception

149 webContainer.registerErrorPage("java.lang.Exception", "/helloworld/wc/error", httpContext);

150 // register error page for 404 (Page not found)

151 webContainer.registerErrorPage("404", "/helloworld/wc/error", httpContext);

HelloWorldResourceITCase.java (https://gitlab.com/jaragan/jersey) Java · 97 lines

9 * may not use this file except in compliance with the License. You can

10 * obtain a copy of the License at

11 * http://glassfish.java.net/public/CDDL+GPL_1_1.html

12 * or packager/legal/LICENSE.txt. See the License for the specific

13 * language governing permissions and limitations under the License.

40 package org.glassfish.jersey.tests.integration.servlet_25_init_5;

41

42 import javax.ws.rs.core.Response;

43

44 import org.glassfish.jersey.server.ResourceConfig;

56 * @author Pavel Bucek (pavel.bucek at oracle.com)

57 */

58 public class HelloWorldResourceITCase extends JerseyTest {

59

60 @Override

CallbackPromotionTestCase.java (https://github.com/vorburger/tuscany-sca-2.x.git) Java · 112 lines

24 import static org.junit.Assert.fail;

25

26 import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher;

27 import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher;

39

40 private Node node;

41 private HelloWorldServiceLauncher externalService;

42 private HelloWorldClientLauncher externalClient;

45 public void setUp() throws Exception {

46 // Start the external service

47 externalService = new HelloWorldServiceLauncher();

48 externalService.createService();

49

50 // Start the SCA contribution

51 node = NodeFactory.newInstance().createNode(new Contribution("java-first", "../contribution-callback-promotion/target/itest-ws-contribution-callback-promotion.jar"));

52 node.start();

53

ViewPanel.html (https://github.com/jpdery/moobile-core-doc.git) HTML · 84 lines

1 <!DOCTYPE html>

2 <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--><!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--><!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--><!--[if gt IE 8]><!--><html class="no-js" lang="en"><!--<![endif]--><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><meta name="viewport" content="width=device-width"><title>Moobile.ViewPanel | Moobile 0.1</title><base href="../../"><link rel="stylesheet" href="css/reset.css"><link rel="stylesheet" href="css/style.css"><script src="js/libs/modernizr-2.5.3.min.js"></script><script src="js/libs/prettify.js"></script><script src="js/libs/mootools-core-1.4.5.min.js"></script><script src="js/libs/mootools-more-1.4.0.1.min.js"></script><script src="js/libs/moobile-simulator.js"></script><script src="js/plugins.js"></script><script src="js/script.js"></script><script type="text/javascript">

3 Moobile.Simulator.setResourcePath('assets/shared/resources');

4 </script></head><body>

8

9 <ul class="file-list"><li><a href="guides/GettingStarted.html">Getting Started</a></li>

10 <li><a href="guides/HelloWorld.html">Hello World</a></li>

11 <li><a href="guides/UsingTransitions.html">Using Transitions</a></li>

12 </ul><h1>Classes</h1>

PubExtPublicClass.as (https://github.com/changm/tessa.git) ActionScript · 143 lines

38

39 var SECTION = "Definitions"; // provide a document reference (ie, ECMA section)

40 var VERSION = "AS 3.0"; // Version of JavaScript or ECMA

41 var TITLE = "extend public class"; // Provide ECMA section title or a description

42 var BUGNUMBER = "";

53 * For example, a test might look like this:

54 *

55 * var helloWorld = "Hello World";

56 *

57 * AddTestCase(

58 * "var helloWorld = 'Hello World'", // description of the test

59 * "Hello World", // expected result

60 * helloWorld ); // actual result

InjectingConstraintValidatorFactoryTest.java (https://github.com/jharting/seam-validation.git) Java · 128 lines

22 import static org.junit.Assert.assertEquals;

23

24 import java.io.File;

25 import java.util.Set;

26

27 import javax.enterprise.inject.spi.BeanManager;

28 import javax.inject.Inject;

29 import javax.validation.ConstraintViolation;

30 import javax.validation.Validation;

31 import javax.validation.Validator;

32

33 import org.jboss.arquillian.container.test.api.Deployment;

package-tree.html (https://gitlab.com/dksh85/java_class) HTML · 131 lines

3 <html lang="ko">

4 <head>

5 <!-- Generated by javadoc (1.8.0_77) on Mon Apr 04 11:23:49 KST 2016 -->

6 <title>chapter03 Class Hierarchy</title>

7 <meta name="date" content="2016-04-04">

8 <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

9 <script type="text/javascript" src="../script.js"></script>

10 </head>

11 <body>

77 <li type="circle">java.lang.Object

78 <ul>

79 <li type="circle">chapter03.<a href="../chapter03/HelloWorld.html" title="class in chapter03"><span class="typeNameLink">HelloWorld</span></a></li>

80 </ul>

81 </li>

SerializedPackageMergeTest.java (https://github.com/esteban-aliverti/drools.git) Java · 101 lines

5 import static org.junit.Assert.fail;

6

7 import java.text.DateFormat;

8 import java.text.ParseException;

9 import java.text.SimpleDateFormat;

10 import java.util.ArrayList;

11 import java.util.Collection;

12 import java.util.List;

13 import java.util.Locale;

14

15 import org.drools.compiler.Message;

26 public class SerializedPackageMergeTest {

27 private static final DateFormat DF = new SimpleDateFormat( "dd-MMM-yyyy", Locale.UK );

28 private static final String[] DRLs = {"HelloWorld.drl","test_Serialization1.drl"};

29

30 @Test

package-tree.html (https://github.com/crowdaccent/thirdparty.git) HTML · 151 lines

3 <HTML>

4 <HEAD>

5 <!-- Generated by javadoc (build 1.6.0_27) on Thu Dec 01 18:36:42 PST 2011 -->

6 <TITLE>

7 review_policy Class Hierarchy

12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">

13

14 <SCRIPT type="text/javascript">

15 function windowTitle()

16 {

55 <TR>

56 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">

57 &nbsp;<A HREF="../helloworld/package-tree.html"><B>PREV</B></A>&nbsp;

58 &nbsp;<A HREF="../reviewer/package-tree.html"><B>NEXT</B></A></FONT></TD>

59 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">

UnicastRemoteObject.html (https://bitbucket.org/advaitraut/jucy.git) HTML · 172 lines

3 <HTML>

4 <HEAD>

5 <!-- Generated by javadoc (build 1.4.2_09) on Mon Nov 20 19:28:23 CET 2006 -->

6 <TITLE>

7 Uses of Class net.sbbi.upnp.remote.UnicastRemoteObject (SBBI UPNPLib API)

11 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">

12

13 <SCRIPT type="text/javascript">

14 function windowTitle()

15 {

107 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">

108 <CODE>&nbsp;class</CODE></FONT></TD>

109 <TD><CODE><B><A HREF="../../../../../net/sbbi/upnp/samples/HelloWorld.html" title="class in net.sbbi.upnp.samples">HelloWorld</A></B></CODE>

110

111 <BR>

allclasses-frame.html (https://github.com/Quicksilver666/jucy.git) HTML · 148 lines

3 <HTML>

4 <HEAD>

5 <!-- Generated by javadoc (build 1.4.2_09) on Mon Nov 20 19:28:23 CET 2006 -->

6 <TITLE>

7 All Classes (SBBI UPNPLib API)

41 <A HREF="net/sbbi/upnp/DiscoveryResultsHandler.html" title="interface in net.sbbi.upnp" target="classFrame"><I>DiscoveryResultsHandler</I></A>

42 <BR>

43 <A HREF="net/sbbi/upnp/samples/HelloWorld.html" title="class in net.sbbi.upnp.samples" target="classFrame">HelloWorld</A>

44 <BR>

45 <A HREF="net/sbbi/upnp/samples/HelloWorldClient.html" title="class in net.sbbi.upnp.samples" target="classFrame">HelloWorldClient</A>

46 <BR>

47 <A HREF="net/sbbi/upnp/samples/HelloWorldInterface.html" title="interface in net.sbbi.upnp.samples" target="classFrame"><I>HelloWorldInterface</I></A>

48 <BR>

49 <A HREF="net/sbbi/upnp/samples/HelloWorldServer.html" title="class in net.sbbi.upnp.samples" target="classFrame">HelloWorldServer</A>

javac.sh (https://github.com/Morriar/ProxyJDK.git) Shell · 44 lines

25

26 # @test

27 # @summary Verify basic execution of the javac classes in classes.jar.

28

29 TESTSRC=${TESTSRC:-.}

30 TOPDIR=${TESTSRC}/../../..

31 TESTJAVAEXE="${TESTJAVA:+${TESTJAVA}/bin/}java"

32

33 "${TESTJAVAEXE}" -Xbootclasspath/p:${TOPDIR}/dist/lib/classes.jar \

35 -d . "${TESTSRC}"/../HelloWorld.java

36

37 "${TESTJAVAEXE}" -classpath . HelloWorld > HelloWorld.tmp

38

39 if [ "`cat HelloWorld.tmp`" = "Hello World!" ]; then

HelloWorldPortlet.java (https://github.com/spreddy/liferay-portal.git) Java · 53 lines

13 */

14

15 package com.liferay.portlet.helloworld;

16

17 import com.liferay.portal.kernel.util.ContentTypes;

18 import com.liferay.portal.kernel.util.ReleaseInfo;

19

20 import java.io.IOException;

21 import java.io.PrintWriter;

22

23 import javax.portlet.ActionRequest;

24 import javax.portlet.ActionResponse;

25 import javax.portlet.GenericPortlet;

26 import javax.portlet.RenderRequest;

PubExtPublicClassFin.as (https://github.com/bsdf/trx.git) ActionScript · 162 lines

40

41 var SECTION = "Definitions"; // provide a document reference (ie, ECMA section)

42 var VERSION = "AS 3.0"; // Version of JavaScript or ECMA

43 var TITLE = "Extend Public Class"; // Provide ECMA section title or a description

44 var BUGNUMBER = "";

55 * For example, a test might look like this:

56 *

57 * var helloWorld = "Hello World";

58 *

59 * AddTestCase(

60 * "var helloWorld = 'Hello World'", // description of the test

61 * "Hello World", // expected result

62 * helloWorld ); // actual result

TestCharacterUtils.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 194 lines

18 */

19

20 import java.io.IOException;

21 import java.io.Reader;

22 import java.io.StringReader;

23

24 import org.apache.lucene.analysis.util.CharacterUtils.CharacterBuffer;

34 @Test

35 public void testCodePointAtCharArrayInt() {

36 CharacterUtils java4 = CharacterUtils.getInstance(Version.LUCENE_30);

37 char[] cpAt3 = "Abc\ud801\udc1c".toCharArray();

38 char[] highSurrogateAt3 = "Abc\ud801".toCharArray();

39 assertEquals((int) 'A', java4.codePointAt(cpAt3, 0));

40 assertEquals((int) '\ud801', java4.codePointAt(cpAt3, 3));

HelloWorldType1AfmPfb.html (https://bitbucket.org/maxgoebel/tableannotator.git) HTML · 144 lines

3 <HTML>

4 <HEAD>

5 <!-- Generated by javadoc -->

6 <TITLE>

7 Uses of Class org.apache.pdfbox.examples.pdmodel.HelloWorldType1AfmPfb (pdfbox-1.6.0-SNAPSHOT API)

12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">

13

14 <SCRIPT type="text/javascript">

15 function windowTitle()

16 {

17 if (location.href.indexOf('is-external=true') == -1) {

18 parent.document.title="Uses of Class org.apache.pdfbox.examples.pdmodel.HelloWorldType1AfmPfb (pdfbox-1.6.0-SNAPSHOT API)";

19 }

20 }

HelloWorldConnectionFactory.java (https://github.com/maschmid/jboss-as.git) Java · 44 lines

23 package org.jboss.as.test.integration.rar;

24

25 import javax.resource.Referenceable;

26 import javax.resource.ResourceException;

27 import java.io.Serializable;

28

29 /**

30 * User: jpai

31 */

32 public interface HelloWorldConnectionFactory extends Serializable, Referenceable {

33

34 /**

35 * Get connection from factory

36 *

37 * @return HelloWorldConnection instance

38 * @throws ResourceException Thrown if a connection can't be obtained

39 */

HelloWorldConnectionFactory.java (https://github.com/rachmatowicz/wildfly.git) Java · 44 lines

23 package org.jboss.as.test.integration.rar;

24

25 import java.io.Serializable;

26 import javax.resource.Referenceable;

27 import javax.resource.ResourceException;

28

29 /**

30 * User: jpai

31 */

32 public interface HelloWorldConnectionFactory extends Serializable, Referenceable {

33

34 /**

35 * Get connection from factory

36 *

37 * @return HelloWorldConnection instance

38 * @throws ResourceException Thrown if a connection can't be obtained

39 */

MyAlgorithm.java (https://gitlab.com/ggsaavedra/PredictionIO) Java · 50 lines

1 package org.sample.java.helloworld;

2

3 import io.prediction.controller.java.*;

4

5 import java.util.Map;

6 import java.util.HashMap;

9 import org.slf4j.LoggerFactory;

10

11 public class MyAlgorithm extends LJavaAlgorithm<

12 EmptyAlgorithmParams, MyTrainingData, MyModel, MyQuery, MyPredictedResult> {

13

AjaxScriptComplete.aspx (https://github.com/iainlane/mono.git) ASP.NET · 55 lines

21 <asp:ScriptManager runat="server" ID="scriptManager">

22 <Services>

23 <asp:ServiceReference path="HelloWorldService.asmx" />

24 </Services>

25 </asp:ScriptManager>

36 <span id="Results"></span>

37 </div>

38 <script type="text/javascript">

39

40 function DoSearch()

41 {

42 var SrchElem = document.getElementById("SearchKey");

43 Samples.AspNet.HelloWorldService.HelloWorld(SrchElem.value, OnRequestComplete);

44 }

45

RecordHistogramTest.java (git://github.com/chromium/chromium.git) Java · 196 lines

17

18 /**

19 * Tests for the Java API for recording UMA histograms.

20 */

21 @RunWith(BaseJUnit4ClassRunner.class)

32 @SmallTest

33 public void testRecordBooleanHistogram() {

34 String histogram = "HelloWorld.BooleanMetric";

35 HistogramDelta falseCount = new HistogramDelta(histogram, 0);

36 HistogramDelta trueCount = new HistogramDelta(histogram, 1);

57 @SmallTest

58 public void testRecordEnumeratedHistogram() {

59 String histogram = "HelloWorld.EnumeratedMetric";

60 HistogramDelta zeroCount = new HistogramDelta(histogram, 0);

61 HistogramDelta oneCount = new HistogramDelta(histogram, 1);

HelloWorldApplicationTests.java (https://gitlab.com/avincze73/spring-20220325) Java · 64 lines

26 import org.springframework.test.context.TestPropertySource;

27

28 import java.util.Map;

29

30 import static org.assertj.core.api.BDDAssertions.then;

33 @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)

34 @TestPropertySource(properties = {"local.management.port=7777"})

35 public class HelloWorldApplicationTests {

36

37 @LocalServerPort

FinExtDefaultClassPub.as (https://github.com/adobe/avmplus.git) ActionScript · 190 lines

19

20 // var SECTION = "Definitions\Ext"; // provide a document reference (ie, ECMA section)

21 // var VERSION = "AS 3.0"; // Version of JavaScript or ECMA

22 // var TITLE = "Final Class Extends Default Class Public Methods"; // Provide ECMA section title or a description

23 var BUGNUMBER = "";

33 * For example, a test might look like this:

34 *

35 * var helloWorld = "Hello World";

36 *

37 * Assert.expectEq(

38 * "var helloWorld = 'Hello World'", // description of the test

39 * "Hello World", // expected result

40 * helloWorld ); // actual result

583.html (https://gitlab.com/Rockyspade/hail2u.net) HTML · 66 lines

48

49 <section class="test">

50 <pre>&lt;script type=&quot;text/javascript&quot;&gt;

51 // Say hello world until the user starts questioning

52 // the meaningfulness of their existence.

53 function helloWorld(world) {

54 for (var i = 42; --i &gt;= 0;) {

55 alert(&#39;Hello &#39; + String(world));

index_output.html (https://github.com/Agniy/evnine.git) HTML · 141 lines

1 <script language="JavaScript">

2 /* code modified from ColdFusion's cfdump code */

3 function dBug_toggleRow(source) {

110 </tr><tr>

111 <td valign="top" onClick='dBug_toggleRow(this)' class="dBug_arrayKey">LoadController</td>

112 <td class="dBug_arrayKeyBody">helloworld</td></tr>

113 <tr>

114 <td valign="top" onClick='dBug_toggleRow(this)' class="dBug_arrayKey">LoadMethod</td>

118 <td class="dBug_arrayKeyBody">False</td></tr>

119 <tr>

120 <td valign="top" onClick='dBug_toggleRow(this)' class="dBug_arrayKey">ModelsHelloWorld_isParamHello</td>

121 <td class="dBug_arrayKeyBody">TRUE</td></tr>

122 <tr>

123 <td valign="top" onClick='dBug_toggleRow(this)' class="dBug_arrayKey">ModelsHelloWorld_getHelloWorld</td>

124 <td class="dBug_arrayKeyBody">HelloWorld</td></tr>

HelloWorldBacking.html (https://github.com/alediator/barcamp-maven.git) HTML · 143 lines

3 <HTML>

4 <HEAD>

5 <!-- Generated by javadoc (build 1.6.0_20) on Wed Oct 05 17:15:22 CEST 2011 -->

6 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">

7 <TITLE>

8 Uses of Class com.emergya.barcamp2011.HelloWorldBacking (A custom project using myfaces 1.2 and facelets 1.0-SNAPSHOT API)

9 </TITLE>

10

13 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

14

15 <SCRIPT type="text/javascript">

16 function windowTitle()

17 {

SynchronousGet.java (https://gitlab.com/JoshLucid/okhttp) Java · 47 lines

16 package okhttp3.recipes;

17

18 import java.io.IOException;

19 import okhttp3.Headers;

20 import okhttp3.OkHttpClient;

27 public void run() throws Exception {

28 Request request = new Request.Builder()

29 .url("https://publicobject.com/helloworld.txt")

30 .build();

31

index_output.html (https://github.com/Agniy/evnine.git) HTML · 140 lines

1 <script language="JavaScript">

2 /* code modified from ColdFusion's cfdump code */

3 function dBug_toggleRow(source) {

110 </tr><tr>

111 <td valign="top" onClick='dBug_toggleRow(this)' class="dBug_arrayKey">LoadController</td>

112 <td class="dBug_arrayKeyBody">helloworld</td></tr>

113 <tr>

114 <td valign="top" onClick='dBug_toggleRow(this)' class="dBug_arrayKey">LoadMethod</td>

121 <td class="dBug_arrayKeyBody">TRUE</td></tr>

122 <tr>

123 <td valign="top" onClick='dBug_toggleRow(this)' class="dBug_arrayKey">ModelsHelloWorld_getHelloWorld</td>

124 <td class="dBug_arrayKeyBody">HelloWorld</td></tr>

132 <tr>

133 <td valign="top" onClick='dBug_toggleRow(this)' class="dBug_arrayKey">pre</td>

134 <td class="dBug_arrayKeyBody">/helloworld/default</td></tr>

135 <tr>

136 <td valign="top" onClick='dBug_toggleRow(this)' class="dBug_arrayKey">post</td>

Makefile (https://gitlab.com/generic-library/festival) Makefile · 48 lines

34

35 TOP=../../../../..

36 DIRNAME=src/modules/java/cstr/testPrograms

37

38 BUILD_DIRS =

39 EXTRA_JAVA_CLASSES = SayHelloWorld

40 JAVA_CLASSES =

41 NEED_JAVA=1

42

43 FILES = Makefile $(JAVA_CLASSES:=.java) $(EXTRA_JAVA_CLASSES:=.java)

44

45 ALL = .java

apt.sh (https://github.com/ikeji/openjdk7-langtools.git) Shell · 42 lines

29 TESTSRC=${TESTSRC:-.}

30 TOPDIR=${TESTSRC}/../../..

31 TESTJAVAEXE="${TESTJAVA:+${TESTJAVA}/bin/}java"

32

33 "${TESTJAVAEXE}" -Xbootclasspath/p:${TOPDIR}/dist/lib/classes.jar \

34 com.sun.tools.apt.Main \

35 -print "${TESTSRC}"/../HelloWorld.java > apt.tmp

36

37 if diff ${TESTSRC}/../HelloWorld.apt.gold.txt apt.tmp ; then

HelloWorldServerTestCase.java (https://github.com/vorburger/tuscany-sca-2.x.git) Java · 137 lines

19 package org.apache.tuscany.sca.test.contribution;

20

21 import helloworld.HelloWorldService;

22

23 import java.io.IOException;

65 // File helloWorldContribLocation = new File("./target/classes/");

66 // URL helloWorldContribURL = helloWorldContribLocation.toURL();

67 URL helloWorldContribURL = getContributionURL(HelloWorldService.class);

68 consumerContribution =

69 contributionService.contribute("http://import-export/helloworld", helloWorldContribURL, false);

70 for (Composite deployable : consumerContribution.getDeployables()) {

71 domain.getDomainComposite().getIncludes().add(deployable);

111 HelloWorldService helloWorldService =

112 domain.getService(HelloWorldService.class, "HelloWorldServiceComponent/HelloWorldService");

113 assertNotNull(helloWorldService);

package-use.html (https://github.com/steffe/MT4J_KTSI.git) HTML · 144 lines

3 <HTML>

4 <HEAD>

5 <!-- Generated by javadoc (build 1.6.0_23) on Thu Mar 31 17:50:55 CEST 2011 -->

6 <TITLE>

7 Uses of Package basic.helloWorld

12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">

13

14 <SCRIPT type="text/javascript">

15 function windowTitle()

16 {

17 if (location.href.indexOf('is-external=true') == -1) {

18 parent.document.title="Uses of Package basic.helloWorld";

19 }

20 }

README.html (https://github.com/imyousuf/jersey.git) HTML · 86 lines

11 may not use this file except in compliance with the License. You can

12 obtain a copy of the License at

13 http://glassfish.java.net/public/CDDL+GPL_1_1.html

14 or packager/legal/LICENSE.txt. See the License for the specific

15 language governing permissions and limitations under the License.

52 <p>The example consists of just one Java class:</p>

53 <dl>

54 <dt><code>com.sun.jersey.samples.helloworld.resources.HelloWorldResource</code></dt>

55 <dd>A resource class that produces a textual response to an HTTP GET.</dd>

56 </dl>

82 <blockquote><code>mvn clean package jetty:run</code></blockquote>

83 <p>From a web browser, visit:</p>

84 <blockquote><code><a href="http://localhost:8080/helloworld-webapp/helloworld">http://localhost:8080/helloworld-webapp/helloworld</a></code>

85 </blockquote>

86 </body></html>

DynExtDefaultClassFin.as (https://github.com/bsdf/trx.git) ActionScript · 190 lines

41

42 var SECTION = "Definitions"; // provide a document reference (ie, ECMA section)

43 var VERSION = "AS3"; // Version of JavaScript or ECMA

44 var TITLE = "final Class Extends Default Class"; // Provide ECMA section title or a description

45 var BUGNUMBER = "";

56 * For example, a test might look like this:

57 *

58 * var helloWorld = "Hello World";

59 *

60 * AddTestCase(

61 * "var helloWorld = 'Hello World'", // description of the test

62 * "Hello World", // expected result

63 * helloWorld ); // actual result

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

This Java code is a test suite for a distributed actor system, specifically testing cross-VM communication and message passing between actors. It sets up two virtual machines (actors) with different languages and interfaces, then tests simple communication scenarios, such as sending messages from one actor to another. The test suite verifies that the communication works correctly under various conditions.

429 alice.sync_event_eval(

430 NATParser.parse("CrossVMCommunicationTest#testSimple()",

431 "defstripe HelloWorld; \n" +

432 "whenever: HelloWorld discovered: { | ref | \n" +

436 bob.sync_event_eval(

437 NATParser.parse("CrossVMCommunicationTest#testSimple()",

438 "defstripe HelloWorld; \n" +

439 "def english := object: { \n" +

440 " def hello( name ) { \"hello \" + name }; \n" +

443 " def hello( name ) { \"hola \" + name }; \n" +

444 "}; \n" +

445 "export: english as: HelloWorld; \n" +

446 "export: spanish as: HelloWorld; \n"));