OpenLLM-France/wikimedia huggingface dataset:
# Canadian Criminal Sentencing/Offences/Sexual Assault with a Weapon
## Legislation

   Sexual assault with a weapon, threats to a third party or causing bodily harm 272. (1) Every person commits an offence who, in committing a sexual assault,
       (a) carries, uses or threatens to use a weapon or an imitation of a weapon;
       (b) threatens to cause bodily harm to a person other than the complainant;
       (c) causes bodily harm to the complainant; or
       (d) is a party to the offence with any other person.
   Punishment (2) Every person who commits an offence under subsection (1) is guilty of an indictable offence and liable
       (a) if a restricted firearm or prohibited firearm is used in the commission of the offence or if any firearm is used in the commission of the offence and the offence is committed for the benefit of, at the direction of, or in association with, a criminal organization, to imprisonment for a term not exceeding 14 years and to a minimum punishment of imprisonment for a term of
          (i) in the case of a first offence, five years, and
          (ii) in the case of a second or subsequent offence, seven years;
       (a.1) in any other case where a firearm is used in the commission of the offence, to imprisonment for a term not exceeding 14 years and to a minimum punishment of imprisonment for a term of four years; and
       (a.2) if the complainant is under the age of 16 years, to imprisonment for a term not exceeding 14 years and to a minimum punishment of imprisonment for a term of five years; and
       (b) in any other case, to imprisonment for a term not exceeding fourteen years.
   Subsequent offences (3) In determining, for the purpose of paragraph (2)(a), whether a convicted person has committed a second or subsequent offence, if the person was earlier convicted of any of the following offences, that offence is to be considered as an earlier offence:
       (a) an offence under this section;
       (b) an offence under subsection 85(1) or (2) or section 244 or 244.2; or
       (c) an offence under section 220, 236, 239 or 273, subsection 279(1) or section 279.1, 344 or 346 if a firearm was used in the commission of the offence.
   However, an earlier offence shall not be taken into account if 10 years have elapsed between the day on which the person was convicted of the earlier offence and the day on which the person was convicted of the offence for which sentence is being imposed, not taking into account any time in custody.
   Sequence of convictions only (4) For the purposes of subsection (3), the only question to be considered is the sequence of convictions and no consideration shall be given to the sequence of commission of offences or whether any offence occurred before or after any conviction.
   R.S., 1985, c. C-46, s. 272; 1995, c. 39, s. 145; 2008, c. 6, s. 28; 2009, c. 22, s. 10; 2012, c. 1, s. 26.
   – CCC

## Application

    For general principles on sentence for sexual offences, see Sexual Offences

## Ancillary Orders

* SOIRA
* DNA Order
# Canadian Criminal Sentencing/Offences/Sexual Interference
## Legislation

   Sexual interference 151. Every person who, for a sexual purpose, touches, directly or indirectly, with a part of the body or with an object, any part of the body of a person under the age of 16 years
       (a) is guilty of an indictable offence and is liable to imprisonment for a term of not more than 14 years and to a minimum punishment of imprisonment for a term of one year; or
       (b) is guilty of an offence punishable on summary conviction and is liable to imprisonment for a term of not more than 18 months and to a minimum punishment of imprisonment for a term of 90 days.
   ... R.S., 1985, c. C-46, s. 151; R.S., 1985, c. 19 (3rd Supp.), s. 1; 2005, c. 32, s. 3; 2008, c. 6, s. 54; 2012, c. 1, s. 11.
   – CCC

## Application

For general principles for sexual offences see Canadian Criminal Sentencing/Offences/Sexual Offences

### Principles

It is an aggravating factor for the offender to have been in a position of trust. A position of trust is distinctive from a position of authority and will be determined on the specific facts including the conduct of the offender.
Unless there are exceptional circumstances, the range of sentence for sexual intercourse with a child by a person in a position of trust is 3 to 5 years.
* ↑ http://laws-lois.justice.gc.ca/eng/acts/C-46/page-34.html#docCont
* ↑ Audet 1996 CanLII 198 (SCC), [1996] 2 SCR 171
* ↑ R. v. W.W.M., [2006] O.J. No. 440, 2006 CanLII 3262 (ON CA) at para 14

### Factors

Aggravating Factors
* Youthful age of Victim
* degree of vulnerability of victim (inarticulate, easily manipulated, disabled)
* significant gap in age between parties
* offender in a position of trust or authority to victim
* manner of interference (attempted acts, kissing, touching outside of clothes, touching inside of clothes, digital penetration, oral sex, full intercourse)
* number of instances of interference
* duration of each instance
Mitigating Factors
* Youthful offender
* guilty plea (early or late, saved resources)
* prior record (related or unrelated)

