text:
package org.wso2.carbon.apimgt.rest.api.publisher.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * LifecycleState_permissionBeansDTO
 */
public class LifecycleState_permissionBeansDTO   {
  @JsonProperty("roles")
  private List<String> roles = new ArrayList<String>();

  @JsonProperty("forTarget")
  private String forTarget = null;

  public LifecycleState_permissionBeansDTO roles(List<String> roles) {
    this.roles = roles;
    return this;
  }

  public LifecycleState_permissionBeansDTO addRolesItem(String rolesItem) {
    this.roles.add(rolesItem);
    return this;
  }

   /**
   * Get roles
   * @return roles
  **/
  @ApiModelProperty(value = "")
  public List<String> getRoles() {
    return roles;
  }

  public void setRoles(List<String> roles) {
    this.roles = roles;
  }

  public LifecycleState_permissionBeansDTO forTarget(String forTarget) {
    this.forTarget = forTarget;
    return this;
  }

   /**
   * Get forTarget
   * @return forTarget
  **/
  @ApiModelProperty(value = "")
  public String getForTarget() {
    return forTarget;
  }

  public void setForTarget(String forTarget) {
    this.forTarget = forTarget;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    LifecycleState_permissionBeansDTO lifecycleStatePermissionBeans = (LifecycleState_permissionBeansDTO) o;
    return Objects.equals(this.roles, lifecycleStatePermissionBeans.roles) &&
        Objects.equals(this.forTarget, lifecycleStatePermissionBeans.forTarget);
  }

