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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
63c959aec1a10a74b83fe080855b263420d5e6b1 | 2,074 | cpp | C++ | Data Structures/Graphs/graph4.cpp | sirkp/Data-Structures-and-Algorithms | 38d2786f93cad3f3f156f48867d9eaff7a391d40 | [
"Apache-2.0"
] | 1 | 2020-01-21T20:00:16.000Z | 2020-01-21T20:00:16.000Z | Data Structures/Graphs/graph4.cpp | sirkp/Data-Structures-and-Algorithms | 38d2786f93cad3f3f156f48867d9eaff7a391d40 | [
"Apache-2.0"
] | null | null | null | Data Structures/Graphs/graph4.cpp | sirkp/Data-Structures-and-Algorithms | 38d2786f93cad3f3f156f48867d9eaff7a391d40 | [
"Apache-2.0"
] | null | null | null | // Detect Cycle in a Directed Graph
// https://www.geeksforgeeks.org/detect-cycle-in-a-graph/
#include <bits/stdc++.h>
using namespace std;
class Graph
{
private:
int V;
list<int> *adj;
bool isCyclicUtil(int s, bool visited[], bool recStack[]);
public:
Graph(int V)
{
this->V = V;
adj = new list<int>[V];
}
... | 17 | 62 | 0.610415 | sirkp |
63ca894c603dba0988865d3e5c7111faa95a5008 | 2,287 | cpp | C++ | edbee-lib/edbee/commands/cutcommand.cpp | UniSwarm/edbee-lib | b1f0b440d32f5a770877b11c6b24944af1131b91 | [
"BSD-2-Clause"
] | 445 | 2015-01-04T16:30:56.000Z | 2022-03-30T02:27:05.000Z | edbee-lib/edbee/commands/cutcommand.cpp | UniSwarm/edbee-lib | b1f0b440d32f5a770877b11c6b24944af1131b91 | [
"BSD-2-Clause"
] | 305 | 2015-01-04T09:20:03.000Z | 2020-10-01T08:45:45.000Z | edbee-lib/edbee/commands/cutcommand.cpp | UniSwarm/edbee-lib | b1f0b440d32f5a770877b11c6b24944af1131b91 | [
"BSD-2-Clause"
] | 49 | 2015-02-14T01:43:38.000Z | 2022-02-15T17:03:55.000Z | /**
* Copyright 2011-2012 - Reliable Bits Software by Blommers IT. All Rights Reserved.
* Author Rick Blommers
*/
#include "cutcommand.h"
#include <QApplication>
#include <QClipboard>
#include <QMimeData>
#include "edbee/commands/copycommand.h"
#include "edbee/models/textdocument.h"
#include "edbee/models/change... | 27.890244 | 113 | 0.647136 | UniSwarm |
63cd6875187a29c598dc189f355139ae75080873 | 1,002 | cpp | C++ | includes/fog.cpp | MuUusta/Hello-GFX | c707570207a2db638458352c2de6c03bce5a6759 | [
"MIT"
] | 2 | 2019-05-20T11:12:07.000Z | 2021-03-25T04:24:57.000Z | includes/fog.cpp | MuUusta/Hello-GFX | c707570207a2db638458352c2de6c03bce5a6759 | [
"MIT"
] | null | null | null | includes/fog.cpp | MuUusta/Hello-GFX | c707570207a2db638458352c2de6c03bce5a6759 | [
"MIT"
] | null | null | null | #include <GL/glut.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <math.h>
#include <fog.hpp>
#include <string>
#include <common.h>
using namespace std;
void initializeFog(){
glFogi(GL_FOG_MODE, GL_LINEAR);
glFogf(GL_FOG_START, 0.0);
glFogf(GL_FOG_END, 9.0);
float color[] = {0.6, 0.6, 0.6, 1.0};
glFogfv(... | 22.266667 | 66 | 0.684631 | MuUusta |
63d4bf25b8dbfe622bacf739a7c35a3a016ade45 | 147 | cpp | C++ | Source/ClimbingSystem/ClimbingSystem.cpp | LaudateCorpus1/Climbing-Movement-Component | 2311c0468bab8e59bf1c042d855e95dd0d891ec4 | [
"MIT"
] | 237 | 2016-06-16T09:01:19.000Z | 2022-03-30T03:11:27.000Z | Source/ClimbingSystem/ClimbingSystem.cpp | LaudateCorpus1/Climbing-Movement-Component | 2311c0468bab8e59bf1c042d855e95dd0d891ec4 | [
"MIT"
] | 2 | 2017-12-14T22:54:02.000Z | 2020-11-18T08:08:03.000Z | Source/ClimbingSystem/ClimbingSystem.cpp | LaudateCorpus1/Climbing-Movement-Component | 2311c0468bab8e59bf1c042d855e95dd0d891ec4 | [
"MIT"
] | 68 | 2016-06-16T11:49:56.000Z | 2022-03-11T14:34:01.000Z | // Copyright 2016 Dmitriy
#include "ClimbingSystem.h"
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, ClimbingSystem, "ClimbingSystem" );
| 24.5 | 90 | 0.823129 | LaudateCorpus1 |
63d73091144362d28c1bf1262c8e1adfd2ceb627 | 1,218 | cpp | C++ | HackerRank/Interview Preparation Kit/WarmUp Problems/repeated-strings.cpp | annukamat/My-Competitive-Journey | adb13a5723483cde13e5f3859b3a7ad840b86c97 | [
"MIT"
] | 7 | 2018-11-08T11:39:27.000Z | 2020-09-10T17:50:57.000Z | HackerRank/Interview Preparation Kit/WarmUp Problems/repeated-strings.cpp | annukamat/My-Competitive-Journey | adb13a5723483cde13e5f3859b3a7ad840b86c97 | [
"MIT"
] | null | null | null | HackerRank/Interview Preparation Kit/WarmUp Problems/repeated-strings.cpp | annukamat/My-Competitive-Journey | adb13a5723483cde13e5f3859b3a7ad840b86c97 | [
"MIT"
] | 2 | 2019-09-16T14:34:03.000Z | 2019-10-12T19:24:00.000Z | #include <bits/stdc++.h>
using namespace std;
/*int main()
{
long long int n, maxl=0;
string s, p="";
cin >> s;
cin >> n;
for(long long int i=0; i<n; i++)
{
if( s.length() >= n )
{
break;
}
p = p + s;
}
for(int i=0; i<n; i++)
{
... | 15.417722 | 53 | 0.328407 | annukamat |
63db174ad70c33b8f55efa7e5b56a7ac50241cfd | 5,923 | hpp | C++ | AStar.hpp | ValtoLibraries/PUtils | f30ebf21416654743ad2a05b14974acd27257da8 | [
"MIT"
] | null | null | null | AStar.hpp | ValtoLibraries/PUtils | f30ebf21416654743ad2a05b14974acd27257da8 | [
"MIT"
] | null | null | null | AStar.hpp | ValtoLibraries/PUtils | f30ebf21416654743ad2a05b14974acd27257da8 | [
"MIT"
] | null | null | null | #pragma once
#include <cmath>
#include <unordered_map>
#include <functional>
#include <algorithm>
#include <vector>
#include "sign.hpp"
#include "Point.hpp"
#include "Direction.hpp"
#include "runTests.hpp"
namespace putils {
/*
* Pathfinding algorithm implementing the AStar algorithm describe... | 42.307143 | 221 | 0.554955 | ValtoLibraries |
63dcb72c79c52b3efb6fe505ac43ed8c8f318902 | 935 | cpp | C++ | Greet-core/src/ecs/ECSManager.cpp | Thraix/Greet-Engine | 9474a4f4b88a582289fc68e7fc3e62ba2c6d0ec8 | [
"Apache-2.0"
] | null | null | null | Greet-core/src/ecs/ECSManager.cpp | Thraix/Greet-Engine | 9474a4f4b88a582289fc68e7fc3e62ba2c6d0ec8 | [
"Apache-2.0"
] | 1 | 2018-03-30T18:10:37.000Z | 2018-03-30T18:10:37.000Z | Greet-core/src/ecs/ECSManager.cpp | Thraix/Greet-Engine-Port | 9474a4f4b88a582289fc68e7fc3e62ba2c6d0ec8 | [
"Apache-2.0"
] | null | null | null | #include "ECSManager.h"
namespace Greet
{
ECSManager::~ECSManager()
{
for(auto&& components : componentPool)
{
delete components.second;
}
componentPool.clear();
}
EntityID ECSManager::CreateEntity()
{
ASSERT(currentEntityId != (uint32_t)-1, "No more entities available");
entit... | 21.25 | 94 | 0.648128 | Thraix |
63ddaea5b49669b7f4d9baf765ca8de3b922c7f0 | 781 | cpp | C++ | src/util/Animation.cpp | ds84182/WiMu | 91988bef1b82fda31bfee75e920b384831584e9b | [
"MIT"
] | 1 | 2015-12-17T16:17:50.000Z | 2015-12-17T16:17:50.000Z | src/util/Animation.cpp | ds84182/WiMu | 91988bef1b82fda31bfee75e920b384831584e9b | [
"MIT"
] | null | null | null | src/util/Animation.cpp | ds84182/WiMu | 91988bef1b82fda31bfee75e920b384831584e9b | [
"MIT"
] | null | null | null | #include "Animation.h"
#include <math.h>
AnimatableFloat::~AnimatableFloat() {
}
AnimatableColor::~AnimatableColor() {
}
namespace EasingFunction {
f32 linear(f32 t, f32 d) {
return t/d;
}
f32 inQuad(f32 t, f32 d) {
return pow(t/d, 2.0f);
}
f32 outQuad(f32 t, f32 d) {
t /= d;
return -t * (t-2.0f);
... | 16.270833 | 49 | 0.600512 | ds84182 |
63e07fe85ae2bca967155a2353b79040277e03cc | 1,116 | hpp | C++ | src/io/byte_buffer.hpp | Yanick-Salzmann/grower-controller-rpi | 30f279e960a3cc8125f112c76ee943b1fa766191 | [
"MIT"
] | null | null | null | src/io/byte_buffer.hpp | Yanick-Salzmann/grower-controller-rpi | 30f279e960a3cc8125f112c76ee943b1fa766191 | [
"MIT"
] | null | null | null | src/io/byte_buffer.hpp | Yanick-Salzmann/grower-controller-rpi | 30f279e960a3cc8125f112c76ee943b1fa766191 | [
"MIT"
] | null | null | null | #ifndef GROWER_CONTROLLER_RPI_BYTE_BUFFER_HPP
#define GROWER_CONTROLLER_RPI_BYTE_BUFFER_HPP
#include <vector>
#include <cstdint>
namespace grower::io {
class little_endian_trait {
public:
static void add_to_buffer(const void *value, std::size_t num_bytes, std::vector<uint8_t> &buffer);
};
cla... | 27.9 | 106 | 0.647849 | Yanick-Salzmann |
63e28140659e53d2c9d358a422e71faafa9ea3f4 | 1,675 | hxx | C++ | planners/lapkt-public/include/aptk/planrec.hxx | miquelramirez/aamas18-planning-for-transparency | dff3e635102bf351906807c5181113fbf4b67083 | [
"MIT"
] | null | null | null | planners/lapkt-public/include/aptk/planrec.hxx | miquelramirez/aamas18-planning-for-transparency | dff3e635102bf351906807c5181113fbf4b67083 | [
"MIT"
] | null | null | null | planners/lapkt-public/include/aptk/planrec.hxx | miquelramirez/aamas18-planning-for-transparency | dff3e635102bf351906807c5181113fbf4b67083 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <map>
#include <ff_to_aptk.hxx>
#include <strips_prob.hxx>
#include <fluent.hxx>
#include <action.hxx>
#include <cond_eff.hxx>
#include <strips_state.hxx>
#include <fwd_search_prob.hxx>
#include <h_1.hxx>
#include <aptk/open_list.hxx>
#include <aptk/string_conversions.... | 28.87931 | 242 | 0.72 | miquelramirez |
63e324abce25101720b78772c2aa12e260d2e0a7 | 255 | hpp | C++ | addons/niarms/caliber/blackout/ar15.hpp | Theseus-Aegis/GTRecoilSystem | 308f260af7a2a8839d1f7a0b43d77d49c062ff6c | [
"MIT"
] | null | null | null | addons/niarms/caliber/blackout/ar15.hpp | Theseus-Aegis/GTRecoilSystem | 308f260af7a2a8839d1f7a0b43d77d49c062ff6c | [
"MIT"
] | null | null | null | addons/niarms/caliber/blackout/ar15.hpp | Theseus-Aegis/GTRecoilSystem | 308f260af7a2a8839d1f7a0b43d77d49c062ff6c | [
"MIT"
] | null | null | null | // AR-15 Rifles
// AR15 - Medium Barrel
class hlc_rifle_Bushmaster300: hlc_ar15_base {
recoil = QCLASS(300B_MediumBarrel);
};
// Black Jack - Medium Barrel
class hlc_rifle_bcmblackjack: hlc_rifle_bcmjack {
recoil = QCLASS(300B_MediumBarrel);
};
| 21.25 | 49 | 0.745098 | Theseus-Aegis |
63e4027da577945329734e57710b230e5c7871f0 | 34,965 | cpp | C++ | src/classic/SxEAM.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | 1 | 2020-02-29T03:26:32.000Z | 2020-02-29T03:26:32.000Z | src/classic/SxEAM.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | null | null | null | src/classic/SxEAM.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | null | null | null | // ---------------------------------------------------------------------------
//
// The ab-initio based multiscale library
//
// S / P H I / n X
//
// Copyright: Max-Planck-Institute for Iron Research
// 40237 Duesseldorf, Germany
//
// Contact: https://sxlib.mpie.d... | 29.606266 | 115 | 0.498956 | ashtonmv |
63e5ce142b41ff52370b391a71f1250f4dcdfbf7 | 8,335 | cpp | C++ | operators/data_sender_bcast_tcp.cpp | damodar123/pythia-core | 6b90aafed40aa63185105a652b20c61fc5a4320d | [
"BSD-3-Clause"
] | null | null | null | operators/data_sender_bcast_tcp.cpp | damodar123/pythia-core | 6b90aafed40aa63185105a652b20c61fc5a4320d | [
"BSD-3-Clause"
] | null | null | null | operators/data_sender_bcast_tcp.cpp | damodar123/pythia-core | 6b90aafed40aa63185105a652b20c61fc5a4320d | [
"BSD-3-Clause"
] | null | null | null |
/*
* Copyright 2015, Pythia authors (see AUTHORS file).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice... | 32.558594 | 130 | 0.695381 | damodar123 |
63e5f158d4fab037a3dd67342b140a8007c9112c | 7,764 | cpp | C++ | src/prod/src/Reliability/Replication/CopyContextReceiver.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/Reliability/Replication/CopyContextReceiver.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/Reliability/Replication/CopyContextReceiver.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"
namespace... | 32.621849 | 134 | 0.632535 | gridgentoo |
63e7071bdaa4b29f8cf58e81570e3d44530ebdc4 | 564 | cpp | C++ | Pyramid Printer/pyramid.cpp | noahkiss/intro-to-cpp | 8a4a8836f9e52ddffe6229d8d07e7b34d6a6fbb1 | [
"MIT"
] | null | null | null | Pyramid Printer/pyramid.cpp | noahkiss/intro-to-cpp | 8a4a8836f9e52ddffe6229d8d07e7b34d6a6fbb1 | [
"MIT"
] | null | null | null | Pyramid Printer/pyramid.cpp | noahkiss/intro-to-cpp | 8a4a8836f9e52ddffe6229d8d07e7b34d6a6fbb1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main() {
int row = 8;
//cout << "How many rows of numbers? ";
//cin >> row;
row--;
for (int line = 0; line <= row; line++) {
cout << setw(36 - 4 * line) << 1;
for (int num = 1; num <= line; num++) {
... | 20.142857 | 50 | 0.437943 | noahkiss |
63eea8d4b9f2ea73481028908dcdc2430b86b0f2 | 437 | hh | C++ | emu-ex-plus-alpha/imagine/src/io/mmap/generic/IoMmapGeneric.hh | damoonvisuals/GBA4iOS | 95bfce0aca270b68484535ecaf0d3b2366739c77 | [
"MIT"
] | 1 | 2018-11-14T23:40:35.000Z | 2018-11-14T23:40:35.000Z | emu-ex-plus-alpha/imagine/src/io/mmap/generic/IoMmapGeneric.hh | damoonvisuals/GBA4iOS | 95bfce0aca270b68484535ecaf0d3b2366739c77 | [
"MIT"
] | null | null | null | emu-ex-plus-alpha/imagine/src/io/mmap/generic/IoMmapGeneric.hh | damoonvisuals/GBA4iOS | 95bfce0aca270b68484535ecaf0d3b2366739c77 | [
"MIT"
] | null | null | null | #pragma once
#include <engine-globals.h>
#include <io/mmap/IoMmap.hh>
#include <mem/interface.h>
class IoMmapGeneric : public IoMmap
{
public:
static Io* open(const uchar * buffer, size_t size);
~IoMmapGeneric() { close(); }
void close();
// optional function to call on close, <ptr> is the buffer passed during o... | 20.809524 | 80 | 0.71167 | damoonvisuals |
63f277898b3f89389f3df8d83b2aec541ab3bcf7 | 240 | cc | C++ | cpp-tutorial/main/test/hello-greet-test.cc | yuryu/bazel-examples | 817f2f84211ca21733a78eefcb0b47aeb2cfddf0 | [
"Apache-2.0"
] | null | null | null | cpp-tutorial/main/test/hello-greet-test.cc | yuryu/bazel-examples | 817f2f84211ca21733a78eefcb0b47aeb2cfddf0 | [
"Apache-2.0"
] | null | null | null | cpp-tutorial/main/test/hello-greet-test.cc | yuryu/bazel-examples | 817f2f84211ca21733a78eefcb0b47aeb2cfddf0 | [
"Apache-2.0"
] | null | null | null | #include "gtest/gtest.h"
#include "../hello-greet.h"
TEST(hello_greet_test, empty_string)
{
EXPECT_EQ(get_greet(""), std::string("Hello "));
}
TEST(hello_greet_test, with_name)
{
EXPECT_EQ(get_greet("abc"), std::string("Hello "));
}
| 17.142857 | 53 | 0.683333 | yuryu |
63f348161aa46325097f3cbaf745da391ba962a9 | 1,416 | cpp | C++ | ring/eran/gurobi900/linux64/examples/c++/lpmethod_c++.cpp | Practical-Formal-Methods/clam-racetrack | 75d05ca72dab67b065c8cbab983b1b83a21fede8 | [
"Apache-2.0"
] | 4 | 2021-05-19T17:35:30.000Z | 2021-08-17T04:03:21.000Z | ring/eran/gurobi900/linux64/examples/c++/lpmethod_c++.cpp | Practical-Formal-Methods/clam-racetrack | 75d05ca72dab67b065c8cbab983b1b83a21fede8 | [
"Apache-2.0"
] | null | null | null | ring/eran/gurobi900/linux64/examples/c++/lpmethod_c++.cpp | Practical-Formal-Methods/clam-racetrack | 75d05ca72dab67b065c8cbab983b1b83a21fede8 | [
"Apache-2.0"
] | 1 | 2022-01-15T11:20:30.000Z | 2022-01-15T11:20:30.000Z | /* Copyright 2019, Gurobi Optimization, LLC */
/* Solve a model with different values of the Method parameter;
show which value gives the shortest solve time. */
#include "gurobi_c++.h"
using namespace std;
int
main(int argc,
char *argv[])
{
if (argc < 2)
{
cout << "Usage: lpmethod_c++ filename" <... | 24.842105 | 63 | 0.586864 | Practical-Formal-Methods |
63f356155a61afd86e38cf2ba0a470edd392ac42 | 732 | hpp | C++ | idock/src/summary.hpp | kingdavid72/Calici-Nebular | 6bd51f63c7de37605dcbfbd3669462a997638ffb | [
"Apache-2.0"
] | 30 | 2015-02-09T00:53:09.000Z | 2022-01-19T13:36:20.000Z | idock/src/summary.hpp | kingdavid72/Calici-Nebular | 6bd51f63c7de37605dcbfbd3669462a997638ffb | [
"Apache-2.0"
] | 3 | 2016-06-16T18:07:30.000Z | 2019-01-15T23:45:34.000Z | idock/src/summary.hpp | kingdavid72/Calici-Nebular | 6bd51f63c7de37605dcbfbd3669462a997638ffb | [
"Apache-2.0"
] | 19 | 2015-04-15T12:48:13.000Z | 2021-04-19T11:30:46.000Z | #pragma once
#ifndef IDOCK_SUMMARY_HPP
#define IDOCK_SUMMARY_HPP
#include "conformation.hpp"
/// Represents a summary of docking results of a ligand.
class summary
{
public:
size_t index;
fl energy;
fl rfscore;
conformation conf;
explicit summary(const size_t index, const fl energy, const fl rfscore, const confo... | 22.181818 | 159 | 0.729508 | kingdavid72 |
63fb9e9bebb977d4a10f0cd7dfce48358a18c8ae | 4,657 | cpp | C++ | src/Socket.cpp | pmelendez/chimire | 001482acb05a119674fd04abe327eb7f1698b72d | [
"MIT"
] | null | null | null | src/Socket.cpp | pmelendez/chimire | 001482acb05a119674fd04abe327eb7f1698b72d | [
"MIT"
] | null | null | null | src/Socket.cpp | pmelendez/chimire | 001482acb05a119674fd04abe327eb7f1698b72d | [
"MIT"
] | null | null | null | /*
* File: Socket.cpp
* Author: pedro
*
* Created on July 17, 2014, 8:26 AM based on previous version Oct 17, 2010 11:56 AM
*/
#include "Socket.h"
Socket::Socket() {
socketID=NULL_SOCKET;
max_connections= DEFAULT_MAXCONNECTIONS;
init_variables();
}
Socket::Socket(int socket_id, sockaddr_in ad... | 16.340351 | 91 | 0.638394 | pmelendez |
12079ed9ec0b32ec980ceaa86058f5346b35cf35 | 471 | cpp | C++ | books/tech/cpp/std-14/s_meyers-effective_modern_cpp/code/ch_08-tweaks/item_41-consider_pass_by_value/01-copying_and_moving_parameters-01/main.cpp | ordinary-developer/education | 1b1f40dacab873b28ee01dfa33a9bd3ec4cfed58 | [
"MIT"
] | 1 | 2017-05-04T08:23:46.000Z | 2017-05-04T08:23:46.000Z | books/techno/cpp/__intermediate/effective_modern_cpp_s_meyers/code/ch_8-TWEAKS/item_41-consider_pass_by_value/01-copying_and_moving_parameters-01/main.cpp | ordinary-developer/lin_education | 13d65b20cdbc3e5467b2383e5c09c73bbcdcb227 | [
"MIT"
] | null | null | null | books/techno/cpp/__intermediate/effective_modern_cpp_s_meyers/code/ch_8-TWEAKS/item_41-consider_pass_by_value/01-copying_and_moving_parameters-01/main.cpp | ordinary-developer/lin_education | 13d65b20cdbc3e5467b2383e5c09c73bbcdcb227 | [
"MIT"
] | null | null | null | #include <memory>
#include <string>
#include <vector>
class Widget {
public:
void addName(const std::string& newName) {
names.push_back(newName);
}
void addName(std::string&& newName) {
names.push_back(std::move(newName));
}
private:
std::vector... | 17.444444 | 50 | 0.549894 | ordinary-developer |
120af4df2daf003089cbeda6b5ccb7ca7d99aa22 | 18,775 | cc | C++ | modules/adminapi/dba/upgrade_metadata.cc | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | null | null | null | modules/adminapi/dba/upgrade_metadata.cc | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 1 | 2021-09-12T22:07:06.000Z | 2021-09-12T22:07:06.000Z | modules/adminapi/dba/upgrade_metadata.cc | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2019, 2020, Oracle 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.0,
* as published by the Free Software Foundation.
*
* This program is also distributed with... | 37.47505 | 80 | 0.596218 | mueller |
120b366f5428ed1a54fb4067419c09d17a495ecd | 535 | cpp | C++ | minorGems/graphics/openGL/testNavigatorGL.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | 1 | 2020-01-16T00:07:11.000Z | 2020-01-16T00:07:11.000Z | minorGems/graphics/openGL/testNavigatorGL.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | null | null | null | minorGems/graphics/openGL/testNavigatorGL.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | 2 | 2019-09-17T12:08:20.000Z | 2020-09-26T00:54:48.000Z | /*
* Modification History
*
* 2001-August-29 Jason Rohrer
* Created.
*/
#include "TestSceneHandlerGL.h"
#include "SceneNavigatorDisplayGL.h"
#include "minorGems/util/random/StdRandomSource.h"
// simple test function
int main() {
StdRandomSource *randSource = new StdRandomSource( 2 );
TestSceneHandlerGL ... | 15.735294 | 64 | 0.702804 | PhilipLudington |
120be8ab8a37116dd6b5bdd6e96a9695587aff54 | 7,011 | cpp | C++ | lib/inputdev/DolphinSmashAdapter.cpp | AxioDL/boo2 | c49c028a38b12746ca60c0db6dd7a25d85851856 | [
"MIT"
] | null | null | null | lib/inputdev/DolphinSmashAdapter.cpp | AxioDL/boo2 | c49c028a38b12746ca60c0db6dd7a25d85851856 | [
"MIT"
] | null | null | null | lib/inputdev/DolphinSmashAdapter.cpp | AxioDL/boo2 | c49c028a38b12746ca60c0db6dd7a25d85851856 | [
"MIT"
] | 2 | 2020-05-05T04:04:34.000Z | 2022-02-01T12:45:17.000Z | #include "boo2/inputdev/DolphinSmashAdapter.hpp"
#include "boo2/inputdev/DeviceSignature.hpp"
namespace boo2 {
/*
* Reference: https://github.com/ToadKing/wii-u-gc-adapter/blob/master/wii-u-gc-adapter.c
*/
DolphinSmashAdapter::DolphinSmashAdapter(DeviceToken* token)
: TDeviceBase<IDolphinSmashAdapterCallback>(dev_t... | 29.834043 | 114 | 0.652831 | AxioDL |
120c9a15d1170b44e6762a65e790124e76ae44dd | 6,062 | cpp | C++ | ELV_wrapper/elf.cpp | solhuebner/ID-18-Elventure | 90419d7dfbc852b3512a06a43843aeb899465256 | [
"MIT"
] | 1 | 2020-09-05T20:13:25.000Z | 2020-09-05T20:13:25.000Z | ELV_wrapper/elf.cpp | solhuebner/ID-18-Elventure | 90419d7dfbc852b3512a06a43843aeb899465256 | [
"MIT"
] | null | null | null | ELV_wrapper/elf.cpp | solhuebner/ID-18-Elventure | 90419d7dfbc852b3512a06a43843aeb899465256 | [
"MIT"
] | 1 | 2020-06-13T13:39:09.000Z | 2020-06-13T13:39:09.000Z | #include <avr/pgmspace.h>
#include <string.h>
#include "ArduboyGamby.h"
#include "elf.h"
#include "elf_bitmap.h"
#include "map_bitmap.h"
#include "map.h"
#include "room.h"
#include "item.h"
#include "display.h"
#include "sound.h"
extern GambyGraphicsMode gamby;
#define SIZEOF_ELF_RECORD 10
Elf elf = {FACING_DOWN, 1, ... | 21.195804 | 89 | 0.5645 | solhuebner |
120efb8217919a11260f48ea71db2767e661803e | 1,323 | hpp | C++ | lab2/13_documentpermissions/application.hpp | zaychenko-sergei/oop-ki13 | 97405077de1f66104ec95c1bb2785bc18445532d | [
"MIT"
] | 2 | 2015-10-08T15:07:07.000Z | 2017-09-17T10:08:36.000Z | lab2/13_documentpermissions/application.hpp | zaychenko-sergei/oop-ki13 | 97405077de1f66104ec95c1bb2785bc18445532d | [
"MIT"
] | null | null | null | lab2/13_documentpermissions/application.hpp | zaychenko-sergei/oop-ki13 | 97405077de1f66104ec95c1bb2785bc18445532d | [
"MIT"
] | null | null | null | // (C) 2013-2014, Sergei Zaychenko, KNURE, Kharkiv, Ukraine
#ifndef _APPLICATION_HPP_
#define _APPLICATION_HPP_
/*****************************************************************************/
class Document;
class User;
/*****************************************************************************/
class Applicat... | 22.810345 | 79 | 0.368103 | zaychenko-sergei |
1210d99a23384b0d94d7d60e0274abd5d0ce428f | 554 | cpp | C++ | Source/FactoryGame/Buildables/FGBuildableStorage.cpp | iam-Legend/Project-Assembly | 1ff3587704232d5e330515bc0d2aceb64ff09a7f | [
"MIT"
] | null | null | null | Source/FactoryGame/Buildables/FGBuildableStorage.cpp | iam-Legend/Project-Assembly | 1ff3587704232d5e330515bc0d2aceb64ff09a7f | [
"MIT"
] | null | null | null | Source/FactoryGame/Buildables/FGBuildableStorage.cpp | iam-Legend/Project-Assembly | 1ff3587704232d5e330515bc0d2aceb64ff09a7f | [
"MIT"
] | null | null | null | // This file has been automatically generated by the Unreal Header Implementation tool
#include "FGBuildableStorage.h"
void AFGBuildableStorage::GetLifetimeReplicatedProps( TArray< FLifetimeProperty >& OutLifetimeProps) const{ }
AFGBuildableStorage::AFGBuildableStorage(){ }
void AFGBuildableStorage::BeginPlay(){ }
vo... | 50.363636 | 109 | 0.833935 | iam-Legend |
1213695b88aeaa91464de5a855a802bb62ce1a17 | 16,234 | cc | C++ | base/threading/hang_watcher.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | base/threading/hang_watcher.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | base/threading/hang_watcher.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2020 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 "base/threading/hang_watcher.h"
#include <algorithm>
#include <atomic>
#include <utility>
#include "base/bind.h"
#include "base/callback_helper... | 34.394068 | 80 | 0.729272 | sarang-apps |
12218e1b49e132f99abf151cfeba03616ebf1392 | 1,752 | hpp | C++ | ext/src/javax/swing/JComponent_ActionStandin.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/src/javax/swing/JComponent_ActionStandin.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/src/javax/swing/JComponent_ActionStandin.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#pragma once
#include <fwd-POI.hpp>
#include <java/awt/event/fwd-POI.hpp>
#include <java/beans/fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <javax/swing/fwd-POI.hpp>
#include <java/lang/Object.hpp>
#include <ja... | 30.206897 | 141 | 0.712329 | pebble2015 |
1222bf42564258b8741d3a4e1ee4d04f8f9386e6 | 119 | hpp | C++ | src/TSBlank.hpp | miRackModular/trowaSoft-VCV | 56ab2f95bcd0f788b3eb8714718c972cbb0546d9 | [
"MIT"
] | 91 | 2017-11-28T07:23:09.000Z | 2022-03-28T08:31:51.000Z | src/TSBlank.hpp | miRackModular/trowaSoft-VCV | 56ab2f95bcd0f788b3eb8714718c972cbb0546d9 | [
"MIT"
] | 59 | 2017-11-28T06:12:18.000Z | 2022-03-18T09:00:59.000Z | src/TSBlank.hpp | miRackModular/trowaSoft-VCV | 56ab2f95bcd0f788b3eb8714718c972cbb0546d9 | [
"MIT"
] | 15 | 2017-11-28T13:42:35.000Z | 2021-12-26T08:03:37.000Z | #ifndef TSBLANK_HPP
#define TSBLANK_HPP
extern Model* modelBlank;
struct TSBlankWidget;
struct TSBlankModule;
#endif | 13.222222 | 25 | 0.823529 | miRackModular |
1225053037da458c0c3fde05f804d5b938bc682a | 6,672 | cc | C++ | src/cxx/diclearn/libdiclearn/C_DENOISE_IMAGE.cc | sfarrens/cosmostat | a475315cda06dca346095a1e83cb6ad23979acae | [
"MIT"
] | null | null | null | src/cxx/diclearn/libdiclearn/C_DENOISE_IMAGE.cc | sfarrens/cosmostat | a475315cda06dca346095a1e83cb6ad23979acae | [
"MIT"
] | null | null | null | src/cxx/diclearn/libdiclearn/C_DENOISE_IMAGE.cc | sfarrens/cosmostat | a475315cda06dca346095a1e83cb6ad23979acae | [
"MIT"
] | null | null | null | #include "C_DL1D.h"
#include <vector>
#include <MatrixOper.h>
#include "IM_IO.h"
#include "C_OMP.h"
#include "C_DENOISE_IMAGE.h"
using namespace std;
#include <math.h>
C_DENOISE_IMAGE::C_DENOISE_IMAGE(dblarray &NoisyImage,dblarray &Dico)
{
Npix = Dico.nx(); // atom size
}
C_DENOISE_IMAGE::~C_DENOISE_IMAGE()
{
}
int... | 33.029703 | 174 | 0.680905 | sfarrens |
12282f70ba99bdfd96964f5135a3aef17678e1d3 | 1,015 | cpp | C++ | Heap/2/Phase3Main.cpp | PeterTheAmazingAsian/ProjectTestCases | 85ddd13216d65267cbf0ea76ea014af902f3d9da | [
"MIT"
] | 1 | 2021-08-20T03:01:16.000Z | 2021-08-20T03:01:16.000Z | Heap/2/Phase3Main.cpp | PeterTheAmazingAsian/ProjectTestCases | 85ddd13216d65267cbf0ea76ea014af902f3d9da | [
"MIT"
] | null | null | null | Heap/2/Phase3Main.cpp | PeterTheAmazingAsian/ProjectTestCases | 85ddd13216d65267cbf0ea76ea014af902f3d9da | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
#include "Heap.cpp"
int main() {
Heap<short int> A;
Heap<double> B;
Heap<unsigned long long int> C;
Heap<long double> D;
Heap<string> E;
A.insert(4);
A.insert(9);
A.insert(3);
A.insert(5);
A.insert(100);
A.printKey();
Heap<short... | 19.150943 | 69 | 0.483744 | PeterTheAmazingAsian |
1228306b07197609b134f9c0c3cd7bc9b598adba | 13,063 | cpp | C++ | call_stats5.cpp | juan2357/call_stats5 | 0eb23f66ab5f4e8c60f16072ba784f9e03ee6589 | [
"MIT"
] | null | null | null | call_stats5.cpp | juan2357/call_stats5 | 0eb23f66ab5f4e8c60f16072ba784f9e03ee6589 | [
"MIT"
] | null | null | null | call_stats5.cpp | juan2357/call_stats5 | 0eb23f66ab5f4e8c60f16072ba784f9e03ee6589 | [
"MIT"
] | null | null | null | /*
Name: Juan Perez Z#:23026404
Course: COP 3014
Professor: Dr. Lofton Bullard
Due Date: 3/20/18 Due Time: 11:59
Total Points: 20
Assignment 8: call_stats5.cpp
Description
1. Read the contents of a data file one record at a time in a dynamic array;
2. Process the data that was read from the data file... | 44.431973 | 152 | 0.548572 | juan2357 |
122b3d46f5c89cdda5ccfe72d125564b950dd318 | 1,062 | hpp | C++ | boost/network/uri/directives/port.hpp | ccnyou/cpp-netlib-stable | 2697b391032bce52a5b1e6ecddf98b92fe468afa | [
"BSL-1.0"
] | 132 | 2017-03-22T03:46:38.000Z | 2022-03-08T15:08:16.000Z | boost/network/uri/directives/port.hpp | ccnyou/cpp-netlib-stable | 2697b391032bce52a5b1e6ecddf98b92fe468afa | [
"BSL-1.0"
] | 4 | 2017-04-06T17:46:10.000Z | 2018-08-08T18:27:59.000Z | boost/network/uri/directives/port.hpp | ccnyou/cpp-netlib-stable | 2697b391032bce52a5b1e6ecddf98b92fe468afa | [
"BSL-1.0"
] | 30 | 2017-03-26T22:38:17.000Z | 2021-11-21T20:50:17.000Z | // Copyright (c) Glyn Matthews 2011, 2012.
// 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)
#ifndef BOOST_NETWORK_URI_DIRECTIVES_PORT_INC__
#define BOOST_NETWORK_URI_DIRECTIVES_PORT_INC__
... | 23.6 | 71 | 0.717514 | ccnyou |
122c7874cc4a80a35bbb7aeb6e489bef86c8e356 | 837 | cpp | C++ | libraries/clock/rtcClock.cpp | PetrakovKirill/nixie_hrono | 0eff6aa253b84294dd41c6f233a00dd035514b07 | [
"MIT"
] | null | null | null | libraries/clock/rtcClock.cpp | PetrakovKirill/nixie_hrono | 0eff6aa253b84294dd41c6f233a00dd035514b07 | [
"MIT"
] | null | null | null | libraries/clock/rtcClock.cpp | PetrakovKirill/nixie_hrono | 0eff6aa253b84294dd41c6f233a00dd035514b07 | [
"MIT"
] | null | null | null | #include "rtc_clock.h"
#include <stdio.h>
#define SEC_24_HOURS (86400)
#define SEC_1_HOUR ( 3600)
#define SEC_1_MIN ( 60)
rtcClock :: rtcClock(display *pDisplay, rtc *pRtc) {
displ = pDisplay;
time = pRtc;
}
void rtcClock :: ShowTime(void) {
char printString[5] = {0};
... | 19.465116 | 59 | 0.590203 | PetrakovKirill |
122e0365a281223a404404f59426e148cd88636f | 3,356 | cpp | C++ | examples/07-editor.cpp | cyrilcode/cyfw-examples | 18fde906b606ff0b9e589a4ef53125186fe5a578 | [
"MIT"
] | null | null | null | examples/07-editor.cpp | cyrilcode/cyfw-examples | 18fde906b606ff0b9e589a4ef53125186fe5a578 | [
"MIT"
] | null | null | null | examples/07-editor.cpp | cyrilcode/cyfw-examples | 18fde906b606ff0b9e589a4ef53125186fe5a578 | [
"MIT"
] | null | null | null | #include <cyfw/main.h>
#include <cyfw/Gui.h>
#include <Resource.h>
using namespace std;
using namespace cy;
class MyApp : public cy::App
{
Gui gui;
bool guiOpen;
char text[1024*16];
bool escPressed;
bool shouldQuit;
ImFont* font1;
public:
MyApp() : escPressed{false}, shouldQuit{false} {
... | 28.440678 | 109 | 0.546782 | cyrilcode |
122eb35df8c2daab625ca0d367d1b40cf1bab474 | 1,393 | cpp | C++ | Tests/src/ColoredTriangleTest.cpp | kamil2789/LearnModernOpenGL | 4eb234c15f41e3670db425680c95b46bb224a6c8 | [
"MIT"
] | 1 | 2021-12-04T21:16:57.000Z | 2021-12-04T21:16:57.000Z | Tests/src/ColoredTriangleTest.cpp | kamil2789/LearnModernOpenGL | 4eb234c15f41e3670db425680c95b46bb224a6c8 | [
"MIT"
] | null | null | null | Tests/src/ColoredTriangleTest.cpp | kamil2789/LearnModernOpenGL | 4eb234c15f41e3670db425680c95b46bb224a6c8 | [
"MIT"
] | null | null | null | #include "EndToEndTests.h"
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include "config/GlfwConfig.h"
#include "config/GlfwWindowManager.h"
#include "config/GladConfig.h"
#include "entities/ShaderFileReader.h"
#include "entities/ShaderProgram.h"
#include "entities/ColoredTriangle.h"
bool EndToEndTest::ColoredTria... | 24.017241 | 65 | 0.662599 | kamil2789 |
1238246444b1e6a69dd23a19a4a5c6434680c633 | 5,567 | cpp | C++ | SLAM/kalmanSLAM.cpp | Exadios/Bayes- | a1cd9efe2e840506d887bec9b246fd936f2b71e5 | [
"MIT"
] | 2 | 2015-04-02T21:45:49.000Z | 2018-09-19T01:59:02.000Z | SLAM/kalmanSLAM.cpp | Exadios/Bayes- | a1cd9efe2e840506d887bec9b246fd936f2b71e5 | [
"MIT"
] | null | null | null | SLAM/kalmanSLAM.cpp | Exadios/Bayes- | a1cd9efe2e840506d887bec9b246fd936f2b71e5 | [
"MIT"
] | null | null | null | /*
* Bayes++ the Bayesian Filtering Library
* Copyright (c) 2004 Michael Stevens
* See accompanying Bayes++.htm for terms and conditions of use.
*
* $Id$
*/
/*
* SLAM : Simultaneous Locatization and Mapping
* Kalman filter representing representation of SLAM
*/
// Bayes++ Bayesian filtering schemes
#inclu... | 28.548718 | 114 | 0.668762 | Exadios |
1238d54423bef55f07f43bb2b2a02aa12a6bed08 | 6,656 | cc | C++ | tuplex/test/core/FallbackMode.cc | ms705/tuplex | c395041934768e51952c4fa783775b810b2fdec8 | [
"Apache-2.0"
] | null | null | null | tuplex/test/core/FallbackMode.cc | ms705/tuplex | c395041934768e51952c4fa783775b810b2fdec8 | [
"Apache-2.0"
] | null | null | null | tuplex/test/core/FallbackMode.cc | ms705/tuplex | c395041934768e51952c4fa783775b810b2fdec8 | [
"Apache-2.0"
] | null | null | null | //--------------------------------------------------------------------------------------------------------------------//
// //
// Tuplex: Blazing Fast Python Data Scien... | 34.666667 | 132 | 0.519231 | ms705 |
72ef5a55e638abecb5f3325ad152379d41c70d6f | 51,660 | cc | C++ | src/visualisers/Akima760.cc | dtip/magics | 3247535760ca962f859c203295b508d442aca4ed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/visualisers/Akima760.cc | dtip/magics | 3247535760ca962f859c203295b508d442aca4ed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/visualisers/Akima760.cc | dtip/magics | 3247535760ca962f859c203295b508d442aca4ed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* (C) Copyright 1996-2016 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an in... | 39.047619 | 120 | 0.46837 | dtip |
72f3015cd3c5e5c58ff6aae96895e781fb045bbe | 275 | cpp | C++ | service/src/log.cpp | SibirCTF/2016-service-loogles | 0a5a834fc38c6eb8b9a19d780655b377b2c54653 | [
"MIT"
] | null | null | null | service/src/log.cpp | SibirCTF/2016-service-loogles | 0a5a834fc38c6eb8b9a19d780655b377b2c54653 | [
"MIT"
] | null | null | null | service/src/log.cpp | SibirCTF/2016-service-loogles | 0a5a834fc38c6eb8b9a19d780655b377b2c54653 | [
"MIT"
] | null | null | null | #include "log.h"
#include <iostream>
void Log::i(QString tag, QString message){
std::cout << tag.toStdString() << " " << message.toStdString() << "\n";
}
void Log::e(QString tag, QString message){
std::cerr << tag.toStdString() << " " << message.toStdString() << "\n";
}
| 25 | 72 | 0.618182 | SibirCTF |
72f8429a44a95ec4749b9e5c7bd48217e42167bc | 1,051 | cpp | C++ | haiku/submissions/time_limit_exceeded/js1.cpp | jsannemo/hiq-challenge-2017 | 8271c716fe249674d585731f472b64616370300a | [
"Apache-2.0"
] | null | null | null | haiku/submissions/time_limit_exceeded/js1.cpp | jsannemo/hiq-challenge-2017 | 8271c716fe249674d585731f472b64616370300a | [
"Apache-2.0"
] | null | null | null | haiku/submissions/time_limit_exceeded/js1.cpp | jsannemo/hiq-challenge-2017 | 8271c716fe249674d585731f472b64616370300a | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for(int i = a; i < (b); ++i)
#define trav(a, x) for(auto& a : x)
#define all(x) x.begin(), x.end()
#define sz(x) (int)(x).size()
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
unordered_set<string> has;
bool rec(const strin... | 22.361702 | 98 | 0.532826 | jsannemo |
72f979d27bb89787db23fcd6df1ca466cf339883 | 315 | hpp | C++ | include/kx/gui/gadget.hpp | kod-kristoff/kx | bc6ec4ad3720234ac6ae7e90343809a67c0fab27 | [
"MIT"
] | null | null | null | include/kx/gui/gadget.hpp | kod-kristoff/kx | bc6ec4ad3720234ac6ae7e90343809a67c0fab27 | [
"MIT"
] | null | null | null | include/kx/gui/gadget.hpp | kod-kristoff/kx | bc6ec4ad3720234ac6ae7e90343809a67c0fab27 | [
"MIT"
] | null | null | null | #ifndef KX_GUI_GADGET_HPP
#define KX_GUI_GADGET_HPP
#include "kx/view/view_fwd.hpp"
namespace kx
{
namespace gui
{
class InputMap;
class Gadget
{
public:
virtual ~Gadget();
private:
InputMap * _input_map;
View * _view;
};
}
}
#endif // KX_GUI_GADGET_HPP
| 13.695652 | 33 | 0.609524 | kod-kristoff |
72f986ce1b9ac5cf5b8ad328d9f9f992f988a04d | 16,776 | cpp | C++ | willow/src/subgraph/algo1.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 61 | 2020-07-06T17:11:46.000Z | 2022-03-12T14:42:51.000Z | willow/src/subgraph/algo1.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 1 | 2021-02-25T01:30:29.000Z | 2021-11-09T11:13:14.000Z | willow/src/subgraph/algo1.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 6 | 2020-07-15T12:33:13.000Z | 2021-11-07T06:55:00.000Z | // Copyright (c) 2019 Graphcore Ltd. All rights reserved.
#include <popart/logging.hpp>
#include <popart/subgraph/algo1.hpp>
#include <popart/subgraph/match.hpp>
#include <popart/subgraph/suffixtree.hpp>
namespace fwtools {
namespace subgraph {
namespace algo1 {
void Algo1Base::emplace(Match match) {
// Check:
/... | 28.433898 | 80 | 0.606998 | gglin001 |
72fbaee8098ffe01eb5148f295cc0fabc31cab62 | 3,523 | cpp | C++ | MCGIDI/Test/productIndices/productAverageMultiplicities.cpp | Mathnerd314/gidiplus | ed4c48ab399a964fe782f73d0a065849b00090bb | [
"MIT-0",
"MIT"
] | null | null | null | MCGIDI/Test/productIndices/productAverageMultiplicities.cpp | Mathnerd314/gidiplus | ed4c48ab399a964fe782f73d0a065849b00090bb | [
"MIT-0",
"MIT"
] | null | null | null | MCGIDI/Test/productIndices/productAverageMultiplicities.cpp | Mathnerd314/gidiplus | ed4c48ab399a964fe782f73d0a065849b00090bb | [
"MIT-0",
"MIT"
] | null | null | null | /*
# <<BEGIN-copyright>>
# Copyright 2019, Lawrence Livermore National Security, LLC.
# See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: MIT
# <<END-copyright>>
*/
#include <stdlib.h>
#include <iostream>
#include <iomanip>
#include <set>
#include "MCGIDI.hpp"
#include "GIDI_testUtilities.h... | 36.319588 | 151 | 0.600624 | Mathnerd314 |
72fd6a23da1e678d99fdd25220a3f160f47805be | 1,031 | cpp | C++ | modules/bio_format/corrected_reads.cpp | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 16 | 2021-07-14T23:32:31.000Z | 2022-03-24T16:25:15.000Z | modules/bio_format/corrected_reads.cpp | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 9 | 2021-07-20T20:39:47.000Z | 2021-09-16T20:57:59.000Z | modules/bio_format/corrected_reads.cpp | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 9 | 2021-07-15T19:38:35.000Z | 2022-01-31T19:24:56.000Z | #include "modules/bio_format/corrected_reads.h"
#include "modules/bio_base/corrected_read.h"
#include "modules/io/log.h"
#include "modules/io/registry.h"
#include <boost/format.hpp>
REGISTER_3(exporter, corrected_reads, writable&, bool, const std::string&);
void corrected_reads_exporter::write(const std::string& ke... | 30.323529 | 117 | 0.683802 | spiralgenetics |
72fe0f933d4d81e493dcce8390c0bb2d8df81482 | 7,838 | cpp | C++ | cpp/tests/strings/chars_types_tests.cpp | IbrahimBRammaha/cudf | 57ddd5ed0cd7a24500adfc208a08075843f70979 | [
"Apache-2.0"
] | 1 | 2020-04-18T23:47:25.000Z | 2020-04-18T23:47:25.000Z | cpp/tests/strings/chars_types_tests.cpp | benfred/cudf | 3cd4c9f0602840dddb9a0e247d5a0bcf3d7266e1 | [
"Apache-2.0"
] | null | null | null | cpp/tests/strings/chars_types_tests.cpp | benfred/cudf | 3cd4c9f0602840dddb9a0e247d5a0bcf3d7266e1 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2019-2020, NVIDIA CORPORATION.
*
* 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... | 47.216867 | 119 | 0.666114 | IbrahimBRammaha |
f4013b1436ccb84c56d4c239ae243343fd6a9ede | 2,627 | cpp | C++ | usystem/tests/kernel_api_tests/src/pgrp.cpp | heatd/Onyx | 404fce9c89a1d4ab561b5be63bd9bc68a6c9d91d | [
"MIT"
] | 44 | 2017-02-16T20:48:09.000Z | 2022-03-14T17:58:57.000Z | usystem/tests/kernel_api_tests/src/pgrp.cpp | heatd/Onyx | 404fce9c89a1d4ab561b5be63bd9bc68a6c9d91d | [
"MIT"
] | 72 | 2017-02-16T20:22:10.000Z | 2022-03-31T21:17:06.000Z | usystem/tests/kernel_api_tests/src/pgrp.cpp | heatd/Onyx | 404fce9c89a1d4ab561b5be63bd9bc68a6c9d91d | [
"MIT"
] | 10 | 2017-04-07T19:20:14.000Z | 2021-12-16T03:31:14.000Z | /*
* Copyright (c) 2020 Pedro Falcato
* This file is part of Onyx, and is released under the terms of the MIT License
* check LICENSE at the root directory for more information
*/
#include <unistd.h>
#include <fcntl.h>
#include <gtest/gtest.h>
#include <cstring>
#include <sys/wait.h>
#include <string>
#include "../incl... | 18.243056 | 85 | 0.668824 | heatd |
f4028f4be7455f0dd024dc1540899f9ff825af06 | 12,047 | cc | C++ | tests/unit/machine/gp/EPInferenceMethod_unittest.cc | tallamjr/shogun | c964c9d1aab4bc1cf9133baf14d3bd5b96ba42de | [
"BSD-3-Clause"
] | 2,753 | 2015-01-02T11:34:13.000Z | 2022-03-25T07:04:27.000Z | tests/unit/machine/gp/EPInferenceMethod_unittest.cc | tallamjr/shogun | c964c9d1aab4bc1cf9133baf14d3bd5b96ba42de | [
"BSD-3-Clause"
] | 2,404 | 2015-01-02T19:31:41.000Z | 2022-03-09T10:58:22.000Z | tests/unit/machine/gp/EPInferenceMethod_unittest.cc | tallamjr/shogun | c964c9d1aab4bc1cf9133baf14d3bd5b96ba42de | [
"BSD-3-Clause"
] | 1,156 | 2015-01-03T01:57:21.000Z | 2022-03-26T01:06:28.000Z | /*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: Roman Votyakov, Wu Lin, Pan Deng
*/
#include <gtest/gtest.h>
#include <shogun/lib/config.h>
#include <shogun/labels/BinaryLabels.h>
#include <shogun/features/DenseFeatures.h>
#include <shogun/kernel/GaussianKernel.h>
#in... | 31.372396 | 92 | 0.742093 | tallamjr |
f40922ee3bec89387527ae072474ccee975d5071 | 33,388 | cpp | C++ | app_skeleton_shadow.cpp | blu/hello-chromeos-gles2 | 6ab863b734e053eef3b0185d17951353a49db359 | [
"MIT"
] | 3 | 2018-09-03T20:55:24.000Z | 2020-10-04T04:36:30.000Z | app_skeleton_shadow.cpp | blu/hello-chromeos-gles2 | 6ab863b734e053eef3b0185d17951353a49db359 | [
"MIT"
] | 4 | 2018-09-06T04:12:41.000Z | 2020-10-06T14:43:14.000Z | app_skeleton_shadow.cpp | blu/hello-chromeos-gles2 | 6ab863b734e053eef3b0185d17951353a49db359 | [
"MIT"
] | null | null | null | #if PLATFORM_GL
#include <GL/gl.h>
#include <GL/glext.h>
#include "gles_gl_mapping.hpp"
#else
#include <EGL/egl.h>
#include <GLES3/gl3.h>
#include "gles_ext.h"
#if GL_OES_depth_texture == 0
#error Missing required extension GL_OES_depth_texture.
#endif
#if GL_OES_depth24 == 0
#error Missing required extens... | 26.689049 | 134 | 0.674614 | blu |
f40a05ac70e14bd8959617d5aad8327fb48c28d6 | 4,066 | hpp | C++ | source/Euclid/Numerics/Matrix.Inverse.hpp | kurocha/euclid | 932e4a01043442becc696eb337e796ae9578a078 | [
"Unlicense",
"MIT"
] | 7 | 2015-10-16T20:49:20.000Z | 2019-04-17T09:34:35.000Z | source/Euclid/Numerics/Matrix.Inverse.hpp | kurocha/euclid | 932e4a01043442becc696eb337e796ae9578a078 | [
"Unlicense",
"MIT"
] | null | null | null | source/Euclid/Numerics/Matrix.Inverse.hpp | kurocha/euclid | 932e4a01043442becc696eb337e796ae9578a078 | [
"Unlicense",
"MIT"
] | null | null | null | //
// Matrix.Inverse.h
// Euclid
//
// Created by Samuel Williams on 27/11/12.
// Copyright (c) 2012 Samuel Williams. All rights reserved.
//
#ifndef _EUCLID_NUMERICS_MATRIX_INVERSE_H
#define _EUCLID_NUMERICS_MATRIX_INVERSE_H
#include "Matrix.hpp"
namespace Euclid {
namespace Numerics {
template <typename Num... | 33.603306 | 72 | 0.522873 | kurocha |
f40aaf4be64190fb4792a1aafd922d6c9ee31ad7 | 102 | cpp | C++ | c/prueba_static/src/main.cpp | joseluis8906/tests | df222f4bbef0ed4a3bfb53ebc2d1fd44179551f4 | [
"MIT"
] | null | null | null | c/prueba_static/src/main.cpp | joseluis8906/tests | df222f4bbef0ed4a3bfb53ebc2d1fd44179551f4 | [
"MIT"
] | null | null | null | c/prueba_static/src/main.cpp | joseluis8906/tests | df222f4bbef0ed4a3bfb53ebc2d1fd44179551f4 | [
"MIT"
] | null | null | null | #include <iostream>
int main (int args, char* argv[])
{
std::printf ("Hello world\n");
return 0;
}
| 12.75 | 33 | 0.627451 | joseluis8906 |
f40c03f4a2fc28db7e123d10b0a5a822cb457ba0 | 307 | cpp | C++ | aql/benchmark/lib_7/class_0.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | aql/benchmark/lib_7/class_0.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | aql/benchmark/lib_7/class_0.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | #include "class_0.h"
#include "class_5.h"
#include "class_2.h"
#include "class_9.h"
#include "class_3.h"
#include "class_4.h"
#include <lib_4/class_4.h>
#include <lib_4/class_9.h>
#include <lib_5/class_0.h>
#include <lib_2/class_5.h>
#include <lib_4/class_7.h>
class_0::class_0() {}
class_0::~class_0() {}
| 20.466667 | 26 | 0.710098 | menify |
f40db6282a73b8a62b79be6856c0180e3e15b08e | 25 | cpp | C++ | Projects/engine/helpers/hcs_helpers.cpp | Octdoc/SevenDeities | 648324b6b9fb907df93fdf2dfab7379369bdfe9e | [
"MIT"
] | null | null | null | Projects/engine/helpers/hcs_helpers.cpp | Octdoc/SevenDeities | 648324b6b9fb907df93fdf2dfab7379369bdfe9e | [
"MIT"
] | null | null | null | Projects/engine/helpers/hcs_helpers.cpp | Octdoc/SevenDeities | 648324b6b9fb907df93fdf2dfab7379369bdfe9e | [
"MIT"
] | null | null | null | #include "hcs_helpers.h"
| 12.5 | 24 | 0.76 | Octdoc |
f40f2f5135a7008195368cd891aeb07bfe50573a | 4,098 | cpp | C++ | SDK/ARKSurvivalEvolved_PrimalItem_Spawner_HoverSkiff_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_PrimalItem_Spawner_HoverSkiff_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_PrimalItem_Spawner_HoverSkiff_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | // ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_PrimalItem_Spawner_HoverSkiff_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//----------------------------------------------------... | 33.048387 | 170 | 0.756467 | 2bite |
f4145c53e429367e61c94cfa6f344dc2276b91be | 751 | hpp | C++ | source/cppx-core-language/bit-level/Bit_width.hpp | alf-p-steinbach/cppx-core-language | 930351fe0df65e231e8e91998f1c94d345938107 | [
"MIT"
] | 3 | 2020-05-24T16:29:42.000Z | 2021-09-10T13:33:15.000Z | source/cppx-core-language/bit-level/Bit_width.hpp | alf-p-steinbach/cppx-core-language | 930351fe0df65e231e8e91998f1c94d345938107 | [
"MIT"
] | null | null | null | source/cppx-core-language/bit-level/Bit_width.hpp | alf-p-steinbach/cppx-core-language | 930351fe0df65e231e8e91998f1c94d345938107 | [
"MIT"
] | null | null | null | #pragma once // Source encoding: UTF-8 with BOM (π is a lowercase Greek "pi").
#include <cppx-core-language/assert-cpp/is-c++17-or-later.hpp>
#include <cppx-core-language/bit-level/bits_per_.hpp> // cppx::bits_per_
namespace cppx::_ {
struct Bit_width{ enum Enum {
_8 = 8, _16 = 16, _32 = 32, _64... | 27.814815 | 83 | 0.612517 | alf-p-steinbach |
f414c2ac74d2c1baf8725351082e81ddb361e112 | 5,319 | hpp | C++ | example/gmres/KokkosSparse_MatrixPrec.hpp | NexGenAnalytics/kokkos-kernels | 8381db0486674c1be943de23974821ddfb9e6c29 | [
"BSD-3-Clause"
] | null | null | null | example/gmres/KokkosSparse_MatrixPrec.hpp | NexGenAnalytics/kokkos-kernels | 8381db0486674c1be943de23974821ddfb9e6c29 | [
"BSD-3-Clause"
] | 7 | 2020-05-04T16:43:08.000Z | 2022-01-13T16:31:17.000Z | example/gmres/KokkosSparse_MatrixPrec.hpp | NexGenAnalytics/kokkos-kernels | 8381db0486674c1be943de23974821ddfb9e6c29 | [
"BSD-3-Clause"
] | null | null | null | /*
//@HEADER
// ************************************************************************
//
// Kokkos v. 3.0
// Copyright (2020) National Technology & Engineering
// Solutions of Sandia, LLC (NTESS).
//
// Under the terms of Contract DE-NA0003525 with NTESS,
// the U.S. Govern... | 38.266187 | 122 | 0.686595 | NexGenAnalytics |
f4159273b922c3fe27b033cb6da52b8575f29052 | 1,013 | hpp | C++ | libs/rucksack/include/sge/rucksack/axis_policy2.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/rucksack/include/sge/rucksack/axis_policy2.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/rucksack/include/sge/rucksack/axis_policy2.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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)
#ifndef SGE_RUCKSACK_AXIS_POLICY2_HPP_INCLUDED
#define SGE_RUCKSACK_AXIS_POLICY2_HPP_INCLUDED
#inc... | 27.378378 | 87 | 0.757157 | cpreh |
f416863d0f5f143e1f642bf2d3f786a52418e4d9 | 7,340 | cpp | C++ | mapnikvt/src/mapnikvt/CSSColorParser.cpp | farfromrefug/mobile-carto-libs | c7e81a7c73661aa047de9ba7e8bbdf3a24bbf1df | [
"BSD-3-Clause"
] | 6 | 2018-06-27T17:43:35.000Z | 2021-06-29T18:50:49.000Z | mapnikvt/src/mapnikvt/CSSColorParser.cpp | farfromrefug/mobile-carto-libs | c7e81a7c73661aa047de9ba7e8bbdf3a24bbf1df | [
"BSD-3-Clause"
] | 22 | 2019-04-10T06:38:09.000Z | 2022-01-20T08:12:02.000Z | mapnikvt/src/mapnikvt/CSSColorParser.cpp | farfromrefug/mobile-carto-libs | c7e81a7c73661aa047de9ba7e8bbdf3a24bbf1df | [
"BSD-3-Clause"
] | 5 | 2019-03-12T10:25:20.000Z | 2021-12-28T10:18:56.000Z | #include "CSSColorParser.h"
#include "StringUtils.h"
#include <array>
#include <sstream>
#include <iomanip>
#include <algorithm>
namespace carto { namespace mvt {
bool parseCSSColor(std::string name, unsigned int& value) {
static const struct ColorEntry { const char* name; unsigned int value; } colorEntri... | 37.44898 | 112 | 0.440054 | farfromrefug |
f41820289cc4554b54692b66b714c05a14cf0815 | 1,733 | cc | C++ | ProSupplementalData.cc | hiqsol/reclient | 02c2f0c21a4378a5dbcc058f468d98c34e1d1190 | [
"BSD-3-Clause"
] | 2 | 2018-11-14T11:18:49.000Z | 2018-11-17T05:13:52.000Z | ProSupplementalData.cc | hiqsol/reclient | 02c2f0c21a4378a5dbcc058f468d98c34e1d1190 | [
"BSD-3-Clause"
] | null | null | null | ProSupplementalData.cc | hiqsol/reclient | 02c2f0c21a4378a5dbcc058f468d98c34e1d1190 | [
"BSD-3-Clause"
] | null | null | null | #include "ProSupplementalData.h"
using namespace std;
using namespace domtools;
using namespace eppobject::epp;
epp_string ProSupplementalData::toXML()
{
domtools::xml_string_output xmltext;
xmltext.setWhitespace(false);
xmltext.beginTag("supplementalData:"+(*m_op));
xmltext.putAttribute("xmlns:supp... | 32.092593 | 123 | 0.661281 | hiqsol |
f419dab890a8d3c824b32aa5b2db4bf503e94e88 | 436 | cpp | C++ | PathTracer/src/platform/opengl/rendering/pipeline/GLPipeline.cpp | Andrispowq/PathTracer | 8965ddf5c70f55740955e24242981633f000a354 | [
"Apache-2.0"
] | 1 | 2020-12-04T13:36:03.000Z | 2020-12-04T13:36:03.000Z | PathTracer/src/platform/opengl/rendering/pipeline/GLPipeline.cpp | Andrispowq/PathTracer | 8965ddf5c70f55740955e24242981633f000a354 | [
"Apache-2.0"
] | null | null | null | PathTracer/src/platform/opengl/rendering/pipeline/GLPipeline.cpp | Andrispowq/PathTracer | 8965ddf5c70f55740955e24242981633f000a354 | [
"Apache-2.0"
] | null | null | null | #include "Includes.hpp"
#include "GLPipeline.h"
namespace Prehistoric
{
GLPipeline::GLPipeline(Window* window, AssetManager* manager, ShaderHandle shader)
: Pipeline(window, manager, shader)
{
}
void GLPipeline::BindPipeline(CommandBuffer* buffer) const
{
this->buffer = buffer;
shader->Bind(buffer);
}
v... | 16.769231 | 83 | 0.715596 | Andrispowq |
f41d2ebfcd0b9298fbc806df961d0606b68acc6b | 2,321 | cpp | C++ | src/tests/mkdarts.cpp | lzzgeo/NLP | 2c9e02d62b900d8729a60d3fc68d5954b4d6e3f9 | [
"MIT"
] | null | null | null | src/tests/mkdarts.cpp | lzzgeo/NLP | 2c9e02d62b900d8729a60d3fc68d5954b4d6e3f9 | [
"MIT"
] | null | null | null | src/tests/mkdarts.cpp | lzzgeo/NLP | 2c9e02d62b900d8729a60d3fc68d5954b4d6e3f9 | [
"MIT"
] | 1 | 2018-05-18T17:17:35.000Z | 2018-05-18T17:17:35.000Z | /*
Darts -- Double-ARray Trie System
$Id: mkdarts.cpp 1674 2008-03-22 11:21:34Z taku $;
Copyright(C) 2001-2007 Taku Kudo <taku@chasen.org>
All rights reserved.
*/
#include <darts.h>
#include <cstdio>
#include <fstream>
#include <iostream>
#include <vector>
#include <string>
#include <set>
using namespace std... | 22.533981 | 75 | 0.559673 | lzzgeo |
f41f3dd5a0605c7a6f8926f698142e78dfd77be3 | 7,526 | cpp | C++ | yave/renderer/LightingPass.cpp | ValtoGameEngines/Yave-Engine | aa8850c1e46ba2017db799eca43cee835db3d3b8 | [
"MIT"
] | 2 | 2020-07-20T19:05:26.000Z | 2021-01-09T14:42:22.000Z | yave/renderer/LightingPass.cpp | ValtoGameEngines/Yave-Engine | aa8850c1e46ba2017db799eca43cee835db3d3b8 | [
"MIT"
] | null | null | null | yave/renderer/LightingPass.cpp | ValtoGameEngines/Yave-Engine | aa8850c1e46ba2017db799eca43cee835db3d3b8 | [
"MIT"
] | 1 | 2020-06-29T08:05:53.000Z | 2020-06-29T08:05:53.000Z | /*******************************
Copyright (c) 2016-2020 Grégoire Angerand
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... | 38.397959 | 170 | 0.751395 | ValtoGameEngines |
f41f552ef840bfc505608ad093bcab39b1b2860c | 4,975 | cpp | C++ | src/plugins/playback/adplug/adplug_lib/src/raw.cpp | emoon/HippoPlayer | a3145f9797a5ef7dd1b79ee8ccd3476c8c5310a6 | [
"Apache-2.0",
"MIT"
] | 67 | 2018-01-17T17:18:37.000Z | 2020-08-24T23:45:56.000Z | src/plugins/playback/adplug/adplug_lib/src/raw.cpp | emoon/HippoPlayer | a3145f9797a5ef7dd1b79ee8ccd3476c8c5310a6 | [
"Apache-2.0",
"MIT"
] | 132 | 2018-01-17T17:43:25.000Z | 2020-09-01T07:41:17.000Z | src/plugins/playback/adplug/adplug_lib/src/raw.cpp | HippoPlayer/HippoPlayer | a3145f9797a5ef7dd1b79ee8ccd3476c8c5310a6 | [
"Apache-2.0",
"MIT"
] | 5 | 2021-02-12T15:23:31.000Z | 2022-01-09T15:16:21.000Z | /*
* Adplug - Replayer for many OPL2/OPL3 audio file formats.
* Copyright (C) 1999 - 2005 Simon Peter, <dn.tlp@gmx.net>, et al.
*
* This library 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; ei... | 27.185792 | 89 | 0.602211 | emoon |
f421240c152d166a0e6e1371ea7c5f68e3181aba | 333 | cpp | C++ | PS_I_2.cpp | prameetu/CP_codes | 41f8cfc188d2e08a8091bc5134247d05ba8a78f5 | [
"MIT"
] | null | null | null | PS_I_2.cpp | prameetu/CP_codes | 41f8cfc188d2e08a8091bc5134247d05ba8a78f5 | [
"MIT"
] | null | null | null | PS_I_2.cpp | prameetu/CP_codes | 41f8cfc188d2e08a8091bc5134247d05ba8a78f5 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
long taskOfPairing(vector<long> freq) {
long ans(0),temp(0);
for(long i=0;i<freq.size();i++)
{
ans += freq[i]/2;
temp += freq[i]%2;
if(temp==2)
{
ans++;
temp=0;
}
}
... | 15.136364 | 39 | 0.417417 | prameetu |
f421db30335dc6621ce478e934a26609a36b2a70 | 6,624 | cpp | C++ | GlobalIllumination/ObjLoader.cpp | wzchua/graphic | 71d154b56a268cce6a1b06e275083210e205aa60 | [
"Apache-2.0"
] | null | null | null | GlobalIllumination/ObjLoader.cpp | wzchua/graphic | 71d154b56a268cce6a1b06e275083210e205aa60 | [
"Apache-2.0"
] | null | null | null | GlobalIllumination/ObjLoader.cpp | wzchua/graphic | 71d154b56a268cce6a1b06e275083210e205aa60 | [
"Apache-2.0"
] | null | null | null | #include "ObjLoader.h"
static bool fileExists(const std::string & fileName)
{
struct stat info;
int ret = -1;
ret = stat(fileName.c_str(), &info);
return 0 == ret;
}
bool ObjLoader::loadObj(const std::string & path, SceneMaterialManager & sceneMatManager, glm::vec3 & min, glm::vec3 & max)
{
tinyo... | 40.638037 | 136 | 0.581824 | wzchua |
f422ca1e05962361f69734a30a796b7f17fbfcf5 | 4,762 | cpp | C++ | src/he_plain_tensor.cpp | jopasserat/he-transformer | d2865be507d2e20568ca5289513925c813aa59e6 | [
"Apache-2.0"
] | null | null | null | src/he_plain_tensor.cpp | jopasserat/he-transformer | d2865be507d2e20568ca5289513925c813aa59e6 | [
"Apache-2.0"
] | null | null | null | src/he_plain_tensor.cpp | jopasserat/he-transformer | d2865be507d2e20568ca5289513925c813aa59e6 | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2018-2019 Intel Corporation
//
// 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://w... | 39.032787 | 80 | 0.599748 | jopasserat |
f424130cbd1912eb611a58dc95b3f24218a124c6 | 29,370 | cpp | C++ | face-liveness/face2/LandmarkDetectorFunc.cpp | ForrestPi/FaceSolution | cf19b2916a8bf285e457903e8d202055b092fc73 | [
"MIT"
] | 1 | 2022-01-04T02:24:48.000Z | 2022-01-04T02:24:48.000Z | face-liveness/face2/LandmarkDetectorFunc.cpp | ForrestPi/FaceSolution | cf19b2916a8bf285e457903e8d202055b092fc73 | [
"MIT"
] | null | null | null | face-liveness/face2/LandmarkDetectorFunc.cpp | ForrestPi/FaceSolution | cf19b2916a8bf285e457903e8d202055b092fc73 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2016, Carnegie Mellon University and University of Cambridge,
// all rights reserved.
//
// THIS SOFTWARE IS PROVIDED �AS IS� FOR ACADEMIC USE ONLY AND ANY EXPRESS
// OR IMPLIED WARRANTIES WARRANTIES, INCLUDING, BUT NOT LI... | 47.21865 | 206 | 0.680899 | ForrestPi |
f4251b865ebba9a3180847e83af578779e06ce52 | 924 | hpp | C++ | include/luabind/register_lib.hpp | nfluxgb/luabind | 1cb41ff15766b50d3ae09eb805a7087c1bca7738 | [
"MIT"
] | null | null | null | include/luabind/register_lib.hpp | nfluxgb/luabind | 1cb41ff15766b50d3ae09eb805a7087c1bca7738 | [
"MIT"
] | null | null | null | include/luabind/register_lib.hpp | nfluxgb/luabind | 1cb41ff15766b50d3ae09eb805a7087c1bca7738 | [
"MIT"
] | null | null | null | #pragma once
#include "method_definition.hpp"
#include <lua.hpp>
#include <vector>
#include <tuple>
#include <iostream>
namespace luabind {
namespace detail {
template<typename CallbackT>
struct definition_helper {
public:
typedef void result_type;
definition_helper(std::vector<luaL_Reg>& definitions)
: definit... | 20.533333 | 80 | 0.730519 | nfluxgb |
f426f608fb2b70cfd0b22993d0f1801305246e76 | 1,671 | cpp | C++ | Leetcode/res/Design Tic-Tac-Toe/2.cpp | AllanNozomu/CompetitiveProgramming | ac560ab5784d2e2861016434a97e6dcc44e26dc8 | [
"MIT"
] | 1 | 2022-03-04T16:06:41.000Z | 2022-03-04T16:06:41.000Z | Leetcode/res/Design Tic-Tac-Toe/2.cpp | AllanNozomu/CompetitiveProgramming | ac560ab5784d2e2861016434a97e6dcc44e26dc8 | [
"MIT"
] | null | null | null | Leetcode/res/Design Tic-Tac-Toe/2.cpp | AllanNozomu/CompetitiveProgramming | ac560ab5784d2e2861016434a97e6dcc44e26dc8 | [
"MIT"
] | null | null | null | \*
Author: allannozomu
Runtime: 960 ms
Memory: 20 MB*\
class TicTacToe {
private:
vector<vector<int>> grid;
int size;
public:
/** Initialize your data structure here. */
TicTacToe(int n) {
grid = vector<vector<int>>(n, vector<int>(n));
size = n;
}
int win(int player){
... | 27.85 | 67 | 0.495512 | AllanNozomu |
f4275a3221fe9f700acd759050a4d35b4a04ce9f | 1,689 | hh | C++ | inc/Rt.hh | Tastyep/cpp-rt | c274e86a2fe158746c6a9381c73cf55344823f4e | [
"MIT"
] | null | null | null | inc/Rt.hh | Tastyep/cpp-rt | c274e86a2fe158746c6a9381c73cf55344823f4e | [
"MIT"
] | null | null | null | inc/Rt.hh | Tastyep/cpp-rt | c274e86a2fe158746c6a9381c73cf55344823f4e | [
"MIT"
] | null | null | null | #ifndef RT_RT_HH
#define RT_RT_HH
#include "Camera.hh"
#include "LightModel.hh"
#include "Math.hh"
#include "SceneObj.hh"
#include <SFML/System.hpp>
#include <memory>
#include <utility>
struct InterData {
Vector ray;
Vector normal;
Position vecPos;
Position impact;
double k;
std::shared_ptr<SceneObj> obj... | 25.984615 | 78 | 0.683245 | Tastyep |
f42762b5aa553ee5f9951dc37bd23689204b0a58 | 1,165 | cpp | C++ | tests/Test_Assert_Enabled.cpp | planar-foundry/PF_Debug | 99208f11db21b0624a1fd8d44c62ac2d687c93a1 | [
"MIT"
] | null | null | null | tests/Test_Assert_Enabled.cpp | planar-foundry/PF_Debug | 99208f11db21b0624a1fd8d44c62ac2d687c93a1 | [
"MIT"
] | null | null | null | tests/Test_Assert_Enabled.cpp | planar-foundry/PF_Debug | 99208f11db21b0624a1fd8d44c62ac2d687c93a1 | [
"MIT"
] | null | null | null | #include <PF_Test/UnitTest.hpp>
#include <PF_Debug/Assert.hpp>
#include <string.h>
using namespace pf::debug;
PFTEST_CREATE(Assert_Enabled)
{
static bool s_in_assert = false;
static const char* s_condition;
static const char* s_message;
set_assert_handler([](const char* condition, const char*, int, ... | 23.77551 | 87 | 0.672961 | planar-foundry |
f42919927011cd787d4cc94f180db478649222c5 | 702 | cpp | C++ | D3D11_ColorFilter/src/main.cpp | ProjectAsura/D3D11Samples | fb715afc4718cbb657b5fb2f0885304b1967f55e | [
"MIT"
] | null | null | null | D3D11_ColorFilter/src/main.cpp | ProjectAsura/D3D11Samples | fb715afc4718cbb657b5fb2f0885304b1967f55e | [
"MIT"
] | null | null | null | D3D11_ColorFilter/src/main.cpp | ProjectAsura/D3D11Samples | fb715afc4718cbb657b5fb2f0885304b1967f55e | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------
// File : main.cpp
// Desc : Main Entry Point.
// Copyright(c) Project Asura. All right reserved.
//-----------------------------------------------------------------------------
//----------------------------------------------------------... | 33.428571 | 80 | 0.192308 | ProjectAsura |
f42bd0434943cfebef8687e5da991c62a42f66ac | 44 | hpp | C++ | src/boost_fusion_include_advance.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_fusion_include_advance.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_fusion_include_advance.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/fusion/include/advance.hpp>
| 22 | 43 | 0.795455 | miathedev |
f42d046fbb7f4e92634549601b9ca25213de711a | 7,708 | cc | C++ | src/math/transform.cc | sylvainbouxin/MiyukiRenderer | 88242b9e18ca7eaa1c751ab07f585fac8b591b5a | [
"MIT"
] | null | null | null | src/math/transform.cc | sylvainbouxin/MiyukiRenderer | 88242b9e18ca7eaa1c751ab07f585fac8b591b5a | [
"MIT"
] | null | null | null | src/math/transform.cc | sylvainbouxin/MiyukiRenderer | 88242b9e18ca7eaa1c751ab07f585fac8b591b5a | [
"MIT"
] | 1 | 2019-09-11T20:20:54.000Z | 2019-09-11T20:20:54.000Z | //
// Created by Shiina Miyuki on 2019/1/19.
//
#include "transform.h"
using namespace Miyuki;
Matrix4x4::Matrix4x4() {
}
Matrix4x4::Matrix4x4(Float _m[4][4]) {
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++) {
m[i][j] = _m[i][j];
}
}
}
Matrix4x4 &Matrix4x4::operator... | 26.57931 | 103 | 0.357421 | sylvainbouxin |
f42f3172f6ab385c2c34bedcaa7d40875335d458 | 7,461 | hpp | C++ | src/rectangle_base_cover.hpp | phillip-keldenich/circlecover-triangles | f4f0a9ebb30a6e0851410fc4b011471101886869 | [
"MIT"
] | null | null | null | src/rectangle_base_cover.hpp | phillip-keldenich/circlecover-triangles | f4f0a9ebb30a6e0851410fc4b011471101886869 | [
"MIT"
] | null | null | null | src/rectangle_base_cover.hpp | phillip-keldenich/circlecover-triangles | f4f0a9ebb30a6e0851410fc4b011471101886869 | [
"MIT"
] | null | null | null | /*
* Copyright 2022 Phillip Keldenich, Algorithms Department, TU Braunschweig
*
* 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 righ... | 45.218182 | 130 | 0.67377 | phillip-keldenich |
f43c048e3700abac665c7a0c80b8c45f9d3cb295 | 801 | cpp | C++ | src/intersection.cpp | kdbohne/pt | 78250c676b9cd03f1acdd27dcbec1e0b6209572b | [
"BSD-2-Clause"
] | null | null | null | src/intersection.cpp | kdbohne/pt | 78250c676b9cd03f1acdd27dcbec1e0b6209572b | [
"BSD-2-Clause"
] | null | null | null | src/intersection.cpp | kdbohne/pt | 78250c676b9cd03f1acdd27dcbec1e0b6209572b | [
"BSD-2-Clause"
] | null | null | null | #include "intersection.h"
// TODO: move this somewhere else
static constexpr float SHADOW_EPSILON = 0.0001;
Intersection::Intersection(const Point3f &p)
: p(p), n(Normal3f()), wo(Vector3f()), time(0), entity(nullptr)
{
}
Ray Intersection::spawn_ray(const Vector3f &d) const
{
// TODO: OffsetRayOrigin()?
r... | 25.03125 | 77 | 0.666667 | kdbohne |
f43d41f668104b3e2054e11f1d5a8ee843f1be9a | 4,128 | cpp | C++ | webots_ros2_driver/src/plugins/dynamic/Ros2IMU.cpp | TaoYibo1866/webots_ros2 | a72c164825663cebbfd27e0649ea51d3abf9bbed | [
"Apache-2.0"
] | 176 | 2019-09-06T07:02:05.000Z | 2022-03-27T12:41:10.000Z | webots_ros2_driver/src/plugins/dynamic/Ros2IMU.cpp | harshag37/webots_ros2 | 08a061e73e3b88d57cc27b662be0f907d8b9f15b | [
"Apache-2.0"
] | 308 | 2019-08-20T12:56:23.000Z | 2022-03-29T09:49:22.000Z | webots_ros2_driver/src/plugins/dynamic/Ros2IMU.cpp | omichel/webots_ros2 | 5b59d0b1fbeff4c3f75a447bd152c10853f4691b | [
"Apache-2.0"
] | 67 | 2019-11-03T00:58:09.000Z | 2022-03-18T07:11:28.000Z | // Copyright 1996-2021 Cyberbotics 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
//
// Unless required by applicable law or agr... | 30.352941 | 133 | 0.674903 | TaoYibo1866 |
f43e225c5d556ebd17e803de0f1456df2f0dfca6 | 447 | cpp | C++ | support_functions.cpp | AVDer/rpi_egl_tests | 323d0f7e9926039d8a22f0eb5916d228ba260375 | [
"MIT"
] | null | null | null | support_functions.cpp | AVDer/rpi_egl_tests | 323d0f7e9926039d8a22f0eb5916d228ba260375 | [
"MIT"
] | null | null | null | support_functions.cpp | AVDer/rpi_egl_tests | 323d0f7e9926039d8a22f0eb5916d228ba260375 | [
"MIT"
] | null | null | null | #include "support_functions.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "logger.h"
size_t get_file_size(const std::string& filename) {
struct stat file_stat;
if (stat(filename.c_str(), &file_stat) == -1) {
Logger::error("File: can't stat file %s", filename.c_str());
retur... | 24.833333 | 87 | 0.680089 | AVDer |
f444514f9ceba77d9059e382e7dcffebd313e78e | 1,335 | hpp | C++ | module-services/service-gui/DrawCommandsQueue.hpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 369 | 2021-11-10T09:20:29.000Z | 2022-03-30T06:36:58.000Z | module-services/service-gui/DrawCommandsQueue.hpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 149 | 2021-11-10T08:38:35.000Z | 2022-03-31T23:01:52.000Z | module-services/service-gui/DrawCommandsQueue.hpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 41 | 2021-11-10T08:30:37.000Z | 2022-03-29T08:12:46.000Z | // Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "SynchronizationMechanism.hpp"
#include <gui/core/DrawCommand.hpp>
#include <cstdint>
#include <list>
#include <memory>
#include <vector>
namespace service::g... | 29.666667 | 113 | 0.66367 | bitigchi |
f44615163d2dd4bb3ad79dcbd576a7b5b757c61d | 1,887 | cpp | C++ | RobWorkStudio/src/rwslibs/workcelleditor/FileDialogButton.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | 1 | 2021-12-29T14:16:27.000Z | 2021-12-29T14:16:27.000Z | RobWorkStudio/src/rwslibs/workcelleditor/FileDialogButton.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | RobWorkStudio/src/rwslibs/workcelleditor/FileDialogButton.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | /********************************************************************************
* Copyright 2019 The Robotics Group, The Maersk Mc-Kinney Moller Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | 36.288462 | 82 | 0.645469 | ZLW07 |
f44b43a2412556f681c105ac2156a05b3be638c5 | 8,058 | cpp | C++ | src/replacement/Shell32ReplacementLibrary/Shell32ReplacementLibrary.cpp | SecurityInnovation/Holodeck | 54b97675a73b668f8eec8d9c8a8c7733e1a53db3 | [
"MIT"
] | 35 | 2015-05-16T06:36:47.000Z | 2021-08-31T15:32:09.000Z | src_2_8/replacement/Shell32ReplacementLibrary/Shell32ReplacementLibrary.cpp | crypticterminal/Holodeck | 54b97675a73b668f8eec8d9c8a8c7733e1a53db3 | [
"MIT"
] | 3 | 2015-06-18T06:16:51.000Z | 2017-11-16T23:23:59.000Z | src_2_8/replacement/Shell32ReplacementLibrary/Shell32ReplacementLibrary.cpp | crypticterminal/Holodeck | 54b97675a73b668f8eec8d9c8a8c7733e1a53db3 | [
"MIT"
] | 10 | 2015-04-07T14:45:48.000Z | 2021-11-14T15:14:45.000Z | //*************************************************************************
// Copyright (C) Security Innovation, LLC, 2002-2004 All Rights Reserved.
//
// FILE: Shell32ReplacementLibrary.cpp
//
// DESCRIPTION: Contains replacement library functions for shell32.dll
//
//===============================================... | 38.740385 | 191 | 0.557707 | SecurityInnovation |
f44bd661137940eac42ce2db0c9c99fdc440d2db | 956 | cpp | C++ | Greedy/Killjoy.cpp | kothariji/Competitive-Programming | c49f8b0135c8e9dd284ce8ab583e85ba3d809b8c | [
"MIT"
] | 1 | 2020-08-27T06:59:52.000Z | 2020-08-27T06:59:52.000Z | Greedy/Killjoy.cpp | kothariji/Competitive-Programming | c49f8b0135c8e9dd284ce8ab583e85ba3d809b8c | [
"MIT"
] | null | null | null | Greedy/Killjoy.cpp | kothariji/Competitive-Programming | c49f8b0135c8e9dd284ce8ab583e85ba3d809b8c | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define ll long long
using namespace std;
int32_t main()
{
ios::sync_with_stdio(0);
cin.tie(0);
ll t;
cin >> t;
while (t--)
{
ll n, x;
cin >> n >> x;
ll arr[n];
ll flag = 0;
ll cnt = 0;
for (ll i = 0; i < n... | 16.77193 | 34 | 0.264644 | kothariji |
f44f840ed5d865b2a221143e73a201cad44f358a | 15,856 | cc | C++ | Mysql/sql/tc_log.cc | clockzhong/WrapLAMP | fa7ad07da3f1759e74966a554befa47bbbbb8dd5 | [
"Apache-2.0"
] | 1 | 2015-12-24T16:44:50.000Z | 2015-12-24T16:44:50.000Z | Mysql/sql/tc_log.cc | clockzhong/WrapLAMP | fa7ad07da3f1759e74966a554befa47bbbbb8dd5 | [
"Apache-2.0"
] | 1 | 2015-12-24T18:23:56.000Z | 2015-12-24T18:24:26.000Z | Mysql/sql/tc_log.cc | clockzhong/WrapLAMP | fa7ad07da3f1759e74966a554befa47bbbbb8dd5 | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2015, Oracle 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 as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hop... | 28.16341 | 86 | 0.659435 | clockzhong |
f450a114d249a8b268d08f4a270b3082634e4288 | 196 | cpp | C++ | src/noj_am/BOJ_14652.cpp | ginami0129g/my-problem-solving | b173b5df42354b206839711fa166fcd515c6a69c | [
"Beerware"
] | 1 | 2020-06-01T12:19:31.000Z | 2020-06-01T12:19:31.000Z | src/noj_am/BOJ_14652.cpp | ginami0129g/my-study-history | b173b5df42354b206839711fa166fcd515c6a69c | [
"Beerware"
] | 23 | 2020-11-08T07:14:02.000Z | 2021-02-11T11:16:00.000Z | src/noj_am/BOJ_14652.cpp | ginami0129g/my-problem-solving | b173b5df42354b206839711fa166fcd515c6a69c | [
"Beerware"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int n, m, k;
int main(void) {
cin.tie(NULL);
ios_base::sync_with_stdio(false);
cin >> n >> m >> k;
cout << k / m << ' ' << k % m << '\n';
} | 16.333333 | 40 | 0.52551 | ginami0129g |
f45115f9c1ec431a0b9a03f9e2a5e66585a43b7b | 6,200 | cpp | C++ | SVEngine/src/rendercore/SVRenderer.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 34 | 2018-09-28T08:28:27.000Z | 2022-01-15T10:31:41.000Z | SVEngine/src/rendercore/SVRenderer.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | null | null | null | SVEngine/src/rendercore/SVRenderer.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 8 | 2018-10-11T13:36:35.000Z | 2021-04-01T09:29:34.000Z | //
// SVRenderer.cpp
// SVEngine
// Copyright 2017-2020
// yizhou Fu,long Yin,longfei Lin,ziyu Xu,xiaofan Li,daming Li
//
#include "SVRenderer.h"
#include "../app/SVInst.h"
#include "../work/SVTdCore.h"
#include "../mtl/SVTexMgr.h"
#include "../mtl/SVTexture.h"
#include "../mtl/SVTextureIOS.h"
#include "SVRenderMgr.h"... | 24.124514 | 122 | 0.659516 | SVEChina |
f45d57365119bcd630de4c8b05560130ca575bc5 | 3,172 | cpp | C++ | Code/Engine/Renderer/SpriteRenderer/ParticleSystem/ParticleEmitter2D.cpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | 2 | 2017-10-02T03:18:55.000Z | 2018-11-21T16:30:36.000Z | Code/Engine/Renderer/SpriteRenderer/ParticleSystem/ParticleEmitter2D.cpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | null | null | null | Code/Engine/Renderer/SpriteRenderer/ParticleSystem/ParticleEmitter2D.cpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | null | null | null | #include "Engine/Renderer/SpriteRenderer/ParticleSystem/ParticleEmitter2D.hpp"
//---------------------------------------------------------------------------------------------------------------------------
//STRUCTORS
//----------------------------------------------------------------------------------------------------... | 32.367347 | 166 | 0.546974 | ntaylorbishop |
f45e0b9877bd17daf15c3c560b5ff8ef4c6b8db3 | 11,652 | cpp | C++ | vegastrike/src/networking/lowlevel/packet.cpp | Ezeer/VegaStrike_win32FR | 75891b9ccbdb95e48e15d3b4a9cd977955b97d1f | [
"MIT"
] | null | null | null | vegastrike/src/networking/lowlevel/packet.cpp | Ezeer/VegaStrike_win32FR | 75891b9ccbdb95e48e15d3b4a9cd977955b97d1f | [
"MIT"
] | null | null | null | vegastrike/src/networking/lowlevel/packet.cpp | Ezeer/VegaStrike_win32FR | 75891b9ccbdb95e48e15d3b4a9cd977955b97d1f | [
"MIT"
] | null | null | null | #include <config.h>
#if !defined (_WIN32)
#include <unistd.h>
#endif
#include <math.h>
//zlib is required for libpng, so these people must have one.
#ifndef NO_GFX
#ifndef HAVE_ZLIB_H
#define HAVE_ZLIB_H 1
#endif
#endif
#ifdef HAVE_ZLIB_H
#include <zlib.h>
#endif /* HAVE_ZLIB_H */
#include "packet.h"
#include "vsne... | 28.558824 | 107 | 0.547717 | Ezeer |
f46045c8cd0a5d9e8c8ffe7ece82652884d27dcc | 2,164 | hpp | C++ | Logger/include/Logger/sink/log_sink.hpp | tmiguelf/Logger | 7cf568a97711480a7ba23d5f6adeb49d05cd6f78 | [
"MIT"
] | null | null | null | Logger/include/Logger/sink/log_sink.hpp | tmiguelf/Logger | 7cf568a97711480a7ba23d5f6adeb49d05cd6f78 | [
"MIT"
] | null | null | null | Logger/include/Logger/sink/log_sink.hpp | tmiguelf/Logger | 7cf568a97711480a7ba23d5f6adeb49d05cd6f78 | [
"MIT"
] | null | null | null | //======== ======== ======== ======== ======== ======== ======== ========
/// \file
///
/// \copyright
/// Copyright (c) 2020 Tiago Miguel Oliveira Freire
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to ... | 32.298507 | 83 | 0.692699 | tmiguelf |
f464332a6ff3c22a903eee8dc0556f596c8578a1 | 988 | hpp | C++ | tests/app/src/opengl2/mordaren/OpenGL2Renderer.hpp | Mactor2018/morda | 7194f973783b4472b8671fbb52e8c96e8c972b90 | [
"MIT"
] | 1 | 2018-10-27T05:07:05.000Z | 2018-10-27T05:07:05.000Z | tests/app/src/opengl2/mordaren/OpenGL2Renderer.hpp | Mactor2018/morda | 7194f973783b4472b8671fbb52e8c96e8c972b90 | [
"MIT"
] | null | null | null | tests/app/src/opengl2/mordaren/OpenGL2Renderer.hpp | Mactor2018/morda | 7194f973783b4472b8671fbb52e8c96e8c972b90 | [
"MIT"
] | null | null | null | #pragma once
#include <GL/glew.h>
#include <morda/render/Renderer.hpp>
#include "OpenGL2Factory.hpp"
namespace mordaren{
class OpenGL2Renderer : public morda::Renderer{
GLuint defaultFramebuffer;
public:
OpenGL2Renderer(std::unique_ptr<OpenGL2Factory> factory = utki::makeUnique<OpenGL2Factory>());
OpenGL2Rend... | 23.52381 | 120 | 0.783401 | Mactor2018 |
f46455af60b3482d696ecb4c42ed31fd0639761d | 16,398 | hh | C++ | src/cpu/kvm/base.hh | joerocklin/gem5 | bc199672491f16e678c35d2187917738c24d6628 | [
"BSD-3-Clause"
] | null | null | null | src/cpu/kvm/base.hh | joerocklin/gem5 | bc199672491f16e678c35d2187917738c24d6628 | [
"BSD-3-Clause"
] | null | null | null | src/cpu/kvm/base.hh | joerocklin/gem5 | bc199672491f16e678c35d2187917738c24d6628 | [
"BSD-3-Clause"
] | 2 | 2018-11-06T18:41:38.000Z | 2019-01-30T00:51:40.000Z | /*
* Copyright (c) 2012 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the funct... | 31.234286 | 78 | 0.664715 | joerocklin |
f467177ede885e9e945e308fb4afbee637655127 | 1,392 | hpp | C++ | include/lol/op/PostRecofrienderV1RegistrationsByNetwork.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:14:55.000Z | 2020-07-22T11:14:55.000Z | include/lol/op/PostRecofrienderV1RegistrationsByNetwork.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | null | null | null | include/lol/op/PostRecofrienderV1RegistrationsByNetwork.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 4 | 2018-12-01T22:48:21.000Z | 2020-07-22T11:14:56.000Z | #pragma once
#include "../base_op.hpp"
#include <functional>
#include "../def/RecofrienderUrlResource.hpp"
namespace lol {
template<typename T>
inline Result<RecofrienderUrlResource> PostRecofrienderV1RegistrationsByNetwork(T& _client, const std::string& network)
{
try {
return ToResult<RecofrienderUrl... | 42.181818 | 162 | 0.66523 | Maufeat |
f46a5569ab2301e6db3b620e226c0c5659f43ce8 | 694 | cpp | C++ | fp_core/src/main/src/Python/PyUtils.cpp | submain/fruitpunch | 31773128238830d3d335c1915877dc0db56836cd | [
"MIT"
] | null | null | null | fp_core/src/main/src/Python/PyUtils.cpp | submain/fruitpunch | 31773128238830d3d335c1915877dc0db56836cd | [
"MIT"
] | null | null | null | fp_core/src/main/src/Python/PyUtils.cpp | submain/fruitpunch | 31773128238830d3d335c1915877dc0db56836cd | [
"MIT"
] | 1 | 2020-08-14T02:51:47.000Z | 2020-08-14T02:51:47.000Z | /*
* PyUtils.cpp
*
* Created on: 2012-05-26
* Author: leo
*/
#include <fruitpunch/Python/PyUtils.h>
#include <boost/python/call_method.hpp>
namespace fp_core {
PyUtils::PyUtils() {
// TODO Auto-generated constructor stub
}
bool PyUtils::hasMethod(PyObject* obj, std::string methodName) {
int hasIt = ... | 21.030303 | 68 | 0.691643 | submain |
c2e30354aa67f3686d41f6cf9b9e23406598c634 | 1,487 | cpp | C++ | cpgf/test/scriptbind/luabind/test_lua_operator.cpp | mousepawmedia/libdeps | b004d58d5b395ceaf9fdc993cfb00e91334a5d36 | [
"BSD-3-Clause"
] | 187 | 2015-01-19T06:05:30.000Z | 2022-03-27T14:28:21.000Z | cpgf/test/scriptbind/luabind/test_lua_operator.cpp | mousepawmedia/libdeps | b004d58d5b395ceaf9fdc993cfb00e91334a5d36 | [
"BSD-3-Clause"
] | 37 | 2015-01-16T04:15:11.000Z | 2020-03-31T23:42:55.000Z | cpgf/test/scriptbind/luabind/test_lua_operator.cpp | mousepawmedia/libdeps | b004d58d5b395ceaf9fdc993cfb00e91334a5d36 | [
"BSD-3-Clause"
] | 50 | 2015-01-13T13:50:10.000Z | 2022-01-25T17:16:51.000Z | #include "../testscriptbind.h"
namespace {
void TestLuaOperator(TestScriptContext * context)
{
QDO(a = TestOperator(99))
QDO(b = a + 5)
QASSERT(b.value == 99 + 5)
QDO(b = a + TestOperator(8))
QASSERT(b.value == 99 + 8)
QDO(b = a + TestObject(15))
QASSERT(b.value == 99 + 15)
QDO(a = Te... | 17.494118 | 50 | 0.544721 | mousepawmedia |
c2e551d860206d075ffe8d70b56002208d5c2a5f | 13,781 | cpp | C++ | Sourcecode/mx/core/elements/ArticulationsChoice.cpp | diskzero/MusicXML-Class-Library | bd4d1357b8ab2d4df8f1c6077883bbf169f6f0db | [
"MIT"
] | null | null | null | Sourcecode/mx/core/elements/ArticulationsChoice.cpp | diskzero/MusicXML-Class-Library | bd4d1357b8ab2d4df8f1c6077883bbf169f6f0db | [
"MIT"
] | null | null | null | Sourcecode/mx/core/elements/ArticulationsChoice.cpp | diskzero/MusicXML-Class-Library | bd4d1357b8ab2d4df8f1c6077883bbf169f6f0db | [
"MIT"
] | null | null | null | // MusicXML Class Library
// Copyright (c) by Matthew James Briggs
// Distributed under the MIT License
#include "mx/core/elements/ArticulationsChoice.h"
#include "mx/core/FromXElement.h"
#include "mx/core/elements/Accent.h"
#include "mx/core/elements/BreathMark.h"
#include "mx/core/elements/Caesura.h"
#include "mx/co... | 26.299618 | 127 | 0.465641 | diskzero |
c2e6174a44630e91dd32c8319bd19c32d7fff6fd | 3,750 | cpp | C++ | src/PA02/MedianFiltering.cpp | pateldeev/cs474 | 4aeb7c6a5317256e9e1f517d614a83b5b52f9f52 | [
"Xnet",
"X11"
] | null | null | null | src/PA02/MedianFiltering.cpp | pateldeev/cs474 | 4aeb7c6a5317256e9e1f517d614a83b5b52f9f52 | [
"Xnet",
"X11"
] | null | null | null | src/PA02/MedianFiltering.cpp | pateldeev/cs474 | 4aeb7c6a5317256e9e1f517d614a83b5b52f9f52 | [
"Xnet",
"X11"
] | null | null | null | #include "PA02/HelperFunctions.h"
#include "ReadWrite.h"
#include <iostream>
#include <ctime>
#include <string>
#include <algorithm>
#include <sstream>
// Corrupt the image with salt and pepper
void saltPepperCorruption(const ImageType &, ImageType &, int);
// Median filtering function
void medianMask(const ImageTyp... | 29.296875 | 91 | 0.652 | pateldeev |
c2e80a0a4dd13a5aabb43f1b3dfc06f9b7c51670 | 5,233 | cpp | C++ | utils/wikistat-loader/main.cpp | rudneff/ClickHouse | 3cb59b92bccbeb888d136f7c6e14b622382c0434 | [
"Apache-2.0"
] | 3 | 2016-12-30T14:19:47.000Z | 2021-11-13T06:58:32.000Z | utils/wikistat-loader/main.cpp | rudneff/ClickHouse | 3cb59b92bccbeb888d136f7c6e14b622382c0434 | [
"Apache-2.0"
] | 1 | 2017-01-13T21:29:36.000Z | 2017-01-16T18:29:08.000Z | utils/wikistat-loader/main.cpp | jbfavre/clickhouse-debian | 3806e3370decb40066f15627a3bca4063b992bfb | [
"Apache-2.0"
] | 1 | 2021-02-07T16:00:54.000Z | 2021-02-07T16:00:54.000Z | #include <boost/program_options.hpp>
#include <DB/IO/ReadBuffer.h>
#include <DB/IO/WriteBuffer.h>
#include <DB/IO/ReadHelpers.h>
#include <DB/IO/WriteHelpers.h>
#include <DB/IO/ReadBufferFromFileDescriptor.h>
#include <DB/IO/WriteBufferFromFileDescriptor.h>
/** Reads uncompressed wikistat data from stdin,
* and w... | 23.257778 | 117 | 0.611504 | rudneff |
c2ea6e86714e98c2dd15582c5eaf0de13f51164c | 782 | cpp | C++ | libraries/physics/src/ContactInfo.cpp | stojce/hifi | 8e6c860a243131859c0706424097db56e6a604bd | [
"Apache-2.0"
] | 7 | 2015-08-24T17:01:00.000Z | 2021-03-30T09:30:40.000Z | libraries/physics/src/ContactInfo.cpp | stojce/hifi | 8e6c860a243131859c0706424097db56e6a604bd | [
"Apache-2.0"
] | 1 | 2016-01-17T17:49:05.000Z | 2016-01-17T17:49:05.000Z | libraries/physics/src/ContactInfo.cpp | stojce/hifi | 8e6c860a243131859c0706424097db56e6a604bd | [
"Apache-2.0"
] | 1 | 2021-12-07T23:16:45.000Z | 2021-12-07T23:16:45.000Z | //
// ContactEvent.cpp
// libraries/physcis/src
//
// Created by Andrew Meadows 2015.01.20
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "ContactInfo.h"
void Conta... | 27.928571 | 88 | 0.721228 | stojce |
c2eacebb56e52cde22eef90af868baf2404fa613 | 66 | cpp | C++ | src/array/destructor.cpp | violador/catalyst | 40d5c1dd04269a0764a9804711354a474bc43c15 | [
"Unlicense"
] | null | null | null | src/array/destructor.cpp | violador/catalyst | 40d5c1dd04269a0764a9804711354a474bc43c15 | [
"Unlicense"
] | null | null | null | src/array/destructor.cpp | violador/catalyst | 40d5c1dd04269a0764a9804711354a474bc43c15 | [
"Unlicense"
] | null | null | null | //
//
//
inline ~array()
{
#pragma omp master
delete[] data;
};
| 7.333333 | 19 | 0.545455 | violador |
c2eda66913ce0805dfc4de582df933966e0a15e4 | 5,524 | cpp | C++ | Source/Core/Pipeline.cpp | milkru/foton | cf16abf02db80677ae22ff527aff5ef1c3702140 | [
"MIT"
] | null | null | null | Source/Core/Pipeline.cpp | milkru/foton | cf16abf02db80677ae22ff527aff5ef1c3702140 | [
"MIT"
] | null | null | null | Source/Core/Pipeline.cpp | milkru/foton | cf16abf02db80677ae22ff527aff5ef1c3702140 | [
"MIT"
] | null | null | null | #include "Pipeline.h"
#include "Device.h"
#include "Swapchain.h"
#include "DescriptorSet.h"
#include "Shader.h"
FT_BEGIN_NAMESPACE
static void CreatePipelineLayout(const VkDevice inDevice, const VkDescriptorSetLayout inDescriptorSetLayout, VkPipelineLayout& outPipelineLayout)
{
VkPipelineLayoutCreateInfo pipelineLay... | 49.321429 | 225 | 0.857169 | milkru |