OpenLLM-France/wikimedia huggingface dataset:
# Open Source Church/Install

To install ChurchCRM on your PC, proceed as follows:
1) Install Veracrypt and Tor Browser, as ChurchCRM stores sensitive data for which it is necessary to encrypt them and use a browser that guarantees anonymity and prevents unwanted transmission of data (possibly contact an IT security expert). .. 2) Download XAMPP from here: https://www.apachefriends.org/download.html and install it for example in the Documents folder, while on Ubuntu it will install in the /opt folder after making the file executable and run it from terminal with sudo ./xampp-linux-x64-7.4.33-0-installer.run
3) Start XAMPP on Windows by clicking on xampp-control in its installation folder and pressing the Start buttons for Apache and MySql, while on Ubuntu type in the terminal: sudo /opt/lampp/lampp start
4) Modify the php.ini file which on Windows is located in the XAMPP php folder, while on Ubuntu it is located in the /opt/lampp/etc folder. Inside this file, find the `post_max_size` and `upload_max_filesize` variables and change them like this: post_max_size=128M and upload_max_filesize=128M.
5) Connect with phpmyadmin by typing in the browser http://localhost/phpmyadmin and click on User Accounts, select the root@localhost user and click on Change Password, entering a password for the root user that we suppose may be my_password . Edit the config.inc.php file inside the XAMPP phpmyadmin folder, inserting the root user password like this: $cfg['Servers'][$i]['password'] = 'my_password'; . Open phpmyadmin again from your browser and see if everything works, creating a new MySQL database after selecting New
6) Download the latest version of ChurchCRM from here : https://github.com/ChurchCRM/CRM/releases/latest and unzip the ChurchCRM.zip file in XAMPP htdocs folder
7) Modify ChurchCRM file and folder permissions on files in 644 mode (rw-r--r--) and on folders in 755 mode (rwxr-xr-x) (operation to be done only on Ubuntu, while on Windows it is not necessary).
8) Restart XAMPP again from xampp-control
9) Install ChurchCRM typing in the browser http://localhost/churchcrm and inserting as user: root with the previously created password and name of the previously created Mysql database.
10) Start ChurchCRM by typing in the browser http://localhost/churchcrm with username: admin and password: changeme to be changed immediately.
# Open Source Church/Introduction

This book will illustrate open source software, downloadable from Github, useful for managing a church or parish. In particular, the functions of the ChurchCRM program will be analysed. ChurchCRM is released under the MIT license and installable both in a web hosting equipped with apache, php, mysql, phpmyadmin or simply on your PC as a standalone application via XAMPP.
ChurchCRM allows you to record data of people, families and groups who attend the parish and for each of these categories to establish properties, roles and classifications. For example for persons the roles could be head of household, wife, child etc., classifications could be member, visitor, guest etc., while properties could be disabled (specifying the type of disability), needs (financial, loneliness, need for assistance, etc.) and resources (bricklayer, lawyer, engineer, etc.).
For families, by creating one, its members can be entered immediately as people and as properties, for example single parent, single mother, etc.
You can then create all the groups that you want, for example Singers of the Mass, Parish choir, elderly group, Caritas Listening Center, Caritas Food Bank, Hospitality in Church, Musicians, Volunteers - visits to the sick, Scouts etc. People can be placed in multiple groups or moved from one group to another. The properties of a group could be youth, senior etc.
As regards data and reports it is possible to make queries of any type in order to search, for example, for disabled people, with economic needs, who have some resources, who are head of household, spouses, members, visitors, etc. and send emails to selected people. Other features are deposit management, fundraising and event creation...
# Muggles' Guide to Harry Potter/Books/Deathly Hallows

← Half-Blood Prince |

