Dataset Viewer
Auto-converted to Parquet Duplicate
sha256
stringlengths
64
64
language
stringclasses
25 values
size
int32
1
210k
lines
int32
1
9.41k
content
stringlengths
1
200k
e6e212e2cdb07ec797742b3f46b3484ed0798b298b51cbbcb461bd97468577d5
C
96
2
const char *gitrev = "c32f52956bd7cb9411c9f05dc3bd39a024742313"; const char *gittag = "v1.0.3";
40271cc4be3d31ebcad4b3c01ab3b6d2ded5daed5f5c670f3bdb35c2471a1cc0
C
181
19
#include <stdio.h> void main(){ int c,f; scanf("%d",&c); f=fact(c); printf("fact is =%d\n",f); } int fact(int n) { if (n == 0|| n==1) { return 1; } else{ return(n*fact(n-1)); } }
95bab458b18b18c408d2a06ad76617837c35321093219df18cb843eae2edf8a8
C
285
11
#include "parse_common.h" #include "nifti-format.h" #include "4dfp-format.h" common_format* parse_common_format(char* root, char rec_open) { common_format* ret = parse_nifti(root, rec_open); if (ret == NULL) ret = parse_4dfp(root, NULL);//second argument is t4 file return ret; }
812e5fc5593d7e1590a1e9e719fa7430ca415b76654d30decba0838a2d787d1d
C
327
17
#include <iostream.h> int main() { int grade, sum, n, average; n = 0; sum = 0; while (n < 5) { cout << "Enter a grade" << endl; cin >> grade; sum = sum + grade; n++; } average = sum / 5; cout << "The average is " << average << endl; return ...
88c67dbe011d6805435b6e0c8522a056fb2b7902ec1bd051aa2c61730e8c87b6
C
339
21
#include <stdio.h> #include <stdlib.h> #include <sys/time.h> main(argc, argv) int argc; char **argv; { int i, n, s; struct timeval t; if (argc < 2) n = 10; else n = atoi(argv[1]); gettimeofday(&t,NULL); printf(" seed: %d\n",t.tv_usec); srandom(t.tv_usec); for (i=0; i< n; i++) printf("%3d\n"...
94031d9f738650bb96045163d54516788aba64e31a487d4f083e0bcca75458de
C
339
14
// Export versions of __builtin_cpu_supports for external calls. // This is a tiny library used for testing in preflights. int cpu_supports_sse4_2() { return __builtin_cpu_supports("sse4.2"); } int cpu_supports_popcnt() { return __builtin_cpu_supports("popcnt"); } int cpu_supports_avx() { return __builtin_cpu_...
1b19ffe2e344cbd002f541ef651553f56a2cab5400d0b776919a3ea56441267c
C
526
119
/* A program to compute the average of five grades*/ #include <stdio.h> int main() { int x; int y; int grade, n; float Sum, average; n = 0; Sum = 1; while (n < 4) { n++; printf("Value of N is %d and Sum is %f\n",n,Sum); } average = Sum / 4; return 0; } (t...
b352e7de41313a270d534d5422a33138ff8009c74a7f7be60979866696e3b65d
C
691
28
/*$Header: /data/petsun4/data1/src_solaris/frame_align/RCS/slice_sequence.c,v 1.1 2011/07/26 05:24:02 avi Exp $*/ /*$Log: slice_sequence.c,v $ * Revision 1.1 2011/07/26 05:24:02 avi * Initial revision **/ #include <stdlib.h> #include <math.h> void slice_sequence (int interleaved, int force0, int reverse, int *s...
19c63f1b8551685558d324b78c3193d969b91071f67622f0699a8f9afafaf414
C
699
29
/*$Header: /data/petsun4/data1/src_solaris/imglin/RCS/t4scale.c,v 1.2 2007/05/04 01:33:55 avi Exp $*/ /*$Log: t4scale.c,v $ * Revision 1.2 2007/05/04 01:33:55 avi * supply missing argument to error report * * Revision 1.1 2006/09/26 22:50:47 avi * Initial revision **/ #include <stdlib.h> #include <math.h> #...
c4890caa20846e907a7ddee9e8026e1c964ef4c3292d19ec7247a2e9e28eac54
C
793
37
/*$Header: /data/petsun4/data1/src_solaris/imglin/RCS/dnormal.c,v 1.1 2006/08/17 08:06:30 avi Exp $*/ /*$Log: dnormal.c,v $ * Revision 1.1 2006/08/17 08:06:30 avi * Initial revision **/ #include <math.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #define MAXL 256 double dnormal () { static in...
89d88de70f45a7ed241dfc399661459ad690ca22411bf837d51b5b56b3487748
C
817
39
/*$Header$*/ /*$Log$*/ #include <stdlib.h> #include <math.h> #include <string.h> #include <stdio.h> extern void set_rnan_ (float *); float rnan (void) { union { float r; unsigned int j; /* works also with unsigned long at least on littleendian CPUs */ } word; word.j = 0x7fffffff; return word.r; } i...
9416f1758b7579d128658d432e6273de0c303be4f5ed5368b67dae789c1d62b8
C
880
61
/* FILE : matrix.c : some simple 4x4 matrix operations */ #include <stdlib.h> #include <stdio.h> double **new_matrix() { int i; double **M; M = (double **) malloc(4*sizeof(double *)); M[0] = (double *) malloc(16*sizeof(double)); for (i = 0; i < 4; i++) { M[i] = M[0] + 4*i; } return M; } void ...
104d6de81c5eb723e44cac63028834617817064607b24827229a1a6766366302
C
924
32
/*$Header: /data/petsun4/data1/src_solaris/t4imgs_4dfp/RCS/cvrtflip.c,v 1.2 2007/09/23 02:58:25 avi Exp $*/ /*$Log: cvrtflip.c,v $ * Revision 1.2 2007/09/23 02:58:25 avi * #include <stdlib.h> and <stdio.h> * * Revision 1.1 2005/08/05 03:54:11 avi * Initial revision **/ #include <stdlib.h> #include <stdio.h...
96e0eccdf50594a93873a32c53c534d77b5a77b2f074cf187d111360998e8e46
C
941
45
/*$Header$*/ /*$Log$*/ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <librms.h> #define MAXL 256 void setprog (char *program, char **argv) { char *ptr; if (!(ptr = strrchr (argv[0], '/'))) ptr = argv[0]; else ptr++; strcpy (program, ptr); } int main (int argc, char **a...
0302f19f6b5df8d27d3307abb0981dcc0ce50656359813598038a2fa122b12c1
C
953
32
/*$Header: /data/petsun4/data1/src_solaris/cross_realign3d_4dfp/RCS/gauss2diz.c,v 1.2 2006/09/28 21:45:31 avi Exp $*/ /*$Log: gauss2diz.c,v $ * Revision 1.2 2006/09/28 21:45:31 avi * Solaris 10 * * Revision 1.1 1997/05/23 01:30:29 yang * Initial revision * * Revision 1.1 1996/05/17 21:23:57 avi * Initi...
2417a336137843dc93d8fe9ecfe5912098cb6d31107181f6d97f899d9bbad7b8
C
960
41
/*$Header: /data/petsun4/data1/src_solaris/nifti_4dfp/RCS/split.c,v 1.1 2009/07/08 01:01:35 coalsont Exp $*/ /*$Log: split.c,v $ * Revision 1.1 2009/07/08 01:01:35 coalsont * Initial revision **/ static char* rcsid = "$Id: split.c,v 1.1 2009/07/08 01:01:35 coalsont Exp $"; /* Tim Coalson [tsc5yc@mst.edu], NRG, 29...
e4d704563737815b652dc5ff027c55dec9ee6511c810993b2dc184d17e4ab948
C
1,036
56
#include <stdio.h> #include <string.h> #include <stdlib.h> #define MAXENV 1024 char *envstr; char *mgetenv(str) char *str; { static int EnvInit=0; char *eptr, *esptr, *bp; int i,esize; FILE *fenv; if (EnvInit==0) { EnvInit=1; if ((fenv=fopen("environment","r"))!=NULL) { if ((envstr=malloc((size_t)(esi...
2dd53ce8109917091526704e4764a96020bf10e3904e5fca41d60d7b3a3fd08a
C
1,128
44
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #include <time.h> #include <endianio.h> #include <Getifh.h> #include <rec.h> #include <librms.h> #include <nrutil.h> #include <RSF.h> int main(int argc, char **argv) { int i, j, n; char FS4dfp[MAXL], FSLUT[MAXL], Head4d...
a25b53a5de0b6d78a065dccae0e6a1b0379f9dd5f5894763d0f43ba5f1fc5b6c
C
1,293
59
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #include <time.h> #include <endianio.h> #include <Getifh.h> #include <rec.h> #include <librms.h> #include <nrutil.h> #include <RSF.h> int main (int argc, char **argv) { char imgfile[MAXL], roifile[MAXL], outfile[MAXL], ...
6de28bfc1bfac85bdfe3178ac628d60dac6aaaab2323cfefae6318715b891c5c
C
1,522
67
#include <stdio.h> #include <stdlib.h> #define NR_END 1 void nrerror(char error_text[]) /* Numerical Recipes standard error handler */ { printf("Numerical Recipes run-time error...\n"); printf("%s\n",error_text); printf("...now exiting to system...\n"); exit(1); } float *vector(long nl, long nh) /* allocate a fl...
9787023a3b8f9ddfdb16babe30ecb8cb3b489a2a7d603b8f2cc9635decea4ec8
C
1,561
42
/*$Header: /data/petsun4/data1/src_solaris/librms/RCS/img2lmask.c,v 1.1 2007/04/11 06:40:21 avi Exp $*/ /*$Log: img2lmask.c,v $ * Revision 1.1 2007/04/11 06:40:21 avi * Initial revision **/ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <librms.h> static char rcsid [] = "...
357206fd5d3abbce48dd09ea392ac82368947fdf53a714473e83b26618e8dd87
C
1,564
42
/*$Header: /data/petsun4/data1/src_solaris/cross_realign3d_4dfp/RCS/gauss3diz.c,v 1.2 2006/09/28 21:45:10 avi Exp $*/ /*$Log: gauss3diz.c,v $ * Revision 1.2 2006/09/28 21:45:10 avi * Solaris 10 * * Revision 1.1 1997/05/23 01:30:29 yang * Initial revision * * Revision 1.3 1996/05/14 02:43:41 avi * add I...
2be6fcbf722c7b87f1c81fa8eed9bc65e98f42b8aa08be61dec9a39f1a472077
C
1,570
87
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <nrutil.h> #ifndef SMALL #define SMALL 1.0e-2 #endif float loganREF(float *REF, float *ROI, float k2, float *t, float *frd, int nframes, int stframe, int endframe, float *intercept, float *slope, float *Rsq) { float BP, r, *x, *y,...
fdea5ea5b7ce5fbd35b96ae9f48cc50f306f50f9c8d87eb2af2aacdcea7192e0
C
1,627
73
/*$Header: /data/petsun4/data1/src_solaris/permute/RCS/permute.c,v 1.1 2006/12/30 01:49:00 avi Exp $*/ /*$Log: permute.c,v $ * Revision 1.1 2006/12/30 01:49:00 avi * Initial revision **/ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #define MAXL 256 typedef struct { int seq; l...
79098055e973b99b2a7cdabd7e2b91e4acecfe45e1f7d89a8b894c5c9e5f5dfd
C
1,653
47
/*$Header: /data/petsun4/data1/src_solaris/librms/RCS/imag2mask.c,v 1.2 2007/09/18 23:23:52 avi Exp $*/ /*$Log: imag2mask.c,v $ * Revision 1.2 2007/09/18 23:23:52 avi * update cast and #include librms.h * * Revision 1.1 1996/04/19 17:04:58 ty7777 * Initial revision **/ #include <stdlib.h> #include <stdio.h...
f01f23522c0c05312bd60ee58784e9afe53eeb9196abd6f11d06bca0098dd68b
C
1,732
63
/*$Header: /data/petsun4/data1/src_solaris/permute/RCS/permuteN.c,v 1.3 2010/03/17 03:52:10 avi Exp $*/ /*$Log*/ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #define MAXL 256 /*************/ /* externals */ /*************/ void permute (int *seq, int nseq); /* permute.c */ static c...
de7922b27debba6e4e1afa7508a15e781d6f89261e12807fb8b2d07f68fa173f
C
1,776
89
/*$Header: /home/usr/shimonyj/JSSutil/RCS/random.c,v 1.1 2007/08/28 03:33:33 avi Exp $*/ /*$Log: random.c,v $ * Revision 1.1 2007/08/28 03:33:33 avi * Initial revision **/ #include <math.h> #define IA 16807 #define IM 2147483647 #define AM (1.0/IM) #define IQ 127773 #define IR 2836 #define NTAB 32 #define NDIV ...
e9825d1cee07160863c34b8b48ffb64a2fff354525c8db022a6c0b2a92578cd5
C
1,792
69
/*$Header: /data/petsun4/data1/src_solaris/TRX/RCS/spline23dvgh_test.c,v 1.3 2007/04/22 02:25:40 avi Exp $*/ /*$Log: spline23dvgh_test.c,v $ * Revision 1.3 2007/04/22 02:25:40 avi * remove splint2dvgh_testf_() * * Revision 1.2 2007/04/01 00:03:22 avi * break out spline23dvgh.h * command line control of test...
3496542d1bc3be06a6bae474055de8f2b2963b8a68bf0aafb3d1f38be28f820f
C
1,906
61
/*$Header: /data/petsun4/data1/src_solaris/normalize_4dfp/RCS/img2hist.c,v 1.3 2006/09/29 17:08:09 avi Exp $*/ /*$Log: img2hist.c,v $ * Revision 1.3 2006/09/29 17:08:09 avi * Solaris 10 * * Revision 1.2 1999/03/24 00:26:57 avi * range tayloring using marg[] * * Revision 1.1 1996/07/15 05:42:50 avi * In...
2137ba2674bf397aec969cdfc68d9576e6a363960b6e789eb04de116e0299367
C
1,911
102
#include <math.h> #define SWAP(a,b) tempr=(a);(a)=(b);(b)=tempr void realft(data,n,isign) double data[]; int n,isign; { int i,i1,i2,i3,i4,n2p3; double c1=0.5,c2,h1r,h1i,h2r,h2i; double wr,wi,wpr,wpi,wtemp,theta; void four1(); theta=3.141592653589793/(double) n; if (isign == 1) { c2 = -0.5; four1(data,n,1);...
1e5591b0efbcdeb4a72414c636454dcc8e5bb5c7dbfc95e5bd172318942c2b07
C
1,917
71
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <math.h> #include <time.h> #include <endianio.h> #include <Getifh.h> #include <rec.h> #include <librms.h> #include <nrutil.h> #include <RSF.h> int main(int argc, char **argv) { int i, NROI, f; char Frame4dfp[MAXL], RSFMask4dfp[...
2ffac54b52373ea5b0b3d318c447307fe5f7dc0ab489f17658f3bb254af3003c
C
1,975
80
/*$Header: /data/petsun4/data1/src_solaris/flip_4dfp/RCS/cflip.c,v 1.3 2007/04/25 05:00:57 avi Exp $*/ /*$Log: cflip.c,v $ * Revision 1.3 2007/04/25 05:00:57 avi * properly include standard includes * remove local errm() * * Revision 1.2 2004/11/18 20:50:57 rsachs * Fixed a logic error. * * Revision 1.1 ...
f29afe348e16ed75bc549b20b71ccf80c28005ee9e0728ecd592de88c3d62515
C
2,026
136
#include<stdio.h> #include<stdlib.h> #include<math.h> int ROW =512,COL=512; double MAX,MIN; double max=0,min=1000; int xcor,ycor; int main() { int i,j,**dim; double **sim, coef=0.0; FILE *fr,*fw,*ftp,*fdim; fr = fopen("Magnitude.txt","r"); if(fr==NULL) printf("ERROR:READING\n"); fw...
6af1322edd5371d1ff8e4e3c2eaaf85b696a9e51108e4e8e19b574a6283b778a
C
2,029
98
/*$Header*/ /*$Log: lud.c,v $ * Revision 1.2 2007/02/13 07:12:22 avi * code cleaned **/ /* 2002.10.01 - LU decomposition R. Sachs */ #include <math.h> #include <stdlib.h> #include <stdio.h> #define TINY 1.0e-20; typedef float type; void ludcmp (type **a, int n, int *indx, type *d) { int i, imax, j, k; type ...
3731f4c8795afbc6b0f60d7f4e3d231842649faeda4070b8622793e311aa6e48
C
2,037
73
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <math.h> #include <time.h> #include <endianio.h> #include <Getifh.h> #include <rec.h> #include <librms.h> #include <nrutil.h> #include <RSF.h> int main(int argc, char **argv) { int i, NROI, f, maxidx; char Frame4dfp[MAXL], RSFM...
625d9dc443eddf90c38be80c46c8d3a19b14abdd6d4afbcc6e95d6cd5264aadd
C
2,059
74
/********************************************************************************** Calculating regional binding potential using Logan Reference Tissue model USAGE: loganREFROI reftac roitac roiname k2 sf ef opt reftac: reference region tac file roitac: target region tac file roiname: name of the roi k2: ef...
316e5ecbf9b25773fcb6eb04e238eefaddf2beea2e271718ef17d353acce0222
C
2,139
70
/*$Header: /home/usr/shimonyj/diff4dfp/RCS/t4tolin.c,v 1.2 2008/09/16 02:58:55 avi Exp $*/ /*$Log: t4tolin.c,v $ * Revision 1.2 2008/09/16 02:58:55 avi * #include <JSSutil.h> * * Revision 1.1 2005/12/08 03:13:59 avi * Initial revision **/ #include <stdlib.h> #include <stdio.h> #include <math.h> #include <st...
f89b56c195a1ee7844a51f633f48c5ad4c11ac93f3f4af79060359e51ef8cfc8
C
2,197
91
/*$Header: /data/petsun4/data1/src_solaris/actmapf_4dfp/RCS/format2lst.c,v 1.6 2009/07/30 05:42:08 avi Exp $*/ /*$Log: format2lst.c,v $ * Revision 1.6 2009/07/30 05:42:08 avi * linux compliant * * Revision 1.5 2005/08/30 21:52:22 avi * expanded format buffer size increased to 16384 chars * * Revision 1.4 ...
20c536895932c028c23f25ec44b3f5cb2cc792e9c36f72bb2707b4a85c854744
C
2,213
96
/*$Header: /data/petsun4/data1/src_solaris/imglin/RCS/t4_ident.c,v 1.1 2007/05/01 02:00:12 avi Exp $*/ /*$Log: t4_ident.c,v $ * Revision 1.1 2007/05/01 02:00:12 avi * Initial revision **/ #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <math.h> #define M...
2f8150d88215d950089170d0bb7cf150ce764d480551d9f6d813c0cc0b0d151a
C
2,254
146
struct colormaptype map_red = { { {0,0,0}, {0.1,0,0}, {0.2,0,0}, {0.3,0,0}, {0.4,0,0}, {0.5,0,0}, {0.6,0,0}, {0.7,0,0}, {0.8,0,0}, {0.9,0,0}, {1,0,0}, {1,0.1,0.1}, {1,0.2,0.2}, {1,0.3,0.3}, {1,0.4,0.4}, {1,0.5,0.5}, {1,0.6,0.6}, {1,0.7,0.7}, {1,0.8,0.8}, {1,0.9,0.9}, {1,1,1}},21 }; struct colormap...
1a3bd3a59dc1cbbd8226c4e8d6f7f2b73aad3c1c9e241aa546ae0a0aa311031d
C
2,344
102
/*$Header: /data/petsun4/data1/src_solaris/imglin/RCS/t4_io.c,v 1.3 2010/03/03 01:26:02 avi Exp $*/ /*$Log: t4_io.c,v $ * Revision 1.3 2010/03/03 01:26:02 avi * t4_write returns void * * Revision 1.2 2010/02/19 01:50:19 avi * correct bug in response to error return from t4_read() * * Revision 1.1 2009/02/...
34c8edce4043866213b49009ef040a8ee035ab98d26e95ee59c40a4c2f8c62d2
C
2,389
148
#include<stdio.h> #include<stdlib.h> #include<time.h> void main() { char inpfile[100],outfile[100]; FILE *inpfp,*outfp; long noofdata,noofcol,i,j,ch,seed; double k; double **x; long *tag,k2; time_t t; FILE *data; data=fopen("indexx.txt","w"); fclose(data); printf("\nEnter the input file name\n"); sc...
57ed1d27b9354529f0a650097fee944e69e07afee5c5896058434b3fcbfdb926
C
2,512
105
/*$Header: /data/petsun4/data1/src_solaris/librms/RCS/fft_test.c,v 1.1 2006/02/19 01:28:22 avi Exp avi $*/ /*$Log: fft_test.c,v $ * Revision 1.1 2006/02/19 01:28:22 avi * Initial revision **/ #include <stdlib.h> #include <stdio.h> #include <math.h> #include <float.h> #include <string.h> #define NMAX 200 void er...
69ebd66924fcdc73e79c33c49d803d53e5b68903bf35c6c6ebc694873206a3da
C
2,588
79
/*$Header: /data/petsun4/data1/src_solaris/librms/RCS/dgeigen.c,v 1.4 2011/08/30 03:43:19 avi Exp $*/ /*$Log: dgeigen.c,v $ * Revision 1.4 2011/08/30 03:43:19 avi * trap ill-conditioned sig2 * * Revision 1.3 2011/08/21 02:47:25 avi * complete rewrite now with correct algorithm * * Revision 1.2 2009/01/20 ...
dc31ade666c49fd5d4ec5bc34211c118bcda9a130a7b3738f1b88888876ff6eb
C
2,710
95
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <math.h> #include <time.h> #include <endianio.h> #include <Getifh.h> #include <rec.h> #include <librms.h> #include <nrutil.h> #include <RSF.h> int main(int argc, char **argv) { int i, Niter, NROI, f; char Frame4dfp[MAXL], RSFMas...
c4113f96277f0a4e63fe40c48ffc599cb8763a8e1ed3943f69afa666c3733ebc
C
2,951
124
/*$Header: /data/petsun4/data1/src_solaris/imglin/RCS/stretch_out.c,v 1.1 2010/03/03 01:27:10 avi Exp $*/ /*$Log: stretch_out.c,v $ * Revision 1.1 2010/03/03 01:27:10 avi * Initial revision **/ #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <math.h> #inc...
3d6c6eae567eba37de6d2e358fa8aa2eb10b3c254cda59008a5ed58c71c9321b
C
3,006
98
/*$Header: /data/petsun4/data1/src_solaris/gauss_4dfp/RCS/cgauss3dd.c,v 1.2 2007/05/04 01:57:59 avi Exp $*/ /*$Log: cgauss3dd.c,v $ * Revision 1.2 2007/05/04 01:57:59 avi * #include <librms.h> and <endianio.h> * * Revision 1.1 2007/04/24 05:38:14 avi * Initial revision **/ #include <stdlib.h> #include <stdi...
7f1662fca67a17c2758380cdf48d51e58d42314ae0112c3c9a135d171811669e
C
3,061
102
/*$Header: /data/petsun4/data1/src_solaris/librms/RCS/cgauss3d.c,v 1.3 2007/05/04 01:07:54 avi Exp $*/ /*$Log: cgauss3d.c,v $ * Revision 1.3 2007/05/04 01:07:54 avi * missing #includes * * Revision 1.2 2007/04/24 05:20:13 avi * correct 3d fft algorithm * * Revision 1.1 2007/04/23 01:05:11 avi * Initial...
261d59212942a40a94713ca29a6c04de3402533c864474a08c463e69007e8788
C
3,062
106
/*$Header: /data/petsun4/data1/src_solaris/analyzeto4dfp/RCS/hdr2txt.c,v 1.3 2007/09/21 23:36:38 avi Exp $*/ /*$Log: hdr2txt.c,v $ * Revision 1.3 2007/09/21 23:36:38 avi * linux, X86 compliant * * Revision 1.2 2002/06/24 18:55:37 chad * do not strip off .4dfp .4dint * * Revision 1.1 2002/06/20 01:49:19 ...
603e71a961dab46a5ff563e0bb8e0aec37e08d77adbc917599efafae46d5a459
C
3,104
102
/**************************************************************************************/ /* Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 */ /* Washington University, Mallinckrodt Institute of Radiology. */ /* All Rights Reserved. ...
d08e3273a2a42de645a3e84dba87bb144324ae633f78c944292c9d4d4ba9443a
C
3,114
115
/*$Header: /data/petsun4/data1/src_solaris/imglin/RCS/t4_factor.c,v 1.1 2009/02/23 06:15:22 avi Exp $*/ /*$Log*/ #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <math.h> #include <t4_io.h> #define MAXL 256 /*************/ /* externals */ /*************/ void ...
f909d46be8a3acf498c1234a3086df01966c855d1ab278fc395ce248fd981763
C
3,131
105
/*$Header: /data/nil-bluearc/raichle/suy/cvsroot/src/cgauss3d.c,v 1.1.1.1 2012/08/21 17:34:14 suy Exp $*/ /*$Log: cgauss3d.c,v $ /*Revision 1.1.1.1 2012/08/21 17:34:14 suy /*Imported sources /* * Revision 1.3 2007/05/04 01:07:54 avi * missing #includes * * Revision 1.2 2007/04/24 05:20:13 avi * correct 3d ...
0db0b773357a03d01e1cf8a3856597b5aa4710eae60f232f16d6c44552623c41
C
3,306
136
/*$Header: /data/petsun4/data1/src_solaris/imglin/RCS/t4_pts.c,v 1.1 2009/10/27 05:44:20 avi Exp $*/ /*$Log: t4_pts.c,v $ * Revision 1.1 2009/10/27 05:44:20 avi * Initial revision **/ #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <math.h> #include <t4_i...
b8157ed7b9fac6e5cbd99c076c84602ea65de2041f8e20a4b582ddae78829b9a
C
3,368
111
/*$Header: /data/petsun4/data1/src_solaris/TRX/RCS/Inithdr.c,v 1.8 2007/05/04 18:23:16 avi Exp $*/ /*$Log: Inithdr.c,v $ * Revision 1.8 2007/05/04 18:23:16 avi * #include <unistd.h> * * Revision 1.7 2007/05/04 03:08:38 avi * linux gcc compliant * cuserid -> getpwuid * * Revision 1.6 2005/12/16 02:41:13 ...
1b773be16c0e15f9dd4e0dbc72ba1333124b037bb657f40c3c647f1fe562d5b6
C
3,388
122
/* * $Id: f1776966c408c02e9ce8d6e403267fff5c494eda $ * CUnit unit tests for dcm.c * by Kevin A. Archie, karchie@wustl.edu */ #include <stdio.h> #include <CUnit/Basic.h> #include "dicom.h" #include "condition.h" #include "lst.h" #include "dicom_objects.h" #include "dicom_uids.h" #include "dcmprivate....
9b1a3b7beffb765218000e9f883dd0920bc67f0c986f5adecaaa69a4c4979b89
C
3,497
134
/*$Header: /data/petsun4/data1/src_solaris/TRX/RCS/ifh2hdr.c,v 1.10 2007/05/04 02:14:45 avi Exp $*/ /*$Log: ifh2hdr.c,v $ * Revision 1.10 2007/05/04 02:14:45 avi * quiet gcc -Wall * * Revision 1.9 2007/02/28 05:35:19 avi * Solaris 10 * * Revision 1.8 2006/03/26 00:10:17 avi * eliminate redundant screen...
b1db222a6d9f445663f25f1c887189b367c535787d7b717b19c742d27a2e94d5
C
3,854
106
/********************************************************************************** Generation of whole brain ROI from FREESURFER segmentation results. USAGE: fs2brain FSfile fsROIlist FSfile is the 4dfp file of the freesurfer segmentation output, typically wmparc001.4dfp.img; fsROIlist is three column text fi...
52c83ebbe9d6c80c0e7402d3433e6d573c51b2a9f966250966df409cb2f96a86
C
3,897
134
/*$Header: /data/petsun4/data1/src_solaris/sqrt_4dfp/RCS/bertulani_betai.c,v 1.3 2006/09/25 00:33:07 avi Exp $*/ /*$Log: bertulani_betai.c,v $ * Revision 1.3 2006/09/25 00:33:07 avi * #include <stdio.h> * * Revision 1.2 2005/09/19 06:09:47 avi * correct typo in comment field * * Revision 1.1 2005/09/10 0...
e522ec38937c660e324d2a191e362add2eb86d7ff39e9ee30c3329730dd1a4b0
C
3,924
125
/*$Header: /data/petsun4/data1/src_solaris/peak_4dfp/RCS/read_4dfp.c,v 1.4 2010/08/18 04:22:23 avi Exp $*/ /*$Log: read_4dfp.c,v $ * Revision 1.4 2010/08/18 04:22:23 avi * correct endian dependent error * * Revision 1.3 2007/09/23 03:01:27 avi * Solaris 10 and linux compliant * * Revision 1.2 2006/03/07 ...
b19bb634f8fecbb6230faa2505c50b82e9ad653781dc86c1dc67375c11d7ac4a
C
4,110
161
/*$Id: asciito4dfp.c,v 1.1 2007/09/08 21:00:58 avi Exp $*/ /*$Log: asciito4dfp.c,v $ * Revision 1.1 2007/09/08 21:00:58 avi * Initial revision **/ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <math.h> #include <rec.h> #include <Getifh.h> #include <endianio.h> #define MA...
1049fd9b235f422058071a98f2c6af1f9a23082aec3a6120069bd662717c9d3b
C
4,119
112
/* Copyright (C) 1993, 1994, RSNA and Washington University The software and supporting documentation for the Radiological Society of North America (RSNA) 1993, 1994 Digital Imaging and Communications in Medicine (DICOM) Demonstration were developed at the ...
74912dfc64368668757c75254cfb6b23e6e2040769150fc4831d34640a96f6aa
C
4,292
150
/*$Id: img2msk_4dfp.c,v 1.7 2007/03/02 07:38:37 avi Exp $*/ /*$Log: img2msk_4dfp.c,v $ * Revision 1.7 2007/03/02 07:38:37 avi * Solaris 10 * * Revision 1.6 2004/09/17 20:21:43 rsachs * Cosmetic minutiae. * * Revision 1.5 2004/09/16 21:07:45 rsachs * Replaced 'Get4dfpDimN' with 'get_4dfp_dimo'. * * Re...
331c609187cb7571884f447db53aedab4d6cac232a6d750425ad23e40c0e1272
C
4,340
174
/* Copyright (C) 2001 Washington University */ /* Copyright marker. Copyright will be inserted above. Do not remove */ /* ** Electronic Radiology Laboratory ** Mallinckrodt Institute of Radiology ** Washington University School of Medicine ** ** Module Name(s): ** Author, Date: Stephen M. Moore...
5ff57c80a41eb7707abb87e7a36cc90196969c49ee6aed68d2b6d175629cde89
C
4,359
150
/*$Header: /data/petsun4/data1/src_solaris/zero_lt_4dfp/RCS/zero_gt_4dfp.c,v 1.6 2007/08/18 23:03:11 avi Exp $*/ /*$Log: zero_gt_4dfp.c,v $ * Revision 1.6 2007/08/18 23:03:11 avi * typo * * Revision 1.5 2007/08/18 23:00:50 avi * endian compliant * * Revision 1.4 2005/10/25 03:27:51 avi * allow first ar...
021d7503f5b4c42ba7a21cf6c87bf49bc0ee5e8dfacef5759749921d8c34bbd5
C
4,375
156
/*$Header: /data/petsun4/data1/src_solaris/nifti_4dfp/RCS/common-format.c,v 1.5 2012/09/08 01:04:45 avi Exp $*/ /*$Log: common-format.c,v $ * Revision 1.5 2012/09/08 01:04:45 avi * eliminate in-line type defining and, hence, requirement for gcc -std=c99 * * Revision 1.4 2010/08/16 18:20:29 coalsont * cast to...
59a347a0ac3e8573ee94c7a30f5c10c292f436b1be51386889ed9bf3ae5c26c2
C
4,464
155
/*$Header: /data/petsun4/data1/src_solaris/zero_lt_4dfp/RCS/zero_ltgt_4dfp.c,v 1.4 2007/08/19 00:27:19 avi Exp $*/ /*$Log: zero_ltgt_4dfp.c,v $ * Revision 1.4 2007/08/19 00:27:19 avi * endian compliant * * Revision 1.3 2004/11/08 20:38:38 rsachs * Replaced 'Get4dfpDinN' with 'get_4dfp_dimo'. * * Revision 1...
b26daa5c1a2b258c30f76591d55b142585f8a1ebbfb97d8c5caf205f5b2a2ad8
C
4,473
155
/*$Header: /data/petsun4/data1/src_solaris/zero_lt_4dfp/RCS/zero_gtlt_4dfp.c,v 1.4 2007/08/19 00:10:26 avi Exp $*/ /*$Log: zero_gtlt_4dfp.c,v $ * Revision 1.4 2007/08/19 00:10:26 avi * endian compliant * * Revision 1.3 2004/11/08 20:06:55 rsachs * Installed 'errm','errr','errw','getroot','setprog','get_4dfp_...
85190b96135789d5218ab8cbfebb8cf89e93b6f1a42a5005e20a778d3bf663d2
C
4,514
156
/*$Header: /data/petsun4/data1/src_solaris/gauss_4dfp/RCS/hsphere_4dfp.c,v 1.5 2007/04/17 05:26:50 avi Exp $*/ /*$Log: hsphere_4dfp.c,v $ * Revision 1.5 2007/04/17 05:26:50 avi * gcc compliant * * Revision 1.4 2006/09/25 17:43:17 avi * Solaris 10 * * Revision 1.3 2004/10/11 22:00:29 rsachs * Installed ...
8ebc81387d75c130b46819a4ea7ceba46f7fea39109e25f13958cc8540f24c9e
C
4,594
153
/*$Header: /data/petsun4/data1/src_solaris/S2T_4dfp/RCS/T2C_4dfp.c,v 1.5 2007/08/31 05:11:30 avi Exp $*/ /*$Log: T2C_4dfp.c,v $ * Revision 1.5 2007/08/31 05:11:30 avi * linux and X86 Solaris compliant * * Revision 1.4 2007/01/18 06:54:46 avi * cosmetic * * Revision 1.3 2007/01/18 03:51:36 avi * endian ...
41027da8f3cdd6d790387b281be7a2d92a7589dfdc4c35ebfe2d691eb70d075e
C
4,605
183
/*$Header: /data/petsun4/data1/src_solaris/imglin/RCS/t4_inv.c,v 1.1 2007/05/01 01:20:20 avi Exp $*/ /*$Log: t4_inv.c,v $ * Revision 1.1 2007/05/01 01:20:20 avi * Initial revision **/ #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <math.h> #include <libr...
a2c61b2dc10ce4e3e101acab85ba1d89d44b8e63ed3519d0ee245dd526e2c7f7
C
4,618
146
/*$Header: /data/petsun4/data1/src_solaris/flip_4dfp/RCS/flip_4dfp.c,v 1.6 2007/05/04 00:36:21 avi Exp $*/ /*$Log: flip_4dfp.c,v $ * Revision 1.6 2007/05/04 00:36:21 avi * parens around truth value to keep gcc -Wall quiet * * Revision 1.5 2007/05/02 01:28:30 avi * endian gcc v3 compliant * * Revision 1.4 ...
817f6f75ad2b99f6d3d1da877944f49498d2248c8d9aaa74297ab6c9b77a3913
C
4,655
152
/*$Header: /data/petsun4/data1/src_solaris/S2T_4dfp/RCS/T2S_4dfp.c,v 1.4 2007/08/31 05:18:24 avi Exp $*/ /*$Log: T2S_4dfp.c,v $ * Revision 1.4 2007/08/31 05:18:24 avi * linux and X86 Solaris compliant * * Revision 1.3 2007/01/18 06:55:17 avi * use endianio * * Revision 1.2 2004/11/24 21:12:09 rsachs * ...
End of preview. Expand in Data Studio

Open Scientific Code Registry (OSCR): the authors' scripts

The code published by the authors of open-access neuroscience papers, as found and verified by Open Scientific Code Registry (OSCR). Each file is here exactly as it is at the source, at the verified commit, under the license of its repository.

  • 46,356 unique files (368 MB of text) from 920 repositories, in 4 Parquet block(s).
  • Only files whose repository's license allows redistribution, confirmed by the repository's own license file (or, for an archive without one, by its record). Files without such a license are never copied here: Open Scientific Code Registry (OSCR) links to them at the source.
  • No text of any paper.

Layout

  • blocks/NNNNN.parquet: one row per unique file (SHA-256 of its text): sha256, language, size, lines, content. zstd page compression, 64 rows per row group: a single file can be read with HTTP range requests (for example with hyparquet in a browser). A published block never changes; new files go into new blocks.
  • manifests/<xx>/<repository>.json: per repository, its URL, commit and license, and for each file its path, digest, and the (block, row) holding its text.

Licenses

Each file keeps the license of its repository, given in the repository's manifest (license, license_confirmed_by). Repositories by license:

license repositories
MIT 404
CC-BY-4.0 190
GPL-3.0 139
Apache-2.0 63
BSD-3-Clause 50
CC0-1.0 16
GPL-2.0 13
BSD-2-Clause 10
CC-BY-NC-SA-4.0 7
CC-BY-NC-4.0 6
AGPL-3.0 5
CC-BY-NC-ND-4.0 4
other-open 3
LGPL-3.0 3
CC-BY-SA-4.0 2
MPL-2.0 1
LGPL-2.1 1
EUPL-1.2 1
CECILL-2.1 1
Artistic-2.0 1

Files under a non-commercial license (CC BY-NC…) may only be reused non-commercially.

Takedown

An author who wants a file removed: open an issue at https://github.com/yannbellec/Open-Scientific-Code-Registry-OSCR-/issues.

Downloads last month
242