## Ancillary Orders

* DNA Orders
* SOIRA Orders (Mandatory)
* 161 Order

## Offence-related Probationary Terms

* No contact with victim
* No contact with persons under age of 16
* Treatment/Counselling
* No alcohol or drugs (if facts involve them)

## History

On August 9, 2012, the section was amended to increase the penalties from 45 days for indictable and 14 days for summary to one year and 90 days respectively.
* ↑ See Full text of amendments
# Canadian Criminal Sentencing/Offences/Theft Over $5,000
## Legislation

   334. Except where otherwise provided by law, every one who commits theft
       (a) is guilty of an indictable offence and liable to imprisonment for a term not exceeding ten years, where the property stolen is a testamentary instrument or the value of what is stolen exceeds five thousand dollars; or
   – CCC

## Application
### Principles

Employee Theft Offences involving theft of large amounts from an employer by an employee will usually result in a sentence of encarceration. Where exceptional circumstances exist, a conditional sentence may be appropriate.
Theft of money by person who are entrusted with it in the course of his employment amounts to a abuse of trust within the meaning of s.718.2(a)(iii).
* ↑ R v Fulcher, 2007 ABCA 381, 422 AR 329 at para 30
* ↑ R. v. Nguyen, 2011 ABCA 300
* ↑ Veno v. R., 2012 NBCA 15 at 13 R. v. Chaulk, 2005 NBCA 86 R. v. McKinnon, 2005 ABCA 8, [2005] A.J. No. 12 -- embezzlement by a bookkeeper R. v. Holmes, 1999 ABCA 228 -- bank manager stealing from accounts R. v. Reid, 2004 YKCA 4 -- cashier stealing from employer R. v. Pierce, [1997] O.J. No. 715 (C.A.) -- comptroller sealing from employer R. v. Dobis, [2002] O.J. No. 646 (C.A.) -- fraud by accounting manager R. v. Clarke, [2004] O.J. No. 3438 (C.A.) -- bank telephone agent stealing from accounts R. v. Bowes (J.M.), (1994), 155 N.B.R. (2d) 321 (C.A.) -- lawyer stealing trust funds

## Ancillary Orders

* Stand-alone Restitution Order
# Canadian Criminal Sentencing/Offences/Theft and Forgery of a Credit Card
## Legislation

   Theft, forgery, etc., of credit card 342. (1) Every person who
       (a) steals a credit card,
       (b) forges or falsifies a credit card,
       (c) possesses, uses or traffics in a credit card or a forged or falsified credit card, knowing that it was obtained, made or altered
          (i) by the commission in Canada of an offence, or
          (ii) by an act or omission anywhere that, if it had occurred in Canada, would have constituted an offence, or
       (d) uses a credit card knowing that it has been revoked or cancelled,
   is guilty of
       (e) an indictable offence and is liable to imprisonment for a term not exceeding ten years, or
       (f) an offence punishable on summary conviction.
   ... Unauthorized use of credit card data (3) Every person who, fraudulently and without colour of right, possesses, uses, traffics in or permits another person to use credit card data, including personal authentication information, whether or not the data is authentic, that would enable a person to use a credit card or to obtain the services that are provided by the issuer of a credit card to credit card holders is guilty of
       (a) an indictable offence and is liable to imprisonment for a term not exceeding ten years; or
       (b) an offence punishable on summary conviction.
   ... R.S., 1985, c. C-46, s. 342; R.S., 1985, c. 27 (1st Supp.), ss. 44, 185(F); 1997, c. 18, s. 16; 2009, c. 28, s. 4.
   – CCC

## Ranges

