text:
define(['marionette', 'modules/loading', 'templates', 'modules/tooltip', 'autocomplete'], function(Marionette, Loading, templates, Tooltip) {
	var Alerts = {},
		isMobile = false;
	if (window.navigator) {
		isMobile = navigator.userAgent.match(/(iPhone|iPod|iPad|Android|Windows Phone|BlackBerry|Mobile)/);
	}
	function isEmpty(value) {
		return (value === '') ? true : false;
	};

	// Alerts Module View
	Alerts.Layout = Marionette.Layout.extend({
		template: templates.alertsLayout,
		className: "subpage",
		regions: {
			middle: "#alertContent"
		}
	});

	// Single Alert View
	Alerts.SingleAlert = Marionette.ItemView.extend({
		initialize: function(options) {
			this.app = options.app;
			this.userModel = options.userModel;
			this.user_id = options.userModel.get("_id");
		},
		template: templates.alert,
		className: "module",
		events: {
			"click .actions .alert-on-off": "toggleAlert",
			"click .actions .edit": "editAlert",
			"click .actions .submit": "submitAlert",
			"click .actions .delete": "deleteAlert",
			"click .actions .doSearch": "doSearch",
			"click .frequency-title": "toggleFrequencyDropdown",
			"click .frequency-back": "backToFrequencyType",
			"click .freq-option": "selectFreq",
			"click .freq-weekly": "showDays",
			"click .freq-day": "selectDay"
		},
		modelEvents: {
			"change:keyword": "modelChanged",
			"change:location": "modelChanged",
			"change:frequency": "modelChanged"
		},
		modelChanged: function() {
			this.render();
		},
		onRender: function() {
			var that = this,
				regex = /^\d{5}$/,
				locationVal = this.$('.location input').val();
			// Update the keyword with a properly formatted string
			this.$('.title input').val(function() {
				return $(this).val().toProperCase();
			});

			// ie8 placeholder polyfill
			this.$('input').placeholder();

			// Properly Format Location
			// If the location is a zip code, do the zip code lookup
			if (regex.test(locationVal)) {
				var zip = locationVal;
				console.log('CHECKING ZIP:', locationVal);
				$.ajax({
					url: "http://zip.elevenbasetwo.com",
					cache: false,
					dataType: "json",
					type: "GET",
					data: "zip=" + zip,
					success: function(result, success) {
						var formatted = result.city.toProperCase()+ ', ' +result.state+ ' ' +zip
						console.log(formatted);
						that.model.save({
							location: formatted,
							user_id:this.user_id
						});
					},
					error: function(result, success) {
						console.log('There was an error with the Zip code lookup');
					}
				});
			} else {
				// If the location isn't a zip code, only format the string.
				this.$('.location input').val(function() {
					return $(this).val().formatLocation();
				});
			}
			// Set autocomplete on render;
			this.autocomplete();
			this.tooltip();
		},
		toggleAlert: function(e) {
			e.preventDefault();
			if (!this.model.get('active')) {
				console.log('On');
				$(e.currentTarget).removeClass('inactive').html('🔔');
				this.model.set({active:true});
			} else {
				console.log('Off');
				$(e.currentTarget).addClass('inactive').html('🔕');
				this.model.set({active:false});
			}
			this.model.save({
				user_id:this.user_id
			});
		},
		editAlert: function(e) {
			e.preventDefault();
			// enable editing the input box
			this.$('input').prop('disabled', false);
			$(e.currentTarget).removeClass('edit').addClass('submit').html('✓').prev().attr('title', 'Submit').html('Submit');
			this.$('a.delete').prev().attr('title', 'Cancel').html('Cancel');
			// Add inactive class to create new alert button so no alerts can be created while editing.
			$('#createAlert').addClass('inactive');
			this.$('.title .tt-input').focus();
			$('.module').addClass('edit-mode');
			$(this.$el).addClass('editing');
			Tooltip.show("Edit Alert");
		},
		submitAlert: function(e) {
			e.preventDefault();
			var keyword = $.trim(this.$('.title input').val()),
				location = $.trim(this.$('.location input').val()),
				that = this;
			if (this.isValid(keyword, location)) {
				this.$('.location').removeClass('required');
				this.$('.title').removeClass('required');
				this.handleEditEnd();
				this.model.save({
					keyword: keyword,
					location: location,
					user_id:this.user_id
				}, {
					success: function(model, result) {
						that.modelSaveCallback(result);
					}
				});
			} else {
				Tooltip.show("A keyword and location is required to save an alert");
				return false;
			}
		},
		isValid: function(keyword, location) {
			var valid = true;
			if (isEmpty(keyword)) {
				this.$('.title').addClass('required');
				valid = false;
			}
			if (isEmpty(location)) {
				this.$('.location').addClass('required');
				valid = false;
			}
			return valid;
		},
		cancelEdit: function() {
			this.handleEditEnd();
			this.render();
			Tooltip.show("Cancelled Edit");
		},
		handleEditEnd: function() {
			// disable editing the input box
			this.$('input').prop('disabled', true);
			// Re-adds the edit class and replaces check with pen icon, then changes the text of the tooltip.
			this.$('a.submit').removeClass('submit').addClass('edit').html('✎').prev().attr('title', 'Edit').html('Edit');
			this.$('a.delete').prev().attr('title', 'Delete').html('Delete');
			// Check whether to disable edit mode or not
			this.disableEditModeCheck();
			// Removes the class that adds opacity to the alert being edited.
			$(this.$el).removeClass('editing');
		},
		deleteAlert: function(e) {
			e.preventDefault();
			if ($(this.$el).hasClass('editing')) {
				this.cancelEdit();
			} else {
				console.log(this.model);
				// DELETING MODEL FROM SERVER
				this.model.destroy({
					data: {user_id:this.user_id},
					processData: true
				});
				// Check whether to disable edit mode or not
				this.disableEditModeCheck();
				Tooltip.show("Alert Deleted");
			}
		},
		disableEditModeCheck: function() {
			// If there are no longer any modules that are being edited....
			if (!$('.module .actions a').hasClass('submit')) {
				// remove inactive class from create button.
				$('#createAlert').removeClass('inactive');
				// remove 'edit state' from all modules
				$('.module').removeClass('edit-mode');
			}
		},
		doSearch: function(e) {
			e.preventDefault();
			var that = this,
				q = this.model.get('keyword').formatQuery(),
				l = this.model.get('location').formatQuery(),
				d = (function() {
					var frequency = that.model.get('frequency').type.toLowerCase();
					if (frequency === 'daily') { return 1; }
					else if (frequency === 'weekly') { return 7; }
					else if (frequency === 'monthly') { return 30; }
				})();
			this.app.navigate('jobs/' + q + '/' + l + '/1/25/' + d, {trigger:true});
		},
		toggleFrequencyDropdown: function(e) {
			var that = this;
			if (this.userModel.get("type") === "confirmed") {

			} else {
				this.$('.frequency-dropdown').toggleClass('active');
				if (this.$('.frequency-weekday-dropdown').hasClass('active')) {
					this.$('.frequency-weekday-dropdown').removeClass('active');
				}
				e.stopPropagation();
				$(document).click(function(e) {
					var container = that.$(".frequency");
					if (!container.is(e.target) && // if the target of the click isn't the container...
						container.has(e.target).length === 0) // ... nor a descendant of the container
					{
						that.$('.frequency-dropdown, .frequency-weekday-dropdown').removeClass('active');
					}
				});
			}
		},
		backToFrequencyType: function() {
			this.$('.frequency-weekday-dropdown').removeClass('active');
		},
		selectFreq: function(e) {
			var type = $.trim($(e.currentTarget).text()),
				that = this;
			console.log(type);
			this.model.save({
				frequency: {
					type: type
				},
				user_id:this.user_id
			}, {success:function(model, result) {
					that.modelSaveCallback(result);
				}
			});
			this.$('.frequency-dropdown').removeClass('active');
			this.$('.freq-value').text(type);
		},
		showDays: function(e) {
			this.$('.frequency-weekday-dropdown').addClass('active');
		},
		selectDay: function(e) {
			var day = $.trim($(e.currentTarget).text()),
				type = 'Weekly',
				that = this;
			this.model.save({
				frequency: {
					type: type,
					weekday: day
				},
				user_id:this.user_id
			}, {success:function(model, result) {
					that.modelSaveCallback(result);
				}
			});
			this.$('.frequency-dropdown, .frequency-weekday-dropdown').removeClass('active');
		},
		modelSaveCallback: function(result) {
			if (result.isSame) {
				Tooltip.show("Oops, the Alert you're trying to create already exists.");
				this.$('.alert-dup-error').show();
			} else if (result.error) {
				Tooltip.show(result.error);
			} else {
				Tooltip.show("Alert saved successfully!");
				this.$('.alert-dup-error').hide();
			}
		},
		autocomplete: function() {
			// Autocomplete on the Keyword and Location fields.
			this.$('.title .typeahead').typeahead({
				hint: false,
				highlight: true,
				minLength: 2
			}, {
				name: 'keywords',
				displayKey: 'value',
				// `ttAdapter` wraps the suggestion engine in an adapter that
				// is compatible with the typeahead jQuery plugin
				source: keywords.ttAdapter(),
				templates: {
					suggestion: function(d) {
						return '
'+d.value+'
';
					}
				}
			});
			this.$('.location .typeahead').typeahead({
				hint: false,
				highlight: true,
				minLength: 2
			}, {
				name: 'states',
				displayKey: 'value',
				// `ttAdapter` wraps the suggestion engine in an adapter that
				// is compatible with the typeahead jQuery plugin
				source: states.ttAdapter(),
				templates: {
					suggestion: function(d) {
						return '
'+d.value+'
';
					}
				}
			});
		},
		tooltip: function() {
			if (!isMobile) {
				// Set the tooltip on hover event
				this.$('.actions li').hover(function() {
					$(this).find('.alerts-tooltip').addClass('active');
				}, function() {
					$(this).find('.alerts-tooltip').removeClass('active');
				});
			}
		}
	});

	// Alerts Collection View
	Alerts.AlertsView = Marionette.CollectionView.extend({
		initialize: function(options) {
			this.app = options.app;
			this.userModel = options.userModel;
			this.user_id = options.userModel.get("_id");
			this.collection.fetch({
				reset: true,
				data: $.param({user_id:this.user_id})
			});
		},
		emptyView: Loading.View,
		itemView: Alerts.SingleAlert,
		itemViewOptions: function() {
			return {
				app: this.app,
				userModel: this.userModel
			};
		},
		tagName: "section",
		className: "my-alerts",
		collectionEvents: {
			"change:active": "collectionChanged",
			"add": "collectionAddRemove",
			"remove": "collectionAddRemove"
		},
		appendHtml: function(collectionView, itemView){
			collectionView.$el.prepend(itemView.el);
		},
		collectionChanged: function() {
			this.render();
			this.triggerAlerts();
			// remove inactive class on re-render since 'edit mode' is no longer active
			$('#createAlert').removeClass('inactive');
		},
		collectionAddRemove: function() {
			this.triggerAlerts();
			if (this.collection.length === 0) {
				$('#createAlert').removeClass('inactive');
			}
		},
		onRender:function() {
			this.triggerAlerts();
		},
		triggerAlerts: function() {
			var active = true;
			_.each(this.collection, function(element, i, list) {
				// check if there are any modules with inactive alerts
				if (!list.models[i].attributes.active) {
					// if so, set active as false
					active = false;
				}
			});
			if (this.collection.length === 0) { active = false; }
			console.log(active);
			if (active) {
				$('#triggerAlerts').addClass('active');
			} else {
				if (!$('#triggerAlerts').hasClass('active')) {
					$('#triggerAlerts i').html('🔔');
				}
				$('#triggerAlerts').removeClass('active');
				$('#triggerAlerts i').html('🔔');
			}
		}
	});

	Alerts.FilterView = Marionette.ItemView.extend({
		initialize: function(options) {
			this.app = options.app;
			this.collection = options.collection;
			this.userModel = options.userModel;
			this.searchModel = options.searchModel;
			this.user_id = this.userModel.get("_id");
		},
		events: {
			"click #createAlert": "createAlert",
			// "click #sortAlerts": "sortAlerts",
			"click #triggerAlerts": "triggerAlertsOnOff"
		},
		createAlert: function(e) {
			if (!$(e.currentTarget).hasClass('inactive')) {
				var that = this,
					alert = Alerts.SingleAlert,
					collection = this.collection,
					data = {
						action: "create-alert",
						view: "alerts"
					};
				if (!this.userModel.get("token")) {
					if (collection.length < 1) {
						console.log('ADDING AS A CONFIRMED');
						this.addToCollection(collection, alert);
					} else {
						require(['modules/modaloverlay/modalView', 'modules/socialView'], function(Modal, Social) {
							var modal = new Modal.LoginView({
								userModel: that.userModel,
								app: that.app,
								searchModel: that.searchModel,
								data: data
							});
							that.app.modal.show(modal);
							new Social.View({
								el: "#socialModal",
								model: that.searchModel,
								data: data
							});
						});
					}
				} else {
					if (collection.length < 25) {
						console.log('ADDING AS A CONFIRMED +');
						this.addToCollection(collection, alert);
					} else {
						Tooltip.show("You've reached the 25 Alert Limit.");
					}
				}
			}
		},
		addToCollection: function(collection, alert) {
			Tooltip.show("Alert Created");
			collection.add(alert);
			$('.module').eq(0).find('.edit').trigger('click');
		},
		sortAlerts: function() {
			// TODO
		},
		triggerAlertsOnOff: function(e) {
			var user_id = this.user_id;
			if ($(e.currentTarget).hasClass('active')) {
				// iterate through the collection using underscore method. list.models[i] is the reference to the model.
				_.each(this.collection, function(element, i, list) {
					list.models[i].set({active:false});
					list.models[i].trigger('change:active');
					list.models[i].save({
						user_id:user_id
					});
				});
				$(e.currentTarget).removeClass('active').html('🔕 Toggle All');
				Tooltip.show("🔕 Turned All Alerts Off");
			} else {
				_.each(this.collection, function(element, i, list) {
					list.models[i].set({active:true});
					list.models[i].trigger('change:active');
					list.models[i].save({
						user_id:user_id
					});
				});
				$(e.currentTarget).addClass('active').html('🔔 Toggle All');
				Tooltip.show("🔔 Turned All Alerts On");
			}
		}
	});

	console.log('success loading Alerts Views');
	return Alerts;
});