## Chapters

    Chapter 1: The Dark Lord Ascending
    Chapter 2: In Memoriam
    Chapter 3: The Dursleys Departing
    Chapter 4: The Seven Potters
    Chapter 5: Fallen Warrior
    Chapter 6: The Ghoul in Pyjamas
    Chapter 7: The Will of Albus Dumbledore
    Chapter 8: The Wedding
    Chapter 9: A Place to Hide
    Chapter 10: Kreacher's Tale
    Chapter 11: The Bribe
    Chapter 12: Magic is Might
    Chapter 13: The Muggle-Born Registration Commission
    Chapter 14: The Thief
    Chapter 15: The Goblin's Revenge
    Chapter 16: Godric's Hollow
    Chapter 17: Bathilda's Secret
    Chapter 18: The Life and Lies of Albus Dumbledore
    Chapter 19: The Silver Doe
    Chapter 20: Xenophilius Lovegood
    Chapter 21: The Tale of the Three Brothers
    Chapter 22: The Deathly Hallows
    Chapter 23: Malfoy Manor
    Chapter 24: The Wandmaker
    Chapter 25: Shell Cottage
    Chapter 26: Gringotts
    Chapter 27: The Final Hiding Place
    Chapter 28: The Missing Mirror
    Chapter 29: The Lost Diadem
    Chapter 30: The Sacking of Severus Snape
    Chapter 31: The Battle of Hogwarts
    Chapter 32: The Elder Wand
    Chapter 33: The Prince's Tale
    Chapter 34: The Forest Again
    Chapter 35: King's Cross
    Chapter 36: The Flaw in the Plan
    Epilogue: Nineteen Years Later

## Overview

Once again we join Harry Potter as he enters what would be his seventh year at Hogwarts. The book is written from the point-of-view of the now 17-year-old Harry as he prepares to complete the mission set for him by Dumbledore at the end of the previous year. Arguably the darkest book in the series, this volume shows Lord Voldemort tightening his grip on the Wizarding world as he remolds it into his own pure-blood design.Throughout the Harry Potter movies, the number seven is constantly utilized as a magical number. This is how many Horcruxes Lord Voldemort creates, it's the number on Potter's Quidditch shirt when he's captain, and is the number of locks on Mad-Eye's trunk, for example.
While the series progressively covers seven years in Harry Potter's life, the first five volumes are largely self-contained stories. Unlike them, this book is written more as the second half to a two-part novel, and is tightly tied to the previous book, Harry Potter and the Half-Blood Prince.
Note: While this book is among the longer ones in the series, at 607 pages (Bloomsbury / Raincoast edition), it is also set in somewhat larger type. If it were the same size type as Harry Potter and the Philosopher's Stone, it would be 520 pages (approximately) to 223 for Harry Potter and the Philosopher's Stone.

## Book Highlights

* New places visited: Godric's Hollow, Malfoy Manor, Shell Cottage, Lovegood home (on a hill)
* Defence Against the Dark Arts teacher: Amycus Carrow
* Headmaster: Severus Snape
* Title refers to: the Deathly Hallows

## Extended Analysis

* Overall Analysis
* Character Development
* Major Themes
* Real-World Connections
# Perl Programming/Keywords/getservbyname
## The getservbyname keyword

The getservbyname function gets the service record given its NAME and PROTOCOL.
# Perl Programming/Keywords/getprotobyname
## The getprotobyname keyword

The getprotobyname function gets the protocol record given its NAME.
# Perl Programming/Keywords/getpwent
## The getpwent keyword

The getpwent function gets the next passwd record.
# Perl Programming/Keywords/getservent
## The getservent keyword

The getservent function returns the next service's record.
# Perl Programming/Keywords/getprotoent
## The getprotoent keyword

The getprotoent function gets the next protocol record.
# Perl Programming/Keywords/getpwnam
## The getpwnam keyword

The getpwnam function gets the next passwd record given the users login NAME.
# Perl Programming/Keywords/getpwuid
## The getpwuid keyword

The getpwuid function gets the next passwd record given the users identifier UID.
# Perl Programming/Keywords/getservbyport
## The getservbyport keyword

The getservbyport function gets the service record given its numeric PORT and PROTOCOL.
# Perl Programming/Keywords/getprotobynumber
## The getprotobynumber keyword

The getprotobynumber function gets the protocol record given its NUMBER.
# Perl Programming/Keywords/getsockname
## The getsockname keyword

The getsockname function returns the sockaddr (socket address) for a given socket NAME and PROTOCOL.
# Perl Programming/TOC

< Perl Programming

## Beginning Perl; Table of Contents

