text:
from django import forms
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.forms import ReadOnlyPasswordHashField

import team.models as models

class SocialNetwork(admin.TabularInline):
    model = models.SocialNetwork
    extra = 0
    show_change_link = True

class UserCreationForm(forms.ModelForm):
    """A form for creating new users. Includes all the required
    fields, plus a repeated password."""
    password1 = forms.CharField(label='Password', widget=forms.PasswordInput)
    password2 = forms.CharField(label='Password confirmation', widget=forms.PasswordInput)

    class Meta:
        model = models.Member
        fields = ('email',)

    def clean_password2(self):
        # Check that the two password entries match
        password1 = self.cleaned_data.get("password1")
        password2 = self.cleaned_data.get("password2")
        if password1 and password2 and password1 != password2:
            raise forms.ValidationError("Passwords don't match")
        return password2

    def save(self, commit=True):
        # Save the provided password in hashed format
        user = super().save(commit=False)
        user.set_password(self.cleaned_data["password1"])
        if commit:
            user.save()
        return user

class UserChangeForm(forms.ModelForm):
    """A form for updating users. Includes all the fields on
    the user, but replaces the password field with admin's
    password hash display field.
    """
    password = ReadOnlyPasswordHashField()

    class Meta:
        model = models.Member
        fields = ('email', 'password', 'is_active', 'is_admin',)

    def clean_password(self):
        # Regardless of what the user provides, return the initial value.
        # This is done here, rather than on the field, because the
        # field does not have access to the initial value
        return self.initial["password"]

class UserAdmin(BaseUserAdmin):
    # The forms to add and change user instances
    form = UserChangeForm
    add_form = UserCreationForm

    # The fields to be used in displaying the User model.
    # These override the definitions on the base UserAdmin
    # that reference specific fields on auth.User.
    inlines = (SocialNetwork,)
    list_display = ('get_full_name', 'email', 'is_admin')
    list_filter = ('is_admin',)
    fieldsets = (
        (None, {'fields': ('email', 'password')}),
        ('Персональная информация',
         {'fields': ('profile_image', 'first_name', 'last_name', 'description', 'contact_link')}),
        ('Права пользователя', {'fields': ('is_admin', 'is_active', 'groups')}),
    )
    # add_fieldsets is not a standard ModelAdmin attribute. UserAdmin
    # overrides get_fieldsets to use this attribute when creating a user.
    add_fieldsets = (
        (None, {
            'classes': ('wide',),
            'fields': ('email', 'password1', 'password2')}
         ),
    )
    search_fields = ('email',)
    ordering = ('email',)
    filter_horizontal = ()

admin.site.register(models.Member, UserAdmin)

class SEOAdmin(admin.StackedInline):
    model = models.SEO
    extra = 0
    fields = (
        'seo_description',
        'key_words',
    )
    show_change_link = True

class ArticleAdmin(admin.StackedInline):
    model = models.Article
    extra = 0
    fields = (
        'title', 'main_image', 'short_description', 'description')

    class Media:
        js = ['js/FB_CKEditor.js',
              'js/ckeditor.js']

    def save_model(self, request, obj, form, change):
        obj.author = request.user
        obj.save()

class ProjectAdmin(admin.ModelAdmin):
    model = models.Project
    prepopulated_fields = {'slug': ('name',)}

    fields = (
        'name', 'sub_name', 'card_name', 'image', 'git', 'description', 'members')
    inlines = (ArticleAdmin, SEOAdmin)

    class Media:
        js = ['js/FB_CKEditor.js',
              'js/ckeditor.js']

admin.site.register(models.Project, ProjectAdmin)

class PatnerAdmin(admin.ModelAdmin):
    model = models.Partner
    prepopulated_fields = {'slug': ('name',)}
    fieldsets = (
        (None, {'fields': ('name', 'type_partner', 'slug', 'image',)}),
        ('Описание', {'fields': ('description',)}),
        ('Контакты', {'fields': ('address', 'site', 'phone')}),
    )

    class Media:
        js = ['js/FB_CKEditor.js',
              'js/ckeditor.js']

admin.site.register(models.Partner, PatnerAdmin)
admin.site.register(models.Tag)


text:
bin-to-file
===========

Converts JS Bin object to a single file

redpajama_set_name: RedPajamaGithub


text:
/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.facebook.presto.operator.aggregation;

import com.facebook.presto.block.Block;
import com.facebook.presto.block.BlockBuilder;

import static com.facebook.presto.operator.aggregation.CountColumnAggregations.COUNT_LONG_COLUMN;
import static com.facebook.presto.tuple.TupleInfo.SINGLE_LONG;

public class TestCountColumnAggregation
        extends AbstractTestAggregationFunction
{
    @Override
    public Block getSequenceBlock(int start, int length)
    {
        BlockBuilder blockBuilder = new BlockBuilder(SINGLE_LONG);
        for (int i = start; i < start + length; i++) {
            blockBuilder.append(i);
        }
        return blockBuilder.build();
    }

    @Override
    public AggregationFunction getFunction()
    {
        return COUNT_LONG_COLUMN;
    }

    @Override
    public Number getExpectedValue(int start, int length)
    {
        return (long) length;
    }
}


text:
package edu.pitt.dbmi.deep.phe.model;

import java.util.ArrayList;
import java.util.regex.*;

import org.apache.ctakes.cancer.type.textsem.TnmClassification;
import org.hl7.fhir.instance.model.CodeableConcept;
import org.hl7.fhir.instance.model.Condition.ConditionStageComponent;
import org.hl7.fhir.instance.model.Extension;
import org.hl7.fhir.instance.model.ResourceReference;
import org.hl7.fhir.instance.model.StringType;