text:
package com.peterfranza.propertytranslator;

public enum MissingKeyBackFillType {
	NONE, QUESTIONMARK, PRIMARYLANGUAGE;
}

redpajama_set_name: RedPajamaGithub


text:
<?php
//====================================================================================
// OCS INVENTORY REPORTS
// Copyleft Pierre LEMMET 2005
// Web: http://www.ocsinventory-ng.org
//
// This code is open source and may be copied and modified as long as the source
// code is always made freely available.
// Please refer to the General Public Licence http://www.gnu.org/ or Licence.txt
//====================================================================================
//Modified on $Date: 2010 $$Author: Erwan Goalou
@session_start();
if(AJAX){
	parse_str($protectedPost['ocs']['0'], $params);
	$protectedPost+=$params;
	ob_start();
	$ajax = true;
}
else{
	$ajax=false;
}
require('require/function_opt_param.php');
require('require/function_graphic.php');
require_once('require/function_machine.php');
require_once('require/function_files.php');
require_once('ms_computer_views.php');
//recherche des infos de la machine

$item=info($protectedGet,$protectedPost['systemid']);
if (!is_object($item)){
	msg_error($item);
	require_once(FOOTER_HTML);
	die();
}
//you can't view groups'detail by this way
if ( $item->DEVICEID == "_DOWNLOADGROUP_"
	or $item->DEVICEID == "_SYSTEMGROUP_"){
	die('FORBIDDEN');
}

$systemid = $item->ID;

if (!isset($protectedGet['option']) and !isset($protectedGet['cat'])) {
	$protectedGet['cat'] = 'admin';
}

echo '
';
show_computer_menu($item->ID);
echo '
';

echo '
';

show_computer_title($item);

if (isset($protectedGet['cat']) and $protectedGet['cat'] == 'admin') {
	show_computer_summary($item);
}

//Wake On Lan function
if (isset($protectedPost["WOL"]) and $protectedPost["WOL"] == 'WOL' and $_SESSION['OCS']['profile']->getRestriction('WOL', 'NO')=="NO"){
	require_once('require/function_wol.php');
	$wol = new Wol();
	$sql = "select MACADDR,IPADDRESS from networks WHERE (hardware_id=%s) and status='Up'";
	$arg = array($item->ID);
	$resultDetails = mysql2_query_secure($sql, $_SESSION['OCS']["readServer"], $arg);
	$msg = "";

	while ($item = mysqli_fetch_object($resultDetails)){
		$wol->wake($item->MACADDR,$item->IPADDRESS);

		if ($wol->wol_send == $l->g(1282)) {
			msg_info($wol->wol_send."=>".$item->MACADDR."/".$item->IPADDRESS);
		} else {
			msg_error($wol->wol_send."=>".$item->MACADDR."/".$item->IPADDRESS);
		}
	}
}

if ($ajax) {
	ob_end_clean();
}

$plugins_serializer = new XMLPluginsSerializer();
$plugins = $plugins_serializer->unserialize(file_get_contents('config/computer/plugins.xml'));

if (isset($protectedGet['cat']) and in_array($protectedGet['cat'], array('software', 'hardware', 'devices', 'admin', 'config', 'other'))) {
	// If category
	foreach ($plugins as $plugin) {
		if ($plugin->getCategory() == $protectedGet['cat']) {
			$plugin_file = PLUGINS_DIR."computer_detail/".$plugin->getId()."/".$plugin->getId().".php";
			$protectedPost['computersectionrequest'] = $plugin->getId();
			if (file_exists($plugin_file)) {
				if ($plugin->getHideFrame()) {
					require $plugin_file;
				} else {
					echo '
getId().'">';
					require $plugin_file;
					echo '
';
				}
			}
		}
	}
} else if (isset($protectedGet['option']) and isset($plugins[$protectedGet['option']])) {
	// If specific plugin
	$plugin = $plugins[$protectedGet['option']];
	$plugin_file = PLUGINS_DIR."computer_detail/".$plugin->getId()."/".$plugin->getId().".php";

	if (file_exists($plugin_file)) {
		if (!$ajax) echo '
getId().'">';
		require $plugin_file;
		if (!$ajax) echo '
';
	}
} else {
	// Else error
	msg_error('Page not found');
}

echo '
';

if ($ajax) {
	ob_end_clean();
}

?>


text:
using Jupiter.Utils.Extensions;
using Meridian.Interfaces;
using Meridian.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using VkLib.Core.Attachments;
using VkLib.Core.Audio;
using Meridian.Utils.Extensions;
using VkLib.Core.Groups;
using VkLib.Error;
using GalaSoft.MvvmLight.Messaging;
using Meridian.Utils.Messaging;

namespace Meridian.Services.VK
{
    public class VkTracksService
    {
        private readonly VkLib.Vk _vk;
        //private readonly SQLiteAsyncConnection _db;

        public VkTracksService(VkLib.Vk vk/*, SQLiteAsyncConnection db*/)
        {
            _vk = vk;
            //_db = db;
        }

        public async Task<List<IAudio>> GetTracks(long userId = 0, long albumId = 0, int count = 0, string accessKey = null)
        {
            List<IAudio> result = null;

            try
            {
                var response = await _vk.Audio.Get(ownerId: userId, albumId: albumId, count: count, accessKey: accessKey);

                if (response?.Items.IsNullOrEmpty() == false)
                {
                    var tracks = ProcessTracks(response.Items);

                    //update db
                    //await _db.InsertAllAsync(tracks);

                    result = tracks;
                }
            }
            catch (VkInvalidTokenException)
            {
                Messenger.Default.Send(new MessageUserAuthChanged { IsLoggedIn = false });
            }
            catch (VkFloodControlException)
            {
                Messenger.Default.Send(new MessageUserAuthChanged { IsLoggedIn = false });
            }

            //if (result == null)
            //    result = (await _db.Table<AudioVk>().ToListAsync()).OfType<IAudio>().ToList();

            return result;
        }

        /// <summary>
        /// Return playlists of specified user
        /// </summary>
        /// <param name="userId">User id</param>
        /// <param name="tracks">List of tracks to calculate number of tracks in each playlist</param>
        public async Task<(List<IPlaylist> Playlists, int TotalCount)> GetPlaylists(long userId = 0, int count = 0, int offset = 0, IList<IAudio> tracks = null)
        {
            (List<IPlaylist> playlists, int totalCount) result = (null, 0);

            try
            {
                var response = await _vk.Audio.GetPlaylists(ownerId: userId != 0 ? userId : _vk.AccessToken.UserId, count: count, offset: offset);

                if (response?.Items.IsNullOrEmpty() == false)
                {
                    var playlists = ProcessPlaylists(response.Items);

                    result = (playlists, response.TotalCount);
                }
            }
            catch (VkInvalidTokenException)
            {
                Messenger.Default.Send(new MessageUserAuthChanged { IsLoggedIn = false });
            }

            return result;
        }

        public async Task<bool> FollowPlaylist(PlaylistVk playlist)
        {
            try
            {
                var response = await _vk.Audio.FollowPlaylist(ownerId: long.Parse(playlist.OwnerId), playlistId: long.Parse(playlist.Id), accessKey: playlist.AccessKey);
                return response != 0;
            }
            catch (VkInvalidTokenException)
            {
                Messenger.Default.Send(new MessageUserAuthChanged { IsLoggedIn = false });
            }

            return false;
        }

        public async Task<bool> DeletePlaylist(PlaylistVk playlist)
        {
            try
            {
                return await _vk.Audio.DeletePlaylist(ownerId: long.Parse(playlist.OwnerId), playlistId: long.Parse(playlist.Id));
            }
            catch (VkInvalidTokenException)
            {
                Messenger.Default.Send(new MessageUserAuthChanged { IsLoggedIn = false });
            }

            return false;
        }

