repo
stringlengths
1
152
file
stringlengths
14
221
code
stringlengths
501
25k
file_length
int64
501
25k
avg_line_length
float64
20
99.5
max_line_length
int64
21
134
extension_type
stringclasses
2 values
openalpr
openalpr-master/src/openalpr/simpleini/ConvertUTF.h
/* * Copyright © 1991-2015 Unicode, Inc. All rights reserved. * Distributed under the Terms of Use in * http://www.unicode.org/copyright.html. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of the Unicode data files and any associated documentation * (the "Data Files") or Uni...
7,095
41.238095
77
h
openalpr
openalpr-master/src/openalpr/support/fast_mutex.h
/* -*- mode: c++; tab-width: 2; indent-tabs-mode: nil; -*- Copyright (c) 2010-2012 Marcus Geelnard This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this ...
6,940
26.875502
80
h
openalpr
openalpr-master/src/openalpr/support/filesystem.h
#ifndef FILESYSTEM_H #define FILESYSTEM_H #ifdef WINDOWS #include <windows.h> #include "windows/dirent.h" #include "windows/utils.h" #include "windows/unistd_partial.h" typedef int mode_t; #else #include <dirent.h> #include <unistd.h> #endif #include <stdint.h> #include <string> #include <sys/stat.h> #include <vecto...
1,196
22.470588
86
h
openalpr
openalpr-master/src/openalpr/support/tinydir.h
/* Copyright (c) 2013, Cong Xu All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disc...
8,501
20.255
90
h
openalpr
openalpr-master/src/openalpr/support/tinythread.h
/* -*- mode: c++; tab-width: 2; indent-tabs-mode: nil; -*- Copyright (c) 2010-2012 Marcus Geelnard This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this ...
21,220
28.67972
108
h
openalpr
openalpr-master/src/openalpr/support/utf8.h
// Copyright 2006 Nemanja Trifunovic /* Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivat...
1,590
40.868421
75
h
openalpr
openalpr-master/src/openalpr/support/re2/filtered_re2.h
// Copyright 2009 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The class FilteredRE2 is used as a wrapper to multiple RE2 regexps. // It provides a prefilter mechanism that helps in cutting down the // number of regexp...
3,975
35.145455
72
h
openalpr
openalpr-master/src/openalpr/support/re2/prefilter.h
// Copyright 2009 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Prefilter is the class used to extract string guards from regexps. // Rather than using Prefilter class directly, use FilteredRE2. // See filtered_re2.h #...
3,009
26.614679
77
h
openalpr
openalpr-master/src/openalpr/support/re2/prefilter_tree.h
// Copyright 2009 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The PrefilterTree class is used to form an AND-OR tree of strings // that would trigger each regexp. The 'prefilter' of each regexp is // added tp Prefilte...
4,903
35.325926
77
h
openalpr
openalpr-master/src/openalpr/support/re2/prog.h
// Copyright 2007 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Compiled representation of regular expressions. // See regexp.h for the Regexp class, which represents a regular // expression symbolically. #ifndef RE2_P...
14,531
36.84375
94
h
openalpr
openalpr-master/src/openalpr/support/re2/regexp.h
// Copyright 2006 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // --- SPONSORED LINK -------------------------------------------------- // If you want to use this library for regular expression matching, // you should use...
22,800
34.794349
88
h
openalpr
openalpr-master/src/openalpr/support/re2/set.h
// Copyright 2010 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifndef RE2_SET_H #define RE2_SET_H #include <utility> #include <vector> #include "re2.h" namespace re2 { using std::vector; // An RE2::Set represents a c...
1,682
29.053571
77
h
openalpr
openalpr-master/src/openalpr/support/re2/stringpiece.h
// Copyright 2001-2010 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // A string-like object that points to a sized piece of memory. // // Functions or methods may use const StringPiece& parameters to accept either // a "c...
5,911
30.784946
80
h
openalpr
openalpr-master/src/openalpr/support/re2/unicode_casefold.h
// Copyright 2008 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Unicode case folding tables. // The Unicode case folding tables encode the mapping from one Unicode point // to the next largest Unicode point with equiva...
2,514
32.092105
79
h
openalpr
openalpr-master/src/openalpr/support/re2/unicode_groups.h
// Copyright 2008 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Unicode character groups. // The codes get split into ranges of 16-bit codes // and ranges of 32-bit codes. It would be simpler // to use only 32-bit ran...
1,504
22.153846
61
h
openalpr
openalpr-master/src/openalpr/support/re2/variadic_function.h
// Copyright 2010 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifndef RE2_VARIADIC_FUNCTION_H_ #define RE2_VARIADIC_FUNCTION_H_ namespace re2 { template <typename Result, typename Param0, typename Param1, typename Arg,...
16,649
47.26087
79
h
openalpr
openalpr-master/src/openalpr/support/re2/walker-inl.h
// Copyright 2006 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Helper class for traversing Regexps without recursion. // Clients should declare their own subclasses that override // the PreVisit and PostVisit methods, ...
7,756
30.404858
80
h
openalpr
openalpr-master/src/openalpr/support/re2/util/atomicops.h
// Copyright 2006-2008 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifndef RE2_UTIL_ATOMICOPS_H__ #define RE2_UTIL_ATOMICOPS_H__ // The memory ordering constraints resemble the ones in C11. // RELAXED - no memory orderi...
4,421
25.8
129
h
openalpr
openalpr-master/src/openalpr/support/re2/util/benchmark.h
// Copyright 2009 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifndef RE2_UTIL_BENCHMARK_H__ #define RE2_UTIL_BENCHMARK_H__ namespace testing { struct Benchmark { const char* name; void (*fn)(int); void (*fnr)(int...
1,263
29.095238
118
h
openalpr
openalpr-master/src/openalpr/support/re2/util/flags.h
// Copyright 2009 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Simplified version of Google's command line flags. // Does not support parsing the command line. // If you want to do that, see // https://gflags.github.io...
988
34.321429
79
h
openalpr
openalpr-master/src/openalpr/support/re2/util/logging.h
// Copyright 2009 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Simplified version of Google's logging. #ifndef RE2_UTIL_LOGGING_H__ #define RE2_UTIL_LOGGING_H__ #include <assert.h> #include <ostream> #include <stdio....
2,379
25.153846
96
h
openalpr
openalpr-master/src/openalpr/support/re2/util/mutex.h
// Copyright 2007 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* * A simple mutex wrapper, supporting locks and read-write locks. * You should assume the locks are *not* re-entrant. */ #ifndef RE2_UTIL_MUTEX_H_ #defi...
7,530
34.191589
80
h
openalpr
openalpr-master/src/openalpr/support/re2/util/sparse_array.h
// Copyright 2006 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // DESCRIPTION // // SparseArray<T>(m) is a map from integers in [0, m) to T values. // It requires (sizeof(T)+sizeof(int))*m memory, but it provides // fast...
14,312
30.251092
97
h
openalpr
openalpr-master/src/openalpr/support/re2/util/sparse_set.h
// Copyright 2006 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // DESCRIPTION // // SparseSet<T>(m) is a set of integers in [0, m). // It requires sizeof(int)*m memory, but it provides // fast iteration through the eleme...
5,412
27.340314
72
h
openalpr
openalpr-master/src/openalpr/support/re2/util/test.h
// Copyright 2009 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifndef RE2_UTIL_TEST_H__ #define RE2_UTIL_TEST_H__ #include "util/util.h" #include "util/flags.h" #define TEST(x, y) \ void x##y(void); \ TestRegisterer ...
1,144
21.45098
56
h
openalpr
openalpr-master/src/openalpr/support/re2/util/utf.h
/* * The authors of this software are Rob Pike and Ken Thompson. * Copyright (c) 2002 by Lucent Technologies. * Permission to use, copy, modify, and distribute this software for any * purpose without fee is hereby granted, provided that this entire notice * is included in all copies of any software wh...
1,510
34.139535
81
h
openalpr
openalpr-master/src/openalpr/support/re2/util/util.h
// Copyright 2009 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #ifndef RE2_UTIL_UTIL_H__ #define RE2_UTIL_UTIL_H__ // C #include <stdint.h> #include <stddef.h> // For size_t #if !defined(_WIN32) #include <sys/time.h...
2,988
26.172727
80
h
openalpr
openalpr-master/src/openalpr/support/utf8/checked.h
// Copyright 2006 Nemanja Trifunovic /* Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivat...
12,172
36.112805
120
h
openalpr
openalpr-master/src/openalpr/support/utf8/unchecked.h
// Copyright 2006 Nemanja Trifunovic /* Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivat...
8,907
37.899563
120
h
openalpr
openalpr-master/src/openalpr/support/windows/dirent.h
/* * dirent.h - dirent API for Microsoft Visual Studio * * Copyright (C) 2006-2012 Toni Ronkko * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * ``Software''), to deal in the Software without restriction, including * wit...
23,732
26.123429
119
h
openalpr
openalpr-master/src/openalpr/support/windows/unistd_partial.h
#ifndef _UNISTD_H #define _UNISTD_H 1 /* This file intended to serve as a drop-in replacement for * unistd.h on Windows * Please add functionality as neeeded */ #include <stdlib.h> #include <io.h> //#include <getopt.h> /* getopt from: http://www.pwilson.net/sample.html. */ #include <process.h> /* for getpid()...
1,218
27.348837
76
h
openalpr
openalpr-master/src/openalpr/textdetection/characteranalysis.h
/* * Copyright (c) 2015 OpenALPR Technology, Inc. * Open source Automated License Plate Recognition [http://www.openalpr.com] * * This file is part of OpenALPR. * * OpenALPR is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License * version 3 as publi...
2,047
26.675676
105
h
openalpr
openalpr-master/src/openalpr/textdetection/linefinder.h
/* * Copyright (c) 2015 OpenALPR Technology, Inc. * Open source Automated License Plate Recognition [http://www.openalpr.com] * * This file is part of OpenALPR. * * OpenALPR is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License * version 3 as publi...
2,333
31.873239
118
h
openalpr
openalpr-master/src/openalpr/textdetection/platemask.h
/* * Copyright (c) 2015 OpenALPR Technology, Inc. * Open source Automated License Plate Recognition [http://www.openalpr.com] * * This file is part of OpenALPR. * * OpenALPR is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License * version 3 as publi...
1,265
23.346154
76
h
openalpr
openalpr-master/src/openalpr/textdetection/textcontours.h
/* * Copyright (c) 2015 OpenALPR Technology, Inc. * Open source Automated License Plate Recognition [http://www.openalpr.com] * * This file is part of OpenALPR. * * OpenALPR is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License * version 3 as publi...
1,493
23.096774
76
h
openalpr
openalpr-master/src/openalpr/textdetection/textline.h
/* * Copyright (c) 2015 OpenALPR Technology, Inc. * Open source Automated License Plate Recognition [http://www.openalpr.com] * * This file is part of OpenALPR. * * OpenALPR is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License * version 3 as publi...
1,667
26.8
107
h
openalpr
openalpr-master/src/statedetection/line_segment.h
/* * Copyright (c) 2015 OpenALPR Technology, Inc. * Open source Automated License Plate Recognition [http://www.openalpr.com] * * This file is part of OpenALPR. * * OpenALPR is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License * version 3 as publi...
1,733
24.5
80
h
openalpr
openalpr-master/src/statedetection/state_detector.h
/* * Copyright (c) 2015 OpenALPR Technology, Inc. * Open source Automated License Plate Recognition [http://www.openalpr.com] * * This file is part of OpenALPR. * * OpenALPR is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License * version 3 as publi...
1,628
28.089286
115
h
openalpr
openalpr-master/src/statedetection/state_detector_impl.h
/* * Copyright (c) 2015 OpenALPR Technology, Inc. * Open source Automated License Plate Recognition [http://www.openalpr.com] * * This file is part of OpenALPR. * * OpenALPR is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License * version 3 as publi...
1,573
30.48
115
h
openalpr
openalpr-master/src/tclap/Arg.h
// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*- /****************************************************************************** * * file: Arg.h * * Copyright (c) 2003, Michael E. Smoot . * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno . * All rights reverved. * * See the file COPYING in the t...
18,430
24.84993
90
h
openalpr
openalpr-master/src/tclap/ArgException.h
// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*- /****************************************************************************** * * file: ArgException.h * * Copyright (c) 2003, Michael E. Smoot . * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more i...
5,434
25.129808
79
h
openalpr
openalpr-master/src/tclap/ArgTraits.h
// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*- /****************************************************************************** * * file: ArgTraits.h * * Copyright (c) 2007, Daniel Aarno, Michael E. Smoot . * All rights reverved. * * See the file COPYING in the top directory of this distribution for...
2,621
26.893617
79
h
openalpr
openalpr-master/src/tclap/CmdLine.h
// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*- /****************************************************************************** * * file: CmdLine.h * * Copyright (c) 2003, Michael E. Smoot . * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno. * All rights reverved. * * See the file COPYING in th...
14,732
22.686495
102
h
openalpr
openalpr-master/src/tclap/CmdLineInterface.h
/****************************************************************************** * * file: CmdLineInterface.h * * Copyright (c) 2003, Michael E. Smoot . * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno. * All rights reverved. * * See the file COPYING in the top directory of this distribution for * m...
3,700
23.509934
79
h
openalpr
openalpr-master/src/tclap/CmdLineOutput.h
/****************************************************************************** * * file: CmdLineOutput.h * * Copyright (c) 2004, Michael E. Smoot * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * THE SOFTWARE IS PROVIDED _AS IS_, WI...
1,914
24.878378
79
h
openalpr
openalpr-master/src/tclap/Constraint.h
/****************************************************************************** * * file: Constraint.h * * Copyright (c) 2005, Michael E. Smoot * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * THE SOFTWARE IS PROVIDED _AS IS_, WITHOU...
1,816
24.591549
79
h
openalpr
openalpr-master/src/tclap/DocBookOutput.h
// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*- /****************************************************************************** * * file: DocBookOutput.h * * Copyright (c) 2004, Michael E. Smoot * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more in...
8,525
30.461255
105
h
openalpr
openalpr-master/src/tclap/HelpVisitor.h
/****************************************************************************** * * file: HelpVisitor.h * * Copyright (c) 2003, Michael E. Smoot . * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * THE SOFTWARE IS PROVIDED _AS IS_, WIT...
1,975
23.097561
79
h
openalpr
openalpr-master/src/tclap/IgnoreRestVisitor.h
/****************************************************************************** * * file: IgnoreRestVisitor.h * * Copyright (c) 2003, Michael E. Smoot . * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * THE SOFTWARE IS PROVIDED _AS IS...
1,336
22.45614
79
h
openalpr
openalpr-master/src/tclap/MultiArg.h
/****************************************************************************** * * file: MultiArg.h * * Copyright (c) 2003, Michael E. Smoot . * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno. * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more infor...
12,530
27.675057
79
h
openalpr
openalpr-master/src/tclap/MultiSwitchArg.h
/****************************************************************************** * * file: MultiSwitchArg.h * * Copyright (c) 2003, Michael E. Smoot . * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno. * Copyright (c) 2005, Michael E. Smoot, Daniel Aarno, Erik Zeek. * All rights reverved. * * See the file COP...
6,222
28.215962
79
h
openalpr
openalpr-master/src/tclap/OptionalUnlabeledTracker.h
/****************************************************************************** * * file: OptionalUnlabeledTracker.h * * Copyright (c) 2005, Michael E. Smoot . * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * THE SOFTWARE IS PROVIDE...
1,756
23.068493
87
h
openalpr
openalpr-master/src/tclap/StdOutput.h
// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*- /****************************************************************************** * * file: StdOutput.h * * Copyright (c) 2004, Michael E. Smoot * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more inform...
8,756
31.675373
79
h
openalpr
openalpr-master/src/tclap/SwitchArg.h
/****************************************************************************** * * file: SwitchArg.h * * Copyright (c) 2003, Michael E. Smoot . * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno. * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more inf...
7,849
29.426357
80
h
openalpr
openalpr-master/src/tclap/UnlabeledMultiArg.h
/****************************************************************************** * * file: UnlabeledMultiArg.h * * Copyright (c) 2003, Michael E. Smoot. * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * THE SOFTWARE IS PROVIDED _AS IS_...
10,551
34.648649
79
h
openalpr
openalpr-master/src/tclap/UnlabeledValueArg.h
/****************************************************************************** * * file: UnlabeledValueArg.h * * Copyright (c) 2003, Michael E. Smoot . * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno. * All rights reverved. * * See the file COPYING in the top directory of this distribution for * ...
12,282
35.665672
82
h
openalpr
openalpr-master/src/tclap/ValueArg.h
/****************************************************************************** * * file: ValueArg.h * * Copyright (c) 2003, Michael E. Smoot . * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno. * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more infor...
13,418
30.574118
79
h
openalpr
openalpr-master/src/tclap/ValuesConstraint.h
/****************************************************************************** * * file: ValuesConstraint.h * * Copyright (c) 2005, Michael E. Smoot * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * THE SOFTWARE IS PROVIDED _AS IS_,...
3,203
21.096552
79
h
openalpr
openalpr-master/src/tclap/VersionVisitor.h
// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*- /****************************************************************************** * * file: VersionVisitor.h * * Copyright (c) 2003, Michael E. Smoot . * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more...
2,044
23.345238
79
h
openalpr
openalpr-master/src/tclap/Visitor.h
/****************************************************************************** * * file: Visitor.h * * Copyright (c) 2003, Michael E. Smoot . * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT...
1,266
22.036364
79
h
openalpr
openalpr-master/src/tclap/XorHandler.h
/****************************************************************************** * * file: XorHandler.h * * Copyright (c) 2003, Michael E. Smoot . * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno. * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more in...
4,502
26.625767
79
h
openalpr
openalpr-master/src/tclap/ZshCompletionOutput.h
// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*- /****************************************************************************** * * file: ZshCompletionOutput.h * * Copyright (c) 2006, Oliver Kiddle * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more...
8,415
26.061093
93
h
openalpr
openalpr-master/src/video/videobuffer.h
#ifndef OPENALPR_VIDEOBUFFER_H #define OPENALPR_VIDEOBUFFER_H #include <cstdio> #include <iostream> #include <stdexcept> #include <sstream> #include <vector> #include "opencv2/highgui/highgui.hpp" #include "support/filesystem.h" #include "support/tinythread.h" #include "support/platform.h" class VideoDispatcher {...
2,852
22.578512
134
h
s2anet
s2anet-master/mmdet/ops/box_iou_rotated/src/box_iou_rotated.h
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved #pragma once #include <torch/extension.h> #include <torch/types.h> at::Tensor box_iou_rotated_cpu( const at::Tensor& boxes1, const at::Tensor& boxes2); #ifdef WITH_CUDA at::Tensor box_iou_rotated_cuda( const at::Tensor& boxes1, c...
983
24.894737
80
h
s2anet
s2anet-master/mmdet/ops/box_iou_rotated/src/box_iou_rotated_utils.h
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved #pragma once #include <cassert> #include <cmath> #ifdef __CUDACC__ // Designates functions callable from the host (CPU) and the device (GPU) #define HOST_DEVICE __host__ __device__ #define HOST_DEVICE_INLINE HOST_DEVICE __forceinline__ #else #inc...
9,476
26.629738
79
h
s2anet
s2anet-master/mmdet/ops/box_iou_rotated_diff/src/cuda_utils.h
#ifndef _CUDA_UTILS_H #define _CUDA_UTILS_H #include <ATen/ATen.h> #include <ATen/cuda/CUDAContext.h> #include <cmath> #include <cuda.h> #include <cuda_runtime.h> #include <vector> #define TOTAL_THREADS 512 inline int opt_n_thread(int work_size){ const int pow_2 = std::log(static_cast<double>(work_size)) / std::...
1,409
37.108108
79
h
s2anet
s2anet-master/mmdet/ops/box_iou_rotated_diff/src/utils.h
#pragma once #include <ATen/cuda/CUDAContext.h> #include <torch/extension.h> #define CHECK_CUDA(x) \ do { \ TORCH_CHECK(x.is_cuda(), #x " must be a CUDA tensor"); \ } while (0) #define CHECK_CONTIGUOUS(x...
1,538
48.645161
82
h
s2anet
s2anet-master/mmdet/ops/ml_nms_rotated/src/box_iou_rotated_utils.h
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved #pragma once #include <cassert> #include <cmath> #ifdef __CUDACC__ // Designates functions callable from the host (CPU) and the device (GPU) #define HOST_DEVICE __host__ __device__ #define HOST_DEVICE_INLINE HOST_DEVICE __forceinline__ #else #inc...
9,640
26.624642
81
h
s2anet
s2anet-master/mmdet/ops/ml_nms_rotated/src/nms_rotated.h
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved #pragma once #include <torch/extension.h> #include <torch/types.h> at::Tensor nms_rotated_cpu( const at::Tensor& dets, const at::Tensor& scores, const at::Tensor& labels, const float iou_threshold); #ifdef WITH_CUDA at::Tensor nms...
1,186
25.377778
80
h
s2anet
s2anet-master/mmdet/ops/nms_rotated/src/box_iou_rotated_utils.h
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved #pragma once #include <cassert> #include <cmath> #ifdef __CUDACC__ // Designates functions callable from the host (CPU) and the device (GPU) #define HOST_DEVICE __host__ __device__ #define HOST_DEVICE_INLINE HOST_DEVICE __forceinline__ #else #inc...
9,476
26.629738
79
h
s2anet
s2anet-master/mmdet/ops/nms_rotated/src/nms_rotated.h
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved #pragma once #include <torch/extension.h> #include <torch/types.h> at::Tensor nms_rotated_cpu( const at::Tensor& dets, const at::Tensor& scores, const float iou_threshold); #ifdef WITH_CUDA at::Tensor nms_rotated_cuda( const at::T...
1,065
24.380952
80
h
s2anet
s2anet-master/mmdet/ops/orn/src/ActiveRotatingFilter.h
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #pragma once #include "./cpu/vision.h" #ifdef WITH_CUDA #include "./cuda/vision.h" #endif // Interface for Python at::Tensor ARF_forward(const at::Tensor& weight, const at::Tensor& indices) { if (weight.type().is_cuda()...
856
24.205882
72
h
s2anet
s2anet-master/mmdet/ops/orn/src/RotationInvariantEncoding.h
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #pragma once #include "./cpu/vision.h" #ifdef WITH_CUDA #include "./cuda/vision.h" #endif // Interface for Python std::tuple<at::Tensor, at::Tensor> RIE_forward(const at::Tensor& feature, const uin...
1,013
27.971429
74
h
s2anet
s2anet-master/mmdet/ops/orn/src/cpu/vision.h
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #pragma once // #include <torch/extension.h> #include <torch/serialize/tensor.h> typedef unsigned long uint64; typedef unsigned int uint32; typedef unsigned short uint16; typedef unsigned char uint8; std::tuple<at::Tensor, at::Tensor> RIE_forwa...
830
35.130435
77
h
s2anet
s2anet-master/mmdet/ops/orn/src/cuda/vision.h
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #pragma once // #include <torch/extension.h> #include <torch/serialize/tensor.h> typedef unsigned long uint64; typedef unsigned int uint32; typedef unsigned short uint16; typedef unsigned char uint8; std::tuple<at::Tensor, at::Tensor> RIE_forwa...
839
35.521739
78
h
s2anet
s2anet-master/mmdet/ops/roi_align_rotated/src/ROIAlignRotated.h
// Copyright (c) Facebook, Inc. and its affiliates. #pragma once #include <torch/extension.h> #include <torch/types.h> at::Tensor ROIAlignRotated_forward_cpu( const at::Tensor& input, const at::Tensor& rois, const float spatial_scale, const int pooled_height, const int pooled_width, const int ...
3,088
23.322835
79
h
null
CHPDet-main/cocoapi/common/gason.h
// https://github.com/vivkin/gason - pulled January 10, 2016 #pragma once #include <stdint.h> #include <stddef.h> #include <assert.h> enum JsonTag { JSON_NUMBER = 0, JSON_STRING, JSON_ARRAY, JSON_OBJECT, JSON_TRUE, JSON_FALSE, JSON_NULL = 0xF }; struct JsonNode; #define JSON_VALUE_PAYLOA...
3,483
24.430657
104
h
null
CHPDet-main/cocoapi/common/maskApi.c
/************************************************************************** * Microsoft COCO Toolbox. version 2.0 * Data, paper, and tutorials available at: http://mscoco.org/ * Code written by Piotr Dollar and Tsung-Yi Lin, 2015. * Licensed under the Simplified BSD License [see coco/license.txt] ****************...
8,308
34.814655
75
c
null
CHPDet-main/cocoapi/common/maskApi.h
/************************************************************************** * Microsoft COCO Toolbox. version 2.0 * Data, paper, and tutorials available at: http://mscoco.org/ * Code written by Piotr Dollar and Tsung-Yi Lin, 2015. * Licensed under the Simplified BSD License [see coco/license.txt] ****************...
2,176
34.688525
75
h
null
CHPDet-main/src/lib/models/networks/DCNv2/src/dcn_v2.h
#pragma once #include "cpu/vision.h" #ifdef WITH_CUDA #include "cuda/vision.h" #endif at::Tensor dcn_v2_forward(const at::Tensor &input, const at::Tensor &weight, const at::Tensor &bias, const at::Tensor &offset, const at::Tensor &mask, const...
5,494
36.896552
69
h
null
CHPDet-main/src/lib/models/networks/DCNv2/src/cpu/vision.h
#pragma once #include <torch/extension.h> at::Tensor dcn_v2_cpu_forward(const at::Tensor &input, const at::Tensor &weight, const at::Tensor &bias, const at::Tensor &offset, const at::Tensor &mask, const int kernel_h, ...
2,665
43.433333
63
h
null
CHPDet-main/src/lib/models/networks/DCNv2/src/cuda/vision.h
#pragma once #include <torch/extension.h> at::Tensor dcn_v2_cuda_forward(const at::Tensor &input, const at::Tensor &weight, const at::Tensor &bias, const at::Tensor &offset, const at::Tensor &mask, const int kernel_h, ...
2,669
43.5
63
h
null
CHPDet-main/src/lib/models/networks/orn/csrc/ActiveRotatingFilter.h
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #pragma once #include "cpu/vision.h" #ifdef WITH_CUDA #include "cuda/vision.h" #endif // Interface for Python at::Tensor ARF_forward(const at::Tensor& weight, const at::Tensor& indices) { if (weight.type().is_cuda()) { ...
852
24.088235
72
h
null
CHPDet-main/src/lib/models/networks/orn/csrc/RotationInvariantEncoding.h
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #pragma once #include "cpu/vision.h" #ifdef WITH_CUDA #include "cuda/vision.h" #endif // Interface for Python std::tuple<at::Tensor, at::Tensor> RIE_forward(const at::Tensor& feature, const uint8 n...
1,009
27.857143
74
h
null
CHPDet-main/src/lib/models/networks/orn/csrc/cpu/vision.h
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #pragma once // #include <torch/extension.h> #include <torch/serialize/tensor.h> typedef unsigned long uint64; typedef unsigned int uint32; typedef unsigned short uint16; typedef unsigned char uint8; std::tuple<at::Tensor, at::Tensor> RIE_forwa...
830
35.130435
77
h
null
CHPDet-main/src/lib/models/networks/orn/csrc/cuda/vision.h
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #pragma once // #include <torch/extension.h> #include <torch/serialize/tensor.h> typedef unsigned long uint64; typedef unsigned int uint32; typedef unsigned short uint16; typedef unsigned char uint8; std::tuple<at::Tensor, at::Tensor> RIE_forwa...
839
35.521739
78
h
gvisor
gvisor-master/images/basic/integrationtest/host_connect.c
// Copyright 2022 The gVisor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
1,226
24.5625
75
c
gvisor
gvisor-master/images/basic/integrationtest/host_fd.c
// Copyright 2021 The gVisor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
2,422
24.239583
79
c
gvisor
gvisor-master/images/basic/integrationtest/link_test.c
// Copyright 2020 The gVisor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
2,650
27.202128
80
c
gvisor
gvisor-master/images/basic/integrationtest/test_copy_up.c
#include <err.h> #include <fcntl.h> #include <stdio.h> #include <string.h> #include <sys/mman.h> #include <unistd.h> int main(int argc, char** argv) { const char kTestFilePath[] = "copy_up_testfile.txt"; const char kOldFileData[] = "old data\n"; const char kNewFileData[] = "new data\n"; const size_t kPageSize ...
2,841
30.932584
79
c
gvisor
gvisor-master/images/basic/integrationtest/test_rewinddir.c
#include <dirent.h> #include <err.h> #include <errno.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> int main(int argc, char** argv) { const char kDirPath[] = "rewinddir_test_dir"; const char kFileBasename[] = "rewinddir_test_file"; // Create the test directory. if (mkd...
1,921
23.329114
77
c
gvisor
gvisor-master/images/basic/integrationtest/test_sticky.c
#include <err.h> #include <errno.h> #include <fcntl.h> #include <stdlib.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> void createFile(const char* path) { int fd = open(path, O_WRONLY | O_CREAT, 0777); if (fd < 0) { err(1, "open(%s)", path); exit(1); } else { ...
2,116
20.824742
78
c
gvisor
gvisor-master/images/benchmarks/syscallbench/syscallbench.c
// Copyright 2022 The gVisor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
2,554
25.894737
78
c
gvisor
gvisor-master/pkg/sentry/platform/systrap/sysmsg/atomic.h
// Copyright 2023 The gVisor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
1,282
46.518519
75
h
gvisor
gvisor-master/pkg/sentry/platform/systrap/sysmsg/sighandler_amd64.c
// Copyright 2020 The gVisor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
18,672
37.342916
80
c
gvisor
gvisor-master/pkg/sentry/platform/systrap/sysmsg/sighandler_arm64.c
// Copyright 2020 The gVisor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
6,267
30.497487
86
c
gvisor
gvisor-master/pkg/sentry/platform/systrap/sysmsg/sysmsg.h
// Copyright 2020 The gVisor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
5,218
27.519126
80
h
gvisor
gvisor-master/pkg/sentry/platform/systrap/sysmsg/sysmsg_lib.c
// Copyright 2022 The gVisor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
13,843
32.601942
80
c
gvisor
gvisor-master/pkg/sentry/platform/systrap/sysmsg/sysmsg_offsets.h
// Copyright 2020 The gVisor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
2,144
38.722222
82
h
gvisor
gvisor-master/pkg/sentry/platform/systrap/sysmsg/sysmsg_offsets_amd64.h
// Copyright 2022 The gVisor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
3,606
39.077778
88
h