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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3b1afb808ae908d3e89f779bbc646984785e0f6e | 58856fa0e7dfe209d26bf40593df1bd708c938a3 | /maze_location.cpp | c6d884bab5404d4e52a725f252f2886eee25948d | [] | no_license | explojoe/final-project-cs162 | 742aa7242c01affa5c5b214f86f3e231eaba098c | 1106a0acf11b5e03737f56ea18b94f1f6ad6a5a6 | refs/heads/master | 2020-05-02T01:20:12.656679 | 2018-03-20T01:30:00 | 2018-03-20T01:30:00 | 177,684,945 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 990 | cpp | maze_location.cpp | /*********************************************************************
** Program Filename: maze_location.cpp
** Author: Joshua Wentzel
** Date: 3/18/2018
** Description: Escape from CS162.
** Input: path to .txt containing maze data
** Output: Escape from CS162 gameplay
************************************************... |
3d249d56c28427c59bed5f4c45b44688228750ed | a1a5724ab0f1671f2d8b6c3d7786228b2477b961 | /GFG/Mathematics/GCD.cpp | 74afa81b01c949075287d74cfc4f272e43cda93b | [] | no_license | Mark-DSouza/CP | 87bfd1c910e7d8d5b5aeccf8a0fbb644bb248946 | 7b93e81b33d9b53a55939512ee4472d19f3a5a42 | refs/heads/master | 2023-04-01T07:11:13.551450 | 2021-03-31T07:35:19 | 2021-03-31T07:35:19 | 282,376,973 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 513 | cpp | GCD.cpp | #include <iostream>
using namespace std;
// gcd(a, b) = gcd(a-b, b) works until a and b are equal or one of them is 0
int gcd(int a, int b) {
while (a != b) {
if (a > b)
a = a - b;
else
b = b - a;
}
return a;
}
// Time Complexity: log(min(a, b))
int gcdOptimised(i... |
b08c5d7493b13acd31dbafbe40bfda8d7e958512 | a03e913301c4e92b703eb3402c41bafd8756bc91 | /src/format.cpp | 0ddfe94e37d2c9e698864fdba499b0a157b3b41f | [
"MIT"
] | permissive | azarrias/CppND-System-Monitor | 2ecd338f4f2e92135d1dd4d77c6026272178963f | 12411c60abd8096647ae1c3091bab110555ec24f | refs/heads/master | 2021-05-20T21:13:55.310213 | 2020-04-14T19:38:21 | 2020-04-14T19:38:21 | 252,419,055 | 0 | 0 | null | 2020-04-02T10:02:51 | 2020-04-02T10:02:51 | null | UTF-8 | C++ | false | false | 1,233 | cpp | format.cpp | #include <string>
#include <sstream>
#include "format.h"
using std::string;
// TODO: Complete this helper function
// INPUT: Long int measuring seconds
// OUTPUT: D day(s), HH:MM:SS
// REMOVE: [[maybe_unused]] once you define the function
string Format::ElapsedTime(long seconds) {
unsigned int days = seconds / ... |
b2418bfc8753bca3c83c7921fba7d9cfaf422616 | e6d4a87dcf98e93bab92faa03f1b16253b728ac9 | /algorithms/cpp/randomFlipMatrix/randomFlipMatrix.cpp | 2bf19af59beb418cb6e4a48079ad31ea61d72a1d | [] | no_license | MichelleZ/leetcode | b5a58e1822e3f6ef8021b29d9bc9aca3fd3d416f | a390adeeb71e997b3c1a56c479825d4adda07ef9 | refs/heads/main | 2023-03-06T08:16:54.891699 | 2023-02-26T07:17:47 | 2023-02-26T07:17:47 | 326,904,500 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 832 | cpp | randomFlipMatrix.cpp | // Source: https://leetcode.com/problems/random-flip-matrix/
// Author: Miao Zhang
// Date: 2021-02-19
class Solution {
public:
Solution(int n_rows, int n_cols): rows_(n_rows),
cols_(n_cols), n_(n_rows * n_cols) {
}
vector<int> flip() {
int s = rand() % (n_--);
int index = s;
... |
3c8140255abeb6330f1ececc8adb0ece9b7f6a87 | 2966236fadb79a60c7c59eba32516f2641d2ca5b | /ch10-managing-memory-and-low-level-data-structures/ex02-03-median.cpp | 0ee296df97111e42dc226905a698bfc687068df6 | [] | no_license | ctasims/accelerated-cpp | 15dcb3b85f4a2861030041bb0e2d4e106472b65b | e15bf457b32b0d1ca333c2fb29d5e23ca9b43294 | refs/heads/master | 2021-01-23T18:49:34.678365 | 2014-04-24T23:03:25 | 2014-04-24T23:03:25 | 16,974,615 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 675 | cpp | ex02-03-median.cpp | #include <vector>
#include <algorithm>
#include <stdexcept>
#include <iostream>
using namespace std;
template<class Type, class Iter>
Type median2(const Iter b, const Iter e)
{
vector<Type> v(b, e);
auto size = v.size();
if (size == 0)
throw domain_error("median of an empty vector");
sort(v... |
fabf8682d2960ddbc21cc983fbd4ad2ed32ffcb7 | e43ddf8aa1e5541205ace207bf13cb1d87cb2704 | /ObEnchDlg.h | 5e76b4ae6968b09924c9facb48bd8e4d64f8cafc | [
"MIT"
] | permissive | clayne/obranditem | 5dbdf817cee53882020179d71de3f53ed6fe611e | 4869f96bb9eda7b3a2369815c5f225050d28c445 | refs/heads/master | 2023-03-16T05:51:36.236547 | 2020-04-02T18:19:39 | 2020-04-02T18:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,726 | h | ObEnchDlg.h | /*===========================================================================
*
* File: Obenchdlg.H
* Author: Dave Humphrey (uesp@sympatico.ca)
* Created On: May 8, 2006
*
* Description
*
*=========================================================================*/
#ifndef __OBENCHDLG_H
#define __OBENC... |
77094d4927c88efe0115d90ef42cdcc7d03b1869 | ac8d5cd79cc6899de62c1cd4dd26a880e8975134 | /GraczKomputer.cpp | 2b10e8f74ddd62038a13ed423cbc00a053f8ad7a | [] | no_license | Openroads/kolko-krzyzyk | 2a7db9bd253c25c128a5971e12aef1f5d8e2bd56 | 3c063d1aa3d04d2af2ffa2802a656984f90a4ac4 | refs/heads/master | 2021-01-01T03:36:08.947254 | 2016-04-22T09:20:29 | 2016-04-22T09:20:29 | 56,191,908 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 385 | cpp | GraczKomputer.cpp | #include "GraczKomputer.h"
#include <ctime>
#include <cstdlib>
GraczKomputer::GraczKomputer(int w,string n ):wymiar(w),Gracz(n)
{
}
int GraczKomputer::podajX() {
srand(time(0));
int x;
x = rand() % wymiar;
return x;
}
int GraczKomputer::podajY() {
srand(time(NULL));
int y;
y = rand() % ... |
f302ebe812b69e7b506b1e9f8a0f499cf2894110 | c2b7e4a26fa9813738ea8f4784bd90698500620b | /include/HttpConn.h | 7a55265d3bef9729297b197da0c5b376b968e8eb | [] | no_license | Dark-Rich/webserver | e7604eacd2bb8011cfe3b59a5e696f55e3fa6140 | 0a9472537a80681c87eace7c7048bc5fa06fef12 | refs/heads/master | 2020-05-17T13:55:38.286718 | 2015-04-30T09:31:48 | 2015-04-30T09:31:48 | 34,208,479 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,137 | h | HttpConn.h | #ifndef HTTPCONN_H
#define HTTPCONN_H
#include <arpa/inet.h>
#include <sys/stat.h>
/**
**HTTP服务类
*/
class HttpConn
{
public:
/*文件名的最大长度*/
static const int FILENAME_LEN=200;
/*读缓冲区的大小*/
static const int READ_BUFFER_SIZE=2048;
/*写缓冲区的大小*/
static const int WRITE_BUFFER_SIZE=1024;
/*HTT... |
c06378cf2b0b743d01f4741571d718fd2d12f539 | 8294cadba0c0b8126dbc6e39ab117e2e245e3201 | /source/connection_hub.cpp | 6f147bb1716a85f234f27c99597e2038b173f501 | [
"MIT"
] | permissive | DaveChambers/chorus | 16ccff07b1ce543574db080aeea4f856565b2d17 | 77b8f92770fd3f48ddff7a43a6e275b98d604bd5 | refs/heads/master | 2022-04-06T05:35:49.149890 | 2020-02-12T16:29:32 | 2020-02-12T16:29:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,784 | cpp | connection_hub.cpp | #include <prismarine/connection_hub.h>
#include <memory>
namespace prismarine
{
ConnectionHub::ConnectionHub()
: addr()
{
}
ConnectionHub::~ConnectionHub()
{
}
int ConnectionHub::listen(const char* ip, int port)
{
uv_loop_t* loop = uv_default_loop();
uv_tcp_t server;
u... |
db3a32afc8d499ce3290f991b69c0111b3daefd6 | 1420c9dac842a7950fea8fef3069d1c86ae81835 | /Source/PaulasCrazyIdea/PaulasSphere.h | 86b5ec6e2e0a00c0f992a1a0df09bf9ff798832b | [] | no_license | miguelemosreverte/UE4Visualization | 9618366ba1a661842b2d0227995af81f56499323 | 1dd2c2e151d79d67eb526c462350e499488add69 | refs/heads/master | 2021-01-12T03:33:00.039336 | 2017-03-30T01:41:49 | 2017-03-30T01:41:49 | 78,228,445 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,470 | h | PaulasSphere.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "GameFramework/Actor.h"
#include "PaulasSphere.generated.h"
UCLASS()
class PAULASCRAZYIDEA_API APaulasSphere : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
APaulasSp... |
c5d1a92b9ecf1f4c040e9fd32fe67f27d7d441c5 | 2a6d801fde1f1975a8ab1fb5fe9dd25d61b64bdb | /src/simulator/save_simulation_data.cpp | 2b8e0b5af8deace5076e344808a542538e76a802 | [
"MIT"
] | permissive | oygx210/autogenu-jupyter | edab4cbc86436084cffaf60ea3257bc28b95cac3 | 7ee1710d4c8d2f4bceea70d5a2560d12eec29c8f | refs/heads/master | 2022-09-03T21:47:09.599432 | 2020-05-29T07:45:35 | 2020-05-29T07:45:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 674 | cpp | save_simulation_data.cpp | #include "save_simulation_data.hpp"
namespace cgmres {
void saveData(const int dim_state, const int dim_control_input,
std::ofstream& state_data, std::ofstream& control_input_data,
std::ofstream& error_data, const double time_param,
const double* state_vec, const double* ... |
b560c55b88b1ea61394a9ccb407d59752e2133ba | 9ea624a093561c87e47b822008e35d40a136a953 | /tst/OpcUaStackClient/ServiceSet/ServiceSetManagerSyncReal_t.cpp | 35afb468af80a9471ba2cd27efdd82f964fa2e98 | [
"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 | 298 | cpp | ServiceSetManagerSyncReal_t.cpp | #include "unittest.h"
#ifdef REAL_SERVER
BOOST_AUTO_TEST_SUITE(ServiceSetManagerSyncReal_)
BOOST_AUTO_TEST_CASE(ServiceSetManagerSyncReal_)
{
std::cout << "ServiceSetManagerSyncReal_t" << std::endl;
}
BOOST_AUTO_TEST_CASE(ServiceSetManagerSyncReal_xx)
{
}
BOOST_AUTO_TEST_SUITE_END()
#endif
|
5104696d49cd340df00210d1c9dfe9ddbed8b8fa | 6a94cd9fd6cdf2a2cbb79e04be4461aa688df83f | /indexer/cpp/index/index.hpp | f4da6d5c8937d0cb75cb25c3be29958054eaa7a0 | [] | no_license | igorhenri5/Search-Engine | fea786482e93a40491e6b67ed617159ade3f2bf3 | 09415264218b75b9bf1a52b844b5858ead60b85a | refs/heads/main | 2023-03-27T11:42:02.663715 | 2021-04-01T02:50:28 | 2021-04-01T02:50:28 | 338,874,173 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 898 | hpp | index.hpp | #ifndef __INDX__
#define __INDX__
#include <regex>
#include <vector>
#include <utility>
#include <unordered_map>
#include "../util/util.hpp"
#include "entry.hpp"
// #define SUB_INDEX_SIZE 5000
// #define SORT_CHUNK_SIZE 500
#define SUB_INDEX_SIZE 5000000
#define SORT_CHUNK_SIZE 2000
// #define SUB_INDEX_SIZE 10000... |
2a7e4c75b9dbe8abda11ba27daad8c3a79b47d50 | 65d110333360454daf5ecdab3af420a809d72b7d | /Flameduino/MCP4726.cpp | df1554d1270808aaf833e6bc9ead5e22784ced1f | [
"BSD-3-Clause"
] | permissive | Ehryk/Flameduino | eb0ede77be4cdd9d488d6217ec5d35bb8c49fb9e | 734ce5d1e489ed2962d56b2f586ccdc82127ae8c | refs/heads/master | 2021-01-23T06:44:48.064796 | 2015-11-10T21:09:20 | 2015-11-10T21:09:20 | 41,476,153 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,715 | cpp | MCP4726.cpp |
#include "MCP4726.h"
#include <Wire.h>
MCP4726::MCP4726() {
}
void MCP4726::begin(uint8_t addr) {
_i2caddr = addr;
Wire.begin();
}
void MCP4726::begin(uint8_t addr, bool retain_default) {
_i2caddr = addr;
_retain_default = retain_default;
Wire.begin();
}
void MCP4726::setRetainDefault(bool retain_default... |
fe33f6515b4f0e9f7647f30bc8c5e0df7f936dfd | e61b8adef5f9556cad8795b5bbf9b651ef04a01a | /tests/models/hubbard/dispersion/2d.cpp | eb0faee1134834dd4a480a92214d79e078c8fc2d | [
"MIT"
] | permissive | qftphys/Simulate-the-non-equilibrium-dynamics-of-Fermionic-systems | ea369e0c4dfa14a15dc8956a864b12b9d238fade | 48d36fecbe4bc12af90f104cdf1f9f68352c508c | refs/heads/master | 2020-03-14T05:16:52.309728 | 2017-02-13T12:13:42 | 2017-02-13T12:13:42 | 131,461,287 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,049 | cpp | 2d.cpp | #include <catch.hpp>
#include <ieompp/lattices/periodic_square_lattice.hpp>
#include <ieompp/models/hubbard/dispersion.hpp>
using namespace ieompp;
TEST_CASE("dispersion_2d")
{
const std::vector<uint64_t> sizes = {4, 8, 16, 32};
const std::vector<double> Js = {0.0, 0.5, 1.0, 1.5, 2.0};
for(const auto... |
542b89bb8255a1e826f6e2c869a215f49762f7f7 | 6b550d3d0b182bcddda1f0a175d6b6cd07b60fb3 | /logdevice/common/configuration/EpochMetaDataVersion.h | 7b6c8673562bf2626803f9888f519e9363329dca | [
"BSD-3-Clause"
] | permissive | Rachelmorrell/LogDevice | 5bd04f7ab0bdf9cc6e5b2da4a4b51210cdc9a4c8 | 3a8d800033fada47d878b64533afdf41dc79e057 | refs/heads/master | 2021-06-24T09:10:20.240011 | 2020-04-21T14:10:52 | 2020-04-21T14:13:09 | 157,563,026 | 1 | 0 | NOASSERTION | 2020-04-21T19:20:55 | 2018-11-14T14:43:33 | C++ | UTF-8 | C++ | false | false | 1,411 | h | EpochMetaDataVersion.h | /**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <memory>
#include <folly/Optional.h>
namespace facebook { name... |
7bee6584513da9da63f49a8022b8ed03dc6e5f83 | ee4f338aebedc47b06bd08fd35eada5aa81c7a91 | /SDK/BZ_UI_DraggedItem_parameters.hpp | c3fa892e059ad704ebced44a01fe0d832991e398 | [] | no_license | Hengle/BlazingSails_SDK | 5cf1ff31e0ac314aa841d7b55d0409e3e659e488 | 8a70c90a01d65c6cbd25f3dfdd1a8262714d3a60 | refs/heads/master | 2023-03-17T11:11:09.896530 | 2020-01-28T19:46:17 | 2020-01-28T19:46:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 623 | hpp | BZ_UI_DraggedItem_parameters.hpp | #pragma once
// BlazingSails (Dumped by Hinnie) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//-----------------------------------------------------------------------... |
b3fb2f7c8217facd937b8da96d7cc5baf99df828 | 9b9f18276252c368e8d8eaa7591042a2624543ea | /2016/Day16/tests.cpp | a28c9db299d55a8ea0a79146a2f4da4d403237e0 | [
"MIT"
] | permissive | marcuskrahl/AdventOfCode | 9a8bcd195301986cf4c094cfffe530fad8f348f1 | 8170dc2ab3fe1a446b0892d5358e6637f4b429c9 | refs/heads/master | 2023-01-11T15:12:32.172994 | 2022-12-25T07:27:42 | 2022-12-25T07:27:42 | 47,201,168 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,272 | cpp | tests.cpp | #define CATCH_CONFIG_MAIN
#include "../lib/catch.hpp"
#include "Aunt.hpp"
TEST_CASE("Aunts are correctly parsed","[aunt]") {
Aunt aunt1("Sue 1: children: 3, cats: 7, samoyeds: 2, pomeranians: 3, akitas: 0, vizslas: 0, goldfish: 5, trees: 3, cars: 2, perfumes: 1");
REQUIRE(aunt1.get_value("children") == 3);
... |
ea9cd80ae8d0bf4c379c6f80fd042dec2f0f3cd5 | 507784c65870c7dc8b64ac7423e8ef2d56171ed5 | /src/app.cpp | 064f0ea2a171f1151f7f9e3f5351461093597b6b | [] | no_license | rojkov/survival | 074e15716cedfa6f0888ff5088a54eafebec917f | 5de03dca2aa1b14a2737c25eb14f8d8fdfe829db | refs/heads/master | 2020-04-04T01:06:03.390577 | 2015-12-29T20:30:21 | 2015-12-29T20:30:21 | 41,848,119 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,568 | cpp | app.cpp | #include "app.h"
#include "world.h"
#include "lifeform.h"
App::App()
: m_win(nullptr, SDL_DestroyWindow)
, m_renderer(nullptr)
{
}
App::~App()
{
SDL_Quit();
}
int App::execute()
{
// TODO: init only used subsystems
if (SDL_Init(SDL_INIT_EVERYTHING) < 0) {
return -1;
}
m_win.reset... |
e35142a9494cd1bda853f6d8cb227a24236f9314 | 233fbc2e4322e4275cbe40562e29f25d2f2cc949 | /util.h | 69eac35454155cf3fd120d3fef70abf0f1d00c1c | [] | no_license | nurettin/3dtest | 158829c7a6aa9e789f98ac0c4cf2c5462c5562f9 | 26870c0ff98b093275f6bdd6e56c54701f1964ad | refs/heads/master | 2016-09-11T02:48:10.708580 | 2014-08-23T19:13:20 | 2014-08-23T19:13:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,352 | h | util.h | #ifndef UTIL_HPP
#define UTIL_HPP
#include <memory>
#include <utility>
#include <stdexcept>
#include <GL/gl.h>
#include <SDL.h>
struct SDL
{
typedef std::unique_ptr<int, std::function<void(int*)>> sdl_t;
typedef std::unique_ptr<SDL_Window, void(*)(SDL_Window*)> win_t;
typedef std::unique_ptr<void, void(*)(void*... |
cb6d786abba7f5b89698d7471e7765efc45c5184 | c5b5805ed4dd2bf46fd31826670017abec8e872e | /Arrays/checkKey&Doible.cpp | 2e3bfe5b941ed15d3064986585d7b44d7c8bb2ee | [] | no_license | maverick439/DataStructures | 3079224f0dcdf1a779e870209e6425fb11661da7 | bf5d632d8558ff4f051c4ac7939028774b39af56 | refs/heads/master | 2022-07-23T16:03:15.218699 | 2022-07-09T03:41:19 | 2022-07-09T03:41:19 | 131,743,165 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 633 | cpp | checkKey&Doible.cpp | /**
* Given an array arr of integers, check if there exists two integers N and M such that N is the double of M ( i.e. N = 2 * M).
*
* Input: arr = [10,2,5,3]
* Output: true
*
* Input: arr = [3,1,7,11]
* Output: false
* */
class Solution {
public:
bool checkIfExist(vector<int>& arr) {
unordered_s... |
7bb2e3e3641eecaa027367de39dba5f41f1acc78 | 4e38faaa2dc1d03375010fd90ad1d24322ed60a7 | /include/RED4ext/Scripting/Natives/Generated/quest/CharacterManagerCombat_AssignSquad.hpp | 9570d54560a3f73c572a12f5057d097f88d45196 | [
"MIT"
] | permissive | WopsS/RED4ext.SDK | 0a1caef8a4f957417ce8fb2fdbd821d24b3b9255 | 3a41c61f6d6f050545ab62681fb72f1efd276536 | refs/heads/master | 2023-08-31T08:21:07.310498 | 2023-08-18T20:51:18 | 2023-08-18T20:51:18 | 324,193,986 | 68 | 25 | MIT | 2023-08-18T20:51:20 | 2020-12-24T16:17:20 | C++ | UTF-8 | C++ | false | false | 1,033 | hpp | CharacterManagerCombat_AssignSquad.hpp | #pragma once
// clang-format off
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/NativeTypes.hpp>
#include <RED4ext/Scripting/Natives/Generated/AI/SquadType.hpp>
#include <RED4ext/Scripting/Natives/Generated/game/EntityReference.hpp>
#inclu... |
2cd69816e841258256bf82569a03fb6a74d7bb56 | 3deaf38a9f50d9701f7de75a7421b66b0b704ee4 | /cs116/lab04/savingsAccount.h | a3b4e21fbbc09cc3c79545bf9c52b18fafb32ddc | [] | no_license | mikim42/Ohlone | e1bc2c85ba6c9eb8b2a89817f8654325b6df56de | dba2736a02ae22453ff94f514e8908d4f3ae5bef | refs/heads/master | 2021-01-03T01:38:24.057727 | 2020-02-11T21:01:41 | 2020-02-11T21:01:41 | 239,861,478 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,454 | h | savingsAccount.h | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* savingsAccount.h :+: :+: :+: ... |
9e9091475ab3e0d4a8d4d7781ec97b8e1f06dbc1 | 4d3fedef233cb3591bcae93424e3e1615ce03320 | /241diffWaysToCompute.cpp | 60970ba4c55ca439a6a0dd3d58f7e691aeac4fba | [] | no_license | noelzhang/LeetCodeCPP | cdd95ac67fd6ef0609d5083a54ed2bc09f6e0dd4 | 39518f1aa01cf92967e0bf7b20df1ca881345b12 | refs/heads/master | 2020-04-15T04:46:52.294472 | 2015-08-16T13:54:26 | 2015-08-16T13:54:26 | 38,528,484 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 719 | cpp | 241diffWaysToCompute.cpp | class Solution {
public:
vector<int> diffWaysToCompute(string input) {
vector<int> res;
if(input.length()==0)
return res;
for (int i = 0; i < input.length(); ++i)
{
auto cur = input[i];
if(cur == '-'||cur == '+'||cur == '*'){
auto res1 = diffWaysToCompute(input.substr(0,i));
auto res2 = diffWa... |
a1b5a77f7e8684add978257b699947b606d701c6 | 1cedee9b9fc9551e05188c5f13863db1dfcda396 | /libraries/CurieBle/src/BleDescriptor.h | bdd8378a5b0af7fe1b4e07941ced46d2648b5fcf | [] | no_license | cmti-95035/Arduino | a9d6aed8da1ec3b0807239763af1448fe489b5b5 | fbf43e101882ea44043b7c0c4b63e24e8bbed2e5 | refs/heads/master | 2021-01-10T13:07:11.555917 | 2016-01-25T04:37:35 | 2016-01-25T04:37:35 | 47,204,033 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,445 | h | BleDescriptor.h | /*
* Copyright (c) 2015 Intel Corporation. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later... |
5476d5ee941bbc53572895a2ee1b6882eef8d916 | 957bccd826fb9c6be313119c6a3b3163541aee53 | /Matura_informatyka/piksele.cpp | e6c817e31609ce6544db7f30a2754b995c705157 | [] | no_license | andrzejjurga/zsk | c1678366db2a306ce805aec48a554f8527eb1499 | 17187270ee13e8caf30ecf568b94d79968f7ba93 | refs/heads/master | 2023-03-31T02:45:29.944465 | 2021-03-31T15:18:46 | 2021-03-31T15:18:46 | 295,343,236 | 2 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 2,358 | cpp | piksele.cpp | //Algorytmy w praktyce Piksele Egzamin maturalny — maj 2017
#include <iostream>
#include <fstream>
#include <math.h>
using namespace std;
void zad6_1()
{
int tab[200][320];
ifstream plik;
int max = 0, min = 250;
plik.open("dane.txt");
for(int i = 0; i < 200; i++)
{
for(int j = 0; j <... |
0274c8579b610fe8b21fa28ee39c3e6b7e6b71ab | eb7caa862eb8cb9ed81b6568c13303f9a8590b02 | /build3/vs2010/GJK/GJK.h | 7adf40da5a68cdd87c0348148a57c8a599e4ac41 | [
"Zlib"
] | permissive | Valvador/bullet3Experiments | 43c80fd72b074abd80fbaeabad8c922ee11e5ba5 | d345149a2ea3a9c92eb6397b9d79bfda966d6652 | refs/heads/master | 2021-01-15T18:16:34.281231 | 2020-09-08T02:39:14 | 2020-09-08T02:39:14 | 35,391,137 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 975 | h | GJK.h | #include "btVector3.h"
// GJK IMPLEMETNATION USING https://github.com/kevinmoran/GJK/blob/master/GJK.h AS REFERENCE
///
#pragma once
namespace ProjGJK
{
class GJKConvex;
struct GJKContactResult
{
btVector3 normal;
btVector3 position;
float depth;
};
struct GJKSimplex
{
btVector3 vertices[4];
GJKSi... |
3b176a1a1c8dca70f6f7779791d1427a4305c767 | 2133dd71f3bd896acdfe2236a8b95a2774379bda | /string/678. 有效的括号字符串.cpp | 16e241f7276aaea62cefd7858cb46a6153fa8296 | [] | no_license | SuperCodeFarmers/MyLeetCode | 4df011817c19b6d3d4f7d0f16ee022d8d2041768 | a7677da42340b85faee9e2d5d755db38089795b8 | refs/heads/master | 2023-08-24T22:20:25.832819 | 2021-09-30T07:12:32 | 2021-09-30T07:12:32 | 275,822,699 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,938 | cpp | 678. 有效的括号字符串.cpp | /*
678. 有效的括号字符串
给定一个只包含三种字符的字符串:( ,) 和 *,写一个函数来检验这个字符串是否为有效字符串。有效字符串具有如下规则:
任何左括号 ( 必须有相应的右括号 )。
任何右括号 ) 必须有相应的左括号 ( 。
左括号 ( 必须在对应的右括号之前 )。
* 可以被视为单个右括号 ) ,或单个左括号 ( ,或一个空字符串。
一个空字符串也被视为有效字符串。
示例 1:
输入: "()"
输出: True
示例 2:
输入: "(*)"
输出: True
示例 3:
输入: "(*))"
输出: True
注意:
字符串大小将在 [1,100] 范围内。
*/
/*
解题思路:
... |
2759c5c2119fb0361ff39bf74985e5d8e75875a5 | 43ce1a6015cdbdfc93a797b01504384b4b205e98 | /lec03/countBits.cpp | 633899a47ee5fe91992a15c77b1befac78da2966 | [] | no_license | mohankukreja1/cpp | 287955da7d7dfc2ea3f7651903fc2f4fe5a374ad | 82f6e03faa138a1ead0137a0d979e760d7c556bc | refs/heads/master | 2022-12-31T13:50:56.282385 | 2020-10-17T08:32:28 | 2020-10-17T08:32:28 | 304,832,641 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 286 | cpp | countBits.cpp | //count no of bits
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N; //no read :)
int cnt = 0;
while (N != 0){
int rem = N % 2;
if (rem == 1) ++cnt;
N /= 2; //no reduced to half.
}
cout << "No of bits are " << cnt << endl;
return 0;
} |
9c5cd83864e690efb30735338261d5a0e8c56645 | e2e1aec9f08f7b907d28aa29c6d007fe8ed1dd5d | /P_2/P_2_a/src/P_2_a_C_matx_float_class.cpp | a13e9399628fd979989ad59a259fb2eee9337e79 | [
"MIT"
] | permissive | UAH-s-Telematics-Engineering-Tasks/adv_programming | d5cdde1bd5d93afe7066ee1d0480ec5b340e1c63 | a31750a2ad2d998208d240a5f4a0d78d4b39f801 | refs/heads/master | 2020-12-23T04:17:05.251722 | 2020-01-19T21:06:48 | 2020-01-19T21:06:48 | 237,030,463 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,746 | cpp | P_2_a_C_matx_float_class.cpp | #include "../inc/P_2_a_C_matx_float_class.h"
#include "../inc/Library_includes.h"
#include "../inc/Utils.h"
void C_matx_float_class::create_2d_mtx(int rows, int cols) {
int i;
n_rows = rows; n_cols = cols;
bool success = false;
try {
C_matx_float_class::mtx = new float* [rows];
success... |
03baafdc91c8330dac882c3b842650ddb89e0abf | e4b23d14453638f1035ba52e984f80d77334f531 | /visualizer/src/App.cpp | f64a601e88fa17f4b5520790f704ad0f7fc7c341 | [] | no_license | therooftopprinz/dspp | fc21a3387742a52c8032c16d80833cdc0f2829cb | 74afc3d19c9b7221100ec8666e223d0b1d32a062 | refs/heads/master | 2020-07-20T00:40:34.522994 | 2020-02-12T15:58:57 | 2020-02-12T15:58:57 | 206,541,273 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,441 | cpp | App.cpp | #include <string>
#include <sstream>
#include <thread>
#include <stdexcept>
#include <GLFW/glfw3.h>
#include <logless/Logger.hpp>
#include <App.hpp>
App::App()
: mCmdPlotTime (mTaskMan, mPipeMan)
, mCmdTestSignal(mPipeMan)
{
if (!glfwInit())
{
Logless("glfwInit failed!");
throw std:... |
e46c500005e12566a6c10fb5f4984be2e7fe3512 | 316ac30a4f49f9d90b0c79d41dab723f5cbacdb7 | /3rdparty/trt_fused_multihead_attention/fmha_v2_fp16_Causal_64_40_sm70.cubin.cpp | f12838c7a65ae46b3aeba1c3b572dbfcf45887d1 | [
"Apache-2.0"
] | permissive | neevaco/FasterTransformer | 3ea19bf8e3f058079c4ecdbdafd7cfe582f78db8 | 7bb372317da21dc7a898cb0e6e0ce7c11b0b38ec | refs/heads/corvo | 2023-08-31T05:21:31.325030 | 2023-08-30T23:14:57 | 2023-08-30T23:14:57 | 610,989,639 | 0 | 0 | Apache-2.0 | 2023-09-12T04:05:16 | 2023-03-07T22:08:10 | C++ | UTF-8 | C++ | false | false | 1,257,610 | cpp | fmha_v2_fp16_Causal_64_40_sm70.cubin.cpp | /*
* Copyright (c) 2022-2023, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... |
90273008bb21ca8ff164f3cb97f2c490110ba1d3 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_log_1655.cpp | 25f9b96a71e4c746ebbcdd36da2dac9f9c91c588 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 101 | cpp | Kitware_CMake_repos_log_1655.cpp | archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC,
"Can't initialize deflate decompression."); |
4b0cd192ca6952bb7ec43228445eaaeb2f238292 | cc35b011bfcfd810721e64b5821500ba9791edf0 | /lib/Instruction.cpp | e6d232603066458d7f4bea1a8293d06e19749562 | [
"Apache-2.0"
] | permissive | jsulmont/xorc-cpp-oam | 5f08680781195a4abd3da1e5851798ed635cab0c | f623d66b36546bce3477e3ddc06d328e1aa7ce90 | refs/heads/master | 2020-04-10T03:48:05.059079 | 2018-03-14T11:46:33 | 2018-03-14T12:54:08 | 160,780,012 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 131 | cpp | Instruction.cpp | #include "Instruction.h"
#include "BoxedValue.h"
#include "Program.h"
namespace cppoam {
NOPInstruction Instruction::Invalid;
}
|
945c140a82593cda57d122a75384a4938ae5a289 | e3abf2269d58fc4f4415faa97859e1d1afde2880 | /leetcode/topInterviewQuestions/medium/permutations2.cpp | a90e75942a91fc2358220d1b67e9b1657c34d4ae | [] | no_license | Pedro-Mendes/competitiveProgramming | c549f022c427aa4e55437124e331971c9d48ccab | 391b8f9e54a8d5df4f96907dcc50f3943323dcba | refs/heads/master | 2021-07-11T08:41:00.395142 | 2020-06-20T23:06:03 | 2020-06-20T23:06:03 | 151,653,311 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,364 | cpp | permutations2.cpp | class Solution {
public:
void swap(vector<int> &nums,int i, int j){
int tmp = nums[i];
nums[i] = nums[j];
nums[j] = tmp;
}
void permute(vector<vector<int>> &solution, vector<int> nums, int index, map<vector<int>,int> &hash){
if(index==nums.size()){
... |
e1bdb46f5c5e73c00d9c7986617cd62d729833ff | 38d3e2040fc43b83cc2c756af462c228532379be | /UNLI/Materias/Programacion de Video Juegos I/Practicas/TP3/TP3/main.cpp | 9db186b3a160bfb99c6fd45f14bf081173dd6070 | [] | no_license | dexter1986/unli | 1690314412daea39b512b03d4e8905de1300b71d | 7496bd2162a6170b7e4bb8d54370bdd4f1a700bf | refs/heads/master | 2016-09-06T15:10:20.157402 | 2015-03-13T03:26:34 | 2015-03-13T03:26:34 | 40,614,367 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 231 | cpp | main.cpp | #include <cstdio>
#include <tchar.h>
#include "TP3.h"
using namespace std;
int main(int argc, _TCHAR* argv[])
{
GameBase *Juego;
Juego = new TP3(800,600,"TP3");
Juego->Loop();
delete Juego;
return 0;
}
|
241b77a65ed5ebd61e230ddbeca1f840b4902437 | 0bc0d4fb816aa631491cfdd44f2e259a06a4c2fe | /src/dgraph/factory.cpp | ee7e1b09cbb8d040637de7841f6030a139431401 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | stack-of-tasks/dynamic-graph | ef7caf0244c91d3432672d5f5ea4164c6c49d13c | 2e7a70d5522d74c40e3f75540ca800564a48119e | refs/heads/master | 2023-08-08T03:32:16.929215 | 2022-09-05T08:48:35 | 2022-09-05T08:48:35 | 990,445 | 23 | 24 | NOASSERTION | 2023-07-28T07:08:03 | 2010-10-15T16:56:22 | C++ | UTF-8 | C++ | false | false | 3,922 | cpp | factory.cpp | // Copyright 2010, François Bleibel, Thomas Moulard, Olivier Stasse,
// JRL, CNRS/AIST.
//
#include "dynamic-graph/factory.h"
#include <boost/foreach.hpp>
#include "dynamic-graph/debug.h"
using namespace std;
using namespace dynamicgraph;
namespace dynamicgraph {
FactoryStorage *FactoryStorage::getInstance() {
i... |
fdc95007eb91fb976e40516e3d6514c61fb794c3 | c51febc209233a9160f41913d895415704d2391f | /library/ATF/tagDBCOLUMNDESC.hpp | 4d50d7a92dd739d4cdd52cf29a0fde58cbebc4c6 | [
"MIT"
] | permissive | roussukke/Yorozuya | 81f81e5e759ecae02c793e65d6c3acc504091bc3 | d9a44592b0714da1aebf492b64fdcb3fa072afe5 | refs/heads/master | 2023-07-08T03:23:00.584855 | 2023-06-29T08:20:25 | 2023-06-29T08:20:25 | 463,330,454 | 0 | 0 | MIT | 2022-02-24T23:15:01 | 2022-02-24T23:15:00 | null | UTF-8 | C++ | false | false | 674 | hpp | tagDBCOLUMNDESC.hpp | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <ITypeInfo.hpp>
#include <_GUID.hpp>
#include <tagDBID.hpp>
#include <tagDBPROPSET.hpp>
START_ATF_NAMESPACE
#pragma pack(push, 8)
struct tagDBCOLUMNDE... |
d37d919d2a24260e93a2893735ee958b2cedd392 | 40305d622b8a9b7c73000611a1aefc6277e281b0 | /latest_code_22.ino | b8fde99b8170213a1027a8cc96ebbabe7fb3a7e0 | [] | no_license | AmnaRasheed/FYP | 279aeedc216319c43e6484adec20c4d1a5b7a52a | d9a53f08965f3280349ca1b1c623f566d3a6c2c0 | refs/heads/master | 2021-05-09T12:30:45.736619 | 2018-01-26T06:28:59 | 2018-01-26T06:28:59 | 119,014,512 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,282 | ino | latest_code_22.ino | #include <SPI.h>
#include <SD.h>
#include <Wire.h>
#include <TinyGPS.h>
#include <SoftwareSerial.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_ADXL345_U.h>
Adafruit_ADXL345_Unified accel = Adafruit_ADXL345_Unified(12345);
File myFile;
const int chipSelect = 4; //This is for storage card
float x=0;
float ... |
3a50f5ebddb555a4d7f22be4c5f1dade04b2b867 | 757739d7542a6586fb2d4dca8044f462e345ba92 | /bai1/tinhtong1/tinhsofibonaxi.cpp | 2b4d4372a7c8731ca379d5f62ffe73c2d86032e2 | [] | no_license | nguyenducquyenKMA/bai-tap-kit-c17 | aff7c182a9e9858a9f487202493a690cb018b9d6 | 3fc5c9accea132dcd3a9f19a87a3c4445bf02121 | refs/heads/main | 2023-09-05T19:18:41.503964 | 2021-11-17T13:32:39 | 2021-11-17T13:32:39 | 429,050,289 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 287 | cpp | tinhsofibonaxi.cpp | #include<stdio.h>
int fibonacci(int n) {
if (n < 0) {
return -1;
} else if (n == 0 || n == 1) {
return n;
} else {
return fibonacci(n - 1) + fibonacci(n - 2);
}
}
int main() {
int i;
int n;
scanf("%d",&n);
printf("%d ", fibonacci(n));
} |
52f2ac78f6a93c8883dfa63acea26e85e623cfc9 | e4c432f43fb1711d7307a25d5bc07f64e26ae9de | /zysoft/src/network/Timer.h | cff8870f66321242bece8b32379f0604a265d85b | [] | no_license | longshadian/zylib | c456dc75470f9c6512a7d63b1182cb9eebcca999 | 9fde01c76a1c644d5daa46a645c8e1300e72c5bf | refs/heads/master | 2021-01-22T23:49:11.912633 | 2020-06-16T09:13:50 | 2020-06-16T09:13:50 | 85,669,581 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 262 | h | Timer.h | #pragma once
#include <memory>
#include <boost/asio.hpp>
namespace network
{
using TimerPtr = std::shared_ptr<boost::asio::steady_timer>;
void TimerCancel(TimerPtr timer)
{
boost::system::error_code ec;
timer->cancel(ec);
}
} // namespace network
|
c4ca4aa636d654298a36c201d1c28ba868b33116 | 9973808d683a77b2c831d24f3f125913f715da58 | /str_set/소스.cpp | f13a0bc95744f79debba95466204f60b330b6007 | [] | no_license | BumBamBi/C | 83639c8ded68beb423a0178ee472b20f017c16a3 | 8973295e3d853d394caae48c7ba929a0e075a7b5 | refs/heads/master | 2022-12-04T17:54:51.983358 | 2020-08-26T07:04:46 | 2020-08-26T07:04:46 | 290,123,523 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 548 | cpp | 소스.cpp | #include<stdio.h>
void strtok(char *p, char(*pp)[10])
{
int n = 1;
int i = 0;
int j = 0;
while (*p != NULL)
{
if (n == 1)
{
if (*p == 32 || *p == 44 || *p == 9)
{
p++;
j = 0;
i++;
n = 0;
}
else
{
pp[i][j] = *p;
p++;
j++;
n = 1;
}
}
if (n == 0)
{
if... |
b486f221bcee78cd2e8b560b8ceb7498f68fb5cd | 59ea12023da4a0b23d86498f1ea839917116885a | /rpc/2020/rpc01/local2019Data/solutions/bed/bed.cpp | 14da6326382d7353269cb5635deba612d13fc8f0 | [] | no_license | electricpants01/ACMicpc-contest | 2da6403080d7669f391be255e038909686c46c9d | 2fb6a23b9a88f8bbf4a8223525d1aaa1d7724310 | refs/heads/master | 2022-02-14T07:52:50.112624 | 2022-01-30T15:15:14 | 2022-01-30T15:15:14 | 131,452,331 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 919 | cpp | bed.cpp | // Arup Guha
// 8/15/2019
// C++ Solution to 2019 UCF Locals Problem: Fitting on the Bed
#include <iostream>
#include <math.h>
// Different than a normal epsilon, but gives us plenty of tolerance as the data spec allows.
#define EPS 0.001
using namespace std;
int main() {
// Get bed and Anya sizes.
int bed... |
c50fdbb1a48f8004d6329d7ba62dd839a5f57336 | 7fed9a85b30ac68b38592e6e78ed5320e4516170 | /greetings.cpp | decfab8300e47c09f9a40111a225eaefd6e84664 | [] | no_license | w0178837/Lynda_1 | 87fc25cd21b783a5ba50c13df9d01898b67ed833 | 69214b591ce050402ae25a0cc2a40ee88cabc4e1 | refs/heads/master | 2021-06-26T22:49:19.230846 | 2017-09-16T14:52:04 | 2017-09-16T14:52:04 | 103,756,298 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 144 | cpp | greetings.cpp | //
// Created by inet2005 on 9/16/17.
//
#include <iostream>
using namespace std;
int main()
{
// todo insert code here
return 0;
}
|
07a49267957e5fedc95d89de00be8f08e1f0356d | a960a6f85a2541b57389e6d37f27019aa16120c0 | /test/curlcurl-discretization.cc | 121da3812d45c7c2e3666fd8696d48204e96e8cb | [
"BSD-2-Clause"
] | permissive | BarbaraV/dune-gdt | 979bbaa69bc812a3e4f08b88e6463486c8e46ca0 | 44413f8c7e167f6eb0886922b50e7ac600c463b9 | refs/heads/master | 2020-04-06T03:52:22.659412 | 2016-06-21T13:10:43 | 2016-06-21T13:10:43 | 33,928,798 | 0 | 1 | null | 2015-04-14T11:53:25 | 2015-04-14T11:53:24 | null | UTF-8 | C++ | false | false | 29,915 | cc | curlcurl-discretization.cc | // This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#include "config.h"
#include <iostream>
#include <vector>
#include <string>
#include <dune/common/par... |
0c4556aaf644a1a825f584636eeaa6a388ba1c0d | 8c91968704c1526e8f78c383e62435f198142bd5 | /B-Mesh/TrialEdgeDensity.h | eab88ace2390943bbd5de6e0301c6afdf015488d | [] | no_license | Fearoht/mesh_generation | e7fdc08885b979de222a9b2827217e831a6b4e7a | e733901da1d30ae6b8b9eaab6b670a2f73b5b900 | refs/heads/main | 2023-05-12T12:57:31.897489 | 2021-06-12T08:23:35 | 2021-06-12T08:23:35 | 376,237,553 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,051 | h | TrialEdgeDensity.h | //
// TrialEdgeDensity.h
// B-Mesh
//
// Created by Bryan Gonzales Vega on 9/7/16.
// Copyright © 2016 Bryan Gonzales Vega. All rights reserved.
//
#ifndef TrialEdgeDensity_h
#define TrialEdgeDensity_h
#include "Trials.hpp"
#include "BMesh/Image.hpp"
#include "BMesh/Exporter.hpp"
#include "BMesh/Poisson2.hpp"
// ... |
01a9f601ecdbcefcd708dfe70536ad7e62e0e6b8 | 63e7cbad2dae483d93572c27b658a395057a4b31 | /src/libOptimize_NelderMead.c++ | b5b452e260bef037ef9d04b399fc16c262808fa3 | [] | no_license | debonet/Congealing | 13c9f1100531eb9491230c7652aba17a1c589a6c | 1a90ac78efb8e5dc30cc72e26c61ea6c3042eee4 | refs/heads/master | 2016-09-09T17:56:44.813853 | 2012-05-01T02:21:32 | 2012-05-01T02:21:32 | 1,536,220 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 7,857 | libOptimize_NelderMead.c++ | #include "libOptimize_NelderMead.h"
#include "libPGM.h"
#include "libUtility.h"
#include <float.h> // for DBL_MAX
#undef DEBUG
#define DEBUG 0
#include "libDebug.h"
//============================================================================
// based upon the discussion and terminology found in Wikipedia
// http:/... | |
fee865eb8ea83114e063f63b14d03817c3e415c7 | f1bde7424c041ac3ce6d15d731b1a16350450cf6 | /H1/fig820.cpp | f2da389ca3c89d5c9ac01d95ab3838b2909334b5 | [] | no_license | meganschmidt23/AssemblyLanguage-DosReis | e6184b551dba65f615e4127734d8950f561f1543 | 8c64405fc5f2c42568b5f89f78e3de676136fb0e | refs/heads/main | 2023-01-27T14:51:38.138700 | 2020-12-08T19:12:27 | 2020-12-08T19:12:27 | 319,723,687 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 227 | cpp | fig820.cpp | #include <iostream>
using namespace std;
int y;
int (*p)(int);
int fp(int x)
{
cout << x << endl;
return x;
}
int main()
{
y = fp(3); // call fp
p = fp;
y = p(3); // call fp via p pointer
}
|
523a5a4c365bef9a855877121eb6b44aa6e9d104 | 182e3209cfa49dc3e49e218315689f45c84db203 | /Ex21.cpp | 074a9cb5ea735f419959c049cb060041cd36015b | [] | no_license | domiee13/CTDL-GT | a5a014ac984e250f577047ee3fc9890bb21dfc3d | fed87cdc67353a35d63c733022d0650b6d35175e | refs/heads/master | 2021-05-24T10:56:08.573543 | 2021-03-26T15:26:02 | 2021-03-26T15:26:02 | 253,528,463 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,363 | cpp | Ex21.cpp | /*
Cho xâu ký tự S bao gồm các ký tự in hoa khác nhau. Hãy đưa ra tất cả các hoán vị của xâu ký
tự S. Ví dụ S=”ABC” ta có kết quả {ABC ACB BAC BCA CAB CBA}.
Input:
Dòng đầu tiên đưa vào số lượng bộ test T.
Những dòng tiếp theo đưa vào các bộ test. Mỗi bộ test là một xâu ký tự S được
viết trên 1 dòng.
T, S thỏa mã... |
a2cbade227388288ef7b89338323bac5e97e2987 | 7a8981e990fd0d18f55166732f7f8d8b8e011a66 | /general_api.cpp | c275c6327108d2fa28620607ee8f0f342f2afb1b | [
"BSD-2-Clause"
] | permissive | vaefremov/otus_hw_01 | c7308265da79aed59b9103531389bf4da9e0a342 | dc96d0cf875a61857772111bae4330e9792677b4 | refs/heads/master | 2021-05-17T14:13:50.697783 | 2020-04-02T20:18:56 | 2020-04-02T20:18:56 | 250,815,344 | 2 | 0 | CC0-1.0 | 2020-05-12T14:01:17 | 2020-03-28T14:28:16 | CMake | UTF-8 | C++ | false | false | 271 | cpp | general_api.cpp | #include "general_api.h"
#include "config.h"
int OTUS_HW::version_patch()
{
return PROJECT_VERSION_PATCH;
}
std::string OTUS_HW::version_str()
{
return std::string("Version: ") + VERSION_NUMBER;
}
std::string OTUS_HW::message()
{
return "Hello World!";
}
|
6b915da71d91f1e9a174e24386c58142195699e8 | f294b35936de194f02aacb537092a12c46be9450 | /SE_Level5_OtherNote_OwnProject/OtherNoteSJ/OtherNoteSJ/Character.h | dee37961363b19f31ebd9135d0ea4ca826c2ed15 | [] | no_license | Namsulee/Parkcom | 18601b1a359b144dc88761984318035d592c000a | 52784846e4630f102d0ca6bf6a37900bf922658b | refs/heads/master | 2021-09-06T02:08:29.153506 | 2018-02-01T15:01:39 | 2018-02-01T15:01:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 289 | h | Character.h | #pragma once
//Character.h
#ifndef _CHARACTER_H
#define _CHARACTER_H
#include "Contents.h"
class Character : public Contents{
public:
Character();
Character(const Character& source);
virtual ~Character() = 0;
Character& operator = (const Character& source);
};
#endif //_CHARACTER_H |
cc46e59afc817533550a8a3bf4893fcfda6925e7 | 7586457f3282ad0535042b0726b8d922034a3a7e | /libinitd/initd_state.cpp | e450941721b8db9890fe2af0ca6878fddb6c9920 | [] | no_license | gfv/initd | 461934c26b7bb899f1f679b57db8444a7ead6b24 | afe71ea6ad0653031268818eea293673cd93b614 | refs/heads/master | 2021-01-16T19:58:12.860232 | 2014-03-18T21:40:35 | 2014-03-18T21:48:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,894 | cpp | initd_state.cpp | #include "initd_state.h"
#include "tasks/create_async_task_handle.h"
#include "task_description.h"
#include "state_context.h"
#include "task.h"
#include "make_unique.h"
#include <sstream>
#include <stdexcept>
initd_state::initd_state(state_context& ctx, sysapi::epoll& ep, task_descriptions descriptions)
: ctx(c... |
a8effede8d061f7f0706cd44ebcab4e322a830b8 | 6820084832a4854f555ab0ddc6e4a8a468ab3fe9 | /knapsack.cpp | 064d647e53b34247bf52df84862912949bde3824 | [] | no_license | jass-jass/data-struct | 361fae2596f56d6952d6110586fb0630242d0380 | 428f15f60eff5e142093e26e73a20d6d1d58b3d8 | refs/heads/main | 2023-05-14T04:22:51.570513 | 2021-06-08T15:38:10 | 2021-06-08T15:38:10 | 370,971,177 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,449 | cpp | knapsack.cpp | #include<bits/stdc++.h>
using namespace std;
typedef struct item
{
char label;
double weight, value;
}Item;
typedef struct fract
{
int num, den;
}Fract;
void input(int n, Item item[])
{
for(int i=0; i<n; i++)
{
cin >> item[i].label >> item[i].weight >> item[i].value;
}
}
void get_value_per_unitwt(int n, It... |
f16ebf780b18d1d795cd16532354cf13c3f5868e | c8d99ad1e7d16b13494af841ceb1dba6a83a43fd | /kccpZadania/ZadParzysteCase.cc | 950c4bcdae6225101259e2db53504f8f226f773e | [] | no_license | dawidczerwien/cppLaboratorium | 42cfaad985d60882e070922a1f8cd7858eef01c3 | c76e66f7a1fae9c85c9f78fa59942355f8d99a63 | refs/heads/main | 2023-05-25T18:40:20.273857 | 2021-06-08T16:22:45 | 2021-06-08T16:22:45 | 341,860,589 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,353 | cc | ZadParzysteCase.cc | #include <iostream>
using namespace std;
void funkcjaA(int x) {
// 1 & liczba parzysta zwraca 0
// 1 & liczba nie parzysta zwraca 1
// Przykład dla liczby 7
// 1 & 111 zwraca 1
// Przykład dla liczbt 8
// 1 & 1000 zwraca 0
if(x & 1) cout <<"Liczba nieparzysta."<< endl;
else cout <<"Liczba parzyst... |
a9545b52742b31538a7e3bbdce0ff65a95554561 | e50b5f066628ef65fd7f79078b4b1088f9d11e87 | /llvm/tools/clang/test/CXX/basic/basic.def/p2.cpp | 950fd03a1ff531ebd2af47ececcc9c8d075c7048 | [
"NCSA"
] | permissive | uzleo/coast | 1471e03b2a1ffc9883392bf80711e6159917dca1 | 04bd688ac9a18d2327c59ea0c90f72e9b49df0f4 | refs/heads/master | 2020-05-16T11:46:24.870750 | 2019-04-23T13:57:53 | 2019-04-23T13:57:53 | 183,025,687 | 0 | 0 | null | 2019-04-23T13:52:28 | 2019-04-23T13:52:27 | null | UTF-8 | C++ | false | false | 180 | cpp | p2.cpp | // RUN: %clang_cc1 -std=c++1z -verify %s -Wdeprecated
namespace {
struct A {
static constexpr int n = 0;
};
const int A::n; // expected-warning {{deprecated}}
}
|
e601e98f42547cd9f89de6cab5ee5abc27bd90e3 | 1f0a3c613762eb242d067be95a08f8b3c16ab6eb | /src/comparator.cpp | 6c42436bbb6b6639a12b9b018af44fb8aa98e38d | [
"MIT"
] | permissive | andersfylling/sorting-nine-inputs-requires-twenty-five-comparisons | 05e9df652794f88120a1fe1624220387dd4d0d1b | b7a89507aa81387c384293c2d1a1d06505226b14 | refs/heads/master | 2023-04-14T18:56:23.273497 | 2021-04-10T17:35:00 | 2021-04-10T17:35:00 | 255,985,619 | 8 | 0 | MIT | 2020-04-21T13:20:36 | 2020-04-15T17:11:47 | CMake | UTF-8 | C++ | false | false | 289 | cpp | comparator.cpp | #include <sortnet/comparator.h>
#include <sortnet/io.h>
namespace sortnet {
void Comparator::write(std::ostream &f) const {
binary_write(f, from);
binary_write(f, to);
}
void Comparator::read(std::istream &f) {
binary_read(f, from);
binary_read(f, to);
}
} // namespace sortnet
|
f06953199dd7073d21e77bd2d80e4c6ff40eb924 | 8fd935d0bcf03a176dc1c042602e731aab016f43 | /libvis/src/libvis/external_io/colmap_model.h | 6fc2a8bf3be8a816d98322819eaede27565e9dc9 | [
"BSD-3-Clause"
] | permissive | ETH3D/badslam | 9ce088d96672ee5385f721928d3e6536778e1574 | c66bdc841658cc04f9feae229c746b32f4284102 | refs/heads/master | 2022-07-08T05:39:08.983448 | 2022-05-11T19:12:04 | 2022-05-11T19:12:04 | 192,239,549 | 691 | 124 | BSD-3-Clause | 2022-04-27T23:52:53 | 2019-06-16T21:43:54 | C++ | UTF-8 | C++ | false | false | 5,047 | h | colmap_model.h | // Copyright 2017, 2019 ETH Zürich, Thomas Schöps
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the ... |
fe6adf664d6d6fbfe05f5187f9b99a16f6fce550 | 629d859edf65182cf430cc4a6e4b40e628b26cf9 | /算法题/08最小路径和.cpp | 15343863d2df8c543d061be7784efb1fdc8bc1fd | [] | no_license | ADreamyj/cpp | 8f0a0622afc4bb7c764083634a7951818ceedfa3 | c4672b3f8b3aa51a75741f030597cb17574b3a1c | refs/heads/master | 2020-04-03T15:25:20.448530 | 2019-10-06T12:32:20 | 2019-10-06T12:32:20 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,471 | cpp | 08最小路径和.cpp | #define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<vector>
#include<algorithm>
//题目:给定一个m*n的网格,网格用非负数填充,找到一条从左上角到右下角
//的最短路径,每次只能向上或者是向下运动
//方法:动态规划
//状态:
// 子状态:从(0,0)到达(1,0),(1,1)....(m - 1,n - 1)的最短路径
// F(i,j):从(0,0)到达F(i,j)的最短路径
//状态递归:
// F(i,j) = min{F(i - 1 , j) , F(i,j - 1)} + (i,j);
//初始化:
//... |
6c11abdb7741cd2178712575d6b4ed5bd2e14b77 | 984f34ee3687115f9f753437cc60e3ff9ec50394 | /linked_list.cpp | 18e673f0ea1c82ed77a8a4fa6187a88822d69eaa | [] | no_license | varunswing/datastructure | bb360c37ae9c51c011c44885335cf4cb667894a9 | 2328f0d625428fd22e40431e308292eeb1ee375c | refs/heads/master | 2020-07-25T09:37:34.065568 | 2019-12-05T16:22:17 | 2019-12-05T16:22:17 | 208,248,124 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 926 | cpp | linked_list.cpp | #include <iostream>
#include <stdlib.h>
using namespace std;
typedef struct node{
int val;
struct node* next;
}NODE;
NODE* head = NULL;
NODE* node = NULL;
NODE* temp = NULL;
void printList(NODE* head){
node = head;
while(head){
cout << node->val << " ";
node = node->next;
}
c... |
a28e673a61a625892600d339e1808c374f11816f | c085fc99b6a52b0455ff7bf5ae2ac7ad391b79ef | /feed-o-nator3000.ino | eacd60d9c271d4521302bc56900c5d593adddafa | [] | no_license | L-Fiori/PMR3402 | 7805c4b5b46dbed697c19795ea63c89263bb5340 | cffe2927bf31302ec4623999baa92720894d86dd | refs/heads/master | 2023-06-21T11:37:52.192725 | 2021-07-19T22:35:04 | 2021-07-19T22:35:04 | 384,320,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,352 | ino | feed-o-nator3000.ino | // Definicoes do sistema
#include "definicoes_sistema.h"
// Componentes
#include "buzzer.h"
#include "modulo_bluetooth.h"
#include "relogio.h"
#include "servo_motor.h"
// Bibliotecas
#include <EEPROM.h>
/***********************************************************************
Pinos
*********************************... |
7e3120d72475aa8f9793e24a973a289c1073330f | 336e7243c6b286f0937c9898ca48e0b54413387d | /libcoro/test/Selector.cpp | f951f29540d9d69d68ac5e39adc65f60f6716c93 | [
"MIT"
] | permissive | asdlei99/libcoro | a20f83a57645ca7bbfa2433e519df901deecf643 | 8cf2544bba9377e495d648a1cbfc94df781c1e93 | refs/heads/master | 2022-02-02T01:15:50.835598 | 2018-12-20T01:50:32 | 2018-12-20T01:50:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,766 | cpp | Selector.cpp | /*
* Copyright (c) 2014 Matt Fichman
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publis... |
0aeeb8bc2e5bd7ff9ffcc2f63d7964e0274abcc6 | fff771a3bcd6aa3a45de7cd248a80091bb22e9d8 | /Source/Editor/View/WorldEditorView.cpp | 3407abe841c7175b6db7301924d04638293b320f | [] | no_license | Blodjer/B2D | ba9e495d8e662f4d882c5b903a3b8aa422e322bf | f091d1ec72b14bdfb110e2071a27a723dd1c5d4c | refs/heads/master | 2023-08-02T09:16:12.695209 | 2021-04-14T15:38:10 | 2021-04-14T15:38:10 | 115,878,910 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,721 | cpp | WorldEditorView.cpp | #include "B2D_pch.h"
#include "WorldEditorView.h"
#include "GameEngine.h"
#include "Graphics/GHI/GHIRenderTarget.h"
#include "Graphics/OpenGL/OpenGLTexture.h"
#include "Graphics/Renderer/WorldRenderer.h"
#include "Graphics/RenderManager.h"
#include "../EditorModule.h"
#include "Graphics/Viewport.h"
#include "Game/Comp... |
b6f9cc79b5fd414a1e8340d6d4f1ae2afc11b5c4 | 6540e55de679a240681ede4db4380ecf8610c926 | /snake.cpp | ef6cc7a5e84a88198c5d61cf725b991e83cfada9 | [] | no_license | fedronic-louis/Louis | 8a79874f98b482f6df84627b1f7ea81dec88c83d | 5f77666d9e114db8a120cbd1c2714e043849721f | refs/heads/master | 2020-09-29T22:24:00.363821 | 2020-01-10T11:08:41 | 2020-01-10T11:08:41 | 227,136,285 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 224 | cpp | snake.cpp | #include "snake.h"
#include "cat.h"
#include "carnivores.h"
#include <string>
#include <iostream>
using namespace std;
/**
* @brief Snake::Snake
*/
Snake::Snake()
:Carnivores (0,"Human", 0, "chat", 1,1,2,2,500)
{
}
|
7b1735bf5a0e91dffc42be2612d698c961ade65c | 27a7b51c853902d757c50cb6fc5774310d09385a | /[Client]LUNA/cHousingMgr.cpp | 8a4414199d341896600b90859a0c20e91ffd5356 | [] | no_license | WildGenie/LUNAPlus | f3ce20cf5b685efe98ab841eb1068819d2314cf3 | a1d6c24ece725df097ac9a975a94139117166124 | refs/heads/master | 2021-01-11T05:24:16.253566 | 2015-06-19T21:34:46 | 2015-06-19T21:34:46 | 71,666,622 | 4 | 2 | null | 2016-10-22T21:27:35 | 2016-10-22T21:27:34 | null | UHC | C++ | false | false | 137,117 | cpp | cHousingMgr.cpp | #include "cHousingMgr.h"
#include "MouseCursor.h"
#include "MHMap.h"
#include "npc.h"
#include "GameResourceManager.h"
#include "ObjectManager.h"
#include "MoveManager.h"
#include "tilemanager.h"
#include "ObjectStateManager.h"
#include "AppearanceManager.h"
#include "Furniture.h"
#include "MouseEventReceiver.h"
#incl... |
2e6168c1ad3b5b058514996a941abe0138f4df95 | 98365b18c3e1bb3f0e7ab8242cc51d0f8cd133be | /src/MySensorsToolkit/Sensor/ButtonSensor.h | 476b6dc450245be9e694ac87b0882e6522195455 | [] | no_license | koson/MySensorsToolkit | dcac38a5e664e8439bf06fe0ff1df5549743d52f | ab4580c2abc748c9938d8de6c2a1a2b593e51bde | refs/heads/master | 2023-08-15T00:45:12.496137 | 2021-09-18T15:04:56 | 2021-09-18T15:04:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 359 | h | ButtonSensor.h | #pragma once
#include "SensorBase.h"
#include "SensorValue.h"
namespace mys_toolkit {
class ButtonSensor: public SensorBase
{
uint8_t pin_;
bool lastState_ = false;
Message sceneMsg_;
bool getTripped_() const;
bool begin_() override;
unsigned long update_() override;
public:
ButtonSensor(uint8_t senso... |
729fc63e848059f4fd9f3d0af9e2437af44fafac | 1141ce027f2a7222557079312e86913e85994a1b | /Source/autonomoustangobot/app/src/main/cpp/octomapcustomization/NavigationNode.cpp | 35f1cc3916e602f481d4a67fcc4b48376bb297fc | [] | no_license | jannismoeller/AutonomousTangoBot | bb5e6f07ac35376d3dd1f65b54ba96aecf43d85e | 206e9e7f5dca2b2326100538d4c3a04ec70da3b6 | refs/heads/master | 2021-01-01T06:31:55.132830 | 2017-12-11T12:20:24 | 2017-12-11T12:20:24 | 97,450,866 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,584 | cpp | NavigationNode.cpp | #include "NavigationNode.h"
namespace octomapcustomization{
void NavigationNode::deallocChildren() {
delete[] children;
children = NULL;
}
void NavigationNode::allocNavigationInformation() {
assert(navInfo == NULL);
navInfo = new navigation_information;
}
... |
8775624680b0792b2eebb7bfe044e77f2cee9071 | b154b5de040cef45edf6fec351243a3a73d833bc | /15.go/20.cpp | 7eee0e2d51cca58db36b375218cd9ac64da60251 | [] | no_license | yangxiaox/code | a6f2d652b847a746ed303c8dffeaf7fb758d9ecd | d8f93eddedc153d02903c8eb8f7641b096d80aaa | refs/heads/master | 2021-09-10T14:04:18.857186 | 2018-03-27T13:34:09 | 2018-03-27T13:34:09 | 116,806,676 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,571 | cpp | 20.cpp | /*************************************************************************
> File Name: 20.cpp
> Author:
> Mail:
> Created Time: 2017年11月23日 星期四 23时37分13秒
************************************************************************/
#include<bits/stdc++.h>
using namespace std;
struct UnionSet {
int *father, *s... |
cc66c1d600136aa3456b1104bc7e1b9b38e202e5 | ab570cfbba5d90e73727dca01008e43029a42eae | /main.cpp | 7645f3f7c2bd8b9cbb9b64da078d1be6dc5580d0 | [] | no_license | rileym65/Casino | 3adfbdf4501f0c55191c031a0ffe3615b30b8cfc | 6b73002fdfebbda9ca490774b941f561cb73a049 | refs/heads/master | 2020-08-08T22:08:40.508213 | 2019-10-09T13:49:34 | 2019-10-09T13:49:34 | 213,931,230 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 73,167 | cpp | main.cpp | #include <stdio.h>
#include <stdlib.h>
#include "header.h"
#include "poker.h"
#include "aruba.h"
#include "bacc.h"
#include "bahama.h"
#include "bingo.h"
#include "bj.h"
#include "bonus6.h"
#include "boston5.h"
#include "card7.h"
#include "carib.h"
#include "chuck.h"
#include "craps.h"
#include "dstud.h"
#include "face... |
010aa84781894ac8263b42aeeb7de6ec99a268a1 | 89228edb19562a23b22adc0ebaba04018de164d7 | /src/A.hpp | 479efa20df33167d4dab0db5e2aa15501028296f | [] | no_license | mskoenz/empty_cpp_template | 6069b6bc3667855a8b8627baa578ea22b042dbde | 3751c4ef0f0dff0153e3afcaf735b03dfa5cbcc6 | refs/heads/master | 2020-12-24T07:41:26.901507 | 2016-08-25T09:46:55 | 2016-08-25T09:46:57 | 57,902,826 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 505 | hpp | A.hpp | /** ****************************************************************************
* \file
* \brief
* \author
* Year | Name
* --------: | :------------
* 2016 | Mario S. Koenz
* \copyright todo
******************************************************************************/
#ifndef _A_HPP_GUARD
#... |
ab74ccd9e0b29d60eade13c47fb69e6654d809f2 | f13d687165ece6fdaad51e5832a70ccf8fde4454 | /tools/qmdilib/src/actiongrouplist.cpp | 2e19c832d4b7fd803c0e50d1e7dd2db22891b5f3 | [] | no_license | BackupTheBerlios/devqt-svn | ba1db2dcb7ac6b63f4e4983e634cda20cacaf1b5 | cb93cdbe724f77e5dcd5d93670b84f35717a3204 | refs/heads/master | 2020-12-24T17:17:13.759741 | 2006-05-07T18:10:47 | 2006-05-07T18:10:47 | 40,441,100 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,105 | cpp | actiongrouplist.cpp | #include <QString>
#include <QAction>
#include <QMenuBar>
#include <QToolBar>
#include <QMainWindow>
#include "actiongrouplist.h"
/**
* \file actiongrouplist.cpp
* \brief Implementation of the action group list class
* \author Diego Iastrubni (elcuco@kde.org)
* License LGPL
* \see qmdiActionGroupList
*/
/**
... |
03338061f0978fafc354b8373aacd6d507c0125b | 68032b48023e9daff30e446fee2f83886cf66d57 | /C++项目/01/源程序/Login.cpp | 5e27a47db357ba35261f7d410a28ac322f13b776 | [] | no_license | std2312/C-PLUS-PLUS | c77c1bb7fe60fd39bc4d576300d6817e543b27bd | 5a51b124a3c7073b80579ff3b1ad79cacb85b657 | refs/heads/master | 2021-05-11T04:49:15.667040 | 2018-01-18T08:03:44 | 2018-01-18T08:03:44 | 117,946,728 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,623 | cpp | Login.cpp | // Login.cpp : implementation file
//
#include "stdafx.h"
#include "capture.h"
#include "Login.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CLogin dialog
CLogin::CLogin(CWnd* pPare... |
171fd191f5261578274c2bf6b8598174aa9c118a | 4d0e3801314e728ae0d1ae4b9b029794dc771e5c | /cf/1520/d.cpp | a0d89c93758ef8beabd46603e00a5315b8a9ef2e | [] | no_license | Perinze/oi | 8880bb028d8108eba110f0dc2b99a0de74902825 | a5cf058d661cb0c276eb126f8f809343b8937d0d | refs/heads/master | 2023-06-21T05:48:00.496697 | 2021-07-22T16:24:19 | 2021-07-22T16:24:19 | 329,524,963 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 569 | cpp | d.cpp | #include <cstdio>
#include <cstring>
#include <algorithm>
#include <map>
using namespace std;
typedef long long ll;
ll n;
int main()
{
ll T;
scanf("%lld", &T);
while (T--) {
map<ll, ll> group;
scanf("%lld", &n);
ll x;
for (ll i = 1; i <= n; i++) {
scanf("%lld", ... |
382d4a4b793d9aa58dbb75074a403171f7f18481 | 69dd4bd4268e1c361d8b8d95f56b5b3f5264cc96 | /GPU Pro5/06_Compute/Object-order Ray Tracing for Fully Dynamic Scenes/beScene/source/bePipePool.cpp | 7bd1bdad0862666e68af48a502e5bfe5347d71e5 | [
"MIT",
"BSD-3-Clause"
] | permissive | AnabaenaQing/Source-Code_ShaderX_GPU-Pro_GPU-Zen | 65c16710d1abb9207fd7e1116290336a64ddfc86 | f442622273c6c18da36b61906ec9acff3366a790 | refs/heads/master | 2022-12-15T00:40:42.931271 | 2020-09-07T16:48:25 | 2020-09-07T16:48:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 846 | cpp | bePipePool.cpp | /****************************************************/
/* breeze Engine Scene Module (c) Tobias Zirr 2011 */
/****************************************************/
#include "beSceneInternal/stdafx.h"
#include "beScene/bePipePool.h"
namespace beScene
{
// Constructor.
PipePool::PipePool(beGraphics::TextureTargetPool... |
bb22e78a6aa8308fcd08e7b8162a56000c0e249b | 5ad63064dc7c3c671fb337fc103422c880bb1319 | /2013/J.cpp | 9c4dfea6ca2e1e122b7b637f2e82b76570885199 | [
"MIT"
] | permissive | webturing/ahACMSolutions | 936b9b71f6d4f890935d8797c4083c377216dceb | 865f36142af0f2e235f5982e349f5999f31883d1 | refs/heads/master | 2021-07-04T13:58:44.025971 | 2020-09-28T14:26:30 | 2020-09-28T14:26:30 | 179,271,229 | 18 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 471 | cpp | J.cpp | #include<iostream>
using namespace std;
#ifdef _WIN32
#define i64 __int64
#else
#define i64 long long
#endif
i64 find(i64 x, i64 y) {
if (x == 0 || y == 0) return 0;
if (x < y) swap(x, y);
return x / y + find(x % y, y);
}
int main() {
i64 a, b, c;
while (cin >> a >> b >> c) {
if (a == 0 &... |
52b3135e53456c49a3613397d745eb1298af8e8c | 28fffaee7a61cd7772726c2d55a8a66c9da8aabe | /codeforces/div 2/668/c.cpp | 95a4c2bc9285dc0a725a4627406b737b562a13ea | [] | no_license | Ayush-Bhatnagar/cp-practice | 93eeca08ba9f625cd3f25ca6180e42dac59a151a | 10b756f107e6ae81fa8217cee7321c28382f8644 | refs/heads/master | 2023-09-04T15:47:49.468513 | 2021-05-27T12:01:20 | 2021-05-27T12:01:20 | 290,806,380 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,034 | cpp | c.cpp | /*
Created by: Ayush Bhatnagar
*/
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve(int tc)
{
int i, n, ans = 0, k, c1 = 0, c0 = 0, cq = 0, strt, end, flag = 0;
cin>>n>>k;
string s, s1;
cin>>s;
for(i=0;i<k;i++) {
s1.push_back('?');
}
//cout<<s1<<"\n... |
14a01dd4306c7356ae1f63672a9a5577c614855d | f5bfe409b95295b94ea10b2f422b5a1abc8fb469 | /Clustering/ClusterColors.cpp | 26b6f2d9e36e610ddbc8d29439d851ddf494fd6c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nocnokneo/PatchBasedInpainting | b3347ee02125d0129c4cafb2e3af6954d79975a4 | 9d21744e749ebf8d5329007ab8eabb7e5fe0e604 | refs/heads/master | 2021-01-16T19:40:38.215885 | 2012-09-14T18:47:28 | 2012-09-14T18:47:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,066 | cpp | ClusterColors.cpp | /*=========================================================================
*
* Copyright David Doria 2011 daviddoria@gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*... |
f9236730e8c604fcaf2c9846936d6ff07c989a95 | 138127182d375dcbd22ef16766ac5a5ea00727e3 | /Product of Array Except Self.cpp | b95aea424f36d221a89e0822bc9d0e4a22f35a98 | [] | no_license | sudhir5595/LeetCode_30Days | ebdc940b19b7b433d2d88a4565a356e4fd841666 | f73f03ecd4b4773432a34f6a34fe9e8a8bef7b41 | refs/heads/master | 2022-09-06T23:48:28.868170 | 2020-05-14T05:08:23 | 2020-05-14T05:08:23 | 255,612,745 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 646 | cpp | Product of Array Except Self.cpp | class Solution {
public:
vector<int> productExceptSelf(vector<int>& nums) {
int n = nums.size();
vector <int> res(n);
vector <int> arr1(n);
vector <int> arr2(n);
arr1[0] = nums[0];
for(int i = 1; i<n; i++){
arr1[i] = arr1[i-1]*nums[i];
}
... |
bc10590d51cee805ec3cd6657962c2181ea88d16 | c83f1f84d00b9fa2640a362e59c4322d6e268116 | /use a cabeça/State/State/src/Util/Util.h | df632504f01dbdb9853dd59e83dda6053780c225 | [
"MIT"
] | permissive | alissonads/Design-Patterns-cplusplus | 9a2936fa7d3cd95c6816e44511eac132e10e96be | 0e56fbc0c1877b9edf2ad5efafbb9a01fa94d748 | refs/heads/master | 2020-06-28T01:06:45.933658 | 2019-08-01T18:39:55 | 2019-08-01T18:39:55 | 200,101,824 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 446 | h | Util.h | #pragma once
#include <exception>
#include<string>
class UnsupportedOperationException : public std::exception
{
public:
UnsupportedOperationException() throw() :
std::exception("Unsupported Operation Exception", 1){}
UnsupportedOperationException(const std::string message) :
std::exception(message.c_str()) {}... |
e5d5c4f143ede1676bb334ba6bc4383fcf3f9dfa | e3d6c7e56fd6f080d811a12603c77fe7c4cbd74f | /Practice/ABC187_C_1-SAT_rev1.cpp | d2636fe8ac9fd7e267a1214b118114ea4a4afc9a | [] | no_license | roshihie/At_Coder | d75ac55aef6a74a3e70cede4352c2b133e9a4c21 | 50757915af9e3ac97dbde3651dc3948aca6e3388 | refs/heads/master | 2023-03-16T07:56:48.058067 | 2023-03-11T21:50:54 | 2023-03-11T21:50:54 | 222,206,645 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 512 | cpp | ABC187_C_1-SAT_rev1.cpp | #include <bits/stdc++.h>
using namespace std;
void input(unordered_set<string>& rusStr)
{
int sizStr;
cin >> sizStr;
for (int nx = 0; nx < sizStr; ++nx)
{
string str;
cin >> str;
rusStr.insert(str);
}
}
string isExistStr(const unordered_set<string>& crusStr)
{
for (auto str : crusStr)
if ... |
dc2b4139cb84ff38458bd2403fcebfb80123dd07 | 07cb4c42b4042ef40ec16dc3086c8ea273904b33 | /Person.h | aaf1a23070270e0f9995bd42d4deff787464a621 | [] | no_license | wiel8526/Elbert_CSCI2270_FinalProject | e1913a8a93291e799e6314bec8a756ee4c0233c5 | 7a9f4c96d6ca0159f322cfff6501480e878e56b0 | refs/heads/master | 2016-09-05T12:44:23.190545 | 2015-04-28T06:49:12 | 2015-04-28T06:49:12 | 33,961,666 | 0 | 1 | null | 2015-05-03T20:38:37 | 2015-04-14T23:08:09 | C++ | UTF-8 | C++ | false | false | 765 | h | Person.h | #ifndef PERSON_H
#define PERSON_H
#include <string>
struct node{
std::string full_name;
std::string nickname;
std::string number;
std::string address;
node *next;
node *previous;
};
class Person
{
private:
node *head;
node *tail;
node* searchList(node * node, std::string Nickname);
public... |
e88ea4f78f0fe6943cda5d570a55b6c13cd77a70 | c2ccc4b6d2c8d61fce2e97edf29cfee2b0c49d5e | /Source/BomberRats/RangePowerup.cpp | 1a1f19eba44234be73c3c5fc7ea9565100b1c2f1 | [] | no_license | mholtkamp/bomber-rats | 2a6c5e8a264c54dd9be7e9baa4910cf7e0b59ead | 41df218d9b88b59f6994d044b06daa2ee5c20006 | refs/heads/master | 2021-01-10T06:32:56.674779 | 2015-11-09T18:28:19 | 2015-11-09T18:28:19 | 45,856,315 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 817 | cpp | RangePowerup.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "BomberRats.h"
#include "RangePowerup.h"
#include "Rat.h"
ARangePowerup::ARangePowerup()
{
static ConstructorHelpers::FObjectFinder<UStaticMesh> ofMesh(TEXT("StaticMesh'/Game/StaticMeshes/explode_powerup.explode_powerup'"));
... |
dc1a292a0372a40707d6f6396763d5e63b573fb9 | c2b32f5f8ab3b7b5e57256627a536a12945a8cab | /src/network/objects/channels/i_k_na.h | f015db72523dbfbe0bffa98f5a08363ca4220662 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | timblakely/bigbrain | dc37c93d06778c908ea88469c89822ed61a5e9c5 | 69dcf775c450c867c8c65c1b05e06cb6d3a7e5d4 | refs/heads/master | 2021-01-13T01:22:52.711965 | 2012-12-28T18:53:13 | 2012-12-28T18:53:13 | 37,147,799 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,577 | h | i_k_na.h | /*
Copyright 2012 Google Inc. All Rights Reserved.
Author: blakely@google.com (Tim Blakely)
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... |
ac0d8d282d77a220599e70e4b803d38d9babd888 | 8bfbccc253fde3850d96959fc747c38e698c8736 | /src/samplingbuffer.cpp | 6a5b3907cf3982d9cf34864e67e3b36637cc19ff | [] | no_license | sidneydijkstra/PADEngine | b61cd89056e4b4ad19a94660419d1eccf34fda2c | 4499c64d4c14bf42f597e6f06c19da733de84255 | refs/heads/master | 2023-05-10T15:23:41.044506 | 2021-05-18T13:38:42 | 2021-05-18T13:38:42 | 297,615,673 | 0 | 1 | null | 2021-01-18T14:35:39 | 2020-09-22T10:33:50 | C | UTF-8 | C++ | false | false | 1,475 | cpp | samplingbuffer.cpp | #include "samplingbuffer.h"
namespace pad {
SamplingBuffer::SamplingBuffer() : ImageBuffer() {
this->setupResources();
}
VkImageView SamplingBuffer::getImageView() {
return this->_colorImageView;
}
void SamplingBuffer::recreate() {
vkDestroyImageView(DeviceHandler::getInstance()->getLogicalDevice(), _co... |
9e0552e24d14591a814e402fa3a2effd0cd9756a | 736152af95added05839b34aa5f93a7cef57c727 | /DI/cpp/identify.cpp | 68ba488f257be3f820298e411d92bf8513727ef2 | [] | no_license | xiangdiuxiu/Scripts | b00f85a4798834d21df3e86dfd3db17d8deb8f2b | b87db9982159df9fbd894b631fcfff4356bc2029 | refs/heads/master | 2021-01-02T09:35:07.513961 | 2013-04-23T01:46:52 | 2013-04-23T01:46:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,640 | cpp | identify.cpp |
//v0.01
//Author: ZhangYet
#include "identify.h"
extern void makeNetwork(network &res, mat & data, double thes)
{
path tmp;
mat cor_res;
//network::iterator it = res.begin();
for(int i = 0; i < data.n_cols; i++)
for(int j = i+1; j < data.n_cols; j++)
{
cor_res = cor(data.col(i), data.col(j));
if(c... |
093d0c3710a748c705b25d2cdbb0098c8ab3a209 | a0d9500c451c089d73429273868f7593c2b1d37c | /src/semicolon.h | dd37eefbcf155e31b118381ba435c10336abf673 | [] | no_license | Bhagpreet/RShell | d945bb33660d88650b592242ed6d7851bce354bd | 746fd87a3a56b2848e27bc03ce90e90897aa6531 | refs/heads/master | 2023-02-21T23:15:25.825441 | 2021-01-23T02:58:56 | 2021-01-23T02:58:56 | 332,074,865 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 401 | h | semicolon.h | #ifndef SEMICOLON_H
#define SEMICOLON_H
#include "shell.h"
class Command;
using namespace std;
class Semicolon : public Shell {
protected:
Command* cmd; // command object that stores the command within
public:
Semicolon();
~Semicolon();
Semicolon(Command*); // passes in obje... |
4388a231275527a14f8de7028d06f6b5ca758e79 | 22253246860203575cbfe6f84df4912adb1e5723 | /main.cxx | 20220cf20457f91431e59efe14e7f3f4ae1389c2 | [] | no_license | Matrixbirds/explore-github | c4886dd23dde9de653b56e461ab7991cb642118f | e5a9aa5affeaaf30f111701c7a0208c059ebbd15 | refs/heads/master | 2020-04-11T17:43:21.837036 | 2018-12-20T17:51:41 | 2018-12-20T17:51:41 | 161,971,882 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,799 | cxx | main.cxx | #include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <cstdio>
#include <cstring>
#include <curl/curl.h>
#include <rapidjson/reader.h>
#include <rapidjson/prettywriter.h>
#include <rapidjson/filereadstream.h>
#include <rapidjson/filewritestream.h>
#include <rapidjson/encodedstream.h>
#include <rapi... |
39b59bed4fb401d51802145c564f157966e50d5d | ad21702fa68fe36cfb370cbc54237c0473dfbc8c | /trunk/NARCS_Control/NARCS_Control/ThreadObj.cpp | b10f6ce6c88792cb42a3aed5e94cc44d035770e6 | [] | no_license | icprog/narcs | 0af0f9780fff60b9d54937755c4df60cb9f033a0 | 604572e3b0f2c21270cb80e3261266716f3b0587 | refs/heads/master | 2020-04-08T08:06:37.470323 | 2016-05-08T19:00:04 | 2016-05-08T19:00:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 552 | cpp | ThreadObj.cpp | #include "StdAfx.h"
#include "ThreadObj.h"
bool ThreadObj::startThread(void)
{
HANDLE temp = NULL;
this->_stopThread = false;
temp = (HANDLE) _beginthreadex(NULL, 0, &thread_starting, dynamic_cast<void*>(this), 0, NULL);
int rc = (uintptr_t)temp;
if (rc == 0){
//failed to create thread
return f... |
94d7bda5fd378eae371b81de2ab17372d0509cb5 | 88b130d5ff52d96248d8b946cfb0faaadb731769 | /document/src/vespa/document/base/documentcalculator.cpp | f4078b772376d3a83a4baadccc3779ea7e774953 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | vespa-engine/vespa | b8cfe266de7f9a9be6f2557c55bef52c3a9d7cdb | 1f8213997718c25942c38402202ae9e51572d89f | refs/heads/master | 2023-08-16T21:01:12.296208 | 2023-08-16T17:03:08 | 2023-08-16T17:03:08 | 60,377,070 | 4,889 | 619 | Apache-2.0 | 2023-09-14T21:02:11 | 2016-06-03T20:54:20 | Java | UTF-8 | C++ | false | false | 1,410 | cpp | documentcalculator.cpp | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "documentcalculator.h"
#include <vespa/document/bucket/bucketidfactory.h>
#include <vespa/document/select/compare.h>
#include <vespa/document/select/parser.h>
#include <vespa/document/select/valuenode.h>
#... |
f64b6f90288bbbe00d59a1fe159ef2c08290b7df | dcaf7fe94da2978f376e8a361aca6200a0e13d04 | /Stage.h | 548b1278b9bcf00a438f665f9b7b5561d39e7390 | [] | no_license | Lumpros/Zombie-Survival | f23207bf5e5af6f9982760ce85389c6135b27f63 | 5a6edecb74d0d8560158b7788156868243e4ef1f | refs/heads/main | 2023-03-05T22:14:46.026808 | 2021-02-20T14:01:18 | 2021-02-20T14:01:18 | 339,237,957 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,163 | h | Stage.h | #pragma once
#include <vector>
#include <SDL.h>
#include "AudioSlider.h"
#include "Texture.h"
#include "Resources.h"
#include "Entity.h"
#include "Player.h"
#include "Menu.h"
namespace PZS
{
class GunBox : public Entity
{
private:
GunIndex index;
Text bullet_count;
int old_bullet_count ... |
3539d0fc2a85a10de49162812b017564878b21c7 | 36183993b144b873d4d53e7b0f0dfebedcb77730 | /Graphics/Graphics Programming Methods/1_4erleben_scripted/source/utils/output.h | e204d1dac9347cba2208e051245a62a33bf56a3e | [] | no_license | alecnunn/bookresources | b95bf62dda3eb9b0ba0fb4e56025c5c7b6d605c0 | 4562f6430af5afffde790c42d0f3a33176d8003b | refs/heads/master | 2020-04-12T22:28:54.275703 | 2018-12-22T09:00:31 | 2018-12-22T09:00:31 | 162,790,540 | 20 | 14 | null | null | null | null | UTF-8 | C++ | false | false | 907 | h | output.h | ////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2002
// Department of Computer Science Copenhagen University (DIKU).
//
// All Rights Reserved.
//
// This software is provided as is WITHOUT ANY WARRANTY; Use it on
// your own risk.
//
// Please send remarks, qu... |
3d379c51370735e27a001aa1f667e8e8fc9edbdd | cf8182ecc88888719cfaff79751834500800151a | /src/shogun/loss/LogLoss.cpp | 4bb16ac9b778c39bfadcac7459f191a8c8a7f947 | [
"BSD-3-Clause",
"DOC",
"GPL-3.0-only"
] | permissive | shogun-toolbox/shogun | 17beb82a04fbf1179d300c4fcd16ee68850ad994 | 9b8d856971af5a295dd6ad70623ae45647a6334c | refs/heads/develop | 2023-03-11T04:46:36.167073 | 2020-12-08T16:56:38 | 2020-12-08T16:56:38 | 1,555,094 | 2,938 | 1,246 | BSD-3-Clause | 2022-08-12T11:12:34 | 2011-04-01T10:44:32 | C++ | UTF-8 | C++ | false | false | 1,618 | cpp | LogLoss.cpp | /*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: Shashwat Lal Das, Fernando Iglesias
*/
#include <shogun/loss/LogLoss.h>
using namespace shogun;
float64_t LogLoss::loss(float64_t z)
{
return (z >= 0) ? log(1 + exp(-z)) : -z + log(1 + exp(z));
}
float64_t LogLoss::fi... |
376ebff2bab2379c7ce4a1895ba213d182b399e2 | 3c16fa08b2fc072c506f476691a235490cb0b78a | /src/tickets_service/db/SiteDescriptor.h | e1623e658d1e586f491cb886140106a8dd5e0814 | [] | no_license | samiavasil/verify_tickets | 14481a9b5f2366707010b95cf1c68da45e80b275 | dc8a5c8efeeddcbdeb0925ff9f047bdffa148593 | refs/heads/master | 2020-12-26T19:47:54.630306 | 2020-08-04T16:46:09 | 2020-08-04T23:50:31 | 237,620,491 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 421 | h | SiteDescriptor.h | #ifndef SITEDESCRIPTOR_H
#define SITEDESCRIPTOR_H
#include "CassTable.h"
class SiteDescriptor : public CassTable
{
public:
typedef enum {
SITE_ID,
NAME,
INFO,
DOORS,
NODE_STATUS,
} Column_t;
SiteDescriptor(QString tableName = "site_descriptor", QString keySpace = QS... |
030aaaf45653ad31da3e01235a3d45c86f31d429 | 2b124aa51a7a476988b67554bde2658b72e703f3 | /tests/src/components/gates/testsComponentFlipFlop.cpp | 008ccf0966287961b64bde46843087d8c1d62fc6 | [] | no_license | arthurteisseire-epitech/OOP_nanotekspice_2018 | 10375bfcba47ac807c377476e9963a59e229bf7e | 5588c0b5de8880be0dad4802c8c6f97590fa73d4 | refs/heads/main | 2023-02-16T16:57:18.833400 | 2019-02-21T15:00:33 | 2019-02-21T15:00:33 | 330,003,055 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,478 | cpp | testsComponentFlipFlop.cpp | /*
** EPITECH PROJECT, 2018
** cpp_nanotekspice_2018
** File description:
** Created by Adrien FABRE,
*/
#include "gtest/gtest.h"
#include "Utils.hpp"
#include "Exec.hpp"
#include "FileParser.hpp"
#include "ComponentInput.hpp"
#include "ComponentOutput.hpp"
#include "ComponentFlipFlop.hpp"
TEST(ComponentFlipFlop, Ini... |
0aa81a8f626c6b8b0b9d2e4256c5c335116d8812 | 8be9ceace5c99ab0425b9d9109873e2cb0358f56 | /multiObjectTexture.cpp | 7719b6075ec287eb90273b81fae355645674a449 | [] | no_license | JChen677/CSCI5607Project | e894bd02f8d7ea3282ae8f1ea86c904fb2067d7b | 7f6875454743a10f8d94af26fab23e68dd50d66a | refs/heads/master | 2023-04-23T20:20:13.040356 | 2021-05-08T23:53:48 | 2021-05-08T23:53:48 | 360,685,722 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 47,440 | cpp | multiObjectTexture.cpp | const char* INSTRUCTIONS =
"***************\n"
"OOPSIES Game.\n"
"\n"
"Enter - Advance the turn to the next step.\n"
"1, 2, and 3 - Select corresponding piece to move.\n\n"
"On your turn you will press 'Enter' to draw a card,\n"
"The card will have a amount to move or variation on movement,\n"
"You will then select th... |
cab8a25105a239f74fb2a9df21509a88ac1a148c | d6b7f2ff0e0960c235e4f98bc6716cd18148d3f0 | /eiTemplate/bits2nums.cpp | daefe3f1d20fcf5fc891622ed0eacebfc9822d51 | [] | no_license | ganlubbq/802.15.3c | d16ebfb1980fd3d5f978c91de419b4489cadb73b | be840ceaab0bf0ddf789be9514569a9ad2fe8f24 | refs/heads/master | 2021-06-22T23:36:18.022187 | 2017-07-20T08:01:11 | 2017-07-20T08:01:11 | 111,549,486 | 1 | 0 | null | 2017-11-21T13:00:36 | 2017-11-21T13:00:36 | null | GB18030 | C++ | false | false | 2,005 | cpp | bits2nums.cpp | //函数描述:将输入的比特序列转换为数字,用于调制函数;
//输入参数:codebits:输入的比特序列;nums:比特转换成的符号; modtype:调制模式 1-BPSK,2-QPSK,3-8PSK,4-16QAM,6-64QAM;Nbits:输入的比特数量
//#include<iostream>
//#include<cmath>
//#include<cstdlib>
#include"genParam.h"
#include "stdafx.h"
using namespace std;
void bits2nums(vector<int> &codebits, vector<int> &nums, int modt... |
541873a6ba87cf3f4f11a3e491544fcb02504913 | 339ef5cc497be3263c2a04b77aaea1ce4e8a799e | /sumFibonacci.cpp | e5cebdffefd90c5b33dbff75bbf5949485840a53 | [] | no_license | emaad-shah/Practice-Problems | dd2e316e555a9ce731aaf85f36028418c556ab57 | 52fca2288b41696a82892aa0dcf861ae6ed5f08c | refs/heads/master | 2021-01-10T18:37:37.232188 | 2014-05-03T22:39:12 | 2014-05-03T22:39:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,059 | cpp | sumFibonacci.cpp | //------------------------------------------------------------
// Copyright: Syed Shah 2014
// Find the sum of the nth fibonacci number
//------------------------------------------------------------
#include <iostream>
using namespace std;
// Return (n + 2)th integer in the sequence
int getN(const int & n1, const in... |
dba5b7bd16c8985c7eda5d9e191fd78d98b78003 | 10f10ff400bab40ebecdcf1873065261f99f7c89 | /Examples/Include/System/Drawing/Rectangle.h | 95675f7a21ac95a9a850e123f047d426a9f84f11 | [] | no_license | aspose-cells/Aspose.Cells-for-C | 86427e34b7c6a032c21b1317ca86453dc84c342c | e0a96a9abde1dcdab41a8c75016f8579ee020d80 | refs/heads/master | 2021-07-09T03:56:06.744625 | 2021-06-24T07:47:05 | 2021-06-24T07:47:05 | 66,553,116 | 14 | 11 | null | 2021-03-24T13:41:30 | 2016-08-25T11:44:03 | null | UTF-8 | C++ | false | false | 2,062 | h | Rectangle.h | #ifndef _SYSTEM_DRAWING_RECTANGLE_H_
#define _SYSTEM_DRAWING_RECTANGLE_H_
#include "System/Object.h"
#include "System/Int32.h"
#include "System/String.h"
#include "System/Drawing/Point.h"
#include "System/Drawing/Size.h"
//#define NEW Aspose::Cells::System::Drawing::Rectangle(0, 0, 0, 0) NEW Rectangle(0, 0, 0, 0);
... |
30efdcf234d347f8ea5b7bdc2119a2e77237fb03 | f5fb39010aec616f37ac24427f6af61dcdfd3756 | /Pokemon_Mystery_Dungeon/Ivysaur.h | 0809a70d22579faa3aa800f1771a9e7f9240b033 | [] | no_license | JinKyong/Pokemon_Dungeon | 08df9ce02362a239525730aaa06aaa46c4bfbc0e | c595cdcb92f822b54e99e1a366f797712ad69475 | refs/heads/main | 2023-07-31T05:01:27.372424 | 2021-10-03T13:00:52 | 2021-10-03T13:00:52 | 384,614,340 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 123 | h | Ivysaur.h | #pragma once
#include "Pokemon.h"
class Ivysaur : public Pokemon
{
public:
Ivysaur();
~Ivysaur();
HRESULT init();
};
|
163f494b4fb27b1c049cbfc65671822bb537c24a | cc21745be89ef87a613a2123d7120619345c2ee4 | /ComputerVision/CVApplicationForm.cpp | 3c6a4aeed3ae8793cc33fd2fe7c8c019253d98cd | [] | no_license | komarovn/ComputerVision | 9492ef227167647f74065593c8011af3b044fff3 | 8ad984896bec6537e6713d9458f84ffd78b7805e | refs/heads/master | 2021-05-16T00:24:58.597307 | 2017-12-12T18:34:46 | 2017-12-12T18:34:46 | 107,000,386 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 32 | cpp | CVApplicationForm.cpp | #include "CVApplicationForm.h"
|
3a3981d2c7532912f9321f6e780393a5276c2385 | a949ca5fd781f526ad292992fd47f4b8bd973d9e | /Graph/CB/DFS_Topological Sort.cpp | c3afa6ead82c916da9932c00feeafa328188469f | [
"MIT"
] | permissive | scortier/Complete-DSA-Collection | 8f20e56b18e4a552aebd04964e8365e01eba5433 | 925a5cb148d9addcb32192fe676be76bfb2915c7 | refs/heads/main | 2023-05-14T14:24:21.678887 | 2021-06-06T18:59:01 | 2021-06-06T18:59:01 | 307,963,617 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,344 | cpp | DFS_Topological Sort.cpp | /*
<<<<<<<<<<<---APPROACH-->>>>>>>>>>>>>>
Topo Sort applies on Directed Acyclic Graph (DAG).
*/
#include<bits/stdc++.h>
using namespace std;
// template<typename T>
class Graph {
map<int, list<int> >mp; //can't be unordered map as
public:
void addEdge(int x, int y)
{
mp[x].push_back(y);
// mp[y].push_back(x)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.