        public async Task<(List<AudioPost> Posts, string NextFrom)> GetNews(int count = 50, string nextFrom = null)
        {
            (List<AudioPost> Posts, string NextFrom) result = (null, null);

            try
            {
                var response = await _vk.News.Get(filters: "post", count: count, startFrom: nextFrom);

                if (response?.Items.IsNullOrEmpty() == false)
                {
                    var audioIds = new List<string>();
                    var posts = new List<AudioPost>();
                    var postAudioMatches = new Dictionary<string, IList<string>>();

                    foreach (var newsEntry in response.Items)
                    {
                        var attachments = newsEntry.Attachments;

                        //if there are no attachments of this post, but there is repost history, take attachments from last repost
                        if (attachments.IsNullOrEmpty() && !newsEntry.CopyHistory.IsNullOrEmpty())
                            attachments = newsEntry.CopyHistory.Last().Attachments;

                        if (attachments.IsNullOrEmpty())
                            continue;

                        var ids = attachments.Where(a => a is VkAudioAttachment).Select(a => $"{a.OwnerId}_{a.Id}").ToList();
                        audioIds.AddRange(ids);

                        var post = new AudioPost();
                        post.Id = newsEntry.Id.ToString();
                        post.Text = newsEntry.Text;
                        post.PostUri = new Uri($"http://vk.com/wall{newsEntry.SourceId}_{post.Id}");
                        post.AuthorUri = new Uri(string.Format("https://vk.com/{0}{1}", newsEntry.Author is VkGroup ? "club" : "id", newsEntry.Author.Id));

                        var imageUrl = newsEntry.Attachments?.OfType<VkPhotoAttachment>().FirstOrDefault()?.SourceMax;
                        if (!string.IsNullOrEmpty(imageUrl))
                            post.ImageUri = new Uri(imageUrl);

                        post.Author = newsEntry.Author;
                        post.Date = newsEntry.Date;
                        posts.Add(post);

                        postAudioMatches.Add(post.Id, ids);
                    }

                    if (audioIds.Count == 0)
                        return result;

                    var tracks = new List<IAudio>();

                    var audioIdsChunks = audioIds.Split(100); //split ids by chunks of 100 ids (api restriction)
                    foreach (var audioIdsChunk in audioIdsChunks)
                    {
                        var resultAudios = await _vk.Audio.GetById(audioIdsChunk.ToList());
                        if (!resultAudios.IsNullOrEmpty())
                            tracks.AddRange(ProcessTracks(resultAudios));
                    }

                    foreach (var post in posts)
                    {
                        post.Tracks = tracks.Where(t => postAudioMatches[post.Id].Contains($"{t.OwnerId}_{t.Id}")).ToList();
                    }

                    result.Posts = posts.Where(p => p.Tracks.Count > 0).ToList();
                    result.NextFrom = response.NextFrom;
                }
            }
            catch (VkInvalidTokenException)
            {
                Messenger.Default.Send(new MessageUserAuthChanged { IsLoggedIn = false });
            }

            return result;
        }

        public async Task<(List<AudioPost> Posts, int TotalCount)> GetWallPosts(int count = 300, int offset = 0, long ownerId = 0)
        {
            (List<AudioPost> Posts, int TotalCount) result = (null, 0);

            try
            {
                var response = await _vk.Wall.Get(ownerId: ownerId, filter: "all", count: count, offset: offset);

                if (response?.Items.IsNullOrEmpty() == false)
                {
                    var audioIds = new List<string>();
                    var posts = new List<AudioPost>();
                    var postAudioMatches = new Dictionary<string, IList<string>>();

                    foreach (var newsEntry in response.Items)
                    {
                        var attachments = newsEntry.Attachments;

                        //if there are no attachments of this post, but there is repost history, take attachments from last repost
                        if (attachments.IsNullOrEmpty() && !newsEntry.CopyHistory.IsNullOrEmpty())
                            attachments = newsEntry.CopyHistory.Last().Attachments;

                        if (attachments.IsNullOrEmpty())
                            continue;

                        var ids = attachments.Where(a => a is VkAudioAttachment).Select(a => $"{a.OwnerId}_{a.Id}").ToList();
                        audioIds.AddRange(ids);

                        var post = new AudioPost();
                        post.Id = newsEntry.Id.ToString();
                        post.Text = newsEntry.Text;
                        post.PostUri = new Uri($"http://vk.com/wall{newsEntry.SourceId}_{post.Id}");
                        post.AuthorUri = new Uri(string.Format("https://vk.com/{0}{1}", newsEntry.Author is VkGroup ? "club" : "id", newsEntry.Author.Id));

                        var imageUrl = newsEntry.Attachments?.OfType<VkPhotoAttachment>().FirstOrDefault()?.SourceMax;
                        if (!string.IsNullOrEmpty(imageUrl))
                            post.ImageUri = new Uri(imageUrl);

                        post.Author = newsEntry.Author;
                        post.Date = newsEntry.Date;
                        posts.Add(post);

                        postAudioMatches.Add(post.Id, ids);
                    }

                    if (audioIds.Count == 0)
                        return result;

                    var tracks = new List<IAudio>();

                    var audioIdsChunks = audioIds.Split(100); //split ids by chunks of 100 ids (api restriction)
                    foreach (var audioIdsChunk in audioIdsChunks)
                    {
                        var resultAudios = await _vk.Audio.GetById(audioIdsChunk.ToList());
                        if (!resultAudios.IsNullOrEmpty())
                            tracks.AddRange(ProcessTracks(resultAudios));
                    }

                    foreach (var post in posts)
                    {
                        post.Tracks = tracks.Where(t => postAudioMatches[post.Id].Contains($"{t.OwnerId}_{t.Id}")).ToList();
                    }

                    result.Posts = posts.Where(p => p.Tracks.Count > 0).ToList();
                    response.TotalCount = response.TotalCount;
                }
            }
            catch (VkInvalidTokenException)
            {
                Messenger.Default.Send(new MessageUserAuthChanged { IsLoggedIn = false });
            }

            return result;
        }

        /// <summary>
        /// Reorder tracks
        /// </summary>
        /// <param name="trackId">Track id</param>
        /// <param name="beforeTrackId">Next track id</param>
        /// <param name="afterTrackId">Previous track id</param>
        public async Task<bool> ReorderTracks(IAudio track, string beforeTrackId, string afterTrackId)
        {
            return await _vk.Audio.Reorder(long.Parse(track.Id), long.Parse(afterTrackId), long.Parse(beforeTrackId));
        }

        /// <summary>
        /// Get popular tracks
        /// </summary>
        public async Task<List<IAudio>> GetPopularTracks(bool foreignOnly = false, int count = 0, int offset = 0, int genreId = 0)
        {
            List<IAudio> result = null;

            try
            {
                var response = await _vk.Audio.GetPopular(onlyEng: foreignOnly, count: count, offset: offset, genreId: genreId);

                if (response?.Items.IsNullOrEmpty() == false)
                {
                    var tracks = ProcessTracks(response.Items);

                    result = tracks;
                }
            }
            catch (VkInvalidTokenException)
            {
                Messenger.Default.Send(new MessageUserAuthChanged { IsLoggedIn = false });
            }

            return result;
        }

        /// <summary>
        /// Search tracks
        /// </summary>
        public async Task<(List<IAudio> Tracks, int TotalCount)> SearchTracks(string query, int count = 0, int offset = 0)
        {
            (List<IAudio> Tracks, int TotalCount) result = (null, 0);

            try
            {
                var response = await _vk.Audio.Search(query, count, offset);

                if (response?.Items.IsNullOrEmpty() == false)
                {
                    var tracks = ProcessTracks(response.Items);

                    result = (tracks, response.TotalCount);
                }
            }
            catch (VkInvalidTokenException)
            {
                Messenger.Default.Send(new MessageUserAuthChanged { IsLoggedIn = false });
            }

            return result;
        }

        /// <summary>
        /// Get list of genres
        /// </summary>
        /// <returns></returns>
        public List<VkGenre> GetGenres()
        {
            return _vk.Audio.GetGenres();
        }

        /// <summary>
        /// Add track to my music
        /// </summary>
        public async Task<bool> AddTrack(AudioVk track)
        {
            var newId = await _vk.Audio.Add(long.Parse(track.Id), long.Parse(track.OwnerId));

            if (newId > 0)
            {
                track.Id = newId.ToString();
                track.OwnerId = _vk.AccessToken?.UserId.ToString();
                track.IsAddedByCurrentUser = true;

                return true;
            }

            return false;
        }

        /// <summary>
        /// Remove track from my music
        /// </summary>
        /// <param name="audio"></param>
        /// <returns></returns>
        public async Task<bool> RemoveTrack(AudioVk track)
        {
            var result = await _vk.Audio.Delete(long.Parse(track.Id), long.Parse(track.OwnerId));
            if (result)
            {
                track.IsAddedByCurrentUser = false;
            }

            return result;
        }

        /// <summary>
        /// Get track lyrics
        /// </summary>
        public async Task<string> GetTrackLyrics(long lyricsId)
        {
            return await _vk.Audio.GetLyrics(lyricsId);
        }

        /// <summary>
        /// Edit track info
        /// </summary>
        /// <returns>Returns lyrics id or 0</returns>
        public async Task<long> EditTrack(AudioVk track, string title, string artist, string lyrics = null)
        {
            return await _vk.Audio.Edit(ownerId: long.Parse(track.OwnerId), audioId: long.Parse(track.Id), artist: artist, title: title, text: lyrics);
        }

        /// <summary>
        /// Edit playlist
        /// </summary>
        /// <returns>True if success, otherwise false</returns>
        public async Task<bool> EditPlaylist(PlaylistVk playlist, string title)
        {
            return await _vk.Audio.EditAlbum(playlist.Id, title);
        }

        /// <summary>
        /// Add new playlist
        /// </summary>
        public async Task<long> AddPlaylist(string title)
        {
            return await _vk.Audio.AddAlbum(title);
        }

        /// <summary>
        /// Add tracks to playlist
        /// </summary>
        public async Task<bool> AddTracksToPlaylist(List<AudioVk> tracks, string playlistId)
        {
            return await _vk.Audio.MoveToAlbum(long.Parse(playlistId), tracks.Select(t => long.Parse(t.Id)).ToList());
        }

        #region Recommendations

        public async Task<List<CatalogBlock>> GetPersonalRecommendations()
        {
            var blocks = await _vk.Audio.GetCatalog();

            if (blocks != null)
                return blocks.Select(b => new CatalogBlock(b, tracks: b.Audios != null ? ProcessTracks(b.Audios) : null,
                                                              playlists: b.Playlists != null ? ProcessPlaylists(b.Playlists) : null,
                                                              extendedPlaylists: b.ExtendedPlaylists != null ?
                                                                                ProcessPlaylists(b.ExtendedPlaylists.Select(p => p.Playlist).ToList()) : null)).ToList();

            return null;
        }

        #endregion

