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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
01d72abac4cfe9609df0fbda7140cbaf0a1f800f | 2,528 | cpp | C++ | async-io-linux-filesystem/AsyncFileReader.cpp | daank94/async-io-linux-filesystem | 6c5a3d2a20913bbb203c5cf2618203c7ae26a569 | [
"MIT"
] | 1 | 2019-12-26T21:07:22.000Z | 2019-12-26T21:07:22.000Z | async-io-linux-filesystem/AsyncFileReader.cpp | daank94/async-io-linux-filesystem | 6c5a3d2a20913bbb203c5cf2618203c7ae26a569 | [
"MIT"
] | null | null | null | async-io-linux-filesystem/AsyncFileReader.cpp | daank94/async-io-linux-filesystem | 6c5a3d2a20913bbb203c5cf2618203c7ae26a569 | [
"MIT"
] | 1 | 2020-01-02T01:27:42.000Z | 2020-01-02T01:27:42.000Z |
#include "AsyncFileReader.h"
#include <sys/epoll.h>
#include <unistd.h>
#include <stdio.h>
AsyncFileReader::AsyncFileReader()
: epoll_fd_(epoll_create1(0)),
stopped_(false)
{
static_assert(EVENT_BUFFER_SIZE > 0, "EVENT_BUFFER_SIZE must be greater than 0");
static_assert(READ_BUFFER_SIZE > 0, "READ_BUFFER_SIZE... | 24.07619 | 172 | 0.730222 | daank94 |
01daf20c9fab3925dd7c843fd491b5cfa35042df | 977 | cpp | C++ | uva/chapter_3/10341.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | 1 | 2019-05-12T23:41:00.000Z | 2019-05-12T23:41:00.000Z | uva/chapter_3/10341.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | uva/chapter_3/10341.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | #include <cmath>
#include <stdio.h>
#include <iostream>
using namespace std;
int p, q, r, s, t, u;
double f(double x) {
return p * exp(-x) + q * sin(x) + r * cos(x) + s * tan(x) + t * x * x + u;
}
double fd(double x){ // the derivative of function f
return -p*exp(-x) + q*cos(x) - r*sin(x) + s/(cos(x)*cos(x)) ... | 21.23913 | 78 | 0.468782 | metaflow |
01dd7017a5734ed0acb9fa4079335c1f4ed723f2 | 1,504 | cpp | C++ | main_web.cpp | kooBH/Qt_File_IO | 2a95289f295018ece13665e0bc3112efbe889d8a | [
"Unlicense"
] | null | null | null | main_web.cpp | kooBH/Qt_File_IO | 2a95289f295018ece13665e0bc3112efbe889d8a | [
"Unlicense"
] | 6 | 2019-03-14T11:57:03.000Z | 2019-06-07T10:42:18.000Z | main_web.cpp | kooBH/Qt_File_IO | 2a95289f295018ece13665e0bc3112efbe889d8a | [
"Unlicense"
] | null | null | null | #include <QtWebEngineCore>
#include <QApplication>
#include <QWebEngineView>
#include <QVBoxLayout>
#include <QPushButton>
#include <QWidget>
QUrl commandLineUrlArgument()
{
const QStringList args = QCoreApplication::arguments();
for (const QString &arg : args.mid(1)) {
if (!arg.startsWith(QLatin1Char('-')))
... | 24.258065 | 89 | 0.692154 | kooBH |
01e23ec8197e816ffb8957afcc85f7b9973b60ef | 3,163 | hpp | C++ | diffsim_torch3d/arcsim/src/physics.hpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | diffsim_torch3d/arcsim/src/physics.hpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | diffsim_torch3d/arcsim/src/physics.hpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
Copyright ©2013 The Regents of the University of California
(Regents). All Rights Reserved. Permission to use, copy, modify, and
distribute this software and its documentation for educational,
research, and not-for-profit purposes, without fee and without a
signed licensing agreement, is hereby granted, pr... | 39.5375 | 98 | 0.669617 | priyasundaresan |
01e2fc1419df585b6bbda0d311ec4e0ead3faa7e | 2,287 | cpp | C++ | benchmarks/benchmark_ref_counted_ptr.cpp | abu-lib/mem | 9a8a92b53ff079ecae0f8211213f5ed5571d1ed8 | [
"Apache-2.0"
] | null | null | null | benchmarks/benchmark_ref_counted_ptr.cpp | abu-lib/mem | 9a8a92b53ff079ecae0f8211213f5ed5571d1ed8 | [
"Apache-2.0"
] | 1 | 2021-09-26T14:15:33.000Z | 2021-09-26T15:40:32.000Z | benchmarks/benchmark_ref_counted_ptr.cpp | abu-lib/mem | 9a8a92b53ff079ecae0f8211213f5ed5571d1ed8 | [
"Apache-2.0"
] | null | null | null | #include <benchmark/benchmark.h>
#include <cstdlib>
#include <ctime>
#include <memory>
#include "abu/mem.h"
namespace {
static void BM_shared_ptr_int_lifetime(benchmark::State& state) {
std::srand(std::time(nullptr));
int v = std::rand();
for (auto _ : state) {
(void)_;
auto tmp = std::... | 25.131868 | 77 | 0.663314 | abu-lib |
01e399aae29a026843f9751f0769d04e8ba7dc2f | 52,394 | cpp | C++ | source/equation.cpp | LiquidFenrir/CalculaThreeDS | 1f87cdafa639e8289ebf886c6dd0e341c4da6279 | [
"MIT"
] | 10 | 2020-11-08T13:40:44.000Z | 2021-05-19T09:40:53.000Z | source/equation.cpp | LiquidFenrir/CalculaThreeDS | 1f87cdafa639e8289ebf886c6dd0e341c4da6279 | [
"MIT"
] | 2 | 2021-01-18T13:56:08.000Z | 2021-03-11T13:45:05.000Z | source/equation.cpp | LiquidFenrir/CalculaThreeDS | 1f87cdafa639e8289ebf886c6dd0e341c4da6279 | [
"MIT"
] | null | null | null | #include "equation.h"
#include "sprites.h"
#include "text.h"
#include "colors.h"
#include <algorithm>
#include <cmath>
static const Number E_VAL(std::exp(1.0));
static const Number PI_VAL(M_PI);
static const Number I_VAL(0.0, 1.0);
Equation::Equation() : parts(3)
{
parts[0].meta.assoc = 2;
parts[0].meta.speci... | 38.83914 | 236 | 0.492881 | LiquidFenrir |
01e39ce818b54c879e1b196b68ac199bd3856752 | 2,133 | cpp | C++ | Sources/AGEngine/Utils/Frustum.cpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 47 | 2015-03-29T09:44:25.000Z | 2020-11-30T10:05:56.000Z | Sources/AGEngine/Utils/Frustum.cpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 313 | 2015-01-01T18:16:30.000Z | 2015-11-30T07:54:07.000Z | Sources/AGEngine/Utils/Frustum.cpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 9 | 2015-06-07T13:21:54.000Z | 2020-08-25T09:50:07.000Z | #pragma once
#include "Frustum.hh"
#include <glm/glm.hpp>
namespace AGE
{
void Frustum::buildPlanes()
{
_planes[PLANE_NEAR].setCoefficients(
_viewProj[0][2] + _viewProj[0][3],
_viewProj[1][2] + _viewProj[1][3],
_viewProj[2][2] + _viewProj[2][3],
_viewProj[3][2] + _viewProj[3][3]);
_planes[PLANE_FAR... | 23.966292 | 86 | 0.631036 | Another-Game-Engine |
01e7355d0093d04bd17cd74177abaa99133bd59e | 20,259 | cpp | C++ | render_algorithms/ripgen-fbo/src/UI.cpp | itsermo/holovideo-algorithms | 6b39f896a8c61d2a82a7314efc583940d685dd55 | [
"BSD-3-Clause"
] | 3 | 2018-02-26T19:53:10.000Z | 2020-01-16T14:30:02.000Z | render_algorithms/ripgen-fbo/src/UI.cpp | itsermo/holovideo-algorithms | 6b39f896a8c61d2a82a7314efc583940d685dd55 | [
"BSD-3-Clause"
] | null | null | null | render_algorithms/ripgen-fbo/src/UI.cpp | itsermo/holovideo-algorithms | 6b39f896a8c61d2a82a7314efc583940d685dd55 | [
"BSD-3-Clause"
] | null | null | null | #include <stdlib.h>
#include <stdio.h>
#include "setupglew.h"
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glxew.h>
//#include <GL/glx.h> //for Nvida Framelock code
#include <GL/glut.h>
#include "JSharedMemory.h"
#include "JSequencer.h"
#include "JDisplayState.h"
#include "RIP.h"
#include "UI.h"
#include "flyR... | 27.982044 | 149 | 0.710203 | itsermo |
543527a510cb32554b395028916e54e8d894c42f | 775 | cpp | C++ | src/xtd.core/src/xtd/reflection/assembly_title_attribute.cpp | BaderEddineOuaich/xtd | 6f28634c7949a541d183879d2de18d824ec3c8b1 | [
"MIT"
] | 1 | 2022-02-25T16:53:06.000Z | 2022-02-25T16:53:06.000Z | src/xtd.core/src/xtd/reflection/assembly_title_attribute.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | src/xtd.core/src/xtd/reflection/assembly_title_attribute.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | #include "../../../include/xtd/reflection/assembly_title_attribute.h"
using namespace std;
using namespace xtd;
using namespace xtd::reflection;
assembly_title_attribute::assembly_title_attribute(const ustring& title) : title_(title) {
}
assembly_title_attribute::assembly_title_attribute(const ustring& title, const ... | 35.227273 | 124 | 0.79871 | BaderEddineOuaich |
543567ad7d0c1ef880e252e10dc15d03a3e809d8 | 29,672 | cpp | C++ | applications/physbam/physbam-lib/Public_Library/PhysBAM_Dynamics/Coupled_Driver/PLS_FSI_EXAMPLE.cpp | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 20 | 2017-07-03T19:09:09.000Z | 2021-09-10T02:53:56.000Z | applications/physbam/physbam-lib/Public_Library/PhysBAM_Dynamics/Coupled_Driver/PLS_FSI_EXAMPLE.cpp | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | null | null | null | applications/physbam/physbam-lib/Public_Library/PhysBAM_Dynamics/Coupled_Driver/PLS_FSI_EXAMPLE.cpp | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 9 | 2017-09-17T02:05:06.000Z | 2020-01-31T00:12:01.000Z | //#####################################################################
// Copyright 2004-2007, Ron Fedkiw, Eran Guendelman, Nipun Kwatra, Frank Losasso, Andrew Selle, Tamar Shinar, Jonathan Su, Jerry Talton.
// This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying fil... | 71.155875 | 194 | 0.722365 | schinmayee |
54358998b03fceb71efcc8fb2e66032bb7240d54 | 857 | cpp | C++ | CodeForces/1624/B_Make_AP.cpp | sungmen/Acmicpc_Solve | 0298a6aec84993a4d8767bd2c00490b7201e06a4 | [
"MIT"
] | null | null | null | CodeForces/1624/B_Make_AP.cpp | sungmen/Acmicpc_Solve | 0298a6aec84993a4d8767bd2c00490b7201e06a4 | [
"MIT"
] | null | null | null | CodeForces/1624/B_Make_AP.cpp | sungmen/Acmicpc_Solve | 0298a6aec84993a4d8767bd2c00490b7201e06a4 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
// freopen("input.in", "r", stdin);
ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
int t; cin >> t;
while(t--) {
int a, b, c; cin >> a >> b >> c;
if (a > c) swap(a, c);
int ret = c - a;
int... | 23.162162 | 74 | 0.347725 | sungmen |
543614d4379119294edb2d06606b2e4da4f4ceee | 755 | cpp | C++ | p636/p636_2.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | 1 | 2019-10-07T05:00:21.000Z | 2019-10-07T05:00:21.000Z | p636/p636_2.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | null | null | null | p636/p636_2.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> exclusiveTime(int n, vector<string>& logs) {
vector<int> res(n);
stack<int> st;
int preTime = 0;
for (int i = 0; i < logs.size(); ++i) {
int pos = logs[i].find(':');
int id = atoi(logs[i].substr(0, pos).c_str());
p... | 23.59375 | 62 | 0.403974 | suzyz |
543fa89656496c552e0840f549271c1541df4c4e | 865 | cpp | C++ | src/state_vector/state_vector.cpp | libtangle/tools | 4362e5312bcfbe93c912c3f8df9159816003b66e | [
"MIT"
] | 1 | 2019-10-14T05:41:58.000Z | 2019-10-14T05:41:58.000Z | src/state_vector/state_vector.cpp | libtangle/tools | 4362e5312bcfbe93c912c3f8df9159816003b66e | [
"MIT"
] | 1 | 2019-09-15T17:57:43.000Z | 2019-09-16T06:36:19.000Z | src/state_vector/state_vector.cpp | libtangle/tools | 4362e5312bcfbe93c912c3f8df9159816003b66e | [
"MIT"
] | null | null | null | #include "state_vector.h"
#include "omp.h"
#include <iostream>
#include <stdlib.h>
StateVector::StateVector(int num_qubits)
{
this->num_qubits = num_qubits;
this->num_amps = 1L << num_qubits;
// Allocate the required memory for the state vector
std::size_t bytes = num_amps * sizeof(complex);
state... | 22.179487 | 56 | 0.523699 | libtangle |
5440b08301628ef96e197bf93542acbaa63f2f0f | 1,490 | hpp | C++ | include/prog/sym/func_def.hpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 14 | 2020-04-14T17:00:56.000Z | 2021-08-30T08:29:26.000Z | include/prog/sym/func_def.hpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 27 | 2020-12-27T16:00:44.000Z | 2021-08-01T13:12:14.000Z | include/prog/sym/func_def.hpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 1 | 2020-05-29T18:33:37.000Z | 2020-05-29T18:33:37.000Z | #pragma once
#include "prog/expr/node.hpp"
#include "prog/sym/const_decl_table.hpp"
#include "prog/sym/func_decl_table.hpp"
#include <vector>
namespace prog::sym {
// Function definition. Contains the body of a user-function.
class FuncDef final {
friend class FuncDefTable;
public:
enum class Flags : unsigned in... | 29.8 | 89 | 0.672483 | BastianBlokland |
5445fbb01d0b541ba8265c0941408dadaf0ef837 | 226 | hpp | C++ | source/platform/windows/defines.hpp | ameisen/gcgg | 6ee9a841ddd88182c235a688e6b7d8894f7af1fe | [
"Apache-2.0"
] | null | null | null | source/platform/windows/defines.hpp | ameisen/gcgg | 6ee9a841ddd88182c235a688e6b7d8894f7af1fe | [
"Apache-2.0"
] | null | null | null | source/platform/windows/defines.hpp | ameisen/gcgg | 6ee9a841ddd88182c235a688e6b7d8894f7af1fe | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <cassert>
#define OS Windows
#define __likely(c) (c)
#define __unlikely(c) (c)
#define __unreachable __assume(0)
#define nodefault default: { __unreachable; }
#define xassert(c) assert(c)
| 17.384615 | 46 | 0.69469 | ameisen |
5446676bcffd729b260e4aba4e25c442da814dc9 | 2,705 | cxx | C++ | src/shared/init_models.cxx | solomonik/ctf | b79428ca8e7a5fa6ef22197ff5129d1aace3134b | [
"BSD-2-Clause"
] | 56 | 2015-02-28T08:19:58.000Z | 2021-11-04T16:46:17.000Z | src/shared/init_models.cxx | solomonik/ctf | b79428ca8e7a5fa6ef22197ff5129d1aace3134b | [
"BSD-2-Clause"
] | 40 | 2015-04-08T14:58:42.000Z | 2017-11-17T20:57:26.000Z | src/shared/init_models.cxx | solomonik/ctf | b79428ca8e7a5fa6ef22197ff5129d1aace3134b | [
"BSD-2-Clause"
] | 17 | 2015-04-03T00:57:43.000Z | 2018-03-30T20:46:14.000Z | namespace CTF_int{
double seq_tsr_spctr_cst_off_k0_init[] = {5.3745E-06, 3.6464E-08, 2.2334E-10};
double seq_tsr_spctr_cst_off_k1_init[] = {5.3745E-06, 3.6464E-08, 2.2334E-10};
double seq_tsr_spctr_cst_off_k2_init[] = {-2.1996E-04, 3.1883E-09, 3.8743E-11};
double seq_tsr_spctr_off_k0_init[] = {8.6970E-06, 4.5598E-11, 1... | 65.97561 | 79 | 0.721257 | solomonik |
54480537ce43bf919f9db44aa9af3ca8e5844ec5 | 1,009 | cpp | C++ | Project2/GccApplication3/GccApplication3/tests/test012_service_rr.cpp | paulmoon/csc460 | a432cfccef97fca5820cb0fc006112bb773cda0f | [
"MIT"
] | null | null | null | Project2/GccApplication3/GccApplication3/tests/test012_service_rr.cpp | paulmoon/csc460 | a432cfccef97fca5820cb0fc006112bb773cda0f | [
"MIT"
] | null | null | null | Project2/GccApplication3/GccApplication3/tests/test012_service_rr.cpp | paulmoon/csc460 | a432cfccef97fca5820cb0fc006112bb773cda0f | [
"MIT"
] | null | null | null | #ifdef USE_TEST_012
/*
Testing RR tasks subscribing to another RR publisher.
Desired Trace:
T012;0;0;1;1;2;2;3;3;4;4;5;5;6;6;7;7;8;8;9;9;
*/
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "os.h"
#include "uart/uart.h"
#include "trace/trace.h"
#include "../profile... | 18.017857 | 54 | 0.54113 | paulmoon |
544d01213eb9ec71ae3a48c1140790d960edc11c | 6,585 | cpp | C++ | src/maglev/MagLevNull.cpp | mindpowered/maglev-cpp | 8383ed7576202d6d61fcdfb6723a2baa74b8e010 | [
"MIT"
] | null | null | null | src/maglev/MagLevNull.cpp | mindpowered/maglev-cpp | 8383ed7576202d6d61fcdfb6723a2baa74b8e010 | [
"MIT"
] | null | null | null | src/maglev/MagLevNull.cpp | mindpowered/maglev-cpp | 8383ed7576202d6d61fcdfb6723a2baa74b8e010 | [
"MIT"
] | null | null | null | // Generated by Haxe 4.1.1
#include <hxcpp.h>
#ifndef INCLUDED_maglev_MagLevAny
#include <maglev/MagLevAny.h>
#endif
#ifndef INCLUDED_maglev_MagLevNull
#include <maglev/MagLevNull.h>
#endif
#ifndef INCLUDED_maglev_MagLevString
#include <maglev/MagLevString.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_25586abe6b76e172_662_... | 34.296875 | 179 | 0.731815 | mindpowered |
544ebc8e13e44f1a9d4d382557bc3bffc28f7cfe | 1,933 | cpp | C++ | test/type_traits/is_trivially_copy_assignable.libcxx.cpp | FirstLoveLife/Rider-Faiz | ffa1ec3b335b836bd81600fb67587734325b2ce6 | [
"MIT"
] | 3 | 2019-01-18T08:36:03.000Z | 2020-10-29T08:30:59.000Z | test/type_traits/is_trivially_copy_assignable.libcxx.cpp | FirstLoveLife/Faiz | ffa1ec3b335b836bd81600fb67587734325b2ce6 | [
"MIT"
] | null | null | null | test/type_traits/is_trivially_copy_assignable.libcxx.cpp | FirstLoveLife/Faiz | ffa1ec3b335b836bd81600fb67587734325b2ce6 | [
"MIT"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | 21.719101 | 80 | 0.691154 | FirstLoveLife |
5450373884e4d7eeae4d4c943765a34f77388329 | 650 | cpp | C++ | dlls/ADM/Physics/PhysManager.cpp | BlueNightHawk4906/HL-ADM-Custom | 7cd3925de819d4f5a2a808e5c0b34bb03a51c991 | [
"Unlicense"
] | 1 | 2020-12-11T17:52:33.000Z | 2020-12-11T17:52:33.000Z | dlls/ADM/Physics/PhysManager.cpp | BlueNightHawk4906/HL-ADM-Custom | 7cd3925de819d4f5a2a808e5c0b34bb03a51c991 | [
"Unlicense"
] | 7 | 2021-07-09T09:19:14.000Z | 2021-07-20T19:35:21.000Z | dlls/ADM/Physics/PhysManager.cpp | phoenixprojectsoftware/phoenixADM | 5f170a34739e64111dbe161d9ab9e0baa219512b | [
"Unlicense"
] | null | null | null | #include "Base/ExtDLL.h"
#include "Util.h"
#include "Base/CBase.h"
#include "PhysManager.h"
#include "../shared/ADM/Physics/PhysicsWorld.h"
LINK_ENTITY_TO_CLASS( phys_manager, CPhysManager );
void CPhysManager::Spawn()
{
pev->solid = SOLID_NOT;
pev->movetype = MOVETYPE_NONE;
// pev->flags |= FL_ALWA... | 22.413793 | 78 | 0.673846 | BlueNightHawk4906 |
54571cf0e13f22a286b8c650a63c535529550a82 | 35,187 | hpp | C++ | include/ext/net/http/http_server.hpp | dmlys/netlib | 81627e5f9bea8f1225b1083efa66a8b5dcb9c514 | [
"BSL-1.0"
] | 1 | 2018-05-14T13:46:59.000Z | 2018-05-14T13:46:59.000Z | include/ext/net/http/http_server.hpp | dmlys/netlib | 81627e5f9bea8f1225b1083efa66a8b5dcb9c514 | [
"BSL-1.0"
] | null | null | null | include/ext/net/http/http_server.hpp | dmlys/netlib | 81627e5f9bea8f1225b1083efa66a8b5dcb9c514 | [
"BSL-1.0"
] | null | null | null | #pragma once
#include <memory>
#include <string>
#include <vector>
#include <functional>
#include <iterator>
#include <thread>
#include <mutex>
#include <condition_variable>
#include <boost/container/flat_set.hpp>
#include <boost/container/flat_map.hpp>
#include <ext/config.hpp>
#include <ext/future.hpp>
#include <... | 55.412598 | 191 | 0.772729 | dmlys |
54576dde40f92e2115e8513477ef33ee1b106a31 | 673 | cpp | C++ | campion-era/control.cpp/control.cpp | GeorgianBadita/algorithmic-problems | 6b260050b7a1768b5e47a1d7d4ef7138a52db210 | [
"MIT"
] | 1 | 2021-07-05T16:32:14.000Z | 2021-07-05T16:32:14.000Z | campion-era/control.cpp/control.cpp | GeorgianBadita/algorithmic-problems | 6b260050b7a1768b5e47a1d7d4ef7138a52db210 | [
"MIT"
] | null | null | null | campion-era/control.cpp/control.cpp | GeorgianBadita/algorithmic-problems | 6b260050b7a1768b5e47a1d7d4ef7138a52db210 | [
"MIT"
] | 1 | 2021-05-14T15:40:09.000Z | 2021-05-14T15:40:09.000Z | #include<fstream>
using namespace std;
int x[100];
int main()
{
ifstream f("control.in");
ofstream g("control.out");
int ok,aux,i,n,v[101],ap=0,s=0;
f>>n;
for(i=1;i<=n;i++)
{
f>>v[i];
}
do
{
ok=1;
for(i=1;i<=n-1;i++)
{... | 20.393939 | 40 | 0.2526 | GeorgianBadita |
546385e4c80aaa2894a8b262692e2894d57c4c14 | 5,774 | cpp | C++ | test/indenter/test_indenter_python.cpp | SammyEnigma/qutepart-cpp | 3c5401c7d2856697171c4331099e2fa05ef0c49b | [
"WTFPL"
] | 5 | 2019-11-02T15:36:38.000Z | 2021-11-01T21:17:32.000Z | test/indenter/test_indenter_python.cpp | SammyEnigma/qutepart-cpp | 3c5401c7d2856697171c4331099e2fa05ef0c49b | [
"WTFPL"
] | 1 | 2021-02-11T23:11:00.000Z | 2021-02-11T23:11:00.000Z | test/indenter/test_indenter_python.cpp | SammyEnigma/qutepart-cpp | 3c5401c7d2856697171c4331099e2fa05ef0c49b | [
"WTFPL"
] | 3 | 2020-01-29T17:55:34.000Z | 2021-12-23T11:38:41.000Z | #include <QtTest/QtTest>
#include "base_indenter_test.h"
class Test: public BaseTest
{
Q_OBJECT
private slots:
void python_data() {
addColumns();
QTest::newRow("dedent return")
<< "def some_function():\n"
" return"
<< std::make_pair(1, 8)
... | 29.762887 | 91 | 0.336682 | SammyEnigma |
5463d9bb199bab6956d3a9ba142fbd22002a67a9 | 3,707 | hpp | C++ | hydra/vulkan/pipeline_layout.hpp | tim42/hydra | dfffd50a2863695742c0c6122a505824db8be7c3 | [
"MIT"
] | 2 | 2016-09-15T22:29:46.000Z | 2017-11-30T11:16:12.000Z | hydra/vulkan/pipeline_layout.hpp | tim42/hydra | dfffd50a2863695742c0c6122a505824db8be7c3 | [
"MIT"
] | null | null | null | hydra/vulkan/pipeline_layout.hpp | tim42/hydra | dfffd50a2863695742c0c6122a505824db8be7c3 | [
"MIT"
] | null | null | null | //
// file : pipeline_layout.hpp
// in : file:///home/tim/projects/hydra/hydra/vulkan/pipeline_layout.hpp
//
// created by : Timothée Feuillet
// date: Sun Aug 14 2016 13:43:28 GMT+0200 (CEST)
//
//
// Copyright (c) 2016 Timothée Feuillet
//
// Permission is hereby granted, free of charge, to any person obtaining a cop... | 36.70297 | 151 | 0.671702 | tim42 |
5463e2b117bb725c57e7be31f033e82e3e782a5d | 30,428 | cpp | C++ | src/topology/TMR_TACSTopoCreator.cpp | peekwez/tmr | 3ac41d8edd9b65c833f55940c451ee87019c5f55 | [
"Apache-2.0"
] | null | null | null | src/topology/TMR_TACSTopoCreator.cpp | peekwez/tmr | 3ac41d8edd9b65c833f55940c451ee87019c5f55 | [
"Apache-2.0"
] | null | null | null | src/topology/TMR_TACSTopoCreator.cpp | peekwez/tmr | 3ac41d8edd9b65c833f55940c451ee87019c5f55 | [
"Apache-2.0"
] | null | null | null | /*
This file is part of the package TMR for adaptive mesh refinement.
Copyright (C) 2015 Georgia Tech Research Corporation.
Additional copyright (C) 2015 Graeme Kennedy.
All rights reserved.
TMR is licensed under the Apache License, Version 2.0 (the "License");
you may not use this software except in comp... | 31.401445 | 97 | 0.627021 | peekwez |
546a11c1b2fb0ea64885541a70df951ecaf43844 | 1,136 | hpp | C++ | src/common/naive.hpp | TNishimoto/rlbwt_iterator | f2a4ae0276cb756d2724570def84641449da2f87 | [
"MIT"
] | null | null | null | src/common/naive.hpp | TNishimoto/rlbwt_iterator | f2a4ae0276cb756d2724570def84641449da2f87 | [
"MIT"
] | null | null | null | src/common/naive.hpp | TNishimoto/rlbwt_iterator | f2a4ae0276cb756d2724570def84641449da2f87 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <iostream>
#include <list>
#include <memory>
#include <random>
#include <exception>
#include <algorithm>
#include <fstream>
#include <chrono>
#include <time.h> //#include <stdio.h>
namespace stool
{
class NaiveAlgorithms
{
template <typename INDEX>
static std::vector<IND... | 27.047619 | 81 | 0.43662 | TNishimoto |
54720cd912f3adf5ecc237fbb8e1ef36829439c1 | 773 | hpp | C++ | SDK/ARKSurvivalEvolved_EngramEntry_Toilet_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_EngramEntry_Toilet_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_EngramEntry_Toilet_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_EngramEntry_Toilet_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//------------------------------------------------------... | 19.820513 | 106 | 0.626132 | 2bite |
5472d4010d1eaeaf62637e439bd939e07cee465d | 28,590 | cpp | C++ | src/Renderer.cpp | smithy545/engine | 1818a1acafdbc2550b10ef74a215aa41d94edf0f | [
"MIT"
] | null | null | null | src/Renderer.cpp | smithy545/engine | 1818a1acafdbc2550b10ef74a215aa41d94edf0f | [
"MIT"
] | null | null | null | src/Renderer.cpp | smithy545/engine | 1818a1acafdbc2550b10ef74a215aa41d94edf0f | [
"MIT"
] | null | null | null | //
// Created by Philip Smith on 10/17/2020.
//
#include <engine/Renderer.h>
#include <engine/OrbitCam.h>
#include <engine/InstanceList.h>
#include <engine/mesh/Mesh.h>
#include <engine/sprite/ShapeSprite.h>
#include <engine/sprite/TextSprite.h>
#include <engine/sprite/TextureSprite.h>
#include <fmt/format.h>
#includ... | 42.863568 | 123 | 0.619203 | smithy545 |
547358039612061aa8526099823f2a38d461fac8 | 11,458 | cpp | C++ | src/common/backend/utils/adt/oid.cpp | opengauss-mirror/openGauss-graph | 6beb138fd00abdbfddc999919f90371522118008 | [
"MulanPSL-1.0"
] | 360 | 2020-06-30T14:47:34.000Z | 2022-03-31T15:21:53.000Z | src/common/backend/utils/adt/oid.cpp | opengauss-mirror/openGauss-graph | 6beb138fd00abdbfddc999919f90371522118008 | [
"MulanPSL-1.0"
] | 4 | 2020-06-30T15:09:16.000Z | 2020-07-14T06:20:03.000Z | src/common/backend/utils/adt/oid.cpp | opengauss-mirror/openGauss-graph | 6beb138fd00abdbfddc999919f90371522118008 | [
"MulanPSL-1.0"
] | 133 | 2020-06-30T14:47:36.000Z | 2022-03-25T15:29:00.000Z | /* -------------------------------------------------------------------------
*
* oid.c
* Functions for the built-in type Oid ... also oidvector.
*
* Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATIO... | 26.400922 | 120 | 0.616774 | opengauss-mirror |
5473a402d01ac1bead5979450f8b478098257405 | 1,972 | cpp | C++ | test2.cpp | jhxqy/WebServerDemo | 5fce6dcbda875f61c96e7952b063e34b8ae6cb29 | [
"MIT"
] | null | null | null | test2.cpp | jhxqy/WebServerDemo | 5fce6dcbda875f61c96e7952b063e34b8ae6cb29 | [
"MIT"
] | null | null | null | test2.cpp | jhxqy/WebServerDemo | 5fce6dcbda875f61c96e7952b063e34b8ae6cb29 | [
"MIT"
] | null | null | null | //
// test2.cpp
// EZasync
//
// Created by 贾皓翔 on 2019/6/5.
// Copyright © 2019 贾皓翔. All rights reserved.
//
#include <stdio.h>
#include "asynchttp/HTTP.hpp"
using namespace std;
using namespace HTTP;
int main(){
IOContext ctx;
Serv s(ctx,"8088");
HttpDispatcher *http=HttpDispatcherImpl::Create();
... | 31.301587 | 88 | 0.591785 | jhxqy |
54759639a050f166bc45c0f04691f95a389bba4d | 1,915 | cpp | C++ | src/Neuron.cpp | AmarOk1412/NeuralDriver | 672fa4284eaaa88dc18498e23c7b40e1ec3d1c7d | [
"WTFPL"
] | null | null | null | src/Neuron.cpp | AmarOk1412/NeuralDriver | 672fa4284eaaa88dc18498e23c7b40e1ec3d1c7d | [
"WTFPL"
] | null | null | null | src/Neuron.cpp | AmarOk1412/NeuralDriver | 672fa4284eaaa88dc18498e23c7b40e1ec3d1c7d | [
"WTFPL"
] | null | null | null | #include "Neuron.h"
#include <math.h>
#include <random>
#include <iostream>
#include <assert.h>
Neuron::Neuron(const int nbInput)
{
init(nbInput, 3.4);
}
Neuron::~Neuron()
{
}
double Neuron::calcOutput(std::vector<double> const& input)
{
return 1/(1+exp(-thetaTX(input)));
}
double Neuron::thetaTX(const std::v... | 19.742268 | 66 | 0.643864 | AmarOk1412 |
547978b2f97378047c7210e419cf5cedb7255741 | 1,531 | cpp | C++ | third-party/llvm/llvm-src/tools/clang/lib/Driver/DarwinSDKInfo.cpp | ram-nad/chapel | 1d4aae17e58699c1481d2b2209c9d1fcd2658fc8 | [
"ECL-2.0",
"Apache-2.0"
] | 115 | 2018-02-01T18:56:44.000Z | 2022-03-21T13:23:00.000Z | third-party/llvm/llvm-src/tools/clang/lib/Driver/DarwinSDKInfo.cpp | ram-nad/chapel | 1d4aae17e58699c1481d2b2209c9d1fcd2658fc8 | [
"ECL-2.0",
"Apache-2.0"
] | 27 | 2018-09-17T17:49:49.000Z | 2021-11-03T04:31:51.000Z | third-party/llvm/llvm-src/tools/clang/lib/Driver/DarwinSDKInfo.cpp | ram-nad/chapel | 1d4aae17e58699c1481d2b2209c9d1fcd2658fc8 | [
"ECL-2.0",
"Apache-2.0"
] | 55 | 2018-02-01T07:11:49.000Z | 2022-03-04T01:20:23.000Z | //===--- DarwinSDKInfo.cpp - SDK Information parser for darwin - ----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 34.022222 | 80 | 0.63292 | ram-nad |
54802c98caf4d2337d84f7b53369a0cc6d201cb7 | 334 | cpp | C++ | Source/XeluIcons/Private/XeluIconsDeveloperSettings.cpp | mklabs/ue-xelu-icons | 4aaf54ecb9533fc3689f457b280b79293b861b47 | [
"MIT"
] | 5 | 2022-02-01T22:49:51.000Z | 2022-03-03T10:18:36.000Z | Source/XeluIcons/Private/XeluIconsDeveloperSettings.cpp | mklabs/ue-xelu-icons | 4aaf54ecb9533fc3689f457b280b79293b861b47 | [
"MIT"
] | 1 | 2022-01-31T23:09:04.000Z | 2022-01-31T23:09:04.000Z | Source/XeluIcons/Private/XeluIconsDeveloperSettings.cpp | mklabs/ue-xelu-icons | 4aaf54ecb9533fc3689f457b280b79293b861b47 | [
"MIT"
] | null | null | null | // Copyright 2022 Mickael Daniel. All Rights Reserved.
#include "XeluIconsDeveloperSettings.h"
UXeluIconsDeveloperSettings::UXeluIconsDeveloperSettings()
{
IconsDataTable = FSoftObjectPath(TEXT("/XeluIcons/DT_Xelu_Icons.DT_Xelu_Icons"));
}
FName UXeluIconsDeveloperSettings::GetCategoryName() const
{
return FName(... | 22.266667 | 82 | 0.805389 | mklabs |
54873d2ce7769081b8be72c41d3903efc133f45d | 155 | cpp | C++ | src/Zadanie20.cpp | radzbydzi/Podstawy-Programowania | c97e72fd2fc0ecf3a88b0095cc409802be009013 | [
"Unlicense"
] | null | null | null | src/Zadanie20.cpp | radzbydzi/Podstawy-Programowania | c97e72fd2fc0ecf3a88b0095cc409802be009013 | [
"Unlicense"
] | null | null | null | src/Zadanie20.cpp | radzbydzi/Podstawy-Programowania | c97e72fd2fc0ecf3a88b0095cc409802be009013 | [
"Unlicense"
] | null | null | null | #include "Zadanie20.h"
Zadanie20::Zadanie20()
{
}
Zadanie20::~Zadanie20()
{
}
void Zadanie20::run()
{
cout<<"Zadanie20"<<endl<<endl;
pokazTresc();
}
| 9.117647 | 31 | 0.645161 | radzbydzi |
54888c9318b3b338b8652db0a9750d917d1eef3b | 297 | hpp | C++ | include/RegularExpressionMatching.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | include/RegularExpressionMatching.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | include/RegularExpressionMatching.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #ifndef REGULAR_EXPRESSION_MATCHING_HPP_
#define REGULAR_EXPRESSION_MATCHING_HPP_
#include <string>
using namespace std;
class RegularExpressionMatching {
public:
bool isMatch(string s, string p);
private:
bool isMatch(char _s, char _p);
};
#endif // REGULAR_EXPRESSION_MATCHING_HPP_
| 17.470588 | 42 | 0.787879 | yanzhe-chen |
5489c5139f0a48c5e723f63b2936a0cfd0342dfb | 995 | cpp | C++ | workbench/src/event.cpp | MasterQ32/cg-workbench | 3d6229b961192689e6dbd0a09ec4b61041ecb155 | [
"MIT"
] | 5 | 2017-12-27T12:57:36.000Z | 2021-10-02T03:21:40.000Z | workbench/src/event.cpp | MasterQ32/cg-workbench | 3d6229b961192689e6dbd0a09ec4b61041ecb155 | [
"MIT"
] | 9 | 2020-09-29T22:40:49.000Z | 2020-10-17T20:05:05.000Z | workbench/src/event.cpp | MasterQ32/cg-workbench | 3d6229b961192689e6dbd0a09ec4b61041ecb155 | [
"MIT"
] | null | null | null | #include "event.hpp"
#include <SDL.h>
#include "sink.hpp"
timestamp_t Event::system_time;
Event::Event() :
current(system_time - 10000), // 10 seconds ago...
counter(0)
{
}
void Event::Trigger()
{
this->triggered = true;
this->current = system_time;
this->counter += 1;
}
void Event::Reset()
{
this->co... | 15.307692 | 54 | 0.638191 | MasterQ32 |
548bc5e3181dfac55df4e56c841997aa1b26ed76 | 8,428 | hpp | C++ | source/list.hpp | saJonMR/programmiersprachen_aufgabenblatt_3 | 2d02c2da6389cc152986aa55ffce91f86ff8b6e3 | [
"MIT"
] | null | null | null | source/list.hpp | saJonMR/programmiersprachen_aufgabenblatt_3 | 2d02c2da6389cc152986aa55ffce91f86ff8b6e3 | [
"MIT"
] | null | null | null | source/list.hpp | saJonMR/programmiersprachen_aufgabenblatt_3 | 2d02c2da6389cc152986aa55ffce91f86ff8b6e3 | [
"MIT"
] | null | null | null | #ifndef BUW_LIST_HPP
#define BUW_LIST_HPP
#include <cassert>
#include <cstddef> //ptrdiff_t
#include <iterator> //std::bidirectional_iterator_tag
#include <iostream>
#include <initializer_list>
template <typename T>
class List;
template <typename T>
struct ListNode {
T value = T{};
ListNode* prev = null... | 24.218391 | 118 | 0.568818 | saJonMR |
548d738958b13f8c71e2e4d7c9fec12a2f52df80 | 316 | cpp | C++ | Source/HippoQOR/do_wrapper.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/HippoQOR/do_wrapper.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/HippoQOR/do_wrapper.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | //do_wrapper.cpp
#include "HippoQOR/do_wrapper.h"
//--------------------------------------------------------------------------------
namespace nsUnitTesting
{
//--------------------------------------------------------------------------------
VirtualDestructable::~VirtualDestructable()
{
}
}//nsUnitTesting
| 22.571429 | 83 | 0.35443 | mfaithfull |
548e9d8103cba0d2c43a2530193557f5d737f284 | 8,134 | cpp | C++ | src/main/cpp/rocketmq/CredentialsProvider.cpp | lizhanhui/rocketmq-client-cpp | d2001836e40d4f1da29ae7b2848fdfe0077ed1bf | [
"Apache-2.0"
] | null | null | null | src/main/cpp/rocketmq/CredentialsProvider.cpp | lizhanhui/rocketmq-client-cpp | d2001836e40d4f1da29ae7b2848fdfe0077ed1bf | [
"Apache-2.0"
] | null | null | null | src/main/cpp/rocketmq/CredentialsProvider.cpp | lizhanhui/rocketmq-client-cpp | d2001836e40d4f1da29ae7b2848fdfe0077ed1bf | [
"Apache-2.0"
] | 1 | 2021-09-16T06:31:07.000Z | 2021-09-16T06:31:07.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 38.733333 | 120 | 0.717482 | lizhanhui |
54908d60e1fa2dd3d5ae4d32336bf6d1e354b105 | 2,911 | cpp | C++ | samples/client/enumeration/Client.cpp | vlsinitsyn/axis1 | 65a622201e526dedf7c3aeadce7cac5bd79895bf | [
"Apache-2.0"
] | 1 | 2021-11-10T19:36:30.000Z | 2021-11-10T19:36:30.000Z | samples/client/enumeration/Client.cpp | vlsinitsyn/axis1 | 65a622201e526dedf7c3aeadce7cac5bd79895bf | [
"Apache-2.0"
] | null | null | null | samples/client/enumeration/Client.cpp | vlsinitsyn/axis1 | 65a622201e526dedf7c3aeadce7cac5bd79895bf | [
"Apache-2.0"
] | 2 | 2021-11-02T13:09:57.000Z | 2021-11-10T19:36:22.000Z |
#include "EnumerationWS.hpp"
#include <stdlib.h> // For malloc(), calloc(), strdup() and free()
#include <iostream>
#define WSDL_DEFAULT_ENDPOINT "http://localhost:80/axis/enumeration"
static void usage( char * programName, char * defaultURL)
{
cout << "Usage:" << endl
<< programName << " [-? | service_url] ... | 21.723881 | 89 | 0.571968 | vlsinitsyn |
5496e5f2c2d9d4d1c0f06af597e04c1a5be7b8db | 30,774 | hpp | C++ | include/misc.hpp | harith-alsafi/statistic-model-cpp | 0883f208ff6dcdc6634b95e88b92e9097bd76475 | [
"Condor-1.1",
"Naumen",
"Xnet",
"X11",
"MS-PL"
] | null | null | null | include/misc.hpp | harith-alsafi/statistic-model-cpp | 0883f208ff6dcdc6634b95e88b92e9097bd76475 | [
"Condor-1.1",
"Naumen",
"Xnet",
"X11",
"MS-PL"
] | null | null | null | include/misc.hpp | harith-alsafi/statistic-model-cpp | 0883f208ff6dcdc6634b95e88b92e9097bd76475 | [
"Condor-1.1",
"Naumen",
"Xnet",
"X11",
"MS-PL"
] | null | null | null | #pragma once
#include <vector>
#include <string>
#include <iostream>
#include <fstream>
/**
* @file misc.hpp
* @author Harith Al-Safi
* @brief
* @version 0.1
* @date 2021-12-10
*
* @copyright Copyright (c) 2021
*
*/
#include <algorithm>
#include <numeric>
#include "graphs.hpp"
/**
* @brief Operator to ... | 30.052734 | 96 | 0.34136 | harith-alsafi |
549a4413d99a4670838f6d27035dc1c820d069e9 | 3,305 | cpp | C++ | Assignment/OpenGLEngineA4/OpenGLEngine/SphereContactGeneratorSystem.cpp | GBCNewGamePlus/Physics | 739a244cfee506b3506a2bc6ec0dcdebe2c5417d | [
"MIT"
] | null | null | null | Assignment/OpenGLEngineA4/OpenGLEngine/SphereContactGeneratorSystem.cpp | GBCNewGamePlus/Physics | 739a244cfee506b3506a2bc6ec0dcdebe2c5417d | [
"MIT"
] | null | null | null | Assignment/OpenGLEngineA4/OpenGLEngine/SphereContactGeneratorSystem.cpp | GBCNewGamePlus/Physics | 739a244cfee506b3506a2bc6ec0dcdebe2c5417d | [
"MIT"
] | null | null | null | #include "SphereContactGeneratorSystem.h"
#include "ParticleContactComponent.h"
namespace Reality
{
SphereContactGeneratorSystem::SphereContactGeneratorSystem()
{
requireComponent<SphereComponent>();
requireComponent<ParticleComponent>();
requireComponent<TransformComponent>();
}
void SphereContactGenerat... | 31.778846 | 96 | 0.646596 | GBCNewGamePlus |
549e0a60308d6fc7cd2622cc282f2236689aee00 | 2,950 | cc | C++ | DAPPLES.cc | hkktr/POLSKI-SPOJ | 59f7e0be99fca6532681c2ca01c8a7d97c6b5eed | [
"Unlicense"
] | 1 | 2021-02-01T11:21:56.000Z | 2021-02-01T11:21:56.000Z | DAPPLES.cc | hkktr/POLSKI-SPOJ | 59f7e0be99fca6532681c2ca01c8a7d97c6b5eed | [
"Unlicense"
] | null | null | null | DAPPLES.cc | hkktr/POLSKI-SPOJ | 59f7e0be99fca6532681c2ca01c8a7d97c6b5eed | [
"Unlicense"
] | 1 | 2022-01-28T15:25:45.000Z | 2022-01-28T15:25:45.000Z | // C++14 (gcc 8.3)
#include <cmath>
#include <iostream>
#include <limits>
#include <vector>
constexpr int kG{1'000};
long long CalculateTreeHeight(long long height, int max_velocity) {
return static_cast<long long>(std::pow(max_velocity, 2)) / (2 * kG) + height;
}
class Resident {
public:
Resident... | 28.365385 | 80 | 0.591525 | hkktr |
54a0b6e2a9f9e376b72d0ade5bee4b71640c8e76 | 3,711 | cpp | C++ | Src/Eni/Gpio/STM32/Gpio.cpp | vlad230596/Eni | 2bbd07b6e4e20b2c2a6ad6fdc9d948e6352eecb7 | [
"MIT"
] | null | null | null | Src/Eni/Gpio/STM32/Gpio.cpp | vlad230596/Eni | 2bbd07b6e4e20b2c2a6ad6fdc9d948e6352eecb7 | [
"MIT"
] | null | null | null | Src/Eni/Gpio/STM32/Gpio.cpp | vlad230596/Eni | 2bbd07b6e4e20b2c2a6ad6fdc9d948e6352eecb7 | [
"MIT"
] | null | null | null |
#include "EniConfig.h"
#if defined(ENI_GPIO) && defined(ENI_STM)
#include "../Gpio.h"
#include "GpioPin.h"
#if !IS_ENI_GPIO_SUPPORTED
#if defined(ENI_HAL_INCLUDE_FILE)
#include ENI_HAL_INCLUDE_FILE
#else
#error "HAL include file missing declaration"
#endif
#endif
namespace Eni {
void Gpio::applyConfig(const ... | 21.327586 | 126 | 0.70574 | vlad230596 |
54a1285f6999c571c5406de8597e25057d1389cb | 2,537 | hpp | C++ | cpp/archive/archive-good-stuff/db.hpp | MomsFriendlyRobotCompany/gecko | f340381113bdb423a39d47aaee61e013bb9e002a | [
"MIT"
] | 2 | 2020-03-11T03:53:19.000Z | 2020-10-06T03:18:32.000Z | cpp/archive/archive-good-stuff/db.hpp | MomsFriendlyRobotCompany/gecko | f340381113bdb423a39d47aaee61e013bb9e002a | [
"MIT"
] | null | null | null | cpp/archive/archive-good-stuff/db.hpp | MomsFriendlyRobotCompany/gecko | f340381113bdb423a39d47aaee61e013bb9e002a | [
"MIT"
] | null | null | null | /**************************************************\
* The MIT License (MIT)
* Copyright (c) 2014 Kevin Walchko
* see LICENSE for full details
\**************************************************/
#pragma once
#include <string>
#include <map>
#include <tuple>
#include <exception>
#include <gecko/exceptions.hpp>
struct... | 29.5 | 94 | 0.590067 | MomsFriendlyRobotCompany |
54a2408ceeedf2c24a17f3501e5dd355dc4906f8 | 9,375 | cc | C++ | content/browser/service_worker/service_worker_context_unittest.cc | Acidburn0zzz/chromium-1 | 4c08f442d2588a2c7cfaa117a55bd87d2ac32f9a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/browser/service_worker/service_worker_context_unittest.cc | Acidburn0zzz/chromium-1 | 4c08f442d2588a2c7cfaa117a55bd87d2ac32f9a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/browser/service_worker/service_worker_context_unittest.cc | Acidburn0zzz/chromium-1 | 4c08f442d2588a2c7cfaa117a55bd87d2ac32f9a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2013 The Chromium 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 "content/public/browser/service_worker_context.h"
#include "base/files/scoped_temp_dir.h"
#include "base/logging.h"
#include "base/message_loop/... | 31.779661 | 80 | 0.730773 | Acidburn0zzz |
54a47a460b163f0d3a76d7153685638c52a9e81b | 2,135 | cc | C++ | deadrec_montecarlo_gyro/DeadRecMonteCarlo.cc | ryuichiueda/ProbabilisticRaspiMouse | de1c58f93d664d15d4b3f8f99c5a2ce6e56240c4 | [
"MIT"
] | 5 | 2015-08-08T09:25:35.000Z | 2022-02-17T04:43:10.000Z | deadrec_montecarlo_gyro/DeadRecMonteCarlo.cc | ryuichiueda/ProbabilisticRaspiMouse | de1c58f93d664d15d4b3f8f99c5a2ce6e56240c4 | [
"MIT"
] | null | null | null | deadrec_montecarlo_gyro/DeadRecMonteCarlo.cc | ryuichiueda/ProbabilisticRaspiMouse | de1c58f93d664d15d4b3f8f99c5a2ce6e56240c4 | [
"MIT"
] | null | null | null | #include "DeadRecMonteCarlo.h"
#include <iostream>
#include <limits.h>
#include <cmath>
using namespace std;
DeadRecMonteCarlo::DeadRecMonteCarlo(int num, ifstream *ifs)
{
Pose p{0.0,0.0,0.0};
m_poses.insert(m_poses.begin(),num,p);
m_rand_ifs = ifs;
m_step = 0;
m_distance_max_noise_ratio = 0.05; // 5% noise
m_... | 26.6875 | 96 | 0.694145 | ryuichiueda |
54a900df45ab89a3259ef4d311d1653fe67ab3c8 | 2,098 | hpp | C++ | linkedlist.hpp | joshroybal/cpp-data_structures | 3a570547d096da07c0b65ac0049d58e8d37f8dc3 | [
"MIT"
] | null | null | null | linkedlist.hpp | joshroybal/cpp-data_structures | 3a570547d096da07c0b65ac0049d58e8d37f8dc3 | [
"MIT"
] | null | null | null | linkedlist.hpp | joshroybal/cpp-data_structures | 3a570547d096da07c0b65ac0049d58e8d37f8dc3 | [
"MIT"
] | null | null | null | #ifndef LINKEDLIST_HPP
#define LINKEDLIST_HPP
#include <iostream>
#include <iomanip>
template <class T>
class LinkedList
{
public:
LinkedList() { head_ = 0; }
~LinkedList() { destroy_(head_); }
void Add(const T& k) { head_ = add_(k); }
void Reverse() { head_ = reverse_(head_, 0); }
in... | 20.98 | 77 | 0.596759 | joshroybal |
54a9ea3d1cf584a8d1505c07faf72697055e4aa0 | 26,301 | cpp | C++ | Vault/Source/Vault/Private/SLoaderWindow.cpp | Unreal-Vault/Vault-Dev | 5232794276b238c700c9f4a5fc5bfc4082612f04 | [
"MIT"
] | 11 | 2020-11-04T13:51:19.000Z | 2022-02-24T23:11:44.000Z | Vault/Source/Vault/Private/SLoaderWindow.cpp | Unreal-Vault/Vault-Dev | 5232794276b238c700c9f4a5fc5bfc4082612f04 | [
"MIT"
] | null | null | null | Vault/Source/Vault/Private/SLoaderWindow.cpp | Unreal-Vault/Vault-Dev | 5232794276b238c700c9f4a5fc5bfc4082612f04 | [
"MIT"
] | 3 | 2022-01-23T10:14:56.000Z | 2022-03-30T13:35:10.000Z | // Copyright Daniel Orchard 2020
#include "SLoaderWindow.h"
#include "Vault.h"
#include "VaultSettings.h"
#include "MetadataOps.h"
#include "SAssetPackTile.h"
#include "VaultStyle.h"
#include "AssetPublisher.h"
#include "VaultTypes.h"
#include "ImageUtils.h"
#include "EditorStyleSet.h"
#include "PakFileUtilities.h"
... | 27.685263 | 222 | 0.705943 | Unreal-Vault |
54ab167058ce125f5fa40b23910f9857416f3ac2 | 276 | hpp | C++ | src/Time.hpp | matheuscscp/parallel-programming-final-project | 088934d2cf188e2953de773424e877d78933ae3f | [
"MIT"
] | 2 | 2019-05-26T17:13:23.000Z | 2019-06-09T05:48:57.000Z | src/Time.hpp | matheuscscp/delta-stepping | 088934d2cf188e2953de773424e877d78933ae3f | [
"MIT"
] | null | null | null | src/Time.hpp | matheuscscp/delta-stepping | 088934d2cf188e2953de773424e877d78933ae3f | [
"MIT"
] | null | null | null | /*
* Time.hpp
*
* Created on: Nov 20, 2014
* Author: matheus
*/
#ifndef TIME_HPP_
#define TIME_HPP_
#include <sys/time.h>
class Stopwatch {
private:
timeval i;
public:
Stopwatch();
void start();
float time() const;
};
#endif /* TIME_HPP_ */
| 12 | 28 | 0.594203 | matheuscscp |
54ab50e9d1dc5c0ea91d3cb67f1434487d879004 | 681 | cpp | C++ | C++/holes.cpp | MADHAVAN001/Competitive-Programming-Practice | ca895315078880b403f4656677f60905681e7b86 | [
"MIT"
] | null | null | null | C++/holes.cpp | MADHAVAN001/Competitive-Programming-Practice | ca895315078880b403f4656677f60905681e7b86 | [
"MIT"
] | null | null | null | C++/holes.cpp | MADHAVAN001/Competitive-Programming-Practice | ca895315078880b403f4656677f60905681e7b86 | [
"MIT"
] | null | null | null | using namespace std;
#include<stdio.h>
#include<iostream>
int main()
{
int num_lines;
int count[50];
char text[50][100];
std::cout<<"This is the program to count number of holes in text";
std::cout<<endl<<"Please enter the number of lines follwed by each of the lines: ";
cin>>num_lines;
for(int i = 0;i<num_lines;i... | 20.636364 | 127 | 0.562408 | MADHAVAN001 |
54ab7ccc3f96c9c82b3d77678a96f0a80fb2ec06 | 51 | hpp | C++ | src/boost_metaparse_limit_sequence_size.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_metaparse_limit_sequence_size.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_metaparse_limit_sequence_size.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/metaparse/limit_sequence_size.hpp>
| 25.5 | 50 | 0.843137 | miathedev |
54b018813113477897e3df2360859fed801e2c3f | 18,212 | cpp | C++ | source/tflite-model/trained_model_compiled.cpp | LetsOKdo/dance-activated-microbit | 812c14169f4b8c61acbfc1ff0a7aeed4546eda13 | [
"MIT"
] | 3 | 2021-07-12T05:38:00.000Z | 2022-03-02T14:55:23.000Z | source/tflite-model/trained_model_compiled.cpp | LetsOKdo/dance-activated-microbit | 812c14169f4b8c61acbfc1ff0a7aeed4546eda13 | [
"MIT"
] | null | null | null | source/tflite-model/trained_model_compiled.cpp | LetsOKdo/dance-activated-microbit | 812c14169f4b8c61acbfc1ff0a7aeed4546eda13 | [
"MIT"
] | null | null | null | /* Generated by Edge Impulse
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute,... | 55.52439 | 180 | 0.652152 | LetsOKdo |
2a5ad1457cc8348ebe8d3ce6d5a3492f80578b89 | 2,210 | cc | C++ | nucleus/io/vcf_roundtrip_test.cc | gaybro8777/nucleus | 3bd27ac076a6f3f93e49a27ed60661858e727dda | [
"BSD-3-Clause"
] | 721 | 2018-03-30T14:34:17.000Z | 2022-03-23T00:09:18.000Z | nucleus/io/vcf_roundtrip_test.cc | aktaseren/nucleus | 3cc9412be81ed86a99fd7eb086ee94afe852759b | [
"Apache-2.0"
] | 38 | 2018-03-31T09:02:23.000Z | 2022-03-23T21:16:41.000Z | nucleus/io/vcf_roundtrip_test.cc | aktaseren/nucleus | 3cc9412be81ed86a99fd7eb086ee94afe852759b | [
"Apache-2.0"
] | 123 | 2018-03-30T21:51:18.000Z | 2021-12-13T06:59:31.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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 34.53125 | 77 | 0.701357 | gaybro8777 |
2a5b1d43a6c5dbb0d6a6fa542e67d6192c1ef1f8 | 2,458 | cpp | C++ | clients/cpp-pistache-server/generated/model/StringParameterValue.cpp | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 23 | 2017-08-01T12:25:26.000Z | 2022-01-25T03:44:11.000Z | clients/cpp-pistache-server/generated/model/StringParameterValue.cpp | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 35 | 2017-06-14T03:28:15.000Z | 2022-02-14T10:25:54.000Z | clients/cpp-pistache-server/generated/model/StringParameterValue.cpp | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 11 | 2017-08-31T19:00:20.000Z | 2021-12-19T12:04:12.000Z | /**
* Swaggy Jenkins
* Jenkins API clients generated from Swagger / Open API specification
*
* OpenAPI spec version: 1.1.1
* Contact: blah@cliffano.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
#i... | 17.941606 | 91 | 0.663548 | PankTrue |
2a5fa2c4b14955a5b98a9a263ce85d4c4965dfb4 | 412 | cpp | C++ | PTA/GPLT/L1-C/010.cpp | cnsteven/online-judge | 60ee841a97e2bc0dc9c7b23fe5daa186898ab8b7 | [
"MIT"
] | 1 | 2019-05-04T10:28:32.000Z | 2019-05-04T10:28:32.000Z | PTA/GPLT/L1-C/010.cpp | cnsteven/online-judge | 60ee841a97e2bc0dc9c7b23fe5daa186898ab8b7 | [
"MIT"
] | null | null | null | PTA/GPLT/L1-C/010.cpp | cnsteven/online-judge | 60ee841a97e2bc0dc9c7b23fe5daa186898ab8b7 | [
"MIT"
] | 3 | 2020-12-31T04:36:38.000Z | 2021-07-25T07:39:31.000Z | #include <iostream>
using namespace std;
int main() {
int a[3], i, j, t;
for (i = 0; i < 3; i++) {
cin >> a[i];
}
for (i = 0; i < 3; i++) {
for (j = i + 1; j < 3; j++) {
if (a[i] > a[j]) {
t = a[i];
a[i] = a[j];
a[j] = t;
... | 18.727273 | 49 | 0.26699 | cnsteven |
2a664c5cf5e630d6683e8571819067dd25e5e2cf | 1,044 | cpp | C++ | src/utils/chrono.cpp | Ymagis/EclairLooks | c04fb1af1160305fb1dbffb2ea92cc478cd70b31 | [
"BSD-3-Clause"
] | 9 | 2019-07-03T13:11:33.000Z | 2021-10-06T13:55:31.000Z | src/utils/chrono.cpp | Ymagis/EclairLooks | c04fb1af1160305fb1dbffb2ea92cc478cd70b31 | [
"BSD-3-Clause"
] | 1 | 2019-07-09T09:04:59.000Z | 2019-08-06T13:23:47.000Z | src/utils/chrono.cpp | Ymagis/EclairLooks | c04fb1af1160305fb1dbffb2ea92cc478cd70b31 | [
"BSD-3-Clause"
] | 4 | 2019-07-02T15:03:43.000Z | 2019-09-28T14:33:03.000Z | #include "chrono.h"
using namespace std::chrono;
Chrono::Chrono()
: _paused(false)
{
}
Chrono::~Chrono()
{
}
void Chrono::start()
{
// reset chrono if already running
_startTime = ClockT::now();
_current_duration = DurationT::zero();
}
void Chrono::pause()
{
if(!_paused)
{
_current_duration = ClockT::now... | 15.58209 | 69 | 0.675287 | Ymagis |
2a67473bd414db7b92dafbc301b5b719af1fa3eb | 1,372 | cpp | C++ | tps_base_link/src/tps_base_link.cpp | WRS-TNK/wrs_tnk_robot | 9cfaa5b1fab2c5a707ee434effe5a838b62424b7 | [
"MIT"
] | 1 | 2019-08-16T07:10:24.000Z | 2019-08-16T07:10:24.000Z | tps_base_link/src/tps_base_link.cpp | WRS-TNK/wrs_tnk_robot | 9cfaa5b1fab2c5a707ee434effe5a838b62424b7 | [
"MIT"
] | null | null | null | tps_base_link/src/tps_base_link.cpp | WRS-TNK/wrs_tnk_robot | 9cfaa5b1fab2c5a707ee434effe5a838b62424b7 | [
"MIT"
] | null | null | null | #include <ros/ros.h>
#include <tf2/LinearMath/Vector3.h>
#include <tf2/LinearMath/Quaternion.h>
#include <tf2/LinearMath/Matrix3x3.h>
#include <tf2_ros/transform_listener.h>
#include <geometry_msgs/TransformStamped.h>
#include <tf2_ros/transform_broadcaster.h>
int main(int argc, char** argv)
{
ros::init(argc, argv, ... | 24.945455 | 74 | 0.710641 | WRS-TNK |
2a6a133a0da6177d07c15430399e586a273213c1 | 5,355 | cpp | C++ | src/Q3D/Core/QMaterial.cpp | 565353780/opengl-automaskobj | bae7c35a0aece5a09ec67b02241aff58932c6daf | [
"MIT"
] | null | null | null | src/Q3D/Core/QMaterial.cpp | 565353780/opengl-automaskobj | bae7c35a0aece5a09ec67b02241aff58932c6daf | [
"MIT"
] | null | null | null | src/Q3D/Core/QMaterial.cpp | 565353780/opengl-automaskobj | bae7c35a0aece5a09ec67b02241aff58932c6daf | [
"MIT"
] | null | null | null | #include "QMaterial.h"
#include <qgl.h>
#include <cmath>
namespace GCL
{
QMaterial::QMaterial(QObject *parent) : QOpenGLShaderProgram(parent)
{
this->initializeOpenGLFunctions();
}
QMaterial::~QMaterial()
{
this->clearTextures();
}
void QMaterial::clearTextures()
{
foreach (auto texture, local_textures_)... | 25.140845 | 182 | 0.596078 | 565353780 |
2a716f151aa21b1f2c44232d9976c37867ed224e | 981 | cpp | C++ | USACO/2014/feb/hopscotch_bronze.cpp | nalinbhardwaj/olympiad | 6b640d8cef2fa16fb4e9776f8416575519357edf | [
"MIT"
] | 1 | 2018-12-14T07:51:26.000Z | 2018-12-14T07:51:26.000Z | USACO/2014/feb/hopscotch_bronze.cpp | nalinbhardwaj/olympiad | 6b640d8cef2fa16fb4e9776f8416575519357edf | [
"MIT"
] | null | null | null | USACO/2014/feb/hopscotch_bronze.cpp | nalinbhardwaj/olympiad | 6b640d8cef2fa16fb4e9776f8416575519357edf | [
"MIT"
] | 1 | 2019-06-23T10:34:19.000Z | 2019-06-23T10:34:19.000Z | /*
PROG: COW
LANG: C++
ID: nibnalin
*/
//USACO February Contest
#include <fstream>
#include <vector>
#include <climits>
using namespace std;
vector<vector<int> > grid;
vector< vector<long> > memtable;
int ans(long x, long y) {
if(memtable[x][y] == INT_MIN)
{
long paths = 0;
for(long i = (x-1);i >= 0;i--)
{... | 16.081967 | 50 | 0.540265 | nalinbhardwaj |
2a7337f9cdbf75041e5ccc49cc0a2c08423d85b3 | 21,980 | cpp | C++ | src/prod/src/systemservices/ServiceRoutingAgent.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/systemservices/ServiceRoutingAgent.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/systemservices/ServiceRoutingAgent.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 30.698324 | 144 | 0.655096 | gridgentoo |
2a75e213076961ba296d5a5866f686977fed0115 | 1,045 | hpp | C++ | dart/utils/amc/ReadSkeleton.hpp | jyf588/nimblephysics | 6c09228f0abcf7aa3526a8dd65cd2541aff32c4a | [
"BSD-2-Clause"
] | 2 | 2021-09-30T06:23:29.000Z | 2022-03-09T09:59:09.000Z | dart/utils/amc/ReadSkeleton.hpp | jyf588/nimblephysics | 6c09228f0abcf7aa3526a8dd65cd2541aff32c4a | [
"BSD-2-Clause"
] | null | null | null | dart/utils/amc/ReadSkeleton.hpp | jyf588/nimblephysics | 6c09228f0abcf7aa3526a8dd65cd2541aff32c4a | [
"BSD-2-Clause"
] | 1 | 2021-08-20T13:56:14.000Z | 2021-08-20T13:56:14.000Z | #ifndef AMC_READSKELETON_HPP
#define AMC_READSKELETON_HPP
#include <string>
#include <vector>
#include "Skeleton.hpp"
using std::string;
using std::vector;
bool ReadSkeleton(string filename, Library::Skeleton& into);
bool ReadSkeletonV(string filename, Library::Skeleton& into);
// read 'amc' file format (automati... | 30.735294 | 77 | 0.747368 | jyf588 |
2a760ab3d73648d5df9057572aa0c23fb98e8d87 | 9,193 | cpp | C++ | src/storage/http/StorageHttpDownloadHandler.cpp | xuguruogu/nebula | 50af1ae440415f89cc98b2b2567b53771310ac63 | [
"Apache-2.0"
] | null | null | null | src/storage/http/StorageHttpDownloadHandler.cpp | xuguruogu/nebula | 50af1ae440415f89cc98b2b2567b53771310ac63 | [
"Apache-2.0"
] | null | null | null | src/storage/http/StorageHttpDownloadHandler.cpp | xuguruogu/nebula | 50af1ae440415f89cc98b2b2567b53771310ac63 | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2019 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#include "storage/http/StorageHttpDownloadHandler.h"
#include "webservice/Common.h"
#include "process/ProcessUtils.h"
#i... | 34.82197 | 94 | 0.589579 | xuguruogu |
2a76f8f4ffcc98ceb57bede3502eab783f260a31 | 562 | hh | C++ | mimosa/git/commit.hh | abique/mimosa | 42c0041b570b55a24c606a7da79c70c9933c07d4 | [
"MIT"
] | 24 | 2015-01-19T16:38:24.000Z | 2022-01-15T01:25:30.000Z | mimosa/git/commit.hh | abique/mimosa | 42c0041b570b55a24c606a7da79c70c9933c07d4 | [
"MIT"
] | 2 | 2017-01-07T10:47:06.000Z | 2018-01-16T07:19:57.000Z | mimosa/git/commit.hh | abique/mimosa | 42c0041b570b55a24c606a7da79c70c9933c07d4 | [
"MIT"
] | 7 | 2015-01-19T16:38:31.000Z | 2020-12-12T19:10:30.000Z | #pragma once
# include <git2.h>
# include "../mimosa/mimosa/non-copyable.hh"
namespace mimosa
{
namespace git
{
class Commit : public NonCopyable
{
public:
inline Commit() : commit_(nullptr) {}
inline Commit(git_repository *repo, const git_oid *id) {
git_commit_lookup(&commit_, re... | 19.37931 | 62 | 0.617438 | abique |
2a7787d11a1172271f751bacc12720ae9cb1f8aa | 5,069 | cpp | C++ | petanque/src/exprs.cpp | Liblor/arybo | 9b98bda682ccd6d0c7e2ffd66281711b46ae23ed | [
"BSD-3-Clause"
] | 223 | 2016-09-12T16:31:12.000Z | 2022-03-14T08:32:04.000Z | petanque/src/exprs.cpp | Liblor/arybo | 9b98bda682ccd6d0c7e2ffd66281711b46ae23ed | [
"BSD-3-Clause"
] | 17 | 2016-11-02T15:20:15.000Z | 2021-10-02T23:30:58.000Z | petanque/src/exprs.cpp | Liblor/arybo | 9b98bda682ccd6d0c7e2ffd66281711b46ae23ed | [
"BSD-3-Clause"
] | 33 | 2016-09-13T07:28:31.000Z | 2022-01-18T07:06:42.000Z | // Copyright (c) 2016 Adrien Guinet <adrien@guinet.me>
// 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 the above copyright
// notice,... | 27.252688 | 105 | 0.642336 | Liblor |
2a7a17eb32aa76f1824c22d26b9978c1c654c6b4 | 1,152 | cpp | C++ | algospot/starforce/main.cpp | seirion/code | 3b8bf79764107255185061cec33decbc2235d03a | [
"Apache-2.0"
] | 13 | 2015-06-07T09:26:26.000Z | 2019-05-01T13:23:38.000Z | algospot/starforce/main.cpp | seirion/code | 3b8bf79764107255185061cec33decbc2235d03a | [
"Apache-2.0"
] | null | null | null | algospot/starforce/main.cpp | seirion/code | 3b8bf79764107255185061cec33decbc2235d03a | [
"Apache-2.0"
] | 4 | 2016-03-05T06:21:05.000Z | 2017-02-17T15:34:18.000Z | // http://algospot.com/judge/problem/read/STARFORCE
#include <cstdio>
#include <iostream>
using namespace std;
int n, m, s, best;
int in[200];
int pre[200][200]; // pre processed : or
void input() {
scanf("%d %d", &n, &m);
int i, j;
for (i = 0; i < n; i++) {
scanf("%d", &in[i]);
}
for (i... | 19.525424 | 53 | 0.454861 | seirion |
2a7cc699bef9f1b012901b82f1de0ee85c925214 | 2,241 | cpp | C++ | archives/problemset/acm.hdu.edu.cn/4727.cpp | BoleynSu/CP-CompetitiveProgramming | cc256bf402360fe0f689fdcdc4e898473a9594dd | [
"MIT"
] | 6 | 2019-03-23T21:06:25.000Z | 2021-06-27T05:22:41.000Z | archives/problemset/acm.hdu.edu.cn/4727.cpp | BoleynSu/CP-CompetitiveProgramming | cc256bf402360fe0f689fdcdc4e898473a9594dd | [
"MIT"
] | 1 | 2020-10-11T08:14:00.000Z | 2020-10-11T08:14:00.000Z | archives/problemset/acm.hdu.edu.cn/4727.cpp | BoleynSu/CP-CompetitiveProgramming | cc256bf402360fe0f689fdcdc4e898473a9594dd | [
"MIT"
] | 3 | 2019-03-23T21:06:31.000Z | 2021-10-24T01:44:01.000Z | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <iostream>
using namespace std;
//const double eps=1e-8;
//struct P
//{
// double x,y;
// void in(){scanf("%lf%lf",&x,&y);}
//};
//double dis(P a,P b)
//{
// return sqrt((a.x-b.x)*(a.x-b.x)+(a.... | 23.34375 | 69 | 0.374386 | BoleynSu |
2a81a4b4521f2e21d16f437712949fd2c3b8bc93 | 1,105 | cpp | C++ | src/erase_remove.cpp | ebayboy/cpp_demos | b01df202c0285bf232900662d336505520d5d24d | [
"Apache-2.0"
] | null | null | null | src/erase_remove.cpp | ebayboy/cpp_demos | b01df202c0285bf232900662d336505520d5d24d | [
"Apache-2.0"
] | null | null | null | src/erase_remove.cpp | ebayboy/cpp_demos | b01df202c0285bf232900662d336505520d5d24d | [
"Apache-2.0"
] | null | null | null | /*
erase && remove
*/
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(int args, char **argv)
{
vector<int> v;
for (size_t i = 0; i < 10; i++)
{
v.push_back(i);
if (i == 5 || i == 8)
v.push_back(i);
}
for (auto &&i : v)
... | 18.416667 | 57 | 0.420814 | ebayboy |
2a83cb520267fb9b00cd17a3bf6acc4d462c2568 | 2,453 | cpp | C++ | examples/undocumented/libshogun/features_copy_subset_simple_features.cpp | srgnuclear/shogun | 33c04f77a642416376521b0cd1eed29b3256ac13 | [
"Ruby",
"MIT"
] | 1 | 2015-11-05T18:31:14.000Z | 2015-11-05T18:31:14.000Z | examples/undocumented/libshogun/features_copy_subset_simple_features.cpp | waderly/shogun | 9288b6fa38e001d63c32188f7f847dadea66e2ae | [
"Ruby",
"MIT"
] | null | null | null | examples/undocumented/libshogun/features_copy_subset_simple_features.cpp | waderly/shogun | 9288b6fa38e001d63c32188f7f847dadea66e2ae | [
"Ruby",
"MIT"
] | null | null | null | /*
* 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 of the License, or
* (at your option) any later version.
*
* Written (W) 2011-2012 Heiko Strathmann
* Copyright (C) 201... | 31.050633 | 88 | 0.766001 | srgnuclear |
2a8472d1cf692179f88f0bd648b65ffcadde02f4 | 532 | cc | C++ | 003-xoxoxo-tcp/xoxoxo.cc | gynvael/stream | 2d1a3f25b2f83241b39dab931d9ff03fca81d26e | [
"MIT"
] | 152 | 2016-02-04T10:40:46.000Z | 2022-03-03T18:25:54.000Z | 003-xoxoxo-tcp/xoxoxo.cc | gynvael/stream | 2d1a3f25b2f83241b39dab931d9ff03fca81d26e | [
"MIT"
] | 4 | 2016-03-11T23:49:46.000Z | 2017-06-16T18:58:53.000Z | 003-xoxoxo-tcp/xoxoxo.cc | gynvael/stream | 2d1a3f25b2f83241b39dab931d9ff03fca81d26e | [
"MIT"
] | 48 | 2016-01-31T19:13:36.000Z | 2021-09-03T19:50:17.000Z | #include <cstdio>
#include "NetSock.h"
void usage() {
printf("usage: xoxoxo <host> <port>\n");
}
int main(int argc, char **argv) {
if (argc != 3) {
usage();
return 1;
}
unsigned short port;
if (sscanf(argv[2], "%hu", &port) != 1) {
usage();
return 2;
}
const char *ho... | 14.777778 | 45 | 0.511278 | gynvael |
2a84f22684d7b564d74896a34f15a6aa02daef67 | 4,930 | cpp | C++ | Libraries/libvitaboy/vbparse.cpp | daddesio/Niotso | 66ce47351427fa37c683f61003e0d3aa6b84e4f7 | [
"ISC"
] | 10 | 2017-04-28T08:09:25.000Z | 2022-03-28T11:08:18.000Z | Libraries/libvitaboy/vbparse.cpp | Fatbag/Niotso | 66ce47351427fa37c683f61003e0d3aa6b84e4f7 | [
"ISC"
] | null | null | null | Libraries/libvitaboy/vbparse.cpp | Fatbag/Niotso | 66ce47351427fa37c683f61003e0d3aa6b84e4f7 | [
"ISC"
] | 4 | 2015-06-23T11:06:34.000Z | 2017-01-17T03:50:08.000Z | /*
libvitaboy - Open source OpenGL TSO character animation library
vbparse.cpp - Copyright (c) 2012 Niotso Project <http://niotso.org/>
Author(s): Fatbag <X-Fi6@phppoll.org>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provi... | 30.8125 | 76 | 0.558621 | daddesio |
2a899caff1f02550a918d0971f15bf607f12f8d8 | 2,453 | cc | C++ | src/body.cc | wgtdkp/apollonia | 0e57af431818bc9a19e9952f4d4b2a294e1c9d8b | [
"MIT"
] | 126 | 2017-10-11T04:39:45.000Z | 2022-03-05T23:16:06.000Z | src/body.cc | FrostDescent/apollonia | 18f15102b1620d38de1b7de0939c9e93d8449f69 | [
"MIT"
] | 1 | 2020-11-08T15:01:28.000Z | 2020-11-08T15:01:28.000Z | src/body.cc | FrostDescent/apollonia | 18f15102b1620d38de1b7de0939c9e93d8449f69 | [
"MIT"
] | 24 | 2018-08-22T06:25:54.000Z | 2022-01-08T05:31:52.000Z | #include "body.h"
#include <algorithm>
namespace apollonia {
using std::abs;
void Body::set_mass(Float mass) {
mass_ = mass;
inv_mass_ = 1 / mass;
}
void Body::set_inertia(Float inertia) {
inertia_ = inertia;
inv_inertia_ = 1 / inertia;
}
bool Body::ShouldCollide(const Body& other) const {
return !(mass_... | 26.956044 | 87 | 0.630656 | wgtdkp |
2a8c25a01728f4ae28a96fee151383affdcce969 | 6,100 | cpp | C++ | TricksterEngine/src/Rendering/Text/Internal/Font.cpp | Trickje/Trickster | ab73f15ec1b45676a20793ad6d4e9acfc2ba944e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | TricksterEngine/src/Rendering/Text/Internal/Font.cpp | Trickje/Trickster | ab73f15ec1b45676a20793ad6d4e9acfc2ba944e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | TricksterEngine/src/Rendering/Text/Internal/Font.cpp | Trickje/Trickster | ab73f15ec1b45676a20793ad6d4e9acfc2ba944e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "Rendering/Text/Internal/Font.h"
#include "Core/Application.h"
#include "Rendering/ShaderManager.h"
#include "Rendering/Shader.h"
#include "Rendering/Window.h"
#include <glm/gtc/type_ptr.hpp>
using namespace TE;
#ifdef TRICKSTER_OPENGL
void Font::Initialize()
{
// configure VAO/VBO ... | 28.240741 | 187 | 0.62623 | Trickje |
2a9033e59bc54cb6063e2e3a1ef32b17cc82f547 | 2,105 | cpp | C++ | extras/cpp/main.cpp | skn123/DeslantImg | b7183ff31067e51d8dcba581c6241b15ceb87f28 | [
"MIT"
] | 115 | 2018-07-19T16:37:54.000Z | 2022-03-28T09:22:04.000Z | extras/cpp/main.cpp | skn123/DeslantImg | b7183ff31067e51d8dcba581c6241b15ceb87f28 | [
"MIT"
] | 5 | 2018-08-06T14:38:08.000Z | 2021-11-21T10:12:43.000Z | extras/cpp/main.cpp | skn123/DeslantImg | b7183ff31067e51d8dcba581c6241b15ceb87f28 | [
"MIT"
] | 36 | 2018-01-26T03:56:44.000Z | 2022-03-07T22:32:05.000Z | #ifdef USE_GPU
#include "DeslantImgGPU.hpp"
#else
#include "DeslantImgCPU.hpp"
#endif
#include <opencv2/imgcodecs.hpp>
#include <iostream>
int main(int argc, const char *argv[])
{
const cv::String opts =
"{help h usage ? | | print this message }"
"{@imagein |- | path name to read the input image... | 25.361446 | 114 | 0.651781 | skn123 |
2a90974d03cbd0acc93682c3cb5ca024d5f5cc92 | 3,348 | cc | C++ | src/statement.cc | xukl/BASIC-Compiler | 3b0f752df5b9301aa116811729e362bfeaa05e58 | [
"MIT"
] | null | null | null | src/statement.cc | xukl/BASIC-Compiler | 3b0f752df5b9301aa116811729e362bfeaa05e58 | [
"MIT"
] | null | null | null | src/statement.cc | xukl/BASIC-Compiler | 3b0f752df5b9301aa116811729e362bfeaa05e58 | [
"MIT"
] | null | null | null | #include "statement.hpp"
#include <sstream>
#include <stack>
#include <memory>
#include <utility>
#include <typeinfo>
namespace statement
{
std::ostream &operator<< (std::ostream &os, const statement &x)
{
x.print(os);
return os;
}
std::ostream &operator<< (std::ostream &os, const assignment &x)
{
x.print(os);
retu... | 28.615385 | 78 | 0.660992 | xukl |
2a914457d6f2022d1e593143d3b2c188989b1327 | 5,715 | cc | C++ | elements/analysis/aggcountervector.cc | timmytimj/fastclick | 260dfa7285e5fff3c916b8272249d6d393e61179 | [
"BSD-3-Clause-Clear"
] | 129 | 2015-10-08T14:38:35.000Z | 2022-03-06T14:54:44.000Z | elements/analysis/aggcountervector.cc | nic-bench/fastclick | 2812f0684050cec07e08f30d643ed121871cf25d | [
"BSD-3-Clause-Clear"
] | 241 | 2016-02-17T16:17:58.000Z | 2022-03-15T09:08:33.000Z | elements/analysis/aggcountervector.cc | nic-bench/fastclick | 2812f0684050cec07e08f30d643ed121871cf25d | [
"BSD-3-Clause-Clear"
] | 61 | 2015-12-17T01:46:58.000Z | 2022-02-07T22:25:19.000Z | /*
* aggcountervector.{cc,hh} -- count packets/bytes with given aggregate
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, subject to the conditions
* listed in th... | 22.951807 | 106 | 0.665267 | timmytimj |
2a91841d2ecf5ba60689bdd71a926067f8f69011 | 12,043 | cpp | C++ | psx/_dump_/43/_dump_c_src_/diabpsx/source/inv.cpp | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 15 | 2018-06-28T01:11:25.000Z | 2021-09-27T15:57:18.000Z | psx/_dump_/43/_dump_c_src_/diabpsx/source/inv.cpp | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-29T04:08:23.000Z | 2019-10-17T13:57:22.000Z | psx/_dump_/43/_dump_c_src_/diabpsx/source/inv.cpp | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-28T01:11:34.000Z | 2020-05-23T09:21:48.000Z | // C:\diabpsx\SOURCE\INV.CPP
#include "types.h"
// address: 0x801558DC
// line start: 434
// line end: 435
void FreeInvGFX__Fv() {
}
// address: 0x801558E4
// line start: 440
// line end: 447
void InvDrawSlot__Fiii(int X, int Y, int Frame) {
// register: 2
// size: 0x28
register struct POLY_FT4 *Ft4;
}
// ... | 16.633978 | 174 | 0.630242 | maoa3 |
2a95e492aa69efa777e391e9c118fc572e339acd | 7,859 | cc | C++ | Replicator/Worker.cc | bjornd/couchbase-lite-core | 5da4cc825021bb90be591ae4ab835be201333a0a | [
"Apache-2.0"
] | null | null | null | Replicator/Worker.cc | bjornd/couchbase-lite-core | 5da4cc825021bb90be591ae4ab835be201333a0a | [
"Apache-2.0"
] | null | null | null | Replicator/Worker.cc | bjornd/couchbase-lite-core | 5da4cc825021bb90be591ae4ab835be201333a0a | [
"Apache-2.0"
] | null | null | null | //
// Worker.cc
//
// Copyright (c) 2017 Couchbase, Inc 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 ... | 29.882129 | 95 | 0.56992 | bjornd |
2a9962ad8459dd796b9b7bb9f7d2e9a7ff9d9fc4 | 9,610 | cpp | C++ | engine/map/map.cpp | fcarreiro/genesis | 48b5c3bac888d999fb1ae17f1a864b59e2c85bc8 | [
"MIT"
] | null | null | null | engine/map/map.cpp | fcarreiro/genesis | 48b5c3bac888d999fb1ae17f1a864b59e2c85bc8 | [
"MIT"
] | null | null | null | engine/map/map.cpp | fcarreiro/genesis | 48b5c3bac888d999fb1ae17f1a864b59e2c85bc8 | [
"MIT"
] | null | null | null | #include "../precompiled/stdafx.h"
#include "../engine/base.h"
#include "../../common/utility/ext_xml.h"
#include "../../common/utility/ext_util.h"
//////////////////////////////////////////////////////////////////////////
// CMap default constructor & destructor
////////////////////////////////////////////////... | 25.695187 | 85 | 0.564828 | fcarreiro |
2a9aa099e30b5c5cf3dfc1440168e39eeb1f2bd9 | 9,750 | cc | C++ | tensorflow/compiler/xla/service/interpreter/executable_base.cc | Nyrio/tensorflow | c111a7e2f5a6ecd3a06d47c63ff552ee0373985d | [
"Apache-2.0"
] | null | null | null | tensorflow/compiler/xla/service/interpreter/executable_base.cc | Nyrio/tensorflow | c111a7e2f5a6ecd3a06d47c63ff552ee0373985d | [
"Apache-2.0"
] | null | null | null | tensorflow/compiler/xla/service/interpreter/executable_base.cc | Nyrio/tensorflow | c111a7e2f5a6ecd3a06d47c63ff552ee0373985d | [
"Apache-2.0"
] | null | null | null | /* Copyright 2020 The TensorFlow 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 a... | 41.845494 | 80 | 0.679487 | Nyrio |
2a9aafba3c5d61dd0f6dbd47296f721c6961ab66 | 1,844 | cpp | C++ | Interactive/InpaintingIterationRecord.cpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 39 | 2015-01-01T07:59:51.000Z | 2021-10-01T18:11:46.000Z | Interactive/InpaintingIterationRecord.cpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 1 | 2019-04-24T09:56:15.000Z | 2019-04-24T14:45:46.000Z | Interactive/InpaintingIterationRecord.cpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 18 | 2015-01-11T15:10:23.000Z | 2022-02-24T20:02:10.000Z | /*=========================================================================
*
* Copyright David Doria 2011 daviddoria@gmail.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 at
*
*... | 30.229508 | 97 | 0.677332 | jingtangliao |
2a9aeaa398ef199bf8d61594d1cedc358518551e | 211 | hpp | C++ | Source/panels/spell_book.hpp | stefanmielke/devilutionX | 074f191be80db73b1158dd137f7bee4c767e48ce | [
"Unlicense"
] | 2 | 2022-01-14T06:10:31.000Z | 2022-02-28T23:30:26.000Z | Source/panels/spell_book.hpp | stefanmielke/devilutionX | 074f191be80db73b1158dd137f7bee4c767e48ce | [
"Unlicense"
] | 1 | 2022-01-31T07:44:04.000Z | 2022-01-31T07:44:04.000Z | Source/panels/spell_book.hpp | stefanmielke/devilutionX | 074f191be80db73b1158dd137f7bee4c767e48ce | [
"Unlicense"
] | 1 | 2021-10-31T01:32:43.000Z | 2021-10-31T01:32:43.000Z | #pragma once
#include "engine/surface.hpp"
namespace devilution {
void InitSpellBook();
void FreeSpellBook();
void CheckSBook();
void DrawSpellBook(const Surface &out);
} // namespace devilution
| 16.230769 | 40 | 0.71564 | stefanmielke |
2a9d40e665f2116b536fe4cc3d176f4edcc1ec46 | 413 | cpp | C++ | Dataset/Leetcode/valid/48/348.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/48/348.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/48/348.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
void XXX(vector<vector<int>>& matrix) {
int m=matrix.size(),n=matrix[0].size();
for(int i=0;i<m/2;++i)
for(int j=0;j<n;++j)
{
swap(matrix[i][j],matrix[m-i-1][j]);
}
for(int i=0;i<m;++i)
for(int j=i+1;j<n... | 22.944444 | 52 | 0.389831 | kkcookies99 |
2a9dfbd70b1bbcdbe68b98864c70517cf93dc2e7 | 10,703 | cpp | C++ | tests/src/library.cpp | kstenerud/c-compact-time | b128d1298af83c7d37e3d055b7742d668863a26a | [
"MIT"
] | 1 | 2019-09-30T16:54:46.000Z | 2019-09-30T16:54:46.000Z | tests/src/library.cpp | kstenerud/c-compact-time | b128d1298af83c7d37e3d055b7742d668863a26a | [
"MIT"
] | null | null | null | tests/src/library.cpp | kstenerud/c-compact-time | b128d1298af83c7d37e3d055b7742d668863a26a | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <compact_time/compact_time.h>
// #define KSLog_LocalMinLevel KSLOG_LEVEL_TRACE
#include <kslog/kslog.h>
TEST(Library, version)
{
const char* expected = "1.0.0";
const char* actual = ct_version();
ASSERT_STREQ(expected, actual);
}
static void fill_date(ct_date* date, int ... | 42.472222 | 187 | 0.669812 | kstenerud |
2aa173d69c8bd5fad30c1658343077bad18134fb | 5,215 | cpp | C++ | src/dtkWidgets/dtkWidgetsTagCloudView.cpp | eti-nne/dtk | b5095c7a181e7497391a6a1fa0bb37e71dfa4b56 | [
"BSD-3-Clause"
] | null | null | null | src/dtkWidgets/dtkWidgetsTagCloudView.cpp | eti-nne/dtk | b5095c7a181e7497391a6a1fa0bb37e71dfa4b56 | [
"BSD-3-Clause"
] | null | null | null | src/dtkWidgets/dtkWidgetsTagCloudView.cpp | eti-nne/dtk | b5095c7a181e7497391a6a1fa0bb37e71dfa4b56 | [
"BSD-3-Clause"
] | null | null | null | /* dtkWidgetsTagCloudView.cpp ---
*
* Author: Julien Wintz
* Created: Mon Apr 15 14:39:34 2013 (+0200)
* Version:
* Last-Updated: Mon Apr 15 14:44:56 2013 (+0200)
* By: Julien Wintz
* Update #: 7
*/
/* Change Log:
*
*/
#include "dtkWidgetsTagCloudDesc.h"
#include "dtkWidgetsTagCloudList.h"
... | 22.286325 | 126 | 0.635858 | eti-nne |
2aa2010afd6be7798a9d1041d28c63f6924839fd | 1,777 | hpp | C++ | include/veriblock/entities/popdata.hpp | overcookedpanda/alt-integration-cpp | 7932e79a77d9514ca0e0354636e77fba1845d707 | [
"MIT"
] | null | null | null | include/veriblock/entities/popdata.hpp | overcookedpanda/alt-integration-cpp | 7932e79a77d9514ca0e0354636e77fba1845d707 | [
"MIT"
] | null | null | null | include/veriblock/entities/popdata.hpp | overcookedpanda/alt-integration-cpp | 7932e79a77d9514ca0e0354636e77fba1845d707 | [
"MIT"
] | null | null | null | // Copyright (c) 2019-2020 Xenios SEZC
// https://www.veriblock.org
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef ALT_INTEGRATION_INCLUDE_VERIBLOCK_ENTITIES_ALT_POP_TRANSACTION_HPP_
#define ALT_INTEGRATION_INCLUDE_VERI... | 25.385714 | 77 | 0.720878 | overcookedpanda |
2aa48b48ffb0b7acd42535b935e6941388b394ba | 700 | cpp | C++ | cpp/utility_declval.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | cpp/utility_declval.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | cpp/utility_declval.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | /*
g++ --std=c++20 -pthread -o ../_build/cpp/utility_declval.exe ./cpp/utility_declval.cpp && (cd ../_build/cpp/;./utility_declval.exe)
https://en.cppreference.com/w/cpp/utility/declval
*/
#include <utility>
#include <iostream>
struct Default { int foo() const { return 1; } };
struct NonDefault
{
NonDefault() = del... | 31.818182 | 132 | 0.568571 | rpuntaie |
2aa9c6bd380b1487f674bc761d7efc628e018703 | 7,631 | cpp | C++ | UnitTests/CommandBuffer/src/CommandBuffer.cpp | Gpinchon/OCRA | 341bb07facc616f1f8a27350054d1e86f022d7c6 | [
"Apache-2.0"
] | null | null | null | UnitTests/CommandBuffer/src/CommandBuffer.cpp | Gpinchon/OCRA | 341bb07facc616f1f8a27350054d1e86f022d7c6 | [
"Apache-2.0"
] | null | null | null | UnitTests/CommandBuffer/src/CommandBuffer.cpp | Gpinchon/OCRA | 341bb07facc616f1f8a27350054d1e86f022d7c6 | [
"Apache-2.0"
] | null | null | null | #include <Instance.hpp>
#include <PhysicalDevice.hpp>
#include <Device.hpp>
#include <Queue/Queue.hpp>
#include <Queue/Fence.hpp>
#include <Queue/Semaphore.hpp>
#include <Command/Pool.hpp>
#include <Command/Buffer.hpp>
#include <Memory.hpp>
#include <Buffer.hpp>
#include <Common.hpp>
#include <future>
#include <iostr... | 42.394444 | 185 | 0.653781 | Gpinchon |
2aada408721b2630a046925c15f9e820d8849fe7 | 2,813 | hpp | C++ | PlanetaMatchMakerServer/library/minimal_serializer/type_traits.hpp | InstytutXR/PlanetaMatchMaker | 4bf7503c031aea467c191c3a0d14c6dd58354f99 | [
"MIT"
] | 6 | 2019-08-15T09:48:55.000Z | 2021-07-25T14:40:59.000Z | PlanetaMatchMakerServer/library/minimal_serializer/type_traits.hpp | InstytutXR/PlanetaMatchMaker | 4bf7503c031aea467c191c3a0d14c6dd58354f99 | [
"MIT"
] | 43 | 2019-12-25T14:54:52.000Z | 2022-02-24T17:22:48.000Z | PlanetaMatchMakerServer/library/minimal_serializer/type_traits.hpp | InstytutXR/PlanetaMatchMaker | 4bf7503c031aea467c191c3a0d14c6dd58354f99 | [
"MIT"
] | 2 | 2020-05-06T20:14:44.000Z | 2020-06-02T21:21:10.000Z | /*
The MIT License (MIT)
Copyright (c) 2019 Cdec
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,... | 40.768116 | 460 | 0.766086 | InstytutXR |
2aaecd0f7cb573a49029330dd55990710e46610b | 1,559 | cpp | C++ | src/cfiddle/resources/libcfiddle/cfiddle.cpp | NVSL/fiddle | 5edffa92caa0894057a449ad5accb23af748e657 | [
"MIT"
] | 2 | 2022-01-22T06:12:52.000Z | 2022-01-24T07:29:44.000Z | src/cfiddle/resources/libcfiddle/cfiddle.cpp | NVSL/cfiddle | 5edffa92caa0894057a449ad5accb23af748e657 | [
"MIT"
] | null | null | null | src/cfiddle/resources/libcfiddle/cfiddle.cpp | NVSL/cfiddle | 5edffa92caa0894057a449ad5accb23af748e657 | [
"MIT"
] | null | null | null | #include"cfiddle.hpp"
#include<sstream>
#include<string>
#include<fstream>
#include"DataSet.hpp"
#include"PerfCounter.hpp"
#include"walltime.h"
double start_time = 0.0;
DataSet * get_dataset();
extern "C"
void write_stats(char * filename) {
//std::cerr << "Writing to " << filename << "\n";
std::ofstream out(filen... | 17.131868 | 59 | 0.702373 | NVSL |
2aaf1393cc24731b2409395aefa6e0433686823d | 15,716 | cpp | C++ | mergeBathy/Error_Estimator/Bathy_Grid.cpp | Sammie-Jo/MergeBathy_Repos-MergeBathy_CPP | 9996f5ee40e40e892ce5eb77dc4bb67930af4005 | [
"CC0-1.0"
] | 4 | 2017-05-04T15:50:48.000Z | 2020-07-30T03:52:07.000Z | mergeBathy/Error_Estimator/Bathy_Grid.cpp | Sammie-Jo/MergeBathy_Repos-MergeBathy_CPP | 9996f5ee40e40e892ce5eb77dc4bb67930af4005 | [
"CC0-1.0"
] | null | null | null | mergeBathy/Error_Estimator/Bathy_Grid.cpp | Sammie-Jo/MergeBathy_Repos-MergeBathy_CPP | 9996f5ee40e40e892ce5eb77dc4bb67930af4005 | [
"CC0-1.0"
] | 2 | 2017-01-11T09:53:26.000Z | 2020-07-30T03:52:09.000Z | /**********************************************************************
* CC0 License
**********************************************************************
* MergeBathy - Tool to combine one or more bathymetric data files onto a single input grid.
* Written in 2015 by Samantha J.Zambo(samantha.zambo@gmail.com) while e... | 31.62173 | 316 | 0.65042 | Sammie-Jo |
2ab0701e04a3d9f65ebe3b2ea06ed955efcc6494 | 713 | cpp | C++ | src/ck/core/customstream.cpp | opala-studios/ck | dff23ff3912de114ef0c7ca57da6506f0a9bee51 | [
"Zlib"
] | 23 | 2020-02-23T23:20:22.000Z | 2021-12-30T16:09:23.000Z | src/ck/core/customstream.cpp | opala-studios/ck | dff23ff3912de114ef0c7ca57da6506f0a9bee51 | [
"Zlib"
] | 3 | 2020-03-17T05:50:40.000Z | 2020-10-12T18:18:44.000Z | src/ck/core/customstream.cpp | opala-studios/ck | dff23ff3912de114ef0c7ca57da6506f0a9bee51 | [
"Zlib"
] | 10 | 2020-03-02T15:07:32.000Z | 2022-01-29T03:34:55.000Z | #include "ck/core/customstream.h"
namespace Cki
{
CustomStream::CustomStream(CkCustomFile* file) :
m_file(file)
{}
CustomStream::~CustomStream()
{
delete m_file;
}
bool CustomStream::isValid() const
{
return m_file->isValid();
}
int CustomStream::read(void* buf, int bytes)
{
return m_file->read(buf... | 12.963636 | 51 | 0.645161 | opala-studios |
2ab7d255232ba4334fef0c3c8039f8ab4d62b85e | 23,760 | cc | C++ | pmlc/dialect/pxa/analysis/strides.cc | IsolatedMy/plaidml | 34538a9224e770fd79151105399d8d7ea08678c0 | [
"Apache-2.0"
] | null | null | null | pmlc/dialect/pxa/analysis/strides.cc | IsolatedMy/plaidml | 34538a9224e770fd79151105399d8d7ea08678c0 | [
"Apache-2.0"
] | 65 | 2020-08-24T07:41:09.000Z | 2021-07-19T09:13:49.000Z | pmlc/dialect/pxa/analysis/strides.cc | Flex-plaidml-team/plaidml | 1070411a87b3eb3d94674d4d041ed904be3e7d87 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020, Intel Corporation
#include "pmlc/dialect/pxa/analysis/strides.h"
#include <algorithm>
#include <map>
#include <numeric>
#include <string>
#include <utility>
#include <vector>
#include "mlir/Dialect/Affine/IR/AffineValueMap.h"
#include "mlir/IR/BuiltinOps.h"
#include "mlir/Support/DebugStringHelper... | 32.151556 | 80 | 0.642971 | IsolatedMy |
2ababea0ef23519b966cf9c4d85576fa04565f94 | 3,055 | cpp | C++ | projects/InjectDLL/features/launch_no_deceleration.cpp | Mawex/wotw-client | 19cd13a5cfab0b504d5f1aa3da6eb11e631bd9ca | [
"MIT"
] | null | null | null | projects/InjectDLL/features/launch_no_deceleration.cpp | Mawex/wotw-client | 19cd13a5cfab0b504d5f1aa3da6eb11e631bd9ca | [
"MIT"
] | null | null | null | projects/InjectDLL/features/launch_no_deceleration.cpp | Mawex/wotw-client | 19cd13a5cfab0b504d5f1aa3da6eb11e631bd9ca | [
"MIT"
] | null | null | null | #include <dll_main.h>
#include <Il2CppModLoader/il2cpp_helpers.h>
#include <Il2CppModLoader/interception_macros.h>
using namespace modloader;
INJECT_C_DLLEXPORT bool in_menu();
namespace
{
constexpr float NO_AIR_DECELERATION_DURATION = 0.2f;
constexpr float NO_AIR_DECELERATION_RESET_DURATION = 0.2f;
flo... | 39.166667 | 125 | 0.656301 | Mawex |
2abeb9fd1d1143367447899d45b6634125850eb3 | 903 | hpp | C++ | server/src/static_controller.hpp | R0nd/beefweb | d61e03eef97e089f36847ac34bba4ec59c1bb5cd | [
"MIT"
] | 148 | 2017-08-25T13:32:05.000Z | 2022-03-17T18:40:49.000Z | server/src/static_controller.hpp | R0nd/beefweb | d61e03eef97e089f36847ac34bba4ec59c1bb5cd | [
"MIT"
] | 160 | 2017-08-16T19:58:53.000Z | 2022-02-26T09:57:38.000Z | server/src/static_controller.hpp | R0nd/beefweb | d61e03eef97e089f36847ac34bba4ec59c1bb5cd | [
"MIT"
] | 24 | 2018-05-23T18:59:47.000Z | 2022-03-23T17:25:01.000Z | #pragma once
#include "controller.hpp"
#include "settings.hpp"
namespace msrv {
class Router;
class ContentTypeMap;
class WorkQueue;
class StaticController : public ControllerBase
{
public:
StaticController(
Request* request,
const Path& targetDir,
const ContentTypeMap& contentTypes);
... | 20.066667 | 46 | 0.679956 | R0nd |
2abf210d52a35dc06f0affc7c10b492d6f89479f | 291 | cpp | C++ | predavanje1/operatori3.cpp | Miillky/algoritmi_i_strukture_podataka | b5813f4b897a1370b6f46782bf5ecd474d0d7e20 | [
"MIT"
] | null | null | null | predavanje1/operatori3.cpp | Miillky/algoritmi_i_strukture_podataka | b5813f4b897a1370b6f46782bf5ecd474d0d7e20 | [
"MIT"
] | null | null | null | predavanje1/operatori3.cpp | Miillky/algoritmi_i_strukture_podataka | b5813f4b897a1370b6f46782bf5ecd474d0d7e20 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int a = 3;
if (int b = 2; a > b) // javlja warning - init-statement in selection statements only available with -std=c++1z or -std=gnu++1z
{
cout << a << endl;
cout << b << endl;
}
cout << a << endl;
} | 24.25 | 131 | 0.549828 | Miillky |
2abfff4018ad1033983ed6c1d115a1c39441d92c | 948 | cpp | C++ | lib/matrix/MatrixOperators.cpp | frndmg/simplex-method | 0fe509d43ac794344b5d95f7e4faacd0dd444d56 | [
"MIT"
] | 2 | 2019-11-25T20:54:56.000Z | 2019-11-25T20:55:20.000Z | lib/matrix/MatrixOperators.cpp | frndmg/simplex-method | 0fe509d43ac794344b5d95f7e4faacd0dd444d56 | [
"MIT"
] | null | null | null | lib/matrix/MatrixOperators.cpp | frndmg/simplex-method | 0fe509d43ac794344b5d95f7e4faacd0dd444d56 | [
"MIT"
] | 1 | 2019-11-25T23:14:18.000Z | 2019-11-25T23:14:18.000Z | #include "Matrix.hpp"
Matrix Matrix::operator+ () const {
return *this;
}
Matrix Matrix::operator- () const {
return operator*(-1.);
}
Matrix Matrix::operator+ (const real_t &scalar) const {
Matrix A = *this;
for(size_t y = 0; y < A.Height(); ++y)
A[y] = A[y] + scalar;
return A;
}
Matrix Matrix::operator- ... | 19.346939 | 67 | 0.619198 | frndmg |
2ac265cf382f478e608bd8422b037015ab3bcd7e | 1,949 | hpp | C++ | include/crab/cfg/cfg_operators.hpp | LinerSu/crab | 8f3516f4b4765f4a093bb3c3a94ac2daa174130c | [
"Apache-2.0"
] | null | null | null | include/crab/cfg/cfg_operators.hpp | LinerSu/crab | 8f3516f4b4765f4a093bb3c3a94ac2daa174130c | [
"Apache-2.0"
] | null | null | null | include/crab/cfg/cfg_operators.hpp | LinerSu/crab | 8f3516f4b4765f4a093bb3c3a94ac2daa174130c | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <crab/support/debug.hpp>
#include <crab/support/os.hpp>
namespace crab {
namespace cfg {
// To group together statements over integers or real
typedef enum {
BINOP_ADD,
BINOP_SUB,
BINOP_MUL,
BINOP_SDIV,
BINOP_UDIV,
BINOP_SREM,
BINOP_UREM,
BINOP_AND,
BINOP_OR,
BINOP_XOR,
BI... | 17.247788 | 80 | 0.601847 | LinerSu |
2ac7289f2839f679932b31c3de3b0e50c2d56a5a | 1,735 | cpp | C++ | rrMFC/Dlg_Property/PropertySheet/PropertyPage1.cpp | afoolsbag/rrCnCxx | 1e673bd4edac43d8406a0c726138cba194d17f48 | [
"Unlicense"
] | 2 | 2019-03-20T01:14:10.000Z | 2021-12-08T15:39:32.000Z | rrMFC/Dlg_Property/PropertySheet/PropertyPage1.cpp | afoolsbag/rrCnCxx | 1e673bd4edac43d8406a0c726138cba194d17f48 | [
"Unlicense"
] | null | null | null | rrMFC/Dlg_Property/PropertySheet/PropertyPage1.cpp | afoolsbag/rrCnCxx | 1e673bd4edac43d8406a0c726138cba194d17f48 | [
"Unlicense"
] | null | null | null | /// \copyright The Unlicense
#include "stdafx.h"
#include "PropertyPage1.h"
#include "PropertySheet.rc.h"
#include "rrwindows/rrwindows.h"
namespace rrMFC {
namespace Test {
const UINT PropertyPage1::IDD {IDD_PROPERTY_PAGE_1};
#// Constructors
PropertyPage1::
PropertyPage1()
: CPropertyPage(IDD)
{
DcMeth(... | 15.772727 | 70 | 0.695677 | afoolsbag |
2ac9d9b284c80fb4fcb117ac935242dc593aea35 | 1,825 | hpp | C++ | src/include/Geometry/HalfedgeMeshBuilder/MeshBuilderBase.hpp | timow-gh/Geometry | 6b46b107355cd76fbb9c3a86db23dc891e868a3b | [
"Apache-2.0"
] | null | null | null | src/include/Geometry/HalfedgeMeshBuilder/MeshBuilderBase.hpp | timow-gh/Geometry | 6b46b107355cd76fbb9c3a86db23dc891e868a3b | [
"Apache-2.0"
] | null | null | null | src/include/Geometry/HalfedgeMeshBuilder/MeshBuilderBase.hpp | timow-gh/Geometry | 6b46b107355cd76fbb9c3a86db23dc891e868a3b | [
"Apache-2.0"
] | null | null | null | #ifndef GEOMETRY_MESHBUILDERBASE_HPP
#define GEOMETRY_MESHBUILDERBASE_HPP
#include <Core/Types/TVector.hpp>
#include <Geometry/HalfedgeMesh/HalfedgeMesh.hpp>
#include <Geometry/HalfedgeMeshBuilder/MeshTriangleAdder.hpp>
#include <LinAl/LinearAlgebra.hpp>
namespace Geometry
{
template <typename T, typename Derived>
c... | 35.096154 | 89 | 0.564384 | timow-gh |