* R v Kanagaratnam, 2011 MBPC 72 -- 14 months -- credit card fraud
* R. v. Zhang, 2008 BCSC 674 - discharge
# Canadian Criminal Sentencing/Offences/Sexual Exploitation
## Legislation

   Sexual exploitation 153. (1) Every person commits an offence who is in a position of trust or authority towards a young person, who is a person with whom the young person is in a relationship of dependency or who is in a relationship with a young person that is exploitative of the young person, and who
       (a) for a sexual purpose, touches, directly or indirectly, with a part of the body or with an object, any part of the body of the young person; or
       (b) for a sexual purpose, invites, counsels or incites a young person to touch, directly or indirectly, with a part of the body or with an object, the body of any person, including the body of the person who so invites, counsels or incites and the body of the young person.
   Punishment (1.1) Every person who commits an offence under subsection (1)
       (a) is guilty of an indictable offence and is liable to imprisonment for a term of not more than 10 years and to a minimum punishment of imprisonment for a term of one year; or
       (b) is guilty of an offence punishable on summary conviction and is liable to imprisonment for a term of not more than 18 months and to a minimum punishment of imprisonment for a term of 90 days.
   R.S., 1985, c. C-46, s. 153; R.S., 1985, c. 19 (3rd Supp.), s. 1; 2005, c. 32, s. 4; 2008, c. 6, s. 54; 2012, c. 1, s. 13.
   – CCC
   Sexual exploitation of person with disability 153.1 (1) Every person who is in a position of trust or authority towards a person with a mental or physical disability or who is a person with whom a person with a mental or physical disability is in a relationship of dependency and who, for a sexual purpose, counsels or incites that person to touch, without that person’s consent, his or her own body, the body of the person who so counsels or incites, or the body of any other person, directly or indirectly, with a part of the body or with an object, is guilty of
       (a) an indictable offence and liable to imprisonment for a term not exceeding five years; or
       (b) an offence punishable on summary conviction and liable to imprisonment for a term not exceeding eighteen months.
   1998, c. 9, s. 2.
   – CCC

## Application

    For General Principles on Sentence for Sexual offences, see Sexual Offences

## History

On August 9, 2012, this section was amended to increase the minimum penalties from 14 days for summary and 45 days indictable to 90 days and 1 year, respectively.
# Canadian Criminal Sentencing/Offences/Theft

* Canadian Criminal Sentencing/Offences/Theft Over $5,000
* Canadian Criminal Sentencing/Offences/Theft Under $5,000
# Canadian Criminal Sentencing/Offences/Theft Under $5,000
## Legislation

   334. Except where otherwise provided by law, every one who commits theft ...
       (b) is guilty
          (i) of an indictable offence and is liable to imprisonment for a term not exceeding two years, or
          (ii) of an offence punishable on summary conviction,
   where the value of what is stolen does not exceed five thousand dollars.
   – CCC

## Principles

A common offence in most provincial courts. The range of sentences for low end offences range from discharges for first time offenders, fines ($100 to 400), suspended sentence with probation, or short and sharp periods of imprisonment where there is a prior related criminal record.
* ↑ e.g. see R. v. Prowse 1998 CanLII 18024 (NL CA), (1998) R. v. C.C., [2012] N.J. No. 121 (P.C.) R. v. Reid, [2012] N.J. No. 164 (P.C.)

#### Employee Theft

The goals of denunciation and deterrence require that absent exceptional circumstances, the sentence should include imprisonment.
* ↑ R v Fulcher, 2007 ABCA 381 at para 30 ("[A]bsent truly exceptional circumstances, the sentencing goals of deterrence and denunciation demand a sentence of imprisonment rather than the imposition of a conditional sentence for crimes of embezzlement or theft by an employee.")

## Factors

Aggravating Factors
* criminal record for similar offences
* breach of trust
* lack of recovery of items
* inability to compensate owner
Other Factors
* history of alcohol or substance abuse

## See Also

* UK Sentencing Guidelines
# Canadian Criminal Sentencing/Offences/Sexual Assault Causing Bodily Harm
## Legislation

   Sexual assault with a weapon, threats to a third party or causing bodily harm 272. (1) Every person commits an offence who, in committing a sexual assault,
       (a) carries, uses or threatens to use a weapon or an imitation of a weapon;
       (b) threatens to cause bodily harm to a person other than the complainant;
       (c) causes bodily harm to the complainant; or
       (d) is a party to the offence with any other person.
   Punishment (2) Every person who commits an offence under subsection (1) is guilty of an indictable offence and liable
       (a) if a restricted firearm or prohibited firearm is used in the commission of the offence or if any firearm is used in the commission of the offence and the offence is committed for the benefit of, at the direction of, or in association with, a criminal organization, to imprisonment for a term not exceeding 14 years and to a minimum punishment of imprisonment for a term of
          (i) in the case of a first offence, five years, and
          (ii) in the case of a second or subsequent offence, seven years;
       (a.1) in any other case where a firearm is used in the commission of the offence, to imprisonment for a term not exceeding 14 years and to a minimum punishment of imprisonment for a term of four years; and
       (a.2) if the complainant is under the age of 16 years, to imprisonment for a term not exceeding 14 years and to a minimum punishment of imprisonment for a term of five years; and
       (b) in any other case, to imprisonment for a term not exceeding fourteen years.
   Subsequent offences (3) In determining, for the purpose of paragraph (2)(a), whether a convicted person has committed a second or subsequent offence, if the person was earlier convicted of any of the following offences, that offence is to be considered as an earlier offence:
       (a) an offence under this section;
       (b) an offence under subsection 85(1) or (2) or section 244 or 244.2; or
       (c) an offence under section 220, 236, 239 or 273, subsection 279(1) or section 279.1, 344 or 346 if a firearm was used in the commission of the offence.
   However, an earlier offence shall not be taken into account if 10 years have elapsed between the day on which the person was convicted of the earlier offence and the day on which the person was convicted of the offence for which sentence is being imposed, not taking into account any time in custody. Sequence of convictions only (4) For the purposes of subsection (3), the only question to be considered is the sequence of convictions and no consideration shall be given to the sequence of commission of offences or whether any offence occurred before or after any conviction.
   R.S., 1985, c. C-46, s. 272; 1995, c. 39, s. 145; 2008, c. 6, s. 28; 2009, c. 22, s. 10; 2012, c. 1, s. 26.
   – CCC