        private List<IAudio> ProcessTracks(List<VkAudio> tracks)
        {
            var result = new List<IAudio>();
            foreach (var vkTrack in tracks)
            {
                var track = new AudioVk(vkTrack);
                track.IsAddedByCurrentUser = track.OwnerId == _vk.AccessToken?.UserId.ToString();
                result.Add(track);
            }

            return result;
        }

        private List<IPlaylist> ProcessPlaylists(List<VkPlaylist> playlists)
        {
            return playlists.Select(a => new PlaylistVk(a)
            {
                IsAddedByCurrentUser = a.OwnerId == _vk.AccessToken?.UserId
            }).OfType<IPlaylist>().ToList();
        }
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <integer name="overview_fragment_column_span">3</integer>
</resources>


text:
This file lists the major user visible improvments.  For a full list of changes
and their authors see the git history.

Version 2.0
===========

* Flush/sync trace file only when there is an uncaught signal/exception,
  yielding a 5x speed up while tracing.

* Employ [snappy compression library](http://code.google.com/p/snappy/) instead
  of zlib, yielding a 2x speed up while tracing.

* Implement and advertise `GL_GREMEDY_string_marker` and
  `GL_GREMEDY_frame_terminator` extensions.

* Mac OS X support.

* Support up-to OpenGL 4.2 calls.

* Better GUI performance with very large traces, by loading frames from disk on
  demand.

Version 1.0
===========

* Qt GUI, capable of visualizing the calls, the state, and editing the state.

Pre-history
===========

* OpenGL retrace support.


text:
namespace dragon_li {
namespace amr {

template< typename Settings >
class AmrReg : public AmrBase< Settings > {

public:
	typedef typename Settings::Types Types;
	typedef typename Settings::SizeType SizeType;
	typedef typename Settings::DataType DataType;

	static const SizeType THREADS = Settings::THREADS;
	static const SizeType CTAS = Settings::CTAS;

	DataType * devActiveGridData;
	SizeType * devActiveGridPointer;

	SizeType iteration;
	SizeType processGridOffset;

	AmrReg() : AmrBase<Settings>(),
		iteration(0),
		processGridOffset(0){}

	virtual int refine() {

		while(iteration < this->maxRefineLevel && !this->gridSizeOverflow) {

			SizeType processGridSize = this->activeGridSize - processGridOffset;
            if(this->verbose)
			    std::cout << "Iteration " << iteration << ": " <<
                    "ProcessGridSize " << processGridSize << ", ";

			amrRegRefineKernel< Settings >
				<<< CTAS, THREADS >>> (
					this->devGridData,
					this->devGridPointer,
					this->maxGridDataSize,
					processGridOffset,
					processGridSize,
					this->maxRefineLevel,
					this->gridRefineThreshold,
					this->ctaOutputAssignment
				);

			cudaError_t retVal;
			if(retVal = cudaDeviceSynchronize()) {
				errorCuda(retVal);
				return -1;
			}

			processGridOffset = this->activeGridSize;

			if(this->ctaOutputAssignment.getGlobalSize(this->activeGridSize))
				return -1;

            if(this->verbose)
    			std::cout << "activeGridSize = " << this->activeGridSize
                    << "\n";

			iteration++;
			if(this->activeGridSize == processGridOffset) //no new cells generated
				break;

			if(iteration >= this->maxRefineLevel) {
				report("Max Refine Level reached! Consider increasing maxRefineLevel!");
				break;
			}
			if(this->activeGridSize > this->maxGridDataSize) {
				this->gridSizeOverflow = true;
				errorMsg("Grid Data Size overflow! Consider increasing maxGridDataSize!");
				break;
			}

		}

		return 0;

	}

	int getDevGridData() {

		cudaError_t retVal;

		if(this->gridData.empty()) {
			this->gridData.resize(this->activeGridSize);

			if(retVal = cudaMemcpy((void *)(this->gridData.data()), this->devGridData,
							this->activeGridSize * sizeof(DataType), cudaMemcpyDeviceToHost)) {

				errorCuda(retVal);
				return -1;
			}

		}

		if(this->gridPointer.empty()) {
			this->gridPointer.resize(this->activeGridSize);

			if(retVal = cudaMemcpy((void *)(this->gridPointer.data()), this->devGridPointer,
							this->activeGridSize * sizeof(SizeType), cudaMemcpyDeviceToHost)) {
				errorCuda(retVal);
				return -1;
			}
		}

		return 0;
	}

	virtual int displayResult() {

		std::cout << "GPU AMR refine depth = " << iteration
			<< ", Grid Size = " << this->activeGridSize << "\n";

		if(this->veryVerbose) {

			if(getDevGridData())
				return -1;

			std::cout << "Grid: index, data, pointer\n";
			for(SizeType i = 0; i < this->activeGridSize; i++) {

				std::cout << i << ", " << this->gridData[i] << ", " << this->gridPointer[i] << "\n";
			}
		}

		return 0;

	}
};

}
}


text:
(function(){
	'use strict';

	angular.module('motech-server')
		.constant('MessageFormat', MessageFormat)
		.factory('i18nInterpolator', interpolatorFactory);

	function interpolatorFactory(MessageFormat){
		var formatter;
		return {
			setLocale: function (locale) {
				formatter = new MessageFormat(locale);
			},
			getInterpolationIdentifier: function () {
				return 'i18nInterpolator';
			},
			interpolate: function (string, params) {
				if(!formatter){
					return string;
				}
				var message = formatter.compile(string);
				return message(params);
			}
		};
	}

})();


text:
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QtDeclarative>
#include <QAudioDeviceInfo>
#include <QAudioOutput>
#include <QAudioInput>
#include "voicegenerator.h"
#include "voiceanalyzer.h"

const int DataFrequencyHzOutput = 44100;
const int DataFrequencyHzInput = 48000;

#define MAX_INPUT_VALUE 50
#define MIN_INPUT_VALUE -50

class GuitarTuner : public QMainWindow
{
    Q_OBJECT
public:
    enum Orientation {
        LockPortrait,
        LockLandscape,
        Auto
    };
    explicit GuitarTuner(QWidget *parent = 0);
    qreal getVolume();
    qreal getMicrophoneSensitivity();
    bool getMuteState();
    void setOrientation(Orientation orientation);

signals:

public slots:
    void modeChanged(bool isInput);
    void muteStateChanged(bool isMuted);
    void targetFrequencyChanged(qreal targetFrequency);
    void outputStateChanged(QAudio::State state);
    void setMaxVolumeLevel(qreal);

private:
    void initAudioOutput();
    void initAudioInput();
    VoiceGenerator *m_voicegenerator;
    VoiceAnalyzer *m_analyzer;
    QObject *qmlObject;
    QAudioOutput *m_audioOutput;
    QAudioInput *m_audioInput;
    QAudioFormat m_format_output;
    QAudioFormat m_format_input;
    QDeclarativeView *m_guitarTunerUI;
};

#endif // MAINWINDOW_H


text:
A no-nonsense speedcubing timer and scrambler

## Todo
- [x] Log average time over 3, 5, and 10 solves
- [ ] Allow users select an inspection timeframe before the timer starts
- [x] Regenerate scramble algorithm on timer stop
- [x] Allow users to choose between more cube sizes
- [ ] Dark mode
- [ ] Data visualization?


text:
from .astar import a_star_search
from .breadth_first_search import breadth_first_search
from .depth_first_search import depth_first_search, depth_first_search_with_parent_data


text:
You tell the cougar your name

You know you should run, but you can't.  You ask the cougar her name.

"Sara"

You think that Sara is an odd name for a cougar,

while you might have expected something more like "grrmph" or "raaaagghh,"

but you figure you'd better be polite and let it slide.

You ask Sara how she can speak to humans

She says "Be careful asking questions you don't already know the answer to"

You decide you in fact do not want to know the answer to the question,

so you turn back and head into the forest again.

[Head back to the forest](../forest.md)


text:
@interface PlayViewController ()

@end

@implementation PlayViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

@end


text:
class Solution {
    public String breakPalindrome(String palindrome) {
        if (palindrome.length() <= 1) {
            return "";
        }
        StringBuilder sb = new StringBuilder(palindrome);
        for (int i = 0; i < palindrome.length(); i++) {
            if (palindrome.charAt(i) != 'a' && i * 2 + 1 != palindrome.length()) {
                sb.setCharAt(i, 'a');
                return sb.toString();
            }
        }
        sb.setCharAt(palindrome.length() - 1, 'b');
        return sb.toString();
    }
}


text:
package atividade2;

public class Fibonnacci extends SequenciaNumerica {
	private int valorAnterior;

	public Fibonnacci() {
		super(1);
		this.valorAnterior = 1;
	}

	public void proximoValor() {
		int temp = valorAnterior;
		valorAnterior = valorAtual;
		valorAtual = valorAnterior + temp;
	}

	public static void main(String[] args) {
		int quantidade = Integer.parseInt(args[0]);

		Fibonnacci fibonnacci = new Fibonnacci();

		for (int i = 0; i < quantidade; i++) {
			System.out.print(fibonnacci.valorAtual() + " ");
			fibonnacci.proximoValor();
		}
	}
}


text:
import React from 'react'
import { Feed } from 'shengnian-ui-react'

const FeedExampleIconLabelShorthand = () => (
  <Feed>
    <Feed.Event
      icon='pencil'
      date='Today'
      summary="You posted on your friend Stevie Feliciano's wall."
    />

    <Feed.Event>
      <Feed.Label icon='pencil' />
      <Feed.Content
        date='Today'
        summary="You posted on your friend Stevie Feliciano's wall."
      />
    </Feed.Event>
  </Feed>
)

export default FeedExampleIconLabelShorthand


text:
using log4net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity;

namespace LAP.Logic
{
    public class BuchungsVerwaltung
    {
        private static readonly ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

        public static List<Stornierung> AlleStornierungen()
        {
            List<Stornierung> stornos = null;
            try
            {
                using (var context = new ITIN20LAPEntities())
                {
                    //stornos = context.AlleStornierungen.Include("Benutzer").Include("Buchungen").ToList();
                    stornos = context.AlleStornierungen
                        .Include(x => x.Benutzer)
                        .Include(x => x.Benutzer.Firma)
                        .Include(x => x.Buchung)
                        .Include(x => x.Buchung.Räume)
                        .Include(x => x.Buchung.Räume.Gebäude)
                        .ToList();
                }
            }
            catch (Exception ex)
            {
                log.Error("Exception in AlleStornierungen", ex);
                if (ex.InnerException != null)
                    log.Error("Exception in AlleStornierungen (inner)", ex.InnerException);
                throw;
            }

            return stornos;
        }

        /// <summary>
        /// Alle Stornierungen nach Datum
        /// </summary>
        /// <param name="date">datetime datum</param>
        /// <returns></returns>
        public static List<Stornierung> AlleStornierungenDatum(DateTime datum)
        {

            List<Stornierung> Stornobydate = null;

            try
            {
                using (var context = new ITIN20LAPEntities())
                {
                    Stornobydate = context.AlleStornierungen
                        .Include(x => x.Benutzer)
                        .Include(x => x.Benutzer.Firma)
                        .Include(x => x.Buchung)
                        .Include(x => x.Buchung.Räume)
                        .Include(x => x.Buchung.Räume.Gebäude)
                        .Where(x => (x.Buchung.Datum == datum))
                        .ToList();
                }
            }
            catch (Exception ex)
            {
                log.Error("Exception in AlleStornierungenDatum", ex);
                if (ex.InnerException != null)
                    log.Error("Exception in AlleStornierungenDatum (inner)", ex.InnerException);
                throw;
            }

            return Stornobydate;
        }

        public static List<Buchung> AlleBuchungen()
        {
            List<Buchung> bookings = null;
            try
            {
                using (var context = new ITIN20LAPEntities())
                {

                    bookings = context.AlleBuchungen
                        .Include(x => x.Benutzer)
                        .Include(x => x.Benutzer.Firma)
                        .Include(x => x.AlleRechnungsDetails)
                        .Include(x => x.AlleStornierungen)
                        .Include(x => x.Räume)
                        .Include(x => x.Räume.Gebäude)
                        .ToList();
                }
            }
            catch (Exception ex)
            {
                log.Error("Exception in AlleStornierungenDatum", ex);
                if (ex.InnerException != null)
                    log.Error("Exception in AlleStornierungenDatum (inner)", ex.InnerException);
                throw;
            }

            return bookings;
        }

        /// <summary>
        /// Alle Buchungen in der Db
        /// </summary>
        /// <returns></returns>
        public static List<Buchung> AlleBuchungenDatum(DateTime datum)
        {
            List<Buchung> bookings = new List<Buchung>();

            try
            {
                using (var context = new ITIN20LAPEntities())
                {
                    context.AlleBuchungen
                        .Include(x => x.Benutzer)
                        .Include(x => x.Benutzer.Firma)
                        .Include(x => x.AlleRechnungsDetails)
                        .Include(x => x.AlleStornierungen)
                        .Include(x => x.Räume)
                        .Include(x => x.Räume.Gebäude)
                        .Where(x => x.Datum == datum)
                        .ToList();
                }
            }
            catch (Exception ex)
            {
                log.Error("Exception in AlleBuchungen", ex);
                if (ex.InnerException != null)
                    log.Error("Exception in AlleBuchungen (inner)", ex.InnerException);
                throw;
            }
            return bookings;

        }

        /// <summary>
        /// Alle Buchungen in der Db
        /// </summary>
        /// <returns></returns>
        public static List<Buchung> AlleBuchungenId(int id)
        {
            List<Buchung> bookings = new List<Buchung>();

            try
            {
                using (var context = new ITIN20LAPEntities())
                {
                    context.AlleBuchungen
                        .Include(x => x.Benutzer)
                        .Include(x => x.Benutzer.Firma)
                        .Include(x => x.AlleRechnungsDetails)
                        .Include(x => x.AlleStornierungen)
                        .Include(x => x.Räume)
                        .Include(x => x.Räume.Gebäude)
                        .Where(x => x.Raum_Id == id)
                        .ToList();
                }
            }
            catch (Exception ex)
            {
                log.Error("Exception in AlleBuchungenId", ex);
                if (ex.InnerException != null)
                    log.Error("Exception in AlleBuchungenId (inner)", ex.InnerException);
                throw;
            }
            return bookings;

        }

        /// <summary>
        /// Alle Buchungen in der Db
        /// </summary>
        /// <returns></returns>
        public static List<Buchung> AlleBuchungenUser(Benutzer user)
        {
            List<Buchung> bookings = null;

            try
            {
                using (var context = new ITIN20LAPEntities())
                {
                    bookings = context.AlleBuchungen
                        .Include(x => x.Benutzer)
                        .Include(x => x.Benutzer.Firma)
                        .Include(x => x.AlleRechnungsDetails)
                        .Include(x => x.AlleStornierungen)
                        .Include(x => x.Räume)
                        .Include(x => x.Räume.Gebäude)
                        .Where(x => x.Benutzer.Email == user.Email)
                        //.Where(x => x.Benutzer.Id == user.Id)

                        .ToList();
                }

            }
            catch (Exception ex)
            {
                log.Error("Exception in AlleBuchungenId", ex);
                if (ex.InnerException != null)
                    log.Error("Exception in AlleBuchungenId (inner)", ex.InnerException);
                throw;
            }
            return bookings;

        }

    }

}


text:
namespace Sarto.Extensions
{
	public static partial class ObjectExtensions
	{
		public static string ToLowerCaseString(this object @this)
		{
			if (@this == null)
				return string.Empty;

			return @this.ToString().ToLower();
		}
	}
}


text:
require "unified2/path"

#
# Unified2
#
module Unified2

  #
  # Paths
  #
  class Paths

    def initialize(paths, timestamp)
      @paths = []
      @read = []
      @watch = []

      paths.each do |p|
        path = Path.new(p)
        next unless path.valid?

        if timestamp
          next if path.timestamp.to_i < timestamp
        end

        @paths.push path
      end

      @all = @paths.dup

      @paths = @paths.sort! do |a,b|
        a.timestamp <=> b.timestamp
      end

      if @paths.length > 1
        @watch = @paths.pop
        @read = @paths
      else
        @watch = @paths.first
      end
    end

    def read
      return @read unless block_given?
      @read.each do |path|
        yield path
      end
    end

    def watch
      @watch
    end

    def all
      return @all unless block_given?
      @all.each do |path|
        yield path
      end
    end

  end # Class Paths End

end # Module Unified2 End


text:
package conf

import "github.com/arstd/log"

type conf struct {
	Name     string
	LogLevel string

	DB struct {
		Dialect  string
		Host     string
		Port     int
		Username string
		Password string
		DBName   string
		Params   string
	}
}

var Conf conf

func init() {
	Conf.LogLevel = "debug"

	Conf.DB.Dialect = "mysql"
	Conf.DB.Host = "127.0.0.1"
	Conf.DB.Port = 3306
	Conf.DB.Username = "test"
	Conf.DB.Password = "123456"
	Conf.DB.DBName = "test"
	Conf.DB.Params = "charset=utf8&parseTime=true&loc=Local"

	log.SetLevelString(Conf.LogLevel)
	// log.Json(Conf)
}


text:
<?php

namespace Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Entity\CareBillingBillItem
 *
 * InnoDB free: 4096 kB
 *
 * @ORM\Entity(repositoryClass="CareBillingBillItemRepository")
 * @ORM\Table(name="care_billing_bill_item", indexes={@ORM\Index(name="index_bill_item_patnum", columns={"bill_item_encounter_nr"}), @ORM\Index(name="index_bill_item_bill_no", columns={"bill_item_bill_no"})})
 */
class CareBillingBillItem
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $bill_item_id;

    /**
     * @ORM\Column(type="integer")
     */
    protected $bill_item_encounter_nr;

    /**
     * @ORM\Column(type="string", length=50, nullable=true)
     */
    protected $bill_item_code;

    /**
     * @ORM\Column(type="float", nullable=true)
     */
    protected $bill_item_unit_cost;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    protected $bill_item_units;

    /**
     * @ORM\Column(type="float", nullable=true)
     */
    protected $bill_item_amount;

    /**
     * @ORM\Column(type="datetime", nullable=true)
     */
    protected $bill_item_date;

    /**
     * @ORM\Column(type="integer")
     */
    protected $bill_item_refered_dr;

    /**
     * @ORM\Column(type="string", nullable=true)
     */
    protected $bill_item_status;

    /**
     * @ORM\Column(type="string", length=20)
     */
    protected $bill_item_bill_no;

    /**
     * @ORM\Column(type="integer")
     */
    protected $bill_id;

    public function __construct()
    {
    }

    /**
     * Set the value of bill_item_id.
     *
     * @param integer $bill_item_id
     * @return \Entity\CareBillingBillItem
     */
    public function setBillItemId($bill_item_id)
    {
        $this->bill_item_id = $bill_item_id;

        return $this;
    }

    /**
     * Get the value of bill_item_id.
     *
     * @return integer
     */
    public function getBillItemId()
    {
        return $this->bill_item_id;
    }

    /**
     * Set the value of bill_item_encounter_nr.
     *
     * @param integer $bill_item_encounter_nr
     * @return \Entity\CareBillingBillItem
     */
    public function setBillItemEncounterNr($bill_item_encounter_nr)
    {
        $this->bill_item_encounter_nr = $bill_item_encounter_nr;

        return $this;
    }

    /**
     * Get the value of bill_item_encounter_nr.
     *
     * @return integer
     */
    public function getBillItemEncounterNr()
    {
        return $this->bill_item_encounter_nr;
    }

    /**
     * Set the value of bill_item_code.
     *
     * @param string $bill_item_code
     * @return \Entity\CareBillingBillItem
     */
    public function setBillItemCode($bill_item_code)
    {
        $this->bill_item_code = $bill_item_code;

        return $this;
    }

    /**
     * Get the value of bill_item_code.
     *
     * @return string
     */
    public function getBillItemCode()
    {
        return $this->bill_item_code;
    }

    /**
     * Set the value of bill_item_unit_cost.
     *
     * @param float $bill_item_unit_cost
     * @return \Entity\CareBillingBillItem
     */
    public function setBillItemUnitCost($bill_item_unit_cost)
    {
        $this->bill_item_unit_cost = $bill_item_unit_cost;

        return $this;
    }

    /**
     * Get the value of bill_item_unit_cost.
     *
     * @return float
     */
    public function getBillItemUnitCost()
    {
        return $this->bill_item_unit_cost;
    }

    /**
     * Set the value of bill_item_units.
     *
     * @param integer $bill_item_units
     * @return \Entity\CareBillingBillItem
     */
    public function setBillItemUnits($bill_item_units)
    {
        $this->bill_item_units = $bill_item_units;

        return $this;
    }

    /**
     * Get the value of bill_item_units.
     *
     * @return integer
     */
    public function getBillItemUnits()
    {
        return $this->bill_item_units;
    }

    /**
     * Set the value of bill_item_amount.
     *
     * @param float $bill_item_amount
     * @return \Entity\CareBillingBillItem
     */
    public function setBillItemAmount($bill_item_amount)
    {
        $this->bill_item_amount = $bill_item_amount;

        return $this;
    }

    /**
     * Get the value of bill_item_amount.
     *
     * @return float
     */
    public function getBillItemAmount()
    {
        return $this->bill_item_amount;
    }

    /**
     * Set the value of bill_item_date.
     *
     * @param datetime $bill_item_date
     * @return \Entity\CareBillingBillItem
     */
    public function setBillItemDate($bill_item_date)
    {
        $this->bill_item_date = $bill_item_date;

        return $this;
    }

    /**
     * Get the value of bill_item_date.
     *
     * @return datetime
     */
    public function getBillItemDate()
    {
        return $this->bill_item_date;
    }

    /**
     * Set the value of bill_item_refered_dr.
     *
     * @param integer $bill_item_refered_dr
     * @return \Entity\CareBillingBillItem
     */
    public function setBillItemReferedDr($bill_item_refered_dr)
    {
        $this->bill_item_refered_dr = $bill_item_refered_dr;

        return $this;
    }

    /**
     * Get the value of bill_item_refered_dr.
     *
     * @return integer
     */
    public function getBillItemReferedDr()
    {
        return $this->bill_item_refered_dr;
    }

    /**
     * Set the value of bill_item_status.
     *
     * @param string $bill_item_status
     * @return \Entity\CareBillingBillItem
     */
    public function setBillItemStatus($bill_item_status)
    {
        $this->bill_item_status = $bill_item_status;

        return $this;
    }

    /**
     * Get the value of bill_item_status.
     *
     * @return string
     */
    public function getBillItemStatus()
    {
        return $this->bill_item_status;
    }

    /**
     * Set the value of bill_item_bill_no.
     *
     * @param string $bill_item_bill_no
     * @return \Entity\CareBillingBillItem
     */
    public function setBillItemBillNo($bill_item_bill_no)
    {
        $this->bill_item_bill_no = $bill_item_bill_no;

        return $this;
    }

    /**
     * Get the value of bill_item_bill_no.
     *
     * @return string
     */
    public function getBillItemBillNo()
    {
        return $this->bill_item_bill_no;
    }

    /**
     * Set the value of bill_id.
     *
     * @param integer $bill_id
     * @return \Entity\CareBillingBillItem
     */
    public function setBillId($bill_id)
    {
        $this->bill_id = $bill_id;

        return $this;
    }

    /**
     * Get the value of bill_id.
     *
     * @return integer
     */
    public function getBillId()
    {
        return $this->bill_id;
    }

    public function __sleep()
    {
        return array('bill_item_id', 'bill_item_encounter_nr', 'bill_item_code', 'bill_item_unit_cost', 'bill_item_units', 'bill_item_amount', 'bill_item_date', 'bill_item_refered_dr', 'bill_item_status', 'bill_item_bill_no', 'bill_id');
    }
}


text:
jQuery(document).ready(function() {
    var position;

    if (jQuery('.scroll-slider').length > 0) {
        jQuery(window).scroll(function() {
            var section_offset = jQuery('.scroll-slider').offset().top;
            var window_offset = (jQuery(window).scrollTop()) + 25;
            position = section_offset - window_offset;

        });
        jQuery('html').on('mousewheel', function(e) {
            scrollSlider();
        });
    }

    function scrollSlider() {
        var section_offset = jQuery('.scroll-slider').offset().top;
        var window_offset = (jQuery(window).scrollTop()) + 25;
        if ((section_offset < window_offset) && (jQuery('.scroll-slider').hasClass('screen-scroll')) && (position > -100)) {
            jQuery(window).scrollTop(((jQuery('.mask').offset().top) - 25).toFixed());
            jQuery('body').css({'overflow': 'hidden'});
            jQuery('.mask').addClass('fixed-mode');
            jQuery('.mask').delay(700).animate({scrollTop: '640px'}, {easing: 'swing', duration: 1000, complete:
                        function() {
                            jQuery('.mask').removeClass('fixed-mode');
                            jQuery('body').css({'overflow': 'scroll'});
                            jQuery('.scroll-slider').removeClass('screen-scroll').addClass('fixed');
                        }
            });
            if (jQuery('.scroll-slider').hasClass('fixed')) {
                return false;
            }
        } else if ((section_offset > window_offset) && (jQuery('.scroll-slider').hasClass('fixed'))) {
            jQuery(window).scrollTop(((jQuery('.mask').offset().top) - 25).toFixed(0));
            jQuery('body').css({'overflow': 'hidden'});
            jQuery('.mask').addClass('fixed-mode');
            jQuery('.mask').delay(700).animate({scrollTop: '-640px'}, {easing: 'swing', duration: 1000, complete:
                        function() {
                            jQuery('.mask').removeClass('fixed-mode');
                            jQuery('body').css({'overflow': 'scroll'});
                            jQuery('.scroll-slider').removeClass('fixed').addClass('screen-scroll');
                        }
            });
        }
    }
});


text:
package com.wiley.elements.conditions.window;

import com.wiley.elements.conditions.TeasyExpectedConditions;
import org.openqa.selenium.WebDriver;

import java.util.function.Function;

public class WindowByPartialUrl extends WindowFinder {

