sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
17k
content
stringlengths
1
200k
a62ca41b2377b02bc67569022c303abd906393c302615ba2ce7e98dd6365ceca
C
3,054
108
/* * Copyright (C) 1996-2001,2004 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * show_memuse -- A little diagnostic method to call ps on the calling * program, to see whether the program tends to accumulate memory or not * ...
343e754f84d373a6bd1ced7dab632a6bb962d24b8a6d79f20708b91d8a480152
C
3,119
72
/* * Copyright (C) 1993,1994,1997,1998,2001 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /* * tinfo_array.c provides an interface to access the 'tsdata' * using the array interface (preferred method !). * The array thisarray is initialized to access the data * po...
dd480cb68206e40cd8a86075abc5faf98916e3ec45eb805154e684c6327b56c6
C
3,125
115
/* * Copyright (C) 2020,2026 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Includes*/ #include <stdio.h> #include <stdlib.h> #ifdef __GNUC__ #include <unistd.h> #endif #include <string.h> #include <read_struct.h> #ifdef LITTLE_ENDIAN #include <Intel...
22eacd8dff363f7c1ca62a83a05e14ad80e1a7ed070bf1d98d3c334279b2a360
C
3,143
96
/* FILE list */ /* Keep track of variables */ #include "deffs.h" /* ******************************************************************** */ /* FUNCTIONS: Init_Lists List_Ptr Return pointer to sorted list List_Length Return length of list List_Element Return n-th element of stack i Lis...
ee520a06331cb8dda205b98182bce249ef714eaf39ade383b57cda262f79abbd
C
3,145
189
#include <stdio.h> /* Yoel suggested to add prototypes */ void prin22_(double* a, int* n, FILE* out_file); void print_inner(int ion, char *str, double *a, int *ia, long int *la, int *n, int itype); /* PRINTING FUNCTIONS TO BE CALLED FROM FORTRAN */ void prin22_(double* a, int* n, FILE* out_file) { /* print...
1d21fe532d0da60464a4106988b3f1c98b57b70a2839d64945ab6e28b84a6e79
C
3,187
106
/* * Copyright (C) 1996,1998,1999,2001 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * baseline_divide is a simple transform method to divide the data by * the baseline mean. It works for both TIME_DATA and FREQ_DATA; for * tuple ...
4ffacfc5198c3c10c5e2aad19d1ed7fd7b3a4579fa3ed7dfd44eed4811621a4f
C
3,189
105
// ---------------------------------------------------------------------------- // Numerical diagonalization of 3x3 matrcies // Copyright (C) 2006 Joachim Kopp // ---------------------------------------------------------------------------- // This library is free software; you can redistribute it and/or // modify it u...
75d51bf8a117dcd9470dabc0893b0b2820880b037c96efba3bd5a5c41035bed6
C
3,197
103
/* * Copyright (C) 2008,2012 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Includes*/ #include <stdio.h> #include <stdlib.h> #ifdef __GNUC__ #include <unistd.h> #endif #include <string.h> #include <read_struct.h> #ifndef LITTLE_ENDIAN #include <Inte...
8d255727b16a8e1c1cda7e1ada07f0338df6731f5b07db57133ddac7ab009831
C
3,198
195
#include "vogl.h" /* * move * * Move the logical graphics position to the world coordinates x, y, z. * */ void move(Coord x, Coord y, Coord z) { Token *p; if (!vdevice.initialised) verror("move: vogl not initialised"); vdevice.cpW[V_X] = x; vdevice.cpW[V_Y] = y; vdevice.cpW[V_Z] = z; vdevice.cpVvalid ...
b8921942cbf18d9cfe67fed81e5f72498d4600db1dc7dbf0119c7b6a2215cfb7
C
3,201
91
/* FILE filter.c */ /* Gets included into input.c */ /* ******************************************************************** */ /* Either our old filters (Lowpass) or new ones (Matlab) */ static float FilterCoefs64[] = { /* # of points, transition band freqs */ # include "/data/code/byter/washu/_filters/L80_64.fi...
756371b220e4e37bef0398fac8017be3f1291d14826465f7087437a428a87ccf
C
3,206
88
/* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */ /*========================================================================= Copyright (c) 2008 Thomas Yeo and Mert Sabuncu All rights reserved. Redistribution and use in source and binary forms, with or without modification, are ...
51c93c79277399555103bea0bfdadcd9f6854ba2517a9187eda7c899235fcc30
C
3,212
118
/* * Copyright (C) 1996-2000,2004 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /* * do_posplot reads data sets from a file using the readasc method * and plots all or the given range of data sets using the posplot * method. Bernd Feige 10.02.1993 */ #include ...
111cdf6b9985836360243f69f7d5f5df8d156f6814bdfd718780f0ef77e7df1e
C
3,247
109
/* FILE _macros/basic.c */ #include "../Deffs.h" #include "../../deffs.h" #include "../../event.h" /* FUNCTIONS * RewardBasics30() CodeByPrevAndCurrentClass31() */ /* ******************************************************************** */ /* ******************************************************************...
8987059dd6bbeaf598dd042fb1867fc8270c75b45054e77baf75728b69fe76fc
C
3,263
96
#include "mex.h" #include <math.h> void gcmi_info_cc_slice_bridge( const double* x, mwSize ntrl, mwSize xdim, mwSize npage, const double* y, mwSize ydim, mwSize threads, double* output, const char** error_message); static mwSize scalar_to_size(const mxArray* value, const char* nam...
ca8acb6ce079619c5de95c8896b7795ee32385ccfdc78121ea97259055ddeb1a
C
3,265
81
// ---------------------------------------------------------------------------- // Numerical diagonalization of 3x3 matrcies // Copyright (C) 2006 Joachim Kopp // ---------------------------------------------------------------------------- // This library is free software; you can redistribute it and/or // modify it u...
3fe89b174a84a241980294176e7cb0b69f16a82305be446b964f8c4a3f03824a
C
3,285
132
/* This file is the arc routine, which is a standard part of the plot library. It draws an arc with the center at xc,yc, the beginning at x0,y0 and the ending at x1,y1 */ #include "plot.h" #include "math.h" /* return the remainder of x/y */ double drem (x, y) double x, y; { while (x>y/2.) x -= y; ...
bdd00dd61d06b83d3a4890ba992529bbad69d3ffd8ea48138785cbb4361972d0
C
3,286
217
#include <stdio.h> #ifdef SGI #include "gl.h" #include "device.h" #else #include "vogl.h" #include "vodevice.h" #endif /* * drawgrid * * draw a grid in the middle of the screen */ void drawgrid() { float x; int i; color(GREEN); rect(0.1, 0.4, 0.9, 0.6); x = 0.2; for (i = 0; i < 8; i++) { move2(x, 0.4);...
6d2f194b24b9ee9e8dee3e03dd2ce1b5b7c5a46c476e914aa23d7d7fdfe949e6
C
3,299
186
#include <stdio.h> #ifdef SGI #include "gl.h" #include "device.h" #else #include "vogl.h" #include "vodevice.h" #endif #define CUBE_SIZE 200.0 #define TRANS 25.0 #define SCAL 0.1 main() { char *p; float tdir = TRANS; float scal = 1.0 + SCAL; int but, nplanes; int x, y, i, n; short val; prefsize(...
0b6a23c014e9ab3dd19fc65d3878a0a0a1802d4ce48071d242e32e0cd277d9a7
C
3,303
218
#include <stdio.h> #ifdef SGI #include "gl.h" #include "device.h" #else #include "vogl.h" #include "vodevice.h" #endif /* * drawgrid * * draw a grid in the middle of the screen */ void drawgrid() { float x; int i; color(GREEN); rect(0.1, 0.4, 0.9, 0.6); x = 0.2; for (i = 0; i < 8; i++) { move2(x, 0.4);...
a51f6813040dd7906c802d614e572342b0b9ca8e3ae707859585752285ee8cb9
C
3,320
91
/* Copyright (C) 1989 Free Software Foundation, Inc. plot is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. No author or distributor accepts responsibility to anyone for the consequences of using it or for whether it serves any particular purpose or works at all, unless he says ...
d9880eecd5fb7247ebbe30fe85836ee8c1dd9522476361bf9a0c8ef0ef2fcf7a
C
3,329
104
/* FILE _macros/mr/strabismus.c */ #include "../Deffs.h" #include "../../deffs.h" #include "../../event.h" #define VERBOSE 0 /* FUNCTIONS: * Strabismus440 Important info (event times), 1 line per trial */ /* ******************************************************************** */ #include "string.h" /* FUNCTION St...
22769963e5528365ebff0961ac0c501873a86c5f4d8d0b27c53aa300a3bf8a6f
C
3,341
108
/* * Copyright (C) 1993,1994,2026 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /* * mfxcleartrigs mfxfile * is a small mfx application that clears all trigger codes in the * TRIGGER channel of the specified mfxfile. */ #include <stdio.h> #ifndef _XOPEN_SOURCE #d...
85318eb521e0279c1838b3a541f323b034fed898a102ccce7918b87686493b01
C
3,344
108
/* * Copyright (C) 1996-1999,2002,2003,2010,2014,2021 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * change_axes: transform method to shift, scale and rename the x and z axes * -- Bernd Feige 21.03.1994 */ /*}}} */ /*{{{ ...
14606c266fd44a0d0d5038940a5fb020d39fbcd2bd3cf896d6ad4d6de9173a2b
C
3,378
72
/* * Copyright (C) 1992-1994 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /* * mfx_infoout dumps the contents of the file and channel headers * to the stream outfile (in ASCII). This is modeled after corresponding * program parts by Scott Hampson. */ #include <s...
2700708366d03f55ded9be8be3ba9bb0aa3fb762b79a61bfbeee229d21c38532
C
3,393
127
/* plot2ps, a utility for converting Unix plot files into postscript. Copyright (C) 1989 Free Software Foundation, Inc. Plot2ps is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. No author or distributor accepts responsibility to anyone for the consequences of using it or for whether it s...
89798d8785123b29f5361f52d92d7bc391bf5354191b86eee7198114835c56ce
C
3,443
125
/* * Copyright (C) 1996-1998,2000,2003,2004 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /* * swap_xz reads data sets from a file using the readasc method * and reorganizes them into a version with swapped `x' and `z' axes * Bernd Feige 16.11.1993 */ #inclu...
278d818622e0aa7539fadcf168669b115a35842cd4ce9f87942b6744e3161852
C
3,447
194
#include <stdio.h> #ifdef SGI #include "gl.h" #include "device.h" #else #include "vogl.h" #include "vodevice.h" #endif /* * curve basis types */ Matrix bezier = { {-1.0, 3.0, -3.0, 1.0}, {3.0, -6.0, 3.0, 0.0}, {-3.0, 3.0, 0.0, 0.0}, {1.0, 0.0, 0.0, 0.0} }; Matrix cardinal = { {-0.5, 1.5, -1.5, 0.5}, {1.0, -...
90e7d75758c7f52c66931367331718b040d424703ea7a9d59659af3c2e28a219
C
3,464
195
#include <stdio.h> #ifdef SGI #include "gl.h" #include "device.h" #else #include "vogl.h" #include "vodevice.h" #endif /* * curve basis types */ Matrix bezier = { {-1.0, 3.0, -3.0, 1.0}, {3.0, -6.0, 3.0, 0.0}, {-3.0, 3.0, 0.0, 0.0}, {1.0, 0.0, 0.0, 0.0} }; Matrix cardinal = { {-0.5, 1.5, -1.5, 0.5}, {1.0, -...
9e012e9c573723f54f3ce7a797ab73e2d20df2ea9bbde385d9b6120026f0734c
C
3,540
123
/* * Copyright (C) 1994,1995,1997,2003,2010,2026 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /* * array_dump package to dump an array to a file / read it from a file * -- Bernd Feige 25.02.1994 */ /*{{{}}}*/ /*{{{ #includes*/ #include <stdio.h> #include <er...
7d6efa93a0a5719ee9760001e78321265f26b4be9f8a405d1d9109249fcc78d8
C
3,549
202
#include <stdio.h> #ifdef SGI #include "gl.h" #include "device.h" #else #include "vogl.h" #include "vodevice.h" #endif #define CUBE_SIZE 200.0 #define TRANS 25.0 #define SCAL 0.1 main() { char *p; float tdir = TRANS; float scal = 1.0 + SCAL; int but, nplanes; int x, y, i, n; short val; int bf = 1...
48b6ec6f94568367b54d54e73c0a02bee0551aecb374249e422b13c5d0a67a66
C
3,571
114
/* FILE Framemac.c */ /* Sort and align reference frames data, then write it out */ #include "../defs.h" #include "../array.h" /* Access registers directly */ #include "../sac.h" #include "../_imports/deffs.h" #include "../_imports/event.h" /* Stack instruction definitions*/ #include "../_imports/...
c4bad2d856666e86c62529f52508291eb6da70a9c297648165eb8fac9c2513c2
C
3,577
132
/* * Copyright (C) 1999,2001-2003,2010,2013 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * echo is a very simple method to output a string. * -- Bernd Feige 16.08.1999 */ /*}}} */ /*{{{ #includes*/ #include <string.h> #i...
b0818ccb368c6753c292b1ef2b43577e463f708f0aec63a4a67a19b46e3827a1
C
3,653
88
/* FILE _macros/print.c */ #include "../Deffs.h" /* ******************************************************************** */ /* Generic macro: print spike rates in specified interval, sorted by stack and class */ /* Stack name: ounit#.run# * First line: unit run begin time end time # stacks # classes ...
ced9021d3eb8bc78c70f275db3801941b552badc82aa53a689f76b6b50733321
C
3,657
104
/* * Copyright (C) 1995-1997,2000,2003 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /* Definition of `structure member' arrays for the synamps format * -- Bernd Feige 6.08.1995 */ #include <stdio.h> #include <read_struct.h> #include "freiburg.h" static char *fre...
0c4a44dc6b12a3064e6504d2e5968d21ed67a68eb0fd823c472b04d4ef92775e
C
3,673
111
/* FILE gspike */ /* Graph units in various ways: Graph_SpikeRaster: Do one line of raster Graph_SpikeHisto: Normal histogram of spikes Graph_SpikeIntegral: Integrated spike count (Hikosaka-Wurtz) Requires header (PixToIndex, etc, calls) */ #include "array.h" /* Get the data */ #include "graph.h" ...
a2f451306c2bc6cc7ebda6c894132f2cd34e92817b4a662701ab811569d529cf
C
3,678
129
/* FILE _macros/trialinfo.c */ #include "../Deffs.h" #include "../../event.h" #include <malloc.h> /* ******************************************************************** */ /* ******************************************************************** */ /* FUNCTION Trial_Info801 */ /* Write individual trial data out for ...
c764b74198fdea2abc7ad850646a2839386a60b8d5307e660a50c4c7f68b2d93
C
3,708
189
#include <stdio.h> #ifdef SGI #include "gl.h" #include "device.h" #else #include "vogl.h" #include "vodevice.h" #endif /* * drawtetra * * generate a tetraedron as a series of move draws */ void drawtetra() { move(-0.5, 0.866, -0.5); draw(-0.5, -0.866, -0.5); draw( 1.0, 0.0, -0.5); draw(-0.5, 0.866, -0....
960d225c82011a64f7403b0fc8e3f43b37ea43e4b9beba89849a8136f5b67039
C
3,725
190
#include <stdio.h> #ifdef SGI #include "gl.h" #include "device.h" #else #include "vogl.h" #include "vodevice.h" #endif /* * drawtetra * * generate a tetraedron as a series of move draws */ void drawtetra() { move(-0.5, 0.866, -0.5); draw(-0.5, -0.866, -0.5); draw( 1.0, 0.0, -0.5); draw(-0.5, 0.866, -0....
d5ee394f6057e528e18d5eac975d015ffe79c11f1060a8212416edf4010f2e1e
C
3,730
177
#include <stdio.h> #include "vogl.h" static Vstack *vsfree = (Vstack *)NULL; /* * pushviewport * * pushes the current viewport on the viewport stack * */ void pushviewport(void) { Vstack *nvport; Token *tok; if (!vdevice.initialised) verror("pushviewport: vogl not initialised"); if (vdevice.inobject) { ...
1ecd49080fea97bf4a4de183e6bc16bdf169cdcda149dd2874c238324c6c3c6b
C
3,747
157
/* * array_tred2 - Housholder reduction of a real, symmetric matrix * Adapted from the Numerical Recipes (2.0) * -- Bernd Feige 16.09.1993 * * Array a holds the input matrix with nr_of_elements==nr_of_vectors==n; * Arrays d and e have to be vectors able to store n elements. None of * these requirements is ch...
f0b42bb4695bf611d7ec29d53f9d9dd2535f6eab6e11f5995c7c5fb6eb9ac2ce
C
3,757
220
/* * Demonstrate a rotating translating tetrahedron. * Modified by garym@virtual.rose.utoronto.ca (Gary Lawrence Murphy) * to be "stereo". */ #include <stdio.h> #ifdef SGI #include "gl.h" #include "device.h" #else #include "vogl.h" #include "vodevice.h" #endif #ifndef TC #include <math.h> #else extern double sin...
2f0f8f5d38755b22c996751872928e5cb13e73e8dbcc44266f2809cebffe840d
C
3,773
158
#include <stdio.h> #ifdef SGI #include "gl.h" #include "device.h" #else #include "vogl.h" #include "vodevice.h" #endif /* * This program shows some of the simple primitives. */ main() { Screencoord minx, maxx, miny, maxy, edgelength; short val; int ls, lw; lw = 1; ls = 0xff00; winopen("shapes"); /* ...
70b99304a6f2a6e4af44636a15ab634ef77c173f9fe1e3cc9ecd8763bc1309a7
C
3,785
84
/* * Copyright (C) 1995,1996,2026 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /* This module holds global values that are needed for the kn (Patrick Berg) * library. -- Bernd Feige 4.06.1995 */ #include "transform.h" #include "bf.h" #include "rawlimit.h" #inclu...
38a02e7db2ce391e2f7418632c6ad667d95a7c2ddde9753ede24e2cac8a33e69
C
3,790
159
#include <stdio.h> #ifdef SGI #include "gl.h" #include "device.h" #else #include "vogl.h" #include "vodevice.h" #endif /* * This program shows some of the simple primitives. */ main() { Screencoord minx, maxx, miny, maxy, edgelength; short val; int ls, lw; lw = 1; ls = 0xff00; vinit("mswin"); winopen...
4f056b58df094b3980a542ba58958e9d34e46213e9cceab57fbcaaac2c3a85c2
C
3,821
133
/* FILE _macros/frame/vest_sensory.c */ /* ******************************************************************** */ #include "../Deffs.h" /* ******************************************************************** */ /* Macro for displaying data from stacks 170-184, 270-284 */ /* Reshuffle stack and class so that: s...
12ad054d361f423719d83237a99e2e866298a3919780f884dd823cc988587bda
C
3,831
120
/* FILE button.c */ /* Button push times (stand-alone switches, NOT the touch panel) */ #include "config.h" #include "deffs.h" /* PUBLIC: * PrintButtons * Get_Button_Time */ /* ******************************************************************** */ extern BUTTONS Buttons[]; /* FUNCTION PrintButtons */ /* P...
29f368fabfa0191df8ce6dba05d5cc6a3715a05e11794f3deeb4971a44864b17
C
3,865
122
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <arm_neon.h> #include <qnnpack/q8gavgpool.h> void pytorch_q8gavgpool_...
a31a64dc45490268368fda1c042ca5674b0a5ae66232891c3f1665e43589712f
C
3,867
86
/* * Copyright (C) 2008,2012 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /* Definition of `structure member' arrays for the Inomed format * -- Bernd Feige 24.09.2008 */ #include <stdio.h> #include <read_struct.h> #include "Inomed.h" struct_member sm_MULTI_CHANN...
19c404d7eb4e58c53daca4e15821e4759aa2591643b25edf2a55fe1664c3363f
C
3,886
179
/* psi.c * * Psi (digamma) function * * * SYNOPSIS: * * double x, y, psi(); * * y = psi( x ); * * * DESCRIPTION: * * d - * psi(x) = -- ln | (x) * dx * * is the logarithmic derivative of the gamma function. * Fo...
cb2f7e043d9fed6a8e70fdb8b958deebf192776f563de54e5de997b3ae7d914b
C
3,891
106
/* * Copyright (C) 1993,1994,1996-1999,2003,2004,2010 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /* * swap_xz global function to transform a linked tinfo chain into another * in which the former x coordinate is the z coordinate and vice versa. * The original dat...
4c2f41e4460e409858eadd2e858ef30bee44f17aaeac6a7c40fa9a653c4053dc
C
3,895
125
/* FILE read.c */ /* Do most of direct reading from tape (also head.c and load.c) */ #include <ctype.h> #include <fcntl.h> /* open() */ #include "defs.h" /* ******************************************************************** */ /* Read_trial: Get next trial Read_file: Get a new file ReRead_file: Star...
25d241925616a03131f023526abb9b40f4bd778927c9f35ee35c4a69e17e17b1
C
3,918
118
/* * Copyright (C) 1996,1998,1999,2001 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * calc_binomial_items adds probability items to tuple data. The original * data is copied and three more items calculated from the +/- counts that...
fa93200544877708b934eae791c75613d09043b7d7ca801ca46c501717110640
C
3,926
125
/* * Copyright (C) 1996-1999,2001,2003,2010,2013 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * extract_item extracts items from tuple data * -- Bernd Feige 16.03.1993 */ /*}}} */ /*{{{ #includes*/ #include <stdlib.h> #i...
e116f9e9c3b6f35c8ff70004b8a680f1d2fae9b5489a51e51170a7d1f4d7e7f3
C
3,948
271
#include <stdio.h> #include <math.h> #include <X11/Intrinsic.h> #include <X11/StringDefs.h> #include <X11/Xaw/Form.h> #include <X11/Xaw/Command.h> #include "vodevice.h" long thing = 2, filledthing = 1, outlinething = 2; Widget canvas; #define SIZE 512 int iii; int back = 0; int doubleb = 1; int fill = 0; int hatc...
db63f657b8f6344085ae1150529defc359533aa3697ed05b77874201b74bc766
C
3,949
442
#include "vogl.h" /* * polymode_ */ void polymode_(onoff) int *onoff; { polymode((long)*onoff); } /* * polymo_ (same as polymode_) */ void polymo_(onoff) int *onoff; { polymode((long)*onoff); } /* * poly2_ */ void poly2_(n, parray) int *n; float parray[][2]; { poly2((long)*n, parray); } /* * poly2s_ ...
c16b51eaa4598ba0006e2a9438b7b4ce1f73424921c6c93257741f2d3b01fc44
C
3,965
125
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <arm_neon.h> #include <qnnpack/q8avgpool.h> void pytorch_q8avgpool_uk...
134d3b668dfca1f8e1f2c268b5be326b2cf87b37b05b4c30b09777962a89a0a7
C
3,998
255
#include <stdio.h> #include <math.h> #include <suntool/sunview.h> #include <suntool/canvas.h> #include <suntool/panel.h> #include "vogl.h" #include "vodevice.h" #define SIZE 512 Object thing = 2, filledthing = 1, outlinething = 2; int back = 0; int doubleb = 1; int fill = 0; int hatch = 0; #define TRANS 2...
446637619bd0d787c42860ff2809a6bce22c415f4fc483333a443bddacb79fdd
C
4,000
159
/* * Copyright (C) 1993,1995 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * This file defines a dipolar source description that can be used with * dip_simulate. Since there are too many possible parameters to be * defined by the ...
13bf49844bc4e1a8f663f4ba06343596b31322fa3fc2f7c745ad9bc87a5a847d
C
4,001
130
/* * Copyright (C) 2003 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * swap_ic is a simple transform method swapping items and channels. * Note that channel names are, of course, lost. * -- Bernd Feige 9.05.2003 */ /*}}} ...
911dc7ec213add105336d857a3be9a66618596d5f14b83ea1d9c2a2b89c83452
C
4,006
144
/* * Copyright (C) 1996-2000,2003,2010 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * set_comment method to set or append to the data set comment * -- Bernd Feige 15.08.1996 */ /*}}} */ /*{{{ #includes*/ #include <stdlib...
43565a7b294078d4ef7101295487ca37e498fcc6123d49503ca5249a82281b9e
C
4,025
429
#include <stdio.h> #include "vogl.h" /* * voutput_ */ void voutput_(path, len, len0) char *path; int *len; int len0; { char buf[BUFSIZ]; register char *p; strncpy(buf, path, *len); buf[*len] = 0; for (p = &buf[*len - 1]; *p == ' '; p--) ; *++p = 0; voutput(buf); } /* * voutpu_ */ void voutpu_(pat...
a008f9176f1bed0dd7af2e4dec979cd975391952413b81663366e9fc031ec61e
C
4,029
196
#include <stdio.h> #include <fcntl.h> #include "h2v.h" /* * Read the raw hersh font data and write the binary font files * as specified in h2v.h or as specified in an index file. */ extern char *malloc(); HTAB hersh[MAX_CHARS]; void readdata(), readindex(), writefont(); /* * main driver - if argc > 2 we are cr...
745a7635161f86ee55597e53d76a4f2626d25acae7507ffae546b5905bd90dd8
C
4,031
121
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <math.h> #include <stdint.h> #include <fp16/bitcasts.h> #include <qnnpa...
f9aaf962a56f034c2006a4beb1867c285121b25cb059a52ff898170f83111631
C
4,058
90
/* * Copyright (C) 2022 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /* Definition of `structure member' arrays for the NeuroFile format * -- Bernd Feige 26.09.1997 */ #include <stdio.h> #include <read_struct.h> #include "nke_format.h" struct_member sm_nke_file_...
9cbdc48acf3012c0bf37c85a4418e1235a7499e54b44bad6c7d8ed45cae1a126
C
4,061
105
/* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */ /*========================================================================= Copyright (c) 2008 Thomas Yeo and Mert Sabuncu All rights reserved. Redistribution and use in source and binary forms, with or without modification, are ...
49d776b958403d29f8d1fb1e8b3f52adddaa921487e2dd05954e1dcceb6c5401
C
4,075
130
/* FILE userio */ /* Major user interaction with program * Title (Interactively) get title & print it ChooseReg (Interactively) get reg # from user vtprint Print string on text ('vt100') screen * ******************************************************************** */ #include <stdio.h> #include <ctype....
060c4fe124b59c153d334ddbc341a79d27e04e8fe6c8f3123ec8a6400899e4b3
C
4,130
101
/* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */ /*========================================================================= Copyright (c) 2008 Thomas Yeo and Mert Sabuncu All rights reserved. Redistribution and use in source and binary forms, with or without modification, are ...
87cce94eea33e4c4e816c02fea0d5b7623525b6ae63a2dd4535f609169ae1b1f
C
4,143
151
/* FILE stimsort.c */ /* Sort trials in current file */ #include "../defs.h" #include "../array.h" /* Access registers directly */ #include "../_imports/deffs.h" #include "../_imports/event.h" /* Stack instruction definitions*/ #define FILTER 1 /* Heavy (9 Hz) or light (46 Hz)*/ #define PRINT_R...
3bb5ee9664e8f9ea48ea7d85b4c54eac95e5f0401a2300f688d626048e521284
C
4,149
204
#include <Python.h> #define GET_DELTA(inp, inp_end, delta) \ while (inp < inp_end) { \ switch (*inp++) { \ case '"': \ case '\'': \ case '&': \ delta += 4; \ break; \ case '<': \ case '>': \ delta += 3; \ break; \ } \ } #define DO_ESCAPE(inp, inp_end, outp) \ { \ Py_ssize_t ncopy = 0; \...
16516e32a4070fc821a54e08c8b244bb4c9d63ebd9407cf95720ca722afcc596
C
4,165
139
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <math.h> #include <stddef.h> #include <stdint.h> #include <stdlib.h> #i...
0976a9a6f40c2ad522698806d8263f9f3a3d49806a4872de931839588dd7557b
C
4,169
109
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <stdint.h> #include <emmintrin.h> #include <qnnpack/requantization-stu...
1aaa1f6af723fe13d5354b09fb2f8f4a3f7c7841bd6f9efbb1ac1922549552b9
C
4,193
135
// ---------------------------------------------------------------------------- // Numerical diagonalization of 3x3 matrcies // Copyright (C) 2006 Joachim Kopp // ---------------------------------------------------------------------------- // This library is free software; you can redistribute it and/or // modify it u...
52eeb2e8e932d9cc48c2f6ff64703cd2902259ec743e10e297bf5684e7e3acf5
C
4,211
135
/* FILE _macros/stimulate/getbestclass.c */ /* ******************************************************************** */ #include "../Deffs.h" #define DEBUG 0 /* ******************************************************************** */ static int FindNullClass(int oppclass, int Stack); static int SearchClass(int stack...
379d7037af56135507a1ea5718462720242944c620199a0a91384a534a6ae730
C
4,216
134
/* * Copyright (C) 1993,1994,2002,2003,2016 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /* * chg_multiplex.c provides the global functions to change the data organisation * in memory between multiplexed [column, row] and non-multiplexed [row, column] * form. rows...
d81f69e63436c5d4b6f9810b448002d43291da76949cbc3cf6d857075ee9d6f7
C
4,216
117
/* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */ #include <math.h> #include <float.h> #include <stdio.h> #include <stdlib.h> #include "nr_util.h" #include "ad_globl.h" #include "ad_prime.h" #include "ad_matrx.h" #include "ad_frsnl.h" #include "ad_prime.h" #include "ad_cone.h" static void PrintTestRes...
170a7e2930ef975816ca7b97f99edb30317e1f4bd895895eaa9d29cd29a6235b
C
4,231
136
/* * Copyright (C) 1996-2001,2026 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * zero_phase.c method to set the phase of one channel in each map to zero * -- Bernd Feige 26.09.1994 */ /*}}} */ /*{{{ #includes*/ #include <stdio...
2128ef39928f7966793f322fe7c7c4542bb4de00f9a09d19d66797dbe4fd5e54
C
4,281
451
#include <stdio.h> /* * hsetpath_ */ void hsetpath_(fpath, len1, len2) char *fpath; int *len1; int len2; { char buf[BUFSIZ]; strncpy(buf, fpath, len2); buf[*len1] = 0; hsetpath(buf); } /* * hsetpa_ */ void hsetpa_(fpath, len1, len2) char *fpath; int *len1; int len2; { char buf[BUFSIZ]; strncpy(buf...
43d6e257533c515a361ed45da2e38a098d374c1fcddcc07a88a5650235029dfd
C
4,282
195
/** * Copyright (C) 2013 Quan Wang <wangq10@rpi.edu>, * Signal Analysis and Machine Perception Laboratory, * Department of Electrical, Computer, and Systems Engineering, * Rensselaer Polytechnic Institute, Troy, NY 12180, USA */ /** * This is the C/MEX code of dynamic time warping of two signals * * compile: ...
c1f7ae6a2d770345d40a1409ed766af41704c3b347e965ccdd411947fb0eca59
C
4,282
140
/* FILE _macros/memory/extract.c */ #include "../Deffs.h" #include "../../event.h" #define DEBUG 0 /* ******************************************************************** */ /* ******************************************************************** */ /* FUNCTION MemoryExtract40() */ void MemoryExtract40() { FILE *fi...
423d1b7d17c49c841647f6a68dc6f64c48c5df681160ab42a19eb2175436c994
C
4,289
139
/* FILE _macros/frame/pursue.c */ /* Macro to determine frame of reference : pursuit experiments */ /* ******************************************************************** */ #define LOCAL_CRITERION 0.05 #include "../Deffs.h" /* ******************************************************************** */ static v...
e9e50715904c4fa04fd946560cab421182557b040e2542f436f114ff012d11de
C
4,328
95
/* * biomag_leadfield2_sphere.c calculation of the lead field of a dipole * derived from B. Luetkenhoener's leadfield2_sphere.c * -- Bernd Feige 23.09.1993 * * As in biomag_leadfield_sphere, the number of lead field vectors evaluated * is given by the number of vectors in f, not by the number of sensor * pos...
049e291e929aa8ad6fec90b25d18f211937f2a8f33f410e3045e596f35b65c79
C
4,345
113
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <stdint.h> #include <arm_neon.h> #include <fp16/bitcasts.h> #include <...
9524bc03db3db97aff0c77b590c4cab496c3e4f5a5b0cba5674ef92a7692398d
C
4,345
107
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <stdint.h> #include <psimd.h> #include <qnnpack/requantization-stubs.h...
7c1aaaa78f63cda647174d7bdba4ad90ecc03160eb06fbf0b575a87a79b72ba4
C
4,393
166
/* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */ #include <math.h> #include <float.h> #include "nr_util.h" #include "ad_globl.h" #include "ad_bound.h" #include "ad_doubl.h" #include "ad_prime.h" #include "ad_matrx.h" #include "ad_prime.h" void RT_Layers_All(int n, double nslab, double ntopsli...
a30cf3bc3fcb72a32df9824f8017503f5b07474670ef39579303c4d69c99aa2c
C
4,420
147
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <math.h> #include <stddef.h> #include <stdint.h> #include <stdlib.h> #i...
6133432de94e2e1d1d62b5112fa752085652a37bb80cd407ae6754b036211831
C
4,425
248
/* r250.c the r250 uniform random number algorithm Kirkpatrick, S., and E. Stoll, 1981; "A Very Fast Shift-Register Sequence Random Number Generator", Journal of Computational Physics, V.40 also: see W.L. Maier, DDJ May 1991 */ static char rcsid[] __attribute__((unused)) = "@(#)r250.c 1.2 15:50:31 11/2...
cdbc560caada47806a49fc011ffe1fb56cdc62d2b28ac24473dbe28bebb60dbf
C
4,436
273
#include <stdio.h> #include <string.h> #include "vogl.h" static Vector cpos; /* Current character position */ static int sync, sc_x, sc_y; /* * font * assigns a font. */ void font(short int id) { Token *tok; if (!vdevice.initialised) verror("font: vogl not initialised"); if (id < 0 || id >= vdevice.maxfon...
fd5a37f8841aa864a399dd35c73924ee7ce6ecffcfe7f424fce976bd21683292
C
4,479
153
/* FILE paint */ /* Write/erase arbitrary lines and text */ /* ******************************************************************** */ /* GLOBAL VARIABLES */ #include "defs.h" #include "cross.h" #include "graph.h" /* Pixel->time&deg #defs*/ #include <ctype.h> /* isdigit() */ #include <stdlib.h> /* atof(...
400e992104bdcd47956e44b516de8e987f9b252d6ac4e90d38a6faaf0c9d491a
C
4,507
159
/* * Copyright (C) 1993-1996,2026 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /* * mfxtriggers.c - A small mfx application which lists the trigger codes * found in the channel named TRIGGER of the named mfx file. * Bernd Feige 10.02.1993 */ /*{{{}}}*/ /*{...
f67b501f03a81ba16cf8a6d849712a327a26f91ea4f86bd8121d1e994399a81c
C
4,530
160
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <math.h> #include <stddef.h> #include <stdint.h> #include <stdlib.h> #i...
b19513c199bcd9bdb03ab4ca788c0ade9ca447a1d1e53f0669e386fe96e7a093
C
4,532
123
/* plot2ps, a utility for converting Unix plot files into postscript. Copyright (C) 1989 Free Software Foundation, Inc. Plot2ps is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. No author or distributor accepts responsibility to anyone for the consequences of using it or for whether it s...
fdf865348904490a35f96215d9930edca30dc08990d94578324b650c96f13869
C
4,573
156
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <psimd.h> #include <qnnpack/sdwconv.h> void pytorch_sdwconv_ukernel_up4x9__psimd( size...
1a4d2e6b586e3ca58c1f1f0ca05ba63969c2d9f127f99cc045c350abf5bbeed4
C
4,613
296
#include "vogl.h" /* * Handles all the v4f v3f v2f calls */ /* * vcall * * Specify a generic point. */ static void vcall(float *vector, int len) { Vector vec; static Coord tmesh[2][3]; /* 2 vectr register for triangular mesh */ static Coord qstrip[3][3]; /* 3 vectr register for quad mesh */ ...
760e38a89e03dbe52dae11fe96186d811b0c7cfa737acc9796f34e8a770c19b0
C
4,652
140
/* FILE Auto.c */ /* Handle automode: automatically calculate new values after each 'n'*/ /* In general: automode instructions can be anything, even macros! You could add sorting, filtering, write to disk, averaging, etc. Caveate: Be consistent: don't ask for accel but not veloc, unless veloc is calculate...
90c5f95084e8a75c92f24a3738befe22c153854337d81b045df942f3e1c48a43
C
4,652
139
/* * Copyright (C) 1996-1999,2001,2019 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * rereference.c method to subtract the mean across a number of reference * channels from all channels * -- Bernd Feige 29.12.1995 */ /*}}} */ ...
3d1be31809f8deada9a911f898cdc7935926616585f0dd49597619b9cce24dc5
C
4,664
168
/* FILE _macros/switch/split.c */ /* Split by same/diff or by identity of previous trial (append '1')*/ /* ******************************************************************** */ #include "../Deffs.h" /* ******************************************************************** */ /* Trials after same effector/direct...
4c2a731a7c954fb08868e432f158060fc397528310987f08372a05ae74e74f02
C
4,669
155
/* FILE events.c */ /* Report times of events, more or less generically */ /* Not yet in use */ #include "../Deffs.h" #include "../../deffs.h" #include <string.h> /* strlen() */ #include "../../event.h" /* ******************************************************************** */ /* FUNCTION Blink410 */ /* ...
c2b6c51bad7b2923807d0be3832fdc104a7dfd8fa85b2ad5d26fd32bc1448f23
C
4,685
192
#include <stdio.h> #include <stdlib.h> #include <string.h> #define NAIVE_TEST_WINDOW 6 #define NAIVE_TEST_THRES 0.80 #define NAIVE_TEST_MIN 2 #define NAIVE_WINDOW 10 #define NAIVE_THRES 0.80 typedef struct Gap { int seq; int coord; int length; struct Gap *next; } Gap; typedef struct Gaps { int length; st...
646eafa2372547c0caaf58aba0bb50e0eff0d8153a71d46edaaaccb42a23717e
C
4,694
159
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <math.h> #include <stddef.h> #include <stdint.h> #include <stdlib.h> #i...
cc243b9423d891f8a6da0b82fae0048b6b18c99483868a969793c197c46d7905
C
4,708
161
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <math.h> #include <stddef.h> #include <stdint.h> #include <stdlib.h> #i...