import edu.pitt.dbmi.nlp.noble.coder.model.Mention;
import edu.pitt.dbmi.nlp.noble.ontology.IClass;
import edu.pitt.dbmi.nlp.noble.ontology.IOntology;

public class Stage extends ConditionStageComponent{
	public void initialize(Mention st) {
		CodeableConcept c = Utils.getCodeableConcept(st);
		c.setTextSimple(st.getText());
		setSummary(c);
		// extract individual Stage levels if values are conflated
		Matcher m = Pattern.compile(Utils.STAGE_REGEX).matcher(st.getText());
		if(m.matches()){
			IOntology o = ResourceFactory.getInstance().getOntology();
			setStringExtension(""+o.getClass(Utils.T_STAGE).getURI(),m.group(1));
			setStringExtension(""+o.getClass(Utils.N_STAGE).getURI(),m.group(2));
			setStringExtension(""+o.getClass(Utils.M_STAGE).getURI(),m.group(3));
		}
	}

	public void initialize(TnmClassification st) {
		CodeableConcept c = Utils.getCodeableConcept(st);
		c.setTextSimple(st.getCoveredText());
		setSummary(c);
		// extract individual Stage levels if values are conflated
		IOntology o = ResourceFactory.getInstance().getOntology();
		if(st.getSize() != null)
			setStringExtension(""+o.getClass(Utils.T_STAGE).getURI(),st.getSize().getCode()+st.getSize().getValue());
		if(st.getNodeSpread() != null)
			setStringExtension(""+o.getClass(Utils.N_STAGE).getURI(),st.getNodeSpread().getCode()+st.getNodeSpread().getValue());
		if(st.getMetastasis() != null)
			setStringExtension(""+o.getClass(Utils.M_STAGE).getURI(),st.getMetastasis().getCode()+st.getMetastasis().getValue());
	}

	/**
	 * get primary tumor stage
	 * @return
	 */
	public String getPrimaryTumorStage(){
		IOntology o = ResourceFactory.getInstance().getOntology();
		Extension e = getExtension(""+o.getClass(Utils.T_STAGE).getURI());
		return e != null? ((StringType)e.getValue()).getValue():null;
	}

	/**
	 * get primary tumor stage
	 * @return
	 */
	public CodeableConcept getPrimaryTumorStageCode(){
		return getStageValue(Utils.T_STAGE);
	}

	/**
	 * get primary tumor stage
	 * @return
	 */
	public CodeableConcept getDistantMetastasisStageCode(){
		return getStageValue(Utils.M_STAGE);
	}

	/**
	 * get primary tumor stage
	 * @return
	 */
	public CodeableConcept getRegionalLymphNodeStageCode(){
		return getStageValue(Utils.N_STAGE);
	}

	private CodeableConcept getStageValue(String stage){
		IOntology o = ResourceFactory.getInstance().getOntology();
		IClass cls = o.getClass(stage);
		if(cls == null)
			return null;
		Extension e = getExtension(""+cls.getURI());
		if(e == null)
			return null;

		String val = ((StringType)e.getValue()).getValue();
		for(IClass c : cls.getSubClasses()){
			for(String s: c.getConcept().getSynonyms()){
				if(s.matches("\\b"+val+"\\b")){
					return Utils.getCodeableConcept(c);
				}
			}
		}
		return null;
	}

	/**
	 * get primary tumor stage
	 * @return
	 */
	public String getDistantMetastasisStage(){
		IOntology o = ResourceFactory.getInstance().getOntology();
		Extension e = getExtension(""+o.getClass(Utils.M_STAGE).getURI());
		return e != null? ((StringType)e.getValue()).getValue():null;
	}

	/**
	 * get primary tumor stage
	 * @return
	 */
	public String getRegionalLymphNodeStage(){
		IOntology o = ResourceFactory.getInstance().getOntology();
		Extension e = getExtension(""+o.getClass(Utils.N_STAGE).getURI());
		return e != null? ((StringType)e.getValue()).getValue():null;
	}

	public Stage copy() {
		Stage dst = new Stage();
		dst.summary = ((this.summary == null) ? null : this.summary.copy());
		dst.assessment = new ArrayList();
		for (ResourceReference i : this.assessment)
			dst.assessment.add(i.copy());
		return dst;
	}
}


text:
import { Injectable } from '@angular/core';
import { Plugin, Cordova } from '@ionic-native/core';

declare var window: any;

/**
 * @name File Path
 * @description
 *
 * This plugin allows you to resolve the native filesystem path for Android content URIs and is based on code in the aFileChooser library.
 *
 * @usage
 * ```
 * import { FilePath } from '@ionic-native/file-path';
 *
 * constructor(private filePath: FilePath) { }
 *
 * ...
 *
 * this.filePath.resolveNativePath(path)
 *   .then(filePath => console.log(filePath))
 *   .catch(err => console.log(err));
 *
 * ```
 */
@Plugin({
  pluginName: 'FilePath',
  plugin: 'cordova-plugin-filepath',
  pluginRef: 'window.FilePath',
  repo: 'https://github.com/hiddentao/cordova-plugin-filepath',
  platforms: ['Android']
})
@Injectable()
export class FilePath {

  /**
   * Resolve native path for given content URL/path.
   * @param {String} path  Content URL/path.
   * @returns {Promise<string>}
   */
  @Cordova()
  resolveNativePath(path: string): Promise<string> {return; }

}