    public WindowByPartialUrl(String locatedBy) {
        super(locatedBy);
    }

    @Override
    public Function<WebDriver, String> findAndSwitch() {
        waitForChrome();
        return TeasyExpectedConditions.appearingOfWindowByPartialUrl(locatedBy());
    }
}


text:
extern LedInterface BlueLed;

#endif


text:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
    <context-param>
        <param-name>javax.faces.PROJECT_STAGE</param-name>
        <param-value>Development</param-value>
    </context-param>
    <context-param>
        <param-name>konfiguracija</param-name>
        <param-value>NWTiS.db.config_1.xml</param-value>
    </context-param>
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>
            120
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>faces/index.xhtml</welcome-file>
    </welcome-file-list>
</web-app>


text:
//
//  ========================================================================
//  Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd.
//  ------------------------------------------------------------------------
//  All rights reserved. This program and the accompanying materials
//  are made available under the terms of the Eclipse Public License v1.0
//  and Apache License v2.0 which accompanies this distribution.
//
//      The Eclipse Public License is available at
//      http://www.eclipse.org/legal/epl-v10.html
//
//      The Apache License v2.0 is available at
//      http://www.opensource.org/licenses/apache2.0.php
//
//  You may elect to redistribute this code under either of these licenses.
//  ========================================================================
//

package org.eclipse.jetty.util.log;

import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Method;
import java.net.URL;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Collection;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

import org.eclipse.jetty.util.IO;
import org.eclipse.jetty.util.Loader;

/**
 * Logging.
 * This class provides a static logging interface.  If an instance of the
 * org.slf4j.Logger class is found on the classpath, the static log methods
 * are directed to a slf4j logger for "org.eclipse.log".   Otherwise the logs
 * are directed to stderr.
 *

 * The "org.eclipse.jetty.util.log.class" system property can be used
 * to select a specific logging implementation.
 *

 * If the system property org.eclipse.jetty.util.log.IGNORED is set,
 * then ignored exceptions are logged in detail.
 *
 * @see StdErrLog
 * @see Slf4jLog
 */
public class Log
{
    public final static String EXCEPTION= "EXCEPTION ";
    public final static String IGNORED= "IGNORED ";