## Application

    For general principles on sentence for sexual offences, see Sexual Offences

## Ancillary Orders

* SOIRA
* DNA Order
# Aros/Developer/Docs/Logging

This is currently a draft page ...

# Logging Subsystem Components
## log.resource

    Generic API to logging.

## debug.logger

    hardcoded processor for debug log output. used for
    other log types until exec can handle memory requests.

## generic.logger

    hardcoded processor used after log.resource:init to process all but debug logging.
    NB -: should not be used inside allocmem/freemem (since it may use them) or IRQs

## seriallog.resource

    rom resident listener which dumps DEBUG type log output to the serial device
    (configurable via grub command line)

## Support Commands
### C

    BufferLog LOGTYPE OUTPUTFILE
    Registers a listener for the specified LOGTYPE which Buffers log output to an OUTPUTFILE.

### SYS

    Tools/LogViewer LOGFILE
    Tool used to display LOGFILE's buffered with C:BufferLog.

# Logging API's
## LOG_TYPEID

    LOG_DATA

## LOG_TYPE_DEBUG

    DEBUG_ERROR
    DEBUG_WARN
    DEBUG_INFO

## LOG_TYPE_SYSTEM

    SYSTEM_ERROR
    SYSTEM_WARN
    SYSTEM_INFO

## LOG_TYPE_APPLICATION

    APPLICATION_ERROR
    APPLICATION_WARN
    APPLICATION_INFO
IPTR LOGR_RegisterProcessor(LOG_TYPEID, struct LogProcessor *)
IPTR LOGR_RegisterListener(LOG_TYPEID, struct LogListener *)
BOOL LOGR_LogEvent(LOG_TYPEID, LOG_DATA, char *LOG_SRC, char *LOG_TEMPLATE, args ...)
IPTR LOGR_ObtainLogEvents(LOG_TYPEID, LOG_EVENTFLAGS)
IPTR LOGR_LogEventNext(IPTR)
IPTR LOGR_LogEventDelete(IPTR)
IPTR LOGR_ReleaseLogEvents(IPTR)

## LOGR_LogEvent

Used to output data to a specified log.

## LOGR_ObtainLogEvents

Returns a per caller handle. if (LOG_EVENTFLAGS == LOG_EVENTLIST_UNIQUE) then it will only succeed if no other access is occurring.
internal: sets handle->active_event to the first log entry and increases its access count.

## LOGR_LogEventNext

(semaphore protected?)
internal: sets handle->active_event to the next log entry - decreasing the current one's access count and increasing the next's access count

## LOGR_LogEventDelete

(semaphore protected?)
Deletes a log entry.
internal: deletes handle->active_event - or marks it for deletion if its access count > 0

## LOGR_ReleaseLogEvents

Must be called with a handle obtained with LOGR_ObtainLogEvents. decreases the handle->active_event's access count, and frees the per caller handle.
# Aros/Developer/Docs/building

Building AROS in Different Directories
It is possible, and the preferred method, to configure and build AROS in a directory other than the working copy. For example ..
puts the AROS working copy in the directory "aros-src" and builds it in a separate, parallel directory "build".
Why would you want to do this? Well there are a number of reasons...
   * You may want to separate the source and object code and only
       backup the source / avoid "polluting" the working copy with
       files generated during the build.
   * You may want to put the build directory and the working
       copy on different physical disks to improve performance.
   * You may want to remote mount the working copy on multiple
       machines, and build for different machines from the same
       working copy.
   * You may want to build multiple configurations from the
       same working copy (and at the same time!).