* Chapter 1: Getting Started
** Getting Perl
** Useful Skills
** Layout of this Book
*** Definitions
*** Try-it Boxes
*** Notes
** Writing Programs
*** A Sample Program
*** Integrated Development Environments (IDEs)
** Running Programs
*** Windows
*** Unix-like Systems
* Chapter 2: Your First Program
* Chapter 3: Strings
** Introduction to Strings
*** Comments
*** Double Quoted Strings
*** Single Quoted Strings
** String Operators
*** The . Operator
*** The x Operator
** Exercises
* Chapter 4: Numbers
** Floating Point Numbers
** Integers
** Non-decimal Numbers
** Number Operators
*** The +, - , /, and * Operators
*** The ** Operator
** Exercises
* Chapter 5: Scalar Variables
** Introduction to Scalar Variables
** Assigning and Using Scalar Variables
*** Naming Conventions
*** Assinging a Scalar Variable
*** Scalar Variables
**** Scalar Variables and Strings
** Comparison Operators
*** Numeric Comparison Operators
*** String Comparison Operators
** Exercises
# Perl Programming/Useful modules

See search.cpan.org
Also, try subscribing to the use.perl.org mailing list, which sends out daily summaries of new modules as they're added to CPAN.
# Perl Programming/Simple examples 2

Hi-Lo: A simple game written in perl that asks you for a guess between 1 and 100 and tells you if you are too high or low.
# Perl Programming/Simple examples 1

This script counts the number of occurences of each letter in a file:
If you executed this program on a file containing the sentence "The quick, brown fox jumps over the lazy dog.", you would see this as output:
I have added a bit to this code to enable the user to create a report of the data if they wish:
# Perl Programming/Regular expressions

Regular expressions are tools for complex searching of text, considered one of the most powerful aspects of the Perl language. A regular expression can be as simple as just the text you want to find, or it can include wildcards, logic, and even sub-programs.
To use regular expressions in perl, use the =~ operator to bind a variable containing your text to the regular expression:
This returns 1, if "needle" is contained within $HayStack, or 0 otherwise.
Regular expression can also be used to modify strings. You can search and replace complex patterns by using the regex format s///
($msg is now "perl is awesome")
# Muggles' Guide to Harry Potter/Characters/Kendra Dumbledore
## Overview

Kendra Dumbledore was the mother of Albus, Aberforth, and Ariana Dumbledore, and wife of Percival Dumbledore.

## Role in the Books
### Deathly Hallows

Kendra Dumbledore, Albus Dumbledore's mother, is mentioned in Albus' obituary written by Elphias Doge. She had died suddenly as Albus was preparing for a Grand Tour around the world following his graduation from Hogwarts.
In Rita Skeeter's scurrilous tell-all book, Kendra is described as having been extremely private, rebuffing her neighbours' offers of friendship following the Dumbledore clan's move to Godric's Hollow. Kendra was rumored to be hiding a shameful family secret: that her daughter, Ariana, was a Squib. Ron's Auntie Muriel later confirms the rumors existed, though they were unproven.
Harry learns later from Albus' brother, Aberforth, that Ariana was beaten by Muggles and suffered permanent brain damage. Their father, Percival, physically retaliated against the three boys, then was convicted and sentenced to Azkaban prison, where he later died. Kendra relocated the family to Godric's Hollow to escape the notoriety. Ariana never fully recovered from the attack, and had uncontrollable magical outbursts. Kendra kept her hidden to protect the neighbours and to prevent Ariana from being forcefully committed to St. Mungo's. Ariana may have killed Kendra during an uncontrolled fit.

## Questions

Study questions are meant to be left for each student to answer; please don't answer them here.
# Muggles' Guide to Harry Potter/Characters/Kevin Whitby
## Overview

Kevin Whitby is a Hufflepuff who arrived at Hogwarts in Harry's fourth year.

## Role in the Books
### Goblet of Fire

Kevin Whitby was Sorted into Hufflepuff House.

### Deathly Hallows
## Strengths
## Questions

Study questions are meant to be left for each student to answer; please don't answer them here.
# Muggles' Guide to Harry Potter/Characters/Justin Finch-Fletchley
## Overview

Justin Finch-Fletchley is a student in Harry's year at Hogwarts, but is a member of Hufflepuff house, where Harry is in Gryffindor.

## Role in the Books
### Philosopher's Stone

The Sorting Hat places Justin Finch-Fletchley into Hufflepuff House.

### Chamber of Secrets