    /**
     * Logging Configuration Properties
     */
    protected static Properties __props;
    /**
     * The {@link Logger} implementation class name
     */
    public static String __logClass;
    /**
     * Legacy flag indicating if {@link Log#ignore(Throwable)} methods produce any output in the {@link Logger}s
     */
    public static boolean __ignored;

    /**
     * Hold loggers only.
     */
    private final static ConcurrentMap<String, Logger> __loggers = new ConcurrentHashMap<String, Logger>();

    static
    {
        /* Instantiate a default configuration properties (empty)
         */
        __props = new Properties();

        AccessController.doPrivileged(new PrivilegedAction<Object>()
        {
            public Object run()
            {
                /* First see if the jetty-logging.properties object exists in the classpath.
                 * This is an optional feature used by embedded mode use, and test cases to allow for early
                 * configuration of the Log class in situations where access to the System.properties are
                 * either too late or just impossible.
                 */
                URL testProps = Loader.getResource(Log.class,"jetty-logging.properties",true);
                if (testProps != null)
                {
                    InputStream in = null;
                    try
                    {
                        in = testProps.openStream();
                        __props.load(in);
                    }
                    catch (IOException e)
                    {
                        System.err.println("Unable to load " + testProps);
                        e.printStackTrace(System.err);
                    }
                    finally
                    {
                        IO.close(in);
                    }
                }

                /* Now load the System.properties as-is into the __props, these values will override
                 * any key conflicts in __props.
                 */
                @SuppressWarnings("unchecked")
                Enumeration<String> systemKeyEnum = (Enumeration<String>)System.getProperties().propertyNames();
                while (systemKeyEnum.hasMoreElements())
                {
                    String key = systemKeyEnum.nextElement();
                    String val = System.getProperty(key);
                    //protect against application code insertion of non-String values (returned as null)
                    if (val != null)
                        __props.setProperty(key,val);
                }

                /* Now use the configuration properties to configure the Log statics
                 */
                __logClass = __props.getProperty("org.eclipse.jetty.util.log.class","org.eclipse.jetty.util.log.Slf4jLog");
                __ignored = Boolean.parseBoolean(__props.getProperty("org.eclipse.jetty.util.log.IGNORED","false"));
                return null;
            }
        });
    }

    private static Logger LOG;
    private static boolean __initialized;

    public static boolean initialized()
    {
        if (LOG != null)
        {
            return true;
        }

        synchronized (Log.class)
        {
            if (__initialized)
            {
                return LOG != null;
            }
            __initialized = true;
        }

        try
        {
            Class<?> log_class = Loader.loadClass(Log.class, __logClass);
            if (LOG == null || !LOG.getClass().equals(log_class))
            {
                LOG = (Logger)log_class.newInstance();
                LOG.debug("Logging to {} via {}", LOG, log_class.getName());
            }
        }
        catch(Throwable e)
        {
            // Unable to load specified Logger implementation, default to standard logging.
            initStandardLogging(e);
        }

        return LOG != null;
    }

    private static void initStandardLogging(Throwable e)
    {
        Class<?> log_class;
        if(e != null && __ignored)
        {
            e.printStackTrace();
        }

        if (LOG == null)
        {
            log_class = StdErrLog.class;
            LOG = new StdErrLog();
            LOG.debug("Logging to {} via {}", LOG, log_class.getName());
        }
    }

    public static void setLog(Logger log)
    {
        Log.LOG = log;
    }

    /**
     * @deprecated anonymous logging is deprecated, use a named {@link Logger} obtained from {@link #getLogger(String)}
     */
    @Deprecated
    public static Logger getLog()
    {
        initialized();
        return LOG;
    }

    /**
     * Get the root logger.
     * @return the root logger
     */
    public static Logger getRootLogger() {
        initialized();
        return LOG;
    }

    static boolean isIgnored()
    {
        return __ignored;
    }

    /**
     * Set Log to parent Logger.
     *

     * If there is a different Log class available from a parent classloader,
     * call {@link #getLogger(String)} on it and construct a {@link LoggerLog} instance
     * as this Log's Logger, so that logging is delegated to the parent Log.
     *

     * This should be used if a webapp is using Log, but wishes the logging to be
     * directed to the containers log.
     *

     * If there is not parent Log, then this call is equivalent to

     *   Log.setLog(Log.getLogger(name));
     *

     * @param name Logger name
     */
    public static void setLogToParent(String name)
    {
        ClassLoader loader = Log.class.getClassLoader();
        if (loader!=null && loader.getParent()!=null)
        {
            try
            {
                Class<?> uberlog = loader.getParent().loadClass("org.eclipse.jetty.util.log.Log");
                Method getLogger = uberlog.getMethod("getLogger", new Class[]{String.class});
                Object logger = getLogger.invoke(null,name);
                setLog(new LoggerLog(logger));
            }
            catch (Exception e)
            {
                e.printStackTrace();
            }
        }
        else
        {
            setLog(getLogger(name));
        }
    }

