blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25
values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 7 10.5M | extension stringclasses 111
values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0e3114fdfc46ffa0d13c97346800bbda6543771b | 166e5a38b889a8fd6da5b1587c76cfed35df3412 | /73. Set Matrix Zeroes.cpp | 1b3f1d1597aee5b7ef26cada750b1fb642d9813c | [] | no_license | rocky2133/leetcode | b071c71c284ce5cfa8e880bcdaf2a8a3cbb06c39 | 695687f0f1c9389ac3e730c7212e8f0fd88304a0 | refs/heads/master | 2020-08-08T08:04:29.520859 | 2019-11-06T05:08:49 | 2019-11-06T05:08:49 | 213,787,234 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,231 | cpp | 73. Set Matrix Zeroes.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
void setZeroes(vector<vector<int>>& matrix) {
if(matrix.size()<1||matrix[0].size()<1)
return;
int row=-1;
int col=-1;
for(int i=0;i<matrix.size();i++){
for(int j=0;j<matrix[0].size();j++){
if(matrix[i][j]==0){
... |
76f1707e88f327d766bbc3966783a9b998826aad | 4dbb45758447dcfa13c0be21e4749d62588aab70 | /iOS/Classes/Native/mscorlib_System_Resources_ResourceSet3047644174.h | 08c5034b8d5537b1b5d0736b338e3f3ff49fa83f | [
"MIT"
] | permissive | mopsicus/unity-share-plugin-ios-android | 6dd6ccd2fa05c73f0bf5e480a6f2baecb7e7a710 | 3ee99aef36034a1e4d7b156172953f9b4dfa696f | refs/heads/master | 2020-12-25T14:38:03.861759 | 2016-07-19T10:06:04 | 2016-07-19T10:06:04 | 63,676,983 | 12 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,562 | h | mscorlib_System_Resources_ResourceSet3047644174.h | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
// System.Resources.IResourceReader
struct IResourceReader_t2442418644;
// System.Collections.Hashtable
struct Hashtable_t1407064410;
#include "mscorlib_System_Object4170816371.h"
#... |
4e1eb3885e9d9154a43201ad222cb0499a0988e2 | e1700081b3e9fa1c74e6dd903da767a3fdeca7f5 | /libs/post/post2dbirdeye/post2dbirdeyewindowgraphicsview.cpp | dd64cb94cd9fca13665c37a4c666ebfd98ec6b19 | [
"MIT"
] | permissive | i-RIC/prepost-gui | 2fdd727625751e624245c3b9c88ca5aa496674c0 | 8de8a3ef8366adc7d489edcd500a691a44d6fdad | refs/heads/develop_v4 | 2023-08-31T09:10:21.010343 | 2023-08-31T06:54:26 | 2023-08-31T06:54:26 | 67,224,522 | 8 | 12 | MIT | 2023-08-29T23:04:45 | 2016-09-02T13:24:00 | C++ | UTF-8 | C++ | false | false | 165 | cpp | post2dbirdeyewindowgraphicsview.cpp | #include "post2dbirdeyewindowgraphicsview.h"
Post2dBirdEyeWindowGraphicsView::Post2dBirdEyeWindowGraphicsView(QWidget* parent) :
VTK3DGraphicsView(parent)
{}
|
75acec418e23381b334ea2025f85d6f0c50b3560 | dc854dd0754796397fc6a7b22344414f60ce5298 | /nvp_za_nlogn.cpp | f625e41c727fa2a62dac539ba4d16f5566ffd33a | [] | no_license | Ghytro/algo-stuff | f37655baa36366832f03b14b751bcab99ac57ee8 | 0a343a7809cad3c3e5d54124f3936d4ad50610d7 | refs/heads/master | 2023-02-05T18:55:41.347609 | 2020-12-24T18:17:51 | 2020-12-24T18:17:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,021 | cpp | nvp_za_nlogn.cpp | //надо реверс убрать, будет нвп
#include <bits/stdc++.h>
#define ll long long
#define INF 999999999999999
using namespace std;
vector<ll> a;
int main()
{
int n;
cin >> n;
a.resize(n);
for (int i = 0; i < n; i++)
cin >> a[i];
reverse(a.begin(), a.end());
//for (int i = 0; i < n; i++)
... |
3aa98956fd71f801aee16b50317393755dec419a | 44884325255b09ec189d17346e601adabe05795c | /MinimumDepthofBinaryTree/minimum_depth_of_binary_tree.cpp | d16b5c9096495c902a6504cb4905721f1bafb286 | [] | no_license | commandow/LeetCode | 931df5ba6e321026c611ca77651dfd52f5bccae7 | 2b331d44d70782aa77015851c46b843b296e934b | refs/heads/master | 2021-01-25T10:29:19.160843 | 2018-10-06T14:53:53 | 2018-10-06T14:53:53 | 26,391,744 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 809 | cpp | minimum_depth_of_binary_tree.cpp | #include <string>
#include <vector>
#include <list>
#include <iostream>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class Solution {
public:
int minDepth(TreeNode *root) {
if (root == N... |
8c3d6471fc3a07ce4f23ff48903e1d7729f982f9 | 1ed23d4af79d868716d160e2bdf580365d783c27 | /arduino/InteractiveLights/Networking.cpp | a287c123d78ba8421a3a779f11c13828c10e6a53 | [] | no_license | snakemode/matrix-driver | 3ec0529bd412668ce956cf368b56ed2a3d212eb4 | 7eb5f5aabdaaffecd163ec8fead775cda160d097 | refs/heads/main | 2023-03-04T01:23:52.121021 | 2021-02-19T10:41:19 | 2021-02-19T10:41:19 | 314,314,196 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 529 | cpp | Networking.cpp | #if defined(ESP32)
#include <WiFi.h>
#else
#include <ESP8266WiFi.h>
#endif
#include "DataStructures.h"
#include "Networking.h"
auto networking::ensure_wifi_connected(const char* const ssid, const char* const password) -> void
{
if (WiFi.status() == WL_CONNECTED)
{
return;
}
Serial.println(F("Connecting to "))... |
971adac590b09d435a1c1b5351aaf6ee9c806a88 | 6249efbcbfcad8dea47006056711126071c2a744 | /src/EntityContainer.h | 5bc103ff27f25a10d67aabf0cb47fac27d29f5d1 | [] | no_license | Adam-Weesner/Qore | 73c9eb1504a6643cd2b6c37e3aea106ea5b5c2a2 | ef733e687fc8d3afd8f24be5e16afa88e93b90fa | refs/heads/master | 2022-04-10T20:39:23.695019 | 2020-03-16T22:21:55 | 2020-03-16T22:21:55 | 245,252,486 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 621 | h | EntityContainer.h | // Qore Engine written by Adam Weesner @ 2020
#ifndef ENTITYCONTAINER_H
#define ENTITYCONTAINER_H
#include "Entity.h"
#include "Component.h"
#include <vector>
class EntityContainer
{
public:
void ClearData();
void Update(float deltaTime);
void Render();
void AddEntity(Entity* e... |
3503ed00f11b2f9d2894c249b963c9b232f836d7 | 27fd300c2c0cb92b5ce70cf203c1ac35e3f44314 | /oops/p1.cpp | b58b75d7dd54ae424c1b02188234db5a7204c0d2 | [] | no_license | kameshkotwani/cpp | 33f1b011657f1f702013ce2d1556ed19434f118a | 2b0e6a809a4ec3e61c1b6e206eb2c9ac874046c6 | refs/heads/master | 2023-06-25T16:10:44.461292 | 2021-07-27T14:07:34 | 2021-07-27T14:07:34 | 371,575,399 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 527 | cpp | p1.cpp | #include<iostream>
using namespace std;
class Base{
public:
int a;
public:
Base (){}
Base(int a):a(a){}
virtual void print(){
cout<<"Base"<<a<<endl;
}
};
class Derived : public Base{
private:
int b;
public:
Derived(int a,int b):Base(a),b(b){}
void print() override{
cout<<"Derived"<<b<<a<<endl;... |
813db8f760f71c92c8d953e4373fd095348a9278 | ae3cfa4efab640865f49ef41e3c8881b7d83938a | /cs260A4/cs260A4/Math/Math.h | 06df3be1b3c92c99d8118641541d08e0b0745eac | [] | no_license | Yuxuannnnnnnn/CS260A4 | 07b437fb1d6525aa78c82c391b355fa5c76f789b | 5e3193e6878a8539b45845d987b39b9780dd71ea | refs/heads/main | 2023-07-28T08:23:10.236201 | 2021-09-08T13:05:27 | 2021-09-08T13:05:27 | 389,247,740 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 659 | h | Math.h | #pragma once
#include "Vector.h"
#include "Quaternion.h"
#include "Matrix.h"
#include "Color.h"
#include "Transform.h"
#include <math.h>
#include <cmath>
namespace Math
{
const float pi = 3.14159274f;
const float epsilon = 0.001f;
int Clamp(int value, int min, int max);
float Clamp(float value, float min, float... |
d4b95a18ab2d94796d83f86bd36f3cd84e0d7289 | 18cd12ee83f65eacf7f251eb26ce212eac3e073a | /Results/Optimization_2_Area/keypair/syn/systemc/LowMCEnc.cpp | 45b124ca0f0bf0e1a4f9fdff008f14d822eced01 | [] | no_license | ExplosionArt/picnic_keypair_16 | 1578b4c9b547e0ec8bc319911c93649715ee7f98 | 43e49d397b3359a3cd9bb989e3632e09ff2d0f40 | refs/heads/master | 2022-07-27T11:30:40.976465 | 2020-05-20T09:25:48 | 2020-05-20T09:25:48 | 263,677,868 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 78,638 | cpp | LowMCEnc.cpp | // ==============================================================
// RTL generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and OpenCL
// Version: 2019.2
// Copyright (C) 1986-2019 Xilinx, Inc. All Rights Reserved.
//
// ===========================================================
#include "LowMCEnc.h"
#in... |
752af4bccfc9353557666d59bf59cbe4c2e0faaa | f0c08b3ddefc91f1fa342f637b0e947a9a892556 | /branches/develop/calcioIA/Calcio/Logger.cpp | 81e480aebe5af69800e6a774a6a1690d239b9fbd | [] | no_license | BackupTheBerlios/coffeestore-svn | 1db0f60ddb85ccbbdfeb9b3271a687b23e29fc8f | ddee83284fe9875bf0d04e6b7da7a2113e85a040 | refs/heads/master | 2021-01-01T05:30:22.345767 | 2009-10-11T08:55:35 | 2009-10-11T08:55:35 | 40,725,038 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 359 | cpp | Logger.cpp | #include "Logger.h"
#include <iostream>
namespace
{
LoggerWriter* loggerWriter = NULL;
}
LoggerWriter::~LoggerWriter()
{
}
void Logger::setWriter(LoggerWriter& writer)
{
loggerWriter = &writer;
}
Logger::~Logger()
{
if (loggerWriter)
loggerWriter->write(_buffer.str());
}
bool Logger::... |
cca41a60c07db1a4efa236e66a3a9b40b9fdb31e | 21f01f0ea7092df49d5f711ab627dc5628e09d49 | /Direct3D_18/Direct3D_18.v12.v12/cLight_Direction.h | 2d7c3b9160c560ada8364e4fa77b8a5a8337272c | [] | no_license | JangMiKyung/DX2_pf_ver_2 | 9a44384b8334e7a15dc2daa4b757b728ea44a7f2 | f3a919ae2c55a4fbfc1c5805d1070b575d164150 | refs/heads/master | 2020-06-14T03:32:52.045025 | 2016-12-04T02:18:30 | 2016-12-04T02:18:30 | 75,512,650 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 218 | h | cLight_Direction.h | #pragma once
#include "cLight.h"
class cLight_Direction : public cLight
{
public:
cLight_Direction();
~cLight_Direction();
virtual D3DXMATRIXA16 GetLightMatrix() override;
virtual void RenderGizmo() override;
};
|
486553c779e998e19c0181790273dfc934611def | 522539a91ef48465b47394c131899b542d061aac | /random walk/assignments/소스.cpp | 905eae0d537fce47be413c2c94a0694a13f1812e | [] | no_license | minzydal/CPP_Programming | 8b1c0545aecad1e4a6555510d2b8280817815c79 | 228a2aae76dcdf7f3541c91b02007ed672c39559 | refs/heads/master | 2022-01-07T11:49:30.896962 | 2019-05-26T09:39:17 | 2019-05-26T09:39:17 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,202 | cpp | 소스.cpp | #include <iostream>
#include <cstdlib>
#include <ctime>
#define MAX_MOVE 100000 // 최대 이동 한도
#define N 5 // 행과 열
int i, j; //i,j 전역변수로 설정
int check(int tile[][N]); //타일 값이 모두 1이 됐는지 확인하는 변수
using namespace std;
int main(void) {
int tile[N][N] = { {0} }; // 2차원 배열 5x5생성
int x = N / 2, y = N / 2; // 현재... |
b3577ed4b99e5b7aa2116ef8daef0d2078ce1533 | 8458971f93f53ade69c0542d874de02aa8056b00 | /Client/src/lib/Exception.cpp | ca2bf3d17835368f59ead23f43898cb34a16d942 | [] | no_license | mowijo/ExpenseTracker | 736802bfd15763ca171d09acd82cd8abf4a1e1d0 | eefcf180bf741ac49d034a22dd738b6f4af58128 | refs/heads/master | 2021-01-20T21:01:04.004762 | 2016-06-24T06:35:01 | 2016-06-24T06:35:01 | 61,862,249 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,083 | cpp | Exception.cpp | #include "Exception.h"
class ExceptionPrivate
{
public:
QString file;
int line;
QString headline;
QString body;
QString remedy;
};
Exception::Exception()
{
d = new ExceptionPrivate;
}
Exception::~Exception()
{
delete d;
}
void Exception::setFile(const QString &file)
{
d->file = fi... |
ba28cfa3e6fdc8043974cf74aa5d8168a1140ec8 | 09c5e1da26c4805bc98f49b3a76e5ce98ea4a537 | /tests/api/mpi/group/grouptest.cc | 7d05150347a815a7fe9a4579a1da491d4252cd6a | [
"BSD-3-Clause"
] | permissive | sknigh/sst-macro | e711c1c6dd938b964f882c3b0358b5ad4c1edc95 | 63833b12797bf3c4d4e203c96bd8fbc1cb042a7b | refs/heads/master | 2021-01-24T22:14:19.517590 | 2018-05-22T13:48:00 | 2018-05-22T13:48:00 | 58,085,180 | 0 | 0 | null | 2016-05-04T21:28:35 | 2016-05-04T21:28:34 | null | UTF-8 | C++ | false | false | 6,405 | cc | grouptest.cc | /**
Copyright 2009-2018 National Technology and Engineering Solutions of Sandia,
LLC (NTESS). Under the terms of Contract DE-NA-0003525, the U.S. Government
retains certain rights in this software.
Sandia National Laboratories is a multimission laboratory managed and operated
by National Technology and Engineering... |
d034aacd8132a66dc15fac1a6fd850dbba054547 | 35918be245e2857156fd9e646aa53c5757f33573 | /src/include/bms.hpp | b695dee0a9a65c1ee08a0f0f2f42401ac94ddff7 | [] | no_license | YvanMokwinski/WGRID | d795b635f6214d1b07cadea844c426e29c67511c | e35bc0ff51fb65cd13086aae65bb00787818188b | refs/heads/master | 2022-11-12T21:41:20.986032 | 2020-07-08T18:42:28 | 2020-07-08T18:42:28 | 258,705,105 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,534 | hpp | bms.hpp | #pragma once
#include "bms.h"
template<typename T>
wmesh_status_t bms_element_geometry(wmesh_int_t element_,
T*__restrict__ c_);
template<typename T>
wmesh_status_t bms_ordering_vertices(wmesh_int_t element_,
T*__restrict__ c_);
template<typename T>
wmesh_status_t bms_ordering_linear_shape(wmes... |
45837118f8748f75a3367eef231882e78218af0d | b4da4a1d95ccdc1243fd978cb0a9951a64b506ae | /p12.cpp | 904710fd2fae91c0a2dea2e001d2a163077b6e35 | [] | no_license | thehexia/cs1exam2 | 6ef3b275e96f95ac729f7d34b93fe656b943fa2f | 912c1f46303acbcca0c934fba56b05d4ec4d47f8 | refs/heads/master | 2020-12-24T21:12:08.957220 | 2016-04-11T15:27:15 | 2016-04-11T15:27:15 | 55,983,920 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 628 | cpp | p12.cpp | #include <iostream>
using namespace std;
int main()
{
int bignum[7];
int num1 = 0, num2 = 10, result, counter;
for (int i = 0; i < 7; i++)
cin >> bignum[i];
for (; num1 < 7; num1++) {
cout << bignum[num1++] << endl;
counter = bignum[num1]++;
}
// This is the line in error. If you uncomment... |
3010a0d38729ef8c1803260539cb0355c8c9727a | 6d643e93556a7495fc536abc5b869ae4af70d84a | /1045.cpp | f89decedbec1dc2c9f39569dfa09aefd947b5729 | [] | no_license | thdwlsgus0/codeup | e6fc7647ebabf90d1793c3d2a937e1748605b76c | d32a46c675c544af7feee6746144dc5f6ef54678 | refs/heads/master | 2022-03-05T15:09:30.597341 | 2019-09-02T02:00:55 | 2019-09-02T02:00:55 | 118,220,792 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 194 | cpp | 1045.cpp | // codeup 1045 problem //
#include <cstdio>
int main(void)
{
int a,b;
scanf("%d %d", &a, &b);
printf("%d\n%d\n%d\n%d\n%d\n%.2f\n", a+b, a-b, a*b, a/b, a%b,float(a)/float(b));
return 0;
}
|
402b6ab931b9f001529064ebd019f5cb4db9d73b | 9ea624a093561c87e47b822008e35d40a136a953 | /src/OpcUaStackCore/ServiceSet/ReadRequest.cpp | 5dc2e1f97b1d0e3ff0685339ef4308ba813176dd | [
"Apache-2.0"
] | permissive | ASNeG/OpcUaStack | 399828371ed4c128360c710dcd831b41f192f27d | e7c365f006be878dcb588a83af9a0dde49bf2b5a | refs/heads/master | 2023-08-30T16:12:24.823685 | 2022-06-27T21:35:44 | 2022-06-27T21:35:44 | 149,216,768 | 141 | 41 | Apache-2.0 | 2023-08-22T09:10:17 | 2018-09-18T02:25:58 | C++ | UTF-8 | C++ | false | false | 2,430 | cpp | ReadRequest.cpp | /*
Copyright 2015 Kai Huebl (kai@huebl-sgh.de)
Lizenziert gemäß Apache Licence Version 2.0 (die „Lizenz“); Nutzung dieser
Datei nur in Übereinstimmung mit der Lizenz erlaubt.
Eine Kopie der Lizenz erhalten Sie auf http://www.apache.org/licenses/LICENSE-2.0.
Sofern nicht gemäß geltendem Recht vorgeschri... |
16c675cfc899a10721d75a3914823c109bfbeb3c | c547b89ca549234cf2d3536bd4f7530eb83e627f | /src/ART_Version/runtime/mem_map.cc | bad86db2c2c3cba73434af9bd39bb7558dfaf5b0 | [
"NCSA",
"Apache-2.0"
] | permissive | UchihaL/AppSpear | 9c4dbf5bc8d4084a8d678cbb82311a41945a33bc | fd73d19429651fca040bb33822bc222b068791b8 | refs/heads/master | 2021-09-02T06:47:45.766224 | 2017-12-31T06:05:11 | 2017-12-31T06:05:11 | 115,843,307 | 37 | 25 | null | null | null | null | UTF-8 | C++ | false | false | 24,110 | cc | mem_map.cc | /*
* Copyright (C) 2008 The Android Open Source Project
*
* 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 app... |
d2df45f1225e1b73b4ed525eca98cd9d7fc766d8 | 088bbcd6dab4eeb189705a61160157040153ac34 | /447B.cpp | 4ae8d43b1418f3e04cc9cdf57372ea873de3a888 | [] | no_license | pallak8398/Codeforces | b6dae7a1a1cf544a1676a91d32576eac316d78d8 | 35d120175b2bad97da0b3d1fc69521a7aa932274 | refs/heads/main | 2023-06-20T03:28:20.115619 | 2021-07-21T09:35:46 | 2021-07-21T09:35:46 | 385,713,079 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 361 | cpp | 447B.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin>>s;
int k,A[26]={0},max=0;
cin>>k;
for(int i=0;i<26;i++)
{
cin>>A[i];
if(A[i]>=max)
{
max=A[i];
}
}
int ans=0;
for(int i=0;i<s.length();i++)
{
ans+=A[s[i]-'a']*(i+1);
}
for(int i=s.length();i<s.length()+k;i++)
{
ans+=max... |
50448cf740f8569936a5621edfd4473b0022c862 | 14f7a1ca01d35398dc1b3c57a9aa99447bb30fbb | /tests/chrono_timer.cpp | 2b5ae9540cb1b43358b403e588157fbef29f45e6 | [
"BSD-3-Clause"
] | permissive | png85/dsnutil_cpp | dd394d8d7a5927db52717a415aa9e8589ae7f616 | d577fec7c76949ef87b7a001ac638893ca672781 | refs/heads/master | 2021-01-16T18:29:33.824868 | 2016-02-19T21:00:02 | 2016-02-19T21:00:02 | 33,381,597 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,533 | cpp | chrono_timer.cpp | #define BOOST_TEST_MODULE "dsn::chrono::timer"
#include <iostream>
#include <thread>
#include <dsnutil/chrono/timer.hpp>
#include <boost/test/unit_test.hpp>
namespace dsn {
namespace chrono {
std::ostream& operator<<(std::ostream& stream, const timer& t)
{
return stream << "timer(" << static_cast<un... |
e4859655de35ad51ec00d3e7dbef81a9c1cb92a8 | e23bdab2890e5c25a442604d8fec84995a3a75b0 | /src/MonkeyPlayer/Utilities/AlbumTextureManager.cpp | f7225bd23f9be2cdc443d34d5b3123da05601d54 | [] | no_license | mikeallgyer/monkeyplayer | 69bebdf49c5ef149cf56e4dcb41711c2e730275f | 07090dd506a4d7646ee75a3b3478fb8173403f96 | refs/heads/master | 2020-03-26T03:18:58.753459 | 2014-02-14T14:22:33 | 2014-02-14T14:22:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,711 | cpp | AlbumTextureManager.cpp | // AlbumTextureManager.cpp
//
// (C) 2013 Mike Allgyer. All Rights Reserved.
//
// A class for dynamically loading/unloading texture
#include "d3dUtil.h"
#include <vector>
#include <string>
#include "AlbumTextureManager.h"
#include "DatabaseManager.h"
#include "FileManager.h"
#include "Logger.h"
#include "MetadataRe... |
b718973a88371ac4277123a0138b886649c30066 | 120cfe04c3123d6ddf7982c2b53304d41a92635a | /MapleStory/MapleStory/Bitmap_Manager.h | 586c972ceba13b061975bf1678e8537b3ba604cb | [] | no_license | chominju/MapleStory | d5ba0edfda71a8ff29265f0abae0c2de17b2fac7 | be52e4f007a908edd47ceb02650cda8e6244e4e9 | refs/heads/master | 2023-05-15T02:03:54.658221 | 2021-06-03T13:12:09 | 2021-06-03T13:12:09 | 365,113,563 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 654 | h | Bitmap_Manager.h | #pragma once
class CMyBitmap;
class CBitmap_Manager
{
private:
CBitmap_Manager();
~CBitmap_Manager();
public:
static CBitmap_Manager* Get_Instance()
{
if (nullptr == m_instance)
m_instance = new CBitmap_Manager;
return m_instance;
}
static void Destroy_Instance()
{
if (m_instance)
{
delete m_insta... |
64f1272c98c40304a14e17d1e4b40852fae96a6c | c2ebaf489c1932ca852925219c4846377ee23dd0 | /cplusplus/exercise3/temp_conversion_header/conversions.cpp | fd0a53d5c143e09d7bd4246dad2d14c5448c0124 | [] | no_license | edlym96/misc-projects | 0c97be0b0322dd90ea489004a898593b250ee9a7 | e91a79ce91e9ed7a6575e6b8db8227a498c9f131 | refs/heads/master | 2020-06-19T21:33:41.316396 | 2019-08-08T21:37:46 | 2019-08-08T21:37:46 | 196,881,105 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 244 | cpp | conversions.cpp | #include <iostream>
#include"conversions.h"
using namespace std;
double celsius_of(int fahr){
return (static_cast<double>(5)/9) * (fahr-32);
}
double absolute_value_of(int fahr){
return ((static_cast<double>(5)/9)*(fahr-32)) + 273.15;
}
|
61ce9bc5e6a2a8b3720da66a8f62c0eb5e01cb3f | 86fc48ca33f2f155f228bb71a62e0299d8719077 | /Amaya/thotlib/internals/h/AmayaStatsThread.h | 2913ee4763bd2b9fc17ba5f51d8e036a01085365 | [] | no_license | lcarcone/amaya-test | e0af8d73df2f94c8fb338389d4e8ad7d22faae0b | bfdc10e05b1276a4d0d1e468638583b9e1aff97b | refs/heads/master | 2023-04-28T01:40:50.149309 | 2023-04-25T06:44:34 | 2023-04-25T06:44:34 | 4,123,257 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 304 | h | AmayaStatsThread.h | #ifdef _WX
#ifndef __AMAYASTATSTHREAD_H__
#define __AMAYASTATSTHREAD_H__
#include "wx/wx.h"
#include "wx/thread.h"
class AmayaStatsThread : public wxThread
{
public:
AmayaStatsThread();
virtual ~AmayaStatsThread();
void * Entry();
};
#endif // __AMAYASTATSTHREAD_H__
#endif /* #ifdef _WX */
|
8769bd623c0bb042a3de6089a3c6465a786e43e0 | 18ea049501fdaf523daefa4d8fa978385517fa24 | /module2/geometry/D_1.cpp | 13e8e3edd35bc93513921da8be4bcacd228abf21 | [] | no_license | vanka857/Algorithms-DS-3term | 0fb32f9ec1392d0aa3d23cecd4d8a45f31516741 | 7fe43f620093706aff7cd7a63d51ae46db70e7bb | refs/heads/master | 2023-03-23T03:57:36.329025 | 2021-03-12T21:43:19 | 2021-03-12T21:43:19 | 304,012,289 | 0 | 0 | null | 2021-03-12T21:43:20 | 2020-10-14T12:45:28 | C++ | UTF-8 | C++ | false | false | 2,651 | cpp | D_1.cpp | //D1. Возможно глупая ссора
// Ограничение времени 1 секунда
// Ограничение памяти 64Mb
//Ввод стандартный ввод или input.txt
// Вывод стандартный вывод или output.txt
// Арсений опять уснул. И снова на планете Ка-Пэкс без него никак —
// два фермера поссорились из-за того, что их тер... |
a4fdfe90ba52d5452d5353c6b1772f3796be959c | 809f20f852559f3d51fe31f148025ae0dcd18c57 | /layouts/layouts/CPhotoViewer.h | f0d5d4019d77a5b9f9fa86171870e9e89af3fe0a | [] | no_license | fengxinfeng/fxf | a0bc9f46dc8f59744317d41809faff3c3cc7b12c | cb8ae953fa8a1d14f0459b64e76634d31cb98793 | refs/heads/master | 2020-05-22T08:09:27.109086 | 2020-03-22T10:27:12 | 2020-03-22T10:27:12 | 11,965,616 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,506 | h | CPhotoViewer.h | #pragma once
/*
*date: 2020.03.08
*author: fengxinfeng
*/
#include "CSubVBox.h"
#include <vector>
namespace nui {
struct NMedia {
int mediatype; // 0, picture; 1, video
std::wstring imageurl; // image location
std::wstring videourl; // video location
} ;
class CPhotoViewer : p... |
d2f44279c8a98a245539b7a5670ce351a77939a8 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/cpp-qt5/generated/client/OAIComAdobeGraniteTranslationCoreImplTranslationManagerImplProperties.h | be72b64bd4c1bad45a9b71504f8f727110d95da8 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | C++ | false | false | 2,012 | h | OAIComAdobeGraniteTranslationCoreImplTranslationManagerImplProperties.h | /**
* Adobe Experience Manager OSGI config (AEM) API
* Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API
*
* OpenAPI spec version: 1.0.0-pre.0
* Contact: opensource@shinesolutions.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openap... |
dc81a87a151d33d0deaccca37ea2f838e878de57 | 83ceae07344b56496c90d33d0b78cb58b7c56f3e | /VideoEditorApp/convertCode/convertCode/audio_utils.h | 6a39ae7a3a119cc8410f986330efb83c7d2f8e14 | [] | no_license | Romantic-LiXuefeng/VideoEditor | aca2195a0ab9e8e0c48537f715cfae4c7732676f | 925fd839b1f2652586c7a70e21e62200fb269580 | refs/heads/master | 2021-05-13T20:30:17.471243 | 2017-04-08T04:17:53 | 2017-04-08T04:17:53 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,745 | h | audio_utils.h | /*
* audio_utils.h
*
* Created on: 2014年7月16日
* Author: 尚博才
*/
#ifndef AUDIO_UTILS_H_
#define AUDIO_UTILS_H_
#ifdef __ANDROID__
#include <android/log.h>
#else
#include <stdio.h>
#include <assert.h>
#endif
#include <base/f_audio_types.h>
//日志级别默认从1开始,与安卓的枚举类型值可能不对应
//通过自定义F_AUDIO_LOG_L... |
37bc25ffdf97139a4f9d07def20577eb5142e010 | 36077401760f558cb86482ab3bc4ec036b3c6606 | /src/core/node.cpp | 136bb15eb8e4b7c1fa1dd611c00bbc5f31cb48df | [
"Apache-2.0",
"MIT"
] | permissive | binyangvip/smartmouse-simulator | 80d1e392b2ccbf37158fbe7dab40883b49058781 | de212fd4206485b41987587924c5d5c6a59a2bde | refs/heads/master | 2023-03-17T08:02:39.489556 | 2018-11-23T07:44:52 | 2018-11-23T07:44:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 924 | cpp | node.cpp | #include <core/node.h>
namespace ssim {
Node::Node(RowCol row_col) : row_col(row_col) {}
Node::Node(MazeIndex const row, MazeIndex const col) : row_col{row, col} {}
bool Node::operator==(Node const &other) const {
// TODO replace all && || with and or
return Row() == other.Row() and Col() == other.Col();
}
boo... |
261117dc709d6fb5c2cbb0482f0aff78f695a6af | c424714fdd5bd34c4dcd1977cb6814cbdeba9a7a | /src/core/buffer.h | 3b664edf34e54096af85cf78d06a991dbfaec016 | [] | no_license | johndpope/LuisaRender | ea5d1b3678ee4aaf4b1202101c2ce258eca1acda | 7d6bb74a2174c8975c1d0757098a605ba5f8a2d5 | refs/heads/master | 2020-09-04T05:38:48.322807 | 2019-11-04T17:45:34 | 2019-11-04T17:45:34 | 219,668,898 | 1 | 0 | null | 2019-11-05T05:58:45 | 2019-11-05T05:58:44 | null | UTF-8 | C++ | false | false | 1,051 | h | buffer.h | //
// Created by Mike Smith on 2019/10/24.
//
#pragma once
#include <vector>
#include <util/noncopyable.h>
namespace luisa {
enum struct BufferStorageTag {
DEVICE_PRIVATE,
MANAGED
};
class Buffer : util::Noncopyable {
protected:
size_t _capacity;
BufferStorageTag _storage;
public:
Buffer(size... |
2b456db7f6e9b32d6fae68ee6c056943315b2359 | 5d8fdca891885b7d0a165966cef656d931b35dea | /Week 08/findMedian.cpp | 4858214bdf899522a9fb70658d83d2510487c395 | [] | no_license | katrinechow/OSU-CS-161 | 3c8e29e5061230061748c1b3c6f44a9a81e1dd3a | f56214c45e07045071dfbe4c30c97bf63e0c9406 | refs/heads/master | 2020-06-08T16:02:58.755405 | 2019-06-22T17:02:39 | 2019-06-22T17:02:39 | 193,258,615 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 901 | cpp | findMedian.cpp | /*******************************************************************************
** Author: Katrine Chow
** Date: November 8, 2017
** Description: findMedian(int intArray[]. int size)
** This fucntion takes an array of int and the size of the array,
** and return the median of the ar... |
f3757ec737d577b92e69e881b90c4f284f820b84 | d61eab31f4d1aa5f49bcbe60f8fe21894e70da8d | /problems/leetcode/0012.cpp | d533bd9729a3174c48026a375d24e335b4d7246b | [] | no_license | JunrQ/dsa | 204adb18ce28969626a2f8aa5692e58b395a03bb | 4723bf3ada78b56f2e6c456d37adcf96eb5f8941 | refs/heads/master | 2022-12-03T05:28:09.698758 | 2020-08-14T01:10:07 | 2020-08-14T01:10:07 | 173,013,097 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,717 | cpp | 0012.cpp | /**
* 12. 整数转罗马数字
*
* 罗马数字包含以下七种字符: I, V, X, L,C,D 和 M。
*
* 字符 数值
* I 1
* V 5
* X 10
* L 50
* C 100
* D 500
* M 1000
*
* 例如, 罗马数字 2 写做 II ,即为两个并列的 1。12 写做 XII ,即为 X + II 。
* 27 写做 XXVII, 即为 XX + V + II 。
*
... |
271e6e8f6b200e8c7f7c87c25100b69e541f9b76 | c6073b089b98d9ea8410c8ccf9d5471cc54b8af7 | /src/ast.cc | 171699bb258aaa58506fa3282ee6bcb9380ed41e | [
"MIT"
] | permissive | zacklukem/llang | 8562ce7472b5ec865de0441070fe80bf44d9560e | 8538bd0deaabfca40787c709cd5dd32dd62c0c8a | refs/heads/main | 2023-04-07T18:31:15.871149 | 2021-04-12T15:22:58 | 2021-04-12T15:22:58 | 356,061,561 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,043 | cc | ast.cc | #include "ast.hh"
#include <llvm/Support/Casting.h>
using namespace llang;
std::ostream& operator<<(std::ostream& out, const llang::Node& node) {
node.print(out);
return out;
}
std::unique_ptr<Expression> VariableExpr::clone() const {
return std::make_unique<VariableExpr>(state, value);
}
std::unique_ptr<Expr... |
47e11bfcbab0ccbbbf05a09910fa804be5f42aa5 | 9de0cec678bc4a3bec2b4adabef9f39ff5b4afac | /PWGJE/EMCALJetTasks/AliJetTriggerSelectionTask.cxx | a08f8cdc75def03316c96813d09615d2661dba03 | [] | permissive | alisw/AliPhysics | 91bf1bd01ab2af656a25ff10b25e618a63667d3e | 5df28b2b415e78e81273b0d9bf5c1b99feda3348 | refs/heads/master | 2023-08-31T20:41:44.927176 | 2023-08-31T14:51:12 | 2023-08-31T14:51:12 | 61,661,378 | 129 | 1,150 | BSD-3-Clause | 2023-09-14T18:48:45 | 2016-06-21T19:31:29 | C++ | UTF-8 | C++ | false | false | 4,575 | cxx | AliJetTriggerSelectionTask.cxx | // $Id$
//
// Jet trigger selection task.
//
// Author: S.Aiola
#include <TLorentzVector.h>
#include <TMath.h>
#include <TF1.h>
#include "AliVEvent.h"
#include "AliVCluster.h"
#include "AliEmcalJet.h"
#include "AliLog.h"
#include "AliVVZERO.h"
#include "AliESDUtils.h"
#include "AliJetTriggerSelectionTask.h"
ClassIm... |
fbc27e2e6bb60f0d44332732c136a23105701ad6 | 52ee1b432c1a346a3f697427b7ab8dfa4d64fa76 | /include/echo/concept.h | 1561f98c721e712a7f87f133d6b1332ec7a30a00 | [] | no_license | echo-ml/concept | 6db82f7bb0a20aa83e1ff9b8b1960a21d1ea62fb | 2a6fc8e026abd2a3c8c73b6daf32cb1d5b4d6879 | refs/heads/master | 2021-01-22T19:36:22.926642 | 2015-09-14T04:15:28 | 2015-09-14T04:15:28 | 33,091,520 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 312 | h | concept.h | #pragma once
#include <echo/concept/concept.h>
#include <echo/concept/fundamental.h>
#include <echo/concept/allocator.h>
#include <echo/concept/iterator.h>
#include <echo/concept/range.h>
#include <echo/concept/overload.h>
#include <echo/concept/utility.h>
namespace echo {
using echo::concept::uncvref_t;
}
|
890a74a165aa2a8e4e08740bacac993b2cc1d488 | 981c7bba380ef9663906f85aead99163eb612b73 | /MathLib/mathlib.h | 1628020f7c105a1d451b3a30d693ebd332eeb83a | [] | no_license | zvanjak/NonLinearSystemSolver | a561d4b6dd73fb634eb801789c70beba4d39413d | ee42e365d01db6dde04a06c53ca3bfcc65d7db11 | refs/heads/master | 2021-01-10T01:49:21.274897 | 2017-01-03T17:53:57 | 2017-01-03T17:53:57 | 50,660,309 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,281 | h | mathlib.h | #if !defined __MATHLIB_H
#define __MATHLIB_H
#include "calc.h"
#include "complex.h"
#include "geometry.h"
#include "polynom.h"
#include "vector.h"
#include "matrix.h"
#include "DiffSystem.h"
#include "SpecFunc.h"
#include "SparseMatrix.h"
#include "Function.h"
#include "VectorFunction.h"
#include "ODEIntegration.h"
#... |
6553c81422ff8cd81b0497c1f95877d528a7dee2 | 9939aab9b0bd1dcf8f37d4ec315ded474076b322 | /libs/full/naming_base/include/hpx/naming_base/gid_type.hpp | 2be7c5c82f2fa2afde9a27c9d2bee303e8cc19df | [
"BSL-1.0",
"LicenseRef-scancode-free-unknown"
] | permissive | STEllAR-GROUP/hpx | 1068d7c3c4a941c74d9c548d217fb82702053379 | c435525b4631c5028a9cb085fc0d27012adaab8c | refs/heads/master | 2023-08-30T00:46:26.910504 | 2023-08-29T14:59:39 | 2023-08-29T14:59:39 | 4,455,628 | 2,244 | 500 | BSL-1.0 | 2023-09-14T13:54:12 | 2012-05-26T15:02:39 | C++ | UTF-8 | C++ | false | false | 24,907 | hpp | gid_type.hpp | // Copyright (c) 2007-2022 Hartmut Kaiser
// Copyright (c) 2011 Bryce Lelbach
// Copyright (c) 2007 Richard D. Guidry Jr.
//
// SPDX-License-Identifier: BSL-1.0
// 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)
... |
a2b914e94f657dcb735ae87623a45fdfb8bed43c | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/6e/e47e586fa4c51d/main.cpp | d7c2d8fbbee107ffcc1a31ba2ffa9194cdb3f79f | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 327 | cpp | main.cpp | #include <iostream>
namespace N
{
template< typename ...types >
struct X;
template< typename ...types >
std::ostream &
operator << (std::ostream & out, X< types... > const &)
{
return out;
}
} // namespace N
int main()
{
using namespace N;
extern X< float >& x;
std::cout << x << std::endl;
retu... |
385d1b04fda2b607064b08fdc2f1f6b986cb1ad6 | 900ac54ee1b249b52e55504148f14ea2cd964b10 | /Sources/Solver/Mitosis.Solvers/StaticPoleUpdater.h | 1fa2b13cf2518a191fdcb12f668d199a70cf6453 | [
"MIT"
] | permissive | m-krivov/MiCoSi | 1d5bf248bcd7908837aeee3a1fb4c7827d94dd1e | a0f32bacb2e09f23518a5629b4ccc2ca27e67209 | refs/heads/master | 2021-09-10T04:48:53.927491 | 2021-08-27T10:56:34 | 2021-08-27T10:56:34 | 165,875,825 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 474 | h | StaticPoleUpdater.h |
#pragma once
#include "Mitosis.Objects/Interfaces.h"
// Don't moves poles, sets initial position according to config file
class StaticPoleUpdater : public IPoleUpdater
{
public:
virtual void SetInitial(Pole *left, Pole *right, Random::State &state) override;
virtual void MovePoles(Pole *left, Pole *right,... |
45024a26d5f656537b7597a44d88dee3b62848d7 | 1127440c1bbe7d31c6a819956e6156a478b9c3e2 | /Completed/351-400/problem357.cpp | 0d12f65dafcdaaf274fdba08ac3a9639c0a4fe55 | [] | no_license | joshkol1/Project-Euler | 18865356a23d423a1339cc3d3b4ab6594d7ef6df | aa4e11bb80faab35489e13aa19cdfec8056a5957 | refs/heads/main | 2023-06-07T17:17:24.029058 | 2023-06-01T08:40:52 | 2023-06-01T08:40:52 | 237,578,970 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,239 | cpp | problem357.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
const int MAX_VAL = 1E8;
bool prime[MAX_VAL+1];
ll total = 1;
vector<ll> init_filter;
/*
Observations:
(1) Number must contain a factor of 2 (except 1). Otheerwise, we
get odd+odd=even for d+n/d.
(2) ... |
6b24d29594edee2102b38bdc6c335b7a82f036ce | 3b49525f291430a8e66c16c52e4c80cb07444df3 | /map.cpp | 1e7b327d75fad22738bc97c3254a0df01f7fad4c | [] | no_license | bit-hack/raycast | 4a9d0508c3db542b6349c786f10124b273f44026 | ad5bf89eaab8ebbb0d962366de22f9d90811dfbc | refs/heads/master | 2020-07-13T16:34:17.431967 | 2019-10-09T11:46:16 | 2019-10-09T11:46:16 | 205,115,567 | 2 | 1 | null | 2019-09-03T20:03:53 | 2019-08-29T08:21:06 | C++ | UTF-8 | C++ | false | false | 3,003 | cpp | map.cpp | #include <cmath>
#include <algorithm>
#include "map.h"
#include "SDL.h"
map_t map;
void map_t::calcBlockers(void) {
for (size_t y = 0; y < map_h; ++y) {
for (size_t x = 0; x < map_w; ++x) {
// XXX: check ceiling height
// if anything two tiles below us block in that direction
const uint8_t... |
f3723031aaa4b9301397929e4db37c0cd880603d | 474bb820fb472ff350bf032ee502010da0e455cb | /contest/19-04-27/g.cpp | 79d4347e084c48408fa9db42cde761e6dc6d0af5 | [] | no_license | wqrqwerqrw/acm_code | 839b1f3f50abcacec6f83acf3f002a887468b0d7 | 15b90fa1f12b8dca64d751525f9c73509f61328b | refs/heads/master | 2020-05-02T20:02:42.232841 | 2020-02-10T11:59:55 | 2020-02-10T11:59:55 | 178,177,685 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 974 | cpp | g.cpp | /*************************************************************************
> File Name: g.cpp
> Author: Wqr_
> Mail: xueduanwei@126.com
> Created Time: 2019年04月27日 星期六 14时49分26秒
************************************************************************/
#include <iostream>
#include <cstdio>
#include <c... |
e837805a2ea853b239e388c020688d2a1a45c37e | 54c0a68dd87aa2c6e5a27bb61b6aa7ffbad591c0 | /src/SHADERed/UI/CreateItemUI.h | 6411617794c18171614b61c71336fe650911244b | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | stef-levesque/SHADERed | ba253c2a93d6e7f466a6f5a2790ec6be3c90e638 | 5895eea75e9cdc1cd71dc0572513c073db033364 | refs/heads/master | 2022-12-06T04:06:03.770273 | 2020-08-24T01:22:22 | 2020-08-24T01:22:22 | 266,662,800 | 2 | 0 | MIT | 2020-08-24T01:22:23 | 2020-05-25T02:13:33 | null | UTF-8 | C++ | false | false | 895 | h | CreateItemUI.h | #pragma once
#include <SHADERed/Objects/PipelineItem.h>
#include <SHADERed/Objects/ShaderVariable.h>
#include <SHADERed/UI/UIView.h>
namespace ed {
class CreateItemUI : public UIView {
public:
CreateItemUI(GUIManager* ui, InterfaceManager* objects, const std::string& name = "", bool visible = false);
virtual vo... |
5e5f4809aa059a59c6c161cb7832ce7ffea12789 | 2866b528a31d7745ca9c834a93549f15ddab24e0 | /src/agents/zero_agent.h | 40106a1065627e75059c0e409d899a6d4ebb7312 | [
"MIT"
] | permissive | purpleyoung/alphago_zero | e82a9475cd6592eeaf34c1ff71450b0d69725a74 | fed12157e868d4e1f5709962017be4298416174a | refs/heads/master | 2022-07-19T16:00:21.728412 | 2020-05-20T12:36:27 | 2020-05-20T12:36:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,822 | h | zero_agent.h | #ifndef RLGAMES_ZERO_AGENT
#define RLGAMES_ZERO_AGENT
#include <type_alias.h>
#include <dirichlet_distribution.h>
#include <model_base.h>
#include <go_action_encoder.h>
#include <go_zero_encoder.h>
#include <zero_episodic_exp.h>
#include <agent_base.h>
#include <cassert>
#include <array>
#include <algorithm>
#includ... |
cd217d781c2584f72e84fc3c5ba0bf850341314f | 273db14a7c56ce79ba5c1116d2e3dab56f82af9b | /src/reads_merger.cpp | faae6c536f1b2ebce4f4b7248ac805e805c5452a | [] | no_license | SvitlanaLukicheva/FastqFilesHandler | c5a8a5c276bbe2a3cb4a5505d4bcba191ee528e5 | 0e7d8c656d5e9b4cee2e1771caf01c224e37e85b | refs/heads/master | 2023-06-21T11:33:03.977976 | 2021-08-03T12:21:09 | 2021-08-03T12:21:09 | 85,825,927 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,346 | cpp | reads_merger.cpp | #include "reads_merger.hpp"
ReadsMerger::ReadsMerger(list<string> input_files, string output_file)
{
my_input_files = input_files;
my_output_file = output_file;
}
bool ReadsMerger::DoTheJob()
{
bool result = true;
output_formatter.DisplayInfo("Merging the files....");
ofstream output (my_ou... |
4ca4ec686892a798c392228f884b87f1ea5a05ab | b6b1005ad9768bfa06ebdd37df0e5de5df6790ef | /CG_TP/src/button.h | 69633adb8ee200ef4cd9c2a80f23375a0248f5df | [] | no_license | skdus531/CG_Project_Sung-Kil-Kwan | 3c49967f364b32eaab204a981da94e645cc3cb79 | ccb3b9a89af5622e1d93b85030a2c9e60fbf5216 | refs/heads/master | 2022-09-16T22:55:18.293383 | 2020-06-01T14:46:36 | 2020-06-01T14:46:36 | 262,537,641 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,868 | h | button.h | struct button_t
{
vec3 center = vec3(0); // 2D position for translation
float width = 1.0f; // radius
float height = 1.5f;
float theta = 0.0f; // rotation angle
vec3 color; // RGBA color in [0,1]
mat4 model_matrix; // modeling transformation
// public functions
void update(float t);
};
in... |
b43614ef9c08c2a1c5edb7267ace1eca88195399 | 2479189775312ea0903300738c434c19a0fb3dcf | /src/uSendModemMsg/USM_MOOSApp.h | c504cdf38c197c08df11e2e52569886f61f8762d | [] | no_license | ucsb-coast-lab/moos-ivp-ucsb | fff18148334dc506fe5f33d24d4dd95f90cc0b3a | 327ebd5e70e6cc50c644ba474cfcf6cb09dad805 | refs/heads/master | 2023-06-11T06:26:36.893350 | 2021-07-01T21:17:10 | 2021-07-01T21:17:10 | 28,889,859 | 1 | 1 | null | 2019-06-26T18:12:20 | 2015-01-07T00:10:45 | C++ | UTF-8 | C++ | false | false | 1,641 | h | USM_MOOSApp.h | /*==========================================================================
File: USM_MOOSApp.h
Authors: Nick Nidzieko & Sean Gillen
Date: Jan/22/15
Origin: Horn Point Laboratory
Description: Allows users to send modem messages over a WHOI micromodem
needs to be running alongside iWhoiMicroModem, it shoul... |
c19175a1cd7026d44abfe40880375e14efa224d7 | 154dfd2a2130a3a7731a9a9b431e8295fbf82cd2 | /POJ/POJ2187.cpp | 35298e7f3db1fe11d2a7a5d3e72b6eb1c5f13e85 | [] | no_license | ltf0501/Competitive-Programming | 1f898318eaecae14b6e040ffc7e36a9497ee288c | 9660b28d979721f2befcb590182975f10c9b6ac8 | refs/heads/master | 2022-11-20T21:08:45.651706 | 2020-07-23T11:55:05 | 2020-07-23T11:55:05 | 245,600,907 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,186 | cpp | POJ2187.cpp | #include<cstdio>
#include<algorithm>
#include<vector>
using namespace std;
#define ll long long
struct Point
{
ll x,y;
Point(){}
Point(ll _x,ll _y){x=_x,y=_y;}
bool operator < (const Point& rhs)const
{
return x!=rhs.x ? x<rhs.x : y<rhs.y;
}
Point operator + (const Point& rhs)const
{
return Point(x+rhs.x,y... |
492f62da80e0843bfdafd742d0efb769af242384 | 3e35e5a3b7183b1397704e2e0b5ace1ab7d2e0c1 | /ConsoleApplication2/source03-04.cpp | b1d2dc7754c516e8f887c9a9f74e9b33581a742e | [] | no_license | sorcerer0001/ConsoleApplication2 | 9c6bd26ecd3dbb2db4ea79a6fcebcc51261adcc2 | 41c490183cdce06282d0bb51525743fc8263e092 | refs/heads/master | 2021-01-13T02:03:58.916408 | 2015-08-24T03:18:14 | 2015-08-24T03:18:14 | 40,527,302 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 489 | cpp | source03-04.cpp | #include<iostream>
using namespace std;
int sarr[101];
char s[101];
char s_[101];
int main() {
int i, n;
while (cin.getline(s, 101))
{
cout << s << endl;
for (i = 0; s[i]; ++i){
if (s[i]=='(')
{
s_[i]='$';
}
else if (s[i] == ')'){
s_[i]='?';
n = i;
while (n>0)
{
if (s_[n] =... |
0e3eb5b0cf1a38b9cc8adfe977de24d8ec011e4e | e7aeb92b601eb3a5a81fafa78dedb3c1dfce3fe8 | /TParty.h | c2d0cfa45e99e85dedfdc58e6baa379a9871a6c1 | [] | no_license | cryptobiu/MPCHonestMajority | 3c64a64d11b3830e593aff8084b6d2d98ca2f604 | 93eb4604d52ca7b93820f42d48bf62da8816bb69 | refs/heads/master | 2021-03-27T09:29:58.326122 | 2016-11-01T14:33:37 | 2016-11-01T14:33:37 | 86,227,287 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 753 | h | TParty.h | /*
* Party.h
*
* Created on: Aug 16, 2016
* Author: hila
*/
#ifndef PARTY_H_
#define PARTY_H_
#include "TField.h"
#include "HIM.h"
#include "stdio.h"
#include "stdlib.h"
#include <string>
#include "../../workspace/paho/src/MQTTClient.h"
#include <stdio.h>
#include <iostream>
#include <string>
#include <ios... |
93dce6f1df87727fcba0bc3c13e89241d9094ead | d647a0746de08375701ac8aeb6c225c1666b4719 | /reverseNumberUsingLoop.cpp | 933bac3e0878fbe4d1ec733159fb15e24fbe6e0a | [] | no_license | Sabbir67/C-Programing-Problem | f17fa8f2206eedd43b3e261bcc6817c2410f3a1a | aff4d3b3a5265a95cad9508a88ebfd3c53190132 | refs/heads/main | 2023-07-16T03:41:24.008008 | 2021-08-31T14:10:15 | 2021-08-31T14:10:15 | 401,724,501 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 401 | cpp | reverseNumberUsingLoop.cpp | #include <iostream>
using namespace std;
int main()
{
int num , rev;
// User Input
cout<<"Please input a number ";
cin>>num; // num = 1234
// Find reverse Loop
for(rev = 0 ; num > 0 ; num = num/10 ){
rev = rev*10; // 0 ,40, 430 ,4320
rev = rev + num%10; // 4 ,43 , 432 ,4321
... |
85612ca4d6ad7eac6ee3202c1a99603768880456 | 2aed63d9aa027419b797e56b508417789a604a8b | /injector2degHex/case_interFoam_3mm/processor5/0.65/U | a01930def7cd05a2849fa80d1f651b8731d80fd0 | [] | no_license | icl-rocketry/injectorCFDModelling | 70137f1c6574240c7202638c3713102a3e1e9fd8 | 96591cf2cf3cd4cbd64536d8ae47ed8080ed9016 | refs/heads/main | 2023-08-25T03:30:59.244137 | 2021-10-09T21:04:45 | 2021-10-09T21:04:45 | 322,369,673 | 3 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 118,342 | U | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
... | |
a074e3cafbcd12ec7422c17adabde3fc882894a6 | c21b05d2084cfd626a93f085dd530a30ff49ab4e | /src/psmoveservice/Server/ServerRequestHandler.cpp | 07948c79354887a0776aca584e5d96c01d71302b | [
"Apache-2.0"
] | permissive | gb2111/PSMoveService | 956c70d687b2f4100af13ad6f646b8eb7102ff82 | e3ec72420ce70d8237488a2756e87c60226b6015 | refs/heads/master | 2021-01-12T12:51:29.644712 | 2017-12-29T22:12:25 | 2017-12-29T22:12:25 | 69,383,309 | 3 | 0 | Apache-2.0 | 2017-12-29T13:16:48 | 2016-09-27T17:48:14 | Objective-C | UTF-8 | C++ | false | false | 140,949 | cpp | ServerRequestHandler.cpp | //-- includes -----
#include "ServerRequestHandler.h"
#include "BluetoothRequests.h"
#include "BluetoothQueries.h"
#include "ControllerManager.h"
#include "DeviceManager.h"
#include "DeviceEnumerator.h"
#include "MathEigen.h"
#include "HMDManager.h"
#include "MorpheusHMD.h"
#include "VirtualHMD.h"
#include "Orientatio... |
2a770a628cf58a7b6e172d5caf025cd8415484d8 | 96bf8b7dae0ee05731227f259cab94ea6e941e36 | /FactoryMetod/AutomatBullet.h | 5fd3038e48aa7bcdd9b7559f2dbbbb4d9ce2cfed | [] | no_license | PHILOSOF/Patterns | d5d116100e72b164310845148a06d8eecac86a7e | ce72bd543a55a55dd55f0416e03dc5044f39b1d7 | refs/heads/master | 2021-01-22T18:32:55.356636 | 2017-03-22T17:53:04 | 2017-03-22T17:53:04 | 85,088,831 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 283 | h | AutomatBullet.h | #ifndef AUTOMATBULLET_H
#define AUTOMATBULLET_H
#include"AbstractBullet.h"
class AutomatBullet : public AbstractBullet
{
public:
AutomatBullet();
void setLocation(const Point3D&) ;
Point3D getLocation() ;
void setDirection(const Vector3D&) ;
Vector3D getdirection();
};
#endif |
8f786bf57c0849c01452768099e1e6b0b5bd2d90 | 51bdd8c3b70cc8a1315f30c305f585d94c3b265c | /r2016/src/Commands/IntakeBallCommandGroup.h | 1d7621d3edc5bd5cb02068ed01a19316ac72d12c | [] | no_license | GlebSoftware/frc-2016 | cedda87f9c1f73aecdf2b70b5266c5de26c3015d | 48962e035aa5ff461add60682b9ebe40948f4189 | refs/heads/master | 2021-02-09T02:42:12.506150 | 2016-11-30T01:41:08 | 2016-11-30T01:41:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 531 | h | IntakeBallCommandGroup.h | #ifndef IntakeBallCommandGroup_H
#define IntakeBallCommandGroup_H
#include "Commands/CommandGroup.h"
#include "Commands/LowerIntakeCommand.h"
#include "Commands/TurnIntakeOnFwdCommand.h"
#include "Commands/RetractKickerCommand.h"
#include "WPILib.h"
class IntakeBallCommandGroup: public CommandGroup
{
public:
IntakeB... |
72dce9b88e288d119859beabf83fddb057c2a50f | 62e2209233957936490ae628172280e961572895 | /main3d_mpi/main3D2_mpi.cpp | 734b0084c5e80137a0d4d9ad526071f6a92a0912 | [] | no_license | Singyuan/Computational-Astrophysics-Final-Project | a65eedcc1971ef394f03c4a6115b74b971ad4bc5 | 4ab5bcb4729d2dfcbdef81dc08a8a058ca99dc0c | refs/heads/master | 2020-05-20T03:09:53.335601 | 2019-06-13T11:06:56 | 2019-06-13T11:06:56 | 185,351,018 | 2 | 1 | null | 2019-06-06T14:24:42 | 2019-05-07T07:55:34 | C++ | UTF-8 | C++ | false | false | 8,716 | cpp | main3D2_mpi.cpp | #include <iostream>
// #include <stdio.h>
// #include <stdlib.h>
#include <cstdlib>
#include <cstdio>
#include <math.h>
#include <string.h>
// #include <time.h>
#include <fstream> // text
#include <omp.h> // use open mp
#include "ConstPara.h" // constant parameter
#include "matrix3D.h" // omp version
#i... |
42c6767fce5bc67abc4f368cb837848e0248a65f | 1e68a055ef3ad9f522036c73825a5c19c1e5f7ca | /src/rov/robot.h | 1753f088508aeccc2615a1bcf870a3cb252a928a | [] | no_license | leroycep/squeaky-rov | c040d326426c3b914cbce576af31038f03ae9d30 | 2eb7e9ee73da588381582c6b6b0368191879ed00 | refs/heads/master | 2021-05-30T20:02:40.176170 | 2016-04-11T00:08:12 | 2016-04-11T00:08:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 958 | h | robot.h |
#ifndef _ROBOT_H_
#define _ROBOT_H_
#include <Arduino.h>
#include "motor.h"
#include "sensor.h"
#define MAX_MOTORS 9
#define MAX_SENSORS 1
namespace Robot {
class Robot {
static Robot* s_instance;
int stepper_step_pin;
int stepper_dir_pin;
int stepper_enabled_pin;
Motor** motors;
Sensor::Voltage* volta... |
debabcb722d794aceeb7786d7d07852c729d370d | ca5f51c4fecdb3cca7ffc0544c17de0c412086f8 | /Arrays/maximum and minimum/median-of-stream-of-integers.cpp | 570ce6c760e03636683ab0b66ed360d5061540a3 | [] | no_license | avinashw50w/ds_algo | f517bbb326a922258e6ef7816e6c06593a2d06aa | bc73bd617486ab8fcbbdd8a076cacd3761c6c954 | refs/heads/master | 2023-07-22T17:44:44.815336 | 2023-07-13T07:38:22 | 2023-07-13T07:38:22 | 193,303,550 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,761 | cpp | median-of-stream-of-integers.cpp | typedef priority_queue<int> maxHeap; // max heap
typedef priority_queue<int, vector<int>, greater<int>> minHeap; // min heap
void addNumber(int n, maxHeap &leftHeap, minHeap &rightHeap)
{
if(leftHeap.emtpy() || n < leftHeap.top())
leftHeap.push(n);
else
rightHeap.push(n);
}
void rebalance(maxHeap &le... |
5c445283f0982bb8b27604263d5dcb55d7fe0edf | 46fdb8ec69159a66eca4be620618e49edf7f29e8 | /JJongSue/D3/5431/solution.cpp | b9567b55e8d2f3267d68968f129259183ae18900 | [] | no_license | khyun-kim/SW-expert-academy-study-storage | 478c9f85a3cec4b3cfa84481b52a13ebc8ffeec4 | 34b907ddd09c355acf7c9db696f01c89b2d8a1bb | refs/heads/master | 2020-05-01T15:12:31.734700 | 2019-09-09T02:24:49 | 2019-09-09T02:24:49 | 177,540,951 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 654 | cpp | solution.cpp | #include <iostream>
#include <vector>
using namespace std;
int main(void)
{
int testcase_num = 0;
scanf("%d", &testcase_num);
for(int testcase_i=1;testcase_i<=testcase_num;testcase_i++)
{
int N=0, K=0;
scanf("%d %d", &N, &K);
vector<bool> homework(N, false);
for(int i=0;... |
930558dbb8658c815a646d68ef2dc3020f8a6740 | f771479669de99f5d15f1856cafaed0be4241b8a | /source/General/Entity/SEntity.cpp | 44fba8ab9416c2f95e06803a44cdeeafd547dde9 | [] | no_license | attack51/SweetEngine | 59610aa066689c0c924b4a158e049bd3631c308d | 94352bb2c25803e3755f647377ec14af4dc85a01 | refs/heads/master | 2020-05-17T18:28:30.311920 | 2019-07-03T00:40:09 | 2019-07-03T00:40:09 | 183,884,470 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,316 | cpp | SEntity.cpp | //General Include
#include "General/SInclude.h"
//Header Include
#include "SEntity.h"
SEntity::SEntity()
{
}
SEntity::~SEntity()
{
Destroy();
}
void SEntity::Destroy()
{
RemoveParent();
}
void SEntity::SetParent(SEntity* parent)
{
RemoveParent();
if (parent)
{
m_parent = SEntitySPtr(... |
867521f09b476750413c25694ca2183d0aa0227e | c1d7a2de68d4e4ad50e4684396d744d24affefde | /win_game/Types/Stack.h | d9a1afff11740f46fd5e9439fb3dd474aa35c496 | [] | no_license | dzoidx/Vulkan-UI-Editor | aad235b280a5ed822c52b3c2469bce23e266c8b0 | 59df698a191dade1ea6f4bd558a387d526ecabb5 | refs/heads/main | 2023-07-31T01:58:50.993495 | 2021-09-08T07:37:40 | 2021-09-08T07:38:15 | 404,239,889 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,075 | h | Stack.h | #pragma once
#include "Types.h"
template<typename T>
class Stack
{
public:
Stack() :Stack(0) {}
Stack(int32 initialCap) : top_(-1), capacity_(0), data_(0), default_()
{
if (initialCap > 0)
EnsureSize(initialCap);
}
~Stack()
{
MemoryManager::Instance()->Free(data_, capacity_);
}
T& Peek()
{
if (top_ ... |
b3a6083e081c57e4faece7df88c67e2afd09969c | a33aac97878b2cb15677be26e308cbc46e2862d2 | /program_data/PKU_raw/99/1065.c | 0a66622d856848208c3380a803cf8431cb0096b1 | [] | no_license | GabeOchieng/ggnn.tensorflow | f5d7d0bca52258336fc12c9de6ae38223f28f786 | 7c62c0e8427bea6c8bec2cebf157b6f1ea70a213 | refs/heads/master | 2022-05-30T11:17:42.278048 | 2020-05-02T11:33:31 | 2020-05-02T11:33:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 420 | c | 1065.c | int main(){
int n,a,i;
double b,c,d,e;
scanf("%d",&n);
b=0;
c=0;
d=0;
e=0;
for(i=1;i<=n;i++){
scanf("%d",&a);
if(a<=18){
b=b+1;
}
else if (a>=19&&a<=35){
c=c+1;}
else if(a>=36&&a<=60){
d=d+1;}
else {
e=e+1;}
}
b=((double)b/n)*100;
c=((double)c/n)*100;
d=((double)d/n)*100;
e=((double)e/n)*100;
... |
86fcd57eb73ed152d56396150e5b29a0cd657587 | f220418683fb5f270e3f1ce40d69e5390ff4e912 | /paddle/fluid/operators/yolov3_loss_op.cc | 60508f7ab871910c38f1e4aa04c2035075d37df5 | [
"Apache-2.0"
] | permissive | wanghaoshuang/Paddle | dd36299360f44865147889249d95f49a160f689f | 8c19599bc640f51b279d95054bbd5eccde210c0c | refs/heads/slim | 2023-03-09T06:24:54.702479 | 2019-02-25T15:36:35 | 2019-02-25T15:36:35 | 91,771,236 | 3 | 3 | Apache-2.0 | 2019-03-12T05:12:23 | 2017-05-19T06:05:49 | C++ | UTF-8 | C++ | false | false | 9,880 | cc | yolov3_loss_op.cc | /* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve.
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... |
3e037a7b6dba3323d73225300ad9cb2fc3421ead | 9af5945a855c697d40bba15cbedc8f513011532f | /hfs/perturbations.hpp | 2efedb85e7e2a343c55a295249847b25ebc1fb25 | [] | no_license | arturfb/FSSolver | 239c5693a466611a95ade2255661ab3da4e064e3 | 86ef58a9d0459d0b3ec0331e139bf23658fa8a84 | refs/heads/master | 2023-08-27T12:21:46.331727 | 2021-10-11T01:33:00 | 2021-10-11T01:33:00 | 285,350,707 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,410 | hpp | perturbations.hpp | /*
* Copyright (c) 2020 Marcus Ritt, Artur Brum
*
* Permission is hereby granted, free of charge, to any person (the "Person")
* obtaining a copy of this software and associated documentation files (the
* "Software"), to deal in the Software, including the rights to use, copy, modify,
* merge, publish, distribute the S... |
53ade48d9bb0962fb45d74d0c958356baf6c2020 | 64df0cf973b765fdbefebaf60a4327ddb0c4f93c | /examples/stroke/stroke_data.h | e206ef89953254063871bb8c2651be8560de616a | [] | no_license | coroner4817/tinygl | 41ee6af3ac99e6fe1670a71c34b0f3f01f7a5f07 | 43764321dda4aa5a3b68e6cc8ad3fbd26a3faa4e | refs/heads/master | 2023-02-10T01:04:08.065201 | 2020-07-21T20:01:16 | 2020-09-10T11:47:43 | 276,023,454 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,857 | h | stroke_data.h | #pragma once
#include "tinygl/common.h"
std::vector<glm::vec3> test_stroke1 = {
{-0.303165, -0.001507, 0.085891},
{-0.296921, 0.007712, 0.082226},
{-0.289813, 0.015978, 0.078059},
{-0.280842, 0.025214, 0.073351},
{-0.271236, 0.035341, 0.069314},
{-0.254088, 0.048873, 0.063034},
{-0.244863, 0.054639, 0.0... |
9b680d45a23739ed62d5f19d396aff27705ad38a | 07fe910f4a2c7d14e67db40ab88a8c91d9406857 | /game/mga/addons/Model_Intelligence/ConnectionPoint_Method.cpp | a86f9fbe77b7bdd35b4e1f2272483e6cf8b851b5 | [] | no_license | SEDS/GAME | e6d7f7a8bb034e421842007614d306b3a6321fde | 3e4621298624b9189b5b6b43ff002306fde23f08 | refs/heads/master | 2021-03-12T23:27:39.115003 | 2015-09-22T15:05:33 | 2015-09-22T15:05:33 | 20,278,561 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,401 | cpp | ConnectionPoint_Method.cpp | // $Id$
#include "StdAfx.h"
#include "ConnectionPoint_Method.h"
#include "Connection.h"
#include "Object_Value.h"
//
// Default Constructor
//
ConnectionPoint_Method::ConnectionPoint_Method (std::string & role)
: role_ (role)
{
}
//
// Destructor
//
ConnectionPoint_Method::~ConnectionPoint_Method... |
d7721c4f166357889c624a0ce7080c9597b4c3b4 | f84344c4f667804f27e559a1e92b28b00a8a22e9 | /Database Implementation/C++/ibtree/tree/PLIDB.cc | 49efd3fade81cd8fbe69d935a68b36d88829fd01 | [] | no_license | TonHai1111/DB_Implementation | 27f79f0858767ba8ced4d460d1e9f7481968ae8b | 5a1057f2b178bc9b3337cbbfb585c5af496f47d9 | refs/heads/main | 2023-06-15T21:24:16.175190 | 2021-05-07T20:34:46 | 2021-05-07T20:34:46 | 354,896,195 | 0 | 0 | null | 2021-05-07T20:34:46 | 2021-04-05T16:20:32 | Python | UTF-8 | C++ | false | false | 5,627 | cc | PLIDB.cc | #if defined(_WIN32) || defined(_WIN64)
//It includes this library when the application runs on a windows operating system.
#include <windows.h>
#endif
#include "PLIDB.h"
constexpr unsigned int hash(const char *s, int off = 0) {
return !s[off] ? 5381 : (hash(s, off + 1) * 33) ^ s[off];
}
//This functi... |
16058ae9eeec712f11027d3d5b27024ed50793cb | c4525cc972e0649ae2f27cda58391d1d952dc538 | /src/widget/label.cpp | d304455dbbe28138ca3c1377fed48806d799ddfd | [
"MIT"
] | permissive | thknepper/CPPurses | c32aa3e50dc548c8b24efd01218e0a4ea39c1cf3 | 342a389746b3efa8eac339d110ad6aeb0423b9db | refs/heads/master | 2020-12-26T05:04:35.436005 | 2019-11-28T05:22:17 | 2019-11-28T05:22:17 | 237,393,602 | 1 | 0 | MIT | 2020-01-31T08:58:47 | 2020-01-31T08:58:47 | null | UTF-8 | C++ | false | false | 373 | cpp | label.cpp | #include <cppurses/widget/widgets/label.hpp>
#include <utility>
#include <cppurses/painter/glyph_string.hpp>
#include <cppurses/widget/widgets/text_display.hpp>
namespace cppurses {
Label::Label(Glyph_string text) : Text_display{std::move(text)} {
this->set_name("Label");
this->height_policy.fixed(1);
t... |
2eb416d1138621a0fd03f86dbb3cc8c62e3fcdc6 | 641d206fca37ef4739468ce5a12759e7c6e1fb1e | /cpp/simulation.cpp | e55f07467d899a424429ac00bb8b43c3bd79677c | [] | no_license | herobd/thesis-code | 423cb1514ba790b562cb0b9697efb8dc78f6ddbd | 83f8bac332d3e7b1b89b8c6782339439bf022ae6 | refs/heads/master | 2021-04-15T15:56:56.732979 | 2018-03-02T23:46:25 | 2018-03-02T23:46:25 | 53,702,809 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,315 | cpp | simulation.cpp | #include <atomic>
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "Simulator.h"
#include "CATTSS.h"
#include "CTCWrapper.h"
using namespace std;
using namespace cv;
void controlLoop(CATTSS* cattss, atomic_bool* cont)
{
while(1)
{
cout<<"CONTROL:"<<endl<<": quit"<<end... |
41feb9a02f8765f3f327d34dda4954dc7d4d0f2f | 5bcfd299db34189ceae6bf5cda00677fc5dced34 | /leetcode/clang/129. 求根到叶子节点数字之和.cpp | d1fc00c68c7f11524bcb31dcb4cc48630f2ec760 | [] | no_license | aidandan/algorithm | 40617151cbffb2279aabe4bdbc57a34ac6f722de | b29cca383654324c4004c6f5fc5ca358f3d51a92 | refs/heads/master | 2023-01-05T00:31:58.006399 | 2020-11-04T13:22:43 | 2020-11-04T13:22:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,361 | cpp | 129. 求根到叶子节点数字之和.cpp | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
struct TreeNode {
int val;
struct TreeNode *left;
struct TreeNode *right;
};
int dfs(struct TreeNode* root, int base)
{
if (root == NULL) {
return 0;
} else {
int value = base * 10 + root->val;
int left = dfs(root->left, value);
... |
abec3155ce857c86a309258d76f5c0fc6a7475cf | 5722258ec3ce781cd5ec13e125d71064a67c41d4 | /javafx/beans/value/ObservableValueProxyForward.h | 6ff2ae44625865b08c312af02f4fac4a0fcb97dc | [] | no_license | ISTE-SQA/HamsterJNIPP | 7312ef3e37c157b8656aa10f122cbdb510d53c2f | b29096d0baa9d93ec0aa21391b5a11b154928940 | refs/heads/master | 2022-03-19T11:27:03.765328 | 2019-10-24T15:06:26 | 2019-10-24T15:06:26 | 216,854,309 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 230 | h | ObservableValueProxyForward.h | #ifndef __javafx_beans_value_ObservableValueProxyForward_H
#define __javafx_beans_value_ObservableValueProxyForward_H
namespace javafx
{
namespace beans
{
namespace value
{
class ObservableValueProxy;
}
}
}
#endif
|
b4638d092041cadf0bb241ae8d6e86ec5736e060 | 9fd1474f516c819c60d5fb55e46d8496d07b8400 | /Project06/driver.h | 1e89f92f2fd42b3ee9a69f31c91cc1fdacc1a8c2 | [] | no_license | Haskiez/CS-1410 | d323d08508e38c904159c2f27bc1365b1a02b6b9 | 629cc16fe1935f7e1d83ea7b863a8c81dbbdc55b | refs/heads/master | 2020-06-14T17:47:58.663454 | 2016-12-08T04:53:52 | 2016-12-08T04:53:52 | 75,348,959 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 668 | h | driver.h | // Course: CS 1410
// Instructor: Professor Wagstaff
// File: project06.cpp
// Contents: Project #6 Programming Assignment
// I declare that the following source code was written
// solely by me, or provided by the instructor.
// I understand that copying any source
// code, in whole or in part, constitutes cheating, ... |
0c071427768453437fa96e6ecdc8c7b794042af2 | ffbb2f0a6bc6537aa0446cd007207d699ae9ed0a | /InfinitySequence2/InfinitySequence2.cc | fd6b044ace14bb878d97d0abf9be722e859ee224 | [] | no_license | jaeho9929/algorithm | 633cdcef1ccbee823f728fccfbcbeb2a727d54d9 | 6ed579a8357b930b1780d940aec7c39b55b25ed7 | refs/heads/master | 2021-05-14T16:07:11.860948 | 2018-02-21T04:10:14 | 2018-02-21T04:10:31 | 116,011,796 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,757 | cc | InfinitySequence2.cc | #include <iostream>
#include <cstdlib>
#include <cstring>
#include <vector>
#include <queue>
#include <map>
#include <algorithm>
#include <string>
#include <random>
#include <chrono>
#include <cassert>
#include <limits.h>
using namespace std;
#define __MESSAGE(s) \
std::cout << s << std::endl;
#define __TIMEM... |
6ae29292f75af066f26f00caecb5df1ba5fe7694 | bf7d4b738d2f33eb4059eeef948abbeb7bcdd442 | /DeepMimicCore/scenes/SceneHeadingAMPGetup.h | 018e02eea08c923b0a76a6bbda1855ced7de286a | [
"MIT"
] | permissive | NTForked-ML/DeepMimic | 83043000a3cc2c8b747abba2c3e4ea55e574851b | 70e7c6b22b775bb9342d4e15e6ef0bd91a55c6c0 | refs/heads/master | 2022-05-29T02:05:23.939269 | 2022-04-30T17:36:51 | 2022-04-30T17:36:51 | 242,036,191 | 0 | 0 | MIT | 2022-04-30T21:52:54 | 2020-02-21T02:22:39 | C++ | UTF-8 | C++ | false | false | 1,777 | h | SceneHeadingAMPGetup.h | #pragma once
#include "scenes/SceneHeadingAMP.h"
class cSceneHeadingAMPGetup : virtual public cSceneHeadingAMP
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
cSceneHeadingAMPGetup();
virtual ~cSceneHeadingAMPGetup();
virtual void ParseArgs(const std::shared_ptr<cArgParser>& parser);
virtual void Init();
virtual vo... |
e61b62f4b24b8899750f202bd06a758e255c624f | e5091c3a8477fa12e1adfdb1f3d826eb6e9bb2be | /UVa/money_matters.cpp | 3117b4d8de73e8eef33ef1932ed24387e3addd86 | [] | no_license | leonardoAnjos16/Competitive-Programming | 1db3793bfaa7b16fc9a2854c502b788a47f1bbe1 | 4c9390da44b2fa3c9ec4298783bfb3258b34574d | refs/heads/master | 2023-08-14T02:25:31.178582 | 2023-08-06T06:54:52 | 2023-08-06T06:54:52 | 230,381,501 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,770 | cpp | money_matters.cpp | #include <bits/stdc++.h>
using namespace std;
class UnionFind {
private:
vector<int> ds, rank;
int num_vertices;
public:
UnionFind(int num_vertices) {
ds.reserve(num_vertices);
rank.assign(num_vertices, 0);
for (int i = 0; i < num_verti... |
f84a5d67d6b2f085440006174c241bf11e8e194d | 22cc83be4eeaf57399a92c7039bc441edd178a67 | /src/additional/particle_information_profiler.cpp | 12de0ec3ec0865b4a394714ade4fa8bbaed1ee14 | [
"WTFPL"
] | permissive | dearshuto/ParticleBasedSimulation | 0703c12df4c266b267dd6e470fb04abb72f93d64 | 75f7f7454e39f8ed4b970a94d261385cb03b3e15 | refs/heads/master | 2022-03-03T20:57:29.036506 | 2017-02-10T02:55:33 | 2017-02-10T02:55:33 | 78,620,264 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 209 | cpp | particle_information_profiler.cpp | //
// particle_information_profiler.cpp
// CubicFineParticleSimulation
//
// Created by Shuto Shikama on 2016/12/13.
//
//
#include "particle_based_simulation/additional/particle_information_profiler.hpp"
|
9ba8c980a059feafdaef43cb3cb9f438c6dd9bb7 | 386fad5de6b1a6a9e5557947bd1aeffda8821656 | /ZeroJudge/D237.cpp | b370c6cdfde4d8f8471e28ba70436f8fe25a55a7 | [] | no_license | xxyyzz/Competitive-Programming_Solutions | 6c1f06232ab63f85d913bdd27a90eff892bfe18d | cca393f4330e784eb0f9edb44df290adc105ce3b | refs/heads/master | 2021-06-02T13:33:48.530485 | 2016-09-25T14:15:37 | 2016-09-25T14:15:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 431 | cpp | D237.cpp | /*
#include<iostream>
#include<math.h>
#include<fstream>
using namespace std;
int main(){
long long int c=2;
for(int i=3;i<2000000;i+=2)
{
bool prime=true;
for(int j=2;j<=sqrt(i);j++){ if(i%j==0){prime=false;break;} }
if(prime)c+=i;
}
ofstream o("output.txt");
... |
c9e4f831cc8b302b96887c5a45697a2ea9cb6d7c | f9022882fe627e3bf32eb7efc556a903477a0418 | /PmacThreadTest/pmacthreadtest.h | 1c1ad741950e86b7950e21a6f90d5e6756580702 | [] | no_license | dfy9983/PmacThreadTest | 57bcf7ea4cfb41ed8133e7c365f3e84fd4ba90e2 | 045c3762063d29edd83a150f4296b5664054e80e | refs/heads/master | 2023-04-17T21:05:29.212722 | 2021-05-10T13:23:55 | 2021-05-10T13:23:55 | 359,375,804 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 513 | h | pmacthreadtest.h | #pragma once
#include <QtWidgets/QMainWindow>
#include "ui_pmacthreadtest.h"
#include "PmacThread.h"
class PmacThreadTest : public QMainWindow
{
Q_OBJECT
public:
PmacThreadTest(QWidget *parent = Q_NULLPTR);
private slots:
void on_getMotorDispBtn_clicked();
void on_startThread_clicked();
signals:
void sig_g... |
e070807e20acf3e3bfa35f1a04b065c2c3fde7ce | c515605c34200f8a58a7e4c0dcf9daa394e4839a | /project3/globals.cpp | 28162b4f60ef8f4516315089ba9b150b47a35a68 | [] | no_license | tungfang/EE-474-Intro-Embedded-Systems | 4cfb68adebd0c4e973bc8cbea154dbd8525bc649 | d5c7bd737cb69ffb0493377a5660d1fe5bb22528 | refs/heads/master | 2020-05-05T09:55:23.731635 | 2019-12-01T03:40:27 | 2019-12-01T03:40:27 | 179,923,276 | 0 | 0 | null | 2019-05-23T00:17:04 | 2019-04-07T05:44:02 | C | UTF-8 | C++ | false | false | 2,994 | cpp | globals.cpp | #include <iostream>
#include "globals.h"
#include "MeasureSubsystem.h"
#include "ComputeSubsystem.h"
#include "DisplaySubsystem.h"
#include "StatusSubsystem.h"
#include "WarningSubsystem.h"
#include "KeypadSubsystem.h"
using namespace std;
int main()
{
cout << "Hello world!";
init();
return 0;
}
void in... |
2a9a14a3d05ed88f183a23f7375c78b431142da7 | 6c56ce8250b9d5b929b0cac18d653577772e8059 | /vdf/JobTrace.cpp | 80ac75069c920763cef5351968236e35803bee47 | [
"Apache-2.0"
] | permissive | CARV-ICS-FORTH/vine_talk | c7a58c63cb6171f8e9742aba49cb08a8f52a0b11 | f2e8b29e46618e64e11139f7701a8297d433c651 | refs/heads/master | 2021-10-16T06:36:13.457217 | 2019-02-08T16:40:51 | 2019-02-08T16:40:51 | 118,891,477 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,440 | cpp | JobTrace.cpp | /*
* Copyright 2018 Foundation for Research and Technology - Hellas
*
* 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 [1] [1]
*
* Unless... |
974a71aefd28bf934cbd272ef1fa6d2a951ad770 | c5f94883c66644e613d76b06c46c5d019d8e7c01 | /transport/security/encryp_handler.cc | cb620ea6403772d4b4fb040c58f59fc5a61cd1cb | [
"MIT"
] | permissive | bingo787/transport2.0 | 47f80c91640b7416e70acf4be0e864feedddbaf4 | c82057db7050d768e105adbbc63af8b3e38b1668 | refs/heads/master | 2022-04-08T08:54:04.567008 | 2020-02-24T03:59:22 | 2020-02-24T03:59:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29 | cc | encryp_handler.cc |
#include "encryp_handler.h"
|
72a837af0dae5eb21ea81f72378c263bf58430d6 | 8df98e2d7fc51a735a75058e8609b1a9fe794dcb | /code45.cpp | 406187ab0462bbac407304a783defb8b3bf31688 | [] | no_license | SayedBhuyan/CPlusPlus_Midterm_MDC | debc332d3d996ae249e878815486d16385d708a9 | b04e9fabf6b331204db71a6f47bddd17703d271b | refs/heads/master | 2021-05-19T17:50:36.290059 | 2020-04-01T02:39:34 | 2020-04-01T02:39:34 | 252,053,701 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 688 | cpp | code45.cpp | /*
Author: Sayed Bhuyan
Exercise: 45
Description: Write a loop that reads positive integers from standard input, printing out those values that are even, separating them with spaces, and that terminates when it reads an integer that is not positive. Declare any variables that are needed.
*/
#include <iostream>
#include... |
7dcf1e703842fe7e2406fda83208729406a836e4 | c1bb8a5a19e8bb6a62a63ac5ae64acc5ae1673eb | /src/util/FileUtil.h | 01b38564a1a3586b54e786cc200d399ac1e581bb | [] | no_license | dedeibel/annoyme | ed1a5cb0c1924773072c5d38e4e236f0b2517ba6 | d1483f6ef2dd7bfd851f67a12154eaae08ab7a14 | refs/heads/master | 2020-05-06T12:19:19.102372 | 2013-02-12T10:12:36 | 2013-02-12T10:12:36 | 57,476 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,252 | h | FileUtil.h | /*
* Copyright (c) 2008, Benjamin Peter <BenjaminPeter@arcor.de>
* 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
* ... |
ac5ce6f9ed6f8ccef6451bfa7ed4e207d4e70eae | 38026f4db0061d71a428d3619351408d7b8a586c | /Source/gui/p4api/Cmd_PrepEdit.h | 1e1b948178588ac7c8f46cd255f89ccb64c571a5 | [
"BSD-2-Clause"
] | permissive | gorlak/P4Win | dc0f69693babe829edafc8a02d1799066b2a179e | 6986535bd9e5b0f297cacbc8ad112bb6d49a5ed3 | refs/heads/master | 2021-08-20T06:14:18.135928 | 2021-06-05T23:48:20 | 2021-06-05T23:48:20 | 89,386,061 | 11 | 4 | NOASSERTION | 2021-03-03T05:13:59 | 2017-04-25T17:03:50 | C++ | UTF-8 | C++ | false | false | 585 | h | Cmd_PrepEdit.h | //
// Copyright 1997 Nicholas J. Irias. All rights reserved.
//
//
// Cmd_PrepEdit.h
//
//
#include "P4Command.h"
class CCmd_PrepEdit : public CP4Command
{
// Construction
public:
CCmd_PrepEdit(CGuiClient *client=NULL);
DECLARE_DYNCREATE(CCmd_PrepEdit)
BOOL Run(LPCTSTR filespec, BOOL getHead, BO... |
7f30c48526144110274c6d4c9379f4d84f515a0f | adda2aeef1f506044e622753a9e1d986f34fde0d | /VDetector.cpp | e4f0b1d33d08a51ca7e28dd4939845d9e8a56c24 | [
"Apache-2.0"
] | permissive | YaniBion/nest | f163dff91d5e99cac90cbf12e3a3089875a02dcb | 1bd3d70a3030a96283051ca89c8898a92014f92d | refs/heads/master | 2020-05-07T09:11:24.135157 | 2019-01-13T16:14:32 | 2019-01-13T16:14:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,014 | cpp | VDetector.cpp | //
// VDetector.cpp
//
// Adapted from Quentin Riffard by Jacob Cutter, May 8, 2018
// *********************************************************************
// THIS DEFAULT VIRTUAL DETECTOR SHOULD ONLY BE MODIFIED BY DEVELOPERS.
// PLEASE DEFINE YOUR OWN DETECTOR (see DetectorExample_XENON10.hh).
// ******************... |
97cc61bb07368cae8cc0861fd123eea55729245d | 08663c89313bec35b3f2debb8045ea74f76a383a | /dataMip.h | 7100b4eec565b95efbc60ac42aa3e6021eb77bc0 | [] | no_license | cmadrid1/MakingHcalPulseShapes | b5e59e54eef51f6ff59e8f235e18d7fd3c9b6152 | 95ceb23d4fa729eed2b25bc29a37895f543d7fd2 | refs/heads/master | 2021-08-19T08:35:38.678528 | 2017-11-25T14:40:14 | 2017-11-25T14:40:14 | 106,330,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,858 | h | dataMip.h | #include <vector>
#include <map>
#include <tuple>
std::vector<std::vector<double>> cmsNote = {{0+0.921,0},{1.828+0.921, 0.112159}, {2.856+0.921, 0.223144}, {3.883+0.921, 0.334129}, {4.644+0.921, 0.449769}, {5.673+0.921, 0.556126}, {6.168+0.921, 0.671787}, {7.196+0.921, 0.782772}, {8.755+0.921, 0.88908}, {10.579+0.921... |
90f5c5b2ee73ab33d11224a60dba5da4fc40b591 | 9fd9b59df6f8f11ca5e52e51db2dbcfa9fc3fd2a | /include/pstl/internal/unseq_backend_simd.h | 4ee09ebf2fb200e4a4cda2bb3a30e14146a448bf | [
"Apache-2.0"
] | permissive | rodgert/parallelstl | c188710712e674bc14a60f0cd4c531122fbc6cee | edce9abf40db9b4d929b6f2629aecf85eef9ac0e | refs/heads/master | 2020-03-21T16:36:36.607556 | 2018-06-28T19:06:52 | 2018-06-28T19:06:52 | 118,273,733 | 0 | 1 | Apache-2.0 | 2018-05-31T15:33:08 | 2018-01-20T19:25:41 | C++ | UTF-8 | C++ | false | false | 18,330 | h | unseq_backend_simd.h | /*
Copyright (c) 2017-2018 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://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... |
9589f920b5de9cf071770905ea113c68395ec61d | 8a5286e8c3a5cda1a357a5014d5c5ce748695c64 | /src/test/swipe_prediction_test.cpp | 9dfc8ec229305a12196cf4e47d5542abba6e6685 | [] | no_license | julesmps/keyboard-swiping | b389230c7df7daddb917047a64fb3e3564b98397 | 621a9b4d441fd80379c17a5b88300c6382578d87 | refs/heads/main | 2023-01-21T10:11:50.662184 | 2020-12-07T03:21:54 | 2020-12-07T03:21:54 | 316,784,233 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,669 | cpp | swipe_prediction_test.cpp | // Juliana Pacheco
// University of Florida
#include "src/swipe_prediction.h"
#include "gtest/gtest.h"
#include <string>
#include <utility>
#include <vector>
using source_type = std::vector<std::pair<std::string, std::size_t>>;
using input_type = std::vector<std::set<char>>;
using test_param_type = std::pair<input_t... |
8a0ec9477b3a4581da1240fd98e56b1052f2e966 | 2ea2cd1cf25acd6992a3312e87b29c95c05d5925 | /examples/face_fitting/src/WarpingSolverState.h | d663b202289568bbbc2675ee9ed531cd3da22b15 | [] | no_license | thallolang/thallo | 3ed0ce600bdaa12a2abbfc6b939aa18c632bf05f | 22cfbc4b4fb44e24b56acbeae0739e6cfe178dfd | refs/heads/main | 2023-07-06T14:02:57.578934 | 2021-08-13T19:23:35 | 2021-08-13T19:23:35 | 395,386,620 | 20 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 1,109 | h | WarpingSolverState.h | #pragma once
#ifndef _SOLVER_STATE_
#define _SOLVER_STATE_
#include <cuda_runtime.h>
#ifndef MINF
#ifdef __CUDACC__
#define MINF __int_as_float(0xff800000)
#else
#define MINF (std::numeric_limits<float>::infinity())
#endif
#endif
//#define Stereo_ENABLED
#define LE_THREAD_SIZE 16
struct SolverInput
{
unsigned ... |
528074e87041d9b662b7a605bdb0b7f2e95676cf | 973422e8a0ea40474b46082bbb5a146fa762e19c | /c++/0702/0702/0702.cpp | 96e2906e54eb78c807efa8852236a068170e75f3 | [] | no_license | YunHoseon/InhaStudy | 45e0e7671dc09b313a1b3b4281dead93d8f33633 | edde0627d335a2cf83dd369b6a3b0b96d6aa4461 | refs/heads/master | 2022-12-08T16:03:25.194855 | 2020-09-14T19:19:10 | 2020-09-14T19:19:10 | 273,371,294 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,111 | cpp | 0702.cpp | #include <iostream>
#include <time.h>
#include <random>
#define SIZE 9
using namespace std;
bool CheckSort(int arr[], int n)
{
for (int i = 0; i < n - 1; i++)
{
if (arr[i] > arr[i + 1])
{
return false;
}
}
}
int MergeSort(int arr[], int left, int right)
{
int pl = left, pr = right;
int tmp;
int tmpAr... |
89c17bdc5d6128472b7a3d3b363dede0d257376e | 52b2830bf0f99c98265d6787fb3aa4a2d388f622 | /server.cpp | 5eb55603aa355ff31b6749f4615292b60ac969e2 | [] | no_license | ospanoff/HTTP-server | ac93e61913fe18557ff773bb64c306c1f250f179 | 3989fae1743c023e6d5fd3b9c7315e710729fc10 | refs/heads/master | 2020-12-24T18:04:25.470724 | 2014-05-26T12:11:56 | 2014-05-26T12:11:56 | 29,411,914 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,678 | cpp | server.cpp | // Server @ version 2.0, name .ospanoff
// copyright (c) .ospanoff
// Ayat ".ospanoff" Ospanov
// CMC, KB MSU, 2013 - 2014
#include <set>
#include <map>
#include <algorithm>
// #include <fcntl.h>
#include "lib/sock_create.h"
#include "lib/http_ans.h"
#define MAX_CLIENT 5
int listener;
using namespace std;
void si... |
3ce76e7f66b59bba914dd5bf0864d701586e2003 | e858606ccacb9a78bfb48ca90b56d9469cff7a09 | /RImageBook/src/thirdparty/x64/VTK/include/mrmpi/keymultivalue.h | 373ba9f26039c65b064d940fc4c005419bd9f42d | [] | no_license | tkatsuki/rimagebook | 51f41166e98d442f7b9e2226b65046586f95dfc8 | d26a1502faf39804bf8cb06d1699de24e6d53d58 | refs/heads/master | 2021-01-19T17:59:07.539596 | 2015-06-29T21:12:57 | 2015-06-29T21:12:57 | 38,264,836 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,796 | h | keymultivalue.h | /* ----------------------------------------------------------------------
MR-MPI = MapReduce-MPI library
http://www.cs.sandia.gov/~sjplimp/mapreduce.html
Steve Plimpton, sjplimp@sandia.gov, Sandia National Laboratories
Copyright (2009) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL8... |
d45a996f2cbdcc15df76de3a21c741e5bf4a1362 | a04c155f980601ab0468a63f510a7a7d515afcdc | /subprojects/libostd/src/concurrency.cc | d14906070bfcbc56e2d7b37f97d58f267cf5665b | [
"Zlib",
"BSD-2-Clause",
"LicenseRef-scancode-unicode"
] | permissive | Croydon/libcubescript | 4e1799e1dac05f8b343d2a2cff0100749d41c102 | ea19f705704416e84b36d51f7e5ccc7a562b9701 | refs/heads/master | 2021-08-20T09:58:40.841996 | 2020-12-01T15:48:42 | 2020-12-01T15:48:42 | 232,191,867 | 0 | 0 | NOASSERTION | 2020-01-06T21:50:50 | 2020-01-06T21:50:49 | null | UTF-8 | C++ | false | false | 804 | cc | concurrency.cc | /* Concurrency C implementation bits.
*
* This file is part of libostd. See COPYING.md for futher information.
*/
#include "ostd/concurrency.hh"
namespace ostd {
/* place the vtable in here */
coroutine_error::~coroutine_error() {}
namespace detail {
/* place the vtable in here */
stack_free_iface::~stac... |
46eeeb30ace13468f1cc1a1a13be6b6425d4c0c8 | 252088bf108c83f07f964926b4add845dd642b19 | /Proyecto/src/shearsort.h | 58710fbecffc218fe51ae1b677c786d9736dc6fe | [] | no_license | CursosIE/IE-0217-II-16-G7 | 712368c1d21263e3241cb3f661398461d0e0305c | 6eeaec0e81145462db91e0a14a0d10edda1d56ad | refs/heads/master | 2020-04-05T22:56:43.962895 | 2016-10-24T07:06:50 | 2016-10-24T07:06:50 | 68,149,502 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 307 | h | shearsort.h | #ifndef SHEARSORT_H
#define SHEARSORT_H
#include <cstdlib>
#include <iostream>
#include "string"
using namespace std;
class Shearsort{
public:
int n;
double **matriz;
Shearsort();
Shearsort(int n, double** matriz);
~Shearsort();
void sort();
void operator~();
};
#endif /* SHEARSORT_H */
|
59a19268b1bd0a4dbfb09d138f526474a2352f93 | 643c739968557bb3b2a8970767e2ff09e9b7f43a | /CProgramming/ConsoleApplication variable argument.cpp | 716b273a0610b953f3ec4c3815111f3366bfb952 | [] | no_license | GP101/Programming | c8a6ca033577088f2cc84575d36305f6fde8b58b | 1ae8dacfcd9203c2b849fc435bdb5672f755d1a5 | refs/heads/master | 2022-12-04T05:50:15.347205 | 2022-11-30T08:19:15 | 2022-11-30T08:19:15 | 207,066,093 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 574 | cpp | ConsoleApplication variable argument.cpp | #include <stdio.h>
#include <stdarg.h>
int g = 0;
extern int g2;
int Sum(int count_, ...)
{
g2 += 1;
register int s = 0;
//int* ap = nullptr;
va_list ap;
//ap = &count_;
va_start(ap, count_);
for (int i = 0; i < count_; ++i)
{
int k;
//k = *(ap + 1);
//ap += 1;
... |
6f9154cc14ab5fe7bd61acf45684d828b4cc6f50 | 60146440b33eab5017b9353514cecea29b1b00a3 | /Linked List/actualreverseLinkedList.cpp | be18ba889bb35d25f093d2b104e553a8ffb82708 | [] | no_license | ArcheTa/DataStructures | 39f711f81de584faa850afed716335a7c1247c5d | 2c65eb90d6c90e4943b6cce838ee6b611b08f2c2 | refs/heads/main | 2023-07-22T11:57:48.045917 | 2021-09-10T12:14:06 | 2021-09-10T12:14:06 | 387,570,794 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 972 | cpp | actualreverseLinkedList.cpp | #include<bits/stdc++.h>
using namespace std;
struct Node{
int data;
Node* next;
};
Node* head = NULL;
void Insert(int data){
Node* temp = new Node();
temp -> data = data;
temp-> next = NULL;
if(head == NULL){
head = temp;
return;
}
Node* temp2 = head;
while(temp2 -> ... |
9f6395be1bfd8d12ed613abcea84fefed82c6038 | 10db1c2891dce0938fda86579fffcf5dac3e0865 | /src/hdmint/mintpool.h | 19d07fdb7932f55b96eb6144b26b1d044fd58918 | [
"MIT"
] | permissive | gaoyuancnpe/zcoin | 2a1eeb7ad5f39e04e5f1fec5b6a8e22e33ffe80c | eb2660580600886b1ad25b425743e714f4db46d0 | refs/heads/master | 2020-06-13T09:25:22.573909 | 2019-06-28T10:31:27 | 2019-06-28T10:31:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,828 | h | mintpool.h | // Copyright (c) 2019 The Zcoin Core Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <map>
#include <list>
#include "primitives/zerocoin.h"
#include "libzerocoin/bitcoin_bignum/bignum.h"
#include "uint256.h"... |
ffefef3cda8bf00fd496cab85e4afa30e83bede5 | d7f004d5f497b0d5e836131882bb052a2f60b047 | /toggle.cpp | 3eba5a65d565db0ca8a4922cf252b8c19c58c9b6 | [] | no_license | poojagolu/cpp | e327c03261029055c058e3113e353f157ef9c539 | 0126c9ba88118d47addb292c17be773db25da227 | refs/heads/master | 2020-07-22T18:41:13.199142 | 2019-09-09T11:27:19 | 2019-09-09T11:27:19 | 207,292,309 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 426 | cpp | toggle.cpp | #include <iostream>
using namespace std;
int main()
{
char a[100], b[100];
int n;
cout << "Enter a string: ";
cin.get(a,100);
n = sizeof(a)/sizeof(a[0]);
cout << "Original string: ";
cout << a << endl;
for(int i=0; i<n; i++)
{
if(islower(a[i]))
a[i] = toupper(a[i]);
else if(isupper(a[i]))
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.