Display copyright.
507248
public static void displayCopyright() {
        System.out.println("Vietnamese Word Segmentation:");
        System.out.println("\tusing Conditional Random Fields");
        System.out.println("\ttesting our dataset of 8000 sentences with the highest F1-measure of 94%");
        System.out.println("Copyright (C) by Cam-Tu Nguyen {1,2} and Xuan-Hieu Phan {2}");
        System.out.println("{1}: College of Technology, Hanoi National University");
        System.out.println("{2}: Graduate School of Information Sciences, Tohoku University");
        System.out.println("Email: {ncamtu@gmail.com ; pxhieu@gmail.com}");
        System.out.println();
    }
83064
function renderCopyrightLicenseField( $args ) {
		unset( $args['label_for'], $args['class'] );
		$this->renderRadioButtons(
			[
				'id' => 'copyright_license',
				'name' => 'pressbooks_theme_options_' . $this->getSlug(),
				'option' => 'copyright_license',
				'value' => getset( $this->options, 'copyright_license', 0 ),
				'choices' => $args,
			]
		);
	}
664866
def display(self, image):
        
        assert(image.size == self.size)

        self.image = self.preprocess(image).copy()
604523
def display(self):
        """"""
        if self.title and self.organization:
            disp = self.title + u' at ' + self.organization
        else:
            disp = self.title or self.organization or None
        if disp and self.industry:
            if self.date_range is not None:
                disp += u' (%s, %d-%d)' % ((self.industry,) + \
                                           self.date_range.years_range)
            else:
                disp += u' (%s)' % self.industry
        else:
            disp = ((disp or u'') + u' ' + (self.industry or u'')).strip()
            if disp and self.date_range is not None:
                disp += u' (%d-%d)' % self.date_range.years_range
        return disp
1227964
def copyright_model_factory(*, validator=validators.is_copyright_model,
                            **kwargs):
    
    kwargs['ld_type'] = 'Copyright'
    return _model_factory(validator=validator, **kwargs)
564470
public Object displayLicenseFile(InputStream licenseFile, CommandConsole commandConsole) {
        Object e = LicenseUtility.class;
        if (licenseFile != null) {
            e = showLicenseFile(licenseFile, commandConsole);
        }
        if (e != null) {
            commandConsole.printErrorMessage(CommandUtils.getMessage("LICENSE_NOT_FOUND"));
        }
        return e;
    }
813071
def set_usage_rights_courses(self, file_ids, course_id, usage_rights_use_justification, folder_ids=None, publish=None, usage_rights_legal_copyright=None, usage_rights_license=None):
        
        path = {}
        data = {}
        params = {}

        # REQUIRED - PATH - course_id
        """ID"""
        path["course_id"] = course_id

        # REQUIRED - file_ids
        """List of ids of files to set usage rights for."""
        data["file_ids"] = file_ids

        # OPTIONAL - folder_ids
        """List of ids of folders to search for files to set usage rights for.
        Note that new files uploaded to these folders do not automatically inherit these rights."""
        if folder_ids is not None:
            data["folder_ids"] = folder_ids

        # OPTIONAL - publish
        """Whether the file(s) or folder(s) should be published on save, provided that usage rights have been specified (set to `true` to publish on save)."""
        if publish is not None:
            data["publish"] = publish

        # REQUIRED - usage_rights[use_justification]
        """The intellectual property justification for using the files in Canvas"""
        self._validate_enum(usage_rights_use_justification, ["own_copyright", "used_by_permission", "fair_use", "public_domain", "creative_commons"])
        data["usage_rights[use_justification]"] = usage_rights_use_justification

        # OPTIONAL - usage_rights[legal_copyright]
        """The legal copyright line for the files"""
        if usage_rights_legal_copyright is not None:
            data["usage_rights[legal_copyright]"] = usage_rights_legal_copyright

        # OPTIONAL - usage_rights[license]
        """The license that applies to the files. See the {api:UsageRightsController#licenses List licenses endpoint} for the supported license types."""
        if usage_rights_license is not None:
            data["usage_rights[license]"] = usage_rights_license

        self.logger.debug("PUT /api/v1/courses/{course_id}/usage_rights with query params: {params} and form data: {data}".format(params=params, data=data, **path))
        return self.generic_request("PUT", "/api/v1/courses/{course_id}/usage_rights".format(**path), data=data, params=params, single_item=True)