    /**
     * @deprecated anonymous logging is deprecated, use a named {@link Logger} obtained from {@link #getLogger(String)}
     */
    @Deprecated
    public static void debug(Throwable th)
    {
        if (!isDebugEnabled())
            return;
        LOG.debug(EXCEPTION, th);
    }

    /**
     * @deprecated anonymous logging is deprecated, use a named {@link Logger} obtained from {@link #getLogger(String)}
     */
    @Deprecated
    public static void debug(String msg)
    {
        if (!initialized())
            return;
        LOG.debug(msg);
    }

    /**
     * @deprecated anonymous logging is deprecated, use a named {@link Logger} obtained from {@link #getLogger(String)}
     */
    @Deprecated
    public static void debug(String msg, Object arg)
    {
        if (!initialized())
            return;
        LOG.debug(msg, arg);
    }

    /**
     * @deprecated anonymous logging is deprecated, use a named {@link Logger} obtained from {@link #getLogger(String)}
     */
    @Deprecated
    public static void debug(String msg, Object arg0, Object arg1)
    {
        if (!initialized())
            return;
        LOG.debug(msg, arg0, arg1);
    }

    /**
     * Ignore an exception unless trace is enabled.
     * This works around the problem that log4j does not support the trace level.
     * @param thrown the Throwable to ignore
     */
    /**
     * @deprecated anonymous logging is deprecated, use a named {@link Logger} obtained from {@link #getLogger(String)}
     */
    @Deprecated
    public static void ignore(Throwable thrown)
    {
        if (!initialized())
            return;
        LOG.ignore(thrown);
    }

    /**
     * @deprecated anonymous logging is deprecated, use a named {@link Logger} obtained from {@link #getLogger(String)}
     */
    @Deprecated
    public static void info(String msg)
    {
        if (!initialized())
            return;
        LOG.info(msg);
    }

    /**
     * @deprecated anonymous logging is deprecated, use a named {@link Logger} obtained from {@link #getLogger(String)}
     */
    @Deprecated
    public static void info(String msg, Object arg)
    {
        if (!initialized())
            return;
        LOG.info(msg, arg);
    }

    /**
     * @deprecated anonymous logging is deprecated, use a named {@link Logger} obtained from {@link #getLogger(String)}
     */
    @Deprecated
    public static void info(String msg, Object arg0, Object arg1)
    {
        if (!initialized())
            return;
        LOG.info(msg, arg0, arg1);
    }

    /**
     * @deprecated anonymous logging is deprecated, use a named {@link Logger} obtained from {@link #getLogger(String)}
     */
    @Deprecated
    public static boolean isDebugEnabled()
    {
        if (!initialized())
            return false;
        return LOG.isDebugEnabled();
    }

    /**
     * @deprecated anonymous logging is deprecated, use a named {@link Logger} obtained from {@link #getLogger(String)}
     */
    @Deprecated
    public static void warn(String msg)
    {
        if (!initialized())
            return;
        LOG.warn(msg);
    }

    /**
     * @deprecated anonymous logging is deprecated, use a named {@link Logger} obtained from {@link #getLogger(String)}
     */
    @Deprecated
    public static void warn(String msg, Object arg)
    {
        if (!initialized())
            return;
        LOG.warn(msg, arg);
    }

    /**
     * @deprecated anonymous logging is deprecated, use a named {@link Logger} obtained from {@link #getLogger(String)}
     */
    @Deprecated
    public static void warn(String msg, Object arg0, Object arg1)
    {
        if (!initialized())
            return;
        LOG.warn(msg, arg0, arg1);
    }

    /**
     * @deprecated anonymous logging is deprecated, use a named {@link Logger} obtained from {@link #getLogger(String)}
     */
    @Deprecated
    public static void warn(String msg, Throwable th)
    {
        if (!initialized())
            return;
        LOG.warn(msg, th);
    }

    /**
     * @deprecated anonymous logging is deprecated, use a named {@link Logger} obtained from {@link #getLogger(String)}
     */
    @Deprecated
    public static void warn(Throwable th)
    {
        if (!initialized())
            return;
        LOG.warn(EXCEPTION, th);
    }

    /**
     * Obtain a named Logger based on the fully qualified class name.
     *
     * @param clazz
     *            the class to base the Logger name off of
     * @return the Logger with the given name
     */
    public static Logger getLogger(Class<?> clazz)
    {
        return getLogger(clazz.getName());
    }

    /**
     * Obtain a named Logger or the default Logger if null is passed.
     * @param name the Logger name
     * @return the Logger with the given name
     */
    public static Logger getLogger(String name)
    {
        if (!initialized())
            return null;

        if(name==null)
            return LOG;

        Logger logger = __loggers.get(name);
        if(logger==null)
            logger = LOG.getLogger(name);

        return logger;
    }

    static ConcurrentMap<String, Logger> getMutableLoggers()
    {
        return __loggers;
    }

    /**
     * Get a map of all configured {@link Logger} instances.
     *
     * @return a map of all configured {@link Logger} instances
     */
    public static Map<String, Logger> getLoggers()
    {
        return Collections.unmodifiableMap(__loggers);
    }
}


text:
'use strict';
const bot = require('./../../index.js');
const log = require('./../../logger.js');

bot.registerCommand('userinfo', (msg, args) => {
    if (args.length === 0) {
        let response = `**${msg.author.username}**, \`\`\`xl\n` +
            `ID: ${msg.author.id.toLowerCase()}\n` +
            `USERNAME: ${msg.author.username.toLowerCase()}\n` +
            `DISCRIM: ${msg.author.discriminator}\n` +
            `CREATED AT: ${new Date(msg.author.createdAt)}\n` +
            `STATUS: ${msg.member.status.toLowerCase()}\n` +
            `----GUILD SPECIFIC INFO----\n` +
            `JOINED AT: ${new Date(msg.member.joinedAt)}\n`;
        let nick = msg.member.nick;
        if (nick) response += `NICKNAME: ${nick.toLowerCase()}\n`;
        let roleIDs = msg.member.roles;
        let roles = msg.channel.guild.roles.filter(r => roleIDs.indexOf(r.id) > -1);
        if (roles.length > 0) response += `ROLES: ${roles.map(r => r.name).join(' ').toLowerCase()}`;
        response += `\`\`\``;
        if (msg.author.avatar != null) response += `AVATAR: ${msg.author.avatarURL}\n`;
        bot.createMessage(msg.channel.id, response).catch(error => log.errC(error));
    } else {
        if (msg.mentions.length > 0) return `**${msg.author.username}**, please don't mention somebody to get their info, pass their username and discrim instead; like so: username#1234.`;
        let match = /#\d{4}/.exec(args.join(' '));
        if (!match) return `**${msg.author.username}**, invalid input. Pass a username and discriminator.`;
        let name = args.join(' ').substring(0, match.index);
        let discrim = args.join(' ').substring(match.index + 1, args.join(' ').length);
        let member = msg.channel.guild.members.find(m => m.user.username === name && m.user.discriminator === discrim);
        if (!member) return `**${msg.author.username}**, couldn't find such a user. e.g. username#1234`;
        let user = member.user;
        let response = `**${msg.author.username}**, \`\`\`xl\n` +
            `ID: ${user.id.toLowerCase()}\n` +
            `USERNAME: ${user.username.toLowerCase()}\n` +
            `DISCRIM: ${user.discriminator}\n` +
            `CREATED AT: ${new Date(user.createdAt)}\n` +
            `STATUS: ${msg.channel.guild.members.get(msg.author.id).status.toLowerCase()}\n` +
            `----GUILD SPECIFIC INFO----\n` +
            `JOINED AT: ${new Date(member.joinedAt)}\n`;
        let nick = member.nick;
        if (nick) response += `NICKNAME: ${nick.toLowerCase()}\n`;
        let roleIDs = member.roles;
        let roles = msg.channel.guild.roles.filter(r => roleIDs.indexOf(r.id) > -1);
        if (roles.length > 0) response += `ROLES: ${roles.map(r => r.name).join(' ').toLowerCase()}`;
        response += `\`\`\``;
        if (user.avatar != null) response += `AVATAR: ${user.avatarURL}\n`;
        bot.createMessage(msg.channel.id, response).catch(error => log.errC(error));
    }
}, {
    aliases: ['user-info', 'u-info'],
    caseInsensitive: true,
    deleteCommand: true,
    description: 'info on a user.',
    fullDescription: 'get various pieces of information about yourself or another user.',
    guildOnly: true,
    usage: '<username and discriminator of user> --optional, omit if viewing info of self',
    cooldown: 5000
});


text:
@interface TablePageViewController ()

@end

@implementation TablePageViewController
@synthesize ascending, descending, notSorted;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {

        labels = [self makeLabels];
    }
    return self;
}

-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [ascending setAccessibilityLabel:@"ascending"];
    [descending setAccessibilityLabel:@"descending"];
    [notSorted setAccessibilityLabel:@"notSorted"];
}

-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return [labels count];
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{

    UITableViewCell *cell = nil;

    if ([[tableView accessibilityLabel] isEqualToString:[ascending accessibilityLabel]]) {
        cell = [tableView dequeueReusableCellWithIdentifier:@"Ascending"];
        if (!cell) {
            cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Ascending"];
        }
        UILabel *text = [labels objectAtIndex:[indexPath row]];
        [[cell textLabel] setText:[text text]];
    } else if ([[tableView accessibilityLabel] isEqualToString:[descending accessibilityLabel]])  {
        cell = [tableView dequeueReusableCellWithIdentifier:@"Descending"];
        if (!cell) {
            cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Descending"];
        }

        UILabel *text = [labels objectAtIndex:([labels count] - 1) - [indexPath row]];
        [[cell textLabel] setText:[text text]];
    } else {
        cell = [tableView dequeueReusableCellWithIdentifier:@"Unsorted"];
        if (!cell) {
            cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Unsorted"];
        }

        if ([indexPath row] % 2 == 0) {
            [[cell textLabel] setText:@"x"];
        } else {
            [[cell textLabel] setText:@"j"];
        }

    }

    return cell;
}

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    UILabel *label = [labels objectAtIndex:[indexPath row]];
    NSLog(@"Index Path row %d", [indexPath row]);
    NSLog(@"Label text is: %@", [label text]);
    if ([[label text] isEqualToString:@"a"]) {
        LabelAPageViewController *labelAPageViewController = [[LabelAPageViewController alloc] init];
        [[self navigationController] pushViewController:labelAPageViewController animated:YES];
    }
}