text:
public class Solution {
    public List<String> summaryRanges(int[] nums) {
        int left=0;
        int right=1;
        List<String> res = new LinkedList<String>();

        if(nums==null || nums.length==0)
            return res;

        for(;right<nums.length; right++){
            if(nums[right]==nums[right-1]+1)
                continue;
            String entry = nums[right-1]==nums[left] ?
                Integer.toString(nums[left]) :
                Integer.toString(nums[left]) + "->" + Integer.toString(nums[right-1]);
            res.add(entry);
            left=right;
        }

        String finalEntry = left==nums.length-1 ?
            Integer.toString(nums[left]) :
            Integer.toString(nums[left])+"->"+Integer.toString(nums[nums.length-1]);
        res.add(finalEntry);

        return res;
    }
}

// a better implementation
public class Solution {
    public List<String> summaryRanges(int[] nums) {
        int length = nums.length;
        List<String> result = new ArrayList<String>(length);

        for (int i = 0; i < length; i++) {
            int num = nums[i];

            while (i < length - 1 && nums[i] + 1 == nums[i + 1]) {
                i++;
            }

            if (num != nums[i]) {
                result.add(num + "->" + nums[i]);
            } else {
                result.add(num + "");
            }
        }

        return result;
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<extension version="3.0" client="administrator" type="language" method="upgrade">
    <name>Português(Brasil)</name>
    <tag>pt-BR</tag>
    <version>3.0.2.1</version>
    <creationDate>2012-11-08</creationDate>
    <author>Joomla Brasil</author>
    <authorEmail>lang@joomla.com.br</authorEmail>
	<authorUrl>www.joomla.com.br</authorUrl>
    <copyright>Copyright 2005 - 2012 Open Source Matters. Todos os Direitos Reservados. Copyright Translation 2005 - 2012 Joomla Brasil. Todos os Direitos Reservados.</copyright>
    <license>GNU General Public License version 2 or later; see LICENSE.txt</license>
	<description><![CDATA[
				Arquivos de Idioma em Português Brasileiro para o CMS Joomla! 3.0

				Copyright 2005 - 2012 Open Source Matters. Todos os Direitos Reservados. Copyright Translation 2005 - 2012 Joomla Brasil. Todos os Direitos Reservados.

				De acordo com termo de licenciamento de OpenSourceMatters e Joomla! todos os arquivos de idioma devem ser licenciados sob a  licença GNU/GPL (v.2.0). Esta tradução está licenciada sob esta licença. Se você encontrar algum erro de digitação, traduções incorretas ou se deseja sugerir melhorias, entre em contato com o coordenador da tradução ou junte-se a nós no github Joomla! Brasil e contribua diretamente com o projeto.

				]]>
	</description>

	<files>
		<filename>index.html</filename>
		<filename>pt-BR.com_admin.ini</filename>
		<filename>pt-BR.com_admin.sys.ini</filename>
		<filename>pt-BR.com_banners.ini</filename>
		<filename>pt-BR.com_banners.sys.ini</filename>
		<filename>pt-BR.com_cache.ini</filename>
		<filename>pt-BR.com_cache.sys.ini</filename>
		<filename>pt-BR.com_categories.ini</filename>
		<filename>pt-BR.com_categories.sys.ini</filename>
		<filename>pt-BR.com_checkin.ini</filename>
		<filename>pt-BR.com_checkin.sys.ini</filename>
		<filename>pt-BR.com_config.ini</filename>
		<filename>pt-BR.com_config.sys.ini</filename>
		<filename>pt-BR.com_contact.ini</filename>
		<filename>pt-BR.com_contact.sys.ini</filename>
		<filename>pt-BR.com_content.ini</filename>
		<filename>pt-BR.com_content.sys.ini</filename>
		<filename>pt-BR.com_cpanel.ini</filename>
		<filename>pt-BR.com_cpanel.sys.ini</filename>
		<filename>pt-BR.com_finder.ini</filename>
		<filename>pt-BR.com_finder.sys.ini</filename>
		<filename>pt-BR.com_installer.ini</filename>
		<filename>pt-BR.com_installer.sys.ini</filename>
		<filename>pt-BR.com_joomlaupdate.ini</filename>
		<filename>pt-BR.com_joomlaupdate.sys.ini</filename>
		<filename>pt-BR.com_languages.ini</filename>
		<filename>pt-BR.com_languages.sys.ini</filename>
		<filename>pt-BR.com_login.ini</filename>
		<filename>pt-BR.com_login.sys.ini</filename>
		<filename>pt-BR.com_mailto.sys.ini</filename>
		<filename>pt-BR.com_media.ini</filename>
		<filename>pt-BR.com_media.sys.ini</filename>
		<filename>pt-BR.com_menus.ini</filename>
		<filename>pt-BR.com_menus.sys.ini</filename>
		<filename>pt-BR.com_messages.ini</filename>
		<filename>pt-BR.com_messages.sys.ini</filename>
		<filename>pt-BR.com_modules.ini</filename>
		<filename>pt-BR.com_modules.sys.ini</filename>
		<filename>pt-BR.com_newsfeeds.ini</filename>
		<filename>pt-BR.com_newsfeeds.sys.ini</filename>
		<filename>pt-BR.com_plugins.ini</filename>
		<filename>pt-BR.com_plugins.sys.ini</filename>
		<filename>pt-BR.com_redirect.ini</filename>
		<filename>pt-BR.com_redirect.sys.ini</filename>
		<filename>pt-BR.com_search.ini</filename>
		<filename>pt-BR.com_search.sys.ini</filename>
		<filename>pt-BR.com_templates.ini</filename>
		<filename>pt-BR.com_templates.sys.ini</filename>
		<filename>pt-BR.com_users.ini</filename>
		<filename>pt-BR.com_users.sys.ini</filename>
		<filename>pt-BR.com_weblinks.ini</filename>
		<filename>pt-BR.com_weblinks.sys.ini</filename>
		<filename>pt-BR.com_wrapper.ini</filename>
		<filename>pt-BR.com_wrapper.sys.ini</filename>
		<filename>pt-BR.ini</filename>
		<filename>pt-BR.lib_joomla.ini</filename>
		<filename>pt-BR.mod_custom.ini</filename>
		<filename>pt-BR.mod_custom.sys.ini</filename>
		<filename>pt-BR.mod_feed.ini</filename>
		<filename>pt-BR.mod_feed.sys.ini</filename>
		<filename>pt-BR.mod_latest.ini</filename>
		<filename>pt-BR.mod_latest.sys.ini</filename>
		<filename>pt-BR.mod_logged.ini</filename>
		<filename>pt-BR.mod_logged.sys.ini</filename>
		<filename>pt-BR.mod_login.ini</filename>
		<filename>pt-BR.mod_login.sys.ini</filename>
		<filename>pt-BR.mod_menu.ini</filename>
		<filename>pt-BR.mod_menu.sys.ini</filename>
		<filename>pt-BR.mod_multilangstatus.ini</filename>
		<filename>pt-BR.mod_multilangstatus.sys.ini</filename>
		<filename>pt-BR.mod_popular.ini</filename>
		<filename>pt-BR.mod_popular.sys.ini</filename>
		<filename>pt-BR.mod_quickicon.ini</filename>
		<filename>pt-BR.mod_quickicon.sys.ini</filename>
		<filename>pt-BR.mod_stats_admin.ini</filename>
		<filename>pt-BR.mod_stats_admin.sys.ini</filename>
		<filename>pt-BR.mod_status.ini</filename>
		<filename>pt-BR.mod_status.sys.ini</filename>
		<filename>pt-BR.mod_submenu.ini</filename>
		<filename>pt-BR.mod_submenu.sys.ini</filename>
		<filename>pt-BR.mod_title.ini</filename>
		<filename>pt-BR.mod_title.sys.ini</filename>
		<filename>pt-BR.mod_toolbar.ini</filename>
		<filename>pt-BR.mod_toolbar.sys.ini</filename>
		<filename>pt-BR.mod_version.ini</filename>
		<filename>pt-BR.mod_version.sys.ini</filename>
		<filename>pt-BR.plg_authentication_gmail.ini</filename>
		<filename>pt-BR.plg_authentication_gmail.sys.ini</filename>
		<filename>pt-BR.plg_authentication_joomla.ini</filename>
		<filename>pt-BR.plg_authentication_joomla.sys.ini</filename>
		<filename>pt-BR.plg_authentication_ldap.ini</filename>
		<filename>pt-BR.plg_authentication_ldap.sys.ini</filename>
		<filename>pt-BR.plg_captcha_recaptcha.ini</filename>
		<filename>pt-BR.plg_captcha_recaptcha.sys.ini</filename>
		<filename>pt-BR.plg_content_emailcloak.ini</filename>
		<filename>pt-BR.plg_content_emailcloak.sys.ini</filename>
		<filename>pt-BR.plg_content_finder.ini</filename>
		<filename>pt-BR.plg_content_finder.sys.ini</filename>
		<filename>pt-BR.plg_content_geshi.ini</filename>
		<filename>pt-BR.plg_content_geshi.sys.ini</filename>
		<filename>pt-BR.plg_content_joomla.ini</filename>
		<filename>pt-BR.plg_content_joomla.sys.ini</filename>
		<filename>pt-BR.plg_content_loadmodule.ini</filename>
		<filename>pt-BR.plg_content_loadmodule.sys.ini</filename>
		<filename>pt-BR.plg_content_pagebreak.ini</filename>
		<filename>pt-BR.plg_content_pagebreak.sys.ini</filename>
		<filename>pt-BR.plg_content_pagenavigation.ini</filename>
		<filename>pt-BR.plg_content_pagenavigation.sys.ini</filename>
		<filename>pt-BR.plg_content_vote.ini</filename>
		<filename>pt-BR.plg_content_vote.sys.ini</filename>
		<filename>pt-BR.plg_editors-xtd_article.ini</filename>
		<filename>pt-BR.plg_editors-xtd_article.sys.ini</filename>
		<filename>pt-BR.plg_editors-xtd_image.ini</filename>
		<filename>pt-BR.plg_editors-xtd_image.sys.ini</filename>
		<filename>pt-BR.plg_editors-xtd_pagebreak.ini</filename>
		<filename>pt-BR.plg_editors-xtd_pagebreak.sys.ini</filename>
		<filename>pt-BR.plg_editors-xtd_readmore.ini</filename>
		<filename>pt-BR.plg_editors-xtd_readmore.sys.ini</filename>
		<filename>pt-BR.plg_editors_codemirror.ini</filename>
		<filename>pt-BR.plg_editors_codemirror.sys.ini</filename>
		<filename>pt-BR.plg_editors_none.ini</filename>
		<filename>pt-BR.plg_editors_none.sys.ini</filename>
		<filename>pt-BR.plg_editors_tinymce.ini</filename>
		<filename>pt-BR.plg_editors_tinymce.sys.ini</filename>
		<filename>pt-BR.plg_extension_joomla.ini</filename>
		<filename>pt-BR.plg_extension_joomla.sys.ini</filename>
		<filename>pt-BR.plg_finder_categories.ini</filename>
		<filename>pt-BR.plg_finder_categories.sys.ini</filename>
		<filename>pt-BR.plg_finder_contacts.ini</filename>
		<filename>pt-BR.plg_finder_contacts.sys.ini</filename>
		<filename>pt-BR.plg_finder_content.ini</filename>
		<filename>pt-BR.plg_finder_content.sys.ini</filename>
		<filename>pt-BR.plg_finder_newsfeeds.ini</filename>
		<filename>pt-BR.plg_finder_newsfeeds.sys.ini</filename>
		<filename>pt-BR.plg_finder_weblinks.ini</filename>
		<filename>pt-BR.plg_finder_weblinks.sys.ini</filename>
		<filename>pt-BR.plg_quickicon_extensionupdate.ini</filename>
		<filename>pt-BR.plg_quickicon_extensionupdate.sys.ini</filename>
		<filename>pt-BR.plg_quickicon_joomlaupdate.ini</filename>
		<filename>pt-BR.plg_quickicon_joomlaupdate.sys.ini</filename>
		<filename>pt-BR.plg_search_categories.ini</filename>
		<filename>pt-BR.plg_search_categories.sys.ini</filename>
		<filename>pt-BR.plg_search_contacts.ini</filename>
		<filename>pt-BR.plg_search_contacts.sys.ini</filename>
		<filename>pt-BR.plg_search_content.ini</filename>
		<filename>pt-BR.plg_search_content.sys.ini</filename>
		<filename>pt-BR.plg_search_newsfeeds.ini</filename>
		<filename>pt-BR.plg_search_newsfeeds.sys.ini</filename>
		<filename>pt-BR.plg_search_weblinks.ini</filename>
		<filename>pt-BR.plg_search_weblinks.sys.ini</filename>
		<filename>pt-BR.plg_system_cache.ini</filename>
		<filename>pt-BR.plg_system_cache.sys.ini</filename>
		<filename>pt-BR.plg_system_debug.ini</filename>
		<filename>pt-BR.plg_system_debug.sys.ini</filename>
		<filename>pt-BR.plg_system_finder.ini</filename>
		<filename>pt-BR.plg_system_finder.sys.ini</filename>
		<filename>pt-BR.plg_system_highlight.ini</filename>
		<filename>pt-BR.plg_system_highlight.sys.ini</filename>
		<filename>pt-BR.plg_system_languagecode.ini</filename>
		<filename>pt-BR.plg_system_languagecode.sys.ini</filename>
		<filename>pt-BR.plg_system_languagefilter.ini</filename>
		<filename>pt-BR.plg_system_languagefilter.sys.ini</filename>
		<filename>pt-BR.plg_system_log.ini</filename>
		<filename>pt-BR.plg_system_log.sys.ini</filename>
		<filename>pt-BR.plg_system_logout.ini</filename>
		<filename>pt-BR.plg_system_logout.sys.ini</filename>
		<filename>pt-BR.plg_system_p3p.ini</filename>
		<filename>pt-BR.plg_system_p3p.sys.ini</filename>
		<filename>pt-BR.plg_system_redirect.ini</filename>
		<filename>pt-BR.plg_system_redirect.sys.ini</filename>
		<filename>pt-BR.plg_system_remember.ini</filename>
		<filename>pt-BR.plg_system_remember.sys.ini</filename>
		<filename>pt-BR.plg_system_sef.ini</filename>
		<filename>pt-BR.plg_system_sef.sys.ini</filename>
		<filename>pt-BR.plg_user_contactcreator.ini</filename>
		<filename>pt-BR.plg_user_contactcreator.sys.ini</filename>
		<filename>pt-BR.plg_user_joomla.ini</filename>
		<filename>pt-BR.plg_user_joomla.sys.ini</filename>
		<filename>pt-BR.plg_user_profile.ini</filename>
		<filename>pt-BR.plg_user_profile.sys.ini</filename>
		<filename>pt-BR.tpl_hathor.ini</filename>
		<filename>pt-BR.tpl_hathor.sys.ini</filename>
		<filename>pt-BR.tpl_isis.ini</filename>
		<filename>pt-BR.tpl_isis.sys.ini</filename>

		<filename file="meta">pt-BR.xml</filename>
		<filename file="meta">install.xml</filename>
        <filename>pt-BR.localise.php</filename>

	</files>

</extension>


text:
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

/**
 * @fileoverview Closure compiler typedefs.
 */

// clang-format off
// <if expr="chromeos">
import {CertificateProvisioningProcess} from './certificate_provisioning_browser_proxy.js';
// </if>
import {CertificatesError, CertificatesImportError,CertificateSubnode, CertificateType, NewCertificateSubNode} from './certificates_browser_proxy.js';
// clang-format on

/**
 * The payload of the 'certificate-action' event.
 */
export type CertificateActionEventDetail = {
  action: CertificateAction,
  subnode: CertificateSubnode|NewCertificateSubNode|null,
  certificateType: CertificateType,
  anchor: HTMLElement,
};

/**
 * The payload of the 'certificates-error' event.
 */
export type CertificatesErrorEventDetail = {
  error: CertificatesError|CertificatesImportError|null,
  anchor: HTMLElement|null,
};

/**
 * Enumeration of actions that require a popup menu to be shown to the user.
 */
export enum CertificateAction {
  DELETE = 0,
  EDIT = 1,
  EXPORT_PERSONAL = 2,
  IMPORT = 3,
}

/**
 * The name of the event fired when a certificate action is selected from the
 * dropdown menu. CertificateActionEventDetail is passed as the event detail.
 */
export const CertificateActionEvent = 'certificate-action';

// <if expr="chromeos">
/**
 * The payload of the 'certificate-provisioning-view-details-action' event.
 */
export type CertificateProvisioningActionEventDetail = {
  model: CertificateProvisioningProcess,
  anchor: HTMLElement,
};
// </if>

/**
 * The name of the event fired when a the "View Details" action is selected on
 * the dropdown menu next to a certificate provisioning process.
 * CertificateActionEventDetail is passed as the event detail.
 */
export const CertificateProvisioningViewDetailsActionEvent =
    'certificate-provisioning-view-details-action';

declare global {
  interface HTMLElementEventMap {
    'certificates-error': CustomEvent<CertificatesErrorEventDetail>;
    'certificate-action': CustomEvent<CertificateActionEventDetail>;
    // <if expr="chromeos">
    'certificate-provisioning-view-details-action':
        CustomEvent<CertificateProvisioningActionEventDetail>;
    // </if>
  }
}


text:
package main

import (
	_ "golangapi/docs"
	_ "golangapi/routers"

	"github.com/astaxie/beego"
)

func main() {
	if beego.BConfig.RunMode == "dev" {
		beego.BConfig.WebConfig.DirectoryIndex = true
		beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
	}
	beego.Run()
}


text:
'use strict';
const common = require('../common');
if (!common.hasCrypto) common.skip('missing crypto');

// Check that node `--tls-min-v1.3` is supported.

const assert = require('assert');
const tls = require('tls');

assert.strictEqual(tls.DEFAULT_MAX_VERSION, 'TLSv1.3');
assert.strictEqual(tls.DEFAULT_MIN_VERSION, 'TLSv1.3');

// Check the min-max version protocol versions against these CLI settings.
require('./test-tls-min-max-version.js');


text:
class Report < ActiveRecord::Base

  belongs_to :project

  attr_protected :level_of_impact

  validates_presence_of [:project_id, :number_of_youth_reached,
                         :number_of_adults_reached]

  # Scopes
  scope :money_spent, lambda { |money| where("money_spent = ?", money) }
  scope :prep_time, lambda { |time| where("prep_time = ?", time) }

  def self.filters
    money = ['$0-$49', '$50-$99', '$100-$249', '$250-499', '$500+']
    prep = ['1 day or less', '2 days - 1 week', '2-3 weeks', '1 month+']
    filters = {
      money: money.map { |money| [money, money] },
      prep: prep.map { |prep| [prep, prep] }
    }
  end

  def to_csv
    csv = []
    csv += [:number_of_youth_reached, :number_of_adults_reached,
            :other_resources, :comment, :created_at].map { |f| self[f] }

    # Insert Mini-grant #, Group Name, Project Name, Project About
    project = self.project
    group = self.project.group
    grant = self.project.grant
    grant_id = grant && grant.id ? grant.id : ""
    group_name = group ? group.display_name : ""
    from_kit = project.from_kit ? 'yes' : 'no'

    csv.insert(0, project.id)
    csv.insert(1, grant ? grant_id : from_kit)
    csv.insert(2, group_name)
    csv.insert(3, project.name)
    csv.insert(6, project.focus)
    csv.insert(7, project.description)
  end
end


text:
class InventoriologyController < ApplicationController

  before_action :authenticate_user!
  after_action :verify_authorized

  def index
    authorize :inventoriology
  end

  def create
    authorize :inventoriology

    @start = Date.new params["start(1i)"].to_i, params["start(2i)"].to_i, params["start(3i)"].to_i
    @finish = Date.new params["end(1i)"].to_i, params["end(2i)"].to_i, params["end(3i)"].to_i

    @events = Event.order('start').where('start >= ?', @start).where('finish <= ?', @finish)
    #@part_count = Participation.joins(:event).where('events.start >= ?', @start).where('events.finish <= ?', @finish).where('participations.status = \'Inscrito\'').count
    @people = Person.joins(participations: :event).where('events.start >= ?', @start).where('events.finish <= ?', @finish).uniq
    @male_count = @people.where(gender: 'Masculino').count
    @female_count = @people.where(gender: 'Feminino').count
    @gen_undef_count = @people.where(gender: ['', nil]).count
    @occupations = @people.where.not(occupation: [nil, '']).group(:occupation).order('people.occupation').count
    #@cities = Address.joins(:person).where(person: @people).where.not(city: [nil, '']).group(:city).count
  end

end


text:
                   Edit

                <a ng-show="psychiatric.facilities_id" style="margin-bottom: 25px"  href="<?php echo base_url('welcome/view_psychiatric/{{psychiatric.facilities_id}}') ;?>"  type="button" class="btn btn-default preview-add-button">
                   Detailed Information

                <form method="post" action=".">
                        <form  class="form-horizontal" method="post" >

                            Name*

                                <input readonly class="input-md  textinput textInput form-control" id="id_psychiatricname" maxlength="30" value="{{psychiatric.name}}" name="name" placeholder="" style="margin-bottom: 10px" type="text" />

                            Street*

                                <input readonly class="input-md emailinput form-control" id="id_email" name="email" placeholder="" value="{{psychiatric.street_no}}" style="margin-bottom: 10px" type="" />

                            City / Municipality*

                                <input readonly class="input-md emailinput form-control" id="id_email" name="email" placeholder="" value="{{psychiatric.city_municipality}}" style="margin-bottom: 10px" type="" />

                            Province*

                                <input readonly class="input-md emailinput form-control" id="id_email" name="email" placeholder="" value="{{psychiatric.province}}" style="margin-bottom: 10px" type="" />

                            Region*

                                <input readonly class="input-md emailinput form-control" id="id_email" name="email" placeholder="" value="{{psychiatric.region}}" style="margin-bottom: 10px" type="" />

                            Barangay*

                                <input readonly class="input-md emailinput form-control" id="id_email" name="" placeholder="" value="{{psychiatric.barangay}}"  style="margin-bottom: 10px" type="" />

                            Owner*

                                <input readonly class="input-md emailinput form-control" id="id_email" name="email" placeholder="" value="{{psychiatric.owner}}" style="margin-bottom: 10px" type="" />

                            Medical Director*

                                <input readonly class="input-md emailinput form-control" id="id_email" name="email" placeholder="" value="{{psychiatric.med_director}}" style="margin-bottom: 10px" type="" />

                            Chairman*

                                <input readonly class="input-md emailinput form-control" id="id_email" name="email" placeholder="" value="{{psychiatric.chairman}}" style="margin-bottom: 10px" type="" />

                            License*

                                <input readonly class="input-md textinput textInput form-control" id="id_password1" name="password1" placeholder="" value="{{psychiatric.license}}" style="margin-bottom: 10px" type="" />

                            Ownership*

                                <input readonly class="input-md textinput textInput form-control" id="id_password1" name="password1" placeholder="" value="{{psychiatric.ownership}}" style="margin-bottom: 10px" type="" />

                            Auth. Bed Capacity*

                                <input readonly class="input-md textinput textInput form-control" id="id_name" name="name" placeholder="" value="{{psychiatric.bed_cap}}" style="margin-bottom: 10px" type="text" />

                            Imp. Bed Capacity*

                                <input readonly class="input-md textinput textInput form-control" id="id_name" name="name" placeholder="" value="{{psychiatric.imp_bed_cap}}" style="margin-bottom: 10px" type="text" />

                    </form>

                </form>

          <button type="button" class="close" data-dismiss="modal">×</button>

Edit Facility Information

                        Name:
                        {{ psychiatric.name || "empty" }}

                        Number & Street:
                        {{ psychiatric.street_no || "empty" }}

                        Barangay:
                        {{ psychiatric.barangay || "empty" }}

                        City / Municipality
                        {{ psychiatric.city_municipality || "empty" }}

                        Province
                        {{ psychiatric.province || "empty" }}

                        Region
                        {{ psychiatric.region || "empty" }}

                        License No
                        {{ psychiatric.license || "empty" }}

                        Name of Owner
                        {{ psychiatric.owner || "empty" }}

                      Medical Director
                      {{ psychiatric.med_director || "empty" }}

                      Chairman of the Board(if Corporation)
                      {{ psychiatric.chairman || "empty" }}

                      Ownership
                      {{ psychiatric.ownership || "empty" }}

                      Authorized Bed Capacity
                      {{ psychiatric.bed_cap || "empty" }}

                      Implementing Bed Capacity
                      {{ psychiatric.imp_bed_cap || "empty" }}

                   Cancel

                   Submit Changes

          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>

Ownership

              Classification According to Ownership:

 Ownership

                      <input type="radio" ng-required="!form.class_id" ng-model="X" id="optionsRadios1" value="1">Government

                      <input type="radio" ng-required="!form.class_id" ng-model="X" id="optionsRadios2" value="2">Private

      Type of Government:

 Ownership

              <input type="radio" ng-required="!form.ownership" ng-model="form.ownership" name="ownership" value="National">
              National

              <input type="radio" ng-required="!form.ownership" ng-model="form.ownership" name="ownership" value="Local">
              Local

      <input type="radio" name="ownership" ng-model="Y" value="true">
        Others, specify

      <input type="text" class="form-control" ng-model="form.ownership" ng-show="Y == 'true'">

    Type of Private:

 Ownership

            <input type="radio" ng-required="!form.ownership" ng-model="form.ownership" name="ownership" value="Single Partnership">
            Single Partnership

            <input type="radio" ng-required="!form.ownership" ng-model="form.ownership" name="ownership" value="Proprietorship">
            Proprietorship

            <input type="radio" ng-required="!form.ownership" ng-model="form.ownership" name="ownership" value="Corporation">
            Corporation

            <input type="radio" ng-required="!form.ownership" ng-model="form.ownership" name="ownership" value="Civic Organization">
            Civic Organization

            <input type="radio" ng-required="!form.ownership" ng-model="form.ownership" name="ownership" value="Religious">
            Religious

            <input type="radio" ng-required="!form.ownership" ng-model="form.ownership" name="ownership" value="Foundation">
            Foundation

        <input type="radio" name="ownership" ng-model="A" value="true">
            Others, specify

      <input type="text" class="form-control" ng-model="form.ownership" ng-show="A == 'true'">

           Close
           Save changes


text:
// Copyright (c) Microsoft.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information.

using System;
using System.Composition;

namespace Microsoft.CodeAnalysis.SignatureHelp
{
    [MetadataAttribute]
    [AttributeUsage(AttributeTargets.Class)]
    internal class ExportSignatureHelpProviderAttribute : ExportAttribute
    {
        public string Name { get; }
        public string Language { get; }

        public ExportSignatureHelpProviderAttribute(string name, string language)
            : base(typeof(ISignatureHelpProvider))
        {
            this.Name = name ?? throw new ArgumentNullException(nameof(name));
            this.Language = language ?? throw new ArgumentNullException(nameof(language));
        }
    }
}


text:
    <logo-company url="img/lekodeveloperweb-logo.png"></logo-company>

        <form novalidate name="recoveryForm" ng-submit="$ctrl.recovery(recoveryForm)">
            <legend translate="RECOVERY.TITLE"></legend>

                <input type="email" class="form-control" id="email" name="email" translate translate-attr-placeholder="COMMON.EMAIL" placeholder="email" ng-model="$ctrl.form.email" required>

                    <ng-messages ng-messages-include="common/messages/index.html"></ng-messages>

                <input type="password" class="form-control" id="password" name="password" ng-minlength="6" placeholder="password" ng-model="$ctrl.form.password" required>

                    <ng-messages ng-messages-include="common/messages/index.html"></ng-messages>

                <input type="password" class="form-control" id="confirmPassword" ng-minlength="6" name="confirmPassword" placeholder="Confirm Password" ng-model="$ctrl.form.confirmPassword" required>

                    <ng-messages ng-messages-include="common/messages/index.html"></ng-messages>

                <button type="submit" class="btn btn-success btn-lg btn-block" ng-disabled="$ctrl.loading || recoveryForm.$invalid" translate="COMMON.RECOVERY">Enter</button>

                <button type="button" class="btn btn-defautl btn-lg btn-block" ui-sref="access.login" ng-disabled="$ctrl.loading" translate="COMMON.CANCEL">Cancel</button>

        </form>


text:
#import "AvailablePlayersTableViewCell.h"
#import "RPSLSUser.h"
#import "RPSLSUserStats.h"
@import MagnetMaxCore;

@interface AvailablePlayersTableViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *playerNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *statsLabel;
@property (weak, nonatomic) IBOutlet UILabel *sentLabel;

@property (nonatomic, strong, readwrite) RPSLSUser * user;

@end

@implementation AvailablePlayersTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)showSent {
	self.sentLabel.alpha = 1.0;
	[UIView animateWithDuration:1.2f
						  delay:0
						options:UIViewAnimationOptionCurveEaseIn
					 animations:^{
						 self.sentLabel.alpha = 0.0;
					 }
					 completion:^(BOOL finished) {
					 }];
}

- (void)setUserForCell:(RPSLSUser *)user {
	self.user = user;
	self.playerNameLabel.text = self.user.messageUserObject.userName;

	self.statsLabel.text = [NSString stringWithFormat:@"W=%lu L=%lu T=%lu",(unsigned long)self.user.stats.wins,(unsigned long)self.user.stats.losses,(unsigned long)self.user.stats.ties];
}

- (void)prepareForReuse {
	self.user = nil;
	self.playerNameLabel.text = @"";
	self.statsLabel.text = @"";
}

@end


text:
package org.apache.accumulo.server.master.state;

import org.apache.accumulo.core.Constants;
import org.apache.accumulo.core.file.FileUtil;
import org.apache.accumulo.core.master.thrift.MasterGoalState;
import org.apache.accumulo.core.security.SecurityUtil;
import org.apache.accumulo.core.util.CachedConfiguration;
import org.apache.accumulo.core.zookeeper.ZooUtil;
import org.apache.accumulo.fate.zookeeper.ZooUtil.NodeExistsPolicy;
import org.apache.accumulo.server.Accumulo;
import org.apache.accumulo.server.client.HdfsZooInstance;
import org.apache.accumulo.server.conf.ServerConfiguration;
import org.apache.accumulo.server.zookeeper.ZooReaderWriter;
import org.apache.hadoop.fs.FileSystem;

public class SetGoalState {

