max_stars_repo_path stringlengths 4 261 | max_stars_repo_name stringlengths 6 106 | max_stars_count int64 0 38.8k | id stringlengths 1 6 | text stringlengths 7 1.05M |
|---|---|---|---|---|
Task/Calendar/Ada/calendar-2.ada | LaudateCorpus1/RosettaCodeData | 1 | 12477 | <filename>Task/Calendar/Ada/calendar-2.ada
with Ada.Text_IO;
package body Printable_Calendar is
use Ada.Calendar;
package F renames Ada.Calendar.Formatting;
function Days_Per_Month(Year: Year_Number; Month: Month_Number)
return Day_Number is
begin
case Month is
wh... |
alloy4fun_models/trashltl/models/5/XvrK4N7XnGDPS9np5.als | Kaixi26/org.alloytools.alloy | 0 | 87 | <reponame>Kaixi26/org.alloytools.alloy
open main
pred idXvrK4N7XnGDPS9np5_prop6 {
all f : File | f in Trash => always f in Trash
}
pred __repair { idXvrK4N7XnGDPS9np5_prop6 }
check __repair { idXvrK4N7XnGDPS9np5_prop6 <=> prop6o } |
source/nodes/program-nodes-block_statements.adb | reznikmm/gela | 0 | 7878 | <reponame>reznikmm/gela
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Block_Statements is
function Create
(Statement_Identifier : Program.Elements.Defining_Identifiers
.... |
Transynther/x86/_processed/NC/_zr_/i3-7100_9_0xca_notsx.log_21829_99.asm | ljhsiun2/medusa | 9 | 17402 | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xa5b1, %r9
nop
dec %r15
mov (%r9), %r14
nop
nop
nop
nop
and $31567, %r13
lea addresses_A_ht+0x19511, %rax
sub $23111, %rbp
movl $0x61626364, (%rax)
nop
nop
nop
dec %... |
test.agda | foxx3r/agda_tasks | 1 | 5960 | module test where
data Bool : Set where
True : Bool
False : Bool
!_ : Bool → Bool
! True = False
! False = True
if_then_else_ : {A : Set} → Bool → A → A → A
if True then x else y = x
if False then x else y = y
data ℕ : Set where
zero : ℕ
suc : ℕ → ℕ
_+_ : ℕ → ℕ → ℕ
zero + a = a
suc a + b = suc (... |
Library/SpecUI/CommonUI/CWin/cwinManager.asm | steakknife/pcgeos | 504 | 18784 | <filename>Library/SpecUI/CommonUI/CWin/cwinManager.asm<gh_stars>100-1000
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: OpenLook/Win
FILE: cwinManager.asm
REVISION HISTORY:
Name Date Description... |
oeis/130/A130243.asm | neoneye/loda-programs | 11 | 13325 | ; A130243: Partial sums of the 'lower' Lucas Inverse A130241.
; Submitted by <NAME>
; 1,2,4,7,10,13,17,21,25,29,34,39,44,49,54,59,64,70,76,82,88,94,100,106,112,118,124,130,137,144,151,158,165,172,179,186,193,200,207,214,221,228,235,242,249,256,264,272,280,288,296,304,312,320,328,336,344,352,360,368,376,384,392,400,408,... |
orka/src/gl/interface/gl-types.ads | onox/orka | 52 | 16150 | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2012 <NAME> <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0... |
test/Fail/RewriteRelationNotHomogeneous.agda | redfish64/autonomic-agda | 0 | 3968 | <reponame>redfish64/autonomic-agda<filename>test/Fail/RewriteRelationNotHomogeneous.agda
{-# OPTIONS --rewriting #-}
-- 2014-05-27 Jesper and Andreas
postulate
A B : Set
R : A → B → Set
{-# BUILTIN REWRITE R #-}
-- Expected error:
-- R does not have the right type for a rewriting relation
-- because the type... |
programs/oeis/106/A106701.asm | neoneye/loda | 22 | 175245 | ; A106701: a(n) = next-to-most-significant binary digit of n-th composite positive integer.
; 0,1,0,0,0,1,1,1,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0
seq $0,72668 ; Numbers on... |
oeis/216/A216164.asm | neoneye/loda-programs | 11 | 9628 | ; A216164: Period of powers of 7 mod 10^n.
; 4,4,20,100,500,5000,50000,500000,5000000,50000000,500000000,5000000000,50000000000,500000000000,5000000000000,50000000000000,500000000000000,5000000000000000,50000000000000000,500000000000000000
trn $0,1
seq $0,216099 ; Period of powers of 3 mod 10^n.
|
programs/oeis/162/A162285.asm | neoneye/loda | 22 | 91589 | ; A162285: Periodic length 8 sequence [1, -1, -1, 1, -1, 1, 1, -1, ...].
; 1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,1,1,-1,1,-1,... |
Task/Universal-Turing-machine/Ada/universal-turing-machine-2.ada | LaudateCorpus1/RosettaCodeData | 1 | 14144 | package body Turing is
function List_To_String(L: List; Map: Symbol_Map) return String is
LL: List := L;
use type List;
begin
if L = Symbol_Lists.Empty_List then
return "";
else
LL.Delete_First;
return Map(L.First_Element) & List_To_String(LL, Map);
end if... |
programs/oeis/194/A194986.asm | neoneye/loda | 22 | 171270 | ; A194986: a(n) = 1 + floor(n/sqrt(6)).
; 1,1,2,2,3,3,3,4,4,5,5,5,6,6,7,7,7,8,8,9,9,9,10,10,11,11,12,12,12,13,13,14,14,14,15,15,16,16,16,17,17,18,18,18,19,19,20,20,21,21,21,22,22,23,23,23,24,24,25,25,25,26,26,27,27,27,28,28,29,29,29,30,30,31,31,32,32,32,33,33,34,34,34,35,35,36,36,36,37,37,38,38,38,39,39,40,40,41,41,41
... |
oeis/166/A166621.asm | neoneye/loda-programs | 11 | 19211 | <gh_stars>10-100
; A166621: a(n) = 10*n - a(n-1), with n>1, a(1)=5.
; Submitted by <NAME>
; 5,15,15,25,25,35,35,45,45,55,55,65,65,75,75,85,85,95,95,105,105,115,115,125,125,135,135,145,145,155,155,165,165,175,175,185,185,195,195,205,205,215,215,225,225,235,235,245,245,255,255,265,265,275,275,285,285,295,295,305,305,315,... |
test/asset/agda-stdlib-1.0/Induction/Nat.agda | omega12345/agda-mode | 0 | 4311 | ------------------------------------------------------------------------
-- The Agda standard library
--
-- Various forms of induction for natural numbers
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Induction.Nat where
open import Function
open i... |
src/GBA.DMA.Generic_Interfaces.adb | 98devin/ada-gba-dev | 7 | 16224 | -- Copyright (c) 2021 <NAME>
-- zlib License -- see LICENSE for details.
package body GBA.DMA.Generic_Interfaces is
Use_Full_Word : constant Boolean :=
(Element_Type'Size >= 32 and then Element_Type'Size mod 32 = 0);
function Memset_Info ( Count : Transfer_Count_Type ) return Transfer_Info is
(( Dest_Ad... |
Assembler/tests/optimizations/a.asm | karannewatia/SCALE-MAMBA | 196 | 171376 | <filename>Assembler/tests/optimizations/a.asm
ldi c0, 3
ldsi s0, 3
ldmc c1, 3
ldms s1, 3
stmc c0, 8000
stms s0, 8000
ldmci c2, r0
ldmsi s2, r0
stmci c0, r0
stmsi s0, r0
movc c3, c2
movs s3, s2
movint r1, r0
ldmint r2, 3
stmint r0, 8000
ldminti r3, r2
stminti r3, r2
pushint r3
popint r4
ldtn r1
ldarg r5
reqbl 10
starg r... |
awa/src/awa-commands.adb | My-Colaborations/ada-awa | 0 | 6519 | <reponame>My-Colaborations/ada-awa<gh_stars>0
-----------------------------------------------------------------------
-- awa-commands -- AWA commands for server or admin tool
-- Copyright (C) 2019, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- y... |
oeis/319/A319194.asm | neoneye/loda-programs | 11 | 29991 | ; A319194: a(n) = Sum_{k=1..n} sigma(n,k).
; Submitted by <NAME>
; 1,6,38,373,4461,68033,1202753,24757484,574608039,14925278329,427729375161,13424413453317,457608305315211,16841852554413561,665483754539870667,28101844918556128030,1262901795439193700478,60182608193322255156347,3031285556584399354961535,16090889909451367... |
programs/IO Panel.asm | TheLogicMaster/lm8 | 10 | 86044 | <gh_stars>1-10
; This demonstrates using DE10-Lite I/O or the emulator I/O panel
jmp main ; Program entry point
include "libraries/Serial.asm"
message: db "Pressed Button ",$0 ; Message to print
main:
jsr setup_serial
; Program loop
loop:
; Set LED 2-9 to SW 2-9
ldr #7,a ; A = 7
set_leds:
add {... |
test/Succeed/Issue1386.agda | shlevy/agda | 1,989 | 3426 | {-# OPTIONS --allow-unsolved-metas #-}
-- {-# OPTIONS -v tc.meta:45 #-}
-- Andreas, 2014-12-07 found a bug in pruning
open import Common.Prelude
open import Common.Product
open import Common.Equality
postulate
f : Bool → Bool
test : let
X : Bool → Bool → Bool
X = _
Y : Bool
Y = _
in ∀ b → Y ≡ f ... |
ada/original_2008/ada-gui/agar-gui-widget-mpane.ads | auzkok/libagar | 286 | 6419 | <reponame>auzkok/libagar
with agar.gui.widget.box;
package agar.gui.widget.mpane is
use type c.unsigned;
type layout_t is (
MPANE1,
MPANE2V,
MPANE2H,
MPANE2L1R,
MPANE1L2R,
MPANE2T1B,
MPANE1T2B,
MPANE3L1R,
MPANE1L3R,
MPANE3T1B,
MPANE1T3B,
MPANE4
);
for layout_t ... |
programs/oeis/193/A193661.asm | karttu/loda | 1 | 242829 | ; A193661: Q-residue of the triangle A193673, where Q is the triangular array (t(i,j)) given by t(i,j)=1. (See Comments.)
; 1,3,15,93,621,4263,29595,206433,1442841,10093323,70633575,494375973,3460454661,24222651183,169556963955,1186893964713,8308243404081,58157660781843,407103496332735,2849724086908653,199480674460991... |
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_9_1838.asm | ljhsiun2/medusa | 9 | 89610 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0xd406, %rbp
nop
add $5679, %rax
mov (%rbp), %ebx
nop
nop
nop
cmp %rax, %rax
lea addresses_normal_ht+0x15a7e, %rax
nop
nop
nop
nop
nop
cmp $18049, %r15
mov ... |
programs/oeis/087/A087440.asm | neoneye/loda | 22 | 94510 | ; A087440: Expansion of (1-2x-3x^2)/((1-2x)(1-4x)).
; 1,4,13,46,172,664,2608,10336,41152,164224,656128,2622976,10488832,41949184,167784448,671113216,2684403712,10737516544,42949869568,171799085056,687195553792,2748780642304,10995119423488,43980471402496
seq $0,79 ; Powers of 2: a(n) = 2^n.
seq $0,85787 ; Generalized h... |
programs/oeis/014/A014832.asm | neoneye/loda | 22 | 90833 | <gh_stars>10-100
; A014832: a(1)=1; for n>1, a(n) = 9*a(n-1)+n.
; 1,11,102,922,8303,74733,672604,6053444,54481005,490329055,4412961506,39716653566,357449882107,3217048938977,28953440450808,260580964057288,2345228676515609,21107058088640499
add $0,1
lpb $0
sub $0,1
add $2,1
mul $2,9
add $1,$2
lpe
div $1,9
mov $... |
src/hide-value.ads | persan/midnightsun-ctf-LoveLacedLetter | 0 | 5873 | <reponame>persan/midnightsun-ctf-LoveLacedLetter<gh_stars>0
function Hide.Value (Data : String ) return Integer with
Pre => (for all I in Data'Range => Data (I) in '0' .. '9');
|
oeis/268/A268727.asm | neoneye/loda-programs | 11 | 22895 | ; A268727: One-based index of the toggled bit between n and A268717(n+1): a(n) = A070939(A003987(n,A268717(1+n))).
; Submitted by <NAME>
; 1,2,3,1,4,1,1,2,5,1,1,2,1,2,3,1,6,1,1,2,1,2,3,1,1,2,3,1,4,1,1,2,7,1,1,2,1,2,3,1,1,2,3,1,4,1,1,2,1,2,3,1,4,1,1,2,5,1,1,2,1,2,3,1,8,1,1,2,1,2,3,1,1,2,3,1,4,1,1,2,1,2,3,1,4,1,1,2,5,1,1... |
ExExtract.agda | ashinkarov/agda-array | 6 | 17513 | open import Reflection hiding (return; _>>=_)
open import Data.List renaming (_++_ to _++l_)
open import Data.Vec as V using (Vec; updateAt)
open import Data.Unit
open import Data.Nat as N
open import Data.Nat.Properties
open import Data.Fin using (Fin; #_; suc; zero)
open import Data.Maybe hiding (_>>=_; map)
open im... |
libsrc/target/special/graphics/w_pixladdr.asm | Frodevan/z88dk | 640 | 27990 | <reponame>Frodevan/z88dk
SECTION code_driver
PUBLIC w_pixeladdress
EXTERN __vector06c_scroll
; Entry hl = x
; de = y
; Exit: hl = de = address
; a = pixel number
; Uses: a, c, de, hl
.w_pixeladdress
ld c,l ;Save lower pixel numbers
and a
ld a,h ;384 -> 192
rra
ld h,a
ld a,l
rra
and a
rra ... |
oeis/190/A190871.asm | neoneye/loda-programs | 11 | 105359 | ; A190871: a(n) = 11*a(n-1) - 11*a(n-2), a(0)=0, a(1)=1.
; Submitted by <NAME>(s1)
; 0,1,11,110,1089,10769,106480,1052821,10409751,102926230,1017681269,10062305429,99490865760,983714163641,9726456276691,96170163243550,950880776635449,9401816747310889,92960295677429840,919143268231308461,9088012698092664831,898575637284... |
programs/oeis/100/A100670.asm | neoneye/loda | 22 | 22786 | ; A100670: Number of two-card Baccarat hands of point n.
; 210,128,132,128,132,128,132,128,132,128
mov $3,2
lpb $2,4
add $1,4
trn $3,2
bin $3,$0
gcd $0,2
bin $1,$0
lpe
add $1,60
mul $1,2
mov $0,$1
|
agda/book/Programming_Language_Foundations_in_Agda/x00-playpen.agda | haroldcarr/learn-haskell-coq-ml-etc | 36 | 1974 | <gh_stars>10-100
module x00-playpen where
-- prove properties of inductive naturals and operations on them via induction
import Relation.Binary.PropositionalEquality as Eq
open Eq using (_≡_; refl; cong; sym)
open Eq.≡-Reasoning using (begin_; _≡⟨⟩_; step-≡; _∎)
open import Data.Nat ... |
base/mvdm/wow16/win87em/emlssng.asm | npocmaka/Windows-Server-2003 | 17 | 24012 | page ,132
subttl emlssng.asm - Load/Store Single Precision Numbers
;***
;emlssng.asm - Load/Store Single Precision Numbers
;
; Copyright (c) 1984-89, Microsoft Corporation
;
;Purpose:
; Load/Store Single Precision Numbers
;
; This Module contains Proprietary Information of Microsoft
; Corporation and shoul... |
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0xca.log_21829_420.asm | ljhsiun2/medusa | 9 | 166571 | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0xb107, %rcx
add $48376, %r9
and $0xffffffffffffffc0, %rcx
movntdqa (%rcx), %xmm0
vpextrq $0, %xmm0, %rdi
nop
nop
nop
nop
nop
add %rsi, %rsi
lea addresses_UC_ht+0x11cff, %r... |
programs/oeis/064/A064762.asm | karttu/loda | 1 | 82091 | <reponame>karttu/loda<filename>programs/oeis/064/A064762.asm
; A064762: a(n) = 21*n^2.
; 0,21,84,189,336,525,756,1029,1344,1701,2100,2541,3024,3549,4116,4725,5376,6069,6804,7581,8400,9261,10164,11109,12096,13125,14196,15309,16464,17661,18900,20181,21504,22869,24276,25725,27216,28749
mov $1,$0
pow $1,2
mul $1,21
|
test/Sample/Calculator/Antlr/CalculatorLexer.g4 | SetBased/antlr-php-runtime | 1 | 2457 | <reponame>SetBased/antlr-php-runtime
lexer grammar CalculatorLexer;
INT : [0-9]+;
DOUBLE : [0-9]+'.'[0-9]+;
PI : 'pi';
E : 'e';
POW : '^';
NL : '\n';
WS : [ \t\r\n]+ -> skip;
ID : [a-zA-Z_][a-zA-Z_0-9]*;
PLUS : '+';
EQUAL : '=';
MINUS : '-';
MULT : '*';
DIV : '/';
LPAR : '(';
RPAR : '... |
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48_notsx.log_21829_1744.asm | ljhsiun2/medusa | 9 | 22573 | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x6c4e, %r9
nop
cmp %r12, %r12
mov $0x6162636465666768, %r8
movq %r8, %xmm3
and $0xffffffffffffffc0, %r9
movaps %xmm3, (%r9)
nop
nop
nop
sub %r12, %r12
lea addresses_WC_ht+0x19bc... |
libsrc/_DEVELOPMENT/math/float/am9511/z80/am32_error.asm | ahjelm/z88dk | 640 | 240351 |
SECTION code_fp_am9511
EXTERN asm_am9511_max
EXTERN asm_am9511_const_pzero
EXTERN asm_am9511_const_one
EXTERN asm_am9511_const_pinf
EXTERN asm_am9511_const_ninf
EXTERN asm_am9511_const_pnan
PUBLIC asm_am9511_derror_zc
PUBLIC asm_am9511_derror_onc
PUBLIC asm_am9511_derror_znc
PUBLIC asm_am9511_derror_nanc
PUBLIC asm... |
micro_kernel/interrupts.asm | bursaiskender/BaseLevelComputerKernel | 1 | 19083 | STRING isr0_msg, "Divide by Zero exception "
STRING isr1_msg, "Debug Exception "
STRING isr2_msg, "Non Maskale Interrupt Exception "
STRING isr3_msg, "Breakpoint Exception "
STRING isr4_msg, "Into Detected Overflow Exception "
STRING isr5_msg, "Out Of Bounds Exception "
STRING isr6_msg, "Invalid Opcode Exception "
STRI... |
src/test/ref/plus4-keyboard-test.asm | jbrandwood/kickc | 2 | 11705 | // Test reading keyboard port on the TED of the Plus/4
/// @file
/// C standard library string.h
///
/// Functions to manipulate C strings and arrays.
/// NULL pointer
// Commodore 16 / Plus/4 executable PRG file
.file [name="plus4-keyboard-test.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Bas... |
Algebra/Construct/Free/Semilattice/Definition.agda | oisdk/agda-playground | 6 | 14895 | {-# OPTIONS --cubical --safe #-}
module Algebra.Construct.Free.Semilattice.Definition where
open import Prelude
infixr 5 _∷_
data 𝒦 (A : Type a) : Type a where
[] : 𝒦 A
_∷_ : A → 𝒦 A → 𝒦 A
com : ∀ x y xs → x ∷ y ∷ xs ≡ y ∷ x ∷ xs
dup : ∀ x xs → x ∷ x ∷ xs ≡ x ∷ xs
trunc : isSet (𝒦 A)
|
test/Succeed/Issue1759-record.agda | shlevy/agda | 1,989 | 2622 | -- Andreas, 2016-02-09, should not record sections have all hidden parameters?
module _ (A : Set) where
record R : Set where
postulate
P : (a : A) → Set
-- Records have some magic to make record parameters hidden
-- in record section.
-- This leads to an error in @checkInternal@.
-- Should the pa... |
test/asset/agda-stdlib-1.0/Data/List/Relation/Binary/Equality/DecSetoid.agda | omega12345/agda-mode | 0 | 3081 | <gh_stars>0
------------------------------------------------------------------------
-- The Agda standard library
--
-- Decidable equality over lists parameterised by some setoid
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
open import Relation.Binary
mo... |
create-file.scpt | slawiko/mac-os-x-automatization | 0 | 4673 | <filename>create-file.scpt
try
tell application "Finder" to set the currentFolder to (folder of the front window as alias)
on error
set the currentFolder to path to desktop folder as alias
end try
set newfilename to "Filename"
(*repeat while newfilename = ""*)
set returnedValue to display dialog "Enter name of file" ... |
14. FIBONACCI NUMBER.asm | rng70/Assembly-Programming | 0 | 96280 | <reponame>rng70/Assembly-Programming
; THIS SIMPLE PROGRAM TAKE A MULTI DIGIT NUMBER N AS INPUT
; AND PRINTS ALL THE FIBONACCI NUMBER UPTO THE N-TH FIBONACCI NUMBER
.MODEL SMALL
.STACK 100H
.DATA
MSG DB 0AH, 0DH, ' ENTER THE VALUE OF N: $'
MSG2 DB 0AH, 0DH, 0AH, 0DH, ' THE FIBONACCI SEQUENCE: ', 0AH,... |
oeis/102/A102480.asm | neoneye/loda-programs | 11 | 94391 | ; A102480: Triangle read by rows: row n contains the numbers C(n,k)^(k-1) for 0 <= k <= n, n >= 0.
; Submitted by <NAME>
; 1,1,1,1,1,1,1,1,3,1,1,1,6,16,1,1,1,10,100,125,1,1,1,15,400,3375,1296,1,1,1,21,1225,42875,194481,16807,1,1,1,28,3136,343000,9834496,17210368,262144,1,1,1,36,7056,2000376,252047376,4182119424,2176782... |
Definition/LogicalRelation/Substitution/Introductions/Pair.agda | CoqHott/logrel-mltt | 2 | 9565 | {-# OPTIONS --safe #-}
open import Definition.Typed.EqualityRelation
module Definition.LogicalRelation.Substitution.Introductions.Pair {{eqrel : EqRelSet}} where
open EqRelSet {{...}}
open import Definition.Untyped as U hiding (wk)
open import Definition.Untyped.Properties
open import Definition.Typed
open import De... |
xv6-l/stressfs.asm | xsuler/osPlayground | 0 | 87286 |
_stressfs: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "fs.h"
#include "fcntl.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
int fd, i;
char path[] = "stressfs0";
7: b8 30 00 0... |
BG-andalf_the_White-Gray/src/nametables.asm | Gumball2415/nes-scribbles | 0 | 247683 | <filename>BG-andalf_the_White-Gray/src/nametables.asm
.include "defines.inc"
.include "global.inc"
.segment "BANK0"
nametable_text:
.byte $01,$02,$03,$04,$04,$00,$00,$05,$00,$06,$07,$08,$09,$0a,$0b,$0c,$0d,$0e
; loads nametable_text
.proc WRITE_NAMETABLE
LDA #<nametable_text
STA temp_16_0
LDA #>nametable_t... |
sendImage.applescript | fabiopigi/iMessageSpam | 0 | 1282 | on run argv
tell application "Messages"
set contact to buddy (item 1 of argv) of service "E:<EMAIL>"
set flagPosixPath to (item 2 of argv) as POSIX file
send flagPosixPath to contact
end tell
end run |
programs/oeis/111/A111736.asm | neoneye/loda | 22 | 59 | ; A111736: Distance between k*(n-th prime) and next prime, k=4 case.
; 3,1,3,1,3,1,3,3,5,11,3,1,3,1,3,11,3,7,1,9,1,1,5,3,1,5,7,3,3,5,1,17,9,1,3,3,3,1,5,9,3,3,5,1,9,1,9,15,3,3,5,11,3,5,3,9,11,3,1,5,19,9,1,5,7,9,3,13,11,3,11,3,3,1,7,11,3,9,3,1,17,9,9,1,3,5,5,3,3,9,3,15,1,9,1,5,3,3,7
seq $0,40 ; The prime numbers.
mul $0... |
programs/oeis/076/A076118.asm | karttu/loda | 0 | 91063 | <gh_stars>0
; A076118: a(n) = sum_k {n/2<=k<=n} k * (-1)^(n-k) * C(k,n-k).
; 0,1,1,-1,-3,-2,2,5,3,-3,-7,-4,4,9,5,-5,-11,-6,6,13,7,-7,-15,-8,8,17,9,-9,-19,-10,10,21,11,-11,-23,-12,12,25,13,-13,-27,-14,14,29,15,-15,-31,-16,16,33,17,-17,-35,-18,18,37,19,-19,-39,-20,20,41,21,-21,-43,-22,22,45,23,-23,-47,-24,24,49,25,-25,-5... |
Validation/pyFrame3DD-master/gcc-master/gcc/ada/bindo-augmentors.adb | djamal2727/Main-Bearing-Analytical-Model | 0 | 5565 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
tools-src/gnu/gcc/gcc/ada/5zosinte.ads | enfoTek/tomato.linksys.e2000.nvram-mod | 80 | 23077 | ------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
Lab1/src/data.adb | KHYehor/Parallel-Programming | 0 | 3841 | -----------Package Data, body-----------
with Text_IO, Ada.Integer_Text_IO;
use Text_IO, Ada.Integer_Text_IO;
with Data;
package body Data is
--Multiplication of matrices
function Matrix_Multiplication(A, B: in Matrix) return Matrix is
P: Matrix;
S: Integer;
begin
for k in 1..n loop
... |
src/gl/interface/gl-objects-vertex_arrays.ads | Roldak/OpenGLAda | 79 | 2657 | <filename>src/gl/interface/gl-objects-vertex_arrays.ads
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
package GL.Objects.Vertex_Arrays is
type Vertex_Array_Object is new GL_Object with private;
procedure Bind (Object : Vertex_Array_Object);
p... |
ffight/lcs/boss/36.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | 6 | 85520 | copyright zengfr site:http://github.com/zengfr/romhack
00621C move.b ($a,A3), ($36,A4) [boss+14, container+14, enemy+14]
006222 move.b ($b,A3), ($62,A4) [boss+36, container+36, enemy+36]
040906 rts [boss+36]
04093E rts [boss+36]
040BF8 andi.b #$1f, ($36,A6) [boss+36]
040BFE bra $407f6 [boss+36]
copyright ... |
Categories/Agda/ISetoids/Cocomplete.agda | copumpkin/categories | 98 | 1828 | <reponame>copumpkin/categories<gh_stars>10-100
{-# OPTIONS --universe-polymorphism #-}
module Categories.Agda.ISetoids.Cocomplete where
open import Level
open import Relation.Binary using (Setoid; module Setoid; Preorder; module Preorder; Rel; _=[_]⇒_)
open import Data.Product using (Σ; _,_)
-- import Relation.Binary.... |
antlr/Sequence.g4 | andreatulimiero/scion | 211 | 3779 | grammar Sequence;
fragment HEXA: [1-9a-fA-F][0-9a-fA-F]* | '0';
WHITESPACE: [ \t\r\n]+ -> skip;
ZERO: '0';
NUM: [1-9][0-9]*;
WILDCARDAS: '-' '0';
LEGACYAS: '-' NUM;
AS: '-' HEXA ':' HEXA ':' HEXA;
HASH: '#';
COMMA: ',';
QUESTIONMARK: '?';
PLUS: '+';
ASTERISK: '*';
OR: '|';
LPAR: '(';
RPAR: ')';
start: sequence EOF;
... |
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1462.asm | ljhsiun2/medusa | 9 | 24470 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0xfcea, %rsi
lea addresses_normal_ht+0x2d6a, %rdi
nop
and %r11, %r11
mov $0, %rcx
rep movsl
add $23731, %r9
lea addresses_UC_ht+0x52a, %rdx
clflush (%rdx)
and $13971, %r13
mov ... |
tri.asm | blu/m68k-misc | 3 | 172687 | ; control symbols:
; target_cpu (numerical): select target cpu
; 0: 68000
; 1: 68010
; 2: 68020
; 3: 68030
; 4: 68040
; 6: 68060
; do_wait (define): enforce spinloop at end of frame
; do_morfe (define): enforce morfe compatibility
if alt_plat == 0
include "plat_a2560u.inc"
else
include "plat_a2560k.inc"
endif
t... |
2IMA/SystemesConcurrents/tp6/lr-synchro-basique.adb | LagOussama/enseeiht | 1 | 4039 | <reponame>LagOussama/enseeiht
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Exceptions;
-- Lecteurs concurrents, approche automate. Pas de politique d'accès.
package body LR.Synchro.Basique is
function Nom_Strategie return String is
begin
return "Automate, lecteurs concurrents, sans politique d'accès";
... |
Thesis/SIRelBigStep/ArithExtra.agda | inc-lc/ilc-agda | 10 | 10769 | module Thesis.SIRelBigStep.ArithExtra where
open import Relation.Binary.PropositionalEquality
open import Data.Nat public
open import Data.Nat.Properties public
open import Relation.Binary hiding (_⇒_)
lt1 : ∀ {k n} → k < n → k ≤ n
lt1 (s≤s p) = ≤-step p
m∸n≤m : ∀ m n → m ∸ n ≤ m
m∸n≤m m zero = ≤-refl
m∸n≤m zero (su... |
io-test.agda | rfindler/ial | 29 | 2424 | <filename>io-test.agda
module io-test where
open import io
open import string
open import unit
main : IO ⊤
main = (readFiniteFile "hello-world.txt") >>= λ x → writeFile "output.txt" x
|
examples/8ball.asm | kspalaiologos/asmbf | 67 | 9876 | <filename>examples/8ball.asm
; Build me with `bfmake -t 8ball.asm'!
; This is an example of _heavily_ optimized asm2bf code.
inc r1
raw .[
in r1
add r2, r1
nav r1
raw .]
mod r2, 20
#function gencase(text)
# emit("<")
# gen_text(text)
# emit(">>")
#end
#function build_case(text)
# gencase(text)
# emit("]<... |
libsrc/osca/change_volume.asm | meesokim/z88dk | 0 | 167404 | ;
; Old School Computer Architecture - interfacing FLOS
; <NAME>, 2011
;
; Wait video hardware to be ready
;
; $Id: change_volume.asm,v 1.2 2015/01/19 01:33:00 pauloscustodio Exp $
;
INCLUDE "flos.def"
PUBLIC change_volume
EXTERN flos_err
change_volume:
ld a,l ; __FASTCALL__
call kjt_change_volume
jp f... |
fastmodel-parser/src/main/antlr4/imports/DqcRule.g4 | alibaba/fast-modeling-language | 9 | 2148 | parser grammar DqcRule;
dqcRuleStatements:
createDqcRule
| addDqcRule
| changeDqcRule
| dropDqcRule
;
createDqcRule:
KW_CREATE replace? KW_DQC_RULE ifNotExists? qualifiedName alias?
KW_ON KW_TABLE tableName partitionSpec?
(LPAREN dqcColumnOrTableRuleList RPAREN)?
comment?
(KW_WIT... |
oeis/157/A157623.asm | neoneye/loda-programs | 11 | 22376 | <reponame>neoneye/loda-programs
; A157623: 781250n^2 - 455000n + 66249.
; 392499,2281249,5732499,10746249,17322499,25461249,35162499,46426249,59252499,73641249,89592499,107106249,126182499,146821249,169022499,192786249,218112499,245001249,273452499,303466249,335042499,368181249,402882499,439146249,476972499,516361249,5... |
lib/Haskell/Prim/Tuple.agda | dxts/agda2hs | 55 | 5912 | <filename>lib/Haskell/Prim/Tuple.agda
module Haskell.Prim.Tuple where
open import Agda.Builtin.List
open import Haskell.Prim
private
variable
as : List Set
--------------------------------------------------
-- Tuples
infixr 5 _∷_
data Tuple : List Set → Set where
[] : Tuple []
_∷_ : a → Tuple as → Tupl... |
gdb/testsuite/gdb.ada/vla/vla.adb | greyblue9/binutils-gdb | 1 | 20128 | <gh_stars>1-10
-- Copyright 2019-2021 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later ... |
Cubical/Algebra/RingSolver/NatAsAlmostRing.agda | dan-iel-lee/cubical | 0 | 6025 | <reponame>dan-iel-lee/cubical<filename>Cubical/Algebra/RingSolver/NatAsAlmostRing.agda
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.Algebra.RingSolver.NatAsAlmostRing where
open import Cubical.Foundations.Prelude
open import Cubical.Data.Nat
open import Cubical.Algebra.RingSolver.AlmostRing
open i... |
programs/oeis/081/A081610.asm | jmorken/loda | 1 | 176459 | ; A081610: Number of numbers <= n having at least one 2 in their ternary representation.
; 0,0,1,1,1,2,3,4,5,5,5,6,6,6,7,8,9,10,11,12,13,14,15,16,17,18,19,19,19,20,20,20,21,22,23,24,24,24,25,25,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,65,... |
oeis/061/A061094.asm | neoneye/loda-programs | 11 | 14473 | <gh_stars>10-100
; A061094: The alternating group A_n contains an element x which is not conjugate to its inverse (equivalently not all the entries in the character table of A_n are real numbers).
; Submitted by <NAME>iga
; 3,4,7,8,9,11,12,13,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40... |
src/helloworld.agda | P3trur0/vagrant-agda | 1 | 5202 | module helloworld where
open import IO
main = run (putStrLn "Hello World")
|
extern/gnat_sdl/gnat_sdl2/src/sdl_keyboard_h.ads | AdaCore/training_material | 15 | 15173 | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with SDL_scancode_h;
with SDL_keycode_h;
with SDL_stdinc_h;
limited with SDL_video_h;
with Interfaces.C.Strings;
limited with SDL_rect_h;
package SDL_keyboard_h is
-- Simple DirectMedia Layer
-- Copyright (C) 1997-2018 <NAME> <<EM... |
Task/Anagrams/Ada/anagrams.ada | mullikine/RosettaCodeData | 1 | 22946 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Indefinite_Ordered_Maps;
with Ada.Containers.Indefinite_Ordered_Sets;
procedure Words_Of_Equal_Characters is
package Set_Of_Words is new Ada.Containers.Indefinite_Ordered_Sets (String);
use Ada.Containers, Set_Of_Words;
package Anagrams is new Ada.Conta... |
oeis/336/A336809.asm | neoneye/loda-programs | 11 | 167093 | ; A336809: a(n) = (n!)^2 * Sum_{k=0..n} (k+1) / ((n-k)!)^2.
; 1,3,21,271,5649,174051,7447573,422836191,30767443521,2792343036259,309252314731701,41051709426337743,6434479982900111761,1175819833620882461571,247785659825802622964469,59649892258930263778729951,16268290830606063971956320513
lpb $0
add $0,1
sub $1,1
... |
Cubical/Algebra/Ring.agda | knrafto/cubical | 0 | 15228 | {-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.Algebra.Ring where
open import Cubical.Algebra.Ring.Base public
open import Cubical.Algebra.Ring.Properties public
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_21829_201.asm | ljhsiun2/medusa | 9 | 161262 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1ad16, %rcx
nop
nop
nop
add $56197, %r9
movw $0x6162, (%rcx)
and %r9, %r9
lea addresses_normal_ht+0x54e8, %rdx
clflush (%rdx)
nop
cmp %rcx, %rcx
mov (%rdx), %r11d
nop
nop
nop... |
input/and/and.asm | L-u-k-e/Turing-Machine-Simulator | 1 | 91392 | #This TM soultion performs the bitwise and operation.
#So, '1111&0101=' becomes '1111&0101=0101'
alpha "&=01XY"
!a
cmp '&'
brae !a_&
cmp '0'
brae !a_0
cmp '1'
brae !a_1
fAiL
!a_0
draw 'X'
right 1
!a_0*
cmp '&'
brae !a_0&
cmp '='
brae !fail
right 1
brane !a_0*
!a_0&
right 1
cmp... |
programs/oeis/051/A051870.asm | neoneye/loda | 22 | 19249 | ; A051870: 18-gonal (or octadecagonal) numbers: a(n) = n*(8*n-7).
; 0,1,18,51,100,165,246,343,456,585,730,891,1068,1261,1470,1695,1936,2193,2466,2755,3060,3381,3718,4071,4440,4825,5226,5643,6076,6525,6990,7471,7968,8481,9010,9555,10116,10693,11286,11895,12520,13161,13818,14491,15180,15885,16606,17343,18096,18865,19650,... |
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_dconst_sqr2_2.asm | meesokim/z88dk | 0 | 5820 |
SECTION code_fp_math48
PUBLIC asm_dconst_sqr2_2
EXTERN am48_dconst_sqr2_2
defc asm_dconst_sqr2_2 = am48_dconst_sqr2_2
|
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccixp_m482d.asm | meesokim/z88dk | 0 | 5064 | <reponame>meesokim/z88dk
SECTION code_fp_math48
PUBLIC cm48_sdccixp_m482d
EXTERN error_lznc
cm48_sdccixp_m482d:
; convert math48 double to sdcc_float
;
; enter : AC' = math48 double
;
; exit : DEHL = sdcc_float
; (exx set is swapped)
;
; uses : af, bc, de, hl, bc', de', hl'
... |
llvm-gcc-4.2-2.9/gcc/ada/s-casuti.adb | vidkidz/crossbridge | 1 | 17316 | <reponame>vidkidz/crossbridge<filename>llvm-gcc-4.2-2.9/gcc/ada/s-casuti.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c43214e.ada | best08618/asylo | 7 | 30265 | <reponame>best08618/asylo<gh_stars>1-10
-- C43214E.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and docume... |
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-diopit.ads | orb-zhuchen/Orb | 0 | 13535 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/static_initializer2.ads | best08618/asylo | 7 | 17114 | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/static_initializer2.ads
-- { dg-do compile }
package Static_Initializer2 is
type A is array (1..5) of Integer;
f : constant A := (1, 2, 3, 4, 5);
i1 : integer renames f(1);
i2 : integer renames f(2);
i3 : integer renames f(3);
i4 : integer... |
archive/agda-1/IsFormula.agda | m0davis/oscar | 0 | 8226 | <filename>archive/agda-1/IsFormula.agda
module IsFormula where
open import Formula
data IsFormula : Formula → Set
where
⟨_⟩ : (φ : Formula) → IsFormula φ
|
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_21829_1289.asm | ljhsiun2/medusa | 9 | 92483 | <filename>Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_21829_1289.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x6782, %r10
nop
nop
nop
nop
nop
dec %rcx
movups (%r10), %xmm0
vpextrq $0, %xmm0, %rbx
inc %r11
... |
test/Fail/Erased-cubical-Import.agda | cruhland/agda | 1,989 | 9077 | <reponame>cruhland/agda<gh_stars>1000+
{-# OPTIONS --erased-cubical #-}
-- Modules that use --cubical can be imported when --erased-cubical is
-- used.
open import Erased-cubical-Import.Cubical
-- However, definitions from such modules can only be used in erased
-- contexts.
_ : {A : Set} → A → ∥ A ∥
_ = ∣_∣
|
v8.55.ads | myplus1/my | 0 | 9523 | <reponame>myplus1/my
{"version_code":552023,"content":"
<p>.</p>
<li>.</li>
","url":""
}
|
Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i9-9900K_12_0xa0.log_21829_312.asm | ljhsiun2/medusa | 9 | 177255 | <filename>Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i9-9900K_12_0xa0.log_21829_312.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x9462, %rsi
lea addresses_WC_ht+0x1659a, %rdi
clflush (%rdi)
nop
nop
and $47427, %r14
mov $55... |
alloy4fun_models/trashltl/models/1/zyMmXacGry8bijrMb.als | Kaixi26/org.alloytools.alloy | 0 | 3661 | <reponame>Kaixi26/org.alloytools.alloy<filename>alloy4fun_models/trashltl/models/1/zyMmXacGry8bijrMb.als
open main
pred idzyMmXacGry8bijrMb_prop2 {
no File until some File
}
pred __repair { idzyMmXacGry8bijrMb_prop2 }
check __repair { idzyMmXacGry8bijrMb_prop2 <=> prop2o } |
src/dds-request_reply-replier.ads | alexcamposruiz/dds-requestreply | 0 | 16319 | <filename>src/dds-request_reply-replier.ads
with Dds.Topic;
with DDS.Entity_Params;
package DDS.Request_Reply.Replier is
type Ref is limited interface;
type Ref_Access is access all Ref;
function Create_Writer_Topic
(Self : not null access Ref;
Params : DDS.Entity_Params.EntityParams;
Name... |
source/nodes/program-nodes-array_component_associations.ads | reznikmm/gela | 0 | 27277 | <filename>source/nodes/program-nodes-array_component_associations.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with ... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_580.asm | ljhsiun2/medusa | 9 | 23363 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1d61c, %rsi
inc %rdi
vmovups (%rsi), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %rcx
nop
nop
and %r13, %r13
lea addresses_normal_ht+0x1b79c, %rdx
cmp $13059, %r10
movw $0x6... |
source/league/league-text_codecs.ads | svn2github/matreshka | 24 | 28553 | <filename>source/league/league-text_codecs.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
oeis/099/A099211.asm | neoneye/loda-programs | 11 | 92989 | <gh_stars>10-100
; A099211: a(n)=-2a(n-1)+4a(n-3).
; Submitted by <NAME>
; 1,-2,4,-4,0,16,-48,96,-128,64,256,-1024,2304,-3584,3072,3072,-20480,53248,-94208,106496,0,-376832,1179648,-2359296,3211264,-1703936,-6029312,24903680,-56623104,89128960,-78643200,-69206016
mov $1,1
lpb $0
sub $0,1
add $3,$1
add $2,$3
su... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.