  @Override
  public int hashCode() {
    return Objects.hash(roles, forTarget);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class LifecycleState_permissionBeansDTO {\n");

    sb.append("    roles: ").append(toIndentedString(roles)).append("\n");
    sb.append("    forTarget: ").append(toIndentedString(forTarget)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}


text:
package api

import (
	"testing"
)

func TestDocstring(t *testing.T) {
	cases := map[string]struct {
		In     string
		Expect string
	}{
		"non HTML": {
			In:     "Testing 1 2 3",
			Expect: "// Testing 1 2 3",
		},
		"link": {
			In:     `<a href="https://example.com">a link</a>`,
			Expect: "// a link (https://example.com)",
		},
		"link with space": {
			In:     `<a href=" https://example.com">a link</a>`,
			Expect: "// a link (https://example.com)",
		},
		"list HTML 01": {
			In:     "

Testing 1 2 3

FooBar

",
			Expect: "//    * Testing 1 2 3\n// \n//    * FooBar",
		},
		"list HTML 02": {
			In:     "

Testing 1 2 3

FooBar

",
			Expect: "//    * Testing 1 2 3\n// \n//    * FooBar",
		},
		"list HTML leading spaces": {
			In:     "

Testing 1 2 3

FooBar

",
			Expect: "//    * Testing 1 2 3\n// \n//    * FooBar",
		},
		"list HTML paragraph": {
			In:     "

Testing 1 2 3

FooBar

",
			Expect: "//    * Testing 1 2 3\n// \n//    * FooBar",
		},
		"inline code HTML": {
			In:     "

Testing: 1 2 3

FooBar

",
			Expect: "//    * Testing: 1 2 3\n// \n//    * FooBar",
		},
		"complex list paragraph": {
			In:     "

FOO Bar

Xyz ABC

",
			Expect: "//    * FOO Bar\n// \n//    * Xyz ABC",
		},
		"inline code in paragraph": {
			In:     "
Testing: 1 2 3
",
			Expect: "// Testing: 1 2 3",
		},
		"root pre": {
			In:     "
Testing
",
			Expect: "//    Testing",
		},
		"paragraph": {
			In:     "
Testing 1 2 3
",
			Expect: "// Testing 1 2 3",
		},
		"wrap lines": {
			In:     "CreateSecret SecretListEntry SecretName KmsKeyId",
			Expect: "// CreateSecret SecretListEntry SecretName KmsKeyId",
		},
		"links with spaces": {
			In:     "
 Deletes the replication configuration from the bucket. For information about replication configuration, see Cross-Region Replication (CRR) in the Amazon S3 Developer Guide.
",
			Expect: "// Deletes the replication configuration from the bucket. For information about\n// replication configuration, see Cross-Region Replication (CRR) (https://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html)\n// in the Amazon S3 Developer Guide.",
		},
		"unexpected closing tag": {
			In:     "
Some cool text

",
			Expect: "// Some cool text",
		},
	}

	for name, c := range cases {
		t.Run(name, func(t *testing.T) {
			actual := docstring(c.In)
			if e, a := c.Expect, actual; e != a {
				t.Errorf("expect %q, got %q", e, a)
			}
		})
	}
}

func TestApiDocumentation_missingShapes(t *testing.T) {
	docs := apiDocumentation{
		Service: "some service documentation",
		Operations: map[string]string{
			"OperationOne": "some operation documentation",
			"OperationTwo": "some more operation documentation",
		},
		Shapes: map[string]shapeDocumentation{
			"ShapeOne": {
				Base: "some shape documentation",
			},
			"ShapeTwo": {
				Base: "some more shape documentation",
				Refs: map[string]string{
					"ShapeOne$shapeTwo": "shape ref document",
				},
			},
		},
	}

	api := API{
		Operations: map[string]*Operation{
			"OperationOne": {},
		},
		Shapes: map[string]*Shape{
			"ShapeOne": {
				Type:       "structure",
				MemberRefs: map[string]*ShapeRef{},
			},
		},
	}

	if err := docs.setup(&api); err != nil {
		t.Fatalf("expect no error, got %v", err)
	}

	if _, ok := api.Operations["OperationTwo"]; ok {
		t.Errorf("expect operation shape to not be added from document model")
	}

	if _, ok := api.Shapes["ShapeTwo"]; ok {
		t.Errorf("expect shape to not be added from document model")
	}

	if _, ok := api.Shapes["ShapeOne"].MemberRefs["shapeTwo"]; ok {
		t.Errorf("expect shape to not be added from document model")
	}
}

redpajama_set_name: RedPajamaGithub


text:
package com.picoo.model;

import java.util.ArrayList;
import java.util.List;

import com.picoo.model.flickr.FlickrPhoto;
import com.picoo.model.flickr.FlickrPhotoList;

public class EntityConverter {
	public static PicooPhoto convertFlickrToPicoo(FlickrPhoto fp) {
		PicooPhoto p = new PicooPhoto();
		p.setTitle(fp.getTitle());
		p.setDescription(fp.getDescription());
		Owner o=new Owner();
		o.setId(fp.getOwner());
		p.setOwner(o);

		p.setUrl("http://farm"+fp.getFarm()+".staticflickr.com/"+
		 fp.getServer()+"/"+
		 fp.getId()+"_"+fp.getSecret()+"_b.jpg");
		return p;
	}

	public static PicooPhotoList convertFlickrToPicooList(FlickrPhotoList fps) {
		PicooPhotoList pl=new PicooPhotoList();
		List<PicooPhoto> ps=new ArrayList<PicooPhoto>();
		for (FlickrPhoto fp: fps.getPhotos()){
			ps.add(convertFlickrToPicoo(fp));
		}
		pl.setPhotos(ps);
		return pl;
	}
}


text:
using System;
using System.Collections.Generic;

namespace Nez.AI.Pathfinding
{
	/// <summary>
	/// interface for a graph that can be fed to the BreadthFirstPathfinder.search method
	/// </summary>
	public interface IUnweightedGraph<T>
	{
		/// <summary>
		/// The getNeighbors method should return any neighbor nodes that can be reached from the passed in node.
		/// </summary>
		/// <returns>The neighbors.</returns>
		/// <param name="node">Node.</param>
		IEnumerable<T> getNeighbors( T node );
	}
}


text:
#include <Arduino.h>

int heartbeat_interval = 1000;  // blink every second
long heartbeat_timer = 0;
bool heartbeat_led_status = false;
int heartbeat_led_pin = 13;

// just call at the end of loop() and this will blink the LED every
// heart_beat_interval milli_seconds, useful for knowing if your sketch
// is still running or has hung some place
bool heartbeat(void) {
  if (heartbeat_timer == 0) {
    heartbeat_timer = millis();
  } else {
    if (millis() - heartbeat_timer > heartbeat_interval) {
      heartbeat_timer = millis();
      heartbeat_led_status = !heartbeat_led_status;
      digitalWrite(heartbeat_led_pin, heartbeat_led_status);
    }
  }
  return heartbeat_led_status;
}


text:
static void sleep(unsigned int seconds)
{
	Sleep(seconds * 1000);
}
#endif

#define MAX_PACKET 4096
#define TEST_PACKET "Test Packet"

struct thread_data
{
	const char *pszServerAddr;
	short int nPort;
	int nNumBytesToReceive;
	int nTotalPayloadSize;
};

void *CreateTCPEchoServer(void *param)
{
	CPassiveSocket socket;
	CActiveSocket *pClient = NULL;
	struct thread_data *pData = (struct thread_data *)param;
	int nBytesReceived = 0;

	socket.Initialize();
	socket.Listen(pData->pszServerAddr, pData->nPort);

	if ((pClient = socket.Accept()) != NULL)
	{
		while (nBytesReceived != pData->nTotalPayloadSize)
		{
			if (nBytesReceived += pClient->Receive(pData->nNumBytesToReceive))
			{
				pClient->Send((const uint8 *)pClient->GetData(), pClient->GetBytesReceived());
			}
		}

		sleep(100);

		delete pClient;
	}

	socket.Close();

	return NULL;
}

int main(int argc, char **argv)
{
	pthread_t threadId;
	struct thread_data thData;
	CActiveSocket client;
	char result[1024];

	thData.pszServerAddr = "127.0.0.1";
	thData.nPort = 6789;
	thData.nNumBytesToReceive = 1;
	thData.nTotalPayloadSize = (int)strlen(TEST_PACKET);

	pthread_create(&threadId, 0, CreateTCPEchoServer, &thData);
	sleep(1);  // allow a second for the thread to create and listen

	client.Initialize();
	client.SetNonblocking();

	if (client.Open("127.0.0.1", 6789))
	{
		if (client.Send((uint8 *)TEST_PACKET, strlen(TEST_PACKET)))
		{
			int numBytes = -1;
			int bytesReceived = 0;

			client.Select();

			while (bytesReceived != strlen(TEST_PACKET))
			{
				numBytes = client.Receive(MAX_PACKET);

				if (numBytes > 0)
				{
					bytesReceived += numBytes;
					memset(result, 0, 1024);
					memcpy(result, client.GetData(), numBytes);
					printf("received %d bytes: '%s'\n", numBytes, result);
				}
				else
				{
					printf("Received %d bytes\n", numBytes);
				}
			}
		}
	}
}


text:
import types

def bind(mod):
   mod.runcbirrt = types.MethodType(runcbirrt,mod)

class CbirrtException(Exception):
   pass

# Get the cbirrt command string
def runcbirrt(mod, argstr=None, jointgoals=None, smoothingitrs=None, filename=None, timelimit=None, allowlimadj=None):
   cmd = 'runcbirrt'
   if argstr is not None:
      cmd += ' ' + argstr
   if jointgoals is not None:
      cmd += ' jointgoals %d %s' % (len(jointgoals), ' '.join([str(v) for v in jointgoals]))
   if smoothingitrs is not None:
      cmd += ' smoothingitrs %d' % smoothingitrs
   if filename is not None:
      cmd += ' filename %s' % filename
   if timelimit is not None:
      cmd += ' timelimit %f' % timelimit
   if allowlimadj is not None and allowlimadj:
      cmd += ' allowlimadj 1'
   resp = mod.SendCommand(cmd)
   if int(resp) != 1:
      raise CbirrtException('runcbirrt failed!')


text:
package com.amazonaws.services.organizations.smoketests;

import javax.annotation.Generated;

import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Stage;

import cucumber.api.guice.CucumberModules;
import cucumber.runtime.java.guice.InjectorSource;

import com.amazonaws.AmazonWebServiceClient;
import com.amazonaws.services.organizations.AWSOrganizationsClient;

/**
 * Injector that binds the AmazonWebServiceClient interface to the
 * com.amazonaws.services.organizations.AWSOrganizationsClient
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AWSOrganizationsModuleInjector implements InjectorSource {

    @Override
    public Injector getInjector() {
        return Guice.createInjector(Stage.PRODUCTION, CucumberModules.SCENARIO, new AWSOrganizationsModule());
    }

    static class AWSOrganizationsModule extends AbstractModule {

        @Override
        protected void configure() {
            bind(AmazonWebServiceClient.class).to(AWSOrganizationsClient.class);
        }
    }
}


text:
package org.apache.camel.util;

import java.io.IOException;
import java.io.OutputStream;

import junit.framework.TestCase;
import org.apache.camel.Exchange;
import org.apache.camel.Message;
import org.apache.camel.StreamCache;
import org.apache.camel.impl.DefaultMessage;

/**
 * Test cases for {@link MessageHelper}
 */
public class MessageHelperTest extends TestCase {

    private Message message;

    @Override
    protected void setUp() throws Exception {
        message = new DefaultMessage();
    }

    /*
     * Tests the {@link MessageHelper#resetStreamCache(Message)} method
     */
    public void testResetStreamCache() throws Exception {
        // should not throw exceptions when Message or message body is null
        MessageHelper.resetStreamCache(null);
        MessageHelper.resetStreamCache(message);

        // handle StreamCache
        final ValueHolder<Boolean> reset = new ValueHolder<Boolean>(Boolean.FALSE);
        message.setBody(new StreamCache() {
            public void reset() {
                reset.set(Boolean.TRUE);
            }

            public void writeTo(OutputStream os) throws IOException {
                // noop
            }
        });
        MessageHelper.resetStreamCache(message);
        assertTrue("Should have reset the stream cache", reset.get());
    }

    public void testGetContentType() throws Exception {
        message.setHeader(Exchange.CONTENT_TYPE, "text/xml");
        assertEquals("text/xml", MessageHelper.getContentType(message));
    }

    public void testGetContentEncpding() throws Exception {
        message.setHeader(Exchange.CONTENT_ENCODING, "iso-8859-1");
        assertEquals("iso-8859-1", MessageHelper.getContentEncoding(message));
    }

}


text:
<!DOCTYPE html>

  <meta charset="UTF-8">
  <title>Code Coverage for D:\xampp\htdocs\jobeet\src\Acme/JobeetBundle/Entity/Job.php</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link href="css/bootstrap.min.css" rel="stylesheet">
  <link href="css/bootstrap-responsive.min.css" rel="stylesheet">
  <link href="css/style.css" rel="stylesheet">

D:\xampp\htdocs\jobeet\src\Acme /

JobeetBundle /

Entity /

Job.php

Code Coverage

Classes and Traits

Functions and Methods

Lines

      Total

0.00%

0 / 1

46.15%

18 / 39

      CRAP

59.68%

37 / 62

      Job

0.00%

0 / 1

46.15%

18 / 39

      151.21

59.68%

37 / 62

       getId()

100.00%

1 / 1

      1

100.00%

1 / 1

       setType($type)

100.00%

1 / 1

      1

100.00%

2 / 2

       getType()

0.00%

0 / 1

      2

0.00%

0 / 1

       setCompany($company)

100.00%

1 / 1

      1

100.00%

2 / 2

       getCompany()

0.00%

0 / 1

      2

0.00%

0 / 1

       setLogo($logo)

100.00%

1 / 1

      1

100.00%

2 / 2

       getLogo()

0.00%

0 / 1

      2

0.00%

0 / 1

       setUrl($url)

100.00%

1 / 1

      1

100.00%

2 / 2

       getUrl()

0.00%

0 / 1

      2

0.00%

0 / 1

       setPosition($position)

100.00%

1 / 1

      1

100.00%

2 / 2

       getPosition()

0.00%

0 / 1

      2

0.00%

0 / 1

       setLocation($location)

100.00%

1 / 1

      1

100.00%

2 / 2

       getLocation()

0.00%

0 / 1

      2

0.00%

0 / 1

       setDescription($description)

100.00%

1 / 1

      1

100.00%

2 / 2

       getDescription()

0.00%

0 / 1

      2

0.00%

0 / 1

       setHowToApply($howToApply)

100.00%

1 / 1

      1

100.00%

2 / 2

       getHowToApply()

0.00%

0 / 1

      2

0.00%

0 / 1

       setToken($token)

100.00%

1 / 1

      1

100.00%

2 / 2

       getToken()

0.00%

0 / 1

      2

0.00%

0 / 1

       setIsPublic($isPublic)

100.00%

1 / 1

      1

100.00%

2 / 2

       getIsPublic()

0.00%

0 / 1

      2

0.00%

0 / 1

       setIsActivated($isActivated)

100.00%

1 / 1

      1

100.00%

2 / 2

       getIsActivated()

0.00%

0 / 1

      2

0.00%

0 / 1

       setEmail($email)

100.00%

1 / 1

      1

100.00%

2 / 2

       getEmail()

0.00%

0 / 1

      2

0.00%

0 / 1

       setExpiresAt($expiresAt)

100.00%

1 / 1

      1

100.00%

2 / 2

       getExpiresAt()

100.00%

1 / 1

      1

100.00%

1 / 1

       setCreatedAt($createdAt)

0.00%

0 / 1

      2

0.00%

0 / 2

       getCreatedAt()

100.00%

1 / 1

      1

100.00%

1 / 1

       setUpdatedAt($updatedAt)

0.00%

0 / 1

      2

0.00%

0 / 2

       getUpdatedAt()

0.00%

0 / 1

      2

0.00%

0 / 1

       setCategory(\Acme\JobeetBundle\Entity\Category $category)

100.00%

1 / 1

      1

100.00%

2 / 2

       getCategory()

0.00%

0 / 1

      2

0.00%

0 / 1

       prePersistEvent()

100.00%

1 / 1

      3

100.00%

6 / 6

       preUpdateEvent()

0.00%

0 / 1

      2

0.00%

0 / 2

       __toString()

0.00%

0 / 1

      2

0.00%

0 / 2

       getCompanySlug()

0.00%

0 / 1

      2

0.00%

0 / 1

       getPositionSlug()

0.00%

0 / 1

      2

0.00%

0 / 1

       getLocationSlug()

0.00%

0 / 1

      2

0.00%

0 / 1

1
	<?php

2

3
	namespace Acme\JobeetBundle\Entity;

4

5
	use Acme\JobeetBundle\Utils\Jobeet as Jobeet;

6
	use Doctrine\ORM\Mapping as ORM;

7

8
	/**

9
	 * Job

10
	 */

11
	class Job

12
	{

13

14
	    /**

15
	     * @var integer

16
	     */

17
	    private $id;

18

19
	    /**

20
	     * @var string

21
	     */

22
	    private $type;

23

24
	    /**

25
	     * @var string

26
	     */

27
	    private $company;

28

29
	    /**

30
	     * @var string

31
	     */

32
	    private $logo;

33

34
	    /**

35
	     * @var string

36
	     */

37
	    private $url;

38

39
	    /**

40
	     * @var string

41
	     */

42
	    private $position;

43

44
	    /**

45
	     * @var string

46
	     */

47
	    private $location;

48

49
	    /**

50
	     * @var string

51
	     */

52
	    private $description;

53

54
	    /**

55
	     * @var string

56
	     */

57
	    private $how_to_apply;

58

59
	    /**

60
	     * @var string

61
	     */

62
	    private $token;

63

64
	    /**

65
	     * @var boolean

66
	     */

67
	    private $is_public;

68

69
	    /**

70
	     * @var boolean

71
	     */

72
	    private $is_activated;

73

74
	    /**

75
	     * @var string

76
	     */

77
	    private $email;

78

79
	    /**

80
	     * @var \DateTime

81
	     */

82
	    private $expires_at;

83

84
	    /**

85
	     * @var string

86
	     */

87
	    private $created_at;

88

89
	    /**

90
	     * @var string

91
	     */

92
	    private $updated_at;

93

94
	    /**

95
	     * @var \Acme\JobeetBundle\Entity\Category

96
	     */

97
	    private $Category;

98

99

100
	    /**

101
	     * Get id

102
	     *

103
	     * @return integer

104
	     */

105
	    public function getId()

106
	    {

107
	        return $this->id;

108
	    }

109

110
	    /**

111
	     * Set type

112
	     *

113
	     * @param string $type

114
	     * @return Job

115
	     */

116
	    public function setType($type)

117
	    {

     <tr class="success popin" data-title="4 tests cover line 118" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
118
	        $this->type = $type;

119

     <tr class="success popin" data-title="4 tests cover line 120" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
120
	        return $this;

121
	    }

122

123
	    /**

124
	     * Get type

125
	     *

126
	     * @return string

127
	     */

128
	    public function getType()

129
	    {

130
	        return $this->type;

131
	    }

132

133
	    /**

134
	     * Set company

135
	     *

136
	     * @param string $company

137
	     * @return Job

138
	     */

139
	    public function setCompany($company)

140
	    {

     <tr class="success popin" data-title="4 tests cover line 141" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
141
	        $this->company = $company;

142

     <tr class="success popin" data-title="4 tests cover line 143" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
143
	        return $this;

144
	    }

145

146
	    /**

147
	     * Get company

148
	     *

149
	     * @return string

150
	     */

151
	    public function getCompany()

152
	    {

153
	        return $this->company;

154
	    }

155

156
	    /**

157
	     * Set logo

158
	     *

159
	     * @param string $logo

160
	     * @return Job

161
	     */

162
	    public function setLogo($logo)

163
	    {

     <tr class="success popin" data-title="4 tests cover line 164" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
164
	        $this->logo = $logo;

165

     <tr class="success popin" data-title="4 tests cover line 166" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
166
	        return $this;

167
	    }

168

169
	    /**

170
	     * Get logo

171
	     *

172
	     * @return string

173
	     */

174
	    public function getLogo()

175
	    {

176
	        return $this->logo;

177
	    }

178

179
	    /**

180
	     * Set url

181
	     *

182
	     * @param string $url

183
	     * @return Job

184
	     */

185
	    public function setUrl($url)

186
	    {

     <tr class="success popin" data-title="4 tests cover line 187" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
187
	        $this->url = $url;

188

     <tr class="success popin" data-title="4 tests cover line 189" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
189
	        return $this;

190
	    }

191

192
	    /**

193
	     * Get url

194
	     *

195
	     * @return string

196
	     */

197
	    public function getUrl()

198
	    {

199
	        return $this->url;

200
	    }

201

202
	    /**

203
	     * Set position

204
	     *

205
	     * @param string $position

206
	     * @return Job

207
	     */

208
	    public function setPosition($position)

209
	    {

     <tr class="success popin" data-title="4 tests cover line 210" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
210
	        $this->position = $position;

211

     <tr class="success popin" data-title="4 tests cover line 212" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
212
	        return $this;

213
	    }

214

215
	    /**

216
	     * Get position

217
	     *

218
	     * @return string

219
	     */

220
	    public function getPosition()

221
	    {

222
	        return $this->position;

223
	    }

224

225
	    /**

226
	     * Set location

227
	     *

228
	     * @param string $location

229
	     * @return Job

230
	     */

231
	    public function setLocation($location)

232
	    {

     <tr class="success popin" data-title="4 tests cover line 233" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
233
	        $this->location = $location;

234

     <tr class="success popin" data-title="4 tests cover line 235" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
235
	        return $this;

236
	    }

237

238
	    /**

239
	     * Get location

240
	     *

241
	     * @return string

242
	     */

243
	    public function getLocation()

244
	    {

245
	        return $this->location;

246
	    }

247

248
	    /**

249
	     * Set description

250
	     *

251
	     * @param string $description

252
	     * @return Job

253
	     */

254
	    public function setDescription($description)

255
	    {

     <tr class="success popin" data-title="4 tests cover line 256" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
256
	        $this->description = $description;

257

     <tr class="success popin" data-title="4 tests cover line 258" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
258
	        return $this;

259
	    }

260

261
	    /**

262
	     * Get description

263
	     *

264
	     * @return string

265
	     */

266
	    public function getDescription()

267
	    {

268
	        return $this->description;

269
	    }

270

271
	    /**

272
	     * Set how_to_apply

273
	     *

274
	     * @param string $howToApply

275
	     * @return Job

276
	     */

277
	    public function setHowToApply($howToApply)

278
	    {

     <tr class="success popin" data-title="4 tests cover line 279" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
279
	        $this->how_to_apply = $howToApply;

280

     <tr class="success popin" data-title="4 tests cover line 281" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
281
	        return $this;

282
	    }

283

284
	    /**

285
	     * Get how_to_apply

286
	     *

287
	     * @return string

288
	     */

289
	    public function getHowToApply()

290
	    {

291
	        return $this->how_to_apply;

292
	    }

293

294
	    /**

295
	     * Set token

296
	     *

297
	     * @param string $token

298
	     * @return Job

299
	     */

300
	    public function setToken($token)

301
	    {

     <tr class="success popin" data-title="4 tests cover line 302" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
302
	        $this->token = $token;

303

     <tr class="success popin" data-title="4 tests cover line 304" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
304
	        return $this;

305
	    }

306

307
	    /**

308
	     * Get token

309
	     *

310
	     * @return string

311
	     */

312
	    public function getToken()

313
	    {

314
	        return $this->token;

315
	    }

316

317
	    /**

318
	     * Set is_public

319
	     *

320
	     * @param boolean $isPublic

321
	     * @return Job

322
	     */

323
	    public function setIsPublic($isPublic)

324
	    {

     <tr class="success popin" data-title="4 tests cover line 325" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
325
	        $this->is_public = $isPublic;

326

     <tr class="success popin" data-title="4 tests cover line 327" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
327
	        return $this;

328
	    }

329

330
	    /**

331
	     * Get is_public

332
	     *

333
	     * @return boolean

334
	     */

335
	    public function getIsPublic()

336
	    {

337
	        return $this->is_public;

338
	    }

339

340
	    /**

341
	     * Set is_activated

342
	     *

343
	     * @param boolean $isActivated

344
	     * @return Job

345
	     */

346
	    public function setIsActivated($isActivated)

347
	    {

     <tr class="success popin" data-title="4 tests cover line 348" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
348
	        $this->is_activated = $isActivated;

349

     <tr class="success popin" data-title="4 tests cover line 350" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
350
	        return $this;

351
	    }

352

353
	    /**

354
	     * Get is_activated

355
	     *

356
	     * @return boolean

357
	     */

358
	    public function getIsActivated()

359
	    {

360
	        return $this->is_activated;

361
	    }

362

363
	    /**

364
	     * Set email

365
	     *

366
	     * @param string $email

367
	     * @return Job

368
	     */

369
	    public function setEmail($email)

370
	    {

     <tr class="success popin" data-title="4 tests cover line 371" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
371
	        $this->email = $email;

372

     <tr class="success popin" data-title="4 tests cover line 373" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
373
	        return $this;

374
	    }

375

376
	    /**

377
	     * Get email

378
	     *

379
	     * @return string

380
	     */

381
	    public function getEmail()

382
	    {

383
	        return $this->email;

384
	    }

385

386
	    /**

387
	     * Set expires_at

388
	     *

389
	     * @param \DateTime $expiresAt

390
	     * @return Job

391
	     */

392
	    public function setExpiresAt($expiresAt)

393
	    {

     <tr class="success popin" data-title="4 tests cover line 394" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
394
	        $this->expires_at = $expiresAt;

395

     <tr class="success popin" data-title="4 tests cover line 396" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
396
	        return $this;

397
	    }

398

399
	    /**

400
	     * Get expires_at

401
	     *

402
	     * @return \DateTime

403
	     */

404
	    public function getExpiresAt()

405
	    {

     <tr class="success popin" data-title="4 tests cover line 406" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
406
	        return $this->expires_at;

407
	    }

408

409
	    /**

410
	     * Set created_at

411
	     *

412
	     * @param string $createdAt

413
	     * @return Job

414
	     */

415
	    public function setCreatedAt($createdAt)

416
	    {

417
	        $this->created_at = $createdAt;

418

419
	        return $this;

420
	    }

421

422
	    /**

423
	     * Get created_at

424
	     *

425
	     * @return string

426
	     */

427
	    public function getCreatedAt()

428
	    {

     <tr class="success popin" data-title="4 tests cover line 429" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
429
	        return $this->created_at;

430
	    }

431

432
	    /**

433
	     * Set updated_at

434
	     *

435
	     * @param string $updatedAt

436
	     * @return Job

437
	     */

438
	    public function setUpdatedAt($updatedAt)

439
	    {

440
	        $this->updated_at = $updatedAt;

441

442
	        return $this;

443
	    }

444

445
	    /**

446
	     * Get updated_at

447
	     *

448
	     * @return string

449
	     */

450
	    public function getUpdatedAt()

451
	    {

452
	        return $this->updated_at;

453
	    }

454

455
	    /**

456
	     * Set Category

457
	     *

458
	     * @param \Acme\JobeetBundle\Entity\Category $category

459
	     * @return Job

460
	     */

461
	    public function setCategory(\Acme\JobeetBundle\Entity\Category $category)

462
	    {

     <tr class="success popin" data-title="4 tests cover line 463" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
463
	        $this->Category = $category;

464

     <tr class="success popin" data-title="4 tests cover line 465" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
465
	        return $this;

466
	    }

467

468
	    /**

469
	     * Get Category

470
	     *

471
	     * @return \Acme\JobeetBundle\Entity\Category

472
	     */

473
	    public function getCategory()

474
	    {

475
	        return $this->Category;

476
	    }

477
	    /**

478
	     * @ORM\PrePersist

479
	     */

480
	    public function prePersistEvent()

481
	    {

     <tr class="success popin" data-title="4 tests cover line 482" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
482
	        $this->created_at = new \DateTime();

     <tr class="success popin" data-title="4 tests cover line 483" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
483
	        if (!$this->getExpiresAt()) {

     <tr class="success popin" data-title="4 tests cover line 484" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
484
	            $now = $this->getCreatedAt() ? $this->getCreatedAt()->format('U') : time();

     <tr class="success popin" data-title="4 tests cover line 485" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
485
	            $this->expires_at = new \DateTime(date('Y-m-d H:i:s', $now + 86400 * 30));

     <tr class="success popin" data-title="4 tests cover line 486" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
486
	        }

487

     <tr class="success popin" data-title="4 tests cover line 488" data-content="<ul><li class="danger">Acme\JobeetBundle\Tests\Repository\CategoryRepositoryTest::testGetWithJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testCountActiveJobs</li><li class="danger">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJobs</li><li class="success">Acme\JobeetBundle\Tests\Repository\JobRepositoryTest::testGetActiveJob</li></ul>" data-placement="bottom" data-html="true">
488
	        return $this;

489
	    }

490

491
	    /**

492
	     * @ORM\PreUpdate

493
	     */

494
	    public function preUpdateEvent()

495
	    {

496
	        $this->updated_at = new \DateTime();

497

498
	        return $this;

499
	    }

500

501
	    public function __toString(){

502
	        return sprintf('%s at %s (%s)', $this->getPosition(),

503
	            $this->getCompany(), $this->getLocation());

504
	    }

505

506
	    public function getCompanySlug()

507
	    {

508
	        return Jobeet::slugify($this->getCompany());

509
	    }

510

511
	    public function getPositionSlug()

512
	    {

513
	        return Jobeet::slugify($this->getPosition());

514
	    }

515

516
	    public function getLocationSlug()

517
	    {

518
	        return Jobeet::slugify($this->getLocation());

519
	    }

520

Legend

     Executed
     Not Executed
     Dead Code

     Generated by PHP_CodeCoverage 1.2.13 using PHP 5.4.19 and PHPUnit 3.7.21 at Tue Nov 12 15:05:42 CET 2013.


text:
@interface ZLViewController () <ZLSwipeableViewDataSource, ZLSwipeableViewDelegate>
//@property (weak, nonatomic) IBOutlet ZLSwipeableView *swipeableView;

@property (nonatomic, strong) NSArray *colors;
@property (nonatomic) NSUInteger colorIndex;
@end

@implementation ZLViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.colorIndex = 0;
    self.colors = @[
                    @"Turquoise",
                    @"Green Sea",
                    @"Emerald",
                    @"Nephritis",
                    @"Peter River",
                    @"Belize Hole",
                    @"Amethyst",
                    @"Wisteria",
                    @"Wet Asphalt",
                    @"Midnight Blue",
                    @"Sun Flower",
                    @"Orange",
                    @"Carrot",
                    @"Pumpkin",
                    @"Alizarin",
                    @"Pomegranate",
                    @"Clouds",
                    @"Silver",
                    @"Concrete",
                    @"Asbestos",
                    ];

    CGRect appframe= [[UIScreen mainScreen] applicationFrame];
    //    NSLog(@"mainScreen bounds: %.0f, %.0f, %3.0f, %3.0f",
    //          bounds.origin.x, bounds.origin.y, bounds.size.width, bounds.size.height);
    //    NSLog(@"mainScreen applicationFrame: %.0f, %.0f, %3.0f, %3.0f",
    //          appframe.origin.x, appframe.origin.y, appframe.size.width, appframe.size.height);

//    ZLSwipeableView *swipeableView = [[ZLSwipeableView alloc] initWithFrame:self.view.frame];
//    ZLSwipeableView *swipeableView = [[ZLSwipeableView alloc] initWithFrame:CGRectMake(100, 100, 200, 200)];
    ZLSwipeableView *swipeableView = [[ZLSwipeableView alloc] initWithFrame:CGRectMake(appframe.origin.x+30, appframe.origin.y+30, appframe.size.width-60, appframe.size.height-60)];

    [self.view addSubview:swipeableView];

    [swipeableView setNeedsLayout];
    [swipeableView layoutIfNeeded];

    // required data source
    swipeableView.dataSource = self;

    // optional delegate
    swipeableView.delegate = self;
}
//- (IBAction)swipeLeftButtonAction:(UIButton *)sender {
//    [self.swipeableView swipeTopViewToLeft];
//}
//- (IBAction)swipeRightButtonAction:(UIButton *)sender {
//    [self.swipeableView swipeTopViewToRight];
//}
//- (IBAction)reloadButtonAction:(UIButton *)sender {
//    self.colorIndex = 0;
//    [self.swipeableView discardAllSwipeableViews];
//    [self.swipeableView loadNextSwipeableViewsIfNeeded];
//}

#pragma mark - ZLSwipeableViewDelegate
- (void)swipeableView: (ZLSwipeableView *)swipeableView didSwipeLeft:(UIView *)view {
    NSLog(@"did swipe left");
}
- (void)swipeableView: (ZLSwipeableView *)swipeableView didSwipeRight:(UIView *)view {
    NSLog(@"did swipe right");
}
- (void)swipeableView: (ZLSwipeableView *)swipeableView swipingView:(UIView *)view atLocation:(CGPoint)location {
    NSLog(@"swiping at location: x %f, y%f", location.x, location.y);
}

#pragma mark - ZLSwipeableViewDataSource
- (UIView *)nextViewForSwipeableView:(ZLSwipeableView *)swipeableView {
    if (self.colorIndex<self.colors.count) {
        CardView *view = [[CardView alloc] initWithFrame:swipeableView.bounds];
        view.cardColor = [self colorForName:self.colors[self.colorIndex]];
        self.colorIndex++;
        return view;
    }
    return nil;
}

#pragma mark - ()
- (UIColor *)colorForName:(NSString *)name
{
    NSString *sanitizedName = [name stringByReplacingOccurrencesOfString:@" " withString:@""];
    NSString *selectorString = [NSString stringWithFormat:@"flat%@Color", sanitizedName];
    Class colorClass = [UIColor class];
    return [colorClass performSelector:NSSelectorFromString(selectorString)];
}

@end


text:
#import <UIKit/UIKit.h>

#import "GPUImageOpenGLESContext.h"

void runOnMainQueueWithoutDeadlocking(void (^block)(void));
void runSynchronouslyOnVideoProcessingQueue(void (^block)(void));
void runAsynchronouslyOnVideoProcessingQueue(void (^block)(void));
void reportAvailableMemoryForGPUImage(NSString *tag);

@class GPUImageMovieWriter;

/** GPUImage's base source object

 Images or frames of video are uploaded from source objects, which are subclasses of GPUImageOutput. These include:

 - GPUImageVideoCamera (for live video from an iOS camera)
 - GPUImageStillCamera (for taking photos with the camera)
 - GPUImagePicture (for still images)
 - GPUImageMovie (for movies)

 Source objects upload still image frames to OpenGL ES as textures, then hand those textures off to the next objects in the processing chain.
 */
@interface GPUImageOutput : NSObject <GPUImageTextureDelegate>
{
    NSMutableArray *targets, *targetTextureIndices;

    GLuint outputTexture;
    CGSize inputTextureSize, cachedMaximumOutputSize, forcedMaximumSize;

    BOOL overrideInputSize;

    BOOL processingLargeImage;
    NSUInteger outputTextureRetainCount;

    __unsafe_unretained id<GPUImageTextureDelegate> firstTextureDelegate;
    BOOL shouldConserveMemoryForNextFrame;

    BOOL allTargetsWantMonochromeData;
}

@property(readwrite, nonatomic) BOOL shouldSmoothlyScaleOutput;
@property(readwrite, nonatomic) BOOL shouldIgnoreUpdatesToThisTarget;
@property(readwrite, nonatomic, retain) GPUImageMovieWriter *audioEncodingTarget;
@property(readwrite, nonatomic, unsafe_unretained) id<GPUImageInput> targetToIgnoreForUpdates;
@property(nonatomic, copy) void(^frameProcessingCompletionBlock)(GPUImageOutput*, CMTime);
@property(nonatomic) BOOL enabled;

/// @name Managing targets
- (void)setInputTextureForTarget:(id<GPUImageInput>)target atIndex:(NSInteger)inputTextureIndex;
- (GLuint)textureForOutput;
- (void)notifyTargetsAboutNewOutputTexture;

/** Returns an array of the current targets.
 */
- (NSArray*)targets;

/** Adds a target to receive notifications when new frames are available.

 The target will be asked for its next available texture.

 See [GPUImageInput newFrameReadyAtTime:]

 @param newTarget Target to be added
 */
- (void)addTarget:(id<GPUImageInput>)newTarget;

/** Adds a target to receive notifications when new frames are available.

 See [GPUImageInput newFrameReadyAtTime:]

 @param newTarget Target to be added
 */
- (void)addTarget:(id<GPUImageInput>)newTarget atTextureLocation:(NSInteger)textureLocation;

/** Removes a target. The target will no longer receive notifications when new frames are available.

 @param targetToRemove Target to be removed
 */
- (void)removeTarget:(id<GPUImageInput>)targetToRemove;

/** Removes all targets.
 */
- (void)removeAllTargets;

/// @name Manage the output texture

- (void)initializeOutputTextureIfNeeded;
- (void)deleteOutputTexture;
- (void)forceProcessingAtSize:(CGSize)frameSize;
- (void)forceProcessingAtSizeRespectingAspectRatio:(CGSize)frameSize;
- (void)cleanupOutputImage;

/// @name Still image processing

/** Retreives the currently processed image as a UIImage.
 */
- (UIImage *)imageFromCurrentlyProcessedOutput;
- (CGImageRef)newCGImageFromCurrentlyProcessedOutput;

/** Convenience method to retreive the currently processed image with a different orientation.
 @param imageOrientation Orientation for image
 */
- (UIImage *)imageFromCurrentlyProcessedOutputWithOrientation:(UIImageOrientation)imageOrientation;
- (CGImageRef)newCGImageFromCurrentlyProcessedOutputWithOrientation:(UIImageOrientation)imageOrientation;

/** Convenience method to process an image with a filter.

 This method is useful for using filters on still images without building a full pipeline.

 @param imageToFilter Image to be filtered
 */
- (UIImage *)imageByFilteringImage:(UIImage *)imageToFilter;
- (CGImageRef)newCGImageByFilteringImage:(UIImage *)imageToFilter;
- (CGImageRef)newCGImageByFilteringCGImage:(CGImageRef)imageToFilter;
- (CGImageRef)newCGImageByFilteringCGImage:(CGImageRef)imageToFilter orientation:(UIImageOrientation)orientation;

- (BOOL)providesMonochromeOutput;

- (void)prepareForImageCapture;
- (void)conserveMemoryForNextFrame;

@end


text:
import { FC } from 'react'
import { TableInstance } from 'react-table'
import MuiTable from '@mui/material/Table'
import TableBody from '@mui/material/TableBody'
import TableCell from '@mui/material/TableCell'
import TableHead from '@mui/material/TableHead'
import TableRow from '@mui/material/TableRow'

const cellStyles = {
  table: {},
  gearCell: {
    width: { xs: 35, md: 70 },
    padding: { xs: '6px 1px 6px 1px;' },
  },
}

interface TableProps {
  table: TableInstance
}

/* eslint-disable react/jsx-props-no-spreading */
const Table: FC<TableProps> = ({
  table: {
    getTableProps,
    headers,
    prepareRow,
    rows,
  },
}: TableProps) => {
  return (
    <MuiTable
      {...getTableProps()}
      stickyHeader
      size="small"
      sx={{ tableLayout: 'fixed' }}
    >
      <TableHead>
        <TableRow>
          {
            headers.map((column) => {
              const { key, ...props } = column.getHeaderProps()
              return (
                <TableCell
                  key={key}
                  {...props}
                  align="center"
                  sx={{ fontWeight: 'bold' }}
                >
                  {column.render('Header')}
                </TableCell>
              )
            })
          }
        </TableRow>
      </TableHead>
      <TableBody>
        {rows.map((row) => {
          prepareRow(row)
          const { key, ...props } = row.getRowProps()
          return (
            <TableRow key={key} {...props}>
              {row.cells.map((cell) => {
                const { key: cellKey, ...cellProps } = cell.getCellProps()
                return (
                  <TableCell
                    key={cellKey}
                    {...cellProps}
                    align="center"
                    sx={cellStyles[cell.column.className]}
                  >
                    {cell.render('Cell')}
                  </TableCell>
                )
              })}
            </TableRow>
          )
        })}
      </TableBody>
    </MuiTable>
  )
}

export default Table


text:
/*
 * aria2 - The high speed download utility
 *
 * Copyright (C) 2012 Tatsuhiro Tsujikawa
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 *
 * In addition, as a special exception, the copyright holders give
 * permission to link the code of portions of this program with the
 * OpenSSL library under certain conditions as described in each
 * individual source file, and distribute linked combinations
 * including the two.
 * You must obey the GNU General Public License in all respects
 * for all of the code used other than OpenSSL.  If you modify
 * file(s) with this exception, you may extend this exception to your
 * version of the file(s), but you are not obligated to do so.  If you
 * do not wish to do so, delete this exception statement from your
 * version.  If you delete this exception statement from all source
 * files in the program, then also delete it here.
 */
/* copyright --> */
#ifndef D_ABSTRACT_HTTP_SERVER_RESPONSE_COMMAND_H
#define D_ABSTRACT_HTTP_SERVER_RESPONSE_COMMAND_H

#include "Command.h"

#include <memory>

#include "TimerA2.h"

namespace aria2 {

class DownloadEngine;
class SocketCore;
class HttpServer;

class AbstractHttpServerResponseCommand : public Command {
private:
  DownloadEngine* e_;
  std::shared_ptr<SocketCore> socket_;
  std::shared_ptr<HttpServer> httpServer_;
  Timer timeoutTimer_;
  bool readCheck_;
  bool writeCheck_;

  void updateReadWriteCheck();
protected:
  DownloadEngine* getDownloadEngine()
  {
    return e_;
  }
  // Called after content body is completely sent.
  virtual void afterSend(const std::shared_ptr<HttpServer>& httpServer,
                         DownloadEngine* e) = 0;
public:
  AbstractHttpServerResponseCommand(cuid_t cuid,
                                    const std::shared_ptr<HttpServer>& httpServer,
                                    DownloadEngine* e,
                                    const std::shared_ptr<SocketCore>& socket);

  virtual ~AbstractHttpServerResponseCommand();

  virtual bool execute() CXX11_OVERRIDE;
};

} // namespace aria2

#endif // D_ABSTRACT_HTTP_SERVER_RESPONSE_COMMAND_H


text:
/*
 * Do not modify this file. This file is generated from the ec2-2015-04-15.normal.json service model.
 */
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;

using Amazon.Runtime;
using Amazon.Runtime.Internal;

namespace Amazon.EC2.Model
{
    ///
    /// Container for the parameters to the DescribeRouteTables operation.
    /// Describes one or more of your route tables.
    ///
    ///
    /// <para>
    /// Each subnet in your VPC must be associated with a route table. If a subnet is not
    /// explicitly associated with any route table, it is implicitly associated with the main
    /// route table. This command does not return the subnet ID for implicit associations.
    /// </para>
    ///
    /// <para>
    /// For more information about route tables, see Route
    /// Tables in the Amazon Virtual Private Cloud User Guide.
    /// </para>
    ///
    public partial class DescribeRouteTablesRequest : AmazonEC2Request
    {
        private List<Filter> _filters = new List<Filter>();
        private List<string> _routeTableIds = new List<string>();

        ///
        /// Gets and sets the property Filters.
        /// <para>
        /// One or more filters.
        /// </para>
        ///

        /// <para>
        /// association.route-table-association-id - The ID of an association ID
        /// for the route table.
        /// </para>
        ///

        /// <para>
        /// association.route-table-id - The ID of the route table involved in the
        /// association.
        /// </para>
        ///

        /// <para>
        /// association.subnet-id - The ID of the subnet involved in the association.
        /// </para>
        ///

        /// <para>
        /// association.main - Indicates whether the route table is the main route
        /// table for the VPC.
        /// </para>
        ///

        /// <para>
        /// route-table-id - The ID of the route table.
        /// </para>
        ///

        /// <para>
        /// route.destination-cidr-block - The CIDR range specified in a route in
        /// the table.
        /// </para>
        ///

        /// <para>
        /// route.destination-prefix-list-id - The ID (prefix) of the AWS service
        /// specified in a route in the table.
        /// </para>
        ///

        /// <para>
        /// route.gateway-id - The ID of a gateway specified in a route in the table.
        /// </para>
        ///

        /// <para>
        /// route.instance-id - The ID of an instance specified in a route in the
        /// table.
        /// </para>
        ///

        /// <para>
        /// route.origin - Describes how the route was created. CreateRouteTable
        /// indicates that the route was automatically created when the route table was created;
        /// CreateRoute indicates that the route was manually added to the route
        /// table; EnableVgwRoutePropagation indicates that the route was propagated
        /// by route propagation.
        /// </para>
        ///

        /// <para>
        /// route.state - The state of a route in the route table (active
        /// | blackhole). The blackhole state indicates that the route's target isn't
        /// available (for example, the specified gateway isn't attached to the VPC, the specified
        /// NAT instance has been terminated, and so on).
        /// </para>
        ///

        /// <para>
        /// route.vpc-peering-connection-id - The ID of a VPC peering connection
        /// specified in a route in the table.
        /// </para>
        ///

        /// <para>
        /// tag:key=value - The key/value combination of a tag assigned
        /// to the resource.
        /// </para>
        ///

        /// <para>
        /// tag-key - The key of a tag assigned to the resource. This filter is independent
        /// of the tag-value filter. For example, if you use both the filter "tag-key=Purpose"
        /// and the filter "tag-value=X", you get any resources assigned both the tag key Purpose
        /// (regardless of what the tag's value is), and the tag value X (regardless of what the
        /// tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value
        /// filter.
        /// </para>
        ///

        /// <para>
        /// tag-value - The value of a tag assigned to the resource. This filter
        /// is independent of the tag-key filter.
        /// </para>
        ///

        /// <para>
        /// vpc-id - The ID of the VPC for the route table.
        /// </para>
        ///

        ///
        public List<Filter> Filters
        {
            get { return this._filters; }
            set { this._filters = value; }
        }

        // Check to see if Filters property is set
        internal bool IsSetFilters()
        {
            return this._filters != null && this._filters.Count > 0;
        }

        ///
        /// Gets and sets the property RouteTableIds.
        /// <para>
        /// One or more route table IDs.
        /// </para>
        ///
        /// <para>
        /// Default: Describes all your route tables.
        /// </para>
        ///
        public List<string> RouteTableIds
        {
            get { return this._routeTableIds; }
            set { this._routeTableIds = value; }
        }

        // Check to see if RouteTableIds property is set
        internal bool IsSetRouteTableIds()
        {
            return this._routeTableIds != null && this._routeTableIds.Count > 0;
        }

    }
}


text:
package com.sun.xml.internal.fastinfoset.tools;

import com.sun.xml.internal.fastinfoset.stax.StAXDocumentSerializer;
import java.io.InputStream;
import java.io.OutputStream;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.InputSource;
import org.xml.sax.XMLReader;

public class XML_SAX_StAX_FI extends TransformInputOutput {

    public XML_SAX_StAX_FI() {
    }

    public void parse(InputStream xml, OutputStream finf, String workingDirectory) throws Exception {
        StAXDocumentSerializer documentSerializer = new StAXDocumentSerializer();
        documentSerializer.setOutputStream(finf);

        SAX2StAXWriter saxTostax = new SAX2StAXWriter(documentSerializer);

        SAXParserFactory saxParserFactory = SAXParserFactory.newInstance();
        saxParserFactory.setNamespaceAware(true);
        SAXParser saxParser = saxParserFactory.newSAXParser();

        XMLReader reader = saxParser.getXMLReader();
        reader.setProperty("http://xml.org/sax/properties/lexical-handler", saxTostax);
        reader.setContentHandler(saxTostax);

        if (workingDirectory != null) {
            reader.setEntityResolver(createRelativePathResolver(workingDirectory));
        }
        reader.parse(new InputSource(xml));

        xml.close();
        finf.close();
    }

    public void parse(InputStream xml, OutputStream finf) throws Exception {
        parse(xml, finf, null);
    }

    public static void main(String[] args) throws Exception {
        XML_SAX_StAX_FI s = new XML_SAX_StAX_FI();
        s.parse(args);
    }

}


text:
/*
Package transport is the toplevel package to define interfaces that the client and codec packages use to decouple from
the transport implementations.
*/
package transport


text:
import React from 'react'
import { mount } from 'enzyme'
import toJson from 'enzyme-to-json'
import { Rating } from 'semantic-ui-react'
import RatingFormField from '../RatingFormField'

describe('RatingFormField component', () => {
  it('should render without rating if none provided', () => {
    var rating = mount(
      <RatingFormField
        clearable
        input={{value: null}}
        />
    )
    expect(rating.find(Rating).props().maxRating).toBe(5)
    expect(toJson(rating)).toMatchSnapshot()
  })

  it('should render if initial rating provided', () => {
    var rating = mount(
      <RatingFormField
        clearable
        input={{value: 3}}
        />
    )
    expect(rating.find(Rating.Icon).findWhere((n) => n.props().active).length).toBe(3)
    expect(toJson(rating)).toMatchSnapshot()
  })

  it('should handle onClick/handleChange correctly', () => {
    const onChange = jest.fn()
    var rating = mount(
      <RatingFormField
        clearable
        input={{value: 3, onChange}}
        />
    )
    rating.find(Rating.Icon).last().simulate('click')
    expect(onChange).toBeCalled()
    expect(onChange.mock.calls[0][0]).toBe(5)

    rating.setProps({input: {value: 5}})
    expect(rating.find(Rating.Icon).findWhere((n) => n.props().active).length).toBe(5)
    expect(toJson(rating)).toMatchSnapshot()
  })
})


text:
export function canBeNumber(str: string): boolean {
  if (!str) {
    return false;
  }
  return !isNaN(+str);
}


text:
package org.ec.jap.backend.sistema;

import java.util.List;

import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.faces.event.ActionEvent;
import javax.faces.model.SelectItem;

import org.ec.jap.backend.pagina.Bean;
import org.ec.jap.backend.utilitario.Mensaje;
import org.ec.jap.bo.saap.UsuarioBO;
import org.ec.jap.bo.sistema.UsuarioPerfilBO;
import org.ec.jap.entiti.sistema.UsuarioPerfil;
import org.ec.jap.enumerations.ValorSiNo;

@ManagedBean
@ViewScoped
public class UsuarioSPerfilEditBean extends Bean {

	/**
	 *
	 */

	@EJB
	UsuarioBO usuarioBO;

	@EJB
	UsuarioPerfilBO usuarioPerfilBO;

	List<UsuarioPerfil> usuarioPerfils;

	public UsuarioSPerfilEditBean() {
		super();
	}

	@PostConstruct
	@Override
	public void init() {
		try {
			super.init();
			search(null);
		} catch (Exception e) {
			e.printStackTrace();
			displayMessage(e.getMessage(), Mensaje.SEVERITY_ERROR);
		}

	}

	@Override
	public void search(ActionEvent event) {
		try {
			usuarioPerfils = usuarioPerfilBO.getByUser(usuarioBO.findByPk(getParam1Integer()));
		} catch (Exception e) {
			e.printStackTrace();
			displayMessage(e.getMessage(), Mensaje.SEVERITY_ERROR);
		}
	}

	@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
	@Override
	public String guardar() {
		try {
			usuarioPerfilBO.savePerfil(usuarioPerfils, getUsuarioCurrent());
			displayMessage(Mensaje.saveMessaje, Mensaje.SEVERITY_INFO);
			return getPage().getOutcome();
		} catch (Exception e) {
			e.printStackTrace();
			displayMessage(e.getMessage(), Mensaje.SEVERITY_ERROR);
			return "";
		}
	}

	public List<SelectItem> getSiNo() {
		try {
			return getSelectItems(ValorSiNo.values());
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

	public List<UsuarioPerfil> getUsuarioPerfils() {
		return usuarioPerfils;
	}

	public void setUsuarioPerfils(List<UsuarioPerfil> usuarioPerfils) {
		this.usuarioPerfils = usuarioPerfils;
	}

}


text:
<html>
	<head>
		<title>FermTest</title>
		<script src="../jspm_packages/system.js"></script>
		<script src="../config.js"></script>
		<script>
			System.import('./tests');
		</script>
	</head>
	<body></body>

</html>


text:
package com.koch.ambeth.persistence.blueprint;

import org.w3c.dom.Document;

public interface IVomDocumentCreator {

	Document getVomDocument(String businessObjectType, String valueObjectType);

}


text:
<!DOCTYPE html >

          <meta http-equiv="X-UA-Compatible" content="IE=edge" />
          <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
          <title></title>
          <meta name="description" content="" />
          <meta name="keywords" content="" />
          <meta http-equiv="content-type" content="text/html; charset=UTF-8" />

      <link href="../../../../../../lib/index.css" media="screen" type="text/css" rel="stylesheet" />
      <link href="../../../../../../lib/template.css" media="screen" type="text/css" rel="stylesheet" />
      <link href="../../../../../../lib/diagrams.css" media="screen" type="text/css" rel="stylesheet" id="diagrams-css" />

        < Back

            <input autocapitalize="none" placeholder="Search" id="index-input" type="text" accesskey="/" />
            
            

Packages

        

        package

        root

Definition Classes

root

        

        package

        com

Definition Classes

root

        

        package

        github

Definition Classes

com

        

        package

        illfaku

Definition Classes

github

        

        package

        korro

Definition Classes

illfaku

        

        package

        dto

Definition Classes

korro

        

        package

        ws

Definition Classes

dto

                        BinaryWsFrame

                        CloseWsFrame

                        ControlWsFrame

                        DataWsFrame

                        PingWsFrame

                        PongWsFrame

                        TextWsFrame

                        WsFrame

                        WsHandshakeRequest

                        WsHandshakeResponse

t

com.github.illfaku.korro.dto.ws

WsFrame

        

        sealed
        trait

        WsFrame extends AnyRef

Marker trait for WebSocket frame representations.

See also

https://tools.ietf.org/html/rfc6455#section-5

            Linear Supertypes

AnyRef, Any

              Known Subclasses

BinaryWsFrame, CloseWsFrame, ControlWsFrame, DataWsFrame, PingWsFrame, PongWsFrame, TextWsFrame

          

            <input id="mbrsel-input" placeholder="Filter all members" type="text" accesskey="/" />

          

            Ordering

Alphabetic

By Inheritance

                  Inherited

WsFrame

AnyRef

Any

                  Implicitly

by any2stringadd

by StringFormat

by Ensuring

by ArrowAssoc

Hide All

Show All

              Visibility

Public

All

Value Members

        

        final
        def

        !=(arg0: Any): Boolean

Definition Classes

AnyRef → Any

        

        final
        def

        ##(): Int

Definition Classes

AnyRef → Any

        

        def

        +(other: String): String

Implicit

            This member is added by an implicit conversion from WsFrame to
            any2stringadd[WsFrame] performed by method any2stringadd in scala.Predef.

Definition Classes

any2stringadd

        

        def

        ->[B](y: B): (WsFrame, B)

Implicit

            This member is added by an implicit conversion from WsFrame to
            ArrowAssoc[WsFrame] performed by method ArrowAssoc in scala.Predef.

Definition Classes

ArrowAssoc

Annotations

                @inline()

        

        final
        def

        ==(arg0: Any): Boolean

Definition Classes

AnyRef → Any

        

        final
        def

        asInstanceOf[T0]: T0

Definition Classes

Any

        

        def

        clone(): AnyRef

Attributes

protected[java.lang]

Definition Classes

AnyRef

Annotations

                @native()

                @throws(

      ...
    )

        

        def

        ensuring(cond: (WsFrame) ⇒ Boolean, msg: ⇒ Any): WsFrame

Implicit

            This member is added by an implicit conversion from WsFrame to
            Ensuring[WsFrame] performed by method Ensuring in scala.Predef.

Definition Classes

Ensuring

        

        def

        ensuring(cond: (WsFrame) ⇒ Boolean): WsFrame

Implicit

            This member is added by an implicit conversion from WsFrame to
            Ensuring[WsFrame] performed by method Ensuring in scala.Predef.

Definition Classes

Ensuring

        

        def

        ensuring(cond: Boolean, msg: ⇒ Any): WsFrame

Implicit

            This member is added by an implicit conversion from WsFrame to
            Ensuring[WsFrame] performed by method Ensuring in scala.Predef.

Definition Classes

Ensuring

        

        def

        ensuring(cond: Boolean): WsFrame

Implicit

            This member is added by an implicit conversion from WsFrame to
            Ensuring[WsFrame] performed by method Ensuring in scala.Predef.

Definition Classes

Ensuring

        

        final
        def

        eq(arg0: AnyRef): Boolean

Definition Classes

AnyRef

        

        def

        equals(arg0: Any): Boolean

Definition Classes

AnyRef → Any

        

        def

        finalize(): Unit

Attributes

protected[java.lang]

Definition Classes

AnyRef

Annotations

                @throws(

      classOf[java.lang.Throwable]
    )

        

        def

        formatted(fmtstr: String): String

Implicit

            This member is added by an implicit conversion from WsFrame to
            StringFormat[WsFrame] performed by method StringFormat in scala.Predef.

Definition Classes

StringFormat

Annotations

                @inline()

        

        final
        def

        getClass(): Class[_]

Definition Classes

AnyRef → Any

Annotations

                @native()

        

        def

        hashCode(): Int

Definition Classes

AnyRef → Any

Annotations

                @native()

        

        final
        def

        isInstanceOf[T0]: Boolean

Definition Classes

Any

        

        final
        def

        ne(arg0: AnyRef): Boolean

Definition Classes

AnyRef

        

        final
        def

        notify(): Unit

Definition Classes

AnyRef

Annotations

                @native()

        

        final
        def

        notifyAll(): Unit

Definition Classes

AnyRef

Annotations

                @native()

        

        final
        def

        synchronized[T0](arg0: ⇒ T0): T0

Definition Classes

AnyRef

        

        def

        toString(): String

Definition Classes

AnyRef → Any

        

        final
        def

        wait(): Unit

Definition Classes

AnyRef

Annotations

                @throws(

      ...
    )

        

        final
        def

        wait(arg0: Long, arg1: Int): Unit

Definition Classes

AnyRef

Annotations

                @throws(

      ...
    )

        

        final
        def

        wait(arg0: Long): Unit

Definition Classes

AnyRef

Annotations

                @native()

                @throws(

      ...
    )

        

        def

        →[B](y: B): (WsFrame, B)

Implicit

            This member is added by an implicit conversion from WsFrame to
            ArrowAssoc[WsFrame] performed by method ArrowAssoc in scala.Predef.

Definition Classes

ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from
                WsFrame to any2stringadd[WsFrame]

Inherited by implicit conversion StringFormat from
                WsFrame to StringFormat[WsFrame]

Inherited by implicit conversion Ensuring from
                WsFrame to Ensuring[WsFrame]

Inherited by implicit conversion ArrowAssoc from
                WsFrame to ArrowAssoc[WsFrame]

Ungrouped


text:
<?php

namespace Berrybird\Cerberus\Credential;

class SlowCredentialMatcher implements CredentialMatcher
{
    /**
     * {@inheritdoc}
     */
    public function equals($credential1, $credential2)
    {
        $diff = strlen($credential1) ^ strlen($credential2);

        for ($i = 0; $i < strlen($credential1) && $i < strlen($credential2); $i++) {
            $diff |= ord($credential1[$i]) ^ ord($credential2[$i]);
        }

        return $diff === 0;
    }
}