1211666
def build_header(self, title):
        """"""
        header = ['---',
                  'title: ' + title,
                  'author(s): ' + self.user,
                  'tags: ',
                  'created_at: ' + str(self.date_created),
                  'updated_at: ' + str(self.date_updated),
                  'tldr: ',
                  'thumbnail: ',
                  '---']

        self.out = header + self.out
251500
def _init_metadata(self, **kwargs):
        """"""

        osid_objects.OsidSourceableForm._init_metadata(self)
        osid_objects.OsidObjectForm._init_metadata(self, **kwargs)
        self._copyright_registration_default = self._mdata['copyright_registration']['default_string_values'][0]
        update_display_text_defaults(self._mdata['copyright'], self._locale_map)
        self._copyright_default = dict(self._mdata['copyright']['default_string_values'][0])
        update_display_text_defaults(self._mdata['title'], self._locale_map)
        self._title_default = dict(self._mdata['title']['default_string_values'][0])
        self._distribute_verbatim_default = self._mdata['distribute_verbatim']['default_boolean_values'][0]
        self._created_date_default = self._mdata['created_date']['default_date_time_values'][0]
        self._distribute_alterations_default = self._mdata['distribute_alterations']['default_boolean_values'][0]
        update_display_text_defaults(self._mdata['principal_credit_string'], self._locale_map)
        self._principal_credit_string_default = dict(self._mdata['principal_credit_string']['default_string_values'][0])
        self._published_date_default = self._mdata['published_date']['default_date_time_values'][0]
        self._source_default = self._mdata['source']['default_id_values'][0]
        self._provider_links_default = self._mdata['provider_links']['default_id_values']
        self._public_domain_default = self._mdata['public_domain']['default_boolean_values'][0]
        self._distribute_compositions_default = self._mdata['distribute_compositions']['default_boolean_values'][0]
        self._composition_default = self._mdata['composition']['default_id_values'][0]
        self._published_default = self._mdata['published']['default_boolean_values'][0]
612405
def com_google_fonts_check_metadata_copyright(family_metadata):
  """"""
  copyright = None
  fail = False
  for f in family_metadata.fonts:
    if copyright and f.copyright != copyright:
      fail = True
    copyright = f.copyright
  if fail:
    yield FAIL, ("METADATA.pb: Copyright field value"
                 " is inconsistent across family")
  else:
    yield PASS, "Copyright is consistent across family"