Introduced to Harry in Herbology on the first day of classes, Justin Finch-Fletchley makes no secret of his Muggle parentage in discussions with Harry. He is threatened by a snake during the Duelling Club, and as Harry was talking to the snake at that point, trying to calm it so it wouldn't strike Justin, it appeared to Justin as though Harry was actually egging the snake on. The Hufflepuffs become convinced that Harry is planning mischief against Justin in particular; when Harry goes to find Justin to explain what had happened, he finds that Justin has been Petrified by the monster in the Chamber.
When Justin is revived, he makes a point of coming over to Harry at the feast, and apologizing profusely for ever having suspected Harry.

### Goblet of Fire

When Harry's name comes out of the Goblet of Fire, Justin Finch-Fletchley, like the rest of his house, thinks Harry cheated his way in, and starts acting cold towards. In one Herbology lesson, he and his friend Ernie MacMillan don't speak to Harry at all, and then laugh at him when a Bouncing Blub smacks Harry in the face.

### Order of the Phoenix

Justin Finch-Fletchley is one of the original members of Dumbledore's Army, and is present at the first meeting in the Hog's Head. We see him occasionally in passing in DA meetings. During the first one, he's paired with Luna Lovegood, who keeps sending his wand spinning out of his hand or causing his hair to stand on ends.
Justin is also one of the six members of Dumbledore's Army who see Draco Malfoy attempting to jinx Harry on the Hogwarts Express, and promptly return fire, leaving Draco, Crabbe, and Goyle looking like gigantic slugs squeezed into Hogwarts robes.

## Strengths

Justin Finch-Fletchley mentions that he was accepted to attend Eton College, a very exclusive and prestigious Muggle boys school. This would imply that Justin is intelligent, has an outstanding academic record and is possibly from a wealthy and well connected Muggle family. In 2008 the tuition at Eton was £26,490 (approximately US$54,000) per annum.

## Weaknesses

Justin seems to be quick to jump to conclusions (as proved by his suspicion of Harry following the Duelling Club incident).

## Relationships with Other Characters

Justin is shown to be good friends with Ernie MacMillan.

## Questions

Study questions are meant to be left for each student to answer; please don't answer them here.
# Muggles' Guide to Harry Potter/Characters/Laura Madley
## Overview

Laura Madley is a Hufflepuff who arrived at Hogwarts in Harry's fourth year.

## Role in the Books
### Goblet of Fire

Laura Madley was Sorted into Hufflepuff House.

## Questions

Study questions are meant to be left for each student to answer; please don't answer them here.
# Perl Programming/Exercise 2
## A. Input from the keyboard

* Write a program which asks for a line of text to be entered on the keyboard, and then displays that text on screen.
* Modify the program to ask for 3 lines of text, and display them on one line with a | symbol between each input.

## Input from the command-line

Write a program which you can call like so:
The program should take as many command-line arguments as are available, and display them on screen.

## Input from a text file

Create a text file containing the following 3 lines:
Write a program which reads the file, and displays all the lines of text. Modify it so that the whole file is output on one line with | characters between each input. use strict; use warnings;
open MYFILE, '3lines.txt'; foreach(<MYFILE>){ chomp; print $_," |"; }
output:

## Putting it all together

Using the program from exercise 1, write a program which takes three numbers as command-line arguments, and solves the quadratic equation where those numbers are the coefficients (a, b, c). Print the roots.
If no numbers are available from the command-line, prompt the user to type each number at the keyboard.
If the first command-line argument is -h or --help, display some instructions on how to use the program.
Answers
Previous exercise | Next exercise
# Perl Programming/Exercise 2 Answers
## A. Input from the keyboard

1. Answer:
2. Answer:
What is chomp there for? Try running the program without it.
3. Answer:

## Input from the command-line

Answer:

## Input from a text file

Answer:
# Perl Programming/Exercise 3
## Reading and writing files

