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 |
|---|---|---|---|---|
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-addima.ads | djamal2727/Main-Bearing-Analytical-Model | 0 | 23528 | <reponame>djamal2727/Main-Bearing-Analytical-Model<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
src/Categories/Category/Monoidal/Closed.agda | MirceaS/agda-categories | 0 | 4497 | <reponame>MirceaS/agda-categories
{-# OPTIONS --without-K --safe #-}
open import Categories.Category
open import Categories.Category.Monoidal
-- the definition used here is not very similar to what one usually sees in nLab or
-- any textbook. the difference is that usually closed monoidal category is defined
-- thro... |
src/drivers/adabase-driver-base-mysql.adb | jrmarino/AdaBase | 30 | 26409 | <gh_stars>10-100
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with Ada.Exceptions;
package body AdaBase.Driver.Base.MySQL is
package EX renames Ada.Exceptions;
---------------
-- execute --
---------------
overriding
function execute... |
Task/Towers-of-Hanoi/AppleScript/towers-of-hanoi-1.applescript | LaudateCorpus1/RosettaCodeData | 1 | 4726 | <filename>Task/Towers-of-Hanoi/AppleScript/towers-of-hanoi-1.applescript
global moves --this is so the handler 'hanoi' can see the 'moves' variable
set moves to ""
hanoi(4, "peg A", "peg C", "peg B")
on hanoi(ndisks, fromPeg, toPeg, withPeg)
if ndisks is greater than 0 then
hanoi(ndisks - 1, fromPeg, withP... |
oeis/133/A133224.asm | neoneye/loda-programs | 11 | 25235 | <filename>oeis/133/A133224.asm
; A133224: Let P(A) be the power set of an n-element set A and let B be the Cartesian product of P(A) with itself. Remove (y,x) from B when (x,y) is in B and x <> y and let R35 denote the reduced set B. Then a(n) = the sum of the sizes of the union of x and y for every (x,y) in R35.
; 0,... |
src/test/cpp/raw/lrsc/build/lrsc.asm | zeldin/VexRiscv | 3 | 1389 |
build/lrsc.elf: file format elf32-littleriscv
Disassembly of section .crt_section:
80000000 <trap_entry-0x20>:
80000000: 04c0006f j 8000004c <_start>
80000004: 00000013 nop
80000008: 00000013 nop
8000000c: 00000013 nop
80000010: 00000013 nop
80000014: 00000013 ... |
src/vdp-macros.asm | flamewing/genesis-debugger | 10 | 88901 | ; ===========================================================================
; Copyright (C) 2011-2020 by flamewing
;
; Permission to use, copy, modify, and/or distribute this software for any
; purpose with or without fee is hereby granted.
;
; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
... |
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c34001f.ada | best08618/asylo | 7 | 9072 | -- C34001F.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/port_specification.ads | jrmarino/ravenadm | 18 | 23143 | <reponame>jrmarino/ravenadm
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
-- GCC 6.0 only
-- pragma Suppress (Tampering_Check);
private with HelperText;
private with Ada.Containers.Vectors;
private with Ada.Containers.Hashed_Maps;
package Port_Specificatio... |
PIM/TP1_Algorithmique/permuter_caracteres.adb | Hathoute/ENSEEIHT | 1 | 9040 | <reponame>Hathoute/ENSEEIHT
with Ada.Text_IO; use Ada.Text_IO;
-- Permuter deux caractères lus au clavier
procedure Permuter_Caracteres is
C1, C2: Character; -- Entier lu au clavier dont on veut connaître le signe
Temp: Character; -- Charactere utilisé pour la permutation
begin
-- Demander l... |
alloy4fun_models/trashltl/models/18/TAkSff5w6XzPzvjCh.als | Kaixi26/org.alloytools.alloy | 0 | 3515 | <filename>alloy4fun_models/trashltl/models/18/TAkSff5w6XzPzvjCh.als<gh_stars>0
open main
pred idTAkSff5w6XzPzvjCh_prop19 {
eventually (all f:File | f in Protected implies f in Protected&Trash)
}
pred __repair { idTAkSff5w6XzPzvjCh_prop19 }
check __repair { idTAkSff5w6XzPzvjCh_prop19 <=> prop19o } |
Cubical/Data/NatMinusOne.agda | limemloh/cubical | 0 | 12365 | {-# OPTIONS --cubical --safe #-}
module Cubical.Data.NatMinusOne where
open import Cubical.Data.NatMinusOne.Base public
|
src/numerics-abs_max_ia.adb | sciencylab/lagrangian-solver | 0 | 10698 | separate (Numerics)
function Abs_Max_IA (Item : in Int_Array) return Integer is
Result : Integer := 0;
begin
for N of Item loop
Result := Integer'Max (Result, abs (N));
end loop;
return Result;
end Abs_Max_IA;
|
Task/Remove-duplicate-elements/AppleScript/remove-duplicate-elements.applescript | djgoku/RosettaCodeData | 0 | 3819 | unique({1, 2, 3, "a", "b", "c", 2, 3, 4, "b", "c", "d"})
on unique(x)
set R to {}
repeat with i in x
if i is not in R then set end of R to i's contents
end repeat
return R
end unique
|
awa/plugins/awa-mail/src/awa-mail-components-messages.adb | fuzzysloth/ada-awa | 0 | 3093 | <gh_stars>0
-----------------------------------------------------------------------
-- awa-mail-components-messages -- Mail UI Message
-- Copyright (C) 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance ... |
sanity-checking/tests/0004-ada-shared-lib/src/main.adb | reznikmm/GNAT-FSF-builds | 5 | 12608 | with Lib_Pack;
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
begin
Put_Line ("=== Main start ===");
Lib_Pack.Test;
Put_Line ("=== Main end ===");
end Main;
|
supported_grammars/antlr2/ANTLRv2Lexer.g4 | kaby76/Domemtech.TrashBase | 1 | 7779 | /*
[The "BSD licence"]
Copyright (c) 2005-2007 <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:
1. Redistributions of source code must retain the above copyright
notice, this list of con... |
granary/x86/stack.asm | Granary/granary | 37 | 172465 | <reponame>Granary/granary<gh_stars>10-100
#include "granary/x86/asm_defines.asm"
#include "granary/x86/asm_helpers.asm"
#include "granary/pp.h"
START_FILE
.extern SYMBOL(granary_get_private_stack_top)
DECLARE_FUNC(granary_enter_private_stack)
GLOBAL_LABEL(granary_enter_private_stack:)
// The compiler that will ... |
dino/lcs/base/6C3E.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | 6 | 245682 | <filename>dino/lcs/base/6C3E.asm
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
016970 move.b D0, (A4)+
016972 move.b ($3,A6), (A4)+ [base+6BDE, base+6C0E, base+6C1E, base+6C2E, base+6C3E]
016B60 move.b D0, (A4)+
016B62 move.b ($3,A6), (A4)+ [base+... |
_lessons/06-dynamic/code/family-state-2.als | HanielB/2021.1-fm | 0 | 1513 | <gh_stars>0
---------------- Signatures ----------------
sig State {
successor : set State,
prev : set State
}
one sig Initial extends State {}
abstract sig Person {
-- primitive relations
children: Person set -> State,
spouse: Person lone -> State,
alive: set State,
}
sig Man, Woman extends Person ... |
latte/front/parser/Latte.g4 | latte-c/latte | 0 | 6427 | <reponame>latte-c/latte
grammar Latte;
WHITESPACE: [ \r\t\n]+ -> skip;
COMMENT: '//' ~[\r\n]* -> skip;
IMPORT: 'import';
PROCEDURE: 'procedure';
EXPORT: 'export';
ARRAY: 'array';
INT: 'int';
REAL: 'real';
IF: 'if';
ELSE: 'else';
LOOP: 'loop';
BREAK: 'break';
CONTINUE: 'continue';
RETURN: 'return';
fragment DEC_CONST... |
docs/src/tooldocs/verify/PROOF-evendoublecoin.agda | DouglasRMiles/pakcs_lib | 2 | 13579 | <gh_stars>1-10
-- Agda program using the Iowa Agda library
open import bool
module PROOF-evendoublecoin
(Choice : Set)
(choose : Choice → 𝔹)
(lchoice : Choice → Choice)
(rchoice : Choice → Choice)
where
open import eq
open import nat
open import list
open import maybe
------------------------------------... |
c2nasm/example/c.asm | TimerChen/MxCompiler | 2 | 19679 |
default rel
global gc
global add
global val
global main
global ga
global gb
SECTION .text
add:
push rbp
mov rbp, rsp
mov dword [rbp-14H], edi
lea rax, [rel L_001]
mov qword [rbp-10H], rax
lea rax, [rel L_002]
mov qword [rbp-... |
src/Core/ScriptLang/Grammar/ScLang.g4 | alexguirre/gtav-sc-tools | 11 | 6810 | grammar ScLang;
program
: ((directive | declaration)? EOL)* (directive | declaration)? // repeated so a new line is not required at the end of the file, TODO: is there a better way to do this?
;
directive
: K_SCRIPT_HASH integer #scriptHashDirective
| K_USIN... |
programs/oeis/100/A100158.asm | neoneye/loda | 22 | 21800 | <reponame>neoneye/loda<filename>programs/oeis/100/A100158.asm
; A100158: Structured disdyakis triacontahedral numbers (vertex structure 11).
; 1,62,293,804,1705,3106,5117,7848,11409,15910,21461,28172,36153,45514,56365,68816,82977,98958,116869,136820,158921,183282,210013,239224,271025,305526,342837,383068,426329,472730,... |
test/Fail/TypeConstructorsWhichPreserveGuardedness3.agda | hborum/agda | 3 | 2825 | <gh_stars>1-10
module TypeConstructorsWhichPreserveGuardedness3 where
record ⊤ : Set where
data _⊎_ (A B : Set) : Set where
inj₁ : A → A ⊎ B
inj₂ : B → A ⊎ B
-- This should not be allowed.
ℕ : Set
ℕ = ⊤ ⊎ ℕ
|
oeis/063/A063494.asm | neoneye/loda-programs | 11 | 101363 | ; A063494: a(n) = (2*n - 1)*(7*n^2 - 7*n + 3)/3.
; Submitted by <NAME>
; 1,17,75,203,429,781,1287,1975,2873,4009,5411,7107,9125,11493,14239,17391,20977,25025,29563,34619,40221,46397,53175,60583,68649,77401,86867,97075,108053,119829,132431,145887,160225,175473,191659,208811,226957,246125,266343,287639,310041,333577,3582... |
sim/asm/fn42.asm | nanamake/avr_cpu | 2 | 103504 | ;---------------------------
; test for interrupt/reti
;---------------------------
; In this test IRQ input is required. See testbench stimuli.
jmp reset
jmp hand1
jmp hand2
;-------------------
reset:
sei
ldi r16,0x00
inc r16
sts 0x0100,r16 ; (inc) 0x00
inc r16
sts 0x0101,... |
source/machine-pc-linux-gnu/s-stomap.adb | ytomino/drake | 33 | 5613 | with C.elf;
with C.link;
with C.sys.types;
package body System.Storage_Map is
pragma Suppress (All_Checks);
use type C.signed_int;
use type C.signed_long; -- 64bit ssize_t
-- the type of dlpi_phdr is different between 32bit and 64bit.
function To_Address (Value : access constant C.elf.Elf32_Phdr)
... |
programs/oeis/226/A226292.asm | karttu/loda | 1 | 245778 | ; A226292: (10*n^2+4*n+(1-(-1)^n))/8.
; 2,6,13,22,34,48,65,84,106,130,157,186,218,252,289,328,370,414,461,510,562,616,673,732,794,858,925,994,1066,1140,1217,1296,1378,1462,1549,1638,1730,1824,1921,2020,2122,2226,2333,2442,2554,2668,2785,2904,3026,3150,3277,3406,3538,3672,3809,3948,4090,4234,4381,4530,4682,4836,4993,515... |
Julian_calendar.ads | Louis-Aime/Milesian_calendar_Ada | 0 | 12262 | -- Julian_calendar.ads
-- Specifications of conversion routines between julian and gregorian calendar
-- versus Julian day. Here they are named Roman calendar.
-- The Julian calendar was initiated by <NAME> in 709 Ab Urbe Condita.
-- The Gregorian calendar was enforced by Gregorius XIII in 1582 Anno Domini.
-- The comp... |
src/main/java/parser/QSygusParser.g4 | Herbping/WTAlib | 0 | 7361 | grammar QSygusParser;
start : prog
;
prog : setWeightCmd cmdPlus
;
setLogicCmd : '(' 'set-logic' SYMBOL ')'
;
weightPlus : weightPlus '(' SYMBOL weight ')'
| '(' SYMBOL weight ')'
;
weight : 'TROP' | 'PROB' | 'BOOL'
... |
libsrc/stdio_new/buf/slbb0/slbb0_initbuf.asm | meesokim/z88dk | 8 | 88039 | <gh_stars>1-10
; slbb0_initbuf
; 08.2009 aralbrec
PUBLIC slbb0_initbuf
; reset the linear buffer to empty
;
; enter : hl = & struct slbb
; de = buffer adddress
; a = buffer size (len)
; uses : hl
.slbb0_initbuf
ld (hl),0 ; end = 0
inc hl
ld (hl),a ; sto... |
pkgs/tools/yasm/src/modules/arch/x86/tests/addbyte.asm | manggoguy/parsec-modified | 2,151 | 5624 | ; AX forms
add ax,5
add ax,strict byte 5
add ax,strict word 5
add ax,-128
add ax,strict byte -128
add ax,strict word -128
add ax,0x7f
add ax,strict byte 0x7f
add ax,strict word 0x7f
add ax,0x80
add ax,strict byte 0x80
add ax,strict word 0x80
add ax,0x100
add ax,strict byte 0x100
add ax,strict word 0x100
; non-AX forms... |
programs/oeis/131/A131308.asm | neoneye/loda | 22 | 28619 | <filename>programs/oeis/131/A131308.asm
; A131308: Alternate A001477 and tripled 2*A000027.
; 0,2,2,2,1,4,4,4,2,6,6,6,3,8,8,8,4,10,10,10,5,12,12,12,6,14,14,14,7,16,16,16,8,18,18,18,9,20,20,20,10,22,22,22,11,24,24,24,12,26,26,26,13,28,28,28,14,30,30,30,15,32,32,32,16,34,34,34,17,36,36,36,18,38,38,38,19
lpb $0
sub $0,... |
16/2/src/main.adb | Heziode/aoc-ada-2021 | 3 | 20713 | <gh_stars>1-10
with Ada.Containers.Synchronized_Queue_Interfaces,
Ada.Containers.Unbounded_Synchronized_Queues,
Ada.Containers.Vectors,
Ada.Execution_Time,
Ada.Integer_Text_IO,
Ada.Long_Long_Integer_Text_IO,
Ada.Real_Time,
Ada.Strings.Fixed,
Ada.Strings.Unbounded,
Ada.Text_I... |
src/FRP/LTL/Util.agda | agda/agda-frp-ltl | 21 | 2484 | <reponame>agda/agda-frp-ltl
open import Data.Empty using ( ⊥ )
open import Data.Nat using ( ℕ ; zero ; suc ; _+_ ; _≤_ ; z≤n ; s≤s )
open import Relation.Binary.PropositionalEquality using ( _≡_ ; refl ; sym ; cong )
open import Relation.Binary.PropositionalEquality.TrustMe using ( trustMe )
open import Relation.Nullar... |
data/maps/objects/ChampionsRoom.asm | opiter09/ASM-Machina | 1 | 175815 | ChampionsRoom_Object:
db $3 ; border block
def_warps
warp 3, 7, 1, LANCES_ROOM
warp 4, 7, 2, LANCES_ROOM
warp 3, 0, 0, HALL_OF_FAME
warp 4, 0, 0, HALL_OF_FAME
def_signs
def_objects
object SPRITE_BLUE, 4, 2, STAY, DOWN, 1 ; person
object SPRITE_OAK, 3, 7, STAY, UP, 2 ; person
def_warps_to CHAMPION... |
MainStage 3.applescript | dchdcx/MainStage-3-Player | 1 | 4285 | <filename>MainStage 3.applescript
tell application "Finder"
display alert "应用程序“MainStage 3”不能打开。"
--open location "https://www.apple.com/mainstage/"
end tell
--BY DCHDCX |
sli/common/src/main/antlr4/org/openecomp/sdnc/sli/ExprGrammar.g4 | arunsarat/onap-sdnc-core | 0 | 358 | grammar ExprGrammar;
options {
language = Java;
}
COMPAREOP : '==' | '!=' | '>' | '<' | '>=' | '<=';
RELOP : 'and' | 'or';
ADDOP : '+' | '-';
MULTOP : '/' | '*';
NUMBER : ('0'..'9')+;
STRING : '\'' ~[\']* '\'';
IDENTIFIER : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'0'..'9'|'_'|'-')*;
// CONTEXT_VAR : '$'... |
samples/rept.asm | wilsonpilon/msx-menu | 0 | 12137 | ; rept.asm
; Test of rept and irp directives.
; Macro with rept and irp inside.
hola macro
local unused, unused2
unused rept 2
db 'Rept inside macro', 0
endm
unused2 irp ?reg, af,bc, de, hl
push ?reg
endm
endm ; hola
;-------------------------------------
rept 10
db 'Hello, reptworld'
... |
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1663.asm | ljhsiun2/medusa | 9 | 99905 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1bb08, %rcx
nop
nop
nop
cmp $11414, %r15
movb $0x61, (%rcx)
nop
nop
nop
nop
xor $16765, %r11
lea addresses_WT_ht+0x14038, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
cmp %r8, %r8
mov (%rdi)... |
libsrc/stdio/nc100/fputc_cons.asm | jpoikela/z88dk | 640 | 16992 | ;
; Put character to console
;
; fputc_cons(char c)
;
;
; $Id: fputc_cons.asm,v 1.5+ (now on GIT) $
;
SECTION code_clib
PUBLIC fputc_cons_native
.fputc_cons_native
ld hl,2
add hl,sp
ld a,(hl)
cp 12
jp z,$B824 ;TXTCLEARWINDOW (cls)
IF STANDARDESCAPECHARS
cp 10
ELSE
cp 13
ENDIF
jr nz,fputc_cons1
ld a,13
... |
agda/MorePropAlgebra.agda | mchristianl/synthetic-reals | 3 | 13322 | {-# OPTIONS --cubical --no-import-sorts #-}
module MorePropAlgebra where
open import MorePropAlgebra.Definitions public
open import MorePropAlgebra.Structures public
open import MorePropAlgebra.Bundles public
open import MorePropAlgebra.Consequences public
|
programs/oeis/040/A040037.asm | neoneye/loda | 22 | 173443 | <reponame>neoneye/loda
; A040037: Continued fraction for sqrt(44).
; 6,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1,2,1,1,1,12,1,1,1
seq $0,40329 ; Continued fraction for ... |
sqlite/SQLiteHelper.applescript | GitSyncApp/applescripts | 6 | 630 | property ScriptLoader : load script alias ((path to scripts folder from user domain as text) & "file:ScriptLoader.scpt") --prerequisite for loading .applescript files
property SQLiteParser : my ScriptLoader's load_script(alias ((path to scripts folder from user domain as text) & "sqlite:SQLiteParser.applescript"))
prop... |
oeis/130/A130093.asm | neoneye/loda-programs | 11 | 5544 | ; A130093: A051731 * a lower triangular matrix with A036987 on the main diagonal and the rest zeros.
; Submitted by <NAME>
; 1,1,1,1,0,0,1,1,0,1,1,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,1,1,0,1,0,0,0,1,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0
lpb $0
add $1,1
sub $0,$1
lpe
bin $1,$0
mov $2,$0
mul $0,2
bin $0,$2
mul $1,$0
a... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/double_record_extension2.ads | best08618/asylo | 7 | 13734 | -- { dg-do compile }
package double_record_extension2 is
type Base_Message_Type (Num_Bytes : Positive) is tagged record
Data_Block : String (1..Num_Bytes);
end record;
type Extended_Message_Type (Num_Bytes1 : Positive; Num_Bytes2 : Positive) is new Base_Message_Type (Num_Bytes1) with record
A: Strin... |
source/league/ucd/matreshka-internals-unicode-ucd-core_001d.ads | svn2github/matreshka | 24 | 2083 | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
Palmtree.Math.Core.Sint/vs_build/x86_Release/pmc_initialize.asm | rougemeilland/Palmtree.Math.Core.Sint | 0 | 81313 | <reponame>rougemeilland/Palmtree.Math.Core.Sint<filename>Palmtree.Math.Core.Sint/vs_build/x86_Release/pmc_initialize.asm
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1
TITLE z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\pmc_initialize.c
.686P
.... |
data/pokemon/base_stats/hoenn/spinda.asm | Dev727/ancientplatinum | 0 | 6784 | <gh_stars>0
db 0 ; 327 DEX NO
db 60, 60, 60, 60, 60, 60
; hp atk def spd sat sdf
db NORMAL, NORMAL ; type
db 255 ; catch rate
db 85 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 15 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/hoenn/spi... |
KongRender.asm | HonkeyKong/libKong | 1 | 163359 | <gh_stars>1-10
; Subroutines for rendering blank tiles and rows.
; This helps to compress 1K nametables down to
; smaller procedurally-generated maps.
; Basically a lousy version of RLE (Run-Length Encoding)
; that only handles blank space, but even this can improve
; data sizes dramatically in certain scenarios.
... |
test/Fail/PruneBadRigidDef.agda | shlevy/agda | 1,989 | 12345 | <gh_stars>1000+
-- 2014-05-26 Andrea & Andreas
-- hasBadRigids (in pruning) should reduce term before checking.
open import Common.Equality
postulate
Fence : Set → Set
id : ∀{a}{A : Set a}(x : A) → A
id x = x
test : let H : Set; H = _; M : Set → Set; M = _ in
(A : Set) → H ≡ Fence (M (id A))
test A = refl
... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/addr3.adb | best08618/asylo | 7 | 7176 | <reponame>best08618/asylo<gh_stars>1-10
-- { dg-do compile }
with text_io;
with System;
procedure addr3 is
Type T_SAME_TYPE is new System.Address;
Type T_OTHER_TYPE is new System.Address;
I : constant integer := 0;
... |
memsim-master/src/memory-arbiter.adb | strenkml/EE368 | 0 | 13371 |
with Ada.Assertions; use Ada.Assertions;
package body Memory.Arbiter is
function Create_Arbiter(next : access Memory_Type'Class)
return Arbiter_Pointer is
result : constant Arbiter_Pointer := new Arbiter_Type;
begin
Set_Memory(result.all, next);
return result;
en... |
src/regex-state_machines.adb | skordal/ada-regex | 2 | 14810 | <reponame>skordal/ada-regex<filename>src/regex-state_machines.adb
-- Ada regular expression library
-- (c) <NAME> 2020 <<EMAIL>>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
with Ada.Unchecked_Deallocation;
package body Regex.State_Machines is
use Regex.Syntax_Trees;
function Clone (O... |
smsq/sbas/ermess.asm | olifink/smsqe | 0 | 95408 | ; SuperBASIC error messages
section sbas
xdef sb_ermess
xdef sb_ernimp
include 'dev8_keys_err'
include 'dev8_keys_err4'
sb_ernimp
moveq #err.nimp,d0
rts
sb_ermess
move.l #err4.fatl,d0
rts
end
|
src/open_weather_map-configuration.ads | Jellix/open_weather_map_api | 1 | 25018 | --------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See t... |
app/libuos/syscall.asm | USN484259/COFUOS | 1 | 173648 | [bits 64]
global syscall
section .text
syscall:
mov rax,rcx
syscall
mov cx,ss
mov ds,cx
mov es,cx
ret
|
workflow/storage.applescript | thepratik/alfred4-youtube-control | 0 | 2671 | on init(bundleid, filename)
script Storage
property class : "storage"
property db : missing value
on run {}
set dbpath to POSIX path of (path to home folder) &¬
"Library/Application Support/Alfred/Workflow Data/" & bundleid
if not file_exists(dbpath) then¬
do shell script... |
timid/timidrem.asm | tommarcoen/viruses | 0 | 162963 | <reponame>tommarcoen/viruses<gh_stars>0
;==================================================================;
; ;
; TIMIDREM.ASM ;
;__________________________________________________________________;
; ... |
programs/oeis/304/A304517.asm | neoneye/loda | 22 | 13474 | ; A304517: a(n) = 16*2^n - 11 (n>=1).
; 21,53,117,245,501,1013,2037,4085,8181,16373,32757,65525,131061,262133,524277,1048565,2097141,4194293,8388597,16777205,33554421,67108853,134217717,268435445,536870901,1073741813,2147483637,4294967285,8589934581,17179869173,34359738357,68719476725,137438953461,274877906933,54975581... |
alloy4fun_models/trashltl/models/8/ZkKNhXF4agkJ7rhaz.als | Kaixi26/org.alloytools.alloy | 0 | 4996 | <gh_stars>0
open main
pred idZkKNhXF4agkJ7rhaz_prop9 {
all f: File | always(f not in Trash) since f in Protected
}
pred __repair { idZkKNhXF4agkJ7rhaz_prop9 }
check __repair { idZkKNhXF4agkJ7rhaz_prop9 <=> prop9o } |
src/app/run_spat-print_suggestion.adb | HeisenbugLtd/spat | 20 | 12476 | ------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the... |
test/Fail/Issue3403.agda | cruhland/agda | 1,989 | 5842 | <reponame>cruhland/agda<filename>test/Fail/Issue3403.agda
-- Andreas, 2018-11-23, issue #3304, report and test case by Nisse
open import Agda.Builtin.Equality
open import Agda.Builtin.Sigma
map : {A B : Set} {P : A → Set} {Q : B → Set} →
(f : A → B) → (∀ {x} → P x → Q (f x)) →
Σ A P → Σ B Q
map f g (x , y... |
Task/Flow-control-structures/Ada/flow-control-structures-1.ada | LaudateCorpus1/RosettaCodeData | 1 | 23553 | <filename>Task/Flow-control-structures/Ada/flow-control-structures-1.ada
<<Top>>
Put_Line("Hello, World");
goto Top;
|
konz/konz2/Sor/demo.adb | balintsoos/LearnAda | 0 | 19468 | with sor;
with Ada.Text_IO;
use Ada.Text_IO;
--use sor; -> you can't do this because it's a generic
procedure demo is
procedure alma(A : integer) is
begin
Put_Line(Integer'image(A));
end alma;
procedure korte(A : Character) is
begin
Put_Line(Character'image(A));
end korte;
function fele(... |
oeis/089/A089192.asm | neoneye/loda-programs | 11 | 245785 | ; A089192: Numbers n such that 2n - 7 is a prime.
; Submitted by <NAME>
; 5,6,7,9,10,12,13,15,18,19,22,24,25,27,30,33,34,37,39,40,43,45,48,52,54,55,57,58,60,67,69,72,73,78,79,82,85,87,90,93,94,99,100,102,103,109,115,117,118,120,123,124,129,132,135,138,139,142,144,145,150,157,159,160,162,169,172,177,178,180,183,187,190,... |
Omnifocus/OmniFocusDailyMaintenance.scpt | nickdominguez/Applescripts | 0 | 1781 | on run
tell application "OmniFocus"
set todayDate to current date
set todayDate's hours to 0
set todayDate's minutes to 0
set todayDate's seconds to 0
set tomorrowDate to todayDate + 1 * days
tell default document
set todayTasks to (flattened tasks where (defer date ≥ todayDate and defer date < to... |
oeis/284/A284396.asm | neoneye/loda-programs | 11 | 94559 | ; A284396: Positions of 2 in A284394.
; Submitted by <NAME>
; 5,11,14,20,26,29,35,38,44,50,53,59,65,68,74,77,83,89,92,98,101,107,113,116,122,128,131,137,140,146,152,155,161,167,170,176,179,185,191,194,200,203,209,215,218,224,230,233,239,242,248,254,257,263,266,272,278,281,287,293,296,302,305,311,317,320,326,332,335,341... |
test/Fail/Issue1612.agda | cruhland/agda | 1,989 | 17203 | -- Andreas, 2015-07-21 Issue 1612
-- Error "D is not strictly positive" should appear immediately.
-- (There was a performance problem due to the use of Utils.Graph.....allPaths).
{-# NON_TERMINATING #-}
mutual
data D : Set where
c0 : A0 → D
c1 : A1 → D
c2 : A2 → D
c3 : A3 → D
c4 : A4 → D
c... |
45/qb/ir/lsrules.asm | minblock/msdos | 0 | 9585 | TITLE LSRULES - functions which map opcodes to 'list-node' structs
;======================================================================
; Module: LsRules.asm
;
; Purpose:
; Contains functions which map opcodes to their equivalent
; 'list-node' structures. See lsmain.asm for general comments.
;
;
;================... |
test/Fail/Issue5410-4.agda | KDr2/agda | 0 | 12013 | <filename>test/Fail/Issue5410-4.agda
{-# OPTIONS --cubical-compatible #-}
variable
@0 A : Set
record D : Set₁ where
field
f : A
|
oeis/028/A028379.asm | neoneye/loda-programs | 11 | 100617 | <reponame>neoneye/loda-programs
; A028379: a(n) = 6*(n+1)*(2*n+6)!/((n+3)!*(n+5)!).
; Submitted by <NAME>
; 0,6,28,108,396,1430,5148,18564,67184,244188,891480,3268760,12034980,44482230,165002460,614106900,2292665760,8583849780,32223863880,121267584360,457412818200,1729020452796,6548744132568,24849948274088,944606729424... |
libsrc/stdio_new/fd/general/stdio_dupcommon2.asm | andydansby/z88dk-mk2 | 1 | 13917 | ; stdio_dupcommon2
; 07.2009 aralbrec
XLIB stdio_dupcommon2
INCLUDE "../../stdio.def"
; common code factored out of dup functions
; centralizes key steps for making dup fds
;
; enter : l = source fd
; exit : ix = source fdstruct, carry reset
; carry set if source fd invalid
; uses : af, hl, ix
.stdio_dup... |
src/Categories/Category/Complete/Properties/SolutionSet.agda | Trebor-Huang/agda-categories | 279 | 5152 | <gh_stars>100-1000
{-# OPTIONS --without-K --safe #-}
open import Categories.Category
open import Categories.Category.Complete
module Categories.Category.Complete.Properties.SolutionSet where
open import Level
open import Categories.Functor
open import Categories.Object.Initial
open import Categories.Object.Product... |
libsrc/stdio_new/buf/slbb0/slbb0_writechar.asm | meesokim/z88dk | 8 | 11870 | ; slbb0_writechar
; 08.2009 aralbrec
PUBLIC slbb0_writechar
EXTERN slbb0_appendchar
; write a char to the index specified
;
; enter : hl = & struct slbb
; a = index to write to
; d = char
; exit : carry set for success
; carry reset if index out of bounds
; uses : af, hl
.slbb0_writechar
... |
alloy4fun_models/trashltl/models/8/d5kQSpF6HkXi6xYWC.als | Kaixi26/org.alloytools.alloy | 0 | 3146 | <reponame>Kaixi26/org.alloytools.alloy<gh_stars>0
open main
pred idd5kQSpF6HkXi6xYWC_prop9 {
all f: Protected | historically f not in Trash and always f not in Trash
}
pred __repair { idd5kQSpF6HkXi6xYWC_prop9 }
check __repair { idd5kQSpF6HkXi6xYWC_prop9 <=> prop9o } |
oeis/045/A045823.asm | neoneye/loda-programs | 11 | 20558 | ; A045823: a(n) = sigma_3(2*n+1).
; 1,28,126,344,757,1332,2198,3528,4914,6860,9632,12168,15751,20440,24390,29792,37296,43344,50654,61544,68922,79508,95382,103824,117993,137592,148878,167832,192080,205380,226982,260408,276948,300764,340704,357912,389018,441028,458208,493040,551881,571788,619164,682920,704970,756112,8341... |
unittests/ASM/TwoByte/0F_5B_1.asm | cobalt2727/FEX | 628 | 165244 | <reponame>cobalt2727/FEX<filename>unittests/ASM/TwoByte/0F_5B_1.asm<gh_stars>100-1000
%ifdef CONFIG
{
"RegData": {
"XMM0": ["0x4ea997604b09fbcc", "0x4eb60f014e6fed51"],
"XMM1": ["0x4ef925bb4e0af333", "0x4ee5dd764ea8ee5f"],
"XMM2": ["0x4e7cdb474e801032", "0x4ec7a6ef4d4ebfd0"],
"XMM3": ["0x4dd2a7e14d855... |
maps/Route3.asm | Dev727/ancientplatinum | 28 | 246721 | <reponame>Dev727/ancientplatinum
object_const_def ; object_event constants
const ROUTE3_FISHER1
const ROUTE3_YOUNGSTER1
const ROUTE3_YOUNGSTER2
const ROUTE3_FISHER2
Route3_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
TrainerFirebreatherOtis:
trainer FIREBREATHER, OTIS, EVENT_BEAT_FIREBREATHER_OTIS, Fire... |
bddisasm_test/avx/avx_64.asm | andreaswimmer/bddisasm | 675 | 21146 | <reponame>andreaswimmer/bddisasm
bits 64
vaddpd xmm2, xmm7, xmm0
vaddpd xmm2, xmm7, [rbx]
vaddpd xmm2, xmm7, [rbx+r11*8+256]
vaddpd xmm2, xmm7, [rbx+r11*8-256]
vaddpd ymm16, ymm13, ymm15
vaddpd ymm16, ymm13, [rbx]
vaddpd ymm16, ymm13, [rbx+r11*8+256]
vaddpd ymm16, ymm13, [rbx+r1... |
test/Fail/Issue1209-4.agda | cruhland/agda | 1,989 | 15069 | <filename>test/Fail/Issue1209-4.agda
{-# OPTIONS --safe --no-sized-types #-}
open import Agda.Builtin.Size
record Stream (A : Set) (i : Size) : Set where
coinductive
field
head : A
tail : {j : Size< i} → Stream A j
open Stream
destroy-guardedness : ∀ {A i} → Stream A i → Stream A i
destroy-guardedness x... |
SVD2ada/svd/stm32_svd-sai.ads | JCGobbi/Nucleo-STM32H743ZI | 0 | 5920 | <gh_stars>0
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32H743x.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.SAI is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype GCR_SYNCIN_Field is HAL.U... |
et-client/scripts/alert.applescript | mikeflynn/echo-tunnel | 1 | 2724 | <filename>et-client/scripts/alert.applescript
#!/usr/bin/osascript
on run (args)
display dialog (first item of args) with title (second item of args) with icon file (third item of args) buttons {(fourth item of args), (fifth item of args)} giving up after 30
end run |
media_driver/agnostic/gen11_icllp/vp/kernel_free/Source/CSC_444_16.asm | ashakhno/media-driver | 660 | 81079 | <filename>media_driver/agnostic/gen11_icllp/vp/kernel_free/Source/CSC_444_16.asm
/*
* Copyright (c) 2017, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restrict... |
pascal/pascal.g4 | alessandro-massarenti/lab02-automi-2021 | 0 | 5412 | <filename>pascal/pascal.g4
grammar pascal;
// Regole del Parser
// Program outer wrapper
start : 'program' ID ';' 'var' decl_list main_code EOF ;
// Variable declaration list
decl_list : decl | decl decl_list ;
decl : var ':' 'integer' ';';
var : ID | var ',' ID;
// Main code wrapper
main_code : 'b... |
Cubical/Categories/Functor.agda | borsiemir/cubical | 0 | 6664 | <filename>Cubical/Categories/Functor.agda<gh_stars>0
{-# OPTIONS --cubical #-}
module Cubical.Categories.Functor where
open import Cubical.Foundations.Prelude
open import Cubical.HITs.PropositionalTruncation
open import Cubical.Categories.Category
private
variable
ℓ𝒞 ℓ𝒞' ℓ𝒟 ℓ𝒟' : Level
record Functor (𝒞 ... |
Task/URL-encoding/Ada/url-encoding.ada | LaudateCorpus1/RosettaCodeData | 1 | 24726 | with AWS.URL;
with Ada.Text_IO; use Ada.Text_IO;
procedure Encode is
Normal : constant String := "http://foo bar/";
begin
Put_Line (AWS.URL.Encode (Normal));
end Encode;
|
programs/oeis/080/A080143.asm | neoneye/loda | 22 | 11184 | ; A080143: a(n) = F(3)*F(n)*F(n+1) + F(4)*F(n+1)^2 - F(4) if n even, F(3)*F(n)*F(n+1) + F(4)*F(n+1)^2 if n odd, where F(n) is the n-th Fibonacci number (A000045).
; 0,5,13,39,102,272,712,1869,4893,12815,33550,87840,229968,602069,1576237,4126647,10803702,28284464,74049688,193864605,507544125,1328767775,3478759198,910750... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1569.asm | ljhsiun2/medusa | 9 | 95441 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x86ca, %rbx
sub $56934, %rdi
mov (%rbx), %rax
nop
cmp %r14, %r14
lea addresses_D_ht+0x141ca, %rsi
lea addresses_WC_ht+0x106a4, %rdi
nop
dec %r14
mov $... |
ffight/lcs/1p/1F.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | 6 | 5088 | copyright zengfr site:http://github.com/zengfr/romhack
00A2D4 clr.b ($1f,A4)
00A2D8 clr.l ($20,A4)
copyright zengfr site:http://github.com/zengfr/romhack
|
taskOne.scpt | hascong/ExerciseForAppleScript | 0 | 1560 | set aCoupleOfSeconds to 3
set twoMinutes to 60 * 2
set oneHour to 60 * 60
set twoHours to 60 * 60 * 2
set fourHours to 60 * 60 * 4
set eightHours to 60 * 60 * 8
set tenHours to 60 * 60 * 10
set twelveHours to 60 * 60 * 12
set twentyFourHours to 60 * 60 * 24
set delayBeforeTaskOne to aCoupleOfSeconds
set delayBetweenTas... |
programs/oeis/040/A040433.asm | neoneye/loda | 22 | 178106 | <filename>programs/oeis/040/A040433.asm
; A040433: Continued fraction for sqrt(455).
; 21,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42,3,42
mov $1,$0
cmp $0,0
sub $1,$0
gcd $1,2
add $1... |
oeis/142/A142442.asm | neoneye/loda-programs | 11 | 93911 | <filename>oeis/142/A142442.asm<gh_stars>10-100
; A142442: Primes congruent to 33 mod 49.
; Submitted by <NAME>
; 131,229,523,719,1013,1307,1601,1699,1993,2287,2777,3169,3463,3659,4051,4639,4933,5227,5521,5717,6011,6599,6991,7187,7481,7873,8069,8167,8363,8461,8951,9049,9343,9539,9833,9931,11597,12479,12577,14243,14341,1... |
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/function_body_stub.adb | ouankou/rose | 488 | 8341 | package body function_body_stub is
function Inner return integer is separate;
end function_body_stub;
|
alloy4fun_models/trashltl/models/17/75KdcDyJT34RjcGCM.als | Kaixi26/org.alloytools.alloy | 0 | 3871 | open main
pred id75KdcDyJT34RjcGCM_prop18 {
always all p : Protected | always p not in Protected => p in Trash
}
pred __repair { id75KdcDyJT34RjcGCM_prop18 }
check __repair { id75KdcDyJT34RjcGCM_prop18 <=> prop18o } |
Task/Knuth-shuffle/Ada/knuth-shuffle-1.ada | LaudateCorpus1/RosettaCodeData | 1 | 8882 | <reponame>LaudateCorpus1/RosettaCodeData<filename>Task/Knuth-shuffle/Ada/knuth-shuffle-1.ada
generic
type Element_Type is private;
type Array_Type is array (Positive range <>) of Element_Type;
procedure Generic_Shuffle (List : in out Array_Type);
|
programs/oeis/127/A127330.asm | jmorken/loda | 1 | 242017 | ; A127330: Begin with the empty sequence and a starting number s = 0. At step k (k >= 1) append the k consecutive numbers s to s+k-1 and change the starting number (for the next step) to 2s+2.
; 0,2,3,6,7,8,14,15,16,17,30,31,32,33,34,62,63,64,65,66,67,126,127,128,129,130,131,132,254,255,256,257,258,259,260,261,510,511,... |
semester-5/microprocessor/16div.asm | saranshbht/bsc-codes | 3 | 245070 | <filename>semester-5/microprocessor/16div.asm
.model small
.data
first dw 256
second db 128
tempah db ?
tempal db ?
msg1 db "Quotient: $"
msg2 db 10, "Remainder: $"
.code
.startup
mov ax, first
div second
mov tempah, ah
mov tempal, al
lea dx, msg1
mov ah, 09h
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.