sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
98ca6a65e7bd0521946be8c314b80a1b7e6535fed7b047c08ff198af6763b985 | Text | 23,828 | 333 | [](https://travis-ci.org/openmm/openmm-forcefields?branch=master)
[](https://zenodo.org/badge/latestdoi/70107487)
# AMBER and CHARMM force fields for OpenMM
This repository provides support f... |
791eaac8943eb4d1d92cff4bf34c1fd63c3efb4a607ac481bf8c3b9cd47626e7 | Text | 28,447 | 466 | # Bulk Downloader for Reddit
[](https://pypi.python.org/pypi/bdfr)
[](https://pypi.python.org/pypi/bdfr)
[](https://pypi.pyth... |
5bd144bcb79bee357066cba1fb3b76e68dd8c1b3a0719d195ae5538f4b7ef179 | Text | 29,802 | 828 | # Total-Text-Dataset (Official site)
Updated on September 30, 2026 (Updated README.md & LICENSE. Added DATASET_TERMS.md & RIGHTS_NOTICE.md)
Updated on April 06, 2022 (Detection leaderboard is updated with FCE, ABPNet, PCR, CentripetalText & HierText)
Updated on April 29, 2020 (Detection leaderboard is updated - highl... |
c2fd6d489a1aefd6996849bbca38ef31939e7d33f7a04bc60ac5f7dd729ff9d3 | Text | 31,643 | 259 | DeepLIFT: Deep Learning Important FeaTures
===
[](https://travis-ci.org/kundajelab/deeplift)
[](https://github.com/kundajelab/deeplift/blob/master/LICENSE... |
53ea72608f915f40cf50cdd59a81ba9883dec22d91ef24fce0ae0d8e974f036d | Text | 46,805 | 499 | [](https://badge.fury.io/py/kimimaro)
# Kimimaro: Skeletonize Densely Labeled Images
```bash
# Produce SWC files from volumetric images.
kimimaro forge labels.npy --progress # writes to ./kimimaro_out/
kimimaro view kimimaro_out/10.swc
```
Rapidly skeletonize a... |
3ec8b35aa7fcbf17a1d57454802325cb71d89c836f76330fda578fc9122cdc7d | Text | 103,594 | 430 | # OpenFF QCArchive Dataset Submission
## Dataset Lifecycle
All datasets submitted to QCArchive via this repository conform to the [Dataset Lifecycle](#the-lifecycle-of-a-dataset-submission).
See [STANDARDS.md](./STANDARDS.md) for submission standards and [AI_POLICY.md](./AI_POLICY.md) for expectations when using AI.... |
da504f16c12d5eca4fb16e45458f59fe4cf173a572e5191598df325a97df79f2 | Text | 202,194 | 682 | <a href="https://book.the-turing-way.org"><img src="book/figures/logo-detail-with-text.svg?raw=true)" width="180" align="Right" /></a>
# _The Turing Way_
>_This README.md file is also available in Chinese ([README-Chinese](README-translated/README-Chinese.md)), Dutch ([README-Dutch](README-translated/README-Dutch.md)... |
fa208d5a5ab6d20b64122998b074707dea08d12ed619652955f77df958d85786 | TypeScript | 425 | 15 | import { ReportHandler } from 'web-vitals';
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
if (onPerfEntry && onPerfEntry instanceof Function) {
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
getCLS(onPerfEntry);
getFID(onPerfEntry);
getFCP(onPerfEntry)... |
518401e9df585b194b883aa87853a15164b8a8b33879620fff6347999e9c7145 | C | 6,541 | 262 | /*
BLAKE2 reference source code package - reference C implementations
Copyright 2016, JP Aumasson <jeanphilippe.aumasson@gmail.com>.
Copyright 2016, Samuel Neves <sneves@dei.uc.pt>.
You may use this under the terms of the CC0, the OpenSSL Licence, or
the Apache Public License 2.0, at your option. The ... |
ef421ce28f05f5113ddc072701ca80fc92359dc9a6e953e2cce08fe0378ebfa3 | C | 12,012 | 612 | #include <stdlib.h>
#include <stdio.h>
#include <assert.h>
/*#define CHECK_RESULTS*/
#if defined (CHECK_RESULTS)
static const unsigned char one_bit_8[8] = {128, 64, 32, 16, 8, 4, 2, 1};
static const unsigned int one_bit_32[32] = {
0x80000000,
0x40000000,
0x20000000,
0x10000000,
0x08000000,
0x04000000,
... |
441d737e87666b232d02b56ccc9cd0d501f3fb8918a61e3b19eed4b6611e6905 | C | 200,000 | 6,092 | /* Extended regular expression matching and search library,
version 0.12.
(Implements POSIX draft P1003.2/D11.2, except for some of the
internationalization features.)
Copyright (C) 1993-1999, 2000, 2001 Free Software Foundation, Inc.
The GNU C Library is free software; you can redistribute it and... |
c8960dd4c23211f824e4396015a8b44e7949026337d284df99f19e7e64d98896 | C | 200,000 | 4,125 | /* Generated by Cython 3.2.4 */
#ifndef PY_SSIZE_T_CLEAN
#define PY_SSIZE_T_CLEAN
#endif /* PY_SSIZE_T_CLEAN */
/* InitLimitedAPI */
#if defined(Py_LIMITED_API)
#if !defined(CYTHON_LIMITED_API)
#define CYTHON_LIMITED_API 1
#endif
#elif defined(CYTHON_LIMITED_API)
#ifdef _MSC_VER
#pragma message ("Limited API... |
b6a3e2b529035ef85e6367e99afc686113b66969bec93556af9f877f890065f8 | C++ | 117 | 4 | #define EXTENDING_RESIZABLE_ARRAY_IMPLEMENTATION
#include "iwaray.h"
template class extending_resizable_array<int>;
|
bad3363d8332b2cb6ccc8d51db71c09781caf83f98c365deaa615f9b5474ac9b | C++ | 125 | 4 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "sealnet/stdafx.h"
|
05a6733bac96fedfb51e3202ac5752ec23e6915d802420d474d306f842b96b0d | C++ | 167 | 10 | #include "thread.h"
namespace Thread {
ThreadPool * threadPool_ptr__;
void initThreadPool(size_t n) {
threadPool_ptr__ = new ThreadPool(n);
}
}
|
54d5bc783c5e28c266b998c3d806469373e28146bfa0879d32e4d9a668644057 | C++ | 202 | 13 | #include <stdlib.h>
#include "new_array_.h"
int *
new_int (int size, int initial_value)
{
assert (size > 0);
return iw_new_array (size, initial_value);
}
template int * iw_new_array (int, int);
|
d03ca32fb1ef2d0bfedc6ca04965e446ffd16fa68eaa12442434f30d0a8d6a91 | C++ | 246 | 12 | #include <stdlib.h>
#include "coordinates.h"
#include "atom.h"
Coordinates::Coordinates (const Atom & a) : Space_Vector<coord_t> (a._x, a._y, a._z)
{
}
Coordinates::Coordinates (const Space_Vector<coord_t> & a) : Space_Vector<coord_t> (a)
{
}
|
c226628f3020b54d2c6aa3aff94ba8dc8eb4312756577453a4fd3d8f20242ca6 | C++ | 280 | 13 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "gtest/gtest.h"
/**
Main entry point for Google Test unit tests.
*/
int main(int argc, char** argv)
{
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
} |
f24e076df2c5e686ed52a82ffd9969a1969cc6db7bd0f0604a643be2edf88eaf | C++ | 318 | 27 | #include <stdlib.h>
#include "misc.h"
int
Int_Comparator_Larger::operator() (int i1, int i2) const
{
if (i1 < i2)
return -1;
if (i1 > i2)
return 1;
return 0;
}
int
Int_Comparator_Smaller::operator() (int i1, int i2) const
{
if (i1 < i2)
return 1;
if (i1 > i2)
return -1;
return 0;
}
|
32afa18abf2bc40a3046f0b780b72ba61e0e43f7681a0bb856e5bf7f9d226eca | C++ | 368 | 21 | #include "misc.h"
#include "iwstring.h"
std::ostream &
write_space_suppressed_string (const IWString & zstring,
std::ostream & os,
char fill_char)
{
if (zstring.contains (' '))
{
IWString tmp (zstring);
tmp.gsub (' ', fill_char);
os << tmp;... |
dac37c14d8d56fe28cd0b7b5fdadd95d53b6b9d73048ef6608d1ca971e95c2e0 | C++ | 408 | 15 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "seal/memorymanager.h"
namespace seal
{
std::unique_ptr<MMProf>
MemoryManager::mm_prof_{ new MMProfGlobal };
#ifndef _M_CEE
std::mutex MemoryManager::switch_mutex_;
#else
#pragma message("WARNING: ... |
9ca82efff6121636d87d9fdee5de96e3e1c3c26d25acbde818412cf3f330c3d0 | C++ | 460 | 40 | #include <stdlib.h>
#include "accumulator.h"
KahanSum::KahanSum ()
{
_c = 0.0;
_sum = 0.0;
return;
}
KahanSum &
KahanSum::operator = (double d)
{
_sum = d;
_c = 0.0;
return *this;
}
KahanSum &
KahanSum::operator += (double d)
{
double y = d - _c;
double t = _sum + y;
_c = (t - _sum) - y;
_sum... |
5d4dccf20c679350a38bdb71bf1b8d63d7d4e12f85c11e6984ed821df5ec9b44 | C++ | 539 | 21 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// dllmain.cpp : Defines the entry point for the DLL application.
#include "sealnet/stdafx.h"
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserv... |
43e2035de571c87d0ea5d768163355bd3570b494abdd45f3afbd6c2a4b81a1a4 | C++ | 605 | 29 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// SEALNet
#include "sealnet/stdafx.h"
#include "sealnet/relinkeys_wrapper.h"
#include "sealnet/utilities.h"
// SEAL
#include "seal/relinkeys.h"
using namespace std;
using namespace seal;
using namespace sealnet;
SEALNET... |
476ffea23550962c3dcf5d9a5bb67759b69ff1562bc3c2bcdbb894d59cd8fbec | C++ | 611 | 29 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// SEALNet
#include "sealnet/stdafx.h"
#include "sealnet/galoiskeys_wrapper.h"
#include "sealnet/utilities.h"
// SEAL
#include "seal/galoiskeys.h"
using namespace std;
using namespace seal;
using namespace sealnet;
SEALN... |
42bf647d26d588de1e7a1852c04f5fbf46a6c79d5adb7b43acd8aac91f54e48a | C++ | 646 | 40 | #include <stdlib.h>
#ifdef _WIN32
#else
#include <unistd.h>
#endif
#include <sys/types.h>
#include <iostream>
using namespace std;
#include "iwstring.h"
static int
common_write (int fd, const char * s, int nchars)
{
assert (fd >= 0);
if (0 == nchars)
return 1;
int rc = IW_FD_WRITE (fd, s, nchars);
if (... |
ddd93621fe88fafca4140d2ef6d9a1972b7537488f02739cb2b08956085899dd | C++ | 702 | 24 | #include "mainwindow.h"
#include "tracking/tracking_window.h"
extern std::vector<tracking_window*> tracking_windows;
extern MainWindow* main_window;
int vis(tipl::program_option<tipl::out>& po)
{
if(!po.check("cmd"))
return 1;
if(tracking_windows.empty())
{
if(!po.check("source"))
... |
ce422bd485865572104bc937ff445870b6b8d3af03d4a0c92cbfc8b7d2b81708 | C++ | 791 | 37 | /**
* Copyright 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <Python.h>
static PyMethodDef method_def[] = {
{NULL, NULL, 0, NULL}
};
static struct PyModuleDef module_d... |
b18e225532aa033d86472c4584a7e94270f334adb678ed5bfe950d58b2dc8450 | C++ | 794 | 31 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include <stdexcept>
#include "seal/util/clipnormal.h"
using namespace std;
namespace seal
{
namespace util
{
ClippedNormalDistribution::ClippedNormalDistribution(
result_type mean,
... |
4ed97f502e5c2ca346a5a46ab008171d66e18989bf3feedd5b1e1c61c0b92422 | C++ | 837 | 40 | #include <stdlib.h>
#include <sys/types.h>
#ifdef _WIN32
#else
#include <unistd.h>
#endif
#include <iostream>
using std::cerr;
using std::endl;
#include "iwconfig.h"
#include "iwstring.h"
#define IWWRITE_BLKSIZE 4096
int
IWString::write_whole_blocks_shift_unwritten (int fd)
{
if (_number_elements < IWWRITE_BLKSI... |
51e3c4632c02418d6e6cee32add01fd29bc6c2274855f4681b4ae2d308b4823d | C++ | 841 | 35 | #include <torch/torch.h>
#include <vector>
std::vector<float*> dynamicconv_cpu_forward(
float* input,
float* filters,
int padding_l);
std::vector<float*> dynamicconv_cpu_backward(
float* gradOutput,
int padding_l,
float* input,
float* filters);
std::vector<float*> dynamicconv_forward(
... |
763e00954168dd9bced4072af7f6fedd6a06ee7782a446d5254fd24b4012e211 | C++ | 882 | 34 | #include <sstream>
#include <algorithm>
#include <string>
#include <iterator>
#include <cctype>
#include <QDir>
#include <QFileInfo>
#include "fib_data.hpp"
std::string run_auto_track(
tipl::program_option<tipl::out>& po,
const std::vector<std::filesystem::path>& file_list,int... |
678caf1a2b4724d502f2fb95f1474bb8c88ebaebfd14223dfb0279e8a690698c | C++ | 963 | 53 | #include <stdlib.h>
#ifdef PARSE_SMARTS_TMP_MALLOC_CHECK
#include "iwmalloc.h"
#endif
#include "substructure.h"
#include "parse_smarts_tmp.h"
Parse_Smarts_Tmp::Parse_Smarts_Tmp ()
{
_last_query_atom_created = -1;
return;
}
Parse_Smarts_Tmp::~Parse_Smarts_Tmp ()
{
#ifdef PARSE_SMARTS_TMP_MALLOC_CHECK
check_ma... |
8ce6cc7d1bddea8ac0a960b7293565a164364975f053622637e4a15cd3d033e4 | C++ | 1,011 | 32 | /**************************************************************************
Copyright (C) 2011 Eli Lilly and Company
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3... |
3ed0dea894faecf5c2be4c4b0c142a288978c98ceb127b64226641420b946395 | C++ | 1,228 | 49 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "gtest/gtest.h"
#include "seal/util/hash.h"
#include <cstdint>
using namespace seal::util;
using namespace std;
namespace SEALTest
{
namespace util
{
namespace
{
void hash(uint... |
2d94e24b512edd1032fb4d5a4d8fbd915b32458d08447d898a08f7f6ce41978e | C++ | 1,341 | 74 | #include <stdlib.h>
#define RESIZABLE_ARRAY_IMPLEMENTATION
#include "iwaray.h"
#include "string_data_source.h"
#include "atom_alias.h"
Atom_Alias::Atom_Alias ()
{
_atom = INVALID_ATOM_NUMBER;
return;
}
Atom_Alias::Atom_Alias (const Atom_Alias & rhs)
{
_copy (rhs);
return;
}
Atom_Alias &
Atom_Alias::opera... |
1be8d1b88347f7462a4979e2f26744101cbc8473d44a6ca9ed8630914a5a7179 | C++ | 1,366 | 51 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "gtest/gtest.h"
#include "seal/randomgen.h"
#include "seal/randomtostd.h"
#include <cstdint>
#include <memory>
using namespace seal;
using namespace std;
namespace SEALTest
{
TEST(RandomToStandard, RandomToSt... |
a809cf24b785d14bacee604f87ff377c724f278693056a3efc35be74b3145271 | C++ | 1,377 | 55 | #include <QColorDialog>
#include <QPainter>
#include "qcolorcombobox.h"
QColor QColorComboBox::color() const
{
return itemData(currentIndex(), Qt::DecorationRole).value<QColor>();
}
void QColorComboBox::setColor(QColor color)
{
setCurrentIndex(findData(color, int(Qt::DecorationRole)));
}
v... |
483f8a0a27396b0f4dbb5167113fcb5f8782f886c5b39f8a3ba410b1760ba566 | C++ | 1,432 | 54 | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <torch/extension.h>
#include <vector>
std::vector<at::Tensor> lightconv_cuda_forward(
at::Tensor input,
at::Tens... |
ea2c9c2f89500da60eb261f4ff55bff2e4ecf4804823aad2fac18b9d36ac54fb | C++ | 1,461 | 47 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "gtest/gtest.h"
#include "seal/randomgen.h"
#include "seal/randomtostd.h"
#include "seal/util/clipnormal.h"
#include <memory>
#include <cmath>
using namespace seal::util;
using namespace seal;
using namespace std;... |
47ef10b093e63c24c342d287395582e4f9c8b9c2250d14af18fb6bfedb6468c9 | C++ | 1,462 | 59 | // Tester for the string class
#include <stdlib.h>
#include <fstream>
#include "iwstring.h"
#include "should_match.h"
extern int verbose;
template <typename Char_Type>
int
_should_match (const Char_Type & result,
int nchars,
const char * expected,
const char * caller)
... |
cd1af2efbc0cf5e8d90af4786f73c22b29c1e5b2cef1dfc8d7f28069e823f96a | C++ | 1,473 | 56 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// SEALNet
#include "sealnet/stdafx.h"
#include "sealnet/serialization_wrapper.h"
#include "sealnet/utilities.h"
// SEAL
#include "seal/serialization.h"
using namespace std;
using namespace seal;
using namespace sealnet;
... |
ca4176f8cbfe5cb82d8a8911cf5ac73f83c2953ad3c7feff3f17c72e53c51c53 | C++ | 1,478 | 56 | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <torch/extension.h>
#include <vector>
std::vector<at::Tensor> dynamicconv_cuda_forward(
at::Tensor input,
at::Te... |
c840a40dfd5c4889969aa2c6fe8ded52af38527e5d985569ab23c6d23d4a9236 | C++ | 1,574 | 53 |
#include <xnat_dialog.h>
int xnat(tipl::program_option<tipl::out>& po)
{
xnat_facade xnat_connection;
std::string output = po.get("output");
if(output.empty())
{
tipl::error() << "please specify --output" << std::endl;
return 1;
}
if(QFileInfo(output.c_str()).isDir() && output... |
6d60d4c80eaebdd50f856083a87a24b45396def85c1a9dfbb8eefb5da2384f25 | C++ | 1,616 | 73 | #include <stdlib.h>
#include "substructure.h"
#include "target.h"
#include "misc2.h"
Elements_Needed::Elements_Needed ()
{
_z = INVALID_ATOMIC_NUMBER;
return;
}
Elements_Needed::Elements_Needed (atomic_number_t s) : _z (s)
{
}
int
Elements_Needed::ok () const
{
return 1;
}
int
Elements_Needed::debug_print (... |
c71f0029dd74dcfecb55dc494b359a5c7b7dd0070da4795cc7c6b938e658850e | C++ | 1,673 | 98 | #include <stdlib.h>
#include "misc.h"
#include "molecule.h"
Symmetry_Class_and_Canonical_Rank::Symmetry_Class_and_Canonical_Rank ()
{
_canonical_rank = NULL;
_symmetry_class = NULL;
return;
}
Symmetry_Class_and_Canonical_Rank::~Symmetry_Class_and_Canonical_Rank ()
{
invalidate();
return;
}
int
Symmetr... |
2fe35b03f9c0c04e49d0dd19950d7607401124f6b5311ebe065a2169df43d80e | C++ | 1,769 | 57 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "gtest/gtest.h"
#include "seal/secretkey.h"
#include "seal/context.h"
#include "seal/keygenerator.h"
#include "seal/modulus.h"
using namespace seal;
using namespace std;
namespace SEALTest
{
TEST(SecretKeyTes... |
5fbec641df34e1e0c3ed0df969ab73d2675bbd4d4164ab4daf1d68ccbcc0fc23 | C++ | 1,784 | 45 | #include "gqi_process.hpp"
// the gqi kernel of q*u, with q scaled by the diffusion sampling length ratio
static float gqi_kernel(const Voxel& voxel,float qu)
{
return voxel.r2_weighted ? base_function(qu) : sinc_pi_imp(qu);
}
float Voxel::odf_at(const VoxelData& data,tipl::vector<3,float> u) const
{
if(qsdr) ... |
8a2cb5f3ad43c719d520e8b71ee78c17009cef083112a092ac72d70b14a6bf93 | C++ | 1,884 | 73 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// STD
#include <algorithm>
#include <iterator>
// SEALNet
#include "sealnet/stdafx.h"
#include "sealnet/modulus_wrapper.h"
#include "sealnet/utilities.h"
// SEAL
#include "seal/modulus.h"
using namespace std;
using name... |
96b03bee7604210963e969da35804b640609056dd445fc78bda45f5f8cab2769 | C++ | 2,058 | 52 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "seal/util/uintcore.h"
#include "seal/util/uintarith.h"
#include "seal/util/uintarithmod.h"
#include "seal/util/polycore.h"
#include "seal/util/polyarith.h"
#include "seal/util/polyarithmod.h"
using namespace std;... |
facde39e8f3bf8fcc4dcb41358a3ddfaf55d0690fcd0f7dca86fd2e54d7d6702 | C++ | 2,090 | 50 | // mtrand.cpp, see include file mtrand.h for information
#include "mtrand.h"
// non-inline function definitions and static member definitions cannot
// reside in header file because of the risk of multiple declarations
// initialization of static private members - not static IAW
//unsigned long MTRand_int32::state[n]... |
94ddc9fc64594006b472ec6d93d843d890147e9c68044b4f8ade3c2183b22029 | C++ | 2,133 | 128 | #include <stdlib.h>
#include "path.h"
Ring_Bond_Iterator::Ring_Bond_Iterator (const Ring & r)
{
_atoms_in_ring = r.number_elements ();
_atom_number = r.rawdata ();
_ndx = 0;
return;
}
atom_number_t
Ring_Bond_Iterator::a2 () const
{
if (_ndx == _atoms_in_ring - 1)
return _atom_number[0];
return _... |
33214fb03821bb952bbdd7bfd82d0ad3482a7513b6e5b7603b76daa36c60d9c9 | C++ | 2,174 | 65 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "gtest/gtest.h"
#include "seal/publickey.h"
#include "seal/context.h"
#include "seal/modulus.h"
#include "seal/keygenerator.h"
using namespace seal;
using namespace std;
namespace SEALTest
{
TEST(PublicKeyTes... |
4587432714dc84f5a307ace8001d49518847da4fc64a7a71b751abb4c26a353b | C++ | 2,181 | 54 | #include <QFileInfo>
#include <iostream>
#include <iterator>
#include <string>
#include "tracking/region/Regions.h"
#include "libs/tracking/tract_model.hpp"
#include "libs/dsi/image_model.hpp"
#include "libs/tracking/tracking_thread.hpp"
#include "fib_data.hpp"
std::shared_ptr<fib_data> cmd_load_fib(tipl::program_opti... |
67ed8cefe1e6f4271fe2c8fec112896806e7688c9939d86db96687658476ca05 | C++ | 2,235 | 82 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// SEALNet
#include "sealnet/stdafx.h"
#include "sealnet/decryptor_wrapper.h"
#include "sealnet/utilities.h"
// SEAL
#include "seal/decryptor.h"
using namespace std;
using namespace seal;
using namespace sealnet;
SEALNET... |
ad85b9e40a6ad96c5b1eba335ca5f9d34d5a998db4f55dbe7bc5876e1c2179ee | C++ | 2,257 | 157 | #include <stdlib.h>
#include "string_data_source.h"
void
String_Data_Source::_default_values()
{
_lines_read = 0;
_iptr = 0;
_strip_trailing_blanks = 0;
_dos = 0;
return;
}
String_Data_Source::String_Data_Source (const char * s)
{
assert (NULL != s);
_default_values();
_src = s;
return;
}
St... |
1bd822f74ab70b14e2ac95d85334706015ed8d3b566fa0abbfdc975e1acfac86 | C++ | 2,282 | 70 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "gtest/gtest.h"
#include "seal/util/pointer.h"
#include "seal/memorymanager.h"
#include "seal/intarray.h"
#include "seal/util/uintcore.h"
using namespace seal;
using namespace seal::util;
using namespace std;
nam... |
3395cb168496571850d40d5438b83428cef30d906214c8193d1466280c8f042e | C++ | 2,340 | 84 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include <algorithm>
#include <random>
#include <iostream>
#include "seal/randomgen.h"
#include "seal/util/blake2.h"
#ifdef _WIN32
#include <Windows.h>
#include <bcrypt.h>
#endif
using namespace std;
namespace seal
{
... |
f7bca2fd6aa0f851f05273f36100da1867f87cc3b4c3d2bc489a932326459933 | C++ | 2,522 | 87 | #include <iostream>
#include <fstream>
#include "Image3D.h"
#include "SIFT_FLOW_ALGO.h"
using namespace std;
void OutputEnergyFile(string fileName, T_input energy)
{
ofstream fout(fileName);
fout << energy << endl;
fout.close();
return;
}
void CalcSIFTFlowAndWarp(Image3DWithSeg* fi... |
a4bb33f68ca92651851666a5850a0a388617ca0d1ebcd4e2081c35f8e0d4e839 | C++ | 2,585 | 84 | /**
* Copyright 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
This code is partially adpoted from https://github.com/1ytic/pytorch-edit-distance
*/
#include "edit_dist.h"
#incl... |
f2f0b4988c29bd3e06a344d8aea1351430cd037795261943f701b447af95933b | C++ | 2,588 | 79 | #include <QMessageBox>
#include <QFileDialog>
#include <QMainWindow>
#include "match_db.h"
#include "ui_match_db.h"
match_db::match_db(QWidget *parent,std::shared_ptr<group_connectometry_analysis> vbc_) :
QDialog(parent),vbc(vbc_),
ui(new Ui::match_db)
{
ui->setupUi(this);
on_match_consecutive_clicked(... |
473d90a8c0d0722c373dfba4c7a0c38f14d7a6615505ebcb112584f2f230fc88 | C++ | 2,630 | 102 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// STD
#include <iterator>
#include <algorithm>
// SEALNet
#include "sealnet/stdafx.h"
#include "sealnet/utilities.h"
// SEAL
#include "seal/smallmodulus.h"
#include "seal/encryptionparams.h"
#include "seal/context.h"
#in... |
2dba34de4a19b3ce017945f987e0321d5ad3748890badc43aced5e231e9a2f0e | C++ | 2,705 | 71 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include <stdexcept>
#include "gtest/gtest.h"
#include "seal/modulus.h"
#include "seal/util/uintcore.h"
using namespace seal;
using namespace seal::util;
using namespace std;
namespace SEALTest
{
TEST(CoeffModTest, Cu... |
92a75caec319a80c1f7df41011ede67a05d8378d7344a92196e3f41f032455af | C++ | 2,713 | 98 | #include "qcompletelineedit.h"
#include <QKeyEvent>
#include <QListView>
#include <QStringListModel>
#include <QDebug>
void QCompleteLineEdit::setList(QStringList list)
{
words = list;
listView = new QListView(this);
model = new QStringListModel(this);
listView->setWindowFlags(Qt::ToolTip);
connect... |
37fae847b1ecd27afe8627af872c30502a21fddadcfeaac9ab4dc3d94cf2f4a9 | C++ | 2,763 | 173 | #include "ostream_and_type.h"
#include "molecule.h"
int
ofstream_and_type::_default_values ()
{
_valid = 0;
_molecules_written = 0;
_verbose = 0;
_output_type = -1;
return 1;
}
ofstream_and_type::ofstream_and_type ()
{
_default_values();
}
ofstream_and_type::ofstream_and_type (int output_type)
{
if... |
bc236be0c946670d77b6aa03deabad6dc9537d7587d9115e4078536112d4ffa4 | C++ | 2,848 | 289 | #include <stdlib.h>
#include "iwstring.h"
static const int lowercase_translation_table [] =
{
0x0,
0x1,
0x2,
0x3,
0x4,
0x5,
0x6,
0x7,
0x8,
0x9,
0xa,
0xb,
0xc,
0xd,
0xe,
0xf,
0x10,
0x11,
0x12,
0x13,
0x14,
0x15,
0x16,
0x17,
0x18,
0x19,
0x... |
a9b37d127dbe7aafc336af68c740999e18705b7c560d735068994a39147932d8 | C++ | 2,908 | 90 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include <stdexcept>
#include <unordered_map>
#include <numeric>
#include "seal/modulus.h"
#include "seal/util/numth.h"
#include "seal/util/common.h"
using namespace std;
using namespace seal::util;
namespace seal
{
v... |
3c1ba1ade061483d4866230c753f48d0ddd07e1a75b8fbaaa13febd86740904a | C++ | 2,923 | 141 | /**
* Copyright 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <map>
#include <array>
#include <cstring>
#include <cstdio>
typedef struct
{
size_t reflen;
size_t pre... |
f66ee7534b39b3f37f0029bb31b63e84295882acf97bc721c2d7b03a169990bd | C++ | 3,086 | 105 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "seal/smallmodulus.h"
#include "seal/util/uintarith.h"
#include "seal/util/uintarithsmallmod.h"
#include "seal/util/common.h"
#include "seal/util/numth.h"
#include <stdexcept>
using namespace seal::util;
using nam... |
91a39c127ad5fe81481aaf75cbfe37501793b8a24f393fc47200183a6055c712 | C++ | 3,141 | 98 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// SEALNet
#include "sealnet/stdafx.h"
#include "sealnet/valcheck_wrapper.h"
#include "sealnet/utilities.h"
// SEAL
#include "seal/valcheck.h"
using namespace std;
using namespace seal;
using namespace sealnet;
SEALNETNA... |
60ee6e62e5bd756bf8912597bf20dc0ddd7729008a00d3c3b408e3bb49b7d3c7 | C++ | 3,147 | 103 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// SEALNet
#include "sealnet/stdafx.h"
#include "sealnet/encryptionparameterqualifiers_wrapper.h"
#include "sealnet/utilities.h"
// SEAL
#include "seal/context.h"
using namespace seal;
using namespace sealnet;
SEALNETNAT... |
78fcbf202678fd358d0fdb743f4e3e53f6de38527002a516ff12a2907090c864 | C++ | 3,160 | 97 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "examples.h"
using namespace std;
using namespace seal;
int main()
{
#ifdef SEAL_VERSION
cout << "Microsoft SEAL version: " << SEAL_VERSION << endl;
#endif
while (true)
{
cout << "+-----------... |
7dc640a4fdba5ba5a4ae47cb24cf605dcc028ce6e888fd62ebd3c07a6f6fbb11 | C++ | 3,322 | 184 | #include <stdlib.h>
#ifdef IW_USE_TBB_SCALABLE_ALLOCATOR
#include "tbb/scalable_allocator.h"
#endif
#include "temp_detach_atoms.h"
#include "chiral_centre.h"
#include "molecule.h"
Temp_Detach_Atoms::Temp_Detach_Atoms()
{
_active = 1;
_remove_hydrogens_no_longer_needed = 1;
_matoms = 0;
_connection = NULL... |
6e608dbcd44f662ba9a0e66ba91c68c46b8f258a30147987e5f8b6315cec5184 | C++ | 3,487 | 179 | #include<sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <iostream>
using std::cerr;
using std::endl;
#define STORAGE_READER_IMPLEMENTATION
#include "iwmmap.h"
IW_MMapd_File::IW_MMapd_File()
{
_fd = -1;
_good = 1;
return;
}
IW_MMapd_File::IW_MMapd_Fil... |
bb170739b8d0b57fcc91e204a9ce4ebc69bfc7449e5f657554eea558a4ee5a76 | C++ | 3,541 | 106 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "seal/util/common.h"
#include "seal/util/uintcore.h"
#include "seal/util/uintarith.h"
#include <algorithm>
#include <string>
using namespace std;
namespace seal
{
namespace util
{
string uint_to_h... |
07f9fed8d285de006f792149decb2f79891108d13dbbfddb458469b27145e954 | C++ | 3,655 | 194 | #include <stdlib.h>
#include "substructure.h"
/*
A link record from ISIS looks like
M LIN 1 4 6 3 5
^ ^
connected to
^
repeats
^
atom number
*/
int
ISIS_Link_Atom::construct_from_M_ISIS_record (const IWStri... |
d290ce82440933e6b616d054fadadd3af4a73dadaec45fb365e27fb78f01ba65 | C++ | 3,721 | 182 | #include <stdlib.h>
#include <iostream>
/*
hash functions for hash maps
*/
#include "iw_stl_hash_map.h"
#ifdef OLD_VERSION
#include "primes.h"
size_t
IWStringHash::operator () (const IWString & s) const
{
int lens = s.length ();
size_t rc = 7927 * lens;
const unsigned int * q = (const unsigned int *) s.ra... |
fe67cf07ee6f13a61f809bdae57ed577d93f3dfc08a4a3ee3164469d3077908e | C++ | 3,790 | 96 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "gtest/gtest.h"
#include "seal/util/uintcore.h"
#include "seal/util/polycore.h"
#include "seal/util/polyarithmod.h"
#include <cstdint>
using namespace seal;
using namespace seal::util;
using namespace std;
namesp... |
ebc6b91a440cad267f3ad108ea4412610e316b70c015a3eea0e0de12aa087386 | C++ | 3,812 | 100 | #include <cctype>
#include "TIPL/tipl.hpp"
void check_name(std::string& name)
{
for(auto& ch : name)
if(!std::isalnum(static_cast<unsigned char>(ch)) && ch != '.')
ch = '_';
if(name.empty() || name == "." || name == "..")
name = "unknown";
}
std::filesystem::path rename_dicom(const... |
8e40aed1a4ada56c031098be4c19327a266f5f8161995e9b50d8772528d283fc | C++ | 3,825 | 136 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// SEALNet
#include "sealnet/stdafx.h"
#include "sealnet/memorypoolhandle_wrapper.h"
#include "sealnet/utilities.h"
// SEAL
#include "seal/memorymanager.h"
using namespace std;
using namespace seal;
using namespace sealne... |
86204e112b26dfaed1e6d58b2b674dcac7002ecb8512b84a09b5c73116aba90d | C++ | 4,187 | 114 | #include <cmath>
#include <fstream>
#include <sstream>
#include <iostream>
#include <string>
#include <stdio.h>
#include <vector>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <chrono>
#include <cstdlib>
#include <stdexcept>
#include "param.h"
#include "utils.h"
usi... |
0c417a607a78b7e04b25a084c8af3c99d488082b1b0d5ef6fc2264837fdf3aa7 | C++ | 4,486 | 138 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include <sstream>
#include <fstream>
#include <string>
#include <functional>
#include "gtest/gtest.h"
#include "seal/util/defines.h"
#include "seal/serialization.h"
using namespace seal;
using namespace std;
namespace SE... |
5c36d62f3b4a3676b8908414dff349787a330d20ddc203cad9e4e26aee658b43 | C++ | 4,511 | 227 | /*
Compute various things about conjugated sections in a molecule.
*/
#include <stdlib.h>
#include <memory>
using std::cerr;
using std::endl;
#include "cmdline.h"
#include "misc.h"
#include "istream_and_type.h"
#include "molecule.h"
#include "aromatic.h"
#include "iwstandard.h"
const char * prog_name = NULL;
sta... |
a29bb3283c666384f11bc92b72dcde944a7f8d5653e5685487c705751d331693 | C++ | 4,560 | 166 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// SEALNet
#include "sealnet/stdafx.h"
#include "sealnet/memorymanager_wrapper.h"
#include "sealnet/utilities.h"
// SEAL
#include "seal/memorymanager.h"
using namespace std;
using namespace seal;
using namespace sealnet;
... |
a2ef5ff75fcd95bc12ad13d61d44abd4462f8e81a966aaf403cefe5c10f2465a | C++ | 4,609 | 127 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "gtest/gtest.h"
#include "seal/util/mempool.h"
#include "seal/util/uintcore.h"
#include "seal/util/polycore.h"
#include "seal/util/smallntt.h"
#include "seal/util/numth.h"
#include <random>
#include <cstddef>
#incl... |
cbb4827c9a0a59a0e7904f69c3527dbc7f377069af65a075907a3ff8d233fb4f | C++ | 4,705 | 222 | #include <iostream>
#include <memory>
using std::cerr;
using std::endl;
#include "misc.h"
#include "molecule.h"
#include "path_scoring.h"
#include "chiral_centre.h"
#include "is_actually_chiral.h"
static int max_iterations = 0;
void
set_max_iterations (int m)
{
assert (m > 0);
max_iterations = m;
}
static int... |
02930d247c31b6878f69053f3a73451f453708d007607dc9bd765b9a786ba272 | C++ | 4,763 | 152 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "seal/kswitchkeys.h"
#include "seal/util/defines.h"
#include <stdexcept>
using namespace std;
using namespace seal::util;
namespace seal
{
KSwitchKeys &KSwitchKeys::operator =(const KSwitchKeys &assign)
{... |
4c9d3a3dbf8df580ee1a4f34d9c59d54f4156429658b9abded4387e0b816ff36 | C++ | 4,778 | 157 | #include <fstream>
#include <sstream>
#include <QCoreApplication>
#include <QDir>
#include "atlas.hpp"
void apply_trans(tipl::vector<3>& pos,const tipl::matrix<4,4>& trans);
void atlas::load_label(void)
{
auto text_file_name = (tipl::remove_all_suffix(filename) += ".txt");
if(!std::filesystem::exists(text_fi... |
2cfb8d3e6e68e49ba94c52de0d826fdef3afc4c93d086e964cffa2267ef40dca | C++ | 4,804 | 149 | #include "device.h"
extern std::vector<std::vector<float> > device_seg_length;
extern std::vector<std::vector<char> > device_seg_type;
extern std::vector<float> device_radius;
extern std::string device_content_file;
std::vector<std::string> device_types;
std::vector<std::vector<float> > device_seg_length;
std::vector<... |
65f0ff957afbef07a6e6215be0a3a29a454d78b1e4bd5db546758a76d7722ff1 | C++ | 4,806 | 266 | #include <stdlib.h>
#include "iwconfig.h"
#ifdef _WIN32
#else
#include <unistd.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "zlib.h"
#include "iwstring.h"
IWString_and_File_Descriptor::IWString_and_File_Descriptor()
{
_fd = -9;
_gzfile = NULL;
return;
}
IWString_and_Fil... |
41f6b610eb654164b85424431627d299a4bdfda0a25e5bfcdf544c2d2f745b10 | C++ | 4,808 | 122 | #include <QApplication>
#include <QFileInfo>
#include "tracking/region/Regions.h"
#include "tracking/atlasdialog.h"
#include "tracking/roi.hpp"
#include "connectometry/group_connectometry_analysis.h"
bool load_roi(tipl::program_option<tipl::out>& po,std::shared_ptr<fib_data> handle,std::shared_ptr<RoiMgr> roi_mgr);
int... |
b7f76b9b7cfaad04e9a4f1a1c14ca0c6a4fb8fabbfcc48b84289bb59e8a3c5be | C++ | 4,816 | 127 | #include <cmath>
#include <fstream>
#include <sstream>
#include <iostream>
#include <string>
#include <stdio.h>
#include <vector>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <chrono>
#include <cstdlib>
#include <stdexcept>
#include "thread.h"
#include "param.h"
#in... |
19420ca99ca2eadf17c54098149e51161bade9cc14a0d966d8a00f6373df0f5c | C++ | 4,889 | 151 | #include "param.h"
#include <cmath>
/*--------------------*/
// CONV1d
/*--------------------*/
long Param_conv1d::memoryscale = (1 << 20);
// 3D-filter: (DIM_FILTER * DIM_FILTER) * (DEPTH_FILTER)
double Param_conv1d::epsilon = 0.000;
int Param_conv1d::DIM_FILTERS = 3;
int Param_conv1d::npacked = 16; // the numb... |
f371615f849af4545e6fda71b8981158dcb344c6f68a82d374ab05bad951d8cb | C++ | 4,914 | 132 | #include <cmath>
#include <fstream>
#include <sstream>
#include <iostream>
#include <string>
#include <stdio.h>
#include <vector>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <chrono>
#include <cstdlib>
#include <stdexcept>
#include "thread.h"
#include "param.h"
#in... |
24c7fced57d1522606040408802176a61c0740ef131c3956cea567f99810fa4f | C++ | 4,922 | 158 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// STD
#include <unordered_map>
// SEALNet
#include "sealnet/stdafx.h"
#include "sealnet/sealcontext_wrapper.h"
#include "sealnet/utilities.h"
// SEAL
#include "seal/context.h"
#include "seal/util/locks.h"
using namespac... |
f7916a1aa95f2f4d4a05f8d9fbbfe84efb53a692e36bfed467ec1516da05a73f | C++ | 5,000 | 127 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "gtest/gtest.h"
#include "seal/ciphertext.h"
#include "seal/context.h"
#include "seal/keygenerator.h"
#include "seal/encryptor.h"
#include "seal/memorymanager.h"
#include "seal/modulus.h"
using namespace seal;
usi... |
aba7f2d1ab56ff3bdfb30a57a8d950f91212055083221be79c6191227d10a3e0 | C++ | 5,060 | 243 | #include <stdlib.h>
#include <assert.h>
#include <iostream>
//#include <cstring>
#include "iwzlib.h"
#ifdef NO_ZLIB
#else
#include "iwstring.h"
#define IWZLIB_BUF_SIZE 1024
IW_ZLib_Wrapper::IW_ZLib_Wrapper ()
{
_gzfile = NULL;
_record_delimiter = '\n';
_buffer = NULL;
_chars_in_buffer = 0;
_start_of_next... |
3114b2e3f57e561060b6c15ea6c56c17f8f53b6e46d61436b4565ae1e490359f | C++ | 5,085 | 291 | #include "assert.h"
#define RESIZABLE_ARRAY_IWQSORT_IMPLEMENTATION
#define RESIZABLE_ARRAY_IMPLEMENTATION
#include "iwqsort.h"
#include "misc.h"
#include "demerit.h"
static int demerit_reason_contains_individual_demerits = 0;
void
set_demerit_reason_contains_individual_demerits (int s)
{
demerit_reason_contains_i... |
65262c9e8fc915dfbdbf98955b01d01415dbe7cb854a418030039e194b068ffb | C++ | 5,123 | 291 | #include <iostream>
#include <assert.h>
#include <memory>
using std::cerr;
using std::endl;
#ifdef IW_USE_TBB_SCALABLE_ALLOCATOR
#include "tbb/scalable_allocator.h"
#endif
#include "bond_list.h"
Bond_list::Bond_list()
{
_magic = BOND_LIST_MAGIC;
}
Bond_list::~Bond_list()
{
_magic = 0;
}
int
Bond_list::ok() co... |
af07431ed3fa6b22a2debc4e58c1707078dec0791f5938a3e4019dfd8cfd6920 | C++ | 5,176 | 150 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "gtest/gtest.h"
#include "seal/smallmodulus.h"
using namespace seal;
using namespace std;
namespace SEALTest
{
TEST(SmallModulusTest, CreateSmallModulus)
{
SmallModulus mod;
ASSERT_TRUE(mo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.