616676
public function addCopyright( Array $info_array = array() )
	{
		
		// Overwrite Default Settings
		$this->_copyright = array_merge( Config::get( static::PACKAGE_NAME . 'image.copyright' ), $info_array );

		
		// Set Font File
		$this->_copyright[ 'font' ] = !empty( $this->_copyright[ 'font' ] ) ?
					$this->getFontFilePath( $this->_copyright[ 'font' ] ) :
					$this->getFontFilePath();


		// Check Font File
		if( !file_exists( $this->_copyright['font'] ) )
			
			throw new ImageException( __METHOD__ . "() '$this->_copyright[ 'font' ]' doesn't exists" );

		
		// Check Numeric Values
		if( !is_numeric( $this->_copyright['font_size'] ) || !is_numeric( $this->_copyright['text_angle'] ) || !is_numeric( $this->_copyright['block_separation'] ) )
		
			throw new ImageException( __METHOD__ . '() font_size, text_angle, block_separation.' );
		
		
		
		// Check text before perform any other checks
		$this->_copyright['text'] = trim( $this->_copyright['text'] );

		
		// Exit If No Text To be Written
		if( !$this->_copyright['text'] )
			return true;

		
		// Get Alwayes angle in range of 360
		$this->_copyright[ 'text_angle' ] = $this->_copyright[ 'text_angle' ] % 360;

		// Fix Negative Angle Values
		if( $this->_copyright[ 'text_angle' ] < 0 )
			$this->_copyright[ 'text_angle' ] = 360 - abs( $this->_copyright[ 'text_angle' ] );

		// ----------------------------------- TEST ------------------------------------
			
			// # Get Cross Line angle
			// # tan ø = y / x 		==> 	ø = rad2deg( atan( y / x ) )
			
			// $angle = $this->_image_info[ 1 ] / $this->_image_info[ 0 ];

			// $angle = rad2deg( atan( $angle ) );

			// $this->_copyright[ 'text_angle' ] = $angle;

		// --------------------------------- END TEST ------------------------------------

		// Detecting required text vertical location
		if( strpos( $this->_copyright['vertical_location'], '%' ) === false )
		
			// in pixels
			$this->_copyright['vertical_location'] = intval( $this->_copyright['vertical_location'] );
		
		else
			// in percentage
			$this->_copyright['vertical_location'] = $this->_image_info[1] * intval( $this->_copyright['vertical_location'] ) / 100;
		

	
		
		// 	Text Color
		$text_color = imagecolorallocatealpha(
			$this->_image_resource,
			$this->_copyright['text_color']['r'],
			$this->_copyright['text_color']['g'],
			$this->_copyright['text_color']['b'],
			$this->_copyright['text_color']['a']
			);

		
		// Calculate one block text box dimensions
		$this->_copyright['text_box_dimensions'] = $this->getTextBoxDimensions( 
			$this->_copyright['font_size'],
			$this->_copyright['text_angle'],
			$this->_copyright['font'],
			$this->_copyright['text']
			);
		
		
		// Check Textbox Size
		$this->CheckTextSize();
				
		// Calculate Y Position
		$this->setYPosition();

		

		/*-----------------------------| Writing Process |-----------------------------*/


		if( !$this->_copyright[ 'text_repeat' ] )
		{
			// A- No Repeat, Manual Positioning
			
			// Get Max X Offset
			$max_x = $this->_image_info[0] - $this->_copyright['text_box_dimensions']['width'];
			
			// Get X Location
			$this->_copyright['x_position'] = intval( $this->_copyright['horizontal_location'] );


			// If X Relative, Get Relative Position in Pixels
			if( strpos( $this->_copyright['horizontal_location'], '%' ) !== false && $this->_copyright['x_position'] > 0 )

				$this->_copyright['x_position'] = $this->_copyright['x_position'] * $this->_image_info[0] / 100 - $this->_copyright['text_box_dimensions']['width'] / 2;
			

			// Check For Minimum position, 0
			if( $this->_copyright['x_position'] < 0 )
				$this->_copyright['x_position'] = 0;


			 // check max_x position
			if( $this->_copyright['x_position'] > $max_x )
				$this->_copyright['x_position'] = $max_x;

			// Set X Position
			$this->setXPosition();

			// Write Text
			imagettftext(
					$this->_image_resource,
					$this->_copyright['font_size'],
					$this->_copyright['text_angle'],
					$this->_copyright['x_position'],
					$this->_copyright['y_position'],
					$text_color,
					$this->_copyright['font'],
					$this->_copyright['text']
					);
			

			return true;

		}
		else
		{
		
			// B- REPATE Enabled

			# -so Check for repeating and centering
			# -will repeated if image width greater or equal min_repeat_width
			
			$min_repeat_width = $this->_copyright['block_separation'] + ( 2 * $this->_copyright['text_box_dimensions']['width'] );

			if( $this->_image_info[0] >= $min_repeat_width )
			{
				// will be repeated
				
				# See how many repeat times can happens
				$repeat_times = floor( $this->_image_info[0] / ( $this->_copyright['block_separation'] + $this->_copyright['text_box_dimensions']['width'] ) );

				
				// calculate required width for all repeated times
				$required_width = ( $repeat_times * $this->_copyright['text_box_dimensions']['width'] ) + ( ( $repeat_times - 1 ) * $this->_copyright['block_separation'] );

				// Calculate Margins
				$margins = $this->_image_info[0] - $required_width;


				// Set X Position
				$this->setXPosition( $margins );

				
				for( $i = 1; $i <= $repeat_times; $i++ )
				{
					# time #i
					
					// Write Text
					imagettftext(
						$this->_image_resource,
						$this->_copyright['font_size'],
						$this->_copyright['text_angle'],
						$this->_copyright['x_position'],
						$this->_copyright['y_position'],
						$text_color,
						$this->_copyright['font'],
						$this->_copyright['text']
						);

					# Move to next position
					$this->_copyright['x_position'] += ( $i == $repeat_times ) ?
						$this->_copyright['text_box_dimensions']['width'] :
						$this->_copyright['text_box_dimensions']['width'] + $this->_copyright['block_separation'];

				}

			}
			else
			{
				# will not be repeated and centered horizontally
				
				$margins = floor( $this->_image_info[0] - $this->_copyright['text_box_dimensions']['width'] );


				// Set X Position Offset
				$this->setXPosition( $margins );

				// Write Text
				imagettftext(
					$this->_image_resource,
					$this->_copyright['font_size'],
					$this->_copyright['text_angle'],
					$this->_copyright['x_position'],
					$this->_copyright['y_position'],
					$text_color,
					$this->_copyright['font'],
					$this->_copyright['text']
					);

			}

		} # End string repeat Condition
		

		return $this;

		# Method End
	}
