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 |
|---|---|---|---|---|
programs/oeis/024/A024041.asm | neoneye/loda | 22 | 9056 | ; A024041: a(n) = 4^n - n^5.
; 1,3,-16,-179,-768,-2101,-3680,-423,32768,203095,948576,4033253,16528384,66737571,267897632,1072982449,4293918720,17178449327,68717587168,274875430845,1099508427776,4398042427003,17592180890784,70368737741321,281474968748032,1125899897076999,4503599615489120,18014398495133077,7205759402071... |
Task/Hash-from-two-arrays/Ada/hash-from-two-arrays.ada | LaudateCorpus1/RosettaCodeData | 1 | 5092 | <filename>Task/Hash-from-two-arrays/Ada/hash-from-two-arrays.ada
with Ada.Strings.Hash;
with Ada.Containers.Hashed_Maps;
with Ada.Text_Io;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
procedure Hash_Map_Test is
function Equivalent_Key (Left, Right : Unbounded_String) return Boolean is
begin
retur... |
Lab10/lab10_3r.asm | richardhyy/AssemblyLab | 3 | 1665 | ; Task in Project1
; @ Improved dtoc function, supporting the conversion from dword HEX into string
;
; name: dtoc
; func: convert HEX dword(16bit) data into a string of DEC which ends with 0
; args: (ax) = lower 16bit
; (dx) = higher 16bit
; ds:si = where the string begins
assume cs:code
data segment
db 10 dup (... |
aunit/aunit-test_cases.ads | btmalone/alog | 0 | 16494 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
Snippeturi/fibonacci_lgput.asm | DanBrezeanu/IOCLA | 2 | 11116 | <reponame>DanBrezeanu/IOCLA
%include "io.inc"
section .data
a11 dd 0
a12 dd 1
a21 dd 1
a22 dd 1
b11 dd 1
b12 dd 0
b21 dd 0
b22 dd 1
aux11 dd 0
aux12 dd 0
aux21 dd 0
aux22 dd 0
section .bss
n: resb 4
section .text
global CMAIN
CMAIN:
mov ebp, esp; for correct debugging
;mov eax, 3
;mov ebx, 0
;mov e... |
scripts/LavenderMart.asm | opiter09/ASM-Machina | 1 | 104577 | LavenderMart_Script:
jp EnableAutoTextBoxDrawing
LavenderMart_TextPointers:
dw LavenderCashierText
dw LavenderMartText2
dw LavenderMartText3
LavenderMartText2:
text_far _LavenderMartText2
text_end
LavenderMartText3:
text_asm
CheckEvent EVENT_RESCUED_MR_FUJI
jr nz, .Nugget
ld hl, .ReviveText
call PrintText... |
asm_main.asm | CISVVC/cis208-chapter05-arrays-DianaMayorquin | 0 | 102096 | <reponame>CISVVC/cis208-chapter05-arrays-DianaMayorquin<filename>asm_main.asm
;
; file: asm_main.asm
%include "asm_io.inc"
%define ARRAY_SIZE 5
;
; initialized data is put in the .data segment
;
segment .data
array1: db 1,2,3,4,5
; uninitialized data is put in the .bss segment
;
segment .bss
;
; code is put in the .te... |
src/dotnet-gqlgen/GraphQLSchema.g4 | dnsfour/DotNetGraphQLQueryGen | 0 | 6592 | grammar GraphQLSchema;
DIGIT : [0-9];
STRING_CHARS: [a-zA-Z0-9 \t`~!@#$%^&*()_+={}|\\:\"'\u005B\u005D;<>?,./-];
TRUE : 'true';
FALSE : 'false';
SCHEMA : 'schema';
EXTEND : 'extend';
TYPE : 'type';
SCALAR : 'scalar';
INPUT : 'input';
ENUM : 'enum';
ID : [a-z_... |
libsrc/_DEVELOPMENT/arch/zxn/memory/c/sccz80/zxn_mangle_bank_state.asm | jpoikela/z88dk | 38 | 25849 | <reponame>jpoikela/z88dk
; unsigned int zxn_mangle_bank_state(unsigned int state)
SECTION code_clib
SECTION code_arch
PUBLIC zxn_mangle_bank_state
EXTERN asm_zxn_mangle_bank_state
defc zxn_mangle_bank_state = asm_zxn_mangle_bank_state
|
test/Succeed/Issue2577.agda | alhassy/agda | 1 | 17137 | <filename>test/Succeed/Issue2577.agda<gh_stars>1-10
postulate
Wrap : Set → Set
instance wrap : {A : Set} → A → Wrap A
postulate
I : Set
P : I → Set
HO = ∀ {i} {{p : P i}} → P i
postulate
X : {{ho : HO}} → Set
Y : {{ho : Wrap HO}} → Set
Works : Set
Works = X
-- Debug output shows messed up deBruijn ind... |
oeis/324/A324468.asm | neoneye/loda-programs | 11 | 90699 | ; A324468: a(n)=r(n)+r(n+1)+r(n+2), where r(n) is the ruler sequence A007814.
; Submitted by <NAME>(s4)
; 1,3,2,3,1,4,3,4,1,3,2,3,1,5,4,5,1,3,2,3,1,4,3,4,1,3,2,3,1,6,5,6,1,3,2,3,1,4,3,4,1,3,2,3,1,5,4,5,1,3,2,3,1,4,3,4,1,3,2,3,1,7,6,7,1,3,2,3,1,4,3,4,1,3,2,3,1,5,4,5,1,3,2,3,1,4,3,4,1,3,2,3,1,6,5,6,1,3,2,3
add $0,3
bin ... |
oeis/143/A143827.asm | neoneye/loda-programs | 11 | 19828 | ; A143827: Numbers n such that 8n^2 - 1 is prime.
; Submitted by <NAME>
; 1,2,3,4,5,9,11,12,14,17,18,19,21,23,25,26,28,31,32,38,40,46,49,51,54,56,59,63,66,67,70,77,79,80,82,86,89,93,94,96,98,100,102,103,107,110,114,116,119,121,124,128,133,135,137,140,144,147,150,152,156,161,166
mov $2,332202
lpb $2
seq $3,10051 ; Ch... |
test/filters-cases/vc-threadlocalddef.asm | OfekShilon/compiler-explorer | 4,668 | 22132 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.15.26729.0
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
PUBLIC ?g@@3Usafetls@@A ; g
PUBLIC ?h@@3HA ; h
_TLS SEGMENT
?h@@3HA DD 012345H ; h
ORG $+4
?g@@3Usafetls@@A DD 098765H ; g
ORG $+8
_TLS ENDS
PUBLIC ?value@safetls... |
Task/Greyscale-bars-Display/Ada/greyscale-bars-display.ada | LaudateCorpus1/RosettaCodeData | 1 | 16767 | <filename>Task/Greyscale-bars-Display/Ada/greyscale-bars-display.ada
with Gtk.Window; use Gtk.Window;
with Gtk.Enums;
with Gtk.Handlers;
with Gtk.Main;
with Gdk;
with Gdk.Event;
with Glib; use Glib;
with Cairo; use Cairo;
with Gdk.Cairo;
pragma Elaborate_All (Gtk.Handlers);
procedure Greyscale is
... |
parser-dialect/parser-mysql/src/main/antlr4/imports/mysql/DMLStatement.g4 | zhaox1n/parser-engine | 0 | 232 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
src/trendy_test.ads | jquorning/trendy_test | 7 | 20461 | with Ada.Calendar;
with Ada.Containers.Indefinite_Vectors;
with Ada.Containers.Vectors;
with Ada.Strings.Unbounded;
with Trendy_Locations;
-- A super simple testing library for Ada. This aims for minimum registration
-- and maximum ease of use. "Testing in as few lines as possible." There is
-- no code generation ... |
stm32f1/stm32f103xx/svd/stm32_svd-usb.ads | ekoeppen/STM32_Generic_Ada_Drivers | 1 | 1139 | -- This spec has been automatically generated from STM32F103.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.USB is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype EP0R_EA_Field is STM32_SVD.UInt4... |
tools/aflex/src/aflex.adb | svn2github/matreshka | 24 | 13532 |
-- TITLE aflex - main program
--
-- AUTHOR: <NAME> (UCI)
-- DESCRIPTION main subprogram of aflex, calls the major routines in order
-- $Header: /co/ua/self/arcadia/aflex/ada/src/RCS/aflex.a,v 1.11 90/10/15 20:00:40 self Exp Locker: self $
--***************************************************************************
--... |
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-taenca.adb | orb-zhuchen/Orb | 0 | 18428 | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
libsrc/target/sam/input/in_KeyPressed.asm | ahjelm/z88dk | 640 | 163814 | ; uint in_KeyPressed(uint scancode)
; 09.2005 aralbrec - update for <NAME> 2021
SECTION code_clib
PUBLIC in_KeyPressed
PUBLIC _in_KeyPressed
; Determines if a key is pressed using the scan code
; returned by in_LookupKey.
; enter : l = scan row + flags
; h = key mask
; exit : carry = key is pressed & HL = 1... |
src/regex1.agda | shinji-kono/automaton-in-agda | 0 | 9439 | {-# OPTIONS --allow-unsolved-metas #-}
module regex1 where
open import Level renaming ( suc to succ ; zero to Zero )
open import Data.Fin
open import Data.Nat hiding ( _≟_ )
open import Data.List hiding ( any ; [_] )
-- import Data.Bool using ( Bool ; true ; false ; _∧_ )
-- open import Data.Bool using ( Bool ; true ... |
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/___sint2fs.asm | meesokim/z88dk | 0 | 86749 |
SECTION code_fp_math48
PUBLIC ___sint2fs
EXTERN cm48_sdcciyp_sint2ds
defc ___sint2fs = cm48_sdcciyp_sint2ds
|
programs/oeis/035/A035329.asm | jmorken/loda | 1 | 29782 | ; A035329: a(n) = n*(2*n+5)*(2*n+7).
; 0,63,198,429,780,1275,1938,2793,3864,5175,6750,8613,10788,13299,16170,19425,23088,27183,31734,36765,42300,48363,54978,62169,69960,78375,87438,97173,107604,118755,130650,143313,156768,171039,186150,202125,218988,236763
mul $0,2
add $0,4
mov $1,$0
pow $0,2
sub $0,13
mul $0,$1
mov $... |
Pandoc and Textutils/Pandoc-MDtoDOCX.applescript | rogues-gallery/applescript | 360 | 769 | set source_file to choose file with prompt "Where is the markdown file?" of type {"md", "markdown"}
set path_file to POSIX path of source_file
set dest_file to choose folder with prompt "Where to save the docx file?"
set dest_file to POSIX path of dest_file
tell application "Finder" to set {dispName, nameExt, isHidde... |
programs/oeis/293/A293810.asm | karttu/loda | 0 | 22721 | ; A293810 o=1: The truncated kernel function of n: the product of distinct primes dividing n, but excluding the largest prime divisor of n.
; Coded manually 2021-02-25 by <NAME>, https://github.com/karttu
; Essentially implementing A007947 without taking its largest prime divisor into the product
; Note that A293810(n... |
programs/oeis/083/A083723.asm | neoneye/loda | 22 | 560 | ; A083723: a(n) = (prime(n)+1)*n - 1.
; 2,7,17,31,59,83,125,159,215,299,351,455,545,615,719,863,1019,1115,1291,1439,1553,1759,1931,2159,2449,2651,2807,3023,3189,3419,3967,4223,4553,4759,5249,5471,5845,6231,6551,6959,7379,7643,8255,8535,8909,9199,9963
mov $1,$0
seq $1,40 ; The prime numbers.
mov $2,$0
mul $2,$1
add $2,... |
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_433.asm | ljhsiun2/medusa | 9 | 29690 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x1d3b8, %rsi
lea addresses_A_ht+0x1515e, %rdi
nop
nop
nop
nop
add %r8, %r8
mov $65, %rcx
rep movsq
nop
nop
nop
inc %r11
lea addresses_WT_ht+0x4b8e, %rsi
lea addresses_UC_ht+0x1483e, %rdi
nop
xor %... |
tests/stream.adb | yannickmoy/SPARKNaCl | 76 | 18268 | with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Core; use SPARKNaCl.Core;
with SPARKNaCl.Debug; use SPARKNaCl.Debug;
with SPARKNaCl.Stream; use SPARKNaCl.Stream;
with SPARKNaCl.Hashing; use SPARKNaCl.Hashing;
procedure Stream
is
Firstkey : constant Salsa20_Key :=
Construct ((16#1b#, 16#27#, 16#... |
testcases/multiquery/multiquery.adb | jrmarino/AdaBase | 30 | 836 | with AdaBase;
with Connect;
with Ada.Text_IO;
with Ada.Exceptions;
procedure MultiQuery is
package CON renames Connect;
package TIO renames Ada.Text_IO;
package EX renames Ada.Exceptions;
numrows : AdaBase.Affected_Rows;
setting : Boolean;
nextone : Boolean;
SQL : constant String :=
"... |
programs/oeis/257/A257213.asm | neoneye/loda | 22 | 12451 | ; A257213: Least d>0 such that floor(n/d) = floor(n/(d+1)).
; 1,2,3,2,3,3,4,4,3,5,4,4,5,5,5,4,6,6,5,5,7,6,6,6,5,7,7,7,6,6,8,8,7,7,7,6,8,8,8,8,7,7,9,9,9,8,8,8,7,10,9,9,9,9,8,8,10,10,10,10,9,9,9,8,11,11,10,10,10,10,9,9,11,11,11,11,11,10,10,10,9,12,12,12,11,11,11,11,10,10,13,12,12,12,12,12,11,11,11,10
mov $2,$0
lpb $0
... |
oeis/122/A122186.asm | neoneye/loda-programs | 11 | 166134 | ; A122186: First row sum of the 4 X 4 matrix M^n, where M={{10, 9, 7, 4}, {9, 8, 6, 3}, {7, 6, 4, 2}, {4, 3, 2, 1}}.
; 1,30,707,16886,403104,9623140,229729153,5484227157,130922641160,3125460977225,74612811302754,1781200165693270,42521840081752984,1015105948653689061,24233196047277585233,578508865448619225434
mul $0,3
... |
libsrc/stdio/x07/fputc_cons.asm | grancier/z180 | 0 | 86696 | <gh_stars>0
;
; ROM Console routine for the Canon X-07
; By <NAME> - 10/6/2011
;
; $Id: fputc_cons.asm,v 1.3 2016/05/15 20:15:46 dom Exp $
;
SECTION code_clib
PUBLIC fputc_cons_native
.fputc_cons_native
ld hl,2
add hl,sp
ld a,(hl)
jp $C1BE
|
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c2/c23006c.ada | best08618/asylo | 7 | 19133 | -- C23006C.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 documentation contained herein.
-- Unlimit... |
src/Internals/protypo-code_trees-interpreter-compiled_functions.adb | fintatarta/protypo | 0 | 2523 | <reponame>fintatarta/protypo
pragma Ada_2012;
with Protypo.Code_Trees.Interpreter.Statements;
with Protypo.Code_Trees.Interpreter.Expressions;
pragma Warnings (Off, "no entities of ""Ada.Text_IO"" are referenced");
with Ada.Text_IO; use Ada.Text_IO;
package body Protypo.Code_Trees.Interpreter.Compiled_Functions is
... |
programs/oeis/301/A301657.asm | jmorken/loda | 1 | 9982 | ; A301657: Number of nX3 0..1 arrays with every element equal to 0, 1 or 4 horizontally or vertically adjacent elements, with upper left element zero.
; 3,4,6,9,15,26,46,83,151,276,506,929,1707,3138,5770,10611,19515,35892,66014,121417,223319,410746,755478,1389539,2555759,4700772,8646066,15902593,29249427,53798082,98950... |
src/ledscape/firmware/pin_map.asm | iontank/ThrowingBagels | 9 | 83990 | <filename>src/ledscape/firmware/pin_map.asm
; we use 32 register bytes as scratch
; so r11-r18
.asg r11, scratch
.asg r26, gpio0_mask
.asg r27, gpio1_mask
.asg r28, gpio2_mask
.asg r29, gpio3_mask
; 0
.asg 2, c0_gpio ; the gpio bank we output to
.asg gpio2_mask, c0_gpio_mask ;the gpio mask we int... |
kernel/src/syscall_entry.asm | bordode/radium | 10 | 14515 | use32
extern syscall_dispatch
global syscall_entry
global syscall_init
%define IA32_SYSENTER_CS 0x174
%define IA32_SYSENTER_ESP 0x175
%define IA32_SYSENTER_EIP 0x176
%define KERNEL_CODE 0x08
%define KERNEL_DATA 0x10
syscall_init:
xor edx, edx
mov ecx, IA32_SYSENTER_CS
mov eax, KERNEL_CODE
wrmsr
... |
oeis/344/A344004.asm | neoneye/loda-programs | 11 | 93107 | <reponame>neoneye/loda-programs
; A344004: Number of ordered subsequences of {1,...,n} containing at least three elements and such that the first differences contain only odd numbers.
; 0,0,1,3,8,17,34,63,113,196,334,560,930,1532,2511,4099,6674,10845,17600,28535,46235,74880,121236,196248,317628,514032,831829,1346043,21... |
c2nasm/library.asm | TimerChen/MxCompiler | 2 | 17400 | <filename>c2nasm/library.asm
default rel
global __array_array
global __array_new
global __string_string
global _print
global _println
global __string_length
global __string_substring
global __string_parseInt
global __string_ord
global __string__plus
global __string__less
global __string__lessEqual
global __strin... |
task-manager-shared/src/main/antlr4/com/talanlabs/taskmanager/antlr/GraphCalc.g4 | gabrie-allaigre/task-manager | 0 | 3880 | grammar GraphCalc;
compile: expr EOF
;
expr: exprAnd
;
exprAnd: exprNext (AND exprNext)*
;
exprNext: first=factor (NEXT factor)*
;
factor: ID # id
| LPAREN expr RPAREN # parens
;
NEXT : '=>' ;
AND : ',' ;
OR : '|' ;
LPAREN : '(' ;
RPAREN : ')' ;
ID : ('a'..'z'|'A'... |
source/a-tagdel.adb | ytomino/drake | 33 | 2870 | pragma Check_Policy (Trace => Ignore);
with Ada.Unchecked_Conversion;
with System.Address_To_Named_Access_Conversions;
with System.Shared_Locking;
package body Ada.Tags.Delegating is
pragma Suppress (All_Checks);
use type System.Address;
package Tag_Conv is
new System.Address_To_Named_Access_Conversions... |
PRG/levels/Airship/W6ABoss.asm | narfman0/smb3_pp1 | 0 | 101663 | ; Original address was $BA4A
; Airship boss room
.word $0000 ; Alternate level layout
.word $0000 ; Alternate object layout
.byte LEVEL1_SIZE_01 | LEVEL1_YSTART_070
.byte LEVEL2_BGPAL_05 | LEVEL2_OBJPAL_09 | LEVEL2_XSTART_18
.byte LEVEL3_TILESET_10 | LEVEL3_VSCROLL_LOCKED | LEVEL3_PIPENOTEXIT
.byte LEVEL4_BGBANK_... |
data/test_lda.asm | colinw7/C6502 | 0 | 80372 | <reponame>colinw7/C6502
LDX #$00
LDY #$00
STX $00,Y
INX
INY
STX $00,Y
INX
INY
STX $00,Y
INX
INY
STX $00,Y
OUT X
OUT Y
LDA #$00
OUT A
LDA $01
OUT A
LDX #$01
LDA $01,X
OUT A
LDA $0002
OUT A
LDA $0002,X
OUT A
BRK
|
src/MJ/Syntax/Erase.agda | metaborg/mj.agda | 10 | 2070 | open import MJ.Types
import MJ.Classtable.Core as Core
module MJ.Syntax.Erase {c}(Ct : Core.Classtable c) where
open import Prelude hiding (erase)
open import Data.Maybe as Maybe using (Maybe; just; nothing)
open import Data.Maybe.All as MayAll
open import Data.Vec as Vec hiding (_∈_)
open import Data.Star as Star
op... |
test/features/FlexInterpreter.agda | dagit/agda | 1 | 7135 | <reponame>dagit/agda<gh_stars>1-10
module FlexInterpreter where
data Ty : Set where
nat : Ty
arr : Ty -> Ty -> Ty
data Exp : Ty -> Set where
zero : Exp nat
suc : Exp (arr nat nat)
pred : Exp (arr nat nat)
app : {a b : Ty} -> Exp (arr a b) -> Exp a -> Exp b
data Nat : Set where
zero : Nat
suc : Nat... |
src/main/antlr4/com/github/jknack/css/internal/Css.g4 | jknack/css.java | 4 | 5033 | <reponame>jknack/css.java
grammar Css;
styleSheet
:
charSet?
importDecl*
namespace*
statement*
EOF
;
charSet
:
CHARSET STRING ';'
;
importDecl
:
IMPORT (STRING | URL) mediaQueryList? ';'
;
namespace
:
NAMESPACE IDENT? (STRING | URL) ';'
;
statement
:
ruleSet #... |
src/Semantics.agda | mietek/nbe-correctness | 3 | 11688 | <reponame>mietek/nbe-correctness
module Semantics where
open import Syntax public
-- Kripke models.
record Model : Set₁ where
infix 3 _⊩ᵅ_
field
World : Set
_≤_ : World → World → Set
refl≤ : ∀ {w} → w ≤ w
trans≤ : ∀ {w w′ w″} → w ≤ w′ → w′ ≤ w″ → w ≤ w″
idtrans≤ : ∀ {w w′} ... |
test/Succeed/ProjectionsPreserveGuardednessTrivialExample.agda | alhassy/agda | 3 | 16384 | -- {-# OPTIONS -v term:30 #-}
-- 2010-10-14
module ProjectionsPreserveGuardednessTrivialExample where
open import Common.Level
open import Common.Coinduction
open import Common.Product
-- Streams
infixr 5 _∷_
data Stream (A : Set) : Set where
_∷_ : (x : A) (xs : ∞ (Stream A)) → Stream A
mutual
repeat : {A : S... |
test/new_instruction.asm | killvxk/AssemblyLine | 147 | 104641 | <gh_stars>100-1000
SECTION .text
GLOBAL test
test:
sfence
lfence
mfence
clflush [r12]
xchg rax, rbp
add rax, 0xfff
xend
|
software/obsolete/new-rom/convert.asm | Noah1989/micro-21 | 1 | 173780 | public convert_A_to_hex_string_DE
public convert_A_to_binary_string_DE
public convert_HL_to_decimal_string_DE_ret_length_B
public convert_scancode_E_shift_D_to_ascii_char_A_found_NZ
convert_A_to_hex_string_DE:
PUSH AF
RRCA
RRCA
RRCA
RRCA
CALL convert_A_to_hex_string_DE_nibble
POP AF
convert_A_to_hex_string_DE_n... |
test/Fail/RecordConstructorsInErrorMessages.agda | cruhland/agda | 1,989 | 9753 | <gh_stars>1000+
-- This file tests that record constructors are used in error
-- messages, if possible.
-- Andreas, 2016-07-20 Repaired this long disfunctional test case.
module RecordConstructorsInErrorMessages where
record R : Set₁ where
constructor con
field
{A} : Set
f : A → A
{... |
test/Succeed/Erased-cubical/Without-K.agda | KDr2/agda | 0 | 6120 | <filename>test/Succeed/Erased-cubical/Without-K.agda
{-# OPTIONS --safe --cubical-compatible #-}
module Erased-cubical.Without-K where
data D : Set where
c : D
|
day16/opcode_helper.adb | thorstel/Advent-of-Code-2018 | 2 | 28066 | package body Opcode_Helper is
function Execute_Instruction
(Op : String;
Reg : Registers;
A, B, C : Unsigned_64) return Registers
is
type Operations is
(addr, addi, mulr, muli, banr, bani, borr, bori,
setr, seti, gtir, gtri, gtrr, eqir, eqri, eqrr);
Result :... |
oeis/051/A051049.asm | neoneye/loda-programs | 11 | 243153 | ; A051049: Number of moves needed to solve an (n+1)-ring baguenaudier if two simultaneous moves of the two end rings are counted as one.
; 1,1,4,7,16,31,64,127,256,511,1024,2047,4096,8191,16384,32767,65536,131071,262144,524287,1048576,2097151,4194304,8388607,16777216,33554431,67108864,134217727,268435456,536870911,1073... |
Capture One Purify.applescript | wutimobile/ApertureTool | 0 | 4175 | <reponame>wutimobile/ApertureTool<filename>Capture One Purify.applescript
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- get project flatten list
--
-- Capture One Import
-- Aperture Projects which directly contain images
-- to
-- Group / Project / Album contai... |
text/maps/pewter_mart.asm | adhi-thirumala/EvoYellow | 16 | 245787 | <gh_stars>10-100
_PewterMartText2::
text "A shady old man"
line "got me to buy"
cont "this really weird"
cont "#MON!"
para "It's totally weak"
line "and it cost ¥500!"
done
_PewterMartText3::
text "Good things can"
line "happen if you"
cont "raise #MON"
cont "diligently, even"
cont "the weak ones!"
done
|
cmd/chkdsk/chkprmt.asm | minblock/msdos | 0 | 86487 | <reponame>minblock/msdos
;******************************************************************************
;
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
; Change Log:
;
; Date Who # De... |
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1229.asm | ljhsiun2/medusa | 9 | 25755 | .global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r9
push %rcx
push %rdi
lea addresses_WT_ht+0x155b4, %rdi
nop
add $57504, %r15
movb (%rdi), %cl
nop
nop
nop
inc %r9
pop %rdi
pop %rcx
pop %r9
pop %r15
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %rbp
push %rdi
push %rdx
// Faulty Lo... |
lib/src/calc/src/grammar/Calc.g4 | angel-dart/angel_example | 0 | 5929 | <filename>lib/src/calc/src/grammar/Calc.g4
// Simple calculator grammar, nothing special.
grammar Calc;
@header {part of angel_example.calc;}
WS: (' ' | '\n' | '\r') -> skip;
CARET: '^';
MINUS: '-';
MODULO: '%';
PAREN_L: '(';
PAREN_R: ')';
PLUS: '+';
SLASH: '/';
TIMES: '*';
fragment DIGITS: [0-9]+;
fragment DOT: '.... |
core/lib/types/TwoSemiCategory.agda | AntoineAllioux/HoTT-Agda | 294 | 2777 | <gh_stars>100-1000
{-# OPTIONS --without-K --rewriting #-}
open import lib.Basics
module lib.types.TwoSemiCategory where
module _ {i j} {El : Type i} (Arr : El → El → Type j)
(_ : ∀ x y → has-level 1 (Arr x y)) where
record TwoSemiCategoryStructure : Type (lmax i j) where
field
comp : ∀ {x y z} → Arr ... |
audit/keyboard.asm | zellyn/a2audit | 22 | 161133 | ;;; Apple II keyboard and keyboard audit routines
;;; Copyright © 2017 <NAME> <<EMAIL>>
!zone keyboard {
KEYBOARDTESTS
+print
!text "PRESS 'Y', 'N', SPACE, OR ESC",$8D
+printed
jsr YNESCSPACE
rts
YNESCSPACE
lda KBDSTRB
-- lda KBD
bpl --
sta KBDSTRB
cmp #$a0 ; SPACE: bmi/bcc
bne +
clc
lda #$a0
rts
+ cmp... |
Task/Combinations/Ada/combinations-2.ada | LaudateCorpus1/RosettaCodeData | 1 | 15606 | <reponame>LaudateCorpus1/RosettaCodeData
type Five is range 0..4;
|
src/utils.adb | aeszter/sharepoint2ics | 0 | 25901 | with Ada.Text_IO;
with Ada.Characters;
with Ada.Characters.Latin_1;
with GNAT.Calendar;
with GNAT.Calendar.Time_IO;
with Ada.Calendar.Time_Zones;
package body Utils is
function Clean_Text (Source : String) return String is
use Ada.Characters.Latin_1;
Result : String (1 .. 2 * Source'Length);
K : ... |
samples/escape.adb | Letractively/ada-util | 60 | 20231 | -----------------------------------------------------------------------
-- escape -- Text Transformations
-- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010, 2011 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except i... |
tests/tcl-commands-test_data-tests.ads | thindil/tashy2 | 2 | 3836 | <gh_stars>1-10
-- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with Gnattest_Generated;
package Tcl.Commands.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Tcl.Commands.Test_Da... |
grammar/sav/B05_Component.g4 | PSSTools/py-pss-parser | 1 | 5152 | <reponame>PSSTools/py-pss-parser<filename>grammar/sav/B05_Component.g4<gh_stars>1-10
/****************************************************************************
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this wor... |
SOURCE/base/Kernel/Singularity/Isal/arm/context.asm | pmache/singularityrdk | 3 | 173048 | <reponame>pmache/singularityrdk
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; Microsoft Research Singularity
;;;
;;; Copyright (c) Microsoft Corporation. All rights reserved.
;;;
;;; This file contains x86-specific assembly code related to context save and ... |
src/Session.agda | peterthiemann/definitional-session | 9 | 12833 | module Session where
open import Data.Bool
open import Data.Fin
open import Data.Empty
open import Data.List
open import Data.List.All
open import Data.Maybe
open import Data.Nat
open import Data.Product
open import Data.Sum
open import Data.Unit
open import Function using (_$_)
open import Relation.Nullary
open impor... |
programs/oeis/084/A084213.asm | neoneye/loda | 22 | 11854 | ; A084213: Binomial transform of A081250.
; 1,4,18,76,312,1264,5088,20416,81792,327424,1310208,5241856,20969472,83881984,335536128,1342160896,5368676352,21474770944,85899214848,343597121536,1374389010432,5497557090304,21990230458368,87960926027776,351843712499712,1407374866776064,5629499500658688,22517998069743616,9007... |
tools-src/gnu/gcc/gcc/ada/sem_disp.adb | enfoTek/tomato.linksys.e2000.nvram-mod | 80 | 18938 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
programs/oeis/100/A100050.asm | neoneye/loda | 22 | 5239 | ; A100050: A Chebyshev transform of n.
; 0,1,2,0,-4,-5,0,7,8,0,-10,-11,0,13,14,0,-16,-17,0,19,20,0,-22,-23,0,25,26,0,-28,-29,0,31,32,0,-34,-35,0,37,38,0,-40,-41,0,43,44,0,-46,-47,0,49,50,0,-52,-53,0,55,56,0,-58,-59,0,61,62,0,-64,-65,0,67,68,0,-70,-71,0,73,74,0,-76,-77,0,79,80,0,-82,-83,0,85,86,0,-88,-89,0,91,92,0,-94,-... |
programs/oeis/302/A302748.asm | jmorken/loda | 1 | 22224 | ; A302748: Half thrice the previous number, rounded down, plus 1, starting with 6.
; 6,10,16,25,38,58,88,133,200,301,452,679,1019,1529,2294,3442,5164,7747,11621,17432,26149,39224,58837,88256,132385,198578,297868,446803,670205,1005308,1507963,2261945,3392918,5089378,7634068,11451103,17176655,25764983,38647475,57971213
... |
source/web/tools/wsdl2ada/wsdl-constants.ads | svn2github/matreshka | 24 | 14870 | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
library/fmGUI_ManageDataSources/fmGUI_ManageDataSources_EnsureExists.applescript | NYHTC/applescript-fm-helper | 1 | 1145 | <filename>library/fmGUI_ManageDataSources/fmGUI_ManageDataSources_EnsureExists.applescript
-- fmGUI_ManageDataSources_EnsureExists(dataSourceName:null, dataSourcePath:null)
-- <NAME>, NYHTC
-- Ensure the specified data source exists, adding it if necessary
(*
HISTORY:
1.3 - 2017-01-11 ( eshagdar ): updated for FM15 ... |
source/oasis/program-elements-function_body_declarations.ads | reznikmm/gela | 0 | 23072 | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Declarations;
with Program.Lexical_Elements;
with Program.Elements.Defining_Names;
with Program.Elements.Parameter_Specifications;
with Program.Eleme... |
test/Succeed/Issue1563-6.agda | alhassy/agda | 3 | 14943 | {-# OPTIONS --rewriting #-}
data _==_ {A : Set} (a : A) : A → Set where
idp : a == a
{-# BUILTIN REWRITE _==_ #-}
ap : {A B : Set} (f : A → B) {x y : A} →
x == y → f x == f y
ap f idp = idp
{- Circle -}
postulate
Circle : Set
base : Circle
loop : base == base
module _ (P : Set) (base* : P) (loop* : base* ... |
clients/ada/generated/src/model/-models.ads | shinesolutions/swagger-aem | 39 | 29594 | -- Adobe Experience Manager (AEM) API
-- Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
--
-- The version of the OpenAPI document: 3.5.0_pre.0
-- Contact: <EMAIL>
--
-- NOTE: This package is auto generated by OpenAPI-Generator 5.2.1.
-- https://openapi-generator.tech
-- Do not edi... |
Codes/10 Greatest of three.asm | Tanuj9043/assembly-language | 0 | 97628 | SYS_EXIT equ 1
SYS_READ equ 3
SYS_WRITE equ 4
STDIN equ 0
STDOUT equ 1
section .data
msg1 db 'Enter 1st number : '
len1 equ $-msg1
msg2 db 'Enter 2nd number : '
len2 equ $-msg2
msg3 db 'Enter 3rd number : '
len3 equ $-msg3
msg4 db '1st is greatest',10
len4 equ $-msg4
msg5 db '2nd i... |
applescript/spotifyVolumeDown.applescript | SoloUnity/Alfred-Spotify-Commands | 15 | 1884 | <filename>applescript/spotifyVolumeDown.applescript
on alfred_script(q)
tell application "Spotify"
set sound volume to sound volume - 11
end tell
end alfred_script |
firehog/ncurses/Ada95/ada_include/terminal_interface-curses-aux.ads | KipodAfterFree/KAF-2019-FireHog | 1 | 17103 | ------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding --
-- --
-- ... |
programs/oeis/196/A196279.asm | neoneye/loda | 22 | 86557 | <gh_stars>10-100
; A196279: Let r= (7n) mod 10 and x=floor(7n/10) be the last digit and leading part of 7n. Then a(n) = (x-2r)/7.
; 0,-2,-1,0,-2,-1,0,-2,-1,0,1,-1,0,1,-1,0,1,-1,0,1,2,0,1,2,0,1,2,0,1,2,3,1,2,3,1,2,3,1,2,3,4,2,3,4,2,3,4,2,3,4,5,3,4,5,3,4,5,3,4,5,6,4,5,6,4,5,6,4,5,6,7,5,6,7,5,6,7,5,6,7,8,6,7,8,6,7,8,6,7,8... |
HoTT/HLevel/Truncate.agda | michaelforney/hott | 0 | 10327 | <filename>HoTT/HLevel/Truncate.agda
{-# OPTIONS --without-K --rewriting #-}
open import HoTT.Base
open import HoTT.HLevel
module HoTT.HLevel.Truncate where
open variables
postulate _↦_ : ∀ {a} {A : Set a} → A → A → Set a
{-# BUILTIN REWRITE _↦_ #-}
postulate
∥_∥ : 𝒰 i → 𝒰 i
∣_∣ : A → ∥ A ∥
instance ∥-hlevel... |
libsrc/_DEVELOPMENT/ctype/z80/asm_isprint.asm | meesokim/z88dk | 0 | 100946 | <filename>libsrc/_DEVELOPMENT/ctype/z80/asm_isprint.asm
SECTION code_ctype
PUBLIC asm_isprint
asm_isprint:
; determine if char is in 32..126
; enter : a = char
; exit : carry if not isprint
; uses : f
cp 32
ret c
cp 127
ccf
ret
|
engine/utility.asm | richard42/dynosprite | 10 | 24394 | *********************************************************************************
* DynoSprite - utility.asm
* Copyright (c) 2013, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Re... |
copy as Markdown/safariCopyAsMDjs.applescript | RobTrew/txtquery-tools | 69 | 1066 | <filename>copy as Markdown/safariCopyAsMDjs.applescript
// Yosemite JXA (Javascript for Automation) Copy As MD for Safari
// Requires a copy **in the same folder as this script**
// of html2text.py, originally contributed by <NAME> z''l
// [html2text.py](https://github.com/aaronsw/html2text)
//
function run() {
/*jshi... |
mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/arrayfree.asm | gb-archive/really-old-stuff | 10 | 12657 | <gh_stars>1-10
; This routine is in charge of freeing an array of strings from memory
; HL = Pointer to start of array in memory
; Top of the stack = Number of elements of the array
#include once <free.asm>
__ARRAY_FREE:
PROC
LOCAL __ARRAY_LOOP
ex de, hl
pop hl ; (ret address)
ex (sp), hl ; Callee -> HL = Num... |
04-cubical-type-theory/material/Part4.agda | williamdemeo/EPIT-2020 | 0 | 15085 | <filename>04-cubical-type-theory/material/Part4.agda
{-
Part 4: Higher inductive types
• Set quotients via HITs
• Propositional truncation
• A little synthetic homotopy theory
-}
{-# OPTIONS --cubical #-}
module Part4 where
open import Cubical.Foundations.Isomorphism
open import Cubical.Data.Int hiding (_+_)
open ... |
tests/Interrupt/isr7c.asm | ZubinGou/8086-emulator | 39 | 98921 | <reponame>ZubinGou/8086-emulator<gh_stars>10-100
assume cs:code
code segment
upper:
push cx
push si
change:
mov cl,[si]
mov ch,0
jcxz ok
and byte ptr [si],11011111b
inc si
jmp short change
ok:
pop si
pop cx
iret
code e... |
agda-stdlib/src/Data/Vec/Functional/Relation/Binary/Pointwise.agda | DreamLinuxer/popl21-artifact | 5 | 2235 | ------------------------------------------------------------------------
-- The Agda standard library
--
-- Pointwise lifting of relations over Vector
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Data.Vec.Functional.Relation.Binary.Pointwise where
... |
oeis/295/A295383.asm | neoneye/loda-programs | 11 | 163971 | <filename>oeis/295/A295383.asm<gh_stars>10-100
; A295383: a(n) = (2*n)! * [x^(2*n)] (-x/(1 - x))^n/((1 - x)*n!).
; Submitted by <NAME>
; 1,-4,72,-2400,117600,-7620480,614718720,-59364264960,6678479808000,-857813628672000,123868287980236800,-19863969090648883200,3502679882984419737600,-673592285189311488000000,140299650... |
src/sw_test.asm | Sai-Manish/Tomasulo-O3-processor | 2 | 170919 | <reponame>Sai-Manish/Tomasulo-O3-processor
; ADD x2, x2, x3
LW x1, 0(x2)
ADD x4, x1, x1
; SUB x4, x3, x2
SW x2, 0(x1)
SW x3, 0(x4)
ADD x1, x1, x2
LW x2, 0(x1) |
models/hol/sygus/hackers_del/hd_01.als | johnwickerson/alloystar | 2 | 3195 | <filename>models/hol/sygus/hackers_del/hd_01.als
/**
* NOTE: make sure to set "Options -> Prevent overflows" to "No"
*/
module hd_01
open hd[hd01]
one sig Lit1 extends IntLit {}
fact {
IntLit<:val = Lit1->1
}
--------------------------------------------------------------------------------
-- Helpers
-----------... |
tests/syntax_examples/src/tagged_subprogram_calls.ads | TNO/Dependency_Graph_Extractor-Ada | 1 | 3617 | <filename>tests/syntax_examples/src/tagged_subprogram_calls.ads
with Other_Basic_Subprogram_Calls;
package Tagged_Subprogram_Calls is
package Inner is
type E is (A, B, C);
procedure P(A : E);
end Inner;
procedure Test(Param : Inner.E);
type T is tagged
null record;
procedu... |
Examples/conversion-routines/dwordbin2hexascii.asm | agguro/linux-nasm | 6 | 97888 | <filename>Examples/conversion-routines/dwordbin2hexascii.asm
;name: dwordbin2hexascii.asm
;
;description: branch free conversion of a dword in edi to ascii in rax
;
;build: nasm -felf64 dwordbin2hexascii.asm -o dwordbin2hexascii.o
bits 64
global dwordbin2hexascii
section .text
dwordbin2hexascii:
push rbx
... |
Cubical/Data/Fin/Base.agda | howsiyu/cubical | 0 | 11206 | <reponame>howsiyu/cubical
{-# OPTIONS --safe #-}
module Cubical.Data.Fin.Base where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Function
open import Cubical.Foundations.HLevels
import Cubical.Data.Empty as ⊥
open import Cubical.Data.Nat using (ℕ ; zero ; suc ; _+_ ; znots)
open import Cub... |
programs/oeis/137/A137936.asm | neoneye/loda | 22 | 241637 | <reponame>neoneye/loda<filename>programs/oeis/137/A137936.asm<gh_stars>10-100
; A137936: a(n) = 5*mod(n,5) + floor(n/5).
; 0,5,10,15,20,1,6,11,16,21,2,7,12,17,22,3,8,13,18,23,4,9,14,19,24,5,10,15,20,25,6,11,16,21,26,7,12,17,22,27,8,13,18,23,28,9,14,19,24,29,10,15,20,25,30,11,16,21,26,31,12,17,22,27,32,13,18,23,28,33,14... |
tests/src/trendy_terminal-histories-tests.ads | pyjarrett/archaic_terminal | 3 | 5456 | with Trendy_Test;
package Trendy_Terminal.Histories.Tests is
function All_Tests return Trendy_Test.Test_Group;
end Trendy_Terminal.Histories.Tests;
|
data/maps/headers/CeruleanBadgeHouse.asm | opiter09/ASM-Machina | 1 | 167859 |
map_header CeruleanBadgeHouse, CERULEAN_BADGE_HOUSE, SHIP, 0
end_map_header
|
tests/macros/dup_var.asm | cizo2000/sjasmplus | 220 | 89632 | <reponame>cizo2000/sjasmplus
MACRO filler x1, x2, y1, y2
ld hl,y1*2
add hl,sp
ld sp,hl
DUP (y2 - y1)
ld de,x1
pop hl
add hl,de
DUP (x2 - x1)
ld (hl),a
inc l
EDUP
ld (hl),a
EDUP
ENDM
OUTPUT "dup_var.bin"
filler 15, 20, 35, 40
|
source/strings/a-snmcfo.ads | ytomino/drake | 33 | 22437 | <filename>source/strings/a-snmcfo.ads
pragma License (Unrestricted);
-- implementation unit
package Ada.Strings.Naked_Maps.Case_Folding is
pragma Preelaborate;
function Case_Folding_Map return not null Character_Mapping_Access;
end Ada.Strings.Naked_Maps.Case_Folding;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.