The last reason above is possibly the most useful. For instance you can have builds for separate architectures and/or debug builds each using the same working copy. Using multiple build directories you can rebuild any or all configurations after an edit without the need to either clean and reconfigure, or identify and copy changes into another working copy.
NB:- If you have previously built AROS inside the working copy you will need to delete all obsolete generated files from the source tree before attempting to configure/build in another directory. The reason for this is some parts will detect the existing file in the source tree before the correct version and attempt to use that. It is best to delete the bin/ directory as well as all files that shouldnt exist when the following command is used ..
Delete any files which are ignored/not supposed to be there (unless they are your own projects files).
# Aros/Developer/Docs/Libraries/Xadmaster

* Navbar for the Aros wikibook
* Aros User
* Aros User Docs
* Aros User FAQs
* Aros User Applications
* Aros User DOS Shell
* Aros/User/AmigaLegacy
* Aros Dev Docs
* Aros Developer Docs
* Porting Software from AmigaOS/SDL
* For Zune Beginners
* Zune .MUI Classes
* For SDL Beginners
* Aros Developer BuildSystem
* Specific platforms
* Aros x86 Complete System HCL
* Aros x86 Audio/Video Support
* Aros x86 Network Support
* Aros Intel AMD x86 Installing
* Aros Storage Support IDE SATA etc
* Aros Poseidon USB Support
* x86-64 Support
* Motorola 68k Amiga Support
* Linux and FreeBSD Support
* Windows Mingw and MacOSX Support
* Android Support
* Arm Raspberry Pi Support
* PPC Power Architecture
* misc
* Aros Public License
# Aros/Developer/GfxDrivers

Cybergrafix supports some very fine functions to select a screenmode, for example BestCModeIDTagList, which gets the best screenmode for a specified tag list of screen attributes.
For writing pixels, reading Pixels and blitting, there are the functions FillPixelArray, MovePixelArray, ReadPixelArray, ScalePixelArray, SwapPixelArray, WritePixelArray and WriteRGBPixel.
For double buffering you use standard Double Buffering functions like the functions around AllocScreenBuffer.
Cybergrafix supports a function to get some information about the (modified) Bitmap structure, but (sadly) you do not get the address of the video memory. So you can't write directly to the video memory.
http://gega.homelinux.net/AmigaDevDocs/
# Aros/Developer/Docs/Resources/Filesystem

* Navbar for the Aros wikibook
* Aros User
* Aros User Docs
* Aros User FAQs
* Aros User Applications
* Aros User DOS Shell
* Aros/User/AmigaLegacy
* Aros Dev Docs
* Aros Developer Docs
* Porting Software from AmigaOS/SDL
* For Zune Beginners
* Zune .MUI Classes
* For SDL Beginners
* Aros Developer BuildSystem
* Specific platforms
* Aros x86 Complete System HCL
* Aros x86 Audio/Video Support
* Aros x86 Network Support
* Aros Intel AMD x86 Installing
* Aros Storage Support IDE SATA etc
* Aros Poseidon USB Support
* x86-64 Support
* Motorola 68k Amiga Support
* Linux and FreeBSD Support
* Windows Mingw and MacOSX Support
* Android Support
* Arm Raspberry Pi Support
* PPC Power Architecture
* misc
* Aros Public License
Doesn't that mountlist use the device-based handler? My change didn't effect the name of that. It seems that you're addressing the issue of kernel-based vs file-based handlers, whereas my changes address the issue of device-based vs packet-based handlers.
There should not be any difference between resident and disk-based handlers. If the handler is resident, the resident copy is used. When FileSystem.resource is implemented, things automatically go this way (Mount program supports it). Currently they also go this way, just raw packet-based handler can't be made resident (well, in common case). And genmodule can't use dash as separator. I don't want to touch genmodule there, i'd prefer to implement FileSystem.resource and get rid of own IOFS wrappers in CDVDFS and SFS completely.
Dashes can already be used for a handler if it is both file-based and packet-based.
I know. But why keep disk-based handler if you already have it in the kernel? Why duplicate things?
I've found that the build system doesn't cope well with building both variants in the same dir at the same time. This makes sense to me since the object files may vary between the two because of different #defines etc.
I know. But there's no sense to build both versions at the same time. I once built IOFS versions on hosted for testing. I just decided to package "naked" versions because they are smaller. And to prove that it's possible to use these handlers in original form.
# Chemical Information Sources/CIIM/Chemical Name and Formula Searching Aids

Chemical Information Instructional Materials
* Tips for Chemical Name Searching
* Finding and Verifying CAS Registry Numbers on STN (Baysinger, Stanford)
* Locating All CAplus File References Citing a Chemical Substance