810205
def com_google_fonts_check_font_copyright(ttFont):
  """"""
  import re
  from fontbakery.utils import get_name_entry_strings

  failed = False
  for string in get_name_entry_strings(ttFont, NameID.COPYRIGHT_NOTICE):
    does_match = re.search(r'Copyright [0-9]{4} The .* Project Authors \([^\@]*\)',
                           string)
    if does_match:
      yield PASS, ("Name Table entry: Copyright field '{}'"
                   " matches canonical pattern.").format(string)
    else:
      failed = True
      yield FAIL, ("Name Table entry: Copyright notices should match"
                   " a pattern similar to:"
                   " 'Copyright 2017 The Familyname"
                   " Project Authors (git url)'\n"
                   "But instead we have got:"
                   " '{}'").format(string)
  if not failed:
    yield PASS, "Name table copyright entries are good"
352660
public final String getCopyright()
    {
        if ( copyright == null )
        {
            StringBuilder sb = new StringBuilder();
            sb.append( COPYRIGHT_PREAMBLE )
              .append( " " )
              .append( Calendar.getInstance().get( Calendar.YEAR ) )
              .append( " " )
              .append( companyName );
            copyright = sb.toString();
        }
        return copyright;
    }
1079490
public void copyright() {

        String[] copy = Messages.COPYRIGHT_BY_ALKACON;
        for (int i = 0; i < copy.length; i++) {
            m_shell.getOut().println(copy[i]);
        }
    }
963098
def display_line(self):
        """"""
        msg = ["Image {0}".format(self.name)]
        if self.image_index:
            msg.append("Pushes to {0}".format(self.image_name))
        return ' : '.join(msg)
597369
public function getCopyright()
    {
        if ($this->copyright === null) {
            $match = [];
            preg_match(self::$REGEX_COPYRIGHT, $this->output, $match);
            $this->copyright = array_key_exists(2, $match) ? trim($match[2]) : '';
        }

        return $this->copyright;
    }
1264330
def display(self, content = None, **settings):
        
        sys.stdout.write("\r")
        sys.stdout.write(self.render(content, **settings))
        sys.stdout.flush()