hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cd3c2eeb055fef1a26ec3b781c3bf0a173fddbb9 | 19,764 | cpp | C++ | src/3rd_party/miniz_cpp.cpp | Eisenwave/voxel-io | d902568de2d4afda254e533a5ee9e4ad5fe7d2be | [
"MIT"
] | 12 | 2020-06-25T13:40:22.000Z | 2021-12-06T04:00:29.000Z | src/3rd_party/miniz_cpp.cpp | Eisenwave/voxel-io | d902568de2d4afda254e533a5ee9e4ad5fe7d2be | [
"MIT"
] | 2 | 2021-02-04T16:19:40.000Z | 2021-06-25T09:39:20.000Z | src/3rd_party/miniz_cpp.cpp | Eisenwave/voxel-io | d902568de2d4afda254e533a5ee9e4ad5fe7d2be | [
"MIT"
] | null | null | null | #include "voxelio/3rd_party/miniz_cpp.hpp"
#include "voxelio/3rd_party/miniz.h"
#include <assert.h>
#include <iostream>
#include <fstream>
#include <cstring>
namespace miniz_cpp {
namespace detail {
#ifdef _WIN32
char directory_separator = '\\';
char alt_directory_separator = '/';
#else
constexpr char directory_se... | 28.810496 | 196 | 0.635499 | Eisenwave |
cd3d003b215fd57548df4f02e53e194a83138386 | 3,743 | cpp | C++ | gsa/wit/COIN/Clp/PresolveUseless.cpp | kant/CMMPPT | c64b339712db28a619880c4c04839aef7d3b6e2b | [
"Apache-2.0"
] | 1 | 2019-10-25T05:25:23.000Z | 2019-10-25T05:25:23.000Z | gsa/wit/COIN/Clp/PresolveUseless.cpp | kant/CMMPPT | c64b339712db28a619880c4c04839aef7d3b6e2b | [
"Apache-2.0"
] | 2 | 2019-09-04T17:34:59.000Z | 2020-09-16T08:10:57.000Z | gsa/wit/COIN/Clp/PresolveUseless.cpp | kant/CMMPPT | c64b339712db28a619880c4c04839aef7d3b6e2b | [
"Apache-2.0"
] | 18 | 2019-07-22T19:01:25.000Z | 2022-03-03T15:36:11.000Z | #include <stdio.h>
#include <math.h>
#include "PresolveMatrix.hpp"
#include "PresolveUseless.hpp"
// WHAT HAPPENS IF COLS ARE DROPPED AS A RESULT??
// should be like do_tighten.
// not really - one could fix costed variables to appropriate bound.
// ok, don't bother about it. If it is costed, it will be checked
// w... | 25.462585 | 80 | 0.648143 | kant |
cd3d46176983a3c23620dd08181bd8f742545c69 | 3,181 | cxx | C++ | Modules/Loadable/Annotations/Testing/Cxx/vtkMRMLAnnotationLinesNodeTest1.cxx | TheInterventionCentre/NorMIT-Plan-App | 765ed9a5dccc1cc134b65ccabe93fc132baeb2ea | [
"MIT"
] | null | null | null | Modules/Loadable/Annotations/Testing/Cxx/vtkMRMLAnnotationLinesNodeTest1.cxx | TheInterventionCentre/NorMIT-Plan-App | 765ed9a5dccc1cc134b65ccabe93fc132baeb2ea | [
"MIT"
] | null | null | null | Modules/Loadable/Annotations/Testing/Cxx/vtkMRMLAnnotationLinesNodeTest1.cxx | TheInterventionCentre/NorMIT-Plan-App | 765ed9a5dccc1cc134b65ccabe93fc132baeb2ea | [
"MIT"
] | null | null | null | #include "vtkMRMLAnnotationLineDisplayNode.h"
#include "vtkMRMLAnnotationLinesNode.h"
#include "vtkMRMLAnnotationLinesStorageNode.h"
#include "vtkMRMLScene.h"
#include <sstream>
#include "vtkMRMLCoreTestingMacros.h"
void SetControlPointsAndText(vtkMRMLAnnotationLinesNode* node2)
{
node2->AddText("TESTING 1",1,1);
... | 29.453704 | 147 | 0.705124 | TheInterventionCentre |
cd3dbd1dbc29ba564c97f549e380de2704b006d8 | 1,452 | cpp | C++ | runtime/qrt/impls/ftqc/tests/FtqcQrtTester.cpp | ausbin/qcor | e9e0624a0e14b1b980ce9265b71c9b394abc60a8 | [
"BSD-3-Clause"
] | null | null | null | runtime/qrt/impls/ftqc/tests/FtqcQrtTester.cpp | ausbin/qcor | e9e0624a0e14b1b980ce9265b71c9b394abc60a8 | [
"BSD-3-Clause"
] | null | null | null | runtime/qrt/impls/ftqc/tests/FtqcQrtTester.cpp | ausbin/qcor | e9e0624a0e14b1b980ce9265b71c9b394abc60a8 | [
"BSD-3-Clause"
] | 1 | 2021-03-14T09:13:06.000Z | 2021-03-14T09:13:06.000Z | #include "qcor.hpp"
#include <gtest/gtest.h>
#include "xacc_service.hpp"
TEST(FtqcQrtTester, checkSimple) {
::quantum::set_qrt("ftqc");
::quantum::initialize("qpp", "empty");
auto qreg = qalloc(1);
qreg.setName("q");
::quantum::set_current_buffer(qreg.results());
const auto nTests = 100;
int nZeros = 0;
... | 24.2 | 52 | 0.552342 | ausbin |
cd3e0f73fd6ebac2f32ee7edcdfdf0d5da755212 | 131,105 | cc | C++ | google/cloud/spanner/internal/connection_impl_test.cc | GoogleCloudPlatform/google-cloud-cpp | c4fc35de9e15f95b1dbf585f1c96de5dba609e2b | [
"Apache-2.0"
] | 80 | 2017-11-24T00:19:45.000Z | 2019-01-25T10:24:33.000Z | google/cloud/spanner/internal/connection_impl_test.cc | GoogleCloudPlatform/google-cloud-cpp | c4fc35de9e15f95b1dbf585f1c96de5dba609e2b | [
"Apache-2.0"
] | 1,579 | 2017-11-24T01:01:21.000Z | 2019-01-28T23:41:21.000Z | google/cloud/spanner/internal/connection_impl_test.cc | GoogleCloudPlatform/google-cloud-cpp | c4fc35de9e15f95b1dbf585f1c96de5dba609e2b | [
"Apache-2.0"
] | 51 | 2017-11-24T00:56:11.000Z | 2019-01-18T20:35:02.000Z | // Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 41.594226 | 80 | 0.669524 | GoogleCloudPlatform |
cd3f7ea62174f82d1dded06605810dbaa95730a2 | 473 | cpp | C++ | NJUPT-ACM/2017.4.15/A.cpp | ZsgsDesign/My_ACM_Life | 9cd5e6dedbf58d8dd2322d5f06ea9d86583f7c46 | [
"CC-BY-4.0"
] | 4 | 2019-02-17T15:14:21.000Z | 2019-03-30T11:34:19.000Z | NJUPT-ACM/2017.4.15/A.cpp | ZsgsDesign/My_ACM_Life | 9cd5e6dedbf58d8dd2322d5f06ea9d86583f7c46 | [
"CC-BY-4.0"
] | null | null | null | NJUPT-ACM/2017.4.15/A.cpp | ZsgsDesign/My_ACM_Life | 9cd5e6dedbf58d8dd2322d5f06ea9d86583f7c46 | [
"CC-BY-4.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <cmath>
#include <iostream>
#include <algorithm>
using namespace std;
int n,ans;
int a,b,c,t;
int main()
{
//ios::sync_with_stdio(false);
cin >> n;
//cin >> n;
for(int i=1;i<=n;i++)
{
cin >> a >> b >> c;
if(a>b){t=a;a=b;b=t;}
if(b>c){t=b;b=c;c=t;}
if... | 14.333333 | 31 | 0.513742 | ZsgsDesign |
cd41b3c1ef6d919f19e570969e364f866be9fe4b | 7,086 | cpp | C++ | Platform/Serializer.cpp | kaizen365/truecrypt | 4033160fd27dd0182a7b88f63faee1e4e32b709e | [
"Zlib"
] | 23 | 2015-02-15T19:46:22.000Z | 2019-08-14T16:53:52.000Z | Platform/Serializer.cpp | pustladi/TrueCrypt | df093ae9b4c5f15e4d494658fa19f459ad77e6d3 | [
"Zlib",
"MIT"
] | 1 | 2018-11-04T13:57:55.000Z | 2018-11-04T15:59:40.000Z | Platform/Serializer.cpp | pustladi/TrueCrypt | df093ae9b4c5f15e4d494658fa19f459ad77e6d3 | [
"Zlib",
"MIT"
] | 8 | 2015-04-03T14:01:20.000Z | 2020-05-17T03:26:19.000Z | /*
Copyright (c) 2008 TrueCrypt Developers Association. All rights reserved.
Governed by the TrueCrypt License 3.0 the full text of which is contained in
the file License.txt included in TrueCrypt binary and source code distribution
packages.
*/
#include "Exception.h"
#include "ForEach.h"
#include "Memo... | 23.62 | 109 | 0.659328 | kaizen365 |
cd4249b7289bbddad74b859af29bd91b5f15b6c0 | 10,830 | hpp | C++ | include/caffe/util/math_functions.hpp | oscmansan/nvcaffe | 22738c97e9c6991e49a12a924c3c773d95795b5c | [
"BSD-2-Clause"
] | null | null | null | include/caffe/util/math_functions.hpp | oscmansan/nvcaffe | 22738c97e9c6991e49a12a924c3c773d95795b5c | [
"BSD-2-Clause"
] | null | null | null | include/caffe/util/math_functions.hpp | oscmansan/nvcaffe | 22738c97e9c6991e49a12a924c3c773d95795b5c | [
"BSD-2-Clause"
] | null | null | null | #ifndef CAFFE_UTIL_MATH_FUNCTIONS_H_
#define CAFFE_UTIL_MATH_FUNCTIONS_H_
#include <stdint.h>
#include <cmath> // for std::fabs and std::signbit
#include "glog/logging.h"
#include "caffe/common.hpp"
#include "caffe/util/device_alternate.hpp"
#include "caffe/util/mkl_alternate.hpp"
#include "caffe/util/get.hpp"
nam... | 36.464646 | 97 | 0.734718 | oscmansan |
cd49781f8c76ee261c57b29b8c4be434c76165a1 | 20,202 | cc | C++ | src/kudu/tools/fs_tool.cc | kv-zuiwanyuan/kudu | 251defb69b1a252cedd5d707d9c84b67cf63726d | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | src/kudu/tools/fs_tool.cc | kv-zuiwanyuan/kudu | 251defb69b1a252cedd5d707d9c84b67cf63726d | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | src/kudu/tools/fs_tool.cc | kv-zuiwanyuan/kudu | 251defb69b1a252cedd5d707d9c84b67cf63726d | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | // Copyright 2014 Cloudera, Inc.
//
// 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 ... | 35.133913 | 96 | 0.627413 | kv-zuiwanyuan |
cd49ab9f5f1345fb41366b8b8db9410425d26416 | 1,791 | cpp | C++ | JobduInCPlusPlus/1013 开门人和关门人.cpp | zpfbuaa/JobduInCPlusPlus | 067db56ee952660c6ee6e6ab958747d566f3da02 | [
"MIT"
] | 16 | 2017-04-17T03:52:51.000Z | 2021-01-21T07:56:50.000Z | JobduInCPlusPlus/1013 开门人和关门人.cpp | zpfbuaa/JobduInCPlusPlus | 067db56ee952660c6ee6e6ab958747d566f3da02 | [
"MIT"
] | null | null | null | JobduInCPlusPlus/1013 开门人和关门人.cpp | zpfbuaa/JobduInCPlusPlus | 067db56ee952660c6ee6e6ab958747d566f3da02 | [
"MIT"
] | 7 | 2017-04-17T03:52:52.000Z | 2019-09-26T08:41:08.000Z | //
// 1013 开门人和关门人.cpp
// Jobdu
//
// Created by PengFei_Zheng on 28/04/2017.
// Copyright © 2017 PengFei_Zheng. All rights reserved.
//
#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <string.h>
#include <cstring>
#include <cmath>
#define MAX_SIZE 21
#define MAX_HUMAN 110
using namespace std... | 22.111111 | 143 | 0.535455 | zpfbuaa |
cd49d86b38a3d2e47265666061ea4039889e5687 | 2,117 | cpp | C++ | src/halide/box_downsample_generator.cpp | google/bgu | f2d6f2d1950b64790a2f712dc80b6c4bada410d5 | [
"Apache-2.0"
] | 132 | 2016-10-18T01:45:17.000Z | 2022-03-16T10:22:08.000Z | src/halide/box_downsample_generator.cpp | google/bgu | f2d6f2d1950b64790a2f712dc80b6c4bada410d5 | [
"Apache-2.0"
] | null | null | null | src/halide/box_downsample_generator.cpp | google/bgu | f2d6f2d1950b64790a2f712dc80b6c4bada410d5 | [
"Apache-2.0"
] | 48 | 2016-10-17T23:39:27.000Z | 2022-03-26T06:42:19.000Z | // Copyright 2016 Google Inc.
//
// 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 in wri... | 36.5 | 78 | 0.698158 | google |
cd4a3589beb73ed8c23217601d6f62f5cedb9941 | 1,304 | cpp | C++ | src/CollisionManager.cpp | tliang1/CPP-SFMLv2.3.2-Pong | bc1fb55db2fe95f4d942946bfabdec7ff4bc806c | [
"MIT"
] | null | null | null | src/CollisionManager.cpp | tliang1/CPP-SFMLv2.3.2-Pong | bc1fb55db2fe95f4d942946bfabdec7ff4bc806c | [
"MIT"
] | null | null | null | src/CollisionManager.cpp | tliang1/CPP-SFMLv2.3.2-Pong | bc1fb55db2fe95f4d942946bfabdec7ff4bc806c | [
"MIT"
] | null | null | null | #include "CollisionManager.h"
bool CollisionManager::isCollision(Ball &ball, const Paddle &paddle)
{
float paddleXMin = paddle.getPaddle().getPosition().x;
float paddleXMax = paddleXMin + (paddle.getPaddle().getLocalBounds().width / 2.0f);
float paddleYMin = paddle.getPaddle().getPosition().y - (paddle.getPaddle().... | 34.315789 | 113 | 0.704755 | tliang1 |
cd4f45c69789cbc1c4c4d87fb97175f7a7d4540d | 529 | cxx | C++ | firmware/MXKeyboard.cxx | bad-alloc-heavy-industries/MXKeyboard | b1637ba3b2eb9a741559ceb789452127e1a441a6 | [
"BSD-3-Clause"
] | 5 | 2021-03-07T00:19:15.000Z | 2021-09-02T22:34:19.000Z | firmware/MXKeyboard.cxx | bad-alloc-heavy-industries/MXKeyboard | b1637ba3b2eb9a741559ceb789452127e1a441a6 | [
"BSD-3-Clause"
] | null | null | null | firmware/MXKeyboard.cxx | bad-alloc-heavy-industries/MXKeyboard | b1637ba3b2eb9a741559ceb789452127e1a441a6 | [
"BSD-3-Clause"
] | null | null | null | // SPDX-License-Identifier: BSD-3-Clause
#include <avr/builtins.h>
#include <usb/core.hxx>
#include "MXKeyboard.hxx"
#include "interrupts.hxx"
#include "usb/hid.hxx"
void run()
{
__builtin_avr_cli();
oscInit();
//ps2Init();
dmaInit();
ledInit();
keyInit();
usb::core::init();
usb::hid::registerHandlers(1, 0, 1)... | 18.892857 | 56 | 0.674858 | bad-alloc-heavy-industries |
cd4fcfa8ce8324da396dfd5d3570eb2cd7f56a51 | 5,309 | hpp | C++ | lib/ModbusAPI.hpp | mensinda/modbusSMA | 0c2ddd28123ee6a3032fc82d5be8e9c6cfd9a979 | [
"Apache-2.0"
] | 1 | 2020-03-15T18:53:26.000Z | 2020-03-15T18:53:26.000Z | lib/ModbusAPI.hpp | mensinda/modbusSMA | 0c2ddd28123ee6a3032fc82d5be8e9c6cfd9a979 | [
"Apache-2.0"
] | null | null | null | lib/ModbusAPI.hpp | mensinda/modbusSMA | 0c2ddd28123ee6a3032fc82d5be8e9c6cfd9a979 | [
"Apache-2.0"
] | 1 | 2022-03-14T11:06:26.000Z | 2022-03-14T11:06:26.000Z | //! \file
/*
* Copyright (C) 2018 Daniel Mensinger
*
* 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 la... | 34.474026 | 119 | 0.666227 | mensinda |
cd52a00ff1fd417431d11df6686e97b729ad523a | 2,042 | cc | C++ | graph/mst-kruskal.cc | deyuan/coding-practice | 82bdf719397507601e582ab6d5693e4e50e96a3a | [
"MIT"
] | null | null | null | graph/mst-kruskal.cc | deyuan/coding-practice | 82bdf719397507601e582ab6d5693e4e50e96a3a | [
"MIT"
] | null | null | null | graph/mst-kruskal.cc | deyuan/coding-practice | 82bdf719397507601e582ab6d5693e4e50e96a3a | [
"MIT"
] | null | null | null | // Minimum Spanning Tree, Kruskal Algorithm
// Copyright (c) 2021 Deyuan Guo <guodeyuan@gmail.com>. All rights reserved.
#include <iostream>
#include <vector>
#include "graph_util.h"
class UnionFind {
public:
UnionFind(int n) : root(n), rank(n) {
for (int i = 0; i < n; i++) {
root[i] = i;
}
}
in... | 22.195652 | 76 | 0.554358 | deyuan |
cd5ef5628c996ec0cae3f8d242ac50f518c663a4 | 606 | cpp | C++ | t/tests.cpp | chickchirik/randcrypt | b216d3dc70ff432a8c1d65945a414e00ada4f7bf | [
"MIT"
] | 1 | 2020-05-08T12:55:58.000Z | 2020-05-08T12:55:58.000Z | t/tests.cpp | chickchirik/randcrypt | b216d3dc70ff432a8c1d65945a414e00ada4f7bf | [
"MIT"
] | null | null | null | t/tests.cpp | chickchirik/randcrypt | b216d3dc70ff432a8c1d65945a414e00ada4f7bf | [
"MIT"
] | null | null | null | /*
tests.cpp
Created by <chickchirik> on 08/10/2019.
DESCRIPTION:
tests sub-project based on Catch2 testing
framework that runs tests on core modules.
In order to run tests - just build this
project and execute t.
In order to add tests - create new cpp
file, include Catch2 and fil... | 24.24 | 46 | 0.69637 | chickchirik |
cd62dd60e4583da7c78b8913d5d40913adcf642a | 2,424 | cpp | C++ | src/1_digital/cclight/exe_flag_gen.cpp | gtaifu/CACTUS | a05f47423ac37b14989ec38c525741ec597b4826 | [
"Apache-2.0"
] | 8 | 2020-01-04T06:40:13.000Z | 2020-12-04T19:29:02.000Z | src/1_digital/cclight/exe_flag_gen.cpp | gtaifu/CACTUS | a05f47423ac37b14989ec38c525741ec597b4826 | [
"Apache-2.0"
] | null | null | null | src/1_digital/cclight/exe_flag_gen.cpp | gtaifu/CACTUS | a05f47423ac37b14989ec38c525741ec597b4826 | [
"Apache-2.0"
] | 1 | 2021-07-05T02:14:05.000Z | 2021-07-05T02:14:05.000Z | #include "exe_flag_gen.h"
#include <vector>
namespace cactus {
Fce_logic::Fce_logic(const sc_core::sc_module_name& n)
: sc_core::sc_module(n) {
msmt_res_his.init(NUM_HIS_MSMT_RES);
SC_CTHREAD(log_msmt_his, clock);
SC_CTHREAD(gen_exe_flag, clock);
}
void Fce_logic::log_msmt_his() {
std::vector... | 27.545455 | 93 | 0.608911 | gtaifu |
cd6632a23b49abd05da65718cdd28b6192597a9d | 797 | hpp | C++ | vp/src/platform/redv/i2c/i2cclient.hpp | U2654/riscv-vp | 2ecb20927d72bf8431c7b436ddbe90d634d32c64 | [
"MIT"
] | null | null | null | vp/src/platform/redv/i2c/i2cclient.hpp | U2654/riscv-vp | 2ecb20927d72bf8431c7b436ddbe90d634d32c64 | [
"MIT"
] | null | null | null | vp/src/platform/redv/i2c/i2cclient.hpp | U2654/riscv-vp | 2ecb20927d72bf8431c7b436ddbe90d634d32c64 | [
"MIT"
] | 1 | 2021-11-04T14:18:06.000Z | 2021-11-04T14:18:06.000Z | #ifndef I2C_CLIENT_H
#define I2C_CLIENT_H
#define I2C_CMD_STA 7
#define I2C_CMD_STO 6
#define I2C_CMD_ACK 3
#define I2C_STAT_RXACK 7
#define I2C_STAT_BUSY 6
#define I2C_STAT_ARLO 5
#define I2C_STAT_TIP 1
#define I2C_STAT_IF 0
class I2CClient
{
public:
enum State
{
IDLE,
ADDRESS,
REGIS... | 16.265306 | 65 | 0.662484 | U2654 |
cd6d8e155d23c304eac4357f682ac51845b1b14e | 1,498 | cpp | C++ | c++/leetcode/0065-Valid_Number-H.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | 1 | 2020-03-02T10:56:22.000Z | 2020-03-02T10:56:22.000Z | c++/leetcode/0065-Valid_Number-H.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | null | null | null | c++/leetcode/0065-Valid_Number-H.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | null | null | null | // 65 Valid Number
// https://leetcode.com/problems/valid-number
// version: 1; create time: 2020-02-06 21:40:48;
class Solution {
public:
bool isNumber(string s) {
const int n = s.size();
int i = 0, j = n - 1;
while (i < n && s[i] == ' ') ++i;
while (j >= 0 && s[j] == ' ') --j;
... | 29.96 | 74 | 0.408545 | levendlee |
cd6eea94294b20e4d6c5b8fbe78f139389e3366a | 8,161 | cpp | C++ | build/src/DistributedEnergyResource.cpp | Tylores/DCS | 2fc852b4a044d371795f1ddc63e0cb1b0cbd303d | [
"Apache-2.0"
] | null | null | null | build/src/DistributedEnergyResource.cpp | Tylores/DCS | 2fc852b4a044d371795f1ddc63e0cb1b0cbd303d | [
"Apache-2.0"
] | null | null | null | build/src/DistributedEnergyResource.cpp | Tylores/DCS | 2fc852b4a044d371795f1ddc63e0cb1b0cbd303d | [
"Apache-2.0"
] | null | null | null | #include "include/DistributedEnergyResource.hpp"
DistributedEnergyResource::DistributedEnergyResource (
std::map <std::string, std::string> init) :
rated_export_power_(stoul(init["RatedExportPower"])),
rated_export_energy_(stoul(init["RatedExportEnergy"])),
export_ramp_(stoul(init["ExportRamp"]))... | 33.72314 | 79 | 0.689621 | Tylores |
cd6f34c4e79b5a101c8b875154fac6e32ad91f24 | 2,008 | cc | C++ | ACAP_linux/3rd/CoMISo/Base/Test/ChecksumCondition.cc | shubhMaheshwari/Automatic-Unpaired-Shape-Deformation-Transfer | 8c9afe017769f9554706bcd267b6861c4c144999 | [
"MIT"
] | 216 | 2018-09-09T11:53:56.000Z | 2022-03-19T13:41:35.000Z | ACAP_linux/3rd/CoMISo/Base/Test/ChecksumCondition.cc | gaolinorange/Automatic-Unpaired-Shape-Deformation-Transfer | 8c9afe017769f9554706bcd267b6861c4c144999 | [
"MIT"
] | 13 | 2018-10-23T08:29:09.000Z | 2021-09-08T06:45:34.000Z | ACAP_linux/3rd/CoMISo/Base/Test/ChecksumCondition.cc | shubhMaheshwari/Automatic-Unpaired-Shape-Deformation-Transfer | 8c9afe017769f9554706bcd267b6861c4c144999 | [
"MIT"
] | 41 | 2018-09-13T08:50:41.000Z | 2022-02-23T00:33:54.000Z | // (C) Copyright 2016 by Autodesk, Inc.
#if defined(TEST_ON)
#include "ChecksumCondition.hh"
#include "TestResult.hh"
#include "Base/Code/CodeLink.hh"
#include <algorithm>
namespace Test {
namespace Checksum {
const char* const CHECKED_TAG = " checked ";
const char* const TOTAL_TAG = "total#: ";
const char* const ... | 25.74359 | 80 | 0.683267 | shubhMaheshwari |
cd70c597028af6688e991c5f834f1ef966dfddf4 | 2,988 | cpp | C++ | ion/ServerSettingsPage.cpp | dtylman/ion | 219a84761ff9213a53c79d3447b03ae620711024 | [
"MIT"
] | 2 | 2018-01-15T12:22:31.000Z | 2018-03-16T12:43:32.000Z | ion/ServerSettingsPage.cpp | dtylman/ion | 219a84761ff9213a53c79d3447b03ae620711024 | [
"MIT"
] | null | null | null | ion/ServerSettingsPage.cpp | dtylman/ion | 219a84761ff9213a53c79d3447b03ae620711024 | [
"MIT"
] | null | null | null | /*
* File: ServerSettingsPage.cpp
* Author: danny
*
* Created on February 24, 2015, 4:15 PM
*/
#include "ServerSettingsPage.h"
#include "WebMenu.h"
#include "WebForm.h"
#include "Main.h"
#include <Poco/Util/LayeredConfiguration.h>
#include <Poco/Util/Application.h>
const std::string ServerSettingsPage::Link("s... | 32.478261 | 142 | 0.691098 | dtylman |
cd71b09fc5ca6ab9ac9795e6df6838a78d93b13f | 1,730 | cpp | C++ | Drone.cpp | IrrationalKyo/ViconMAVLink | 6a13eaa3722d5871c23f6bbda43fa068d23e0349 | [
"MIT"
] | 18 | 2017-12-07T23:40:29.000Z | 2022-01-30T05:47:25.000Z | Drone.cpp | IrrationalKyo/ViconMAVLink | 6a13eaa3722d5871c23f6bbda43fa068d23e0349 | [
"MIT"
] | null | null | null | Drone.cpp | IrrationalKyo/ViconMAVLink | 6a13eaa3722d5871c23f6bbda43fa068d23e0349 | [
"MIT"
] | 15 | 2017-12-08T16:56:04.000Z | 2021-10-04T16:31:55.000Z | /***************************************************************************
* *
* Copyright (C) 2017 by University of Illinois *
* *
* http://illinois.edu ... | 18.404255 | 109 | 0.44104 | IrrationalKyo |
cd72d74e259b63d263f890f1220576b9a8819a61 | 5,700 | cpp | C++ | 3rdparty/jsonrpc-cpp-0.4/src/jsonrpc_tcpserver.cpp | wohaaitinciu/zpublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 50 | 2015-01-07T01:54:54.000Z | 2021-01-15T00:41:48.000Z | 3rdparty/jsonrpc-cpp-0.4/src/jsonrpc_tcpserver.cpp | lib1256/zpublic | 64c2be9ef1abab878288680bb58122dcc25df81d | [
"Unlicense"
] | 1 | 2015-05-26T07:40:19.000Z | 2015-05-26T07:40:19.000Z | 3rdparty/jsonrpc-cpp-0.4/src/jsonrpc_tcpserver.cpp | lib1256/zpublic | 64c2be9ef1abab878288680bb58122dcc25df81d | [
"Unlicense"
] | 39 | 2015-01-07T02:03:15.000Z | 2021-01-15T00:41:50.000Z | /*
* JsonRpc-Cpp - JSON-RPC implementation.
* Copyright (C) 2008-2011 Sebastien Vincent <sebastien.vincent@cppextrem.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, eith... | 22.529644 | 95 | 0.527368 | wohaaitinciu |
cd72dd25a2b8d31063d22e2eee0d06f59dec3e45 | 77 | hh | C++ | kernel/arch/rtc.hh | ErrorOnUsername/axiom | 1455e10e8528cf272bea38c46bc05966a108215c | [
"MIT"
] | null | null | null | kernel/arch/rtc.hh | ErrorOnUsername/axiom | 1455e10e8528cf272bea38c46bc05966a108215c | [
"MIT"
] | null | null | null | kernel/arch/rtc.hh | ErrorOnUsername/axiom | 1455e10e8528cf272bea38c46bc05966a108215c | [
"MIT"
] | null | null | null | #pragma once
namespace Kernel::RTC {
void initialize_real_time_clock();
}
| 9.625 | 34 | 0.753247 | ErrorOnUsername |
cd73710d450f69f76efd410b5ee4e4b80a82f324 | 7,800 | cc | C++ | ns-allinone-3.27/ns-3.27/examples/wireless/wifi-hidden-terminal.cc | zack-braun/4607_NS | 43c8fb772e5552fb44bd7cd34173e73e3fb66537 | [
"MIT"
] | 93 | 2019-04-21T08:22:26.000Z | 2022-03-30T04:26:29.000Z | ns-allinone-3.27/ns-3.27/examples/wireless/wifi-hidden-terminal.cc | zack-braun/4607_NS | 43c8fb772e5552fb44bd7cd34173e73e3fb66537 | [
"MIT"
] | 12 | 2019-04-19T16:39:58.000Z | 2021-06-22T13:18:32.000Z | ns-allinone-3.27/ns-3.27/examples/wireless/wifi-hidden-terminal.cc | zack-braun/4607_NS | 43c8fb772e5552fb44bd7cd34173e73e3fb66537 | [
"MIT"
] | 21 | 2019-05-27T19:36:12.000Z | 2021-07-26T02:37:41.000Z | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2010 IITP RAS
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distribu... | 41.489362 | 153 | 0.679872 | zack-braun |
cd75b6371618ec1e5d9cea82be8890060d0f2827 | 992 | cpp | C++ | src/sketchup/RubyUtils/mbRubyUtils.cpp | sonicth/SUMB_ShapeFitting | 65f5debdbe6729d21543b532b97367bd99b54b73 | [
"BSL-1.0"
] | 1 | 2016-09-06T09:14:48.000Z | 2016-09-06T09:14:48.000Z | src/sketchup/RubyUtils/mbRubyUtils.cpp | sonicth/SUMB_ShapeFitting | 65f5debdbe6729d21543b532b97367bd99b54b73 | [
"BSL-1.0"
] | null | null | null | src/sketchup/RubyUtils/mbRubyUtils.cpp | sonicth/SUMB_ShapeFitting | 65f5debdbe6729d21543b532b97367bd99b54b73 | [
"BSL-1.0"
] | null | null | null | /*
* copyright 2016 mike vasiljevs (contact@michaelvasiljevs.com)
* ShapeFitting SU plugin
*/
#include "mbRubyUtils.h"
#include <boost/foreach.hpp>
void getShapePts(VALUE shape, Pts_t& pts)
{
// convert to ruby DS
auto iregion_num = RARRAY_LEN(shape);
pts.reserve(iregion_num);
for (int i = 0; i... | 21.565217 | 64 | 0.650202 | sonicth |
cd7a69fc9dfc2313564660106bf7d4047a1af35d | 1,224 | cpp | C++ | src/Address.cpp | evenleo/leo | 67e148e04eb7b3af9890f907f24fb4f63d8405b0 | [
"MIT"
] | null | null | null | src/Address.cpp | evenleo/leo | 67e148e04eb7b3af9890f907f24fb4f63d8405b0 | [
"MIT"
] | null | null | null | src/Address.cpp | evenleo/leo | 67e148e04eb7b3af9890f907f24fb4f63d8405b0 | [
"MIT"
] | null | null | null | #include "Address.h"
#include "Log.h"
#include <arpa/inet.h>
#include <string.h>
#include <sstream>
namespace leo {
IpAddress::IpAddress(std::string ip, in_port_t port) {
bzero(&addr_, sizeof(addr_));
addr_.sin_family = AF_INET;
addr_.sin_port = htons(port);
if (int rt = ::inet_pton(AF_INET, ip.c_str(), &addr_.s... | 21.473684 | 74 | 0.67402 | evenleo |
cd7c00d67bfbd5f4ec766b70046d9dc0cede3935 | 3,694 | cpp | C++ | src/Flownodes/CFlowCUITriggerEvent.cpp | CoherentLabs/CoherentUI_CryEngine3 | 44b30e41e37a92ee16edbc6b738f996cfb3bd67e | [
"BSD-2-Clause"
] | 12 | 2015-04-04T17:21:06.000Z | 2021-05-11T16:03:36.000Z | src/Flownodes/CFlowCUITriggerEvent.cpp | CoherentLabs/CoherentUI_CryEngine3 | 44b30e41e37a92ee16edbc6b738f996cfb3bd67e | [
"BSD-2-Clause"
] | 1 | 2015-06-23T21:24:38.000Z | 2015-06-25T03:42:39.000Z | src/Flownodes/CFlowCUITriggerEvent.cpp | CoherentLabs/CoherentUI_CryEngine3 | 44b30e41e37a92ee16edbc6b738f996cfb3bd67e | [
"BSD-2-Clause"
] | 5 | 2015-02-11T22:43:43.000Z | 2017-12-03T00:38:46.000Z | #include <StdAfx.h>
#include <Nodes/G2FlowBaseNode.h>
#include <CPluginCoherentUI.h>
#include <Coherent/UI/View.h>
#include "CoherentViewListener.h"
#include "CoherentUISystem.h"
namespace CoherentUIPlugin
{
class CFlowCUITriggerEvent : public CFlowBaseNode<eNCT_Instanced>
{
private:
enum ... | 35.864078 | 120 | 0.442339 | CoherentLabs |
cd7c046a95f658b316d02b79b95f521be9824890 | 1,027 | cpp | C++ | A_problems/GoofNumber.cpp | tarek99samy/code_forces_problems | a2e6fd1ad762843a4fa1e4a2561299a21ec2bb2e | [
"MIT"
] | null | null | null | A_problems/GoofNumber.cpp | tarek99samy/code_forces_problems | a2e6fd1ad762843a4fa1e4a2561299a21ec2bb2e | [
"MIT"
] | null | null | null | A_problems/GoofNumber.cpp | tarek99samy/code_forces_problems | a2e6fd1ad762843a4fa1e4a2561299a21ec2bb2e | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
//#include<windows.h>
#include<cstring>
#include<string>
#include<algorithm>
#include<stack>
#include<vector>
#include<cmath>
#include<list>
#include<cstdlib>
long long GCD(long long A, long long B)
{
if (B > A)
{
swap(A, B);
}
long long gcd = A % B;
if (gcd == 0)
{
... | 13.513158 | 42 | 0.497566 | tarek99samy |
cd7cc981e4335133645efea4b95a38b4885ad481 | 12,995 | cpp | C++ | fss-core/libPSI/libPSI/MPSI/DKT/DktMPsiSender.cpp | ucbrise/waldo | d435d7f447a36b5d000f45ff1b0c73747c1d7aa2 | [
"Apache-2.0"
] | 7 | 2021-12-19T11:31:06.000Z | 2022-03-01T04:19:51.000Z | fss-core/libPSI/libPSI/MPSI/DKT/DktMPsiSender.cpp | ucbrise/waldo | d435d7f447a36b5d000f45ff1b0c73747c1d7aa2 | [
"Apache-2.0"
] | null | null | null | fss-core/libPSI/libPSI/MPSI/DKT/DktMPsiSender.cpp | ucbrise/waldo | d435d7f447a36b5d000f45ff1b0c73747c1d7aa2 | [
"Apache-2.0"
] | null | null | null |
#include "libPSI/config.h"
#ifdef ENABLE_DKT_PSI
#ifndef ENABLE_RELIC
#pragma error("ENABLE_RELIC must be defined in libOTe")
#endif
#include "DktMPsiSender.h"
#include "cryptoTools/Crypto/RCurve.h"
#include "cryptoTools/Crypto/RandomOracle.h"
#include "cryptoTools/Common/Log.h"
#include "cryptoTools/Network/Channel.h... | 30.793839 | 122 | 0.477491 | ucbrise |
cd7cfdae6b2e77574eaced718465d50f9718ebc7 | 1,450 | cpp | C++ | Advanced-Programming/Lab-2/car.cpp | hstr2785/CS | d1eaec5413887c8e271f598d41ef6ccd565c5ac8 | [
"MIT"
] | null | null | null | Advanced-Programming/Lab-2/car.cpp | hstr2785/CS | d1eaec5413887c8e271f598d41ef6ccd565c5ac8 | [
"MIT"
] | 1 | 2020-09-25T17:04:57.000Z | 2020-09-25T17:04:57.000Z | Advanced-Programming/Lab-2/car.cpp | hstr2785/CS | d1eaec5413887c8e271f598d41ef6ccd565c5ac8 | [
"MIT"
] | 2 | 2020-10-01T05:01:38.000Z | 2020-10-01T08:11:50.000Z | #include <iostream>
#include <string>
using namespace std;
class car {
string brand;
string model;
int year;
int speed;
int distance;
public:
car():brand("\0"),model("\0"),year(0),speed(0),distance(0){
cout << "Default constructor .." << endl;
}
car(string b, string m, int y, int s,float d){
... | 19.594595 | 121 | 0.565517 | hstr2785 |
cd7eed23799a026711a64cc5d2bb32a827b96c57 | 3,123 | cpp | C++ | opencl/test/unit_test/sku_info/sku_info_receiver_tests.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/sku_info/sku_info_receiver_tests.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/sku_info/sku_info_receiver_tests.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/sku_info/operations/windows/sku_info_receiver.h"
#include "opencl/test/unit_test/sku_info/sku_info_base_reference.h"
#include "gtest/gtest.h"
using namespace NEO;
inline bool operator==(const FeatureTa... | 31.545455 | 102 | 0.759206 | mattcarter2017 |
cd831dad499aa8163113b632a8bcc9f4649acd36 | 1,166 | hpp | C++ | src/krnl/hpp/gdt.hpp | maximsmol/nos | 386b4166b3fd1701b734bfcd50ace1b9e1ea38ee | [
"MIT"
] | 1 | 2019-04-29T05:10:52.000Z | 2019-04-29T05:10:52.000Z | src/krnl/hpp/gdt.hpp | maximsmol/nos | 386b4166b3fd1701b734bfcd50ace1b9e1ea38ee | [
"MIT"
] | null | null | null | src/krnl/hpp/gdt.hpp | maximsmol/nos | 386b4166b3fd1701b734bfcd50ace1b9e1ea38ee | [
"MIT"
] | 1 | 2021-12-06T23:49:27.000Z | 2021-12-06T23:49:27.000Z | #pragma once
#include "util/gdt.hpp"
namespace gdt {
constexpr uint64_t gdt[] = {
0, // null-selector is invalid, no matter what the entry is, so set to an invalid value
util::gdt::Entry(
/*.base = */0,
/*.limit = */0xffff'ffff,
/*.ring = */0,
/*.rw = */true,
/*.size = */util::... | 25.911111 | 91 | 0.530875 | maximsmol |
cd8417e6ca270361fe425645bdc61d06f6e91ab8 | 338,354 | cpp | C++ | source/bird.cpp | ToonTalk/desktop-toontalk | 781b9fa035304b93b015447f1c7773b07e912eb2 | [
"BSD-3-Clause"
] | 4 | 2015-10-30T15:50:32.000Z | 2019-11-26T23:26:50.000Z | source/bird.cpp | ToonTalk/desktop-toontalk | 781b9fa035304b93b015447f1c7773b07e912eb2 | [
"BSD-3-Clause"
] | null | null | null | source/bird.cpp | ToonTalk/desktop-toontalk | 781b9fa035304b93b015447f1c7773b07e912eb2 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 1992-2006. Ken Kahn, Animated Programs, All rights reserved.
#if !defined(__TT_DEFS_H)
#include "defs.h"
#endif
#if !defined(__TT_GLOBALS_H)
#include "globals.h"
#endif
#if !defined(__TT_STRINGS_H)
#include "strings.h"
#endif
#if !defined(__TT_BCKGRND_H)
#include "bckgrnd.h"
#endif
#if !d... | 40.472967 | 238 | 0.700858 | ToonTalk |
cd84d8f21f88c36ad4fd4088940a84ada0f6adc2 | 2,268 | cpp | C++ | libs/ledger/tests/consensus/proof_of_work_tests.cpp | n-hutton/ledger-1 | 909a81c415a73c38fb3d7f486dfcf93d7f87adaf | [
"Apache-2.0"
] | 3 | 2019-07-11T08:49:27.000Z | 2021-09-07T16:49:15.000Z | libs/ledger/tests/consensus/proof_of_work_tests.cpp | n-hutton/ledger-1 | 909a81c415a73c38fb3d7f486dfcf93d7f87adaf | [
"Apache-2.0"
] | null | null | null | libs/ledger/tests/consensus/proof_of_work_tests.cpp | n-hutton/ledger-1 | 909a81c415a73c38fb3d7f486dfcf93d7f87adaf | [
"Apache-2.0"
] | 2 | 2019-07-13T12:45:22.000Z | 2021-03-12T08:48:57.000Z | //------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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
//
// ... | 28 | 80 | 0.646825 | n-hutton |
cd86122a3bebcfe6d329dbc01b93acc43cd150a0 | 32 | cpp | C++ | sg/math/RCColor3f.cpp | gizmomogwai/cpplib | a09bf4d3f2a312774d3d85a5c65468099a1797b0 | [
"MIT"
] | null | null | null | sg/math/RCColor3f.cpp | gizmomogwai/cpplib | a09bf4d3f2a312774d3d85a5c65468099a1797b0 | [
"MIT"
] | null | null | null | sg/math/RCColor3f.cpp | gizmomogwai/cpplib | a09bf4d3f2a312774d3d85a5c65468099a1797b0 | [
"MIT"
] | null | null | null | #include <sg/math/RCColor3f.h>
| 16 | 31 | 0.71875 | gizmomogwai |
cd88b41825d3b15125116f9ed0d85640c5c76e86 | 19,381 | cpp | C++ | src/PERI/pair_peri_lps.cpp | luwei0917/GlpG_Nature_Communication | a7f4f8b526e633b158dc606050e8993d70734943 | [
"MIT"
] | 1 | 2018-11-28T15:04:55.000Z | 2018-11-28T15:04:55.000Z | src/PERI/pair_peri_lps.cpp | luwei0917/GlpG_Nature_Communication | a7f4f8b526e633b158dc606050e8993d70734943 | [
"MIT"
] | null | null | null | src/PERI/pair_peri_lps.cpp | luwei0917/GlpG_Nature_Communication | a7f4f8b526e633b158dc606050e8993d70734943 | [
"MIT"
] | null | null | null | /* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04... | 29.634557 | 77 | 0.523296 | luwei0917 |
cd891243366127f14167731d254d77a61f18c7cf | 197 | cpp | C++ | sample/test_server/main.cpp | iwtbabc/irpc | 647b126450b986e73b350ed451c90d48ec3a420c | [
"MIT"
] | 1 | 2018-08-28T12:01:01.000Z | 2018-08-28T12:01:01.000Z | sample/test_server/main.cpp | majianfei/irpc | 647b126450b986e73b350ed451c90d48ec3a420c | [
"MIT"
] | null | null | null | sample/test_server/main.cpp | majianfei/irpc | 647b126450b986e73b350ed451c90d48ec3a420c | [
"MIT"
] | 1 | 2018-07-28T04:53:12.000Z | 2018-07-28T04:53:12.000Z | #include "dispatcher.h"
#include "tcp_server.h"
using namespace inet;
int main(){
Dispatcher dispatcher;
TcpServer server(&dispatcher, 8888);
server.start();
dispatcher.loop();
return 0;
}
| 14.071429 | 37 | 0.720812 | iwtbabc |
cd8a3577c31e8f352c3faa1d8b52621b24731c71 | 5,292 | cpp | C++ | hi_modules/modulators/mods/MacroControlModulator.cpp | romsom/HISE | 73e0e299493ce9236e6fafa7938d3477fcc36a4a | [
"Intel"
] | 9 | 2020-04-16T01:17:27.000Z | 2022-02-25T14:13:10.000Z | hi_modules/modulators/mods/MacroControlModulator.cpp | romsom/HISE | 73e0e299493ce9236e6fafa7938d3477fcc36a4a | [
"Intel"
] | null | null | null | hi_modules/modulators/mods/MacroControlModulator.cpp | romsom/HISE | 73e0e299493ce9236e6fafa7938d3477fcc36a4a | [
"Intel"
] | 6 | 2020-05-11T22:23:15.000Z | 2022-02-24T16:52:44.000Z | /* ===========================================================================
*
* This file is part of HISE.
* Copyright 2016 Christoph Hart
*
* HISE 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 Foun... | 24.164384 | 117 | 0.691799 | romsom |
cd8a89ea84e1cb2da9b36beb2a06683579000597 | 849 | cpp | C++ | src/scenes/mainMenu.cpp | AndreJFBico/RadRts_BGFX | c8d37d95e68e2fc2b3db09a94f2817533e4aa700 | [
"MIT"
] | null | null | null | src/scenes/mainMenu.cpp | AndreJFBico/RadRts_BGFX | c8d37d95e68e2fc2b3db09a94f2817533e4aa700 | [
"MIT"
] | null | null | null | src/scenes/mainMenu.cpp | AndreJFBico/RadRts_BGFX | c8d37d95e68e2fc2b3db09a94f2817533e4aa700 | [
"MIT"
] | null | null | null | #include "mainMenu.hpp"
#include "materials/wireframe.hpp"
#include "gameObjects/meshObject.hpp"
#include "gameObjects/player.hpp"
#include "core/sceneManager.hpp"
#include "gameScene.hpp"
namespace mainMenu {
struct MainMenu {
};
void init(scene::Scene& scene, MainMenu& mainMenu) {
//TODO there should be a but... | 23.583333 | 89 | 0.742049 | AndreJFBico |
cd8b7dbf9f7a57948a45f3e762ed01995210dade | 6,231 | cc | C++ | pigasus/software/src/network_inspectors/perf_monitor/cpu_tracker.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | pigasus/software/src/network_inspectors/perf_monitor/cpu_tracker.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | pigasus/software/src/network_inspectors/perf_monitor/cpu_tracker.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | //--------------------------------------------------------------------------
// Copyright (C) 2015-2018 Cisco and/or its affiliates. All rights reserved.
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License Version 2 as published
// by the Fr... | 28.981395 | 88 | 0.676617 | zhipengzhaocmu |
cd8d58c37d3aa9da8b318c661640a42fcf00291c | 1,967 | cpp | C++ | core/graphics/shape/Area.cpp | yangxlei/F2Native | 69a27994ccb0be65ce6f905ed258f5dc286cbb70 | [
"MIT"
] | 178 | 2020-11-16T06:35:02.000Z | 2022-03-28T07:41:47.000Z | core/graphics/shape/Area.cpp | yangxlei/F2Native | 69a27994ccb0be65ce6f905ed258f5dc286cbb70 | [
"MIT"
] | 9 | 2020-11-21T03:56:02.000Z | 2022-03-07T11:12:03.000Z | core/graphics/shape/Area.cpp | yangxlei/F2Native | 69a27994ccb0be65ce6f905ed258f5dc286cbb70 | [
"MIT"
] | 16 | 2020-11-20T15:54:19.000Z | 2022-03-21T10:12:30.000Z | #include "graphics/shape/Area.h"
#include "graphics/util/Path.h"
xg::shape::Area::Area(const vector<util::Point> &topPoints, const vector<util::Point> &bottomPoints, const bool smooth) {
type_ = "area";
fillOpacity_ = 0.1;
smooth_ = smooth;
topPoints_ = topPoints;
bottomPoints_ = bottomPoints;
... | 40.979167 | 122 | 0.628368 | yangxlei |
cd8e4afcbdff2edbe9516e592533ef6095aab261 | 741 | cc | C++ | 349.IntersectionofTwoArrays/349.InterTwoArr.cc | stdbilly/leetcode | 752704ff99c21863bde4c929b7cc4fa18128cf39 | [
"MIT"
] | null | null | null | 349.IntersectionofTwoArrays/349.InterTwoArr.cc | stdbilly/leetcode | 752704ff99c21863bde4c929b7cc4fa18128cf39 | [
"MIT"
] | null | null | null | 349.IntersectionofTwoArrays/349.InterTwoArr.cc | stdbilly/leetcode | 752704ff99c21863bde4c929b7cc4fa18128cf39 | [
"MIT"
] | null | null | null | #include <iostream>
#include <unordered_set>
#include <vector>
using std::cout;
using std::endl;
using std::unordered_set;
using std::vector;
class Solution {
public:
vector<int> intersection(vector<int>& nums1, vector<int>& nums2) {
unordered_set<int> record(nums1.begin(), nums1.end());
vector<... | 22.454545 | 70 | 0.550607 | stdbilly |
cd8ea4bfce741ab5ad6ebfad1066efe2157d4b29 | 469 | hpp | C++ | pythran/pythonic/include/numpy/tan.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/numpy/tan.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/numpy/tan.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_INCLUDE_NUMPY_TAN_HPP
#define PYTHONIC_INCLUDE_NUMPY_TAN_HPP
#include "pythonic/utils/proxy.hpp"
#include "pythonic/types/ndarray.hpp"
#include "pythonic/types/numexpr_to_ndarray.hpp"
#include "pythonic/utils/numpy_traits.hpp"
#include <nt2/include/functions/tan.hpp>
namespace pythonic
{
namespace... | 21.318182 | 53 | 0.808102 | artas360 |
cd8f6e2a61c752896ed720aaa8c03aced8ad9ec7 | 16,924 | cc | C++ | test/runSimxAnisoAdapt.cc | cwsmith/core | 840fbf6ec49a63aeaa3945f11ddb224f6055ac9f | [
"BSD-3-Clause"
] | null | null | null | test/runSimxAnisoAdapt.cc | cwsmith/core | 840fbf6ec49a63aeaa3945f11ddb224f6055ac9f | [
"BSD-3-Clause"
] | null | null | null | test/runSimxAnisoAdapt.cc | cwsmith/core | 840fbf6ec49a63aeaa3945f11ddb224f6055ac9f | [
"BSD-3-Clause"
] | null | null | null | #include <gmi_mesh.h>
#include <gmi_null.h>
#include <apfMDS.h>
#include <apfMesh2.h>
#include <apfConvert.h>
#include <apfNumbering.h>
#include <apfShape.h>
#include <apf.h>
#include <PCU.h>
#include <pcu_util.h>
#include "MeshSim.h"
#include "MeshSimAdapt.h"
#include "SimDiscrete.h"
#include "SimMessages.h"
#include... | 27.744262 | 102 | 0.666273 | cwsmith |
cd906763ce578f99d1053950a0e7820d5fe1c432 | 2,717 | cpp | C++ | src/layer/fullyconnected/fullyconnectedlayer.cpp | ckf42/magmadnn | 7c8a93c0fb79085cda043a016b606d32330910a0 | [
"MIT"
] | null | null | null | src/layer/fullyconnected/fullyconnectedlayer.cpp | ckf42/magmadnn | 7c8a93c0fb79085cda043a016b606d32330910a0 | [
"MIT"
] | null | null | null | src/layer/fullyconnected/fullyconnectedlayer.cpp | ckf42/magmadnn | 7c8a93c0fb79085cda043a016b606d32330910a0 | [
"MIT"
] | null | null | null | /**
* @file fullyconnectedlayer.cpp
* @author Daniel Nichols
* @version 1.0
* @date 2019-02-26
*
* @copyright Copyright (c) 2019
*/
#include "layer/fullyconnected/fullyconnectedlayer.h"
namespace magmadnn {
namespace layer {
template <typename T>
FullyConnectedLayer<T>::FullyConnectedLayer(op::Operation<T>* in... | 34.833333 | 110 | 0.673537 | ckf42 |
cd914db2ff3374cdabf10971d522c98f164b3d90 | 1,302 | cpp | C++ | example/cmd_pwd.cpp | moslevin/mark3-terminal | 3ff9e46e6d731e44b71ea3d329008a673da9efff | [
"BSD-3-Clause"
] | null | null | null | example/cmd_pwd.cpp | moslevin/mark3-terminal | 3ff9e46e6d731e44b71ea3d329008a673da9efff | [
"BSD-3-Clause"
] | null | null | null | example/cmd_pwd.cpp | moslevin/mark3-terminal | 3ff9e46e6d731e44b71ea3d329008a673da9efff | [
"BSD-3-Clause"
] | null | null | null | /*===========================================================================
_____ _____ _____ _____
___| _|__ __|_ |__ __|__ |__ __| __ |__ ______
| \ / | || \ || | || |/ / ||___ |
| \/ | || \ || \ || \ ||___ |
|_... | 31 | 79 | 0.364055 | moslevin |
cd92e551a6643b555479c00a1d40cec3e8f59322 | 2,283 | hpp | C++ | include/StringAlgo/Convert.hpp | PoetaKodu/string-algo | 666496207db5cab4622d9c073eaecd6560d72d3c | [
"MIT"
] | null | null | null | include/StringAlgo/Convert.hpp | PoetaKodu/string-algo | 666496207db5cab4622d9c073eaecd6560d72d3c | [
"MIT"
] | null | null | null | include/StringAlgo/Convert.hpp | PoetaKodu/string-algo | 666496207db5cab4622d9c073eaecd6560d72d3c | [
"MIT"
] | 1 | 2021-08-05T11:15:15.000Z | 2021-08-05T11:15:15.000Z | #pragma once
#include STRINGALGO_PCH
namespace string_algo
{
////////////////////////////////////////
template <typename T,
typename = std::enable_if_t<std::is_integral_v<T>> >
inline bool toIntNoSkipWs(T& int_, char const* begin_, char const* end_)
{
if (begin_ == end_)
return false;
[[maybe_unused]]
bool ... | 20.754545 | 76 | 0.590889 | PoetaKodu |
cd9308385f0fe2cc1c31feac903c6926d4cede3f | 22,887 | cpp | C++ | Hect/Source/Graphics/Renderer.cpp | colinhect/hect-old | 5ee7429294f6ab8f40c7ff0eccba52fafa3086b3 | [
"MIT"
] | 1 | 2016-01-25T20:32:27.000Z | 2016-01-25T20:32:27.000Z | Hect/Source/Graphics/Renderer.cpp | colinhect/hect-old | 5ee7429294f6ab8f40c7ff0eccba52fafa3086b3 | [
"MIT"
] | null | null | null | Hect/Source/Graphics/Renderer.cpp | colinhect/hect-old | 5ee7429294f6ab8f40c7ff0eccba52fafa3086b3 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// This source file is part of Hect.
//
// Copyright (c) 2014 Colin Hill
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal ... | 25.373614 | 130 | 0.622362 | colinhect |
cd94708744e2511956b2348b6a276fc3ec2d7274 | 1,914 | cpp | C++ | modules/ext/Logger/Logger.cpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | 4 | 2017-07-06T22:18:41.000Z | 2021-05-24T21:28:37.000Z | modules/ext/Logger/Logger.cpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | null | null | null | modules/ext/Logger/Logger.cpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | 1 | 2020-08-02T13:00:38.000Z | 2020-08-02T13:00:38.000Z | /*
* Print message on terminal or user given target.
*/
#include <luapp.hpp>
#include <toy/Oops.hpp>
#include <toy/Log.hpp>
#include <toy/Utf.hpp>
#include <toy/io/Writer.hpp>
namespace toy{
namespace luamodule{
namespace logger{
static int IsUTF8(lua::NativeState L)
{
lua::Str str;
lua::CheckVarFromLua(L,&str... | 17.089286 | 71 | 0.657262 | ToyAuthor |
cd94daf4bc60047b4c6aa18f991f797812b9e7a2 | 12,928 | hh | C++ | LiteCore/Support/Async.hh | mhocouchbase/couchbase-lite-core | 8a527a066b703c8865b4e61cbd9e3d41d81ba5ef | [
"Apache-2.0"
] | null | null | null | LiteCore/Support/Async.hh | mhocouchbase/couchbase-lite-core | 8a527a066b703c8865b4e61cbd9e3d41d81ba5ef | [
"Apache-2.0"
] | null | null | null | LiteCore/Support/Async.hh | mhocouchbase/couchbase-lite-core | 8a527a066b703c8865b4e61cbd9e3d41d81ba5ef | [
"Apache-2.0"
] | null | null | null | //
// Async.hh
//
// Copyright 2018-Present Couchbase, Inc.
//
// Use of this software is governed by the Business Source License included
// in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
// in that file, in accordance with the Business Source License, use of this
// software will be governed... | 32 | 99 | 0.594678 | mhocouchbase |
cd994e696e6e0a7da03aea2ed7243d88bb0b2f34 | 1,602 | cpp | C++ | test/any/array.cpp | mkn/mkn.gpu | 22946338e6a4790cc056708aa141c1a31538ba1c | [
"BSD-3-Clause"
] | null | null | null | test/any/array.cpp | mkn/mkn.gpu | 22946338e6a4790cc056708aa141c1a31538ba1c | [
"BSD-3-Clause"
] | 1 | 2020-09-13T10:39:29.000Z | 2021-05-07T08:12:11.000Z | test/any/array.cpp | mkn/mkn.gpu | 22946338e6a4790cc056708aa141c1a31538ba1c | [
"BSD-3-Clause"
] | null | null | null |
#include "kul/gpu.hpp"
static constexpr uint32_t WIDTH = 1024, HEIGHT = 1024;
static constexpr uint32_t NUM = WIDTH * HEIGHT;
static constexpr uint32_t THREADS_PER_BLOCK_X = 16, THREADS_PER_BLOCK_Y = 16;
template <typename T>
__global__ void vectoradd(T* a, const T* b, const T* c) {
auto i = kul::gpu::idx();
a[i... | 27.62069 | 96 | 0.559301 | mkn |
cd99d3faba326cc49f0bfa2036b45b0895cc46a2 | 16,994 | cpp | C++ | comp_ltkplus/src/main/jni/src/util/lib/LTKErrors.cpp | Simon-Initiative/RT_RoboTutor_2017_06_16 | f307d594de7102dfcd819042420d37ca6965625f | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 13 | 2019-05-17T06:00:11.000Z | 2021-06-25T16:11:28.000Z | comp_ltkplus/src/main/jni/src/util/lib/LTKErrors.cpp | Simon-Initiative/RT_RoboTutor_2017_06_16 | f307d594de7102dfcd819042420d37ca6965625f | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 48 | 2018-11-28T02:04:04.000Z | 2020-06-01T20:10:47.000Z | comp_ltkplus/src/main/jni/src/util/lib/LTKErrors.cpp | Simon-Initiative/RT_RoboTutor_2017_06_16 | f307d594de7102dfcd819042420d37ca6965625f | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 9 | 2019-09-14T03:20:19.000Z | 2020-03-30T01:43:24.000Z | /*****************************************************************************************
* Copyright (c) 2007 Hewlett-Packard Development Company, L.P.
* 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
... | 80.92381 | 189 | 0.71943 | Simon-Initiative |
cd9c70a8f76ca7ebaaf764edee1bab5151d7ae1c | 20,649 | cpp | C++ | src/bricklet_ambient_light.cpp | davidplotzki/sensorlogger | 8ee255fba5f8560650e2b79fc967aeec8d8ec7b7 | [
"MIT"
] | null | null | null | src/bricklet_ambient_light.cpp | davidplotzki/sensorlogger | 8ee255fba5f8560650e2b79fc967aeec8d8ec7b7 | [
"MIT"
] | null | null | null | src/bricklet_ambient_light.cpp | davidplotzki/sensorlogger | 8ee255fba5f8560650e2b79fc967aeec8d8ec7b7 | [
"MIT"
] | null | null | null | /* ***********************************************************
* This file was automatically generated on 2021-05-06. *
* *
* C/C++ Bindings Version 2.1.32 *
* *
* If... | 29.882779 | 224 | 0.791661 | davidplotzki |
cd9cbc111bdccff963aa565b984d050e634d2e72 | 41 | hpp | C++ | src/boost_metaparse_v1_one_of.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_metaparse_v1_one_of.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_metaparse_v1_one_of.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/metaparse/v1/one_of.hpp>
| 20.5 | 40 | 0.780488 | miathedev |
cd9e8610913475188b761e021e535988af73f889 | 9,406 | cpp | C++ | UrhoTest2.cpp | LeithKetchell/Humble | f71016d8a13c931da1aae0af49018c014c4f8c8e | [
"MIT"
] | null | null | null | UrhoTest2.cpp | LeithKetchell/Humble | f71016d8a13c931da1aae0af49018c014c4f8c8e | [
"MIT"
] | null | null | null | UrhoTest2.cpp | LeithKetchell/Humble | f71016d8a13c931da1aae0af49018c014c4f8c8e | [
"MIT"
] | null | null | null |
#define URHO3D_ANGELSCRIPT 1 // we want angelscript support
#define URHO3D_LOGGING 1 // we want debug log message support
#include <Urho3D/Urho3DAll.h>
using namespace Urho3D;
/// Let's define (and implement) our custom application class
/// Note it derives from Urho3D::Application class - there's some vir... | 45.439614 | 117 | 0.628535 | LeithKetchell |
cd9fe4880ed50f3bbe02a66218e41d53daff8b16 | 2,240 | hpp | C++ | common/util/rviz_plugins/autoware_vehicle_rviz_plugin/src/tools/steering_angle.hpp | loop-perception/AutowareArchitectureProposal.iv | 5d8dff0db51634f0c42d2a3e87ca423fbee84348 | [
"Apache-2.0"
] | 1 | 2022-03-09T05:53:04.000Z | 2022-03-09T05:53:04.000Z | common/util/rviz_plugins/autoware_vehicle_rviz_plugin/src/tools/steering_angle.hpp | loop-perception/AutowareArchitectureProposal.iv | 5d8dff0db51634f0c42d2a3e87ca423fbee84348 | [
"Apache-2.0"
] | 4 | 2022-01-07T21:21:04.000Z | 2022-03-14T21:25:37.000Z | common/util/rviz_plugins/autoware_vehicle_rviz_plugin/src/tools/steering_angle.hpp | loop-perception/AutowareArchitectureProposal.iv | 5d8dff0db51634f0c42d2a3e87ca423fbee84348 | [
"Apache-2.0"
] | 2 | 2021-03-09T00:20:39.000Z | 2021-04-16T10:23:36.000Z | // Copyright 2020 Tier IV, Inc.
//
// 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 i... | 30.684932 | 99 | 0.789286 | loop-perception |
cda2e263fa9b65e7637b4ab7e7d4f559eeac87a0 | 552 | cpp | C++ | ugly-number-ii/solution-1.cpp | tsenmu/leetcode | 6f6d11dec4e5ee0fbc0c59fd6fa97b2c556e05ee | [
"Apache-2.0"
] | null | null | null | ugly-number-ii/solution-1.cpp | tsenmu/leetcode | 6f6d11dec4e5ee0fbc0c59fd6fa97b2c556e05ee | [
"Apache-2.0"
] | null | null | null | ugly-number-ii/solution-1.cpp | tsenmu/leetcode | 6f6d11dec4e5ee0fbc0c59fd6fa97b2c556e05ee | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int nthUglyNumber(int n) {
int indices[] = {0, 0, 0};
int primes[] = {2, 3, 5};
int uglyNumbers[n];
uglyNumbers[0] = 1;
for (int i = 1; i < n; ++i) {
int minVal = INT_MAX;
for (int j = 0; j < 3; ++j) {
minVal = min(minVal, uglyNumbers[indices[j]] * pri... | 24 | 67 | 0.472826 | tsenmu |
cda3f98791d9914d53f1cc2abf8913ebc4fea0e7 | 6,885 | cc | C++ | src/backend/tigger/codegen.cc | zhongxinghong/sysyc | b3cde82c985dc40c2e564e82e4c41db76a992eb8 | [
"MIT"
] | 2 | 2021-11-16T09:46:20.000Z | 2022-03-24T11:49:34.000Z | src/backend/tigger/codegen.cc | zhongxinghong/sysyc | b3cde82c985dc40c2e564e82e4c41db76a992eb8 | [
"MIT"
] | null | null | null | src/backend/tigger/codegen.cc | zhongxinghong/sysyc | b3cde82c985dc40c2e564e82e4c41db76a992eb8 | [
"MIT"
] | 2 | 2022-02-23T06:34:52.000Z | 2022-03-13T04:05:40.000Z | //------------------------------------------------------------------------------
// A SysY Compiler for PKU Compiling Principles Practice Course (2021 Spring)
//------------------------------------------------------------------------------
// Project: sysyc
// File: codegen.cc
// Created Date: 2021-05-25
// Author... | 21.119632 | 84 | 0.479884 | zhongxinghong |
cda52cc16a5719338e09fb4909610c175d7e0821 | 49,032 | cpp | C++ | Models/Chapter5_MBT/GearShiftingTestComponent/GSC_Test_Animation/GearControl.cpp | PacktPublishing/Agile-Model-Based-Systems-Engineering-Cookbook | 459c90a7b5af0aa9c16f517fd6caafc39d83f545 | [
"MIT"
] | 9 | 2021-04-08T02:13:26.000Z | 2021-12-17T02:53:39.000Z | Models/Chapter5_MBT/GearShiftingTestComponent/GSC_Test_Animation/GearControl.cpp | PacktPublishing/Agile-Model-Based-Systems-Engineering-Cookbook | 459c90a7b5af0aa9c16f517fd6caafc39d83f545 | [
"MIT"
] | null | null | null | Models/Chapter5_MBT/GearShiftingTestComponent/GSC_Test_Animation/GearControl.cpp | PacktPublishing/Agile-Model-Based-Systems-Engineering-Cookbook | 459c90a7b5af0aa9c16f517fd6caafc39d83f545 | [
"MIT"
] | 3 | 2021-04-29T15:15:17.000Z | 2022-01-28T09:44:55.000Z | /********************************************************************
Rhapsody : 9.0
Login : Bruce
Component : GearShiftingTestComponent
Configuration : GSC_Test_Animation
Model Element : GearControl
//! Generated Date : Sat, 28, Nov 2020
File Path : GearShiftingTestComponent/GSC_Test_Animation/GearControl.... | 38.03879 | 192 | 0.635238 | PacktPublishing |
cda6263fcc74bdd940839ef0ce12fb718c862bfb | 1,887 | cpp | C++ | gui/frequencytickbuilder.cpp | keur/prettyeq | c6d300b9070da3a35c4c534120361feb920c98ef | [
"BSD-3-Clause"
] | 167 | 2020-08-31T00:05:03.000Z | 2022-01-12T19:14:53.000Z | gui/frequencytickbuilder.cpp | keur/prettyeq | c6d300b9070da3a35c4c534120361feb920c98ef | [
"BSD-3-Clause"
] | 2 | 2020-09-29T00:05:08.000Z | 2021-04-22T12:52:49.000Z | gui/frequencytickbuilder.cpp | keur/prettyeq | c6d300b9070da3a35c4c534120361feb920c98ef | [
"BSD-3-Clause"
] | 2 | 2020-09-27T14:25:58.000Z | 2021-02-18T19:41:23.000Z | #include "frequencytick.h"
#include "frequencytickbuilder.h"
#include "macro.h"
#include <QGraphicsScene>
FrequencyTickBuilder::FrequencyTickBuilder(QGraphicsScene *scene, int width, int xmin, int xmax, int ymin, int ymax)
{
/* y-axis frequency markers */
int tickWidth = width / (NUM_TICKS - 1);
tick[0] =... | 36.288462 | 116 | 0.601484 | keur |
cda64f77c9a8ab163cbcb349fbc482c8dbc56635 | 4,777 | cc | C++ | src/devices/sysmem/drivers/sysmem/test/contiguous_pooled_memory_allocator_test.cc | EnderNightLord-ChromeBook/fuchsia-pine64-pinephone | 05e2c059b57b6217089090a0315971d1735ecf57 | [
"BSD-3-Clause"
] | 14 | 2020-10-25T05:48:36.000Z | 2021-09-20T02:46:20.000Z | src/devices/sysmem/drivers/sysmem/test/contiguous_pooled_memory_allocator_test.cc | JokeZhang/fuchsia | d6e9dea8dca7a1c8fa89d03e131367e284b30d23 | [
"BSD-3-Clause"
] | null | null | null | src/devices/sysmem/drivers/sysmem/test/contiguous_pooled_memory_allocator_test.cc | JokeZhang/fuchsia | d6e9dea8dca7a1c8fa89d03e131367e284b30d23 | [
"BSD-3-Clause"
] | 2 | 2020-10-25T01:13:49.000Z | 2020-10-26T02:32:13.000Z | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "contiguous_pooled_memory_allocator.h"
#include <lib/fake-bti/bti.h>
#include <lib/inspect/cpp/reader.h>
#include <lib/zx/vmar.h>
#include <vect... | 31.019481 | 99 | 0.709232 | EnderNightLord-ChromeBook |
cda65c29255d279c84208b589e0e9b7176944a90 | 125,285 | hpp | C++ | include/third_party/fmt/format.hpp | BenBE/bun | 027275d5e2b392a57610842a084a3809d1a23804 | [
"BSD-3-Clause"
] | null | null | null | include/third_party/fmt/format.hpp | BenBE/bun | 027275d5e2b392a57610842a084a3809d1a23804 | [
"BSD-3-Clause"
] | null | null | null | include/third_party/fmt/format.hpp | BenBE/bun | 027275d5e2b392a57610842a084a3809d1a23804 | [
"BSD-3-Clause"
] | null | null | null | /*
Formatting library for C++
Copyright (c) 2012 - 2016, Victor Zverovich
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 noti... | 32.685886 | 132 | 0.619755 | BenBE |
cda700bc2549a61fb7f0943032d5505c70aef575 | 509 | cpp | C++ | src/cpsl.cpp | CarsonFox/CPSL | 07a949166d9399f273ddf15e239ade6e5ea6e4a5 | [
"MIT"
] | null | null | null | src/cpsl.cpp | CarsonFox/CPSL | 07a949166d9399f273ddf15e239ade6e5ea6e4a5 | [
"MIT"
] | null | null | null | src/cpsl.cpp | CarsonFox/CPSL | 07a949166d9399f273ddf15e239ade6e5ea6e4a5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include "src/AST/Program.hpp"
extern int yyparse();
extern FILE *yyin;
int main(int argc, char **argv) {
if (argc > 1) {
const auto infile = std::fopen(argv[1], "r");
if (!infile) {
std::perror("Error opening file");
return EXIT_FAIL... | 19.576923 | 53 | 0.563851 | CarsonFox |
cda995ab48c2b6b1c2e07954f505d836ac578669 | 371 | hpp | C++ | wave_optimization/include/wave/optimization/ceres/loss_function/bisquare_loss.hpp | Jebediah/libwave | c04998c964f0dc7d414783c6e8cf989a2716ad54 | [
"MIT"
] | 2 | 2019-06-13T13:47:18.000Z | 2019-06-13T14:54:35.000Z | wave_optimization/include/wave/optimization/ceres/loss_function/bisquare_loss.hpp | Jebediah/libwave | c04998c964f0dc7d414783c6e8cf989a2716ad54 | [
"MIT"
] | null | null | null | wave_optimization/include/wave/optimization/ceres/loss_function/bisquare_loss.hpp | Jebediah/libwave | c04998c964f0dc7d414783c6e8cf989a2716ad54 | [
"MIT"
] | 1 | 2020-02-13T02:27:29.000Z | 2020-02-13T02:27:29.000Z | #ifndef WAVE_BISQUARE_LOSS_HPP
#define WAVE_BISQUARE_LOSS_HPP
#include <ceres/loss_function.h>
namespace wave {
class BisquareLoss : public ceres::LossFunction {
public:
explicit BisquareLoss(double k) : k2_(k*k) {}
virtual void Evaluate(double ip, double* op) const;
private:
const double k2_;
};
} ... | 18.55 | 55 | 0.738544 | Jebediah |
cdaa6fa4da3fcbe8b1ccc1e9ba9c8c9c116ff7ee | 5,075 | cpp | C++ | drivers/Atmel/AT24MAC/example/src/main.cpp | microHAL/microhal-drivers | 09925a9696e4794f9ca0b2e9b5e61908ac99b84b | [
"BSD-3-Clause"
] | null | null | null | drivers/Atmel/AT24MAC/example/src/main.cpp | microHAL/microhal-drivers | 09925a9696e4794f9ca0b2e9b5e61908ac99b84b | [
"BSD-3-Clause"
] | null | null | null | drivers/Atmel/AT24MAC/example/src/main.cpp | microHAL/microhal-drivers | 09925a9696e4794f9ca0b2e9b5e61908ac99b84b | [
"BSD-3-Clause"
] | null | null | null | /**
* @license BSD 3-Clause
* @copyright Pawel Okas
* @version $Id$
* @brief
*
* @authors Pawel Okas
* created on: 30-03-2019
*
* @copyright Copyright (c) 2019, Pawel Okas
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted prov... | 36.775362 | 149 | 0.644532 | microHAL |
cdad6c60fe1505911d84bfd77a30b204767b0d3b | 6,522 | cpp | C++ | examples/labs/movetytouch/demoview.cpp | eeryinkblot/psmoveapi | 9df875d5e8f28de9ecce195d58d4910b8e5fbee8 | [
"BSD-2-Clause"
] | 306 | 2015-01-06T07:28:34.000Z | 2022-02-16T03:45:17.000Z | examples/labs/movetytouch/demoview.cpp | eeryinkblot/psmoveapi | 9df875d5e8f28de9ecce195d58d4910b8e5fbee8 | [
"BSD-2-Clause"
] | 239 | 2015-01-04T10:43:59.000Z | 2022-03-31T23:21:12.000Z | examples/labs/movetytouch/demoview.cpp | eeryinkblot/psmoveapi | 9df875d5e8f28de9ecce195d58d4910b8e5fbee8 | [
"BSD-2-Clause"
] | 131 | 2015-01-23T13:16:40.000Z | 2022-03-24T21:19:23.000Z |
/**
* PS Move API - An interface for the PS Move Motion Controller
* Copyright (c) 2012 Thomas Perl <m@thp.io>
* 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 o... | 24.988506 | 85 | 0.619749 | eeryinkblot |
cdae6afc1eaff72126b4a96cc93e3a33739688d3 | 15,521 | cc | C++ | .generated/gen/parser/emit_lowering_spec.cc | blutmond/danach | 0cd3b27f03d2d2cf563f90a14628b8bf5bb36283 | [
"Apache-2.0"
] | null | null | null | .generated/gen/parser/emit_lowering_spec.cc | blutmond/danach | 0cd3b27f03d2d2cf563f90a14628b8bf5bb36283 | [
"Apache-2.0"
] | null | null | null | .generated/gen/parser/emit_lowering_spec.cc | blutmond/danach | 0cd3b27f03d2d2cf563f90a14628b8bf5bb36283 | [
"Apache-2.0"
] | null | null | null | namespace lowering_spec {
void EmitType(std::ostream& stream, TypeRef* t);
void EmitTypeSignature(std::ostream& stream, TypeRef* t);
void EmitExpr(std::ostream& stream, ContextFinderContext* ctx, Expr* expr);
void EmitStmt(std::ostream& stream, ContextFinderContext* ctx, Stmt* stmt);
void EmitFuncDeclHeader(std::ostre... | 23.062407 | 88 | 0.642613 | blutmond |
cdb054135f212aecce4815730df925a488dace29 | 8,185 | cc | C++ | test/src/test_swdevice.cc | tim-schoenmackers/hippo | ce381551898b4eba7ca73fc64bf138b6ba93a66c | [
"MIT"
] | null | null | null | test/src/test_swdevice.cc | tim-schoenmackers/hippo | ce381551898b4eba7ca73fc64bf138b6ba93a66c | [
"MIT"
] | null | null | null | test/src/test_swdevice.cc | tim-schoenmackers/hippo | ce381551898b4eba7ca73fc64bf138b6ba93a66c | [
"MIT"
] | null | null | null |
// Copyright 2019 HP Development Company, L.P.
// SPDX-License-Identifier: MIT
#include <windows.h> // for Sleep()
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <fstream>
#include <vector>
#include <thread> // NOLINT
#include <mutex> // NOLINT
#include "../include/adder.h"
#include "incl... | 27.013201 | 72 | 0.589982 | tim-schoenmackers |
cdb1b79894bf89c40fe8cf13629450393d27bfd7 | 204 | cpp | C++ | src/Circuit.cpp | bu-cms/dtcq | aef2da62f91ecf1694c1669d301f9cf0bf096c9e | [
"MIT"
] | null | null | null | src/Circuit.cpp | bu-cms/dtcq | aef2da62f91ecf1694c1669d301f9cf0bf096c9e | [
"MIT"
] | 4 | 2021-04-26T07:28:03.000Z | 2021-06-16T15:47:37.000Z | src/Circuit.cpp | bu-cms/dtcq | aef2da62f91ecf1694c1669d301f9cf0bf096c9e | [
"MIT"
] | null | null | null | #include<interface/Circuit.h>
void Circuit::tick(){
for(auto component : components) {
component->tick();
}
for(auto component : components) {
component->post_tick();
}
}; | 20.4 | 38 | 0.598039 | bu-cms |
cdb33551a0a9209c26f5c946bf5620fa4ec3fb74 | 3,405 | cpp | C++ | pointmatcher/DataPointsFilters/ObservationDirection.cpp | skn123/libpointmatcher | 3464af6f218578e7b3053c89fa6661399952b0d1 | [
"BSD-3-Clause"
] | null | null | null | pointmatcher/DataPointsFilters/ObservationDirection.cpp | skn123/libpointmatcher | 3464af6f218578e7b3053c89fa6661399952b0d1 | [
"BSD-3-Clause"
] | null | null | null | pointmatcher/DataPointsFilters/ObservationDirection.cpp | skn123/libpointmatcher | 3464af6f218578e7b3053c89fa6661399952b0d1 | [
"BSD-3-Clause"
] | null | null | null | // kate: replace-tabs off; indent-width 4; indent-mode normal
// vim: ts=4:sw=4:noexpandtab
/*
Copyright (c) 2010--2018,
François Pomerleau and Stephane Magnenat, ASL, ETHZ, Switzerland
You can contact the authors at <f dot pomerleau at gmail dot com> and
<stephane at magnenat dot net>
All rights reserved.
Redistrib... | 36.612903 | 137 | 0.771806 | skn123 |
cdb442671ac1c9dbd791e828bd41c97017751d3b | 2,381 | cc | C++ | Core/DianYing/Source/Core/Resource/Resource/Attachment/FDyAttachmentGeneralResource.cc | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | 4 | 2019-03-17T19:46:54.000Z | 2019-12-09T20:11:01.000Z | Core/DianYing/Source/Core/Resource/Resource/Attachment/FDyAttachmentGeneralResource.cc | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | null | null | null | Core/DianYing/Source/Core/Resource/Resource/Attachment/FDyAttachmentGeneralResource.cc | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | null | null | null | #include <precompiled.h>
///
/// MIT License
/// Copyright (c) 2018-2019 Jongmin Yun
///
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL... | 36.630769 | 98 | 0.764385 | liliilli |
cdb445252bfac03c3515a0608e6d76107fbcefeb | 3,435 | cc | C++ | paddle/fluid/operators/pscore/send_op.cc | 2742195759/Paddle | ce034db1834af85539b22ab68492df9972ff3e69 | [
"Apache-2.0"
] | 17,085 | 2016-11-18T06:40:52.000Z | 2022-03-31T22:52:32.000Z | paddle/fluid/operators/pscore/send_op.cc | chenyanlei1/Paddle | f249a5f05f0f5832279244d88c8cb4eaaad1fbd4 | [
"Apache-2.0"
] | 29,769 | 2016-11-18T06:35:22.000Z | 2022-03-31T16:46:15.000Z | paddle/fluid/operators/pscore/send_op.cc | chenyanlei1/Paddle | f249a5f05f0f5832279244d88c8cb4eaaad1fbd4 | [
"Apache-2.0"
] | 4,641 | 2016-11-18T07:43:33.000Z | 2022-03-31T15:15:02.000Z | /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
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... | 32.714286 | 81 | 0.696361 | 2742195759 |
cdb4f17d406f3f836bf741e76de5dd35389842cb | 9,594 | hh | C++ | thirdparty/graph-tools-master/include/graphalign/dagAligner/AffineAlignMatrix.hh | AlesMaver/ExpansionHunter | 274903d26a33cfbc546aac98c85bbfe51701fd3b | [
"BSL-1.0",
"Apache-2.0"
] | 122 | 2017-01-06T16:19:31.000Z | 2022-03-08T00:05:50.000Z | thirdparty/graph-tools-master/include/graphalign/dagAligner/AffineAlignMatrix.hh | AlesMaver/ExpansionHunter | 274903d26a33cfbc546aac98c85bbfe51701fd3b | [
"BSL-1.0",
"Apache-2.0"
] | 90 | 2017-01-04T00:23:34.000Z | 2022-02-27T12:55:52.000Z | thirdparty/graph-tools-master/include/graphalign/dagAligner/AffineAlignMatrix.hh | AlesMaver/ExpansionHunter | 274903d26a33cfbc546aac98c85bbfe51701fd3b | [
"BSL-1.0",
"Apache-2.0"
] | 35 | 2017-03-02T13:39:58.000Z | 2022-03-30T17:34:11.000Z | //
// GraphTools library
// Copyright 2017-2019 Illumina, Inc.
// All rights reserved.
//
// Author: Roman Petrovski <RPetrovski@illumina.com>
//
// 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... | 33.545455 | 120 | 0.512508 | AlesMaver |
cdb4f84f97c04f47a3d34b84d2b8fc11752c128a | 1,700 | cpp | C++ | intel_extension_for_pytorch/csrc/jit/cpu/kernels/ConcatBnRelu.cpp | Manny27nyc/intel-extension-for-pytorch | b40faedf6b00d520f6483d519d2e82bce0a6c0d1 | [
"Apache-2.0"
] | null | null | null | intel_extension_for_pytorch/csrc/jit/cpu/kernels/ConcatBnRelu.cpp | Manny27nyc/intel-extension-for-pytorch | b40faedf6b00d520f6483d519d2e82bce0a6c0d1 | [
"Apache-2.0"
] | null | null | null | intel_extension_for_pytorch/csrc/jit/cpu/kernels/ConcatBnRelu.cpp | Manny27nyc/intel-extension-for-pytorch | b40faedf6b00d520f6483d519d2e82bce0a6c0d1 | [
"Apache-2.0"
] | null | null | null | #include "ConcatBnRelu.h"
#include "csrc/utils/ipex_op_profile.h"
#if defined(CPU_CAPABILITY_AVX512)
#include "csrc/cpu/vec512/concat_bn_relu.h"
#endif
#include <torch/csrc/autograd/function.h>
namespace torch_ipex {
namespace cpu {
DEFINE_DISPATCH(concat_bn_relu_kernel_stub);
/**
* This kernel fuses Concat+BN+Re... | 23.611111 | 77 | 0.673529 | Manny27nyc |
cdb7f0ea55b3f2d936588d240c160439709e54f5 | 20,848 | cpp | C++ | src/vtk_viz.cpp | sphamil/enrico | 7a346c14d113c0068382fdd5ae82f6c7d253c9eb | [
"BSD-3-Clause"
] | null | null | null | src/vtk_viz.cpp | sphamil/enrico | 7a346c14d113c0068382fdd5ae82f6c7d253c9eb | [
"BSD-3-Clause"
] | null | null | null | src/vtk_viz.cpp | sphamil/enrico | 7a346c14d113c0068382fdd5ae82f6c7d253c9eb | [
"BSD-3-Clause"
] | null | null | null | #include <cmath>
#include "enrico/vtk_viz.h"
#include "xtensor/xadapt.hpp"
#include "xtensor/xbuilder.hpp"
#include "xtensor/xtensor.hpp"
#include "xtensor/xview.hpp"
#include "openmc/constants.h"
// some constant values
const int WEDGE_TYPE_ = 13;
const size_t WEDGE_SIZE_ = 6;
const int HEX_TYPE_ = 12;
const size_... | 34.345964 | 90 | 0.65565 | sphamil |
cdb8185ab9694201dada35fbb6b48f1a36665058 | 4,140 | hpp | C++ | Support/Modules/DGLib/DGItemProperty.hpp | graphisoft-python/DGLib | 66d8717eb4422b968444614ff1c0c6c1bf50d080 | [
"Apache-2.0"
] | 3 | 2019-07-15T10:54:54.000Z | 2020-01-25T08:24:51.000Z | Support/Modules/DGLib/DGItemProperty.hpp | graphisoft-python/GSRoot | 008fac2c6bf601ca96e7096705e25b10ba4d3e75 | [
"Apache-2.0"
] | null | null | null | Support/Modules/DGLib/DGItemProperty.hpp | graphisoft-python/GSRoot | 008fac2c6bf601ca96e7096705e25b10ba4d3e75 | [
"Apache-2.0"
] | null | null | null | // *********************************************************************************************************************
// File: DGItemProperty.hpp
//
// Description: ItemProperty classes
//
// Project: GRAPHISOFT Dialog Manager (DGLib)
//
// Namespace: DG
//
// Contact person: AZS, BM
// ***********************... | 23.793103 | 128 | 0.512802 | graphisoft-python |
cdba16fc29dead654f9f01ec866d91df54511610 | 1,083 | cpp | C++ | ATCoder/DP/Z - Frog 3.cpp | shamiul94/Problem-Solving-Online-Judges | 0387ccd02cc692c70429b4683311070dc9d69b28 | [
"MIT"
] | 2 | 2019-11-10T18:42:11.000Z | 2020-07-04T07:05:22.000Z | ATCoder/DP/Z - Frog 3.cpp | shamiul94/Problem-Solving-Online-Judges | 0387ccd02cc692c70429b4683311070dc9d69b28 | [
"MIT"
] | null | null | null | ATCoder/DP/Z - Frog 3.cpp | shamiul94/Problem-Solving-Online-Judges | 0387ccd02cc692c70429b4683311070dc9d69b28 | [
"MIT"
] | 1 | 2019-11-04T11:05:17.000Z | 2019-11-04T11:05:17.000Z | #include <bits/stdc++.h>
#define ll long long int
#define fi freopen("C:/Users/User/OneDrive/Documents/Programming/Problem-Solving-Online-Judges/in.txt", "r", stdin)
#define fo freopen("out.txt", "w", stdout)
using namespace std;
ll N, C;
ve... | 19.690909 | 152 | 0.460757 | shamiul94 |
cdbab8b3fdb14dba995821a6aec79ee0874c3b7e | 24,293 | cxx | C++ | Filters/General/vtkMergeCells.cxx | isi-research/VTK | 56a615b4e54233b65072d3eddd89dd6c0df78dd6 | [
"BSD-3-Clause"
] | null | null | null | Filters/General/vtkMergeCells.cxx | isi-research/VTK | 56a615b4e54233b65072d3eddd89dd6c0df78dd6 | [
"BSD-3-Clause"
] | null | null | null | Filters/General/vtkMergeCells.cxx | isi-research/VTK | 56a615b4e54233b65072d3eddd89dd6c0df78dd6 | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: Visualization Toolkit
Module: vtkMergeCells.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is... | 26.177802 | 110 | 0.646771 | isi-research |
cdbc03b806cfb680bab72f0cb749596ac1dd012f | 15,608 | hpp | C++ | boost/gil/extension/io/detail/read_and_convert_image.hpp | ballisticwhisper/boost | f72119ab640b564c4b983bd457457046b52af9ee | [
"BSL-1.0"
] | 2 | 2017-11-27T11:50:20.000Z | 2021-04-04T13:26:45.000Z | boost/gil/extension/io/detail/read_and_convert_image.hpp | ballisticwhisper/boost | f72119ab640b564c4b983bd457457046b52af9ee | [
"BSL-1.0"
] | 2 | 2019-01-13T23:45:51.000Z | 2019-02-03T08:13:26.000Z | boost/gil/extension/io/detail/read_and_convert_image.hpp | ballisticwhisper/boost | f72119ab640b564c4b983bd457457046b52af9ee | [
"BSL-1.0"
] | 2 | 2018-04-04T10:55:01.000Z | 2020-04-23T18:52:06.000Z | /*
Copyright 2007-2012 Christian Henning, Andreas Pokorny, Lubomir Bourdev
Use, modification and distribution are subject to the Boost Software License,
Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt).
*/
/********************************************... | 43.842697 | 107 | 0.447335 | ballisticwhisper |
cdbc1be088dbb2088d30f1c9ffe9e03583c42370 | 14,977 | cpp | C++ | modules/hamiltonian.cpp | rbondesan/loop_htbl_arn | 26f9c580ae6f36ca8f7ac86cdc8339923df56f9b | [
"MIT"
] | null | null | null | modules/hamiltonian.cpp | rbondesan/loop_htbl_arn | 26f9c580ae6f36ca8f7ac86cdc8339923df56f9b | [
"MIT"
] | null | null | null | modules/hamiltonian.cpp | rbondesan/loop_htbl_arn | 26f9c580ae6f36ca8f7ac86cdc8339923df56f9b | [
"MIT"
] | null | null | null | #include "hamiltonian.hpp"
//////////////////////////////////////////////////////////////
// //
// Methods of class Hamiltonian //
// //
////////////////////////////////////////... | 29.894212 | 94 | 0.584229 | rbondesan |
cdbd0389a312a32aa30722e3b202148aec3297a0 | 11,063 | cpp | C++ | src/cpp/lib/codec/mp3/mp3wind.cpp | jojanper/mp3dec | abaa34acbcc8f82cc04f47ab566a1f34b55e66c5 | [
"MIT"
] | 2 | 2021-09-03T19:36:03.000Z | 2021-12-08T01:31:31.000Z | src/cpp/lib/codec/mp3/mp3wind.cpp | jojanper/mp3dec | abaa34acbcc8f82cc04f47ab566a1f34b55e66c5 | [
"MIT"
] | 10 | 2020-03-25T16:55:28.000Z | 2022-03-06T13:12:55.000Z | src/cpp/lib/codec/mp3/mp3wind.cpp | jojanper/mp3dec | abaa34acbcc8f82cc04f47ab566a1f34b55e66c5 | [
"MIT"
] | null | null | null | /**************************************************************************
mp3wind.cpp - Seeking subroutines for MPEG audio player.
Author(s): Juha Ojanpera
Copyright (c) 1999-2000 Juha Ojanpera.
*************************************************************************/
/*************************************... | 29.659517 | 82 | 0.4826 | jojanper |
cdbda7c3051c47b74080bc146e26b52178ddcf69 | 2,570 | hpp | C++ | inference-engine/src/inference_engine/cpu_x86_sse42/blob_transform_sse42.hpp | undeadinu/dldt | fbc7a4a710c24def8ab199926a7da90a0394b87d | [
"Apache-2.0"
] | 1 | 2019-03-22T06:35:55.000Z | 2019-03-22T06:35:55.000Z | inference-engine/src/inference_engine/cpu_x86_sse42/blob_transform_sse42.hpp | undeadinu/dldt | fbc7a4a710c24def8ab199926a7da90a0394b87d | [
"Apache-2.0"
] | null | null | null | inference-engine/src/inference_engine/cpu_x86_sse42/blob_transform_sse42.hpp | undeadinu/dldt | fbc7a4a710c24def8ab199926a7da90a0394b87d | [
"Apache-2.0"
] | 1 | 2019-06-11T06:20:42.000Z | 2019-06-11T06:20:42.000Z | // Copyright (C) 2018 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <stdint.h>
#include <stdlib.h>
namespace InferenceEngine {
//------------------------------------------------------------------------
//
// Blob-copy primitives namually vectored for SSE 4.2 (w/o OpenMP thread... | 40.15625 | 74 | 0.328405 | undeadinu |
cdc1503427eed6246f4f81c6a6505dd350768155 | 3,186 | cpp | C++ | src/gui/message_box.cpp | Piepenguin1995/retro-rpg | 09b72d7a8a4d2a9e94b09957bcb88bcf08a67eeb | [
"MIT"
] | 5 | 2016-02-09T20:05:57.000Z | 2016-11-02T01:48:54.000Z | src/gui/message_box.cpp | dbMansfield/retro-rpg | 09b72d7a8a4d2a9e94b09957bcb88bcf08a67eeb | [
"MIT"
] | null | null | null | src/gui/message_box.cpp | dbMansfield/retro-rpg | 09b72d7a8a4d2a9e94b09957bcb88bcf08a67eeb | [
"MIT"
] | 3 | 2016-02-09T20:06:04.000Z | 2016-06-23T13:12:22.000Z | #include <SFML/Graphics.hpp>
#include <vector>
#include <string>
#include "gui.hpp"
#include "message_box.hpp"
#include "text.hpp"
gui::MessageBox::MessageBox(const sf::Vector2u& dimensions,
const std::string& text,
const gui::Font& font,
const sf::Color& backgroundCol,
const sf::Color& te... | 26.114754 | 72 | 0.670747 | Piepenguin1995 |
cdc18018eafd3c9196318fe30cbe2b310e41432b | 787 | cpp | C++ | LeetCode/ThousandTwo/1688-count_match_in_tournament.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandTwo/1688-count_match_in_tournament.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandTwo/1688-count_match_in_tournament.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include "leetcode.hpp"
/* 1688. 比赛中的配对次数
给你一个整数 n ,表示比赛中的队伍数。比赛遵循一种独特的赛制:
如果当前队伍数是 偶数 ,那么每支队伍都会与另一支队伍配对。
总共进行 n / 2 场比赛,且产生 n / 2 支队伍进入下一轮。
如果当前队伍数为 奇数 ,那么将会随机轮空并晋级一支队伍,其余的队伍配对。
总共进行 (n - 1) / 2 场比赛,且产生 (n - 1) / 2 + 1 支队伍进入下一轮。
返回在比赛中进行的配对次数,直到决出获胜队伍为止。
示例 1:
输入:n = 7
输出:6
解释:比赛详情:
- 第 1 轮:队伍数 = 7 ,配对次数 = 3 ... | 15.74 | 51 | 0.550191 | Ginkgo-Biloba |
02ccb44d83c7389cda277e56e857c56da8edbd17 | 25,934 | cpp | C++ | sqldata/sqlpgapi.cpp | strk/sqlines | 82676a3b672bc218a024712abeb85279ae75495c | [
"Apache-2.0"
] | null | null | null | sqldata/sqlpgapi.cpp | strk/sqlines | 82676a3b672bc218a024712abeb85279ae75495c | [
"Apache-2.0"
] | null | null | null | sqldata/sqlpgapi.cpp | strk/sqlines | 82676a3b672bc218a024712abeb85279ae75495c | [
"Apache-2.0"
] | null | null | null |
// SqlPgApi PostgreSQL libpq C API
// Copyright (c) 2012 SQLines. All rights reserved
#include <stdio.h>
#include "sqlpgapi.h"
#include "../sqlcommon/str.h"
#include "../sqlcommon/os.h"
// Required to access ODBC, CT-Lib, MySQL C constants
#include <sql.h>
#include <sqlext.h>
#include <ctpublic.h>
#include <mysql.h>... | 24.39699 | 144 | 0.653235 | strk |
02cda442c303c130d1502d3d1cd6701e82bf2285 | 1,489 | cpp | C++ | external/SquirrelNoise/src/squirrel_noise/RawNoise.cpp | ford442/MushMachine | dc37ad54ec02aa4c1c30cca99d965cd705b3fa2f | [
"MIT"
] | 20 | 2020-10-06T07:30:14.000Z | 2022-03-31T14:00:33.000Z | external/SquirrelNoise/src/squirrel_noise/RawNoise.cpp | ford442/MushMachine | dc37ad54ec02aa4c1c30cca99d965cd705b3fa2f | [
"MIT"
] | null | null | null | external/SquirrelNoise/src/squirrel_noise/RawNoise.cpp | ford442/MushMachine | dc37ad54ec02aa4c1c30cca99d965cd705b3fa2f | [
"MIT"
] | 2 | 2020-11-21T15:42:37.000Z | 2021-11-07T07:12:02.000Z | //-----------------------------------------------------------------------------------------------
// RawNoise.cpp
//
#include "./RawNoise.hpp"
namespace SquirrelNoise4 {
//-----------------------------------------------------------------------------------------------
// Fast hash of an int32 into a different (unrecog... | 39.184211 | 97 | 0.649429 | ford442 |
02cf44e1fde012dbc47e28a846e04c1a34c498f2 | 10,866 | cpp | C++ | src/storage/buffer_manager.cpp | c5sire/duckdb | 2266d0e6e353aab104026c9674af7158b948bae0 | [
"MIT"
] | 1 | 2021-06-14T08:09:40.000Z | 2021-06-14T08:09:40.000Z | src/storage/buffer_manager.cpp | c5sire/duckdb | 2266d0e6e353aab104026c9674af7158b948bae0 | [
"MIT"
] | null | null | null | src/storage/buffer_manager.cpp | c5sire/duckdb | 2266d0e6e353aab104026c9674af7158b948bae0 | [
"MIT"
] | null | null | null | #include "duckdb/storage/buffer_manager.hpp"
#include "duckdb/common/to_string.hpp"
#include "duckdb/storage/storage_manager.hpp"
#include "duckdb/common/exception.hpp"
#include "duckdb/parallel/concurrentqueue.hpp"
namespace duckdb {
BlockHandle::BlockHandle(DatabaseInstance &db, block_id_t block_id_p) : db(db) {
... | 33.229358 | 111 | 0.734585 | c5sire |
02cfc5bcbef48fc15e9c2a194426b793debc5824 | 220 | cpp | C++ | C4_Search_dfs_bfs/test_vector.cpp | lanhongvp/DS_Algorithm | ec49a06c611363a83e1d23d1fb0d7b3212323f96 | [
"MIT"
] | 2 | 2019-02-01T15:38:13.000Z | 2019-02-03T13:33:15.000Z | C4_Search_dfs_bfs/test_vector.cpp | lanhongvp/DS_Algorithm | ec49a06c611363a83e1d23d1fb0d7b3212323f96 | [
"MIT"
] | null | null | null | C4_Search_dfs_bfs/test_vector.cpp | lanhongvp/DS_Algorithm | ec49a06c611363a83e1d23d1fb0d7b3212323f96 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
const int maxsize = 10;
int main(){
vector<int> tmp(maxsize,0);
vector<int> vis(4,tmp);
// v = {1,2,3,4};
cout<<vis[0][0];
cout<<vis.size();
} | 18.333333 | 31 | 0.590909 | lanhongvp |
02d5315c20d40159054176976514fac21c81b116 | 8,322 | hpp | C++ | src/lib/boost/spirit/home/support/iterators/multi_pass.hpp | EricBoittier/vina-carb-docker | e8730d1ef90395e3d7ed3ad00264702313b0766a | [
"Apache-2.0"
] | 1 | 2017-07-31T02:19:48.000Z | 2017-07-31T02:19:48.000Z | src/lib/boost/spirit/home/support/iterators/multi_pass.hpp | EricBoittier/vina-carb-docker | e8730d1ef90395e3d7ed3ad00264702313b0766a | [
"Apache-2.0"
] | null | null | null | src/lib/boost/spirit/home/support/iterators/multi_pass.hpp | EricBoittier/vina-carb-docker | e8730d1ef90395e3d7ed3ad00264702313b0766a | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2001, Daniel C. Nuffer
// Copyright (c) 2001-2009 Hartmut Kaiser
// http://spirit.sourceforge.net/
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#if !defined(BOOST_SPIRIT_ITERATOR_MULTI_... | 32.893281 | 83 | 0.602259 | EricBoittier |
02d536489289fe2ef58803c2fd5a6804d53739ae | 11,014 | cpp | C++ | third_party/OpenFace/exe/FeatureExtraction/FeatureExtraction.cpp | Hussam-Turjman/FLDServer | eb72efdf99a0f1c5138adcc94970b8d6df3e9536 | [
"BSD-3-Clause"
] | 2 | 2022-03-04T18:34:21.000Z | 2022-03-04T18:34:33.000Z | third_party/OpenFace/exe/FeatureExtraction/FeatureExtraction.cpp | Hussam-Turjman/FLDServer | eb72efdf99a0f1c5138adcc94970b8d6df3e9536 | [
"BSD-3-Clause"
] | null | null | null | third_party/OpenFace/exe/FeatureExtraction/FeatureExtraction.cpp | Hussam-Turjman/FLDServer | eb72efdf99a0f1c5138adcc94970b8d6df3e9536 | [
"BSD-3-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2017, Carnegie Mellon University and University of Cambridge,
// all rights reserved.
//
// ACADEMIC OR NON-PROFIT ORGANIZATION NONCOMMERCIAL RESEARCH USE ONLY
//
// BY USING OR DOWNLOADING THE SOFTWARE, YOU ARE AGREEING TO... | 40.19708 | 288 | 0.747412 | Hussam-Turjman |
02d6501c286de5b002517feda7534d916ddcd9b7 | 7,766 | cpp | C++ | os/fs/fat/testsuite/fat32_time.cpp | rvedam/es-operating-system | 32d3e4791c28a5623744800f108d029c40c745fc | [
"Apache-2.0"
] | 2 | 2020-11-30T18:38:20.000Z | 2021-06-07T07:44:03.000Z | os/fs/fat/testsuite/fat32_time.cpp | LambdaLord/es-operating-system | 32d3e4791c28a5623744800f108d029c40c745fc | [
"Apache-2.0"
] | 1 | 2019-01-14T03:09:45.000Z | 2019-01-14T03:09:45.000Z | os/fs/fat/testsuite/fat32_time.cpp | LambdaLord/es-operating-system | 32d3e4791c28a5623744800f108d029c40c745fc | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2008, 2009 Google Inc.
* Copyright 2006 Nintendo Co., Ltd.
*
* 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
*
* Unle... | 32.767932 | 97 | 0.61692 | rvedam |
02db7cd6952d7132a7503ab172e0932af88317b5 | 2,153 | cpp | C++ | src/cpp/camera.cpp | BrunodaSilvaBelo/historyCentral_cg | f0b10c1f8978610ac37c931259c33d6e3503d77f | [
"MIT"
] | null | null | null | src/cpp/camera.cpp | BrunodaSilvaBelo/historyCentral_cg | f0b10c1f8978610ac37c931259c33d6e3503d77f | [
"MIT"
] | null | null | null | src/cpp/camera.cpp | BrunodaSilvaBelo/historyCentral_cg | f0b10c1f8978610ac37c931259c33d6e3503d77f | [
"MIT"
] | null | null | null | #include "camera.h"
#include <glm/gtx/transform.hpp>
#include <GLFW/glfw3.h>
Camera::Camera(const glm::vec3 &position, float fov, float aspect, float near,
float far)
: position(position) {
forward = glm::vec3(0.f, 0.f, -1.f);
up = glm::vec3(0.f, 1.f, 0.f);
projection = glm::perspective(fov, asp... | 30.757143 | 89 | 0.625174 | BrunodaSilvaBelo |
02db871fa595de0dc54085ca4467499ca2d1f656 | 8,488 | cpp | C++ | cpdp/src/v20190820/model/CreateSinglePayResult.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | cpdp/src/v20190820/model/CreateSinglePayResult.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | cpdp/src/v20190820/model/CreateSinglePayResult.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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
... | 29.574913 | 152 | 0.699222 | suluner |
02dc9bc94ffc741362e21ebdb3d2073bf9014a04 | 3,244 | hpp | C++ | test/set.hpp | LeslieW/gecode-clone | ab3ab207c98981abfe4c52f01b248ec7bc4e8e8c | [
"MIT-feh"
] | 1 | 2017-05-10T05:42:43.000Z | 2017-05-10T05:42:43.000Z | test/set.hpp | LeslieW/gecode-clone | ab3ab207c98981abfe4c52f01b248ec7bc4e8e8c | [
"MIT-feh"
] | null | null | null | test/set.hpp | LeslieW/gecode-clone | ab3ab207c98981abfe4c52f01b248ec7bc4e8e8c | [
"MIT-feh"
] | 1 | 2017-01-27T14:52:22.000Z | 2017-01-27T14:52:22.000Z | /* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Guido Tack <tack@gecode.org>
*
* Copyright:
* Guido Tack, 2005
*
* Last modified:
* $Date$ by $Author$
* $Revision$
*
* This file is part of Gecode, the generic constraint
* development environment:
... | 26.590164 | 74 | 0.649815 | LeslieW |
02dcf9b0ee9966d88705ecd20cce14af6a0cd730 | 2,251 | cpp | C++ | gtsam/gtsam/gpstk/DOP.cpp | mfkiwl/RobustGNSS | f7774af62eb6eaf2198b5a7ca6f2a63dc87a4f7f | [
"MIT"
] | 105 | 2017-12-02T14:39:49.000Z | 2022-02-19T18:20:25.000Z | trunk/gtsam/gpstk/DOP.cpp | shaolinbit/PPP-BayesTree | 6f469775277a1a33447bf4c19603c796c2c63c75 | [
"MIT"
] | 5 | 2018-09-04T15:15:59.000Z | 2020-09-08T08:51:02.000Z | trunk/gtsam/gpstk/DOP.cpp | shaolinbit/PPP-BayesTree | 6f469775277a1a33447bf4c19603c796c2c63c75 | [
"MIT"
] | 31 | 2018-01-10T03:21:28.000Z | 2021-08-06T06:18:35.000Z | #pragma ident "$Id$"
/**
* @file DOP.cpp
* Class encapsulating the computation of DOP.
*/
//============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk is free software; you can redistribute it and/or modify
// it under the term... | 30.835616 | 115 | 0.597068 | mfkiwl |
02dd77740c65e387a581758908730ba9bfb4e1d2 | 8,105 | hpp | C++ | esp/platform/esptraceloggingcomponent.hpp | jeclrsg/HPCC-Platform | c1daafb6060f0c47c95bce98e5431fedc33c592d | [
"Apache-2.0"
] | 286 | 2015-01-03T12:45:17.000Z | 2022-03-25T18:12:57.000Z | esp/platform/esptraceloggingcomponent.hpp | jeclrsg/HPCC-Platform | c1daafb6060f0c47c95bce98e5431fedc33c592d | [
"Apache-2.0"
] | 9,034 | 2015-01-02T08:49:19.000Z | 2022-03-31T20:34:44.000Z | esp/platform/esptraceloggingcomponent.hpp | jakesmith/HPCC-Platform | c3b9268c492e473176ea36e3e916c4a544f47561 | [
"Apache-2.0"
] | 208 | 2015-01-02T03:27:28.000Z | 2022-02-11T05:54:52.000Z | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2021 HPCC Systems®.
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... | 49.121212 | 220 | 0.741024 | jeclrsg |
02ddaa9b39c48425fdb3d8d8595265cad135d76c | 3,270 | cpp | C++ | src/array/ft/buffer_entry.cpp | iljoongkr/poseidonos | 01ed7c323c4f6dbd99970f4b036ade2f0a4e4383 | [
"BSD-3-Clause"
] | null | null | null | src/array/ft/buffer_entry.cpp | iljoongkr/poseidonos | 01ed7c323c4f6dbd99970f4b036ade2f0a4e4383 | [
"BSD-3-Clause"
] | null | null | null | src/array/ft/buffer_entry.cpp | iljoongkr/poseidonos | 01ed7c323c4f6dbd99970f4b036ade2f0a4e4383 | [
"BSD-3-Clause"
] | null | null | null | /*
* BSD LICENSE
* Copyright (c) 2021 Samsung Electronics Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain th... | 27.024793 | 85 | 0.721101 | iljoongkr |
02de4da3481ad030a240d544cd7a5bf340f00162 | 309 | cpp | C++ | src/systems/ResetSpeedSystem.cpp | KeepPositive/tddod | f6f3bcd6a41c4b64f03194e26c91737920f32515 | [
"MIT"
] | 46 | 2019-03-01T07:18:06.000Z | 2022-03-19T18:34:50.000Z | src/systems/ResetSpeedSystem.cpp | KeepPositive/tddod | f6f3bcd6a41c4b64f03194e26c91737920f32515 | [
"MIT"
] | null | null | null | src/systems/ResetSpeedSystem.cpp | KeepPositive/tddod | f6f3bcd6a41c4b64f03194e26c91737920f32515 | [
"MIT"
] | 5 | 2019-05-21T09:44:50.000Z | 2020-07-08T17:51:32.000Z | #include "components/BaseSpeed.h"
#include "components/Speed.h"
#include "systems/ResetSpeedSystem.h"
void updateResetSpeedSystem(Registry ®istry)
{
registry.view<BaseSpeed, Speed>().each([](auto entity, const BaseSpeed &baseSpeed, Speed &speed)
{
speed.speed = baseSpeed.speed;
});
}
| 25.75 | 100 | 0.711974 | KeepPositive |