  /**
   * Utility program that will change the goal state for the master from the command line.
   */
  public static void main(String[] args) throws Exception {
    if (args.length != 1 || MasterGoalState.valueOf(args[0]) == null) {
      System.err.println("Usage: accumulo " + SetGoalState.class.getName() + " [NORMAL|SAFE_MODE|CLEAN_STOP]");
      System.exit(-1);
    }
    SecurityUtil.serverLogin();

    FileSystem fs = FileUtil.getFileSystem(CachedConfiguration.getInstance(), ServerConfiguration.getSiteConfiguration());
    Accumulo.waitForZookeeperAndHdfs(fs);
    ZooReaderWriter.getInstance().putPersistentData(ZooUtil.getRoot(HdfsZooInstance.getInstance()) + Constants.ZMASTER_GOAL_STATE, args[0].getBytes(),
        NodeExistsPolicy.OVERWRITE);
  }

}


text:
(function() {
  var app = angular.module('weather', []);

  app.controller('WeatherController', ['$http', function($http) {
    var weather = this;
    weather.forecast = 'Looking out the window...';

    $http.get('/weather').then(function(res) {
      weather.morning = res.data.morning;
      weather.low = res.data.low;
      weather.high = res.data.high;
      weather.description = res.data.description;
    });
  }]);
})();


text:
package ipt341.zarrabi.hooman.a8;

import android.content.Context;
import android.graphics.Color;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;

import java.util.ArrayList;

/**
 * Created by Hooman Z on 11/8/2015.
 */
public class StockAdapter  extends ArrayAdapter<Stock> {
    TextView brand;
    TextView stockAmount;

