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 109 | 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 48.5k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bdca10dd283e3e72c5305613605227c50d78bb0f | 1,062 | cpp | C++ | proj4/PongGame.cpp | bakerjm24450/EE142 | 71ac007fe6850ced5b57336edfd9ddbae37f28c3 | [
"MIT"
] | null | null | null | proj4/PongGame.cpp | bakerjm24450/EE142 | 71ac007fe6850ced5b57336edfd9ddbae37f28c3 | [
"MIT"
] | null | null | null | proj4/PongGame.cpp | bakerjm24450/EE142 | 71ac007fe6850ced5b57336edfd9ddbae37f28c3 | [
"MIT"
] | null | null | null | // Our Pong Game
#include <Game.hpp>
#include <Vector2d.hpp>
#include <Keyboard.hpp>
#include <Color.hpp>
#include "PongGame.h"
#include "Ball.h"
#include "Wall.h"
using namespace vmi;
// Create the game window
PongGame::PongGame() : Game("Pong-ish", 640, 480), done(false)
{
// create the ball
ba... | 20.423077 | 79 | 0.645951 | bakerjm24450 |
bdcc523c3973e8d9b3dd26d7cda0166aebdf59de | 417 | cpp | C++ | sesion1/ejercicio_voltaje.cpp | dmateos-ugr/FP | 6d3ec8eeccbb72582367c8cf97aecb2227cc7b9e | [
"MIT"
] | 1 | 2018-12-11T09:32:59.000Z | 2018-12-11T09:32:59.000Z | sesion1/ejercicio_voltaje.cpp | dmateos-ugr/FP | 6d3ec8eeccbb72582367c8cf97aecb2227cc7b9e | [
"MIT"
] | null | null | null | sesion1/ejercicio_voltaje.cpp | dmateos-ugr/FP | 6d3ec8eeccbb72582367c8cf97aecb2227cc7b9e | [
"MIT"
] | 2 | 2018-11-13T12:32:35.000Z | 2018-11-27T14:43:30.000Z | #include <iostream>
using namespace std;
int main(){
double intensidad;
double resistencia;
double voltaje;
cout << "Introduzca el valor de la intensidad: ";
cin >> intensidad;
cout << "Introduzca el valor de la resistencia: ";
cin >> resistencia;
voltaje = resistencia*intensi... | 20.85 | 69 | 0.628297 | dmateos-ugr |
bdd2332404ec0f7842784cdfe9c22d1b54510d48 | 8,558 | hpp | C++ | MadgwickFilter/Quaternion/Quaternion.hpp | calm0815/robotrack | c3aedfa1d76173fe2729972d5a94ebb3bd84e3a1 | [
"MIT"
] | 3 | 2018-11-03T15:58:49.000Z | 2019-04-11T22:46:32.000Z | MadgwickFilter/Quaternion/Quaternion.hpp | calm0815/robotrack | c3aedfa1d76173fe2729972d5a94ebb3bd84e3a1 | [
"MIT"
] | null | null | null | MadgwickFilter/Quaternion/Quaternion.hpp | calm0815/robotrack | c3aedfa1d76173fe2729972d5a94ebb3bd84e3a1 | [
"MIT"
] | null | null | null | #ifndef _QUATERNION_HPP_
#define _QUATERNION_HPP_
#include "Vector3/Vector3.hpp"
/**
* クォータニオンの足し,引き,掛け算などを簡単にできるようになります.
* @author Gaku MATSUMOTO
* @bref クォータニオンを使えるクラスです.
*/
class Quaternion{
public:
/**
@bref Quaternionインスタンスを生成します
*/
Quaternion(){
w = 1.0f;
x = 0.0f;
y = 0.0f;
z = 0.0f;
};
/**
*... | 19.102679 | 87 | 0.550946 | calm0815 |
bdd4533dbcf1e985c9bdb2b026299460f56eaf0f | 1,545 | cpp | C++ | week2/Searching and Sorting/Search in a Rotated Array.cpp | rishabhrathore055/gfg-11-weeks-workshop-on-DSA | 052039bfbe3ae261740fc73d50f32528ddd49e6a | [
"MIT"
] | 9 | 2021-08-01T16:17:04.000Z | 2022-01-22T19:51:18.000Z | week2/Searching and Sorting/Search in a Rotated Array.cpp | rishabhrathore055/gfg-11-weeks-workshop-on-DSA | 052039bfbe3ae261740fc73d50f32528ddd49e6a | [
"MIT"
] | null | null | null | week2/Searching and Sorting/Search in a Rotated Array.cpp | rishabhrathore055/gfg-11-weeks-workshop-on-DSA | 052039bfbe3ae261740fc73d50f32528ddd49e6a | [
"MIT"
] | 1 | 2021-08-30T12:26:11.000Z | 2021-08-30T12:26:11.000Z | #include<bits/stdc++.h>
using namespace std;
int Search(vector<int> , int);
int main()
{
int t;
cin>>t;
while(t--)
{
int n;
cin>>n;
vector<int> v(n);
for(int i=0;i<n;i++)
cin>>v[i];
int target;
cin>>target;
cout<<Search(v,target)<<endl... | 22.071429 | 55 | 0.471845 | rishabhrathore055 |
752a2a1c33f360e89df42e5b02fece2122c6b95c | 26,965 | cpp | C++ | src/state_manager.cpp | cognicept-admin/rosrect_listener_Agent | d1fdc435e28d413379f6e7dd98fca4e72cf853f1 | [
"BSD-3-Clause"
] | 6 | 2020-05-07T14:26:23.000Z | 2021-05-03T01:02:35.000Z | src/state_manager.cpp | cognicept-admin/error_resolution_diagnoser | 6666b0597904a005ef90d0d82463544c88e6068c | [
"BSD-3-Clause"
] | 1 | 2020-05-18T04:41:00.000Z | 2020-06-04T07:03:17.000Z | src/state_manager.cpp | cognicept-admin/error_resolution_diagnoser | 6666b0597904a005ef90d0d82463544c88e6068c | [
"BSD-3-Clause"
] | 3 | 2020-09-23T03:54:39.000Z | 2021-09-29T12:10:07.000Z | #include <error_resolution_diagnoser/state_manager.h>
using namespace web::json; // JSON features
using namespace web; // Common features like URIs.
StateManager::StateManager()
{
// Boolean flag to decide whether to suppress a message or not
this->suppress_flag = false;
// Timeout parameter in mi... | 31.318235 | 167 | 0.531096 | cognicept-admin |
752db47227df30cc728e232d1b1026633ca70523 | 1,234 | cpp | C++ | bitbots_splines_extension/src/handle/position_handle.cpp | 5reichar/bitbots_kick_engine | 0817f4f0a206de6f0f01a0cedfe201f62e677a11 | [
"BSD-3-Clause"
] | null | null | null | bitbots_splines_extension/src/handle/position_handle.cpp | 5reichar/bitbots_kick_engine | 0817f4f0a206de6f0f01a0cedfe201f62e677a11 | [
"BSD-3-Clause"
] | null | null | null | bitbots_splines_extension/src/handle/position_handle.cpp | 5reichar/bitbots_kick_engine | 0817f4f0a206de6f0f01a0cedfe201f62e677a11 | [
"BSD-3-Clause"
] | null | null | null | #include "handle/position_handle.h"
namespace bitbots_splines {
PositionHandle::PositionHandle(std::shared_ptr<Curve> x, std::shared_ptr<Curve> y, std::shared_ptr<Curve> z)
: x_(std::move(x)), y_(std::move(y)), z_(std::move(z)) {
}
geometry_msgs::Point PositionHandle::get_geometry_msg_position(double time) {
... | 22.851852 | 109 | 0.676661 | 5reichar |
753acc92fb7bcfa2bc75b5a5260671e628e0ce24 | 8,866 | cpp | C++ | x86/vm/ops/store.cpp | zero-rp/ZVM | 66319025a4dfff813e580f68a0183841de9a72cd | [
"MIT"
] | 9 | 2019-03-08T07:56:12.000Z | 2021-03-06T01:57:43.000Z | x86/vm/ops/store.cpp | zero-rp/ZVM | 66319025a4dfff813e580f68a0183841de9a72cd | [
"MIT"
] | null | null | null | x86/vm/ops/store.cpp | zero-rp/ZVM | 66319025a4dfff813e580f68a0183841de9a72cd | [
"MIT"
] | 2 | 2019-03-16T12:47:05.000Z | 2019-09-15T15:03:50.000Z | /**
Copyright (c) 2007 - 2010 Jordan "Earlz/hckr83" Earls <http://www.Earlz.biz.tm>
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
... | 22.733333 | 80 | 0.533724 | zero-rp |
753bebc066f0f4bc0f6d4b49bfbc299d14e4cafe | 8,167 | cpp | C++ | src/engine/map2d/map2disoobjectslayer.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | 2 | 2019-06-22T23:29:44.000Z | 2019-07-07T18:34:04.000Z | src/engine/map2d/map2disoobjectslayer.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | src/engine/map2d/map2disoobjectslayer.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | /**
* @file map2disoobjectslayer.cpp
* @brief
* @author Frederic SCHERMA (frederic.scherma@dreamoverflow.org)
* @date 2001-12-25
* @copyright Copyright (c) 2001-2017 Dream Overflow. All rights reserved.
* @details
*/
#include "o3d/engine/map2d/map2disoobjectslayer.h"
#include "o3d/engine/map2d/map2dvisibility... | 20.623737 | 90 | 0.668177 | dream-overflow |
753f1e0eb88b1ed2be6875a7cfba33cf116bbc4d | 14,916 | cpp | C++ | addons/ofxCvGui/src/ofxCvGui/Controller.cpp | syeminpark/openFrame | 2d117bf86ae58dbc2d5d0ddc6727f14e5627e6e6 | [
"MIT"
] | null | null | null | addons/ofxCvGui/src/ofxCvGui/Controller.cpp | syeminpark/openFrame | 2d117bf86ae58dbc2d5d0ddc6727f14e5627e6e6 | [
"MIT"
] | null | null | null | addons/ofxCvGui/src/ofxCvGui/Controller.cpp | syeminpark/openFrame | 2d117bf86ae58dbc2d5d0ddc6727f14e5627e6e6 | [
"MIT"
] | null | null | null | #include "pch_ofxCvGui.h"
//----------
OFXSINGLETON_DEFINE(ofxCvGui::Controller);
namespace ofxCvGui {
//----------
Controller::Controller() {
this->maximised = false;
this->chromeVisible = true;
this->mouseOwner = nullptr;
this->lastClickOwner = nullptr;
this->lastMouseClick = pair<long long, ofMouseEven... | 26.635714 | 180 | 0.669482 | syeminpark |
7541639e7eebe2db9694f668a355f034bb9fab99 | 370 | cpp | C++ | acmicpc.net/9461.cpp | kbu1564/SimpleAlgorithm | 7e5b0d2fe19461417d88de0addd2235da55787d3 | [
"MIT"
] | 4 | 2016-04-15T07:54:39.000Z | 2021-01-11T09:02:16.000Z | acmicpc.net/9461.cpp | kbu1564/SimpleAlgorithm | 7e5b0d2fe19461417d88de0addd2235da55787d3 | [
"MIT"
] | null | null | null | acmicpc.net/9461.cpp | kbu1564/SimpleAlgorithm | 7e5b0d2fe19461417d88de0addd2235da55787d3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
using namespace std;
int t,n;
long long int A[101] = { 1, 1, 1, 0 };
int main() {
scanf("%d", &t);
for (int i = 0; i < t; i++) {
scanf("%d", &n);
for (int j = 3; j < n; j++) {
A[j] = A[j-3] + A[j-2];
}... | 17.619048 | 38 | 0.486486 | kbu1564 |
75464bec70a43a9e4d4ef45a6b757513d15e8a95 | 446 | cpp | C++ | src/test/main_victim_test.cpp | davitkalantaryan/wlac-sources | 0878d97df0900b16f72c63f187be44ae9bef8949 | [
"MIT"
] | null | null | null | src/test/main_victim_test.cpp | davitkalantaryan/wlac-sources | 0878d97df0900b16f72c63f187be44ae9bef8949 | [
"MIT"
] | 4 | 2021-10-05T05:28:22.000Z | 2021-12-28T22:48:21.000Z | src/test/main_victim_test.cpp | davitkalantaryan/wlac-sources | 0878d97df0900b16f72c63f187be44ae9bef8949 | [
"MIT"
] | null | null | null | //
// file: main_victim_test.cpp
// created on: 2018 Dec 18
//
#ifndef CINTERFACE
#define CINTERFACE
#endif // !CINTERFACE
#include <WinSock2.h>
#include <WS2tcpip.h>
#include <Windows.h>
#include <stdio.h>
static volatile int s_nRun = 1;
int main()
{
int nPid = GetCurrentProcessId();
printf... | 15.928571 | 64 | 0.64574 | davitkalantaryan |
754b36c3ba2e2753bd7467e45a79c0e7acad2213 | 723 | cpp | C++ | emerald/util/tests/test_vector_util.cpp | blackencino/emerald | 3c4823dbdeff7c63007ff359d262608227f5433f | [
"Apache-2.0"
] | 3 | 2020-08-16T17:56:25.000Z | 2021-02-25T21:55:39.000Z | emerald/util/tests/test_vector_util.cpp | blackencino/emerald | 3c4823dbdeff7c63007ff359d262608227f5433f | [
"Apache-2.0"
] | null | null | null | emerald/util/tests/test_vector_util.cpp | blackencino/emerald | 3c4823dbdeff7c63007ff359d262608227f5433f | [
"Apache-2.0"
] | null | null | null | #include <emerald/util/format.h>
#include <emerald/util/foundation.h>
#include <emerald/util/random.h>
#include <emerald/util/vector_util.h>
#include <fmt/format.h>
#include <gtest/gtest.h>
#include <cstdio>
#include <cstdlib>
#include <vector>
namespace emerald::util {
TEST(Test_vector_util, Print_hash_key) {
... | 24.1 | 78 | 0.648686 | blackencino |
754c73ea5c5b7b8b0f39c1ccc23a51d1287a1455 | 2,878 | hh | C++ | include/introvirt/windows/kernel/nt/types/PEB.hh | IntroVirt/IntroVirt | 917f735f3430d0855d8b59c814bea7669251901c | [
"Apache-2.0"
] | 23 | 2021-02-17T16:58:52.000Z | 2022-02-12T17:01:06.000Z | include/introvirt/windows/kernel/nt/types/PEB.hh | IntroVirt/IntroVirt | 917f735f3430d0855d8b59c814bea7669251901c | [
"Apache-2.0"
] | 1 | 2021-04-01T22:41:32.000Z | 2021-09-24T14:14:17.000Z | include/introvirt/windows/kernel/nt/types/PEB.hh | IntroVirt/IntroVirt | 917f735f3430d0855d8b59c814bea7669251901c | [
"Apache-2.0"
] | 4 | 2021-02-17T16:53:18.000Z | 2021-04-13T16:51:10.000Z | /*
* Copyright 2021 Assured Information Security, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 25.927928 | 98 | 0.658443 | IntroVirt |
75504f62dadac215cd69a00917affe0e57447838 | 376 | cpp | C++ | game/server/entities/triggers/CTriggerTeleport.cpp | xalalau/HLEnhanced | f108222ab7d303c9ed5a8e81269f9e949508e78e | [
"Unlicense"
] | 83 | 2016-06-10T20:49:23.000Z | 2022-02-13T18:05:11.000Z | game/server/entities/triggers/CTriggerTeleport.cpp | xalalau/HLEnhanced | f108222ab7d303c9ed5a8e81269f9e949508e78e | [
"Unlicense"
] | 26 | 2016-06-16T22:27:24.000Z | 2019-04-30T19:25:51.000Z | game/server/entities/triggers/CTriggerTeleport.cpp | xalalau/HLEnhanced | f108222ab7d303c9ed5a8e81269f9e949508e78e | [
"Unlicense"
] | 58 | 2016-06-10T23:52:33.000Z | 2021-12-30T02:30:50.000Z | #include "extdll.h"
#include "util.h"
#include "cbase.h"
#include "CTriggerTeleport.h"
LINK_ENTITY_TO_CLASS( trigger_teleport, CTriggerTeleport );
//TODO: Consider making this its own class - Solokiller
LINK_ENTITY_TO_CLASS( info_teleport_destination, CPointEntity );
void CTriggerTeleport::Spawn( void )
{
InitTrig... | 22.117647 | 64 | 0.776596 | xalalau |
755199317f3fade2b7ce3139ef6dba5776bbf8f3 | 14,130 | cpp | C++ | embeddedCNN/src/utils/check.cpp | yuehniu/embeddedCNN | 1067867830300cc55b4573d633c9fa1226c64868 | [
"MIT"
] | 21 | 2018-07-10T07:47:51.000Z | 2021-12-03T05:47:30.000Z | embeddedCNN/src/utils/check.cpp | honorpeter/embeddedCNN | 1067867830300cc55b4573d633c9fa1226c64868 | [
"MIT"
] | 3 | 2018-09-05T03:09:40.000Z | 2019-04-15T10:01:40.000Z | embeddedCNN/src/utils/check.cpp | honorpeter/embeddedCNN | 1067867830300cc55b4573d633c9fa1226c64868 | [
"MIT"
] | 8 | 2018-06-10T02:04:09.000Z | 2021-12-03T05:47:31.000Z | /*
Desc:
Result check function set.
* Accurate data check (Dataflow).
* Approximate data check (Compute result).
Date:
06/05/2018
Author:
Yue Niu
*/
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include "../../include/utils/check.h"
exter... | 31.752809 | 105 | 0.456688 | yuehniu |
7552f7572a0397d169d54e2bfa7693a0e087a7f6 | 9,359 | cpp | C++ | Productivity-Companion/InputTodo.cpp | Despicable-Us/Productivity-Companion | 2a18e9cc8c01c88012030ed599805298239da497 | [
"CC0-1.0"
] | 12 | 2021-11-22T11:49:26.000Z | 2022-03-04T03:31:17.000Z | Productivity-Companion/InputTodo.cpp | Despicable-Us/Productivity-Companion | 2a18e9cc8c01c88012030ed599805298239da497 | [
"CC0-1.0"
] | null | null | null | Productivity-Companion/InputTodo.cpp | Despicable-Us/Productivity-Companion | 2a18e9cc8c01c88012030ed599805298239da497 | [
"CC0-1.0"
] | null | null | null | #include "InputTodo.h"
#include "Database.h"
//default constructor
extern std::vector<udh::inputField> textList;
extern std::vector<udh::inputField> completed;
extern udh::inputField sampletext;
udh::inputField::inputField()
{
this->font.loadFromFile("Fonts/Roboto-Medium.ttf");
this->textdata.setFont(font);
this->t... | 24.628947 | 163 | 0.635752 | Despicable-Us |
7559227d53fb15d1087d9057fe94c213920a541c | 4,404 | cpp | C++ | ProjectEuler+/euler-0278.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | null | null | null | ProjectEuler+/euler-0278.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | null | null | null | ProjectEuler+/euler-0278.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | 1 | 2021-05-28T11:14:34.000Z | 2021-05-28T11:14:34.000Z | // ////////////////////////////////////////////////////////
// # Title
// Linear Combinations of Semiprimes
//
// # URL
// https://projecteuler.net/problem=278
// http://euler.stephan-brumme.com/278/
//
// # Problem
// Given the values of integers `1 < a_1 < a_2 < ... < a_n`, consider the linear combination
// `q_1 a_1... | 39.321429 | 129 | 0.576067 | sarvekash |
75594f0eca0759b6efde094fb69d845c8d7336ae | 2,501 | cpp | C++ | DecodeString.cpp | GolferChen/LeetCode | b502a57ff1ebe8daf670e7b068dd98cec0b9bf38 | [
"MIT"
] | null | null | null | DecodeString.cpp | GolferChen/LeetCode | b502a57ff1ebe8daf670e7b068dd98cec0b9bf38 | [
"MIT"
] | null | null | null | DecodeString.cpp | GolferChen/LeetCode | b502a57ff1ebe8daf670e7b068dd98cec0b9bf38 | [
"MIT"
] | null | null | null | //
// Created by Golfer on 2020/7/28.
//
#include <string>
#include <stack>
using namespace std;
#include <cstdio>
#include <iostream>
// Version 1, Stack
//class Solution {
//public:
// string decodeString(string s) {
// stack<string> stack_string;
// stack<int> stack_num;
// int number = 0;
... | 26.606383 | 59 | 0.387845 | GolferChen |
7559e00fbea33a8739a688ccab89f9bb06122363 | 2,753 | cpp | C++ | MySpaceShooter/src/Gameplay/SpaceShip.cpp | TygoB-B5/OSCSpaceShooter | 9a94fbbe4392c9283e47696d06a2866a7a8f1213 | [
"Apache-2.0"
] | null | null | null | MySpaceShooter/src/Gameplay/SpaceShip.cpp | TygoB-B5/OSCSpaceShooter | 9a94fbbe4392c9283e47696d06a2866a7a8f1213 | [
"Apache-2.0"
] | null | null | null | MySpaceShooter/src/Gameplay/SpaceShip.cpp | TygoB-B5/OSCSpaceShooter | 9a94fbbe4392c9283e47696d06a2866a7a8f1213 | [
"Apache-2.0"
] | null | null | null | #include "SpaceShip.h"
namespace Game
{
void SpaceShip::Update()
{
UpdateSpaceShipPosition();
UpdateSpaceShipRotation();
UpdateCameraPose();
UpdateSpaceshipGun();
}
glm::vec3 SpaceShip::GetControllerIRotationnput()
{
// Calculate controller input with deadzone
auto& cont = m_Controller;
glm::vec3 r... | 28.091837 | 105 | 0.680349 | TygoB-B5 |
755aaab5f9350ef704e1545ecd661418f70e1e57 | 389 | hpp | C++ | Hurrican/src/stdafx.hpp | s1eve-mcdichae1/Hurrican | 3ed6ff9ee94d2ea2b79e451466d28f06d58acf19 | [
"MIT"
] | 21 | 2018-04-13T10:45:45.000Z | 2022-03-29T14:53:43.000Z | Hurrican/src/stdafx.hpp | s1eve-mcdichae1/Hurrican | 3ed6ff9ee94d2ea2b79e451466d28f06d58acf19 | [
"MIT"
] | 10 | 2021-06-30T14:29:36.000Z | 2022-01-06T17:03:48.000Z | Hurrican/src/stdafx.hpp | s1eve-mcdichae1/Hurrican | 3ed6ff9ee94d2ea2b79e451466d28f06d58acf19 | [
"MIT"
] | 3 | 2021-10-08T12:35:05.000Z | 2022-03-03T06:03:49.000Z | #ifndef _STDAFX_HPP_
#define _STDAFX_HPP_
#include "Console.hpp"
#include "DX8Font.hpp"
#include "DX8Sound.hpp"
#include "GUISystem.hpp"
#include "Gameplay.hpp"
#include "Globals.hpp"
#include "HUD.hpp"
#include "Logdatei.hpp"
#include "Mathematics.hpp"
#include "Partikelsystem.hpp"
#include "Player.hpp"
#include "Pro... | 19.45 | 29 | 0.758355 | s1eve-mcdichae1 |
755f0257792b6d75a9c44b69ae9cf39ae2f5185b | 4,172 | cpp | C++ | src/lib/lgui/widgets/wrapwidget.cpp | jacmoe/lgui | 92f7e655832487b9ac29ef6043a79745329c90f6 | [
"BSD-3-Clause"
] | 4 | 2020-12-31T00:01:32.000Z | 2021-11-20T15:39:46.000Z | src/lib/lgui/widgets/wrapwidget.cpp | jacmoe/lgui | 92f7e655832487b9ac29ef6043a79745329c90f6 | [
"BSD-3-Clause"
] | null | null | null | src/lib/lgui/widgets/wrapwidget.cpp | jacmoe/lgui | 92f7e655832487b9ac29ef6043a79745329c90f6 | [
"BSD-3-Clause"
] | 1 | 2021-11-10T16:55:09.000Z | 2021-11-10T16:55:09.000Z | /* _ _
* | | (_)
* | | __ _ _ _ _
* | | / _` || | | || |
* | || (_| || |_| || |
* |_| \__, | \__,_||_|
* __/ |
* |___/
*
* Copyright (c) 2015-20 frank256
*
* License (BSD):
*
* Redistribution and use in source and binary forms, with or without modification,
* ar... | 31.368421 | 95 | 0.659156 | jacmoe |
7561738404c4724e9c0ea390ee747020e653f54a | 654 | cpp | C++ | codechef/febLongChallenge20/ony.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | codechef/febLongChallenge20/ony.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | codechef/febLongChallenge20/ony.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | // vovuh.pb(temp);vovuh.pb(temp1);vovuh.pb(temp2);vovuh.pb(temp3);
for(int tat = 0; tat <= 3; tat++) {
auto x = adj[tat];
int sz = x.size();
if (sz > 0) {
sort(x.begin(),x.end(),greater<int>());
if (x[0] > 0)
vovuh.pb(x[0]);
}
}
sort(vovuh.begin(), vovuh.end(),greater<int>());
// ll cnt = 0;
cout... | 21.8 | 66 | 0.529052 | xenowits |
756286d348fbeee56dd518ef8d73d72403bdc748 | 476 | cpp | C++ | Project2/main.cpp | cpurev/CS311 | c86bb0dc917ff98edf698adedb4c3f0f9745ce9f | [
"MIT"
] | null | null | null | Project2/main.cpp | cpurev/CS311 | c86bb0dc917ff98edf698adedb4c3f0f9745ce9f | [
"MIT"
] | null | null | null | Project2/main.cpp | cpurev/CS311 | c86bb0dc917ff98edf698adedb4c3f0f9745ce9f | [
"MIT"
] | 1 | 2021-11-16T05:01:57.000Z | 2021-11-16T05:01:57.000Z | #include "ssarray.h"
#include <iostream>
#include <utility>
#include <string>
class Count{
public:
Count(){
++_ctorCount;
}
~Count(){
--_ctorCount;
++_DctorCount;
}
static size_t _ctorCount;
static size_t _DctorCount;
};
size_t Count::_ctorCount = size_t(0);
size_t Count::_DctorCount ... | 15.354839 | 58 | 0.602941 | cpurev |
75681b4297eca4f3ba317ff88d40fde6acf4530a | 272 | cpp | C++ | src/world/light.cpp | fiddleplum/ve | 1e45de0488d593069032714ebe67725f468054f8 | [
"MIT"
] | null | null | null | src/world/light.cpp | fiddleplum/ve | 1e45de0488d593069032714ebe67725f468054f8 | [
"MIT"
] | 16 | 2016-12-27T16:57:09.000Z | 2017-04-30T23:34:58.000Z | src/world/light.cpp | fiddleplum/ve | 1e45de0488d593069032714ebe67725f468054f8 | [
"MIT"
] | null | null | null | #include "world/light.hpp"
namespace ve
{
namespace world
{
Light::Light()
{
color = {1, 1, 1};
}
Light::~Light()
{
}
Vector3f Light::getColor() const
{
return color;
}
void Light::setColor(Vector3f color_)
{
color = color_;
}
}
}
| 9.714286 | 39 | 0.558824 | fiddleplum |
756ba6c9e52a7081be16b9be4f2173e1c55f0da0 | 1,270 | cpp | C++ | Source/Archiver/FileSerializer.cpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | Source/Archiver/FileSerializer.cpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | Source/Archiver/FileSerializer.cpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | // Copyright 2020, Nathan Blane
#include "FileSerializer.hpp"
#include "Logging/CoreLogChannels.hpp"
#include "Logging/LogFunctions.hpp"
FileSerializer::FileSerializer(const Path& filePath)
: pathToFile(filePath)
{
bool result = FileSystem::OpenFile(handle, pathToFile.GetString(), FileMode::Write);
if (!result)
{... | 27.608696 | 150 | 0.740157 | frobro98 |
756e3e110e56ec813d1c8c29b1be78995bbef5f2 | 1,737 | hh | C++ | dune/xt/common/numeric.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 2 | 2020-02-08T04:08:52.000Z | 2020-08-01T18:54:14.000Z | dune/xt/common/numeric.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 35 | 2019-08-19T12:06:35.000Z | 2020-03-27T08:20:39.000Z | dune/xt/common/numeric.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:09:34.000Z | 2020-02-08T04:09:34.000Z | // This file is part of the dune-xt project:
// https://zivgitlab.uni-muenster.de/ag-ohlberger/dune-community/dune-xt
// Copyright 2009-2021 dune-xt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (h... | 32.773585 | 100 | 0.745538 | dune-community |
757109a8c12f857a049986a1b25b17804c53d25f | 12,809 | cpp | C++ | src/c/HarmoniaInterface.cpp | Hiiragi/Harmonia | e47e811364e15a9bc7b2322c10d1e35fca041e2a | [
"MIT"
] | null | null | null | src/c/HarmoniaInterface.cpp | Hiiragi/Harmonia | e47e811364e15a9bc7b2322c10d1e35fca041e2a | [
"MIT"
] | null | null | null | src/c/HarmoniaInterface.cpp | Hiiragi/Harmonia | e47e811364e15a9bc7b2322c10d1e35fca041e2a | [
"MIT"
] | null | null | null | /**
* Harmonia
*
* Copyright (c) 2018 Hiiragi
*
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*/
#include "HarmoniaInterface.h"
#include "Harmonia.h"
#include "ogg/ogg.h"
#include <algorithm>
#include <string>
#include <sstream>
// General
#if _WIN32
extern "C... | 18.672012 | 187 | 0.708408 | Hiiragi |
75737379a402b92d7209b5a3668b3bd1f84577d8 | 53 | hpp | C++ | src/boost_numeric_odeint_util_unit_helper.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_numeric_odeint_util_unit_helper.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_numeric_odeint_util_unit_helper.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/numeric/odeint/util/unit_helper.hpp>
| 26.5 | 52 | 0.811321 | miathedev |
75791efa4e695d9d48d0a8e9d3206221e16d6efc | 1,157 | cpp | C++ | src/scheduler/FunctionCallClient.cpp | dgoltzsche/faabric | b1edd26d2b07102255491d7fbb661586d58970f5 | [
"Apache-2.0"
] | null | null | null | src/scheduler/FunctionCallClient.cpp | dgoltzsche/faabric | b1edd26d2b07102255491d7fbb661586d58970f5 | [
"Apache-2.0"
] | null | null | null | src/scheduler/FunctionCallClient.cpp | dgoltzsche/faabric | b1edd26d2b07102255491d7fbb661586d58970f5 | [
"Apache-2.0"
] | null | null | null | #include <faabric/scheduler/FunctionCallClient.h>
#include <grpcpp/create_channel.h>
#include <grpcpp/security/credentials.h>
#include <faabric/proto/macros.h>
namespace faabric::scheduler {
FunctionCallClient::FunctionCallClient(const std::string& hostIn)
: host(hostIn)
, channel(grpc::CreateChannel(host + ":" ... | 29.666667 | 80 | 0.737252 | dgoltzsche |
757af3258b0bd1de500a8bd36dfbb26c6060a56b | 1,322 | cpp | C++ | src/pkg_exe/pkg_exe_service.cpp | naughtybikergames/pkg | 9a78380c6cf82c95dec3968a7ed69000b349113d | [
"MIT"
] | null | null | null | src/pkg_exe/pkg_exe_service.cpp | naughtybikergames/pkg | 9a78380c6cf82c95dec3968a7ed69000b349113d | [
"MIT"
] | null | null | null | src/pkg_exe/pkg_exe_service.cpp | naughtybikergames/pkg | 9a78380c6cf82c95dec3968a7ed69000b349113d | [
"MIT"
] | null | null | null | #include <pkg/exe/pkg_exe_service.hpp>
#include <pkg/exe/iscc.hpp>
#include <pkg/exe/help.hpp>
#include <pkg/exe/temp.hpp>
#include <pkg/utils.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <map>
#include <iostream>
using namespace std;
using namespace pkg::exe;
pkg_exe_service::pkg_exe_service(const... | 24.036364 | 94 | 0.630106 | naughtybikergames |
757ba4b1ba66acf6abd3e09aae9f73d82e55103d | 637 | cpp | C++ | Sniper.cpp | snir1551/Ex8_C- | f226d73c18ef8011b90ee46048494a82c05f198a | [
"MIT"
] | 1 | 2021-05-31T13:11:02.000Z | 2021-05-31T13:11:02.000Z | Sniper.cpp | snir1551/Ex8_C- | f226d73c18ef8011b90ee46048494a82c05f198a | [
"MIT"
] | null | null | null | Sniper.cpp | snir1551/Ex8_C- | f226d73c18ef8011b90ee46048494a82c05f198a | [
"MIT"
] | null | null | null | #include "Sniper.hpp"
#include "Board.hpp"
namespace WarGame {
Sniper::Sniper(int numPlayer): Soldier(numPlayer,100,50)
{
}
Sniper::Sniper(int numPlayer, int health, int damage): Soldier(numPlayer,health,damage)
{
}
int Sniper::maxHealth() const
{
return 100;
... | 19.30303 | 91 | 0.583987 | snir1551 |
757bdb569ae20630278ce6e737d4c38ec50d5560 | 9,906 | cc | C++ | examples/fontscan.cc | michaeljclark/glyb | 5b302ded6061eea2098bc8e963adb09e5f1dab4e | [
"MIT"
] | 7 | 2021-07-28T19:03:08.000Z | 2022-02-02T23:17:11.000Z | examples/fontscan.cc | michaeljclark/glyb | 5b302ded6061eea2098bc8e963adb09e5f1dab4e | [
"MIT"
] | 2 | 2021-06-15T22:34:44.000Z | 2021-11-10T04:27:21.000Z | examples/fontscan.cc | michaeljclark/glyb | 5b302ded6061eea2098bc8e963adb09e5f1dab4e | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <climits>
#include <cstdlib>
#include <climits>
#include <cctype>
#include <map>
#include <vector>
#include <memory>
#include <string>
#include <algorithm>
#include <atomic>
#include <mutex>
#include <ft2build.h>
#include FT_FREETYPE_... | 27.289256 | 97 | 0.564304 | michaeljclark |
757d05b94d787a75b21658024e4689120f2500d8 | 713 | hpp | C++ | source/rectangle.hpp | SVincent/programmiersprachen-aufgabenblatt-3. | 4eeeec3973999e0bf57c81e7ae681930e259aa6b | [
"MIT"
] | null | null | null | source/rectangle.hpp | SVincent/programmiersprachen-aufgabenblatt-3. | 4eeeec3973999e0bf57c81e7ae681930e259aa6b | [
"MIT"
] | null | null | null | source/rectangle.hpp | SVincent/programmiersprachen-aufgabenblatt-3. | 4eeeec3973999e0bf57c81e7ae681930e259aa6b | [
"MIT"
] | null | null | null | #ifndef RECTANGLE_HPP
#define RECTANGLE_HPP
#include "vec2.hpp"
#include "color.hpp"
#include "window.hpp"
class Rectangle {
public:
Rectangle();
Rectangle(Vec2 const& vec1, Vec2 const& vec2);
Rectangle(Vec2 const& vec1, Vec2 const& vec2, Color const& col);
// getter
Vec2 getMax() const;
Vec2 getMin() const... | 19.805556 | 68 | 0.687237 | SVincent |
757de7f894579fe556a75aca8069431c8e9df4f6 | 855 | hpp | C++ | 50_su2mesh/inc/SU2meshparser.hpp | nishiys/CFDbasics | 638372956e31f8392f20b0d2027762cc4f9ef10b | [
"MIT"
] | 1 | 2020-06-19T10:17:17.000Z | 2020-06-19T10:17:17.000Z | 50_su2mesh/inc/SU2meshparser.hpp | nishiys/CFDbasics | 638372956e31f8392f20b0d2027762cc4f9ef10b | [
"MIT"
] | null | null | null | 50_su2mesh/inc/SU2meshparser.hpp | nishiys/CFDbasics | 638372956e31f8392f20b0d2027762cc4f9ef10b | [
"MIT"
] | 1 | 2020-06-19T10:22:36.000Z | 2020-06-19T10:22:36.000Z | #pragma once
#include <string>
#include <vector>
#include "CellQuad4.hpp"
#include "Face2d.hpp"
#include "Node2d.hpp"
namespace su2mesh
{
class SU2meshparser
{
public:
SU2meshparser(std::string meshfilename);
~SU2meshparser();
void LoadData();
void WriteVtkFile(std::string vtkfilename);
private:
... | 19.431818 | 58 | 0.687719 | nishiys |
757fdcd03e7aa69d58068e1e383dcbaf0140708b | 4,549 | cpp | C++ | init/init_xt897.cpp | chakaponden/android_device_motorola_xt897-lineage | d85dca38801ea4a4309411d1f17434124403169e | [
"FTL"
] | null | null | null | init/init_xt897.cpp | chakaponden/android_device_motorola_xt897-lineage | d85dca38801ea4a4309411d1f17434124403169e | [
"FTL"
] | null | null | null | init/init_xt897.cpp | chakaponden/android_device_motorola_xt897-lineage | d85dca38801ea4a4309411d1f17434124403169e | [
"FTL"
] | null | null | null | /*
Copyright (c) 2013, The Linux Foundation. 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, this list of co... | 47.884211 | 153 | 0.697516 | chakaponden |
7582140c15c0c274c42fdd5cf142baf443e87a21 | 11,685 | cpp | C++ | openreil/libasmir/src/stmt.cpp | aeveris/openreil-sys | 47a89248dfdfba88c4040cff77fc3efcde6f80e9 | [
"MIT"
] | 3 | 2017-06-27T22:33:16.000Z | 2017-06-28T23:11:44.000Z | openreil/libasmir/src/stmt.cpp | aeveris/openreil-sys | 47a89248dfdfba88c4040cff77fc3efcde6f80e9 | [
"MIT"
] | null | null | null | openreil/libasmir/src/stmt.cpp | aeveris/openreil-sys | 47a89248dfdfba88c4040cff77fc3efcde6f80e9 | [
"MIT"
] | null | null | null | #include <string>
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
using namespace std;
#include "stmt.h"
Stmt *Stmt::clone(Stmt *s)
{
return s->clone();
}
void Stmt::destroy(Stmt *s)
{
Move *move = NULL;
Jmp *jmp = NULL;
CJmp *cjmp = NULL;
ExpSt... | 19.638655 | 113 | 0.543004 | aeveris |
7582297e43ee942e00e602f4e8cb642d4a4bdcf6 | 407 | cpp | C++ | Wonderland/Wonderland/Old Files/Source/Engine/Common/Containers/List/TLinkedList.cpp | RodrigoHolztrattner/Wonderland | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | [
"MIT"
] | 3 | 2018-04-09T13:01:07.000Z | 2021-03-18T12:28:48.000Z | Wonderland/Wonderland/Old Files/Source/Engine/Common/Containers/List/TLinkedList.cpp | RodrigoHolztrattner/Wonderland | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | [
"MIT"
] | null | null | null | Wonderland/Wonderland/Old Files/Source/Engine/Common/Containers/List/TLinkedList.cpp | RodrigoHolztrattner/Wonderland | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | [
"MIT"
] | 1 | 2021-03-18T12:28:50.000Z | 2021-03-18T12:28:50.000Z | ///////////////////////////////////////////////////////////////////////////////
// Filename: TLinkedList.cpp
///////////////////////////////////////////////////////////////////////////////
#include "TLinkedList.h"
/*
TLinkedList::TLinkedList()
{
}
TLinkedList::TLinkedList(const TLinkedList& other)
{
}
TLinkedList::... | 15.074074 | 79 | 0.425061 | RodrigoHolztrattner |
7586ba4cb3cf416d70a14bae06b2dc545a587962 | 491 | cpp | C++ | src/Arduino/ADXL345/example_basics.cpp | smurilogs/EmbeddedSystems-ATmega328P-ArduinoPlatform-InterfacingLibraries | 30795f46112ab5b56a8244b198f0193afb8755ba | [
"MIT"
] | null | null | null | src/Arduino/ADXL345/example_basics.cpp | smurilogs/EmbeddedSystems-ATmega328P-ArduinoPlatform-InterfacingLibraries | 30795f46112ab5b56a8244b198f0193afb8755ba | [
"MIT"
] | null | null | null | src/Arduino/ADXL345/example_basics.cpp | smurilogs/EmbeddedSystems-ATmega328P-ArduinoPlatform-InterfacingLibraries | 30795f46112ab5b56a8244b198f0193afb8755ba | [
"MIT"
] | null | null | null |
#include <Arduino.h>
#include <stdint.h>
#include <Math.h>
#include "ADXL345.h"
ADXL345 accel;
void setup()
{
Serial.begin(9600);
Wire.begin();
accel.begin();
delay(1500);
}
void loop()
{
float x = (int16_t) accel.getXAccel()* 0.00390625;
Serial.println(x);
float y = (int16_t) acc... | 15.83871 | 54 | 0.608961 | smurilogs |
7595c473c83949b920e976fe7882de7871505b6a | 7,715 | cpp | C++ | test/cpp/exceptions.cpp | fujiehuang/ecto | fea744337aa1fad1397c9a3ba5baa143993cb5eb | [
"BSD-3-Clause"
] | 77 | 2015-01-30T15:45:43.000Z | 2022-03-03T02:29:37.000Z | test/cpp/exceptions.cpp | fujiehuang/ecto | fea744337aa1fad1397c9a3ba5baa143993cb5eb | [
"BSD-3-Clause"
] | 37 | 2015-01-18T21:04:36.000Z | 2021-07-09T08:24:54.000Z | test/cpp/exceptions.cpp | fujiehuang/ecto | fea744337aa1fad1397c9a3ba5baa143993cb5eb | [
"BSD-3-Clause"
] | 29 | 2015-02-17T14:37:18.000Z | 2021-11-16T07:46:26.000Z | //
// Copyright (c) 2011, Willow Garage, Inc.
// 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, this list... | 24.967638 | 146 | 0.623331 | fujiehuang |
759700e8171ec4a0b2c3899cc3ccdea6d83aa383 | 462 | cpp | C++ | 18-STL/03-Using_STL.cpp | PronomitaDey/Cpp_Tutorial | a64a10a27d018bf9edf5280505201a1fbfd359ed | [
"MIT"
] | null | null | null | 18-STL/03-Using_STL.cpp | PronomitaDey/Cpp_Tutorial | a64a10a27d018bf9edf5280505201a1fbfd359ed | [
"MIT"
] | 1 | 2021-10-01T13:35:44.000Z | 2021-10-02T03:54:29.000Z | 18-STL/03-Using_STL.cpp | PronomitaDey/Cpp_Tutorial | a64a10a27d018bf9edf5280505201a1fbfd359ed | [
"MIT"
] | 3 | 2021-10-01T14:07:09.000Z | 2021-10-01T18:24:31.000Z | #include <vector>
#include <list>
#include <iostream>
using namespace std;
int main()
{
// Creating a Vector
vector<int> v = {10, 20, 40};
v.push_back(25);
v.push_back(55);
v.pop_back();
// To create an iterator
vector<int>::iterator itr = v.begin();
for (itr = v.begin(); itr != v.end... | 16.5 | 48 | 0.484848 | PronomitaDey |
759e21d1f0182578dd7f01be8e13627a7295980b | 100 | cpp | C++ | src/Plugins/U4_AdminCommands/Source/U4_AdminCommands/Private/U4_AdminCommand_Sunset.cpp | CyberAndrii/unturned4-mod-example | 05595a0e5411b18ac6b8b06bbf8e2797f95defaa | [
"MIT"
] | 6 | 2022-03-20T01:34:32.000Z | 2022-03-28T19:32:53.000Z | src/Plugins/U4_AdminCommands/Source/U4_AdminCommands/Private/U4_AdminCommand_Sunset.cpp | CyberAndrii/unturned4-mod-example | 05595a0e5411b18ac6b8b06bbf8e2797f95defaa | [
"MIT"
] | null | null | null | src/Plugins/U4_AdminCommands/Source/U4_AdminCommands/Private/U4_AdminCommand_Sunset.cpp | CyberAndrii/unturned4-mod-example | 05595a0e5411b18ac6b8b06bbf8e2797f95defaa | [
"MIT"
] | null | null | null | // Copyright Smartly Dressed Games Ltd. All Rights Reserved.
#include "U4_AdminCommand_Sunset.h"
| 16.666667 | 60 | 0.78 | CyberAndrii |
b5a4f06b8dc249bcc64b0fe586600ccf5c8393c0 | 2,609 | cpp | C++ | samples/std-remove-if/std-remove-if.cpp | Studiofreya/code-samples | 4057c5204d7d37c29ded306861ef6eaded7527e5 | [
"MIT"
] | 17 | 2015-08-13T05:30:48.000Z | 2022-03-16T16:03:28.000Z | samples/std-remove-if/std-remove-if.cpp | Studiofreya/code-samples | 4057c5204d7d37c29ded306861ef6eaded7527e5 | [
"MIT"
] | null | null | null | samples/std-remove-if/std-remove-if.cpp | Studiofreya/code-samples | 4057c5204d7d37c29ded306861ef6eaded7527e5 | [
"MIT"
] | 18 | 2015-02-22T16:36:54.000Z | 2022-02-07T00:04:39.000Z | #include <vector>
#include <list>
#include <string>
#include <algorithm>
#include <iterator>
#include <iostream>
template<typename T>
void printVector(const T & v)
{
std::copy(v.cbegin(), v.cend(), std::ostream_iterator<int>(std::cout, " "));
std::cout << "\n";
}
int main()
{
{
// Vector with numbers, initiali... | 20.382813 | 87 | 0.643542 | Studiofreya |
b5a6756ac95c7f7af30a235d76eef0fe9278fc0c | 3,129 | cpp | C++ | LargeCarCO.cpp | IRLSCU/QtController | 597d6153f641073c367724fcccc9fe5e68cb2c18 | [
"Apache-2.0"
] | null | null | null | LargeCarCO.cpp | IRLSCU/QtController | 597d6153f641073c367724fcccc9fe5e68cb2c18 | [
"Apache-2.0"
] | null | null | null | LargeCarCO.cpp | IRLSCU/QtController | 597d6153f641073c367724fcccc9fe5e68cb2c18 | [
"Apache-2.0"
] | null | null | null | #include "LargeCarCO.h"
LargeCarCO::LargeCarCO() {}
LargeCarCO::~LargeCarCO(){}
LargeCarCO& LargeCarCO::setTurnRange(qint16 turnRange) {//0~15位,第0、1个字节
// if (turnRange > LARGECARCO_MAX_TURN_RANGE) {
// turnRange = LARGECARCO_MAX_TURN_RANGE;
// }
// else if (turnRange < LARGECARCO_MIN_TURN_RANGE) {
/... | 27.447368 | 113 | 0.628316 | IRLSCU |
b5a6eeec7f14c117b98107898c5773542a18e012 | 1,602 | cpp | C++ | src/autoCL.cpp | jeschwarz0/JobHelper | 6e86270717e053e7798b06726b0a076d20894c62 | [
"MIT"
] | null | null | null | src/autoCL.cpp | jeschwarz0/JobHelper | 6e86270717e053e7798b06726b0a076d20894c62 | [
"MIT"
] | null | null | null | src/autoCL.cpp | jeschwarz0/JobHelper | 6e86270717e053e7798b06726b0a076d20894c62 | [
"MIT"
] | null | null | null | /*
* File: autoCL.cpp
* Author: Jesse Schwarz
*
* Created on January 15, 2018, 7:22 PM
*/
#include <stdio.h>
#include <iostream>
#include <string>
#include <stdlib.h>
#include "autoCL.h"
using namespace std;
namespace autoCL {
cltype manualGetType(cltype rec) {
cout << "What type would you like:... | 31.411765 | 105 | 0.535581 | jeschwarz0 |
b5a9b5fe2ec358ffd88a72c58e05529f9c85ee6e | 3,706 | cpp | C++ | PostView2/AreaCoverageTool.cpp | febiosoftware/PostView | 45c60aec1ae8832d0e6f6410e774aeaded2037c0 | [
"MIT"
] | 9 | 2020-03-22T08:27:03.000Z | 2021-09-24T10:02:37.000Z | PostView2/AreaCoverageTool.cpp | febiosoftware/PostView | 45c60aec1ae8832d0e6f6410e774aeaded2037c0 | [
"MIT"
] | 1 | 2021-03-02T06:45:59.000Z | 2021-03-02T06:45:59.000Z | PostView2/AreaCoverageTool.cpp | febiosoftware/PostView | 45c60aec1ae8832d0e6f6410e774aeaded2037c0 | [
"MIT"
] | 2 | 2020-06-27T13:59:49.000Z | 2021-09-08T16:39:39.000Z | /*This file is part of the PostView source code and is licensed under the MIT license
listed below.
See Copyright-PostView.txt for details.
Copyright (c) 2020 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any person obta... | 28.075758 | 92 | 0.712628 | febiosoftware |
b5ab6f6812fe48806537cf6080b72c65ca2dcf1c | 2,304 | cpp | C++ | src/vec3.cpp | francisrstokes/WaveStrider | 854095c6fec04dfcafabc8bcbf65745fa62f4880 | [
"MIT"
] | 1 | 2021-05-30T16:21:11.000Z | 2021-05-30T16:21:11.000Z | src/vec3.cpp | francisrstokes/cpp-raymarcher | 854095c6fec04dfcafabc8bcbf65745fa62f4880 | [
"MIT"
] | null | null | null | src/vec3.cpp | francisrstokes/cpp-raymarcher | 854095c6fec04dfcafabc8bcbf65745fa62f4880 | [
"MIT"
] | null | null | null | #include "vec3.hpp"
#include <math.h>
namespace WaveStrider {
vec3::vec3(double X, double Y, double Z) : x{ X }, y{ Y }, z{ Z } {};
vec3::vec3(double n) : x{ n }, y{ n }, z{ n } {};
vec3::vec3() : x{ 0 }, y{ 0 }, z{ 0 } {};
vec3::vec3(const vec3 &v) : x{ v.x }, y{ v.y }, z{ v.z } {};
double vec3::length()
{
return... | 18.141732 | 69 | 0.486979 | francisrstokes |
b5abbb93815cdfa4e547b0261b130fec9c308955 | 1,747 | hpp | C++ | include/kiview_app.hpp | magicmoremagic/bengine-kiview | c96092c1f90d729069676b31d2b1c079fddb7053 | [
"MIT"
] | null | null | null | include/kiview_app.hpp | magicmoremagic/bengine-kiview | c96092c1f90d729069676b31d2b1c079fddb7053 | [
"MIT"
] | null | null | null | include/kiview_app.hpp | magicmoremagic/bengine-kiview | c96092c1f90d729069676b31d2b1c079fddb7053 | [
"MIT"
] | null | null | null | #pragma once
#ifndef KIVIEW_APP_HPP_
#define KIVIEW_APP_HPP_
#include "node.hpp"
#include <be/core/lifecycle.hpp>
#include <be/core/extents.hpp>
#include <be/util/string_interner.hpp>
#include <be/platform/lifecycle.hpp>
#include <be/platform/glfw_window.hpp>
#include <glm/vec2.hpp>
#include <functional>
#include <ra... | 22.986842 | 79 | 0.660561 | magicmoremagic |
b5af7516fe8f690e3e7b97c37ffedbd6badf574e | 5,470 | hpp | C++ | framework/areg/base/private/BufferPosition.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 70 | 2021-07-20T11:26:16.000Z | 2022-03-27T11:17:43.000Z | framework/areg/base/private/BufferPosition.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 32 | 2021-07-31T05:20:44.000Z | 2022-03-20T10:11:52.000Z | framework/areg/base/private/BufferPosition.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 40 | 2021-11-02T09:45:38.000Z | 2022-03-27T11:17:46.000Z | #pragma once
/************************************************************************
* This file is part of the AREG SDK core engine.
* AREG SDK is dual-licensed under Free open source (Apache version 2.0
* License) and Commercial (with various pricing models) licenses, depending
* on the nature of the project (c... | 43.76 | 137 | 0.488665 | Ali-Nasrolahi |
b5b71b190a4cef5b7f56354f9ea9add05abe2643 | 813 | cpp | C++ | acmicpcnet/1168.cpp | irresi/algostudy | 489739d641d6e36bbedf86be6391d1db27456585 | [
"MIT"
] | null | null | null | acmicpcnet/1168.cpp | irresi/algostudy | 489739d641d6e36bbedf86be6391d1db27456585 | [
"MIT"
] | null | null | null | acmicpcnet/1168.cpp | irresi/algostudy | 489739d641d6e36bbedf86be6391d1db27456585 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
#define nm (ns+ne)/2
using ll = long long;
using pii = pair<int, int>;
typedef tree<int, null_type,less<int>,rb_tree_tag,tree_order_statistics_node_update> ordered_set;
const int inf=1e9+3;
#define all(x) ... | 23.228571 | 97 | 0.589176 | irresi |
b5b9ffe328fa54177619eeac4e282d054e4f7b20 | 362 | hpp | C++ | CookieEngine/include/Core/Window.hpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | CookieEngine/include/Core/Window.hpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | CookieEngine/include/Core/Window.hpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | #ifndef __WINDOW_HPP__
#define __WINDOW_HPP__
#include <GLFW/glfw3.h>
namespace Cookie
{
namespace Core
{
class Window
{
public:
GLFWwindow* window = nullptr;
int width = 0;
int height = 0;
private:
void SetIcon();
public:
/* CONSTRUCTORS/DESTRUCTORS */
Window();
~Window();
... | 11.677419 | 34 | 0.61326 | qbleuse |
b5c093af0b258796fb64c0c453a9611ed8458061 | 11,622 | cpp | C++ | Tools/PL3dsMaxSceneExport_2008/src/PLSceneLight.cpp | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 83 | 2015-01-08T15:06:14.000Z | 2021-07-20T17:07:00.000Z | Tools/PL3dsMaxSceneExport_2008/src/PLSceneLight.cpp | PixelLightFoundation/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 27 | 2019-06-18T06:46:07.000Z | 2020-02-02T11:11:28.000Z | Tools/PL3dsMaxSceneExport_2008/src/PLSceneLight.cpp | naetherm/PixelLight | d7666f5b49020334cbb5debbee11030f34cced56 | [
"MIT"
] | 40 | 2015-02-25T18:24:34.000Z | 2021-03-06T09:01:48.000Z | /*********************************************************\
* File: PLSceneLight.cpp *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... | 39.263514 | 211 | 0.635519 | ktotheoz |
b5c3c6eb98df16a20889b79a7145a4eb120bac3c | 1,739 | cpp | C++ | Greedy/number-of-orders-in-the-backlog.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | 2 | 2021-03-05T22:32:23.000Z | 2021-03-05T22:32:29.000Z | Questions Level-Wise/Medium/number-of-orders-in-the-backlog.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | null | null | null | Questions Level-Wise/Medium/number-of-orders-in-the-backlog.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | null | null | null | class Solution {
public:
int getNumberOfBacklogOrders(vector<vector<int>>& orders)
{
int count=0;
map<int,int,greater<int>> buy;
map<int,int> sell;
for(int i=0;i<orders.size();i++)
{
if(orders[i][2]) //sell
{
while(orders[i][1]>0&&... | 32.811321 | 86 | 0.346751 | PrakharPipersania |
b5c92843a0d72d7cdca11975ef2eae41d2837779 | 392 | cpp | C++ | _site/Competitive Programming/Codeforces/1073B.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 1 | 2019-06-10T04:39:49.000Z | 2019-06-10T04:39:49.000Z | _site/Competitive Programming/Codeforces/1073B.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 2 | 2021-09-27T23:34:07.000Z | 2022-02-26T05:54:27.000Z | _site/Competitive Programming/Codeforces/1073B.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 3 | 2019-06-23T14:15:08.000Z | 2019-07-09T20:40:58.000Z | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
ll n;
cin>>n;
ll a, b;
map<ll,ll> idx;
for (ll i = 0; i < n; ++i)
{
cin>>a;
idx[a] = i;
}
ll cur = 0;
for (ll i = 0; i < n; ++i)
{
cin>>b;
if(idx[b] < cur){
cout<<0<<" ";
}el... | 13.517241 | 27 | 0.47449 | anujkyadav07 |
b5ce9d05e3d53360728dd4f430615c09187a37c0 | 6,293 | cc | C++ | common/dstage/client_response_handler.cc | PeterVondras/DAS | 72dd5223280ec121f998b4932cc6bf7e83187d46 | [
"MIT"
] | null | null | null | common/dstage/client_response_handler.cc | PeterVondras/DAS | 72dd5223280ec121f998b4932cc6bf7e83187d46 | [
"MIT"
] | null | null | null | common/dstage/client_response_handler.cc | PeterVondras/DAS | 72dd5223280ec121f998b4932cc6bf7e83187d46 | [
"MIT"
] | null | null | null | #include <sys/socket.h>
#include <sys/types.h>
#include <memory>
#include <string>
#include "common/dstage/client_response_handler.h"
#include "glog/logging.h"
namespace {
using CallBack2 = dans::CommunicationHandlerInterface::CallBack2;
using ReadyFor = dans::CommunicationHandlerInterface::ReadyFor;
const int kMByt... | 35.755682 | 79 | 0.589385 | PeterVondras |
b5d104afaa493b0e8ee8fdfd81701b70431f0ffd | 475 | hpp | C++ | include/resources/Tools.hpp | yinyangcoding/chess | 50acfda16e65a1ab2427caa5e083a698c67375ef | [
"MIT"
] | 1 | 2020-07-11T06:28:58.000Z | 2020-07-11T06:28:58.000Z | include/resources/Tools.hpp | yinyangcoding/chess | 50acfda16e65a1ab2427caa5e083a698c67375ef | [
"MIT"
] | 8 | 2020-06-28T19:41:07.000Z | 2020-07-13T17:06:50.000Z | include/resources/Tools.hpp | yinyangcoding/chess | 50acfda16e65a1ab2427caa5e083a698c67375ef | [
"MIT"
] | null | null | null | #ifndef TOOLS_GUARD
#define TOOLS_GUARD
#include <iostream>
#include <vector>
#include "BlandTools.hpp"
#include "../objects/Piece.hpp"
#include "../objects/Coordinate.hpp"
// Contains tools that are needed universally throughout code
namespace Tools {
// Checks if a Piece vector contains a piece
static bool... | 22.619048 | 61 | 0.715789 | yinyangcoding |
b5d10b45f66473a5800fa5ef08b154861d46dd76 | 24,761 | cc | C++ | src/cxx/libsparse/libtools/MatrixOper.cc | jstarck/cosmostat | f686efe4c00073272487417da15e207a529f07e7 | [
"MIT"
] | null | null | null | src/cxx/libsparse/libtools/MatrixOper.cc | jstarck/cosmostat | f686efe4c00073272487417da15e207a529f07e7 | [
"MIT"
] | null | null | null | src/cxx/libsparse/libtools/MatrixOper.cc | jstarck/cosmostat | f686efe4c00073272487417da15e207a529f07e7 | [
"MIT"
] | null | null | null | /******************************************************************************
** Copyright (C) 1999 by CEA
*******************************************************************************
**
** UNIT
**
** Version: 1.0
**
** Author: J.L. Starck
**
** Date: 18/02/99
**
** F... | 25.659067 | 118 | 0.509592 | jstarck |
b5d4f3154ae656d16ccc5c21a3bb5fcb86f888bc | 295 | hpp | C++ | Source/Exporter.hpp | Myles-Trevino/Frustum | b5faea151d68996378eb485dc6a5bbd788b0fd22 | [
"Apache-2.0"
] | 2 | 2020-08-10T23:26:24.000Z | 2020-08-20T02:10:47.000Z | Source/Exporter.hpp | Myles-Trevino/Frustum | b5faea151d68996378eb485dc6a5bbd788b0fd22 | [
"Apache-2.0"
] | 1 | 2021-03-10T15:39:44.000Z | 2021-03-11T15:44:43.000Z | Source/Exporter.hpp | Myles-Trevino/Frustum | b5faea151d68996378eb485dc6a5bbd788b0fd22 | [
"Apache-2.0"
] | null | null | null | /*
Copyright Myles Trevino
Licensed under the Apache License, Version 2.0
https://www.apache.org/licenses/LICENSE-2.0
*/
#pragma once
#include <string>
namespace LV::Exporter
{
void export_frustum(const std::string& name, const std::string& format,
const std::string& orientation);
}
| 16.388889 | 72 | 0.732203 | Myles-Trevino |
b5d87d60c14c8d9f2619f30439678c8b8a216505 | 5,594 | hpp | C++ | include/NUnit/Framework/Constraints/MessageWriter.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/NUnit/Framework/Constraints/MessageWriter.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/NUnit/Framework/Constraints/MessageWriter.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include <initializer_list>
// Including type: System.IO.StringWriter
#include "System/I... | 57.081633 | 172 | 0.728459 | darknight1050 |
b5db09b4d94ff65af99aa56d9fce77be3f2d5f8d | 4,859 | cpp | C++ | hetero/simulations_random.cpp | tehora/phd-sourcecodes | b8c9be03b6de012b886e3d3f43c9d179ec2d701b | [
"MIT"
] | null | null | null | hetero/simulations_random.cpp | tehora/phd-sourcecodes | b8c9be03b6de012b886e3d3f43c9d179ec2d701b | [
"MIT"
] | null | null | null | hetero/simulations_random.cpp | tehora/phd-sourcecodes | b8c9be03b6de012b886e3d3f43c9d179ec2d701b | [
"MIT"
] | null | null | null | #include <ghutils.h>
#include <set>
#include <vector>
#include <unordered_map>
#include <algorithm>
#include <iomanip>
#include <math.h>
int number = 100;
set <pair <int, int>> edges;
set <pair <int, int>> random_net;
unordered_map <string, int> nodes;
//for simulations related to kohonen
map <int, int> neuron_cla... | 26.551913 | 221 | 0.477053 | tehora |
b5dc152a3bf08c09438463cd636a53e706a17dd3 | 454,489 | cpp | C++ | WRK-V1.2/clr/src/vm/class.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | WRK-V1.2/clr/src/vm/class.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | WRK-V1.2/clr/src/vm/class.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | // ==++==
//
//
// Copyright (c) 2006 Microsoft Corporation. All rights reserved.
//
// The use and distribution terms for this software are contained in the file
// named license.txt, which can be found in the root of this distribution.
// By using this software in any fashion, you are agreeing to b... | 37.89303 | 229 | 0.560832 | intj-t |
b5e14825564f8f01c7ff1ab23134bab817e44cd1 | 314 | cpp | C++ | tests_old/test_array_enumerator.cpp | EthanTLee/Go-Sheep-Go | 9536eed84074627ae4ed8bb848be1b7fdaf54486 | [
"MIT"
] | null | null | null | tests_old/test_array_enumerator.cpp | EthanTLee/Go-Sheep-Go | 9536eed84074627ae4ed8bb848be1b7fdaf54486 | [
"MIT"
] | null | null | null | tests_old/test_array_enumerator.cpp | EthanTLee/Go-Sheep-Go | 9536eed84074627ae4ed8bb848be1b7fdaf54486 | [
"MIT"
] | null | null | null | #include "catch.hpp"
#include <array>
#include <extern/array_enumerator.hh>
#include <iostream>
TEST_CASE("array enumerator test") {
std::array<std::array<int, 30>, 10> my_array1;
for (auto [c, d] : array_helpers::enumarate(my_array1)) {
std::cout << "c " << c << ", d " << d << "\n";
}
} | 19.625 | 61 | 0.589172 | EthanTLee |
b5e3311a6b077c2c153a44622faf076fd48b6a72 | 53,153 | cc | C++ | tensorflow/compiler/xla/service/plaidml/tests/plaidml_i3d_3b_test.cc | dgkutnic/tensorflow | 527268ff7f5eaeec5b0d074670a4d9d8ce5cbc73 | [
"Apache-2.0"
] | null | null | null | tensorflow/compiler/xla/service/plaidml/tests/plaidml_i3d_3b_test.cc | dgkutnic/tensorflow | 527268ff7f5eaeec5b0d074670a4d9d8ce5cbc73 | [
"Apache-2.0"
] | 5 | 2020-07-17T17:36:44.000Z | 2020-08-05T20:18:02.000Z | tensorflow/compiler/xla/service/plaidml/tests/plaidml_i3d_3b_test.cc | dgkutnic/tensorflow | 527268ff7f5eaeec5b0d074670a4d9d8ce5cbc73 | [
"Apache-2.0"
] | null | null | null | // Tests that show HLO Module conversion to PlaidML Program.
#include <algorithm>
#include <string>
#include <gtest/gtest.h>
#include "absl/strings/str_cat.h"
#include "tensorflow/compiler/xla/service/plaidml/compiler.h"
#include "tensorflow/compiler/xla/service/plaidml/tests/plaidml_codegen_test.h"
#include "tensor... | 123.039352 | 357 | 0.737569 | dgkutnic |
b5e80b79e563ad815406eecfdc779dc136fc80e6 | 4,275 | cpp | C++ | 3rdparty/g2o/g2o/apps/g2o_simulator/simutils.cpp | Refstop/VSLAM_Example | 060b9419f79f035d1c9ebfa75ad46e2e9a53e992 | [
"MIT"
] | null | null | null | 3rdparty/g2o/g2o/apps/g2o_simulator/simutils.cpp | Refstop/VSLAM_Example | 060b9419f79f035d1c9ebfa75ad46e2e9a53e992 | [
"MIT"
] | null | null | null | 3rdparty/g2o/g2o/apps/g2o_simulator/simutils.cpp | Refstop/VSLAM_Example | 060b9419f79f035d1c9ebfa75ad46e2e9a53e992 | [
"MIT"
] | null | null | null | // g2o - General Graph Optimization
// Copyright (C) 2011 R. Kuemmerle, G. Grisetti, H. Strasdat, W. Burgard
// 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 sourc... | 27.056962 | 75 | 0.61731 | Refstop |
b5ead38bc228f2c217a8badfdeffb3ca9fc326ee | 5,598 | cpp | C++ | SDK/Extras/VRML Reader/Source/VRML 1/VRML1 node handlers/CylinderV1ToObject.cpp | seanm/Quesa | b7bd607a5d04e7d90d3434208437ea392667c339 | [
"BSD-3-Clause"
] | null | null | null | SDK/Extras/VRML Reader/Source/VRML 1/VRML1 node handlers/CylinderV1ToObject.cpp | seanm/Quesa | b7bd607a5d04e7d90d3434208437ea392667c339 | [
"BSD-3-Clause"
] | null | null | null | SDK/Extras/VRML Reader/Source/VRML 1/VRML1 node handlers/CylinderV1ToObject.cpp | seanm/Quesa | b7bd607a5d04e7d90d3434208437ea392667c339 | [
"BSD-3-Clause"
] | null | null | null | /* NAME:
CylinderV1ToObject.cp
DESCRIPTION:
VRML 1 node handler.
COPYRIGHT:
Copyright (c) 2005, Quesa Developers. All rights reserved.
For the current release of Quesa, please see:
<https://github.com/jwwalker/Quesa>
Redistribution and use in sou... | 27.712871 | 80 | 0.672919 | seanm |
b5f689f7b6ffc9c9c60ca8842526aeb36040e5e8 | 481 | cpp | C++ | hdu/1000/1859.cpp | TheBadZhang/OJ | b5407f2483aa630068343b412ecaf3a9e3303f7e | [
"Apache-2.0"
] | 1 | 2020-07-22T16:54:07.000Z | 2020-07-22T16:54:07.000Z | hdu/1000/1859.cpp | TheBadZhang/OJ | b5407f2483aa630068343b412ecaf3a9e3303f7e | [
"Apache-2.0"
] | 1 | 2018-05-12T12:53:06.000Z | 2018-05-12T12:53:06.000Z | hdu/1000/1859.cpp | TheBadZhang/OJ | b5407f2483aa630068343b412ecaf3a9e3303f7e | [
"Apache-2.0"
] | null | null | null |
#include <stdio.h>
#include <algorithm>
using namespace std;
int x[1000], y[1000];
int i = 0;
int main() {
int flag;
flag = 0;
while (scanf("%d %d", &x[i], &y[i])) {
if (x[i] == 0 && y[i] == 0 && flag == 0)
break;
if (x[i] != 0 || y[i] != 0) {
i++;
flag = 1;
continue;
} else if (x[i] == 0 && y[i] ... | 17.814815 | 59 | 0.432432 | TheBadZhang |
b5f75f4906652a7e5377488a829d028935a45a5a | 1,892 | cpp | C++ | src/Scene/EntityComponent.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | 12 | 2020-12-27T22:13:58.000Z | 2021-03-14T09:03:02.000Z | src/Scene/EntityComponent.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | 10 | 2021-01-14T15:14:31.000Z | 2021-05-24T22:01:09.000Z | src/Scene/EntityComponent.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | null | null | null | #include "EntityComponent.hpp"
#include "Entity.hpp"
#include "Scene.hpp"
Scene* IEntityComponent::GetScene() const
{
return owner->scene;
}
void IEntityComponent::Render(Renderer* renderer)
{
componentFlags.ResetFlag(EntityComponentFlags::EnableRender);
FlagsChanged();
}
void IEntityComponent::FlagsChanged()
... | 24.571429 | 134 | 0.805497 | Strife-AI |
b5fbd0561418ba437ba1a6d33b1d75f1656c6626 | 66 | hpp | C++ | module/buff/abstract_buff.hpp | PaPaPR/WolfVision | 4092a313491349397106e3c050a332b2a5c6e611 | [
"MIT"
] | null | null | null | module/buff/abstract_buff.hpp | PaPaPR/WolfVision | 4092a313491349397106e3c050a332b2a5c6e611 | [
"MIT"
] | null | null | null | module/buff/abstract_buff.hpp | PaPaPR/WolfVision | 4092a313491349397106e3c050a332b2a5c6e611 | [
"MIT"
] | null | null | null | #pragma once
#include <fmt/core.h>
namespace abstract_buff {
}
| 8.25 | 25 | 0.712121 | PaPaPR |
b5fe23bea0248f24d30fc40d0d27832fbc9af81c | 832,013 | cpp | C++ | src/main_1100.cpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | src/main_1100.cpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | src/main_1100.cpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: VROSC.UIButton
#include "VROSC/UIButton.hpp"
// Including type: UnityEngine.TextMesh
#include "UnityEngine/TextMesh.hpp"
// Including type: TMPro.T... | 75.507124 | 593 | 0.777489 | v0idp |
bd042340e98f74265e35d8846b034aed6372ad54 | 7,592 | cpp | C++ | libgramtools/src/prg/linearised_prg.cpp | bricoletc/gramtools | 1ce06178b7b26f42d72e47d3d7b8a7a606e6f256 | [
"MIT"
] | null | null | null | libgramtools/src/prg/linearised_prg.cpp | bricoletc/gramtools | 1ce06178b7b26f42d72e47d3d7b8a7a606e6f256 | [
"MIT"
] | null | null | null | libgramtools/src/prg/linearised_prg.cpp | bricoletc/gramtools | 1ce06178b7b26f42d72e47d3d7b8a7a606e6f256 | [
"MIT"
] | null | null | null | #include "prg/linearised_prg.hpp"
#include "common/parameters.hpp"
#include "common/utils.hpp"
/**********************
* Supporting nesting**
**********************/
PRG_String::PRG_String(std::string const &file_in, endianness en)
: odd_site_end_found(false), en(en) {
std::fstream input(file_in, std::ios::in ... | 28.541353 | 79 | 0.606428 | bricoletc |
bd05f6e3d79d14594bc8a4a647fb8ac034a2e6fb | 16,355 | cpp | C++ | src/mlpack/core/util/cli.cpp | 17minutes/mlpack | 8f4af1ec454a662dd7c990cf2146bfeb1bd0cb3a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-09-22T18:12:40.000Z | 2021-11-17T10:39:58.000Z | src/mlpack/core/util/cli.cpp | kosmaz/Mlpack | 62100ddca45880a57e7abb0432df72d285e5728b | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | src/mlpack/core/util/cli.cpp | kosmaz/Mlpack | 62100ddca45880a57e7abb0432df72d285e5728b | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /**
* @file cli.cpp
* @author Matthew Amidon
*
* Implementation of the CLI module for parsing parameters.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* 3-clause BSD license along with mlpack. If not... | 31.757282 | 80 | 0.612901 | 17minutes |
bd060b66a878f0e261a255c0bf551440b10985d7 | 9,928 | cxx | C++ | src/primitive.cxx | DaWelter/NaiveTrace | a904785a0e13c394b2c221bc918cddb41bc8b175 | [
"FSFAP"
] | 16 | 2018-04-25T08:14:14.000Z | 2022-01-29T06:19:16.000Z | src/primitive.cxx | DaWelter/NaiveTrace | a904785a0e13c394b2c221bc918cddb41bc8b175 | [
"FSFAP"
] | null | null | null | src/primitive.cxx | DaWelter/NaiveTrace | a904785a0e13c394b2c221bc918cddb41bc8b175 | [
"FSFAP"
] | null | null | null | #include "primitive.hxx"
#include "sampler.hxx"
#include "ray.hxx"
#include "scene.hxx"
Mesh::Mesh(index_t num_triangles, index_t num_vertices)
: Geometry{Geometry::PRIMITIVES_TRIANGLES}
{
// Using Eigen::NoChange because number of columns is fixed by compile time constant.
vertices.resize(num_vertices, Eigen::... | 29.286136 | 173 | 0.649778 | DaWelter |
bd08ee047e2e975e725dba8ba4780be5c5532372 | 131 | cpp | C++ | slides/index_cache/html/unnamed-chunk-2_sourceCpp/sourceCpp-x86_64-pc-linux-gnu-1.0.5/fileacd03ef60123.cpp | gomesfellipe/202011-rcpp | fe1145e4096dc12c42c3a5cc663e41fdcace2d25 | [
"MIT"
] | 2 | 2020-11-22T08:48:25.000Z | 2020-11-28T12:06:01.000Z | slides/index_cache/html/unnamed-chunk-2_sourceCpp/sourceCpp-x86_64-pc-linux-gnu-1.0.5/fileacd03ef60123.cpp | gomesfellipe/202011-rcpp | fe1145e4096dc12c42c3a5cc663e41fdcace2d25 | [
"MIT"
] | null | null | null | slides/index_cache/html/unnamed-chunk-2_sourceCpp/sourceCpp-x86_64-pc-linux-gnu-1.0.5/fileacd03ef60123.cpp | gomesfellipe/202011-rcpp | fe1145e4096dc12c42c3a5cc663e41fdcace2d25 | [
"MIT"
] | 2 | 2020-11-21T11:57:16.000Z | 2020-11-28T12:06:04.000Z | #include <Rcpp.h>
// [[Rcpp::export]]
void hello (std::string name)
{
Rcpp::Rcout <<
"hello " + name <<
std::endl;
}
| 14.555556 | 29 | 0.526718 | gomesfellipe |
bd0bca7183f6ec03c832d85dbe10e9596870066e | 2,643 | cpp | C++ | test/json_test_suite_array_failures.cpp | kercl/JsonStream | 273ae5d0354d70eb39e38ebe4b7570fbf9a840b9 | [
"MIT"
] | 1 | 2021-06-01T00:29:30.000Z | 2021-06-01T00:29:30.000Z | test/json_test_suite_array_failures.cpp | kercl/JsonStreamReader | 273ae5d0354d70eb39e38ebe4b7570fbf9a840b9 | [
"MIT"
] | null | null | null | test/json_test_suite_array_failures.cpp | kercl/JsonStreamReader | 273ae5d0354d70eb39e38ebe4b7570fbf9a840b9 | [
"MIT"
] | null | null | null | #define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE JSON_TEST_SUITE_ARRAY_FAILURES
#include <boost/test/unit_test.hpp>
#include "TestParser.h"
JSON_PARSER_EXPECT_FAILURE(n_array_1_true_without_comma, R"json( [1 true] )json")
JSON_PARSER_EXPECT_FAILURE(n_array_a_invalid_utf8, R"json( [a... | 80.090909 | 95 | 0.649641 | kercl |
bd0d0d0a43a309fa891cab1fcfc4bf2a31bc9e24 | 1,131 | cpp | C++ | data/dailyCodingProblem55.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | 2 | 2020-09-04T20:56:23.000Z | 2021-06-11T07:42:26.000Z | data/dailyCodingProblem55.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | data/dailyCodingProblem55.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const string ALL_CHARS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
/*
Implement a URL shortener with the following methods:
shorten(url), which shortens the url into a six-character alphanumeric string, such as zLg6wl.
restore(short), which expa... | 19.5 | 94 | 0.603006 | vidit1999 |
bd0e8102a83e724c54b9c3796f1ae6d126b15405 | 8,831 | cpp | C++ | MonoNative.Tests/mscorlib/System/Security/AccessControl/mscorlib_System_Security_AccessControl_DiscretionaryAcl_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative.Tests/mscorlib/System/Security/AccessControl/mscorlib_System_Security_AccessControl_DiscretionaryAcl_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative.Tests/mscorlib/System/Security/AccessControl/mscorlib_System_Security_AccessControl_DiscretionaryAcl_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | // Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System.Security.AccessControl
// Name: DiscretionaryAcl
// C++ Typed Name: mscorlib::System::Security::AccessControl::DiscretionaryAcl
#include <gtest/gtest.h>
#include <mscorlib/System/Securi... | 40.884259 | 535 | 0.760956 | brunolauze |
bd0f068063ce6bb091e72722a8fab3d36c3eba1f | 226 | cpp | C++ | lib/net/cmd/mgcommand.cpp | matheopit/yayasensor | 000ef90529858fcca2658f49114b1e659968e66c | [
"MIT"
] | null | null | null | lib/net/cmd/mgcommand.cpp | matheopit/yayasensor | 000ef90529858fcca2658f49114b1e659968e66c | [
"MIT"
] | null | null | null | lib/net/cmd/mgcommand.cpp | matheopit/yayasensor | 000ef90529858fcca2658f49114b1e659968e66c | [
"MIT"
] | null | null | null | #include "mgcommand.h"
BaseCommand::BaseCommand(const std::string& name,const json_t*/*jdata*/)
:m_cmdname(name)
{
}
BaseCommand::~BaseCommand()
{
}
std::string BaseCommand::commandName()
{
return m_cmdname;
}
| 10.761905 | 72 | 0.681416 | matheopit |
bd1330a1edd7bf565eb65453e4d0ce4a7f558ace | 9,269 | cpp | C++ | src/twofish.cpp | vster/OpenCL | fb29aead4e6345e23f3f7ba5fb038fa1fd217e10 | [
"BSD-2-Clause"
] | 46 | 2015-12-04T17:12:58.000Z | 2022-03-11T04:30:49.000Z | src/twofish.cpp | vster/OpenCL | fb29aead4e6345e23f3f7ba5fb038fa1fd217e10 | [
"BSD-2-Clause"
] | null | null | null | src/twofish.cpp | vster/OpenCL | fb29aead4e6345e23f3f7ba5fb038fa1fd217e10 | [
"BSD-2-Clause"
] | 23 | 2016-10-24T09:18:14.000Z | 2022-02-25T02:11:35.000Z | /*************************************************
* Twofish Source File *
* (C) 1999-2001 The OpenCL Project *
*************************************************/
#include <opencl/twofish.h>
namespace OpenCL {
/*************************************************
* Twofish Encry... | 44.777778 | 79 | 0.437696 | vster |
bd1861711f9e08e0f2fbcd54a6bb1dac3804dbc6 | 6,095 | cpp | C++ | svd/src/main.cpp | rusheniii/ppmi-svd | bb9eb27712228f7c4f5e329809643d00bf0bf906 | [
"BSD-2-Clause"
] | null | null | null | svd/src/main.cpp | rusheniii/ppmi-svd | bb9eb27712228f7c4f5e329809643d00bf0bf906 | [
"BSD-2-Clause"
] | null | null | null | svd/src/main.cpp | rusheniii/ppmi-svd | bb9eb27712228f7c4f5e329809643d00bf0bf906 | [
"BSD-2-Clause"
] | null | null | null |
#include <iostream>
#include "ppmisvd.hpp"
static char help[] = "Singular value decomposition of a matrix.\n";
int main(int argc, char** argv) {
using std::cout;
using std::string;
std::vector<IJPair> pairs;
PetscErrorCode ierr=0;
ierr = SlepcInitialize(&argc,&argv,(char*)0,help);
if (ierr){
... | 42.622378 | 150 | 0.597375 | rusheniii |
bd18acca2a9ae003d62a9db6c8b19d111ab9f40b | 23,121 | hh | C++ | handc/cfg/gc/rtgc/rtgc/colorset.hh | bitwize/rscheme | 1c933d3418205038df0f90e7bffdcfa2bff75951 | [
"TCL"
] | 21 | 2015-07-27T06:14:35.000Z | 2022-01-27T01:50:27.000Z | stage0/cfg/gc/rtgc/rtgc/colorset.hh | ecraven/rscheme | f7de3a1e2367b1828135d3c613877865f57f04da | [
"TCL"
] | 1 | 2019-08-21T12:47:11.000Z | 2019-08-21T12:47:11.000Z | stage0/cfg/gc/rtgc/rtgc/colorset.hh | ecraven/rscheme | f7de3a1e2367b1828135d3c613877865f57f04da | [
"TCL"
] | 7 | 2016-06-03T02:03:17.000Z | 2021-05-06T15:05:39.000Z | #ifndef COLORSET_HH
#define COLORSET_HH
// Revised: 16 Nov 1993 Mike Hewett
//
// Added: color_set data members:
// unsigned int number_of_objects_per_snarf
// unsigned int number_of_snarfed_objects_allocated
// char * local_high_water_mark
//
// color_... | 32.518987 | 91 | 0.688854 | bitwize |
bd18eded4e952a05b4b4237e69d3ca35651c3592 | 526 | hpp | C++ | Azathothpp/include/system/AzVfs.hpp | Genkinger/azathoth | 9d96d4668dbcaa958bd4a4f21094f7da9a87a07d | [
"BSD-2-Clause"
] | null | null | null | Azathothpp/include/system/AzVfs.hpp | Genkinger/azathoth | 9d96d4668dbcaa958bd4a4f21094f7da9a87a07d | [
"BSD-2-Clause"
] | null | null | null | Azathothpp/include/system/AzVfs.hpp | Genkinger/azathoth | 9d96d4668dbcaa958bd4a4f21094f7da9a87a07d | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include <map>
#include <vector>
#include <string>
#include <algorithm>
#include "AzFilesystem.hpp"
namespace Az{
class Vfs{
std::map<std::string, std::vector<std::string> > mMountPoints;
public:
void Mount(const std::string& fslocation, const std::string& mountpoint);
... | 27.684211 | 85 | 0.63308 | Genkinger |
bd1a53c30989c1954cf158cc1a21e7a56486b7b2 | 1,067 | hpp | C++ | dune/xt/data/quadratures/fekete/triangle_fekete_rule.hpp | dune-community/dune-xt-data | 32593bbcd52ed69b0a11963400a9173740089a75 | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:09:11.000Z | 2020-02-08T04:09:11.000Z | dune/xt/data/quadratures/fekete/triangle_fekete_rule.hpp | dune-community/dune-xt-data | 32593bbcd52ed69b0a11963400a9173740089a75 | [
"BSD-2-Clause"
] | 40 | 2018-08-26T08:34:34.000Z | 2021-09-28T13:01:55.000Z | dune/xt/data/quadratures/fekete/triangle_fekete_rule.hpp | dune-community/dune-xt-data | 32593bbcd52ed69b0a11963400a9173740089a75 | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:10:14.000Z | 2020-02-08T04:10:14.000Z | // This file is taken from
// http://people.sc.fsu.edu/~jburkardt%20/cpp_src/triangle_fekete_rule/triangle_fekete_rule.html
// License: LGPL
int fekete_degree(int rule);
int fekete_order_num(int rule);
void fekete_rule(int rule, int order_num, double xy[], double w[]);
int fekete_rule_num();
int* fekete_suborder(int r... | 56.157895 | 96 | 0.7985 | dune-community |
bd20e520291378569d3e2d402de30c33d5ea967c | 5,380 | cpp | C++ | Ver/ServerExample/server/source/server.cpp | vsevolod-oparin/RestaurantBES | 9ffc8983a09d523295528db3513402cf86d6d10c | [
"MIT"
] | null | null | null | Ver/ServerExample/server/source/server.cpp | vsevolod-oparin/RestaurantBES | 9ffc8983a09d523295528db3513402cf86d6d10c | [
"MIT"
] | null | null | null | Ver/ServerExample/server/source/server.cpp | vsevolod-oparin/RestaurantBES | 9ffc8983a09d523295528db3513402cf86d6d10c | [
"MIT"
] | null | null | null | #include "server.h"
#include "user.h"
#include <utility>
namespace restbes::server_structure {
Server::Server() : service(new restbed::Service()) {}
Server::UserCollection Server::getUsers() const {
return *(users.rlock());
}
std::shared_ptr<User> Server::getUser(const std::string &name) const {
if (users.... | 36.849315 | 99 | 0.596283 | vsevolod-oparin |
bd21d818dc1d6b4440daa10aeace4d3dd82a2fd8 | 2,088 | cpp | C++ | FruitNinjaGL/FruitNinjaGL.cpp | CncGpp/FruitNinjaGL | 90435c9e19733aece4a334c2d889ae5975f7706e | [
"Apache-2.0"
] | null | null | null | FruitNinjaGL/FruitNinjaGL.cpp | CncGpp/FruitNinjaGL | 90435c9e19733aece4a334c2d889ae5975f7706e | [
"Apache-2.0"
] | null | null | null | FruitNinjaGL/FruitNinjaGL.cpp | CncGpp/FruitNinjaGL | 90435c9e19733aece4a334c2d889ae5975f7706e | [
"Apache-2.0"
] | null | null | null | // FruitNinjaGL.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include "src/fn/ecs/ecs.hpp"
struct Position : public fn::Component<Position>{
Position() = default;
Position(int x, int y) : x(x), y(y) {}
int x, y;
void print() {
s... | 30.705882 | 120 | 0.527778 | CncGpp |
bd228d806fd734560832970d7336ebd18fbaa7de | 2,573 | cpp | C++ | UniEngine/src/PrivateComponentStorage.cpp | edisonlee0212/UniEngine-deprecated | 4b899980c280ac501c3b5fa2746cf1e71cfedd28 | [
"MIT"
] | null | null | null | UniEngine/src/PrivateComponentStorage.cpp | edisonlee0212/UniEngine-deprecated | 4b899980c280ac501c3b5fa2746cf1e71cfedd28 | [
"MIT"
] | null | null | null | UniEngine/src/PrivateComponentStorage.cpp | edisonlee0212/UniEngine-deprecated | 4b899980c280ac501c3b5fa2746cf1e71cfedd28 | [
"MIT"
] | 1 | 2021-09-06T08:07:37.000Z | 2021-09-06T08:07:37.000Z | #include "pch.h"
#include "EntityManager.h"
#include "PrivateComponentStorage.h"
void UniEngine::PrivateComponentStorage::RemovePrivateComponent(Entity entity, size_t typeID)
{
const auto search = m_pOwnersCollectionsMap.find(typeID);
if (search != m_pOwnersCollectionsMap.end())
{
auto& collection = m_pOwnersColl... | 37.838235 | 153 | 0.757482 | edisonlee0212 |
bd24a6bf123c538c13cb943fdfd8124ea7425135 | 792 | cpp | C++ | example/has_member_type/has_member_type/main.cpp | leico/cpp_utility | 28c2900836c66b05d90e3eeb7a2ffaed2b630b89 | [
"MIT"
] | null | null | null | example/has_member_type/has_member_type/main.cpp | leico/cpp_utility | 28c2900836c66b05d90e3eeb7a2ffaed2b630b89 | [
"MIT"
] | null | null | null | example/has_member_type/has_member_type/main.cpp | leico/cpp_utility | 28c2900836c66b05d90e3eeb7a2ffaed2b630b89 | [
"MIT"
] | null | null | null | //
// main.cpp
// has_member_type
//
// Created by leico_studio on 2019/08/15.
// Copyright © 2019 leico_studio. All rights reserved.
//
#include <iostream>
#include <vector>
#include <list>
#include "has_member_type.h"
struct dummy{};
void print( const bool value ){
std :: cout << std :: boolalpha << value ... | 24 | 82 | 0.630051 | leico |
bd2b406506bf4d1a34d1b8d31dc723f74d4d9f22 | 2,850 | cpp | C++ | redBox/Classes/RedNode.cpp | RyukieSama/RYC2X | 3142d0b1081c681c40cab32c5cfbfbbcb40a6c26 | [
"MIT"
] | null | null | null | redBox/Classes/RedNode.cpp | RyukieSama/RYC2X | 3142d0b1081c681c40cab32c5cfbfbbcb40a6c26 | [
"MIT"
] | null | null | null | redBox/Classes/RedNode.cpp | RyukieSama/RYC2X | 3142d0b1081c681c40cab32c5cfbfbbcb40a6c26 | [
"MIT"
] | null | null | null | //
// RedNode.cpp
// redBox-mobile
//
// Created by 王荣庆 on 2017/7/23.
//
#include "RedNode.hpp"
std::vector<std::string> contextRed = {"百万大奖", "五毛", "再来一次"};
bool RedNode::init() {
if (!Node::init()) {
return false;
}
backImage = Sprite::create("res/default.png");
backImage->setAnchor... | 23.360656 | 113 | 0.600351 | RyukieSama |
bd2f1af5ac344d84bbe2dd56ba236aa05c8a254f | 673 | cpp | C++ | CienciaDaComputacao/Capitulo01/Exercicios/Ex01.cpp | pedro-filho-81/C_Mais_Mais | d55105f62c626de3245697095532281c8254a9bd | [
"MIT"
] | null | null | null | CienciaDaComputacao/Capitulo01/Exercicios/Ex01.cpp | pedro-filho-81/C_Mais_Mais | d55105f62c626de3245697095532281c8254a9bd | [
"MIT"
] | null | null | null | CienciaDaComputacao/Capitulo01/Exercicios/Ex01.cpp | pedro-filho-81/C_Mais_Mais | d55105f62c626de3245697095532281c8254a9bd | [
"MIT"
] | null | null | null | /*
Exercícios 1.2.1 Suponha que aeb são variáveis inteiras.
O que a seguinte sequência de afirmações faz?
int t = a; b = t; a = b;
Autor: Pedro,10/11/2021
*/
#include <iostream>
#include <locale>
using namespace std;
// função principal
int main()
{
// localização geográfica
setlocale( LC_AL... | 18.189189 | 62 | 0.542348 | pedro-filho-81 |
bd2ff77dd5c1152d76a65cad0cc11cfd7ca60108 | 5,259 | cpp | C++ | book.cpp | farinc/book-tracker | a96b81dffba44af081907425b1b755d2bfc1fd66 | [
"MIT"
] | null | null | null | book.cpp | farinc/book-tracker | a96b81dffba44af081907425b1b755d2bfc1fd66 | [
"MIT"
] | null | null | null | book.cpp | farinc/book-tracker | a96b81dffba44af081907425b1b755d2bfc1fd66 | [
"MIT"
] | null | null | null | #include "book.h"
#include <cmath>
#include <nlohmann/json.hpp>
#include <QDebug>
using json = nlohmann::json;
namespace bookdata {
CostConstants constants = CostConstants();
Book::Book(int bookID)
{
this->bookID = bookID;
this->coverDim = {0, 0};
this->pageDim = {0,0};
this->status = Status::nosta... | 27.390625 | 184 | 0.651264 | farinc |
bd31337c283b5ca8434bf1bad1462b79f485aaf8 | 902 | cpp | C++ | LeetcodeProblems/415E_Add_Strings.cpp | dimabreeze/Interview | 72959c660c242dd22f456b24d8426c448bd1d5e9 | [
"MIT"
] | null | null | null | LeetcodeProblems/415E_Add_Strings.cpp | dimabreeze/Interview | 72959c660c242dd22f456b24d8426c448bd1d5e9 | [
"MIT"
] | null | null | null | LeetcodeProblems/415E_Add_Strings.cpp | dimabreeze/Interview | 72959c660c242dd22f456b24d8426c448bd1d5e9 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "415E_Add_Strings.h"
using namespace Leetcode::LC451E;
using namespace std;
string Solution::addStrings( string s1, string s2 ) {
const auto& minS = s1.size() < s2.size() ? s1 : s2;
auto& maxS = s1.size() < s2.size() ? s2 : s1;
int carry = 0;
auto iMin = minS.rbegin();
auto iMax = maxS... | 19.191489 | 58 | 0.542129 | dimabreeze |
bd313bd8128bb8c8526f2139b05e58d3921f0c8a | 1,079 | cpp | C++ | plugins/mmvtkm_gl/src/mmvtkm_gl.cpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | 49 | 2017-08-23T13:24:24.000Z | 2022-03-16T09:10:58.000Z | plugins/mmvtkm_gl/src/mmvtkm_gl.cpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | 200 | 2018-07-20T15:18:26.000Z | 2022-03-31T11:01:44.000Z | plugins/mmvtkm_gl/src/mmvtkm_gl.cpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | 31 | 2017-07-31T16:19:29.000Z | 2022-02-14T23:41:03.000Z | /**
* MegaMol
* Copyright (c) 2019-2021, MegaMol Dev Team
* All rights reserved.
*/
#include "mmcore/utility/plugins/AbstractPluginInstance.h"
#include "mmcore/utility/plugins/PluginRegister.h"
#include "mmvtkm_gl/mmvtkmMeshRenderTasks.h"
//#include "mmvtkm_gl/mmvtkmRenderer.h"
namespace megamol::mmvtkm_gl {
cl... | 29.162162 | 103 | 0.722892 | xge |
bd3562be8660e9eb07434f956c88fd2d4472e3e5 | 491 | cpp | C++ | source/MenuItemEvent.cpp | iSLC/vaca | c9bc3284c2a1325f7056f455fd5ff1e47e7673bc | [
"MIT"
] | null | null | null | source/MenuItemEvent.cpp | iSLC/vaca | c9bc3284c2a1325f7056f455fd5ff1e47e7673bc | [
"MIT"
] | null | null | null | source/MenuItemEvent.cpp | iSLC/vaca | c9bc3284c2a1325f7056f455fd5ff1e47e7673bc | [
"MIT"
] | null | null | null | // Vaca - Visual Application Components Abstraction
// Copyright (c) 2005-2010 David Capello
//
// This file is distributed under the terms of the MIT license,
// please read LICENSE.txt for more information.
#include "Wg/MenuItemEvent.hpp"
#include "Wg/Menu.hpp"
using namespace Wg;
MenuItemEvent::MenuItemEvent(Menu... | 20.458333 | 63 | 0.747454 | iSLC |
bd35b513a5f64716a1c122fa8fe0b9c5aac13fc6 | 2,099 | cpp | C++ | book/aoj/07/ALDS1_6_C/main.cpp | 515hikaru/solutions | 9fb3e4600f9a97b78211a5736c98354d4cbebc38 | [
"MIT"
] | null | null | null | book/aoj/07/ALDS1_6_C/main.cpp | 515hikaru/solutions | 9fb3e4600f9a97b78211a5736c98354d4cbebc38 | [
"MIT"
] | 9 | 2019-12-29T17:57:39.000Z | 2020-02-16T16:36:04.000Z | book/aoj/07/ALDS1_6_C/main.cpp | 515hikaru/solutions | 9fb3e4600f9a97b78211a5736c98354d4cbebc38 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <string>
const int N = 100005;
const long MAX = 2000000000;
struct Card {
char name[10];
int number;
};
void merge(struct Card *A, int left, int mid, int right) {
int n1 = mid - left;
int n2 = right - mid;
struct Card L[N / 2 + 3], R[N / 2 + 3];
for (int i = 0; i <... | 22.329787 | 58 | 0.443545 | 515hikaru |
bd37bde2bd601f0e5355828de7d68159ef5489ad | 616 | cpp | C++ | codeforces/contests/1350/A.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 18 | 2020-08-27T05:27:50.000Z | 2022-03-08T02:56:48.000Z | codeforces/contests/1350/A.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | null | null | null | codeforces/contests/1350/A.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 1 | 2020-10-13T05:23:58.000Z | 2020-10-13T05:23:58.000Z | /*
A. Orac and Factors
https://codeforces.com/contest/1350/problem/A
*/
#include <bits/stdc++.h>
using namespace std;
#define FAST_INP ios_base::sync_with_stdio(false);cin.tie(NULL)
int main()
{
FAST_INP;
int t,n,k;
cin >> t;
while(t--){
cin >> n >> k;
// n is even: n+2k
... | 18.117647 | 64 | 0.420455 | wingkwong |
bd3c935c2bf89dd674fa7ba96d8a0b3211fa61d9 | 11,380 | cpp | C++ | raptor/core/mpi_types.cpp | lukeolson/raptor | 526c88d0801634e6fb41375ae077f2d4aa3241a4 | [
"BSD-2-Clause"
] | 25 | 2017-11-20T21:45:43.000Z | 2019-01-27T15:03:25.000Z | raptor/core/mpi_types.cpp | haoxiangmiao/raptor | 866977b8166e39675a6a1fb883c57b7b9395d32f | [
"BSD-2-Clause"
] | 3 | 2019-12-04T18:18:59.000Z | 2022-03-22T08:27:14.000Z | raptor/core/mpi_types.cpp | haoxiangmiao/raptor | 866977b8166e39675a6a1fb883c57b7b9395d32f | [
"BSD-2-Clause"
] | 5 | 2017-11-20T22:03:57.000Z | 2018-12-05T10:30:22.000Z | bool profile = false;
double collective_t = 0.0;
double p2p_t = 0.0;
double* current_t;
double mat_t = 0.0;
double vec_t = 0.0;
double total_t = 0.0;
double new_comm_t = 0.0;
#include <mpi.h>
#include "mpi_types.hpp"
void init_profile()
{
profile = true;
reset_profile();
}
void reset_profile()
{
collectiv... | 34.277108 | 112 | 0.700527 | lukeolson |
bd417828d00a2349cb5552f64136d93462f78bb0 | 2,233 | cpp | C++ | master_slave.cpp | volatilflerovium/3D-Multithread | a25ad952a57f4268bf56cd83d3d39f26ea16557b | [
"MIT"
] | null | null | null | master_slave.cpp | volatilflerovium/3D-Multithread | a25ad952a57f4268bf56cd83d3d39f26ea16557b | [
"MIT"
] | null | null | null | master_slave.cpp | volatilflerovium/3D-Multithread | a25ad952a57f4268bf56cd83d3d39f26ea16557b | [
"MIT"
] | null | null | null | #include "master_slave.h"
//====================================================================
std::mutex Master::m_controlMutex;
std::mutex Master::m_mtx;
std::unique_lock<mutex> Master::m_ulock=unique_lock<mutex>(m_mtx);
std::condition_variable Master::m_cv;
std::vector<Slave*> Master::m_slaves;
std::vector<std::... | 22.785714 | 72 | 0.461711 | volatilflerovium |
bd455a7b7d36778b9a9352ed2206e6b9a60d52ac | 684 | hpp | C++ | src/skew_tent_generator1.hpp | botezatumihaicatalin/ChaoticImageCrypto | b8f41b159b21a618cec794584ca67a604bdf98ec | [
"MIT"
] | 1 | 2017-06-23T01:52:23.000Z | 2017-06-23T01:52:23.000Z | src/skew_tent_generator1.hpp | botezatumihaicatalin/ChaoticImageCrypto | b8f41b159b21a618cec794584ca67a604bdf98ec | [
"MIT"
] | null | null | null | src/skew_tent_generator1.hpp | botezatumihaicatalin/ChaoticImageCrypto | b8f41b159b21a618cec794584ca67a604bdf98ec | [
"MIT"
] | null | null | null | #pragma once
#pragma once
#include "generator1.hpp"
class skew_tent_generator1 : public generator1 {
protected:
double exponent_;
public:
skew_tent_generator1(const double& start, const double& exponent)
: generator1(start), exponent_(exponent) {}
const double& next() override;
const double& exponent()... | 21.375 | 67 | 0.697368 | botezatumihaicatalin |
bd46707c24371583acbf60a14238cc4e34e1e0ce | 427 | hpp | C++ | interpreter/stack.hpp | XenotriX1337/TRPL-Interpreter | 976962090b2c2d0ade9d02567b83bd643e4ab9d2 | [
"MIT"
] | null | null | null | interpreter/stack.hpp | XenotriX1337/TRPL-Interpreter | 976962090b2c2d0ade9d02567b83bd643e4ab9d2 | [
"MIT"
] | null | null | null | interpreter/stack.hpp | XenotriX1337/TRPL-Interpreter | 976962090b2c2d0ade9d02567b83bd643e4ab9d2 | [
"MIT"
] | null | null | null | #pragma once
#include <map>
#include <stack>
#include "./ast.hpp"
using Frame = std::map<std::string, ast::Expression*>;
using Stack = std::stack<Frame>;
class Storage
{
public:
Storage();
ast::Expression* Get(const std::string& name) const;
void Put(const std::string& name, ast::Expression*);
void Update(co... | 19.409091 | 57 | 0.679157 | XenotriX1337 |
bd46e8f0fe5b418fe751843c4c56768934423d85 | 3,700 | cpp | C++ | src/src/Filters.cpp | AydinyanNarek/OpenCV | 202551bd10cbd66f77e8dc008808cb499be21cc3 | [
"MIT"
] | 1 | 2020-06-22T08:48:51.000Z | 2020-06-22T08:48:51.000Z | src/src/Filters.cpp | AydinyanNarek/OpenCV | 202551bd10cbd66f77e8dc008808cb499be21cc3 | [
"MIT"
] | null | null | null | src/src/Filters.cpp | AydinyanNarek/OpenCV | 202551bd10cbd66f77e8dc008808cb499be21cc3 | [
"MIT"
] | null | null | null | #include "../include/Filters.h"
std::vector<cv::Mat> Filters::overlay(const std::vector<cv::Mat>& background, const std::vector<cv::Mat>& moving, const std::vector<cv::Mat>& mask) {
auto frameNum = std::min(background.size(), moving.size());
std::vector<cv::Mat> output(frameNum);
cv::Mat temp1;
cv::Mat... | 29.6 | 149 | 0.577027 | AydinyanNarek |
bd47cbd87bfc5caf9dd439a90d149e9e2b70c08f | 632 | cpp | C++ | SingletonPattern/main.cpp | coologic/CppDesignPattern | f958610cded28264d0a6f90067e1d2ff3dc70eae | [
"MIT"
] | 63 | 2020-02-21T05:34:04.000Z | 2022-03-18T05:39:53.000Z | SingletonPattern/main.cpp | jhonconal/CppDesignPattern | 79b55b20ffab670d2197be7ee66b4044c5dc965b | [
"MIT"
] | null | null | null | SingletonPattern/main.cpp | jhonconal/CppDesignPattern | 79b55b20ffab670d2197be7ee66b4044c5dc965b | [
"MIT"
] | 26 | 2020-04-01T06:17:29.000Z | 2022-01-11T03:42:26.000Z | #include <cpp11_sigleton.h>
#include <thread>
int main(int argc, char *argv[]) {
std::thread t1(Cpp11Sigleton<TestCpp11Sigleton>::GetInstance);
t1.detach();
std::thread t2(Cpp11Sigleton<TestCpp11Sigleton>::GetInstance);
t2.detach();
std::thread t3(Cpp11Sigleton<TestCpp11Sigleton>::GetInstance);
... | 37.176471 | 66 | 0.72943 | coologic |
bd4a6235402b88e3d97e7297d4dca409875bbb7e | 1,298 | cpp | C++ | src/base/utils/HandleMap.cpp | ysbing/voo | 329d6a72ede6dd5903ca4d824bb3c49a5502f5c3 | [
"Apache-2.0"
] | 56 | 2022-01-29T04:52:27.000Z | 2022-03-31T06:52:15.000Z | src/base/utils/HandleMap.cpp | jumpingfrog0/VOO | af191ece986f997cf98f85016aa7288c323210c3 | [
"Apache-2.0"
] | null | null | null | src/base/utils/HandleMap.cpp | jumpingfrog0/VOO | af191ece986f997cf98f85016aa7288c323210c3 | [
"Apache-2.0"
] | 16 | 2022-01-29T04:52:39.000Z | 2022-03-31T07:48:53.000Z | #include "HandleMap.h"
#include <cassert>
int64_t HandleMap::allocHandle(void *value) {
assert(value != nullptr);
std::lock_guard<std::mutex> locker(m_mutex);
m_nextHandle++;
int64_t handle = m_nextHandle;
assert(handle != 0);
m_map0[value] = handle;
m_map1[handle] = value;
return han... | 23.178571 | 51 | 0.600154 | ysbing |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.