-(NSArray *) makeLabels
{

    UILabel *one = [[UILabel alloc] init];
    [one setText:@"1"];
    UILabel *two = [[UILabel alloc] init];
    [two setText:@"2"];
    UILabel *three = [[UILabel alloc] init];
    [three setText:@"3"];

    UILabel *a = [[UILabel alloc] init];
    [a setText:@"a"];
    UILabel *b = [[UILabel alloc] init];
    [b setText:@"b"];
    UILabel *c = [[UILabel alloc] init];
    [c setText:@"c"];
    UILabel *d = [[UILabel alloc] init];
    [d setText:@"d"];
    UILabel *e = [[UILabel alloc] init];
    [e setText:@"e"];

    NSMutableArray *tableLabels = [[NSMutableArray alloc] init];
    [tableLabels addObject:one];
    [tableLabels addObject:two];
    [tableLabels addObject:three];
    [tableLabels addObject:a];
    [tableLabels addObject:b];
    [tableLabels addObject:c];
    [tableLabels addObject:d];
    [tableLabels addObject:e];

    return tableLabels;

}

- (IBAction)toButtonTables:(id)sender {
}
@end


text:
package com.thoughtworks.go.server.service;

import com.thoughtworks.go.config.CaseInsensitiveString;
import com.thoughtworks.go.server.domain.user.Filters;
import com.thoughtworks.go.server.domain.user.PipelineSelections;
import com.thoughtworks.go.server.persistence.PipelineRepository;
import com.thoughtworks.go.util.Clock;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PipelineSelectionsService {
    private final Clock clock;
    private final PipelineRepository pipelineRepository;
    private final GoConfigService goConfigService;

    @Autowired
    public PipelineSelectionsService(PipelineRepository pipelineRepository, GoConfigService goConfigService, Clock clock) {
        this.pipelineRepository = pipelineRepository;
        this.goConfigService = goConfigService;
        this.clock = clock;
    }

    public PipelineSelections load(String id, Long userId) {
        PipelineSelections pipelineSelections = loadByIdOrUserId(id, userId);

        if (pipelineSelections == null) {
            pipelineSelections = PipelineSelections.ALL;
        }

        return pipelineSelections;
    }

    public long save(String id, Long userId, Filters filters) {

        PipelineSelections pipelineSelections = findOrCreateCurrentPipelineSelectionsFor(id, userId);
        pipelineSelections.update(filters, clock.currentTime(), userId);

        return pipelineRepository.saveSelectedPipelines(pipelineSelections);
    }

    public void update(String id, Long userId, CaseInsensitiveString pipelineToAdd) {
        PipelineSelections currentSelections = findOrCreateCurrentPipelineSelectionsFor(id, userId);

        if (currentSelections.ensurePipelineVisible(pipelineToAdd)) {
            pipelineRepository.saveSelectedPipelines(currentSelections);
        }
    }

    private PipelineSelections findOrCreateCurrentPipelineSelectionsFor(String id, Long userId) {
        PipelineSelections pipelineSelections = loadByIdOrUserId(id, userId);

        if (pipelineSelections == null) {
            return new PipelineSelections(Filters.defaults(), clock.currentTime(), userId);
        }

        return pipelineSelections;
    }

    private PipelineSelections loadByIdOrUserId(String id, Long userId) {
        return goConfigService.isSecurityEnabled() ? pipelineRepository.findPipelineSelectionsByUserId(userId) : pipelineRepository.findPipelineSelectionsById(id);
    }
}


text:
/*
 * rt_atan2_snf.h
 *
 * Real-Time Workshop code generation for Simulink model "TemplateNIPID.mdl".
 *
 * Model Version              : 1.113
 * Real-Time Workshop version : 7.3  (R2009a)  15-Jan-2009
 * C source code generated on : Sun Mar 30 14:35:28 2014
 *
 * Target selection: nidll.tlc
 *   Note: GRT includes extra infrastructure and instrumentation for prototyping
 * Embedded hardware selection: 32-bit Generic
 * Code generation objectives: Unspecified
 * Validation result: Not run
 */

#ifndef RTW_HEADER_rt_atan2_snf_h_
#define RTW_HEADER_rt_atan2_snf_h_
#include "rtwtypes.h"

extern real_T rt_atan2_snf(real_T a, real_T b);

#endif                                 /* RTW_HEADER_rt_atan2_snf_h_ */


text: Simple Calculator created with Bootstrap 3 and php session variable and function use


text:
var Ventana=function(funcionCancelar,funcionAceptar,objetoPadre){
	this.cargarObjetos();
	this.funcionCancelar=funcionCancelar;
	this.funcionAceptar=funcionAceptar;
	this.objetoPadre=objetoPadre;
	this.cargarEventos();
}

//El contenido central es un objeto div con todo el contenido.
Ventana.prototype.cargarContenidoCentral=function(divContenidoCentral){
	this.divVentanaCentro.html("");
	this.divVentanaCentro.html(divContenidoCentral);

	this.divVentanaBotones.html("");
	//Cargar los botoncitos.
	this.botonAceptar=$("<div>");
	this.botonAceptar.addClass("ventanaBotonAceptar");
	this.botonAceptar.attr({"data-toggle":"tooltip","title":"Aceptar"});
	this.divVentanaBotones.append(this.botonAceptar);

	this.botonCancelar=$("<div>");
	this.botonCancelar.addClass("ventanaBotonCancelar");
	this.botonCancelar.attr({"data-toggle":"tooltip","title":"Cancelar"});
	this.divVentanaBotones.append(this.botonCancelar);

	this.botonCerrar.off("click");
	this.botonCerrar.on("click",{funcionLlamar:this.funcionCancelar},$.proxy(this.eventoOcultar,this));
	this.botonCancelar.off("click");
	this.botonCancelar.on("click",{funcionLlamar:this.funcionCancelar},$.proxy(this.eventoOcultar,this));
	this.botonAceptar.off("click");
	this.botonAceptar.on("click",{funcionLlamar:this.funcionAceptar},$.proxy(this.eventoOcultar,this));

}

Ventana.prototype.cargarObjetos=function(){
	this.divVentanaFondo=$("#divVentanaFondo");
	this.divVentanaCentro=$("#divVentanaCentro");
	this.divVentanaTextoTitulo=$("#divVentanaTextoTitulo");
	this.divVentanaPrincipal=$("#divVentanaPrincipal");
	this.botonCerrar=$("#ventanaBotonCerrar");
	this.divVentanaBotones=$("#divVentanaBotones");
}

Ventana.prototype.cargarEventos=function(){
}

Ventana.prototype.eventoOcultar=function(event){
	if(event.data.funcionLlamar==null){
		this.ocultar();
	}
	else	//Enviar la referencia al objeto que creo esta ventana.
		event.data.funcionLlamar(this.objetoPadre);  //Esta función se encargará de ocultar la ventana.
}
Ventana.prototype.ocultar=function(){
	this.divVentanaFondo.css("display","none");
}

Ventana.prototype.mostrar=function(titulo){
	this.divVentanaTextoTitulo.html(titulo);
	this.divVentanaFondo.css("display","block");
}

Ventana.prototype.establecerDimensiones=function(ancho,alto){
	this.divVentanaPrincipal.css({"width":ancho,"height":alto});
}


text:
* [#54](https://github.com/Blackjacx/SHSearchBar/pull/54): Swift 5.3 & swift package manager - [@Blackjacx](https://github.com/Blackjacx).
* [#50](https://github.com/Blackjacx/SHSearchBar/pull/50): Update readme badges - [@blackjacx](https://github.com/blackjacx).

## [1.7.0] - 2019-05-05
* [#49](https://github.com/Blackjacx/SHSearchBar/pull/49): Swift 5 Compatibility - [@blackjacx](https://github.com/blackjacx).

## [1.6.0] - 2018-12-18
* [#47](https://github.com/Blackjacx/SHSearchBar/pull/47): Carthage Support - [@blackjacx](https://github.com/blackjacx).
* [#46](https://github.com/Blackjacx/SHSearchBar/pull/46): Extending Example App - [@blackjacx](https://github.com/blackjacx).
* Add AUTHORS file - [@blackjacx](https://github.com/blackjacx).

## [1.5.0] - 2018-09-25
* [#41](https://github.com/Blackjacx/SHSearchBar/pull/41): Swift 4.2 - [@blackjacx](https://github.com/blackjacx).

## [1.4.3] - 2018-07-12
* [#39](https://github.com/Blackjacx/SHSearchBar/pull/39): Make localized extension internal - [@blackjacx](https://github.com/blackjacx).

## [1.4.2] - 2018-07-12
* [#38](https://github.com/Blackjacx/SHSearchBar/pull/38): Make String Extension `localized` Internal To Avoid Naming Conflicts - [@blackjacx](https://github.com/blackjacx).

## [1.4.1] - 2018-02-16
* [#33](https://github.com/Blackjacx/SHSearchBar/pull/33): Fix Pod Try To Quick Try Pod Example - [@blackjacx](https://github.com/blackjacx).
* Add example for search bar in UINavigationBar - [@blackjacx](https://github.com/blackjacx).

## [1.4.0] - 2017-11-22
### Changed
* [#31](https://github.com/Blackjacx/SHSearchBar/pull/31): Refactor Text Did Change Delegation - [@blackjacx](https://github.com/blackjacx).

### Fixed
* [#29](https://github.com/Blackjacx/SHSearchBar/pull/29): Italian localization - [@CeceXX](https://github.com/CeceXX).

## [1.3.0] - 2017-10-26
### Changed
* [#28](https://github.com/Blackjacx/SHSearchBar/pull/28): Make it possible to avoid internal cancel button - [@blackjacx](https://github.com/blackjacx).

## [1.2.1] - 2017-10-16
### Changed
* Update podspec by removing non-source from sources - [@blackjacx](https://github.com/blackjacx).

## [1.2.0] - 2017-09-29
### Added
* [#15](https://github.com/Blackjacx/SHSearchBar/pull/15): Translations for DE EN ES FR IT JA ZHHANS and RU - [@blackjacx](https://github.com/blackjacx).
* First responder handling by forwarding related calls directly to the textfield - [@blackjacx](https://github.com/blackjacx).

### Changed
* [#26](https://github.com/Blackjacx/SHSearchBar/pull/26): Conversion to Swift 4 - [@blackjacx](https://github.com/blackjacx).
* [#2](https://github.com/Blackjacx/SHSearchBar/pull/2): Improves code documentation - [@blackjacx](https://github.com/blackjacx).
* [#14](https://github.com/Blackjacx/SHSearchBar/pull/14): Adopts swift 3 naming conventions - [@blackjacx](https://github.com/blackjacx).
* Replaces non-swifty implementation of optional SHSearchBarDelegate methods by a default implementation of each method on a protocol extension - [@blackjacx](https://github.com/blackjacx).
* Resigns and resets the textField per default when pressing cancel button - [@blackjacx](https://github.com/blackjacx).
* Left and right view is now property of the config object - [@blackjacx](https://github.com/blackjacx).
* Replaces textColor and textBackgroundColor with textAttributes in config - [@blackjacx](https://github.com/blackjacx).

### Fixed
* Cancellation in the example project - [@blackjacx](https://github.com/blackjacx).
* [#6](https://github.com/Blackjacx/SHSearchBar/pull/6): Resolves but did not fix SPM support - [@blackjacx](https://github.com/blackjacx).

### Removed
* Boxed type from specs since Swift3 uses Any for dictionary values that includes structs - [@blackjacx](https://github.com/blackjacx).