sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
8ff708da38b57b82bdb6e077c8da8cdeea8c06ce54d8369d599636248d380f52
Fortran
23,465
933
! --------------------------------------------------------------------- ! ! File: 'ConsoleMessaged.f90' ! Author: J. Barthel, juribarthel@gmx.de ! Date: 05.10.2012 ! ! Subroutines for display of a simple messages in console apps ! ! - use ConsoleMessages ! ! - call CSM_VLEVEL to initialize the verbosity level ! - call ...
32c33811048651a369d6bf3e0478859f1416ebbb6727fa673dd29bc65853b5a4
Fortran
24,420
667
!********************************************************************** ! ! PROGRAM: msa, version 1.1.5 ! FILE: msa.f90 ! PURPOSE: Entry point for the console application MSA. ! Multislice calculation for electron diffraction ! !********************************************************************** ! ...
5809735e3aea69a848c2cfb708225eb70f0c19dd135dd29f48a3ee392448f114
Fortran
35,880
979
!**************************************************************************** ! ! wavimg.f90 ! ! J. Barthel, FZ-Jülich, 2008 - 2020 ! !**************************************************************************** ! ! PROGRAM: wavimg ! ! PURPOSE: Entry point for the console application. ! CTEM image calcul...
b56cfb828a88e7437a469792c1edc27b9ed6ed61b90a0775ad78fdf73f244bc8
Fortran
36,498
1,186
!**********************************************************************! ! ! file: fitfeprm.f90 ! author: j.barthel (ju.barthel-at-fz-juelich.de) 2013 ! ! Implementation of routines for least-squares minimization ! fitting of a parameterization to a table of given ! electron scattering factors. ! ! Incorporate by USE ...
cb4f5040a4f5c942f50ce2f2d9fae8ed20cadeb9986905bd4dcb18cbe44db5c1
Fortran
40,022
1,432
! !-------------------------------------------------------------------- ! ! A fast multi-particle scattering code, based on the code in ! hfmm3d.f of the Flatiron Institute FMM3D library. ! ! Original skeleton code by Manas Rachh, Leslie Greengard, etc. ! FMPS re-write by Mike O'Neil, 2019 ! oneil@cims.nyu.edu ! ! The ...
f3af4d5793b82e87d9437f4da18d13359337274a1756b81ca54baccf685ea1ee
Fortran
41,244
1,236
! -------------------------------------------------------------------------- ! ! subroutine PrepareIC ! ! Prepares static arrays for coherent image calculation ! This needs to be done just once before calling the other ! routines in this file. ! ! - input: 1 = prepare, 0 = unprepare ! ! - prepare ! allocates and ini...
2a54a41fe34b13f3d04aa1e28a1b4016582236ff8a8ba52f40ec596abedb06ca
Fortran
42,928
979
! ******************************************************************** ! ! ! Implementation of Waasmaier & Kirfel X-ray atomic form factors ! ! Acta Cryst. A 51 (1995) 416 - 431 ! ! by J. Barthel, Forschungszentrum Jülich GmbH, Jülich, Germany ! RWTH Aachen University, Aachen, Germany ! 2025-Jan-24 ! ! r...
7ac11fc3772d7f6a50a0530dd372bd73ef7508291674410902aae7968566af93
Fortran
45,174
1,396
MODULE symops ! ! !********************************************************************************** !* SYMOPS * !********************************************************************************** !* This module handles symmetry operations of line...
0e6d6571a28f4cd6ab50962d910e06226370a1c3283201cbf71d49462be65c7b
Fortran
48,124
1,394
! ******************************************************************** ! ! ! Implementation of Weickenmeier & Kohl electron atomic form factors ! ! Acta Cryst. A 47 (1991) 590 - 597 ! ! by J. Barthel, Forschungszentrum Jülich GmbH, Jülich, Germany ! RWTH Aachen University, Aachen, Germany ! 2025-Jan-24 !...
8af7976bf04a32220e278dc7f324077a2e8509974776edeb73b174872547026d
Fortran
51,757
2,096
!**********************************************************************! !**********************************************************************! ! ! ! file "binio".f95 ! ! ...
c8a2bdcce22d2d1842c3a20001a18651428e8bceb4546b8138eb2f9fdb8f2fb9
Fortran
62,297
2,070
!**********************************************************************! !**********************************************************************! ! ! FILE: "3dpot.f90" ! ! AUTHOR: Dr. J. Barthel, ju.barthel@fz-juelich.de ! Ernst Ruska-Centre ! Forschungszentrum Jülich GmbH, 52425 Jülich, Germany ! ...
5d7f96871ae8343e2f34af26717ecd378b0ac7810aae6c687140e7b60e08f9e3
Fortran
67,592
2,353
!**********************************************************************! !**********************************************************************! ! ! FILE: "fscatab.f90" ! ! AUTHOR: Dr. J. Barthel ! Forschungszentrum Jülich ! Jülich, Germany ! ! PURPOSE: Implementations for epw simulations ! In...
fea2d43ac31089cc404a60b39ccff1832436843a8f0b191f4aaf15f04e0ca829
Fortran
69,617
2,158
!**********************************************************************! !**********************************************************************! ! ! FILE: "celslcsubs.f90" ! ! AUTHOR: Dr. J. Barthel ! Ernst Ruska-Centre ! Forschungszentrum Jülich GmbH, 52425 Jülich, Germany ! ! PURPOSE: Implementation ...
545ebdfb79d664e7a56a5dce99fe1332d35a31c1e1b57fe154742e88b1d7fe86
Fortran
75,531
2,435
!**********************************************************************! !**********************************************************************! ! ! ! File : MultiSlice.f90 ! ! ...
77f1a7386b9ef1f235f7fdad6504e04748c046fc5fb9479c1f10d204c31062d5
Fortran
77,582
2,440
!**********************************************************************! !**********************************************************************! ! ! ! File : STEMfunction ! ! ...
dcbeb0bae8e4a32da43b6b8345025d6a96a22e6cc6636b2be836471397c9ea91
Fortran
83,696
2,412
!**********************************************************************! !**********************************************************************! ! ! F90 Module - cifio (CIF) ! ! Author: Dr. J. Barthel ! Forschungszentrum Juelich GmbH ! Jülich, Germany ! ju.barthel@fz-juelich.de ! first ...
0c3c76c196b80f289ac32f5de57ad445f1bf45a4b193d45eb555f28d62bfd507
Fortran
85,245
2,701
!**********************************************************************! !**********************************************************************! ! ! ! File : emsdata.f90 ! ! ...
a2464476f507476dcbc249ad3d97e2612e836f30599f3648c09b8e7fc596da0c
Fortran
102,282
4,126
!**********************************************************************! !**********************************************************************! ! ! ! file "BasicFuncs".f95 ! ! ...
0aab378772d3dc7dc6be32ca014f131e8eea0de770f756b1b5390556279312b0
Fortran
110,609
3,713
!*********************************************************************! ! ! ! MODULE AberrationFunctions ! ! -------------------------- ! ! ...
949a470bc18f5bcba9be9252ed0263a953e2033d648c06a1a6e45e5d8ba34a5e
Fortran
114,789
3,956
!*********************************************************************! ! ! ! MODULE STEMfunctions ! ! -------------------- ! ! ...
670be905d8e2e9154c2235fbc5d16ef36159ea590036f63ebcb303af5ad12f21
Fortran
122,996
4,147
!**********************************************************************! !**********************************************************************! ! ! FILE: "wavimgsubs.f90" ! ! AUTHOR: Dr. J. Barthel ! Forschungszentrum Jülich ! Jülich, Germany ! ! PURPOSE: Implementations for image simulations ! ! VERS...
9b2d35c30fc1d7af245fd99196b2b8cc02c027cb9fd06309dfb2b50881679667
Fortran
140,908
3,941
!**********************************************************************! !**********************************************************************! ! ! ! File : msaparams.f90 ! ! ...
3201a8d83ba2edefda76bf3a49233790d0e4501e99d931a2f9454f567af8dbaa
Fortran
200,000
5,612
MODULE spacegroups ! !********************************************************************************** !* SPACEGROUPS * !********************************************************************************** !* This module provides space group symmetry da...
02eb6c4988be20b6144f458ed97e09c356bbd6c41aecd07cabccc54d62e7e53f
Fortran
200,002
6,159
!**********************************************************************! !**********************************************************************! ! ! F90 Module - CellSlice (CS) ! ! Author: Dr. J. Barthel ! Forschungszentrum Juelich GmbH ! Jülich, Germany ! ju.barthel@fz-juelich.de ! fir...
48e61e965f05c3d4e2f078ccf65b84609997f5f16f3faa6c952b59cda0bf845f
Fortran
200,002
6,138
!**********************************************************************! !**********************************************************************! ! ! ! File : msasub.f90 ! ! ...
4ec053ef358706d5a9b90205a553307343a6a28ba177b9342fbad090da9fe0a5
Go
69
7
package main import "testing" func Test2(t *testing.T) { main() }
b29625eb2dcc6100179e6dab35b0a0cdfceec5a2dc61ef6e9b3033f1076fbb56
Go
69
7
package main import "testing" func Test4(t *testing.T) { main() }
f8408c12e2d64c4a62c0f1da2a358691d94df905c802b36577ca937b515b8644
Go
254
18
package main import "strings" type flagSlice []string func (i *flagSlice) String() string { if i == nil { return "" } return strings.Join([]string(*i), "\t") } func (i *flagSlice) Set(value string) error { *i = append(*i, value) return nil }
05f34171104accefc503a260970f8486dbf2813502cb6ea992d0fd5ab1fd1ca4
Go
372
14
package bulkprocess type FieldID string const ( AorticDistensibility FieldID = "20210" BloodFlow FieldID = "20213" CineTagging FieldID = "20211" SHMOLLI FieldID = "20214" LVOT FieldID = "20212" LAX FieldID = "20208" Scout FieldID ...
028b0b091362bc5ffda6a0e757873ba0fd137d361498b2b0d6feed572a9378d2
Go
467
22
package main import ( "math/rand" "time" ) func init() { // Ensure different folder names on each run rand.Seed(time.Now().UTC().UnixNano()) } // RandOrthoglyphs produces a string of length n randomly. func RandOrthoglyphs(n int) string { var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXY...
8c70f8620c5e2d654164220fe912b0f54a38218d206dab243d5ee07ce3d323b2
Go
582
23
package main func main() { // http://biobank.ctsu.ox.ac.uk/crystal/field.cgi?id=41253 // Run and merge from 3 separate queries: // // 1) for ICD/opcode fields, look into hesin // 2) for special fields with dates, look at their dates // 3) for all other fields, use the enrollment date based on their array_idx ...
dc38bab1aed6220591fe7d613c131b2e83ed42ceac9ddabfa5aef266c049a6ae
Go
591
29
package bulkprocess import ( "fmt" "path/filepath" "strings" ) type ZipMetadata struct { SampleID string FieldID string Instance string Index string } func zipPathToMetadata(path string) (ZipMetadata, error) { filename := filepath.Base(path) // Remove .zip name := strings.Split(filename, ".")[0] dat...
428ec3c383e265d53860755a2ead857ce0fa6e56b48739697972b8a5c2be54c1
Go
1,078
70
package main import ( "encoding/csv" "flag" "fmt" "io" "log" "os" "github.com/carbocation/genomisc" ) const ( // .sample file field columns ID_1 = iota ID_2 missing sex ) func main() { var ( samplePath string ) flag.StringVar(&samplePath, "sample", "", "genotyping .sample file for the UKBB") flag...
f7112d87ad7863ccbe0920faade247a7d4d2e75cecf862085999338fa8a87282
Go
1,199
53
package main import ( "fmt" "cloud.google.com/go/bigquery" "google.golang.org/api/iterator" ) func BigQuerySingleFieldFirst(wbq *WrappedBigQuery, fieldID int64) (map[int64]string, error) { out := make(map[int64]string) query := wbq.Client.Query(fmt.Sprintf(`SELECT * FROM %s.phenotype WHERE 1=1 AND FieldID=@Fi...
8ca9bab09bf4ce410d8f70daa75cb89850237419a01a7f7d6011a3460353c87c
Go
1,260
71
package main import ( "fmt" "time" ) func TimeToUKBDate(t time.Time) string { if t.Equal(time.Time{}) { return NullMarker } return t.Format("2006-01-02") } func TimesToFractionalYears(earlier, later time.Time) string { if later.Before(earlier) { return NullMarker } y, m, d, h, min, sec := time_diff(earl...
a80382dacb5e3fed6d1ca325680c6bc73c7a9f14cec49fc60ab9e50a9c1208ba
Go
1,287
73
package main import ( "fmt" "time" ) const NullMarker = "NULL" func TimeToUKBDate(t time.Time) string { if t.Equal(time.Time{}) { return NullMarker } return t.Format("2006-01-02") } func TimesToFractionalYears(earlier, later time.Time) string { if later.Before(earlier) { return NullMarker } y, m, d, h,...
cbcad506a3ddd02420f3b2d972e3c8648fac06bf894d4af9badc6636d82d69aa
Go
1,390
65
package main var ( // These identify which FieldIDs should be special-cased: either to the // HESIN table or the table with fields that have a specially-known date. // All other fields can be queried against the main phenotype table, with an // assumed date of whatever makes the most sense for your purposes // (g...
be07f81256d1159023836c5bc96d284c9951df01183420963db16d5391102f6d
Go
1,400
66
package bulkprocess import ( "fmt" "time" "github.com/araddon/dateparse" ) type DicomOutput struct { SampleID string ZipFile string FieldID string Instance string Index string Dicom DicomRow DicomMeta DicomMeta } type DicomRow struct { Filename string PatientID string Stu...
76000974fc912f856726648577f3549f1ad3755b60ac2361bd985eaeae18bc5f
Go
1,513
66
package main import ( "bytes" "fmt" "image" "image/color" "image/jpeg" "io" "io/ioutil" "github.com/gradienthealth/dicom" "github.com/gradienthealth/dicom/dicomtag" ) // Takes in a dicom file (in bytes), outputs one or more jpeg file equivalents // (in bytes) func DicomToJpeg(dicomReader io.Reader) ([][]byt...
a423f3d94cc3476cd7e312d204fe5cc152ba3d3e66c7e7e690c0eeb9d113468a
Go
1,703
94
package main import ( "fmt" "strings" "time" "gopkg.in/guregu/null.v3" ) type CensorResult struct { SampleID int64 // In the database, populate with a list of fields that we would like to // have (e.g., month of birth, lost to followup) but which were not present, // so we know if the table was constructed ...
3f9693f766b7de8fea8fd6401b789b270cb90988e520a97d7b3c293fa9f7c2af
Go
1,732
94
package main import ( "bytes" "encoding/csv" "flag" "fmt" "io" "log" "strings" "github.com/gobuffalo/packr" ) const ( GeneStableID int = iota TranscriptStableID ProteinStableID Chromosome GeneStartOneBased GeneEndOneBased Strand TranscriptStartOneBased TranscriptEndOneBased TranscriptLengthIncludin...
3082c5b2137095bfcc791004eabdcf88f19ee61e6699c1737910dcee09c4e1d3
Go
1,850
54
package main import ( "context" "flag" "log" "os" "cloud.google.com/go/bigquery" ) const NullMarker = "NA" type SamplePheno struct { SampleID int64 `bigquery:"sample_id"` Value string `bigquery:"value"` FieldID int64 `bigquery:"FieldID"` Instance int...
ddd53767e15de741d775c901c0c499f03d94bbfe287f6a44694a45bcee0a8139
Go
1,866
95
package main import ( "bytes" "encoding/csv" "flag" "fmt" "io" "log" "net/http" "strings" ) const ( ExpectedRows = 3 ) func main() { var ( codingPath string ) flag.StringVar(&codingPath, "coding", "https://raw.githubusercontent.com/OxWearables/ukb_download_and_prep_template/main/Codings_Showcase.csv",...
2b8ac1c065dc27b6390083d5c6d860fd03f358ec0f3141afb47a8f7a5a6de1a5
Go
2,046
101
package main import ( "bytes" "encoding/csv" "flag" "fmt" "io" "log" // "os" "net/http" "strings" ) const ( ExpectedRows = 17 ) func main() { var ( dictPath string ) flag.StringVar(&dictPath, "dict", "https://biobank.ndph.ox.ac.uk/~bbdatan/Data_Dictionary_Showcase.tsv", "URL to CSV file with the UK...
ef2d75e9285d2d970ac044ae878b202c9733ff033e865b8623a0d0b9cd83f3c5
Go
2,605
95
package main import ( "bufio" "context" "flag" "log" "os" "path" "strings" "cloud.google.com/go/bigquery" ) type WrappedBigQuery struct { Context context.Context Client *bigquery.Client Project string Database string } var ( BufferSize = 4096 * 8 STDOUT = bufio.NewWriterSize(os.Stdout, BufferS...
8782ffdb22c4f20df9cbcb96944b7b2b857a09c19b98392b12b5d6ee6ab3d5d4
Go
2,725
109
package main import ( "encoding/csv" "flag" "fmt" "log" "os" "os/exec" "time" ) func main() { // Consume a .bulk file // Download all data with ukbfetch var bulkPath, ukbKey, ukbFetch string var concurrency int flag.StringVar(&bulkPath, "bulk", "", "Path to *.bulk file, as specified by UKBB.") flag.Str...
4ea13af6a692680b2dc6257cf47ec3192af93bf57fffa3e84badfffe0137ef5e
Go
2,895
130
package main import ( "flag" "fmt" "io/ioutil" "log" "os" "runtime" "strings" "github.com/broadinstitute/ml4h/go/bulkprocess" ) func main() { // Makes one big combined manifest // Emits to stdout var path string flag.StringVar(&path, "path", "./", "Path where the UKBB bulk .zip files are being held.") ...
a8d0ba3416a9071274e2e5fd1e93dc776aab97e02abc5c11fe62daa6ca71e3b4
Go
3,019
127
package main import ( "bytes" "encoding/csv" "flag" "fmt" "io" "io/ioutil" "log" "path/filepath" "strings" ) func main() { // Need: // - Folder containing filenames with filename containing the lookup, and text of LVEF // - LVEF file suffix. // - Filename with sample ID var LVEFFolder, SuffixValue, Man...
2e7baf9065db684e8bd9c9192cb5eba84b4a81dca7ee8b55e21b9fc12a798a3f
Go
3,391
143
package bulkprocess import ( "fmt" "io" "io/ioutil" "strconv" "github.com/gradienthealth/dicom" "github.com/gradienthealth/dicom/dicomtag" ) // DicomMeta holds a small subset of the available metadata which we consider to // be useful from dicom images. type DicomMeta struct { HasOverlay bool OverlayFra...
6e4d8271bf5b96a04cb6b5f4ff6f115d6ef90d71ae7e1e0ef89722bb57182200
Go
4,544
176
package bulkprocess import ( "fmt" "image" "image/color" "io" "io/ioutil" "log" "github.com/gradienthealth/dicom" "github.com/gradienthealth/dicom/dicomtag" ) // DicomMeta holds a small subset of the available metadata which we consider to // be useful from dicom images. type DicomOverlayOpts struct { TopLe...
0c3688db4feb4b23bb8dae5490d397bdc101fb3d6caba1dade178adfd59bf404
Go
5,102
194
package main import ( "flag" "fmt" "io/ioutil" "log" "strconv" "image" "image/color" "image/jpeg" "math" "os" "sync" "github.com/gradienthealth/dicom" "github.com/gradienthealth/dicom/dicomlog" "github.com/gradienthealth/dicom/dicomtag" ) // See 'batcher' for a process that can convert dicoms to jpegs...
09703e644401c9cfa1c75fbbf0cdd1bbce10cbf3283342545d1e2e49da89cccc
Go
5,345
222
package main import ( "context" "fmt" "log" "time" "cloud.google.com/go/bigquery" ) func Censor(BQ *WrappedBigQuery, deathCensorDateString, phenoCensorDateString string) error { var err error var res map[int64]string var out = make(map[int64]CensorResult) // connect to BigQuery BQ.Context = context.Backgro...
60658341f93ada537f1991bca1c59bb01bc42e2238ab3fd084a3e33d11e89c58
Go
7,139
265
package main import ( "archive/zip" "bytes" "encoding/csv" "flag" "fmt" "image/png" "io" "io/ioutil" "log" "os" "path/filepath" "strconv" "strings" "github.com/broadinstitute/ml4h/go/bulkprocess" ) var ( ZipColumn = -1 DicomColumn = -1 ) func main() { // Consumes a batch list that contains zipfil...
23a3be1e4d4e528918cd9e453dc4438d0177d68ba0ff3a140b9bf46dc0fc92d5
Go
7,368
252
package main import ( "encoding/csv" "errors" "fmt" "log" "os" "strconv" "strings" ) type TabEntry struct { FieldID int Values []string Exclude bool } // The UK Biobank keys up the ICD and OPCS codes without any decimals, so e.g., // K41.2 becomes K412. You can look up the true value using the coding tabl...
fb62ec721983708e9bfad998a175939d8bec8eb917992112f406802a85cccfff
Go
9,180
352
package bulkprocess import ( "archive/zip" "bufio" "bytes" "encoding/csv" "fmt" "io" "log" "os" "path" "strings" "github.com/davecgh/go-spew/spew" "github.com/jmoiron/sqlx" ) // Many of the manifest.csv files are invalid. They use commas as delimiters and // do not use quotes, and yet they have fields (l...
3a322cb22bb81bdbc8c6c606532dc657a4ebe0603f9d91cd1f379be240403fce
Go
11,192
397
package main import ( "bufio" "context" "encoding/csv" "flag" "fmt" "io" "log" "os" "sort" "strconv" "strings" "cloud.google.com/go/bigquery" "github.com/carbocation/genomisc" "google.golang.org/api/iterator" ) const ( // pheno file field columns eid = iota ) type SamplePheno struct { Column Sampl...
2bf7f08058e3dc89a715a2a3b4af74440e8fbbb5440101016f63afeb850d920c
Go
17,376
411
package main import ( "fmt" "os" "strconv" "strings" "time" "github.com/carbocation/pfx" "cloud.google.com/go/bigquery" "google.golang.org/api/iterator" ) type Result struct { SampleID int64 `bigquery:"sample_id"` HasDisease bigquery.NullInt64 `bigquery:"has_di...
f2b9df7874c53fad7b33060bad05e3b407bf8ccfc3be66f59bb2fede8313eabd
Go
140,120
3,930
// Copyright (c) 2019, The Emergent Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //color diff runs a color learning task, looking at differentiation of color. //based on ra25: // ra25 runs a simple random-associator four-layer le...
7303695cc358ddcfe813cd5e04541cfb0708f120c077e9880ce735f91839d29b
Go
144,659
4,046
// Copyright (c) 2019, The Emergent Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //color diff runs a color learning task, looking at differentiation of color. //based on ra25: // ra25 runs a simple random-associator four-layer le...
ce4a1806771f12f2e60d4ba36903243021015171b88a4c599b1af0c6134440ea
Go
145,747
4,043
// Copyright (c) 2019, The Emergent Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //color diff runs a color learning task, looking at differentiation of color. //based on ra25: // ra25 runs a simple random-associator four-layer le...
584f8672c835306813e3d53180f077ca94a8fbd86c1efe4820700e1704c26c40
Java
100
7
package io.ray.benchmark; public enum PressureTestType { SINGLE_LATENCY, RATE_LIMITER, MAX }
d9e2e5f71f4aa744046610139e353dab64b9749cddaa7cb340a4b937b4ea2324
Java
126
4
package io.ray.api.function; /** Interface of all `RayFuncVoidX` classes. */ public interface RayFuncVoid extends RayFunc {}
b386a22627df635926ebe58a5ab9786cacc9881f06af9f3a4d6d0f71a5aa7785
Java
127
12
package io.ray.runtime.metric; /** Types of the metric. */ public enum MetricType { COUNT, GAUGE, SUM, HISTOGRAM }
3061406ca0fda9e4fd18f9f9da1780f118e56dc3e6a71635e8b4ffe9cf7f0490
Java
129
8
package io.ray.test; public interface ExampleInterface { default String echo(String str) { return "default" + str; } }
e5f26f430a422a48086776a514acde06078143533efb79c286c8d247d906825c
Java
147
4
package io.ray.api.concurrencygroup; /** The interface indicates concurrent executing in one thread pool. */ public interface ConcurrencyGroup {}
8f419215bfdd1167943fa0f9fcb5a9a9609f292c751a5d6741c1aefbc8127619
Java
151
4
public class javaMovie { static { System.load("/Users/justin/Desktop/mglMovie/libjavamovie.so"); } public static native boolean initMovie(); }
a808444758e1b3107bbf91b2b1d6843e689e2a5b107f927a57abd0abb24edb79
Java
156
7
package io.ray.api.runtime; /** A factory that produces a RayRuntime instance. */ public interface RayRuntimeFactory { RayRuntime createRayRuntime(); }
7cd6564a277a29f30cdca3038330ab79a1e0227927cdce76e3de8d6804b302ea
Java
165
6
package io.ray.api.function; import java.io.Serializable; /** Base interface of all Ray remote java functions. */ public interface RayFunc extends Serializable {}
d36ab1de727e4c902e85d06473c45c2af0c8b96173cdeb8bc96aab00f7879c16
Java
167
8
package io.ray.api.exception; public class CrossLanguageException extends RayException { public CrossLanguageException(String message) { super(message); } }
1af084e591be646b99680a9f6d9fe0422985c6b226c5c6093feca0312db0e653
Java
176
12
package Orion_Stardist; public class Point2D { public final long x, y; public Point2D(long x, long y) { this.x = x; this.y = y; } }
8b2546bca7da30729a3e4baf57f472a66d1a543b4f7ec7c1e2f6698c917a5a01
Java
188
12
package Orion_Stardist; public class Orion_Point2D { public final long x, y; public Orion_Point2D(long x, long y) { this.x = x; this.y = y; } }
4a9a41a1134a872827746ca2f234ee9bacd201b8c7e7b821b217c2125c6b0331
Java
200
13
// Theo Walker // Max Planck Florida Institute // naroom@gmail.com package cellMagicWand; public class Pixel{ public int x,y; public Pixel(int x, int y){ this.x=x; this.y=y; } }
a89dcf9f6f62dfc72d1a21636f3502abbd05ac6d53582b4814151e66ba75fcf3
Java
201
8
package io.ray.api; /** Handle of a Cpp actor. */ public interface CppActorHandle extends BaseActorHandle, CppActorCall { /** Returns the name of the Cpp actor class. */ String getClassName(); }
bb16840b2b712e53690b5597ec915dc2f832f53a56c472a97d5b1545ae3522fd
Java
201
8
package io.ray.api.function; /** * Interface of all Ray remote functions which have a return value. * * @param <R> Type of function return value */ public interface RayFuncR<R> extends RayFunc {}
a3b96042427442996b7a85bb17e23182cacff6098e2a42f4e08e25b4fc67998c
Java
206
8
package io.ray.serve.poll; /** Listener of long poll. It notifies changed object to the specified key. */ @FunctionalInterface public interface KeyListener { void notifyChanged(Object updatedObject); }
748f9ec2acc53a47f0e76a06225a31593acb5aa79f65c85406605833e536b765
Java
214
10
package io.ray.serve.util; import java.util.Collection; public class CollectionUtil { public static <E> boolean isEmpty(Collection<E> collection) { return collection == null || collection.isEmpty(); } }
cca34445c6b1a313e30773778a7b66f67260d2d0d8845264bbc5b9a9b41f8f2f
Java
214
12
package io.ray.serve.docdemo.test; import io.ray.serve.docdemo.StrategyCalc; import org.testng.annotations.Test; public class StrategyCalcTest { @Test public void test() { StrategyCalc.main(null); } }
3e4654e6477743f95a0e2cbacd3d8177388df3f23126cfff915414f845b386d6
Java
217
9
package io.ray.serve.util; import com.google.protobuf.InvalidProtocolBufferException; @FunctionalInterface public interface ProtobufBytesParser<T> { T parse(byte[] bytes) throws InvalidProtocolBufferException; }
6999ae6eceedebeb10aef6ea9f8ff8f86af4e01fd00c966c5568d28433c10d46
Java
226
11
package io.ray.serve.controller; import io.ray.serve.poll.LongPollRequest; public interface ServeController { byte[] getAllEndpoints(); byte[] listenForChange(LongPollRequest longPollRequest); String getRootUrl(); }
b256d13619a40558e0e0c1f4e4c9fc2e3870f2e19c1f725192a52717a6d93ada
Java
240
12
package io.ray.api.exception; public class RayException extends RuntimeException { public RayException(String message) { super(message); } public RayException(String message, Throwable cause) { super(message, cause); } }
015dd89037bf8587685c44174d2012dcbe9b031dc0c7147be8e6901d900f08a2
Java
248
12
import java.io.IOException; public class Keytest { public static boolean test(char key) { try { if (System.in.available()==0) return false; return System.in.read()==(int)key; } catch (IOException e) { return false; } } }
ef390615f4af293bfae49bbed97906c39216c924d1410601ea10d47e4a9669fe
Java
251
10
// generated automatically, do not modify. package io.ray.api.function; /** Functional interface for a remote function that has 0 parameter. */ @FunctionalInterface public interface RayFunc0<R> extends RayFuncR<R> { R apply() throws Exception; }
3cb11644cecb407d5cdf069e3f12de8e484bbe65279a796542cc96692c2ec4af
Java
255
10
// generated automatically, do not modify. package io.ray.api.function; /** Functional interface for a remote function that has 0 parameter. */ @FunctionalInterface public interface RayFuncVoid0 extends RayFuncVoid { void apply() throws Exception; }
32862118aae38d9de424652d9493a5306db95a5bcf16c800d608ea46733f90ed
Java
257
12
package io.ray.api.exception; public class RuntimeEnvException extends RayException { public RuntimeEnvException(String message) { super(message); } public RuntimeEnvException(String message, Throwable cause) { super(message, cause); } }
3df223edfadf3b705c3bfaee547a3aae8ceeb35e847356c36836078c72485bc1
Java
260
10
// generated automatically, do not modify. package io.ray.api.function; /** Functional interface for a remote function that has 1 parameter. */ @FunctionalInterface public interface RayFunc1<T0, R> extends RayFuncR<R> { R apply(T0 t0) throws Exception; }
043b2acb36a3d2434942749409ecd18336ab8a9709d30a6a6de7c76c00ecdf3d
Java
264
10
// generated automatically, do not modify. package io.ray.api.function; /** Functional interface for a remote function that has 1 parameter. */ @FunctionalInterface public interface RayFuncVoid1<T0> extends RayFuncVoid { void apply(T0 t0) throws Exception; }
bdd44462c0030717e387f8e45e608e61100779b71c92fe5556c19d8cb77b3165
Java
266
9
package io.ray.serve.util; /** Ray Serve common log tool. */ public class MessageFormatter { public static String format(String messagePattern, Object... args) { return org.slf4j.helpers.MessageFormatter.arrayFormat(messagePattern, args).getMessage(); } }
2d7852b21d1346e6e33244cb52d889cf1923938a83e5a2e01668fc26db173ed7
Java
272
10
// generated automatically, do not modify. package io.ray.api.function; /** Functional interface for a remote function that has 2 parameters. */ @FunctionalInterface public interface RayFunc2<T0, T1, R> extends RayFuncR<R> { R apply(T0 t0, T1 t1) throws Exception; }
3f3eb14c75c40bc0fc05d9cbbd48abfb19a0a2cafb8e6c68cdf0926d591b3bda
Java
272
10
package io.ray.serve.util; import org.apache.commons.lang3.StringUtils; public class CommonUtil { public static String getDeploymentName(String deploymentDef) { return StringUtils.substringAfterLast(StringUtils.substringAfterLast(deploymentDef, "."), "$"); } }
3cd8251861f85004b7676b4da260b2e5b06eefab13d71858e4d376f9618138a2
Java
275
7
package io.ray.api.parallelactor; /** * The `ParallelActor` is used for creating multiple execution instances in different threads, to * execute the methods. The methods will be invoked on the instances in different threads. */ public class ParallelActor extends Call {}
1d4b2eedb36e4d127266c50f44ef0567f6dd4c464a96fd628e2212a6dbf53398
Java
276
13
package io.ray.serve.util; import org.testng.Assert; import org.testng.annotations.Test; public class LogUtilTest { @Test public void formatTest() { String result = MessageFormatter.format("{},{},{}", "1", "2", "3"); Assert.assertEquals(result, "1,2,3"); } }
8914bf34587cc0f8d0a36f6f97fc7c4131cffc9bb0ba99742e670c1d9449b347
Java
276
10
// generated automatically, do not modify. package io.ray.api.function; /** Functional interface for a remote function that has 2 parameters. */ @FunctionalInterface public interface RayFuncVoid2<T0, T1> extends RayFuncVoid { void apply(T0 t0, T1 t1) throws Exception; }
5d7a8668cfc6a97fa8dbee763548902ebda1288e51b4a05199acdd7b29f67d1e
Java
279
11
package io.ray.serve.docdemo; // docs-strategy-start public class StrategyOnRayServe { public String calcIndicator(Long time, String bank, String indicator) { // do bank data calculation return bank + "-" + indicator + "-" + time; // Demo; } } // docs-strategy-end
da42541588fffb0998f4d115543ca44d228739423d5e8f9b6222d578a65367fd
Java
283
10
// generated automatically, do not modify. package io.ray.api.function; /** Functional interface for a remote function that has 3 parameters. */ @FunctionalInterface public interface RayFunc3<T0, T1, T2, R> extends RayFuncR<R> { R apply(T0 t0, T1 t1, T2 t2) throws Exception; }
b0685482766e0a26672e011ad5740bf30ffae73cf587e9e392d7030e20c36658
Java
284
13
package io.ray.runtime.config; public enum RunMode { /** * Ray is running in one single Java process, without Raylet backend, object store, and GCS. It's * useful for debug. */ LOCAL, /** Ray is running on one or more nodes, with multiple processes. */ CLUSTER, }
a2dcb5eb8f5f8d5692141b30544226c919b09fb501032157ee181d44b3f7c71a
Java
287
10
// generated automatically, do not modify. package io.ray.api.function; /** Functional interface for a remote function that has 3 parameters. */ @FunctionalInterface public interface RayFuncVoid3<T0, T1, T2> extends RayFuncVoid { void apply(T0 t0, T1 t1, T2 t2) throws Exception; }
7292b835cd7a1ea053695fb1f0532e0eb234a2883182dcc6c164fc149fa178f8
Java
292
11
package io.ray.api; /** Handle of a Python actor. */ public interface PyActorHandle extends BaseActorHandle, PyActorCall { /** Returns the module name of the Python actor class. */ String getModuleName(); /** Returns the name of the Python actor class. */ String getClassName(); }
27cbd79f650082516b3c32d739520353c115319b39debc67e5247477958eac6c
Java
294
10
// generated automatically, do not modify. package io.ray.api.function; /** Functional interface for a remote function that has 4 parameters. */ @FunctionalInterface public interface RayFunc4<T0, T1, T2, T3, R> extends RayFuncR<R> { R apply(T0 t0, T1 t1, T2 t2, T3 t3) throws Exception; }
ef117b5ec607d8ead44a2ac4712d864f484462023542206922ac6bce793d4bde
Java
298
10
// generated automatically, do not modify. package io.ray.api.function; /** Functional interface for a remote function that has 4 parameters. */ @FunctionalInterface public interface RayFuncVoid4<T0, T1, T2, T3> extends RayFuncVoid { void apply(T0 t0, T1 t1, T2 t2, T3 t3) throws Exception; }
c177bd31ba54637ac78529e7cd11300f008a87a83a863bacede1229841af8bed
Java
303
17
package io.ray.test; public class ExampleImpl implements ExampleInterface { @Override public String echo(String str) { return str; } public String overloadedFunc(String str1) { return str1; } public String overloadedFunc(String str1, String str2) { return str1 + str2; } }