Write a program to read a file from disk, and save it as a new text file. (make sure you're not working with an important document!) Try downloading a public-domain book to test how your program works with large text files.

## Using regular expressions to search text

Modify your program to copy only lines of text which start with "Chapter 1" or other such identifier. Try identifying each chapter number as it's found and doing some simple maths with it. Display the number of chapters in the book, with how many lines each chapter contains.
Put a regular-expression in to search for repeated repeated words in the text. Make it find repetitions even when the capitalisation of the words is different.
Try to search for words beginning in de and ending in a vowel. Write a search to identify numbers in the text, whether they've got decimal places, - signs, etc. If you want, you can try to find them if they're written as text.
How many distinct proper nouns are there in the book you've selected? How many questions?

## Doing search-and-replace

Modify the file-copy program so that it searches for each instance of one word, and replaces it with another word in the output file. Check that the program has operated correctly. Would you trust it with an important document yet?
Write a program to capitalise the first letter of each sentence, and test it. Make sure it's not being misled by full-stops in numbers, abbreviations, and titles.
Write a program to search for numbers in a book, and add 10 to each number. Write a program to search for expressions in brackets (10+3/2) and replace them with the result (11.5). Check that it doesn't do anything dangerous when you write (print "hello";) some code in the expressions.

## Benchmarking your programs

Using either the Time::HiRes module, or a benchmarking module, modify one of your programs to display the time taken to run.
Try using a benchmarking system to identify which line of code takes the longest to run on one of your programs. Which line of code gets run the most often?

## Putting it all together

Write a program which searches a directory for files which match a supplied regular-expression. Display how long it took to run the program on a particular set of directories.
Modify the program to search a directory-tree, rather than just one directory.
Test how different search requests affect the time taken to do the search. See if you can find a regular-expression which never finishes (hit ctrl-c to stop a busy Perl program). Then try to re-write that regular-expression to do the same job but faster.
Answers
Previous exercise | Next exercise
# Perl Programming/Exercise 4
## Documenting your program

Using a technique called "Plain old Documentation" (POD), take one of your Perl programs, and write about what it does, how it works, and what options it accepts. You will need to write the documentation in the same file as the Perl program, using the special POD markup language
Check that your program still runs correctly with the documentation embedded in it.
Using the pod2text tool, create a text-file help file for your program, and check that it's nicely formatted and easy to read. (You will need to run a conversion program to extract the documentation from your program into a text-file)

## Creating HTML documentation

Using the POD toolkit, extract the documentation from your Perl program into an HTML file. Open the HTML file with your browser and check it's nicely formatted and easy to read.
If you like to use LaTeX or man, try compiling your documentation as LaTeX or Troff files, respectively.

## Writing a test-suite

Find a testing framework which will allow you to write tests for your Perl program, to automatically test its functionality. Taking a complex program from a previous exercise, write tests which check for correct behaviour in each part of your program.
Insert a deliberate error in the program being tested, and check that the error is spotted by the test-suite. See whether you can make the program display incorrect results and still pass the test-suite. (if so, modify the test-suite to detect this incorrect version of the program)
Re-write the program from scratch using a different method for some of the functions. Check that the new program passes your test-suite.

## Putting it all together

Write a program which scans a Perl script and displays the size of the program, the number of comments, and calculates the density of the program (number of statements divided by lines of code)
Display the value of the program by looking-up an estimate of how much it costs per line of code to develop a program in industry.
Display the estimated number of errors in the program by looking-up the expected number of errors per thousand lines of code for an average program.
Write the documention and test-suite for your new program.
Download a random perl script from the internet, and see how it matches up on your code-quality meter.
Answers
Previous exercise | Next exercise
# Perl Programming/Exercise 5
## Temperature Converter

Write a program that takes in a temperature (either Celsius or Fahrenheit) and converts it. The program will know what to convert it to through interpreting the last character in the input string, which will either be an 'F' (for Fahrenheit) or a 'C' (for Celsius). So, for example if the user were to input 10C, the program will output 50F (the output should be to the nearest whole integer). If the end character in the input string is not equivalent to an F or a C, the program should handle the error appropriately.
For extra points, have the program print out its opinion on the temperature. For example, if the user were to input 50F, the program would say "10C, that's cold!".
Answers
Previous exercise | Next exercise
# Perl Programming/Exercise 5 Answers
## Answers

Answer 1 (entire script):
# Perl Programming/Exercise 1 Answers
## B. Displaying Numbers

printf ("%.2f",$answer1);

## C. Functions

The function:
The rest of the program:
# Perl Programming/Exercise 6

Answers
Previous exercise | Next exercise