    ImageView stockIcon;

    public StockAdapter (Context c, ArrayList<Stock> stocks){
        super(c,0,stocks);
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent){
        Stock stock = StockSingleton.get(getContext()).getStock(position);
        if (convertView == null)
        {
            convertView = LayoutInflater.from(getContext()).inflate(R.layout.stock_item, parent, false);
        }

        brand=(TextView) convertView.findViewById(R.id.Brand);
        stockAmount = (TextView) convertView.findViewById(R.id.stockAmount);
        stockIcon = (ImageView) convertView.findViewById(R.id.imageView);

        brand.setText(stock.getName());
        stockAmount.setText(Integer.toString(stock.getStockNumber()));

        if(stock.getBrand().equalsIgnoreCase("apple"))
        {
            stockIcon.setImageResource(R.drawable.apple);
        }
        else if(stock.getBrand().equalsIgnoreCase("microsoft"))
        {
            stockIcon.setImageResource(R.drawable.microsoft);
        }
        else if(stock.getBrand().equalsIgnoreCase("samsung"))
        {
            stockIcon.setImageResource(R.drawable.samsung);
        }
        else
        {
            stockIcon.setImageResource(R.drawable.logo);
            Log.d("Brandddd",stock.getBrand());
        }

        convertView.setBackgroundColor(position % 2 == 0 ? Color.WHITE : Color.GRAY);
        return convertView;
    }

}