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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7361396b2aabe951609163bc56256da19fc51dac | 189c3d6d3fd536c95d9a14a34c7de66254dde147 | /ActCrit.cpp | c82dc621a0f189a5c9f414439bb8c46c7cfb845a | [] | no_license | andreseqp/Clean.ActCrit | d1f09407cb01d2692bf38180d9fb180ffcc70b52 | 03f1687d6d0ed02f58fdf2616eb0e677d87ba7b2 | refs/heads/master | 2022-06-16T15:59:55.702956 | 2022-03-10T16:38:48 | 2022-03-10T16:38:48 | 128,222,337 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,536 | cpp | ActCrit.cpp | // ActCrit.cpp : Defines the entry point for the console application.
//
/*=============================================================================
ActCrit.cpp
===============================================================================
This is the main file of the project exploring a simple learning model in ... |
81a82192c38f14b5b403c4440421e7dc72f4e26b | df91c158ef9a810bd9e64d112df72a23c4d6546e | /poj1017.cpp | 580012c4accbd56014a2139e02271a07b28b7441 | [] | no_license | laughinging/poj | 4d6f6cf458ef8bb51cf8570201203130b319f806 | 5e569cf72d4d5a8cfc215528bbbfab9d6d0e4353 | refs/heads/master | 2021-01-20T00:15:06.909255 | 2018-04-20T13:44:07 | 2018-04-20T13:44:07 | 89,102,991 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 656 | cpp | poj1017.cpp | #include <iostream>
#include <cstdio>
#include <cstring> // memset
#include <algorithm> // sort
using namespace std;
int s[4] = {0, 5, 3, 1}; // number of 2*2 after i 3*3
int main() {
int a, b, c, d, e, f;
while (cin >> a >> b >> c >> d >> e >> f) {
if (a + b + c + d + e + f == 0) break;
int ... |
f3809475b554a30bddd870382a42596d316ae026 | 0f6b7bc5f36a4c119a9bdadfb9be26b1e556aeb0 | /epoll.cpp | 4900f323900866b199a1824ce5821fbc2d1fcb5e | [] | no_license | FlySky-z/WXTouringServer | b2878bc7e38415877df6eb61ca170d840f304033 | 25680bb336f405118135ed136c7ebf0667dfded9 | refs/heads/master | 2022-11-07T09:28:15.900360 | 2020-06-26T08:53:24 | 2020-06-26T08:53:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,217 | cpp | epoll.cpp | //
// Created by Jason.Z on 2020/6/24.
//
#include "epoll.h"
#include "threadpool.h"
#include "util.h"
#include <sys/epoll.h>
#include <cerrno>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <iostream>
#include <cassert>
#include <sys/socket.h>
#include <netinet/in.h>
#include <cstring>
#include <queue>
#incl... |
2c68953c44426c2cb5a4f69ee540c271d09f96e9 | 86a506a4158ff27e4ff4947f5fd1aa790900463e | /LibWorkspace/JNAPipeServerDLL/MT4PipeClientDLL/MT4PipeClientDLL.cpp | 5c040ec561dbe7091f96537f4c23194f697235f4 | [] | no_license | xiaozuwei/FinancialProjectsGroup | 67df462c93c96c840e8d6b97dab1a663e5e07992 | 079a51689b5d3aaf4284d139ee69155dceff9f03 | refs/heads/master | 2021-01-15T08:26:59.660188 | 2015-03-15T09:35:51 | 2015-03-15T09:35:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,644 | cpp | MT4PipeClientDLL.cpp | // MT4PipeClientDLL.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include <iostream>
#include <windows.h>
using namespace std;
#define BUFFERSIZE 512
#define INITBLOCKSIZE 60*sizeof(double)
#define INITTIMESIZE 60*sizeof(int)
#define STARTDATASIZE 18*sizeof(double)
#define STAR... |
397e497044df0df28e216cbe1b3b0df4ef4622b2 | 995310a5ed19946037e928f9a85bae908694c8fe | /src/eloquent/graphics/colormaps/gist_stern_r.h | e5c49ba374f1812150f250397b7cd0dcdec2fe71 | [] | no_license | eloquentarduino/EloquentArduino | bca073e19af3e9cc5c7f135719cd026631277744 | 15983e68cf82c54afadaf2b6c8fdc95cad268489 | refs/heads/master | 2022-08-26T07:07:02.235025 | 2022-08-21T12:24:04 | 2022-08-21T12:24:04 | 227,818,265 | 162 | 57 | null | 2021-01-07T18:33:09 | 2019-12-13T10:49:33 | C++ | UTF-8 | C++ | false | false | 1,765 | h | gist_stern_r.h | //
// Created by Simone on 18/05/2022.
//
#pragma once
#include "../../macros.h"
namespace Eloquent {
namespace Graphics {
namespace Colormaps {
class Gist_stern_r {
public:
/**
* Convert single byte to RGB color
* @param x
... |
cb842510f7f16897215504e6f2d659c98b94f97b | 4bcc9806152542ab43fc2cf47c499424f200896c | /tensorflow/compiler/xla/mlir_hlo/tools/mlir_interpreter/dialects/complex.cc | 2f420ab68d1fecf915c10f1bb5f8e2ae5046a0d7 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | tensorflow/tensorflow | 906276dbafcc70a941026aa5dc50425ef71ee282 | a7f3934a67900720af3d3b15389551483bee50b8 | refs/heads/master | 2023-08-25T04:24:41.611870 | 2023-08-25T04:06:24 | 2023-08-25T04:14:08 | 45,717,250 | 208,740 | 109,943 | Apache-2.0 | 2023-09-14T20:55:50 | 2015-11-07T01:19:20 | C++ | UTF-8 | C++ | false | false | 2,891 | cc | complex.cc | /* Copyright 2023 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
230db9010f8945d0aa0457bb56ad9464fdb7ad95 | 766eab9734986b22dbc66973b769f589592594df | /rabbit_stepUP/gen/opt/J_Ce1_vec6_five_link_walker.cc | 5e87c76de9e31e01d4a91d429a0f923cb20aa97c | [] | no_license | Emungai/mpc_fiveLink | 3a7dddca216365138f3534b8ce17234db6f41ebe | b79d08838af15433dc7ab0b3f585e028b489b70b | refs/heads/master | 2020-09-05T11:24:34.315317 | 2019-12-23T22:34:18 | 2019-12-23T22:34:18 | 220,082,653 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 12,896 | cc | J_Ce1_vec6_five_link_walker.cc | /*
* Automatically Generated from Mathematica.
* Tue 3 Dec 2019 15:22:08 GMT-05:00
*/
#ifdef MATLAB_MEX_FILE
#include <stdexcept>
#include <cmath>
/**
* Copied from Wolfram Mathematica C Definitions file mdefs.hpp
* Changed marcos to inline functions (Eric Cousineau)
*/
inline double Power(double x, double y) { ... |
1629ce05090ff554750461ea8916fbafd6fa8dde | 3831d4c8152ebb48589bf2abb6364fad05ced079 | /src/BlockNot.h | 3e563f25c3e7bb90affaa909a720446a0444de41 | [] | no_license | mggates39/BlockNot | e71d382c2c787c5e88e1bbc6e98ad0fc01634bf9 | f85983ddd6ec31813f2dc0230eefea94fb6ccee3 | refs/heads/main | 2023-03-17T14:02:03.180133 | 2021-03-16T14:52:07 | 2021-03-16T14:52:07 | 346,507,218 | 0 | 0 | null | 2021-03-10T22:17:11 | 2021-03-10T22:17:10 | null | UTF-8 | C++ | false | false | 4,213 | h | BlockNot.h | #include <Arduino.h>
#ifndef BlockNot_h
#define BlockNot_h
#pragma once
#define WITH_RESET true
#define NO_RESET false
//Macros - their usage and significance is described in README.md
#define TIME_PASSED timeSinceLastReset()
#define TIME_SINCE_RESET timeSinceLastReset()
#define ELAPSED timeSinceLastR... |
8f3b6139be1c488d276272520f33b286342724d5 | bb4a53bf1b39d94d0c7afd9081ec73ce5d68e658 | /TREE_Diameter.cpp | 63b06a449cef6c9893b8ae54dc8d14e74f7e374d | [] | no_license | abhinav-kipper/Algo-DS | a3dd3a88fe076bfe66bdf2df05253758f0b6efe7 | cda01550b9bf5e4f69bea7f7bd8be74a7a4dcbf4 | refs/heads/master | 2022-02-13T17:11:14.535450 | 2022-01-25T07:15:24 | 2022-01-25T07:15:24 | 141,478,541 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 415 | cpp | TREE_Diameter.cpp | //geeks
int mxheight(Node * node)
{
if (!node) return 0;
return 1+max(mxheight(node->left),mxheight(node->right));
}
int diameter(Node* node)
{
if (!node) return 0;
int l_height=mxheight(node->left);
int r_height=mxheight(node->right);
int l_diameter=diameter(node->left);
int r_diameter... |
98af4d49507e64a73d92fc4292fdc635d54b922b | 05d6200fc863173a29c84ec3f3c883fc70bcdc6a | /main.cpp | bfc7740e7d87249803397e5ada802f1c93614ca1 | [] | no_license | PierreLouis98/ECE_projet_c-- | 4c2aa8aada8eadfa7c13a7f74efcd4d59978d759 | 877e9563aec9c57875492a6c9562591a86e0cc6e | refs/heads/master | 2022-10-13T20:28:26.404485 | 2020-06-09T16:12:12 | 2020-06-09T16:12:12 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,547 | cpp | main.cpp | #include "grman/grman.h"
#include <iostream>
#include "graph.h"
int main()
{
/// A appeler en 1er avant d'instancier des objets graphiques etc...
/// Le nom du répertoire où se trouvent les images à charger
grman::set_pictures_path("pics");
/// Un exemple de graphe
Graph g;
... |
84a689719eaba0d84d38191b661ab826c56659b5 | 6ca8f9a932f25494401c8974b463078745fef963 | /Client/Header/Projectile.h | 834d8eb775e51192998a2c1c94be442af9a74f82 | [] | no_license | jang6556/DungeonDefenders | 29cca6047e828d8f2b5c77c0059cfbaace4d53bf | 526fe493b89ac4f8e883074f60a05a7b96fa0c43 | refs/heads/master | 2023-02-01T12:39:34.271291 | 2020-12-07T16:55:03 | 2020-12-07T16:55:03 | 319,384,221 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 889 | h | Projectile.h | #pragma once
#include "GameObject.h"
_BEGIN(Client)
class CProjectile :
public CGameObject
{
private:
CTransform* m_pParentsTransform = nullptr;
CTransform* m_pTransform = nullptr;
CShader* m_pShader = nullptr;
CMeshStatic* m_pMeshStatic = nullptr;
virtual HRESULT Initialize() override;
virtual HRESULT In... |
3d1f59b24b916197590feb4e22b913689a585b97 | 66c45d0edaf4598a6b3acd24f73a1c600bfb72b0 | /projects/01/PlayListTester.h | f54a28c3e008ccdc295b93c46d61f0e39dd25df1 | [] | no_license | iangraham20/cs112 | 8b5b10248e4ce881d9261ce61a5b3034e087f606 | 8e4c2d46fe99290c5f159e1149ac4f705f6a0673 | refs/heads/master | 2020-03-30T14:10:39.209346 | 2018-10-02T18:38:46 | 2018-10-02T18:38:46 | 151,304,519 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 604 | h | PlayListTester.h | /* PlayListTester.h tests the PlayList class.
* Student Name: Ian G. Christensen (igc2)
* Date: February 12, 2017
* Begun by: Joel Adams, for CS 112 proj01 at Calvin College.
*/
#ifndef PLAYLISTTESTER_
#define PLAYLISTTESTER_
#include "PlayList.h"
class PlayListTester {
public:
void runTests();
... |
d8e1e83c45fa93733e79170a859eb8a4c7c1c152 | 63c71060f36866bca4ac27304cef6d5755fdc35c | /src/SeAdmin/Exe/main.cpp | 05a4459df5fae22a8a354a243d857ec891a95862 | [] | no_license | 15831944/barry_dev | bc8441cbfbd4b62fbb42bee3dcb79ff7f5fcaf8a | d4a83421458aa28ca293caa7a5567433e9358596 | refs/heads/master | 2022-03-24T07:00:26.810732 | 2015-12-22T07:19:58 | 2015-12-22T07:19:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,866 | cpp | main.cpp | ////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2005
// Packet Engineering, Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification is not permitted unless authorized in writing by a duly
// appointed officer of ... |
9d7ca6e21cfcaf7d601d3e3fee4e8c1afdc2b2af | e32e47ec121d70d975bad723ca143efb0157e1fc | /Samples/Chapter 4/StringComparisons/main.cpp | b0837b6acc28f8e1e1be295bc8a2ed845819c5bf | [
"MIT"
] | permissive | Anil1111/COSC1436 | 02d781045fad38066e7f21c836566a52a53cacb4 | 33a607e51f2a51c70ab11a24945f3f06de50f7fc | refs/heads/master | 2020-03-30T18:33:22.439731 | 2017-08-15T01:05:01 | 2017-08-15T01:05:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,156 | cpp | main.cpp | /*
* Demonstrates string comparison.
*/
#include <iostream>
#include <string>
using namespace std;
void main ( )
{
#pragma region Char Way
char charOption;
cout << endl << "Using char ==" << endl;
cout << "Select an option: " << endl;
cout << "C)reate a new account" << endl;
cout << "D)elete a... |
561ee55a84b997fba04cf03936ea211436e39e75 | 60619a8daa4603fb65f4f86f383a6ddde841e326 | /2014-04-17/Iconst.cpp | 7950faa7c0d2bfe3ad6f6d9680e48e1203d22088 | [] | no_license | MYREarth/secret-weapon | f4b1d4b995951546b2fb1e40190707a805fb88b5 | 77f3ff1111aafaaae8f56893b78e3be9134437a9 | refs/heads/master | 2020-05-22T02:29:43.024017 | 2015-10-03T08:17:46 | 2015-10-03T08:17:46 | 186,199,326 | 3 | 0 | null | 2019-05-12T01:46:13 | 2019-05-12T01:46:13 | null | UTF-8 | C++ | false | false | 310 | cpp | Iconst.cpp | #include <cstdio>
const int RESULT[] = {1,1,2,5,14,43,140,474,1648,5839};
int main() {
freopen("immetric.in", "r", stdin);
freopen("immetric.out", "w", stdout);
int tests = 0, n;
while (scanf("%d", &n) == 1 && n) {
printf("Case #%d: %d\n", ++ tests, RESULT[n]);
}
return 0;
}
|
051f337ddea8a55d4bfbb7c59eddbde66a6baeb5 | a7eda48d34b9de96dab9fef2e3c2db5d1d58358e | /cppConSnippets/2015/cppInTheAudioIndustry/release_pool.hh | 2775686fba41f64e8df69dfc6d525f963c1f2d6f | [] | no_license | zclewell/CPP-Playground | f0626b351e346ec92c00bd692b862dbd2cc4e2c4 | 3da3ff06ca3749a6d9633a07f018e573471c3291 | refs/heads/master | 2023-05-01T01:20:59.284220 | 2021-05-16T23:27:07 | 2021-05-16T23:27:07 | 367,975,603 | 0 | 0 | null | 2021-05-16T23:27:08 | 2021-05-16T20:09:35 | C++ | UTF-8 | C++ | false | false | 768 | hh | release_pool.hh | #ifndef __RELEASE_POOL_HH__
#define __RELEASE_POOL_HH__
#include <unistd.h>
#include <mutex>
#include <algorithm>
#include "timed_thread.hh"
class ReleasePool : public TimedThread {
public:
ReleasePool(useconds_t timeout) : TimedThread(timeout) {
}
~ReleasePool() {
stop();
}
void add(std::shared_ptr... |
e24e89e95203ecba950848aa5482c5d7db4edb9a | 39fcc0c3f6633bb26210d824e8ff87b110286ec7 | /proc/reader.h | 9ecb885b84aa9b6207cecdf2579f4543e626b741 | [] | no_license | dimak24/MIPT-industrial-programming | 557c7f2b742e7edb365cc70f835c125464f38b6a | 998e70bc9fef889b26c2b3f034e295282dd05d2c | refs/heads/master | 2020-03-29T07:43:33.587471 | 2019-01-06T15:16:25 | 2019-01-06T15:16:25 | 149,676,504 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 701 | h | reader.h | #pragma once
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <string.h>
#include "processor.h"
static std::pair<const char*, size_t> read_text(const char* filename) {
int fd = open(filename, O_RDONLY);
if (fd == -1)
PANIC();
struct sta... |
e4f9917824003509cca9c2056cc809ff0e25cd8b | cd473056c7e351d4877a22d7830b9ee72b138556 | /src/cfdapi_update_witness_json.cpp | 7a8f5ae65f53088edfd2cd31958e31ea1bc7ee87 | [
"MIT"
] | permissive | cryptogarageinc/cg-cfd-js | a3ee599fcb7dd203ca53b4e8a4e77d655b4eba14 | 87fd4709aa1ed9ecd0debbbeca67eec708ab849d | refs/heads/master | 2023-03-08T18:46:39.718071 | 2023-03-02T00:16:26 | 2023-03-02T00:16:26 | 205,845,641 | 0 | 0 | MIT | 2023-03-02T00:16:27 | 2019-09-02T11:49:09 | C++ | UTF-8 | C++ | false | false | 7,968 | cpp | cfdapi_update_witness_json.cpp | // Copyright 2019 CryptoGarage
/**
* @file cfdapi_update_witness_json.cpp
*
* @brief JSONマッピングファイル (自動生成)
*/
#include <set>
#include <string>
#include <vector>
#include "cfdapi_update_witness_json.h" // NOLINT
namespace cfd {
namespace js {
namespace api {
namespace json {
using cfd::core::JsonClassBase;
using ... |
1932b3cfa717db16c291949983ac85e1d2271590 | afd2087e80478010d9df66e78280f75e1ff17d45 | /third_party/nvfuser/csrc/ir_cloner.h | 116f8074beaedc3b15330c4021621b04771e202a | [
"BSD-Source-Code",
"MIT",
"BSD-3-Clause",
"BSL-1.0",
"JSON",
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-generic-cla"
] | permissive | pytorch/pytorch | 7521ac50c47d18b916ae47a6592c4646c2cb69b5 | a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4 | refs/heads/main | 2023-08-03T05:05:02.822937 | 2023-08-03T00:40:33 | 2023-08-03T04:14:52 | 65,600,975 | 77,092 | 24,610 | NOASSERTION | 2023-09-14T21:58:39 | 2016-08-13T05:26:41 | Python | UTF-8 | C++ | false | false | 3,832 | h | ir_cloner.h | #pragma once
#include <c10/macros/Export.h>
#include <dispatch.h>
#include <ir_builder.h>
#include <unordered_map>
#include <vector>
namespace torch {
namespace jit {
namespace fuser {
namespace cuda {
class IrContainer;
//! Clones nodes from an exiting Fusion
//!
//! \warning IrCloner machinery is a specialized h... |
d8946843950a0761046052d507d0bd2d92bab3c9 | 8ee0be0b14ec99858712a5c37df4116a52cb9801 | /Client/Interface/DLGs/SubClass/CUpgradeDlgStateResult.h | fbf21173085c9d179f03fb617d4ee12e3d280391 | [] | no_license | eRose-DatabaseCleaning/Sources-non-evo | 47968c0a4fd773d6ff8c9eb509ad19caf3f48d59 | 2b152f5dba3bce3c135d98504ebb7be5a6c0660e | refs/heads/master | 2021-01-13T14:31:36.871082 | 2019-05-24T14:46:41 | 2019-05-24T14:46:41 | 72,851,710 | 6 | 3 | null | 2016-11-14T23:30:24 | 2016-11-04T13:47:51 | C++ | UHC | C++ | false | false | 945 | h | CUpgradeDlgStateResult.h | #ifndef _CUpgradeDlgStateResult_
#define _CUpgradeDlgStateResult_
#include "cupgradedlgstate.h"
class CGuage;
class CUpgradeDlg;
/**
* 제련인터페이스 창의 State Class : 서버로부터 제련요청에 대한 응답을 받고 출력하는 상태
*
* @Author 최종진
* @Date 2005/9/15
*/
class CUpgradeDlgStateResult : public CUpgradeDlgState
{
public:
CUpg... |
fb3eea23db996baae66159ee847d4d1449392004 | 48f8d354c6d3f74bdcf52cda1ea0f9c127971418 | /rosplan/test/fwk/rosplan_dispatch_msgs/ActionDispatch.h | a3b7d37969020698d6b640dac36eb0b9b03b5924 | [] | no_license | mgou123/task-planning | 5f7144189bb5d3e0130f7e9e47f38b7d75374672 | b58193decf48cb290f3e5211381cd31849e30a5b | refs/heads/master | 2022-01-13T01:08:05.127015 | 2018-04-27T12:05:11 | 2018-04-27T12:05:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 363 | h | ActionDispatch.h |
#ifndef rosplan_action_dispatch
#define rosplan_action_dispatch
#include "diagnostic_msgs/KeyValue.h"
namespace rosplan_dispatch_msgs {
class ActionDispatch
{
public:
int action_id;
std::string name;
std::vector<diagnostic_msgs::KeyValue> parameters;
double duration;
... |
26135a28b42e062e492f2eb940e664d04d28b6a0 | 37b84200d4fa797a82b897f0ab95279472426fd7 | /qsort.cpp | 96fe2099e2641da40c658eb315a0631856132e6c | [] | no_license | zhezhituan/leetcode | e9b5e9dae06779e5e20b22152da46e13c49a4383 | 274bb0300096b1081ad15a4e100a33dc117574c9 | refs/heads/master | 2020-08-12T00:02:41.923478 | 2019-10-13T08:35:59 | 2019-10-13T08:35:59 | 214,652,408 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,186 | cpp | qsort.cpp | #include <iostream>
#include<stdlib.h>
#include<string>
using namespace std;
struct sheep
{
string name;
int weight;
};
int comparInt(const void * a, const void * b) {
return *(int*)a - *(int*)b;
}
int compareSheep(const void *a, const void* b) {
cout<< (*(sheep*)a).weight<<" "<< (*(sheep*)b).weight<<endl;
retu... |
069c2cf6968d3815c860b410e3c6fa991cef8d7c | 1838307a41914ef70071981fdd1067eea3e87d5f | /Project/Custom Shell/src/shell/Terminal.h | 5c3b3049efb71f40f067440f073b12f5d55f1431 | [] | no_license | Salmon42/NDS8-2019-Group-820 | cd56bf0e5fcf59edbdba7956669d64d8fd1588d0 | 6e065c26a4b3f672093f8678d32e3755fbb98286 | refs/heads/master | 2023-03-18T08:52:33.365564 | 2019-08-13T12:02:21 | 2019-08-13T12:02:21 | 537,874,294 | 1 | 0 | null | 2022-09-17T16:58:57 | 2022-09-17T16:58:56 | null | UTF-8 | C++ | false | false | 1,302 | h | Terminal.h | ///
/// Custom Shell: the JumpShell
/// Made by Andrej, Pierre and Sebastian
///
#ifndef NDS_TERMINAL_H
#define NDS_TERMINAL_H
#include "../header.hpp"
#include <termios.h> // struct termios, tcgetattr(), tcsetattr()
#include <stdio.h> // perror(), stderr, stdin, fileno()
/// Terminal Mode
enum TMode {
... |
faa3820682e937d781a0d0b55d4bb994521bdd4d | cb80a8562d90eb969272a7ff2cf52c1fa7aeb084 | /inletTest9/0.025/turbulenceProperties.L | 365f078a6fa1dc37954238600a8a4f6c56d6df7a | [] | no_license | mahoep/inletCFD | eb516145fad17408f018f51e32aa0604871eaa95 | 0df91e3fbfa60d5db9d52739e212ca6d3f0a28b2 | refs/heads/main | 2023-08-30T22:07:41.314690 | 2021-10-14T19:23:51 | 2021-10-14T19:23:51 | 314,657,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 141,043 | l | turbulenceProperties.L | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
... |
f6326d80c561d2906a445fe1c5bb6ad1d2eb44b3 | 5deab316a4ab518e3a409ab69885d372f4d45706 | /progvar.fun/Sums and Asymptotics/546A.cpp | a102703581f65c795d2059c5ef592e600c63349c | [] | no_license | af-orozcog/competitiveProgramming | 9c01937b321b74f3d6b24e1b8d67974cad841e17 | 5bbfbd4da9155a7d1ad372298941a04489207ff5 | refs/heads/master | 2023-04-28T11:44:04.320533 | 2021-05-19T19:04:30 | 2021-05-19T19:04:30 | 203,208,784 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 260 | cpp | 546A.cpp | #include<bits/Stdc++.h>
#define ll long long
using namespace std;
ll fastSum(ll n){
return (n*(n+1ll))>>1;
}
int main(){
ll k,n,w;
scanf(" %lld %lld %lld",&k,&n,&w);
ll see = fastSum(w)*k;
printf("%lld\n",max(0ll,see-n));
return 0;
}
|
c797c2e01457ec1a784c2cdf831152e6fda644ba | a96a11257637428b50672e90e78247cf0d9750e6 | /src/1992/1992.cpp | 91373e537141e5dee35c02d14552f2bfb4e0698f | [] | no_license | sklationd/boj | 3492d1ee44a6d96dd438358222fc4ea0c57d7ed2 | 1ce8e1b4b2c06b7a2d0067167e0ecfd6d732d0b6 | refs/heads/master | 2021-07-19T03:59:05.745419 | 2021-06-27T08:51:32 | 2021-06-27T08:51:32 | 250,503,840 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,092 | cpp | 1992.cpp | #include <iostream>
#include <vector>
#include <cstring>
using namespace std;
int N;
char paper[65][65] = {0,};
bool equal4(string a, string b, string c, string d){
return (!a.compare("1") || !a.compare("0")) && !a.compare(b) && !b.compare(c) && !c.compare(d);
}
string divconq(int x, int y, int size){
if(si... |
95571c2c1bc16fefc8cb20368e7978637adbf73c | 84a696a8817c6fd60a85d57745fa33a4621f15d6 | /MorseCode.cpp | 155b3777f4b1a8551e464fc5d3836e55e7f29542 | [] | no_license | substance-r2d2/CodeEval | fc34e11bf3a7503cc1f79c77d7bdc691139f924d | db828856bef5a00275fead17979bb862e3e38578 | refs/heads/master | 2016-09-06T17:35:10.405233 | 2014-05-04T12:05:53 | 2014-05-04T12:05:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,533 | cpp | MorseCode.cpp | #include <iostream>
#include <fstream>
#include <sstream>
#include <unordered_map>
#include <string>
#include <algorithm>
using namespace std;
unordered_map<string, string> morseCode;
void createMorseCode()
{
morseCode.insert(pair<string, string>(".-", "A"));
morseCode.insert(pair<string, string>("-...", "B"));
... |
ee65615857bc0d6a31263398c28079f9828bd2e9 | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /src/plugins/intel_gpu/src/kernel_selector/kernels/shape_of/shape_of_kernel_selector.cpp | f56027b41ccd02cedc51098700051160a4ae0c2d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | C++ | false | false | 498 | cpp | shape_of_kernel_selector.cpp | // Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "shape_of_kernel_selector.h"
#include "shape_of_kernel_ref.h"
namespace kernel_selector {
shape_of_kernel_selector::shape_of_kernel_selector() {
Attach<ShapeOfKernelRef>();
}
KernelsData shape_of_kernel_selector::Get... |
933c1d8ea2bd150636cf374416d990706cb0d946 | 7348a87f288f4234ad399a9653a2f466bc527263 | /HW4/deck.cpp | ea8ee314154b4035770f41baf536a1e219f94125 | [] | no_license | Ian-An/CS172 | 0a03e392790d688afc713e23ec229b0679e0da56 | ba888dc401a114d11a775e8496af8d4fc4e4472f | refs/heads/master | 2021-01-20T03:29:36.341502 | 2017-04-27T02:38:22 | 2017-04-27T02:38:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,098 | cpp | deck.cpp | //
// deck.cpp
// HW4
//
// Created by AnYi on 5/15/16.
// Copyright © 2016 Yi An. All rights reserved.
//
#include "deck.h"
#include<vector>
#include <cstdlib>
#include<iterator>
#include<algorithm>
using namespace std;
bool deck::GameOver()
{
if(card_.size()==0)
return true;
else
... |
90b3e9b4e40e758db7571e9e1fb60dcb7c2b152a | 1d0fbe9a48f4ed333d0fb4fbdfee8d22af83b9c0 | /libraries/features/tracer/simulation/bsg_manycore_tracer.cpp | b6824f392ddc2ac9435cd110c1b77742020be082 | [
"LicenseRef-scancode-free-unknown",
"BSD-3-Clause"
] | permissive | sripathi-muralitharan/bsg_replicant | 7cfcf2cfa18556606d43b73f25b1c859e1fb8e88 | f29dccb246f17efcfc81948e73ff6532283f998d | refs/heads/main | 2023-07-25T09:19:36.993455 | 2021-07-09T00:42:15 | 2021-07-09T00:42:15 | 343,248,877 | 0 | 0 | BSD-3-Clause | 2021-03-01T00:39:40 | 2021-03-01T00:39:39 | null | UTF-8 | C++ | false | false | 4,979 | cpp | bsg_manycore_tracer.cpp | // Copyright (c) 2020, University of Washington All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// Redistributions of source code must retain the above copyright notice, this list
// of cond... |
ab7aa22bea1e3f579071cc76e1050098b3bdd5c4 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/mutt/gumtree/mutt_repos_function_196_mutt-1.4.2.3.cpp | 330510060ceac2ef14ecbd9835a83558d4112093 | [] | 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 | 92 | cpp | mutt_repos_function_196_mutt-1.4.2.3.cpp | char *mutt_pgp_hook (ADDRESS *adr)
{
return _mutt_string_hook (adr->mailbox, M_PGPHOOK);
} |
e0eef390022c064d4fa04280cd7e2c62720a3e83 | 2b804fedb2c279a9aa64ecdcdc3aac1e453e4cf8 | /ext/rgrep/librgrep/query.cpp | c2b01bec60effcd993f4855b11a829c5da756865 | [] | no_license | DanSnow/ruby-rgrep | d99e22113561a55ea188208989a1836a5b5c488c | 34b9e45d8683b5335ddca7f3b746546a8c519341 | refs/heads/master | 2021-01-10T17:58:47.086449 | 2016-04-01T05:38:47 | 2016-04-01T05:38:47 | 55,206,407 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,450 | cpp | query.cpp | #include "query.hpp"
#include "record.hpp"
#include "utils.hpp"
#include <iostream>
#include <algorithm>
#include <set>
using namespace std;
using namespace RGrep;
namespace RGrep {
struct RankData {
size_t pos;
int rank_value;
RankData(size_t pos, int rank_value) : pos(pos), rank_value(rank_value) {
... |
9a002b1cb431a380bf5769a505456f7b0fbc23d3 | 2cfb31bf995318540bd1a7b6e19eb8b12cb8acd9 | /LightOJ/1232.cpp | 3b5ef5dab8a91ad7a0addfd5a9fe58dbb0b9d645 | [] | no_license | aurko96/Competitive-Programming | cf6265456450355e04c34acf9b7500b1cc30fd58 | 7b5a22d077f29145b92caef0883734ca40096227 | refs/heads/master | 2020-03-18T15:08:14.533253 | 2018-05-25T19:07:25 | 2018-05-25T19:07:25 | 134,889,195 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 640 | cpp | 1232.cpp | #include<bits/stdc++.h>
using namespace std;
int val[105],n,k;
long long dp[10005];
int mod=100000007;
long long call(int sum)
{
for(int i=0;i<n;i++)
{
for(int j=1;j<=k;j++)
{
if(val[i]<=j)
{
dp[j]=dp[j]%mod + dp[j-val[i]]%mod;
}
}
... |
f86e0d3b5087e073f65df3ee2cacf1a002985780 | 3ffe7d58df70dfe86347d058c5c7eba29fec0555 | /Chapter05/5_5_2/pra5_21.cpp | e11cbb008bed8b8ddc7925a09f741e5c60ab2df9 | [] | no_license | Exrealaz/cpp_primer_exeicise | ec508e39a6f4728d0c6acd4ca5e286a2817c137f | e111e6d7dfa7a9cac5ee01087e5699cd5a1f3efd | refs/heads/master | 2022-10-05T02:40:14.738994 | 2020-06-05T11:42:15 | 2020-06-05T11:42:15 | 267,763,316 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 660 | cpp | pra5_21.cpp | /*
修改 5.5.1 节的练习题程序,实习找到重复的单词必须以大写字母开头
*/
#include <iostream>
#include <string>
using std::cin; using std::cout; using std::endl; using std::string;
int main()
{
string s1, s2;
bool flag = false;
cin >> s2;
while (cin >> s1)
{
if (s1[0] != toupper(s1[0]))
continue;
if(s... |
dc9544ed563cf81944f66d3af8358ca4588e88b1 | 62ec94314f194157f62c49c206dd777a159e0817 | /src/editor/path_anchor_handle.h | 23f4b7fbf643c4e17ebb2ae820d0d6591293bb73 | [] | no_license | telishev/sneakPic | e6c3a9ceee97caf5c46808225e0e3e68a1ca2bf0 | 25cac33adfec70f161cc526123df5376ece9b950 | refs/heads/master | 2020-04-14T19:04:56.660200 | 2014-07-19T20:37:38 | 2014-07-19T20:37:38 | 10,853,376 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,424 | h | path_anchor_handle.h | #ifndef PATH_ANCHOR_HANDLE_H
#define PATH_ANCHOR_HANDLE_H
#include "editor/base_anchor_handle.h"
#include <QPointF>
#include <string>
class QRect;
class QColor;
class svg_item_path;
class svg_path_geom;
class path_handles_editor;
class path_edit_operation;
class SkCanvas;
class SkPaint;
struct SkRect;
enum class n... |
6f4ea0a734b6a8f09a7d5a421f67a7683b8b00a1 | ca3e59b557caf2ff22d464963e48eff61dc119fb | /imagemosaicequal.cpp | fd7bdab02c58fe0ca667d4be05a3956702cf2f38 | [] | no_license | mbax4qf3/Image-Mosaics | fab0a6aa2e47ed441545b84f14646073ad3ea071 | 0bc2604743f1f40f3cc89a6a8612658fc10d3849 | refs/heads/master | 2022-12-07T12:30:43.429847 | 2020-08-18T11:27:22 | 2020-08-18T11:27:22 | 288,432,969 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 57,973 | cpp | imagemosaicequal.cpp | #include "stdafx.h"
#include <stdlib.h>
#include <opencv2/opencv.hpp>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <algorithm>
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using nam... |
d67665eda21f25a3d22e61f46178079c2eb2de0c | 60fc2981def65ef62571eaea645380e823914f6d | /prime_n/prime_n.cpp | 563280824a4157620703b6f9cfa9435e210b26b2 | [] | no_license | aleslu-0/ConsoleApplication2 | 4cfd5ddb6c31eb3526289361358e029cddb8248d | c6a857fd1374957844fc1535b9d0d74c9c4b165f | refs/heads/master | 2023-01-09T15:11:53.856133 | 2020-11-14T17:04:25 | 2020-11-14T17:04:25 | 310,741,016 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 442 | cpp | prime_n.cpp | #include <iostream>
using namespace std;
bool isPrime(int n) {
if (n <= 1)
return false;
//Return false if not prime
for (int i = 2; i < n; i++)
if (n % i == 0)
return false;
return true;
}
int main()
{
cout << "Test if integer is a prime number: \n";
//Input
... |
7008e9f3056125ce6cc06292d1ea6a587a6f7b8c | 7bcc8146c058a69cb08bbffd13dd5cf00c20b113 | /SODVASG2/monthlyPhoneBill/monthlyPhoneBill.cpp | 883e206308344fea0d8687013cde97bb4d208efa | [] | no_license | TheBudderMan/C-PP_Fundamentals_Progression | 7b9bf381671dc92d561c41457bb7f400e87c7b17 | 37b7bc7211f6410e24cf571016821a184bc15ed2 | refs/heads/main | 2023-03-07T19:59:07.806811 | 2021-02-18T07:11:20 | 2021-02-18T07:11:20 | 339,958,490 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,974 | cpp | monthlyPhoneBill.cpp | // monthlyPhoneBill.cpp : This file contains the 'main' function. Program execution begins and ends there.
#include <iostream>
#include <cmath>
#include <string>
#include <vector>
#include <regex>
#include <sstream>
using namespace std;
/*
the two functions additive charge and chooseBill are the main drivers ... |
019f7c1784b60076e0766690ab9122f9b6b2ce6a | 7be8e3636bf08ebdc6662879dc5afec548705537 | /ios/Pods/Flipper-RSocket/rsocket/tck-test/TestSuite.h | f705e0d1356b8c8c720b5a9be79dc732cd99e7fd | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | rdhox/react-native-smooth-picker | 3c7384f1fed0e37f076361cce96071d01b70e209 | ae9316c49512f7ed9824c5a3ad50cdf5e80fffa9 | refs/heads/master | 2023-01-08T16:59:40.709147 | 2021-07-03T14:13:21 | 2021-07-03T14:13:21 | 160,224,312 | 230 | 31 | MIT | 2023-01-06T01:46:04 | 2018-12-03T16:54:10 | TypeScript | UTF-8 | C++ | false | false | 1,910 | h | TestSuite.h | // Copyright (c) Facebook, Inc. and its affiliates.
//
// 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 applicabl... |
3250dd2580bc4cb299dd522f86603ba58061875a | 01ee1fc4fc08623b6176d21710b37942b7a9db4c | /DigitalClockItem.h | 0400cd37ab6eb876b29d40c8eb11b37a38c214a8 | [] | no_license | XOOIOOX/ClockGadget | 85a677b520ec660a8cb092ca76d23117db0e2c44 | eb7c05524301e38873df323c4b22b3cd59548249 | refs/heads/master | 2023-02-28T05:42:24.626237 | 2021-01-30T02:09:38 | 2021-01-30T02:09:38 | 259,689,605 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 355 | h | DigitalClockItem.h | #pragma once
#include "ClockItem.h"
class DigitalClockItem : public ClockItem
{
public:
DigitalClockItem(QObject* parent = nullptr);
~DigitalClockItem();
void advance(int phase) override;
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = nullptr) override;
private:
int fon... |
df9949945908b1e34b07e4ef9e83572fb0b36897 | e2fe051db2887441101fd164a3fe5a29fae0b86f | /src/MainHeader.h | 93322e39efddcf532057b20b182348fc04d3f7a9 | [] | no_license | dannysheyn/backtracking-maze | 06e9b9ae73bf16b0cad089547af0f56d473a32b3 | 4d5f31c47d995770fb2b854be5c3ced667d6e13f | refs/heads/main | 2023-04-13T07:44:09.188531 | 2021-04-26T05:18:12 | 2021-04-26T05:18:12 | 361,623,792 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 203 | h | MainHeader.h | #ifndef __MAINHEADER_H
#define __MAINHEADER_H
#include <iostream>
#pragma warning(disable: 4996)
using namespace std;
void AllocationTest(void* ptr);
int getRand();
#endif // !__MAINHEADER_H
|
da4d7906351fd61a43d188b856d122fe042d275b | 19668b1c9f0e6669ba1d59a8158b495792f8687d | /Bolt-Core/src/Graphics/Assets/Meshes/Materials/MaterialGraph/MaterialGraph.cpp | d73f29266fdfa3077b2f351e18052ca10894a0e8 | [] | no_license | Totomosic/Bolt | a80f50ce2da4cc7dabe92023df9448eb7b57f026 | 3ca257f9f33ef0d04b213365ef42d9a4925b29ef | refs/heads/master | 2021-06-28T19:06:30.656098 | 2020-09-09T13:26:23 | 2020-09-09T13:26:23 | 144,455,421 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,983 | cpp | MaterialGraph.cpp | #include "bltpch.h"
#include "MaterialGraph.h"
#include "../Material.h"
#include "Graphics/Assets/AssetManager.h"
namespace Bolt
{
MaterialGraph::MaterialGraph(AssetManager* manager)
: m_Resources(manager), m_MasterNodes(), m_Nodes(), m_Builder(), m_IsBuilt(false)
{
}
AssetManager& MaterialGraph::GetAssetM... |
7e09f177b9fed3f64c3dc0373624427763ae635f | 78ba4338ae6fa4eb91441cbb5c78c6a826d31c9c | /Main/UserSession.h | 352340954e9927bd9a4cfee74b9bc705f8497d07 | [] | no_license | inevs/TripService_CPP | c4d54d136b49cffff1f51afb9c84088cde87cf9a | 8e1e4b11ad56452d450636e6a8786f40cf74626c | refs/heads/master | 2020-06-17T21:51:47.280728 | 2016-11-28T11:29:15 | 2016-11-28T11:31:39 | 74,966,964 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 718 | h | UserSession.h | #ifndef TRIPSERVICE_USERSESSION_H
#define TRIPSERVICE_USERSESSION_H
#include "TripServiceSupport.h"
class UserSession;
UserSession *oneUserSession = 0;
class UserSession {
public:
inline static UserSession *GetInstance() {
if (!oneUserSession) { oneUserSession = new UserSession(); }
return oneUse... |
db53a60bf69ce3984bde93287fbc203789c45965 | b1cea8ff64c514f4db6a4bf6a3d23a7a23e7bf21 | /tictactoe/src/Board.cpp | 33f1713057173ea602c17508b4f47e188f702760 | [] | no_license | yperess/practice_cpp | 78576319f07c31085d290b5165bd9d1df395903e | be62d0e23a21fa4400f5ccd30e62b290fc50ed4b | refs/heads/master | 2021-01-01T03:38:58.269123 | 2016-04-25T21:23:50 | 2016-04-25T21:23:50 | 56,941,175 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 209 | cpp | Board.cpp | /*
* Board.cpp
*
* Created on: Apr 25, 2016
* Author: peress
*/
#include "Board.h"
namespace tictactoe {
Board::Board() {
// TODO Auto-generated constructor stub
}
} /* namespace tictactoe */
|
1ebf3673a06d898a6d640ab5c5bc54d82757de8d | d4e433e6c595484811be47cf4a4ac4ec7fa3134f | /B1_28/Source.cpp | 59f01e89540b921222af267dfb492e7b113536d3 | [] | no_license | yjglab/cpp_programming_study | 27ea90309677b02354a68c1e65cb8dbeedc789c1 | 058fad00c96e1805a9f341376d2e5a54a7df6b2f | refs/heads/master | 2023-03-15T09:20:31.020044 | 2021-03-06T17:57:42 | 2021-03-06T17:57:42 | 333,762,605 | 2 | 0 | null | null | null | null | UHC | C++ | false | false | 1,207 | cpp | Source.cpp | #include <iostream>
using namespace std;
// *** 소멸자 Destructor ***
/*
소멸자는 인스턴스가 메모리에서 해제될 때 내부에서 자동으로 호출됨.
동적 할당으로 만들어진 경우에는 영역을 벗어나도 자동으로 메모리가 해제되지
않기 때문에 delete으로 메모리를 해제할때에만 소멸자가 호출됨
소멸자를 프로그래머가 직접 호출하는 것은 대부분의 경우 권장하지 않음
*/
class Simple {
private:
int _id;
public:
Simple(const int& id_in)
: _id(id_in)
{
... |
44f6efe4a949bbcfe2d84b584fe175bb5736c2cb | 026b1dbe7d85ccf92e95f054185d9d4168b7cdb6 | /day01/ex00/Pony.hpp | a45c0d8b9af3ab9a205c11320af587dd30dd486d | [] | no_license | anvv5/studingCPP | 5e8462dcaf62f6d7f6ae75744b0b63888473fc54 | 2a11ae9bc77b9a88479ef07ee7582cb805246f07 | refs/heads/master | 2023-05-14T17:25:49.918495 | 2021-05-29T11:10:57 | 2021-05-29T11:10:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 312 | hpp | Pony.hpp | //
// Created by Shantay Budding on 4/13/21.
//
#ifndef EX00_PONY_HPP
#define EX00_PONY_HPP
#include <iostream>
#include <string>
class Pony
{
std::string _name;
public:
Pony( std::string name );
~Pony( void );
void eat( void );
void sleep( void );
void think( void );
};
#endif //EX00_PONY_HPP
|
3040dbb7a467873d850617a6fc43d0e68a2d101e | e07c5fa6fe97239293573d1729a8d3d5a3628372 | /Bio_Informatics-task2/main.cpp | 3274e22f58fda7b93575a21fea8b8f080d1426b2 | [] | no_license | srutak/srutak.github.io | 041cee72b27e549a4f6912fa0fec67e4fe24cfe7 | 7b7b2df89b38ee4c1a6992041aca04bf0b82a3fb | refs/heads/master | 2020-05-21T04:51:54.856812 | 2017-02-10T20:28:38 | 2017-02-10T20:28:38 | 49,970,239 | 0 | 0 | null | 2016-05-24T14:57:07 | 2016-01-19T17:32:58 | C++ | UTF-8 | C++ | false | false | 20,990 | cpp | main.cpp | #include <iostream>
#include<fstream>
#include<sstream>
#include <vector>
#include<stdlib.h>
#include<iomanip>
#include<string>
#include<cmath>
using namespace std;
struct atompdb
{
string atomName;
int num;
string calpha;
string residueName;
string chainid;
int atomdataerialN... |
d000e1063fba4beaedc91489e8f9950faf8b4ca0 | 43929e1e68957fbb30dcd1e6b14e9745ac1b636e | /Digger Project/Text.h | 6d1afc7d979d5b975029729082436e4105136b67 | [] | no_license | BoyanDimov20/Projects | 7de0b4c4e5f12d2476271f01be94734cbf359d08 | 4fa63337bf4c42c7e31c1c682fe59f0e5ba2f77d | refs/heads/master | 2020-04-29T04:57:21.673254 | 2019-03-01T21:49:42 | 2019-03-01T21:49:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 721 | h | Text.h | #pragma once
#include <SDL_ttf.h>
#include <SDL.h>
#include <string>
class Text
{
private:
size_t score = 0;
std::string text;
SDL_Color color;
TTF_Font * font = nullptr;
SDL_Texture* text_texture = nullptr;
SDL_Rect text_rect;
public:
Text(const std::string& font_path, int font_size, const std::string& mes... |
aa7d664eb2d3a22404eb0b75d736c69d5e0ef3c0 | d61428bf9e781221bf6a5bfe2dfa24f28cebce1d | /FloatModulo.cpp | da7ba131bd0da2a08e81ff7e44cde177b4e51d6e | [] | no_license | KuldeepSoni17/Algorithms | 442e344b99293b88d57b491d868fb140251115d7 | 0566f0c15805505407a62a23b6e5e6ec8f10a232 | refs/heads/master | 2021-01-11T11:32:03.722640 | 2016-12-20T05:07:27 | 2016-12-20T05:07:27 | 76,924,413 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 113 | cpp | FloatModulo.cpp | #include<iostream>
using namespace std;
int main()
{
float q = 12.1213;
q = (int)q%10;
cout << q;
}
|
0beacf8b41df96580144bdc65865c6c352a0a0be | 19933a074da4e7ffb1761feaf0c8a1a338dab647 | /experiment/experimentmain.cc | 95bd3b673655f4a67765a63964306e5a9682b167 | [] | no_license | somaproject/recorder | a0393e0870a478a74dc454579007b18229d1d8d3 | 05810cb9ed37d8aaab10ddd09f9bb4305b2731dd | refs/heads/master | 2021-01-22T19:44:59.719101 | 2009-06-15T20:55:58 | 2009-06-15T20:55:58 | 100,265 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,981 | cc | experimentmain.cc | #include <boost/program_options.hpp>
#include "boost/filesystem/operations.hpp"
#include "boost/filesystem/fstream.hpp"
#include <iostream>
#include <fstream>
#include <gtkmm.h>
#include <glibmm.h>
#include <unistd.h>
#include <dbus-c++/dbus.h>
#include <dbus-c++/glib-integration.h>
#include... |
7e51943dc4b0478b5b5dca4eebeda1ff30774c3d | e393fad837587692fa7dba237856120afbfbe7e8 | /prac/first/AGC_010_A-Addition.cpp | 79c23c94c4557b99c926efc3c686dd98da649deb | [] | no_license | XapiMa/procon | 83e36c93dc55f4270673ac459f8c59bacb8c6924 | e679cd5d3c325496490681c9126b8b6b546e0f27 | refs/heads/master | 2020-05-03T20:18:47.783312 | 2019-05-31T12:33:33 | 2019-05-31T12:33:33 | 178,800,254 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 490 | cpp | AGC_010_A-Addition.cpp | #include <iostream>
#include <map>
#include <algorithm>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define REP(i,k,n) for(int i = k; i < (int)(n); i++)
using namespace std;
int main(){
int N,tmp;
int odd=0,even=0;
cin >> N;
rep(i,N){
cin>>tmp;
if(... |
440cb34dc442ea2c82e00f994fc5933ff728bd21 | 41259b2e45ab46ee6ef4d6668d2329d590436386 | /DM_Analyzer/plugins/scout.cc | de66d85fd1a3ceeb5ce1111e91ee253004528c0a | [] | no_license | SiewYan/DM_analyzer | 8b5075fcd3c6b1ce8f6551c393c1424eff61e758 | 8fc621ab6f4a98f55387c1eed6cd3e2938659852 | refs/heads/master | 2020-04-20T06:28:01.685744 | 2019-01-04T06:53:35 | 2019-01-04T06:53:35 | 168,684,938 | 0 | 0 | null | 2019-02-01T11:01:39 | 2019-02-01T11:01:39 | null | UTF-8 | C++ | false | false | 9,333 | cc | scout.cc | // -*- C++ -*-
//
// Package: EDMAnalyzer/DM_Analyzer
// Class: DM_Analyzer
//
/**\class DM_Analyzer DM_Analyzer.cc EDMAnalyzer/DM_Analyzer/plugins/DM_Analyzer.cc
Description: [one line class summary]
Implementation:
[Notes on implementation]
*/
//
// Original Author: Siew Yan Hoh
// Created:... |
4f1e17ae2fa5892f38ad6cafa5bf47ee160eaf01 | 323a70000f7e396f6d5c74322f79ffd17b884117 | /data_vel16_zedleft/reproject/coloring.cpp | f824bd7dbb929cdea6d770ddc061555ae258a55c | [] | no_license | eglrp/LaserSeteroCalibration | 629a09a5f024a11f7bb22e66cc7e098cfa0560a9 | f9a70a9a486b160bd85fe1b33daf110a9e5b028d | refs/heads/master | 2020-04-06T22:51:44.926711 | 2018-03-01T20:39:21 | 2018-03-01T20:39:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,146 | cpp | coloring.cpp | /*
* coloring the pointcloud with the image
*/
#include <cstdlib>
#include <cstdio>
#include <boost/foreach.hpp>
#include <math.h>
#include "opencv2/opencv.hpp"
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/io/pcd_io.h>
#include <pcl/common/eigen.h>
#include <pcl/common/transforms.h>
// ... |
40dda26cf723f0997772a2dbc8305b6758457399 | e211a5ac470b6e58c511b1a2acaebade67c404e0 | /transnode/FileQueue.h | 4435a5b8cbf91555bf661007dd22f6b370436ca3 | [] | no_license | taylorlu/transcli | 030b4bb52a054fa698b56268a8c0d3949c0ec087 | 94f75e2333b9e7a7738839243b46de9e8cc24642 | refs/heads/master | 2020-04-28T13:54:14.602129 | 2019-03-13T01:30:17 | 2019-03-13T01:30:17 | 175,320,906 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,174 | h | FileQueue.h | #ifndef _FILE_QUEUE_H_
#define _FILE_QUEUE_H_
#include <string>
#include <vector>
#include <map>
#include "bit_osdep.h"
#include "tsdef.h"
using namespace std;
class CFileQueue
{
public:
CFileQueue(void);
~CFileQueue(void);
typedef struct {
std::string fileName;
stream_type_t type;
vide... |
fda2e48669f4d089daed628e9cfcc01086246efb | 75e49b7e53cf60c99b7ab338127028a457e2721b | /sources/plug_doxmlparser/src/luna/bind_IDocParameterList.cpp | 5846b16c67ef95978b0cb6a9abc89fb069cc07db | [] | no_license | roche-emmanuel/singularity | 32f47813c90b9cd5655f3bead9997215cbf02d6a | e9165d68fc09d2767e8acb1e9e0493a014b87399 | refs/heads/master | 2021-01-12T01:21:39.961949 | 2012-10-05T10:48:21 | 2012-10-05T10:48:21 | 78,375,325 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,476 | cpp | bind_IDocParameterList.cpp | #include <plug_common.h>
class luna_wrapper_IDocParameterList {
public:
typedef Luna< IDocParameterList > luna_t;
// Function checkers:
inline static bool _lg_typecheck_sectType(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_params(lua_Stat... |
da40ca187e2712c40a974f45eca30fd19d20acc0 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/squid/gumtree/squid_repos_function_3297_squid-3.5.27.cpp | 4a7f730c74305e295dfe036819b26a030198832d | [] | 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 | 475 | cpp | squid_repos_function_3297_squid-3.5.27.cpp | void
MemStore::unlink(StoreEntry &e)
{
if (e.mem_obj && e.mem_obj->memCache.index >= 0) {
map->freeEntry(e.mem_obj->memCache.index);
disconnect(e);
} else if (map) {
// the entry may have been loaded and then disconnected from the cache
map->freeEntryByKey(reinterpret_cast<cache_... |
f50fe3b5548c0505c80b21eeb06106d1062aa4fa | 89d71656f1ba411c081f7e26258b498b7f10aaa2 | /AoJ/DSL/RangeQuery/RangeMinQuery/array.cpp | f0bdf25339aff953f81a548ed1e268c16fbaa670 | [] | no_license | noblesseoblige6/Algorithms | 4b06d01b7ca015c5b2b28398ae3142f10a281048 | ae8d1085009e0cd98e805795b4cc31a4e2e161ac | refs/heads/master | 2023-08-29T09:22:47.419651 | 2023-08-02T06:50:05 | 2023-08-02T06:50:05 | 51,254,943 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,103 | cpp | array.cpp | #include <bits/stdc++.h>
#define INI_VAL 2147483647
#define PrintDebug cout<<"TEST"<<endl;
using namespace std;
const int MAX_N = 131072;
int n;
int dat[MAX_N * 4];
void init()
{
for(int i = 0; i < 2*n-1; ++i)
dat[i] = INI_VAL;
}
void Update(int i, int x)
{
i += n-1;
dat[i] = x;
// Trace back until pa... |
2102252ffc78311bfe5613246dca868329b8c55f | 4e0590ddf391d3b70e01e332b9bb61b644d4312d | /code/pm/src/rest.cpp | 02b67ac0e94d0143335f6cd72ec1dc701af931df | [] | no_license | ktbolt/ProteinMechanica | 8724f2f12ba892a32b69423fd4dbb52b169a4981 | e02effec46550b1a91061dd052af54ae56a7546f | refs/heads/master | 2020-06-22T04:41:28.728730 | 2020-06-09T04:21:36 | 2020-06-09T04:21:36 | 197,635,184 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,763 | cpp | rest.cpp | /* -------------------------------------------------------------------------- *
* Protein Mechanica *
* -------------------------------------------------------------------------- *
* This is part of the Protein Mechanica coarse-grained molecular motor *
... |
ef77baf7dbf5a877f771b599331863fa04e58f6f | 293c244b17524210780b4fcb644c03d5cd6f1729 | /src/bugengine/scheduler/api/bugengine/scheduler/range/sequence.inl | e4f176bd0b5b29c8d8988e25e2f2fa895fc1dfd6 | [
"BSD-3-Clause"
] | permissive | bugengine/BugEngine | 380c0aee8ba48a07e5b820877352f922cbba0a21 | 1b3831d494ee06b0bd74a8227c939dd774b91226 | refs/heads/master | 2021-08-08T00:20:11.200535 | 2021-07-31T13:53:24 | 2021-07-31T13:53:24 | 20,094,089 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,499 | inl | sequence.inl | /* BugEngine <bugengine.devel@gmail.com>
see LICENSE for detail */
#ifndef BE_SCHEDULER_RANGE_SEQUENCE_INL_
#define BE_SCHEDULER_RANGE_SEQUENCE_INL_
/**************************************************************************************************/
#include <bugengine/scheduler/stdafx.h>
#include <bugengine/schedu... |
32ef4b3c3d36ab2ac8a21d4e531a19284219af25 | 625671e57ad5a28f16525961813a7bcd2eca3306 | /septa_gt.cpp | e0232cb1e22e04fc5608b58bc8f8503fc52ee31c | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | knausb/triplo_gt | 945671aae98e17c3aa80a86e01d9cc4d602489f0 | 700a523661956ac8cd8367dfb4e1ba11eb099f0a | refs/heads/master | 2020-05-16T21:36:43.114696 | 2014-12-18T19:28:18 | 2014-12-18T19:28:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 45,132 | cpp | septa_gt.cpp | // Compile with:
// g++ -std=c++0x septa_gt.cpp -lgmpxx -lgmp -o septa_gt
#include <iostream>
#include <fstream>
#include <string>
#include <array>
#include <vector>
#include <stdio.h>
#include <math.h> /* log10 */
#include <cstddef>
#include <gmp.h> // GNU multiple precision arithmetic library, not standard: libgmp3-d... |
64a68b2ce7ae0a14c97315e5115446a6dcf3a7eb | 6523e31b44c749d210c0571698afefc5a7f9dc29 | /hw5/code/fitcurve.h | df425971b93ad4ae42f68e14dfd3ed05fecd1728 | [] | no_license | dongm0/games102-assignment | db00e4ff520eb4aaafc099b483b22b8beb3818ed | 0e8837743f7cf4b942d09dab075e3ea5af444dba | refs/heads/master | 2023-01-18T18:12:20.841140 | 2020-11-20T17:35:16 | 2020-11-20T17:35:16 | 304,319,200 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,825 | h | fitcurve.h | #include <math.h>
#include <vector>
enum Segmentation {
B_SPLINE_2ND,
B_SPLINE_3RD,
INTERPOLATION
};
struct mypoint {
double x;
double y;
mypoint operator+(mypoint p1) {return{p1.x+x, p1.y+y};}
mypoint operator-(mypoint p1) {return{x-p1.x, y-p1.y};}
mypoint operator*(double a) {return{... |
f4b456149114c8d806d2af3ee60ddba8e6ed6da6 | 7b460bd397fcc365973d063657b15a7bde6ed795 | /source/vulkan/vulkan_hooks_device.cpp | 8320d517be3ab7c0b15241353c7cc28f0152f583 | [
"BSD-3-Clause"
] | permissive | Redundanz/reshade | 6f05d8105adb9add0516db380bfe6da859514478 | c1d826febc23fc2b18dfc8fc18ac7806169b85dd | refs/heads/main | 2023-03-18T02:58:40.769804 | 2021-05-24T20:00:32 | 2021-05-24T20:00:32 | 353,998,079 | 1 | 0 | BSD-3-Clause | 2021-04-02T11:24:59 | 2021-04-02T11:24:59 | null | UTF-8 | C++ | false | false | 84,916 | cpp | vulkan_hooks_device.cpp | /*
* Copyright (C) 2014 Patrick Mours. All rights reserved.
* License: https://github.com/crosire/reshade#license
*/
#include "dll_log.hpp"
#include "hook_manager.hpp"
#include "vulkan_hooks.hpp"
#include "lockfree_table.hpp"
#include "runtime_vk.hpp"
lockfree_table<void *, reshade::vulkan::device_impl *, 16> g_vu... |
3bd1b9a0c3f09aa89b8c5ebf75e196be1451abea | eef9cdafb7476427d194374cc11a54a068c30325 | /dataModelControl.cpp | 16af9173d1c966ff27116b919d196e969bf5b565 | [] | no_license | geetika016/FindMeAPet | 3988ecbb87fa0c92c2424f8b628d741cf99810b6 | 43a7dcceb1c01a170d3101c30017a541df89b02b | refs/heads/master | 2020-06-20T09:43:33.569960 | 2019-07-15T22:44:58 | 2019-07-15T22:44:58 | 197,078,766 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,476 | cpp | dataModelControl.cpp | #include "dataModelControl.h"
DataModelControl::DataModelControl(QObject *parent) : QObject(parent)
{
}
bool DataModelControl::buildModel(DataModel *output, DBSettings *settings)
{
output->setEditStrategy(settings->editStrategy);
output->setTable(settings->table);
if ((settings->colHeaderOperation->name... |
6d46df999b9b84ed6f4c89dd0f56e6261f50da1f | fea4453cb3ad97e03fae8166aedc7965db57eb52 | /Hacker rank/20-20 hack oct-2013.cpp | 8cdbfb200c5b59bdec91e4b98badc9d73b58f2e1 | [] | no_license | gauravchl/sourcecode | 59652b02fe6d7c952b4efdae05ad8ec15113de1e | da8589088040fc80cea1f72e035c1951290bbff0 | refs/heads/master | 2021-06-02T03:50:12.143969 | 2018-12-11T09:21:35 | 2018-12-11T09:21:35 | 15,161,449 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 402 | cpp | 20-20 hack oct-2013.cpp | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int t,n,c,m,tc,rw,temp;
cin>>t;
for(int x=0;x<t;x++)
{ cin>>n>>c>>m;
tc=n/c;
rw=tc;
while(m<=rw)
{
temp=rw/m;
... |
658ed1761ac7d2dd1b1fb72a2bb86806a5ff67cc | 112021b2aab61cd24847b72aeb856e887c028d25 | /Assignments/Solutions/Manika Joshi/Assignment16/Q1.cpp | 50f7cf68c80099f26f9132d2465538cf1bf8a9f7 | [] | no_license | amanraj-iit/DSA_Uplift_Project | 0ad8b82da3ebfe7ebd6ab245e3c9fa0179bfbef1 | 11cf887fdbad4b98b0dfe317f625eedd15460c57 | refs/heads/master | 2023-07-28T06:37:36.313839 | 2021-09-15T11:29:34 | 2021-09-15T11:29:34 | 406,765,764 | 10 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 964 | cpp | Q1.cpp | class Solution {
public:
bool isValid(string s) {
int i=0;
string str;
stack<char> stack;
/* if(s[i]=='{' ||s[i]=='(' ||s[i]=='[')
{
stack.push(s[i]);
}
*/
while(s[i])
{
if(s[i]=='{' ||s[i]=='(' ||s[i]=='['... |
45db693148241477db2b085f1ac2cedeba7121a9 | f0bcb33947a68900a6ce2b92a4fd8362bf537311 | /Encounter-Server/Chest.h | 197934e8855d093a4f481d578e006d137cf0b0db | [] | no_license | paolo21d/Encounter-Server | b84445733df4b90248faa832424d678de0b02085 | c5794a38ccbe57b762ef08af58daf664e9000784 | refs/heads/master | 2020-04-05T09:43:29.187584 | 2018-12-23T22:30:20 | 2018-12-23T22:30:20 | 156,771,070 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 275 | h | Chest.h | #pragma once
#include "Object.h"
#include "Deck.h"
class Chest : public Object {
Deck myDeck; //kart
int gold; //pieniądze w skrzyni
public:
Chest();
Chest(Deck&& myDeck_, int gold_);
~Chest();
virtual void interaction(Hero& invader); //odpal skrzynkę
};
|
45284eaa41c55f9c4d0d7666d529293c784da0a7 | c0f86cdbc48ed2d9315dfc356adae28d41810ff6 | /GameTemplate/Source/GameEngine/PhysicsManager.cpp | 0dd08094862e17274b493fab8431979410e9afdc | [] | no_license | ElToChetao/gameEngine | 0d2b8d96bf3910e0f82a2c05774e0c5e0c42722d | cc642be3d8bdffcce45bff4874255cc0d18a866c | refs/heads/main | 2023-02-23T22:24:11.684910 | 2021-01-10T19:55:09 | 2021-01-10T19:55:09 | 314,352,567 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,841 | cpp | PhysicsManager.cpp | #include "PhysicsManager.h"
PhysicsManager::PhysicsManager(){}
void PhysicsManager::Update() {
vector<GameObject*> go = GameObjectManager::GetInstance().GetGameObjects();
for (int i = 0; i < go.size(); i++) {
if (go[i]->collider != NULL)
{
for (int j = i + 1; j < go.size(); j++)
{
if (go[... |
27397560453297460651357af84f723be4c0fcd1 | be33dfd5ab44d90045c4ae9dbaa1c82e47e43609 | /include/game/Controller/tabletcontroller.hpp | 41455fa08573a93f44f16d0b475c59b36838e774 | [] | no_license | fishmaker/fishing | 767aae5c509b65f648348df40c2a2d85d9d55ed0 | 2a680a59ecb60dd78b35b9d47755fe9a07d9901b | refs/heads/master | 2021-01-12T04:39:43.524758 | 2017-01-08T21:52:17 | 2017-01-08T21:52:17 | 77,695,768 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 485 | hpp | tabletcontroller.hpp | #ifndef TABLETCONTROLLER_H
#define TABLETCONTROLLER_H
#include <QObject>
#include <QWidget>
#include "game/Interfaces/iformbase.hpp"
#include "game/View/tabletview.hpp"
namespace game {
class TabletController : public QObject, public IFormBase
{
Q_OBJECT
public:
explicit TabletController(QWidget *a_Parent... |
305d1439e98472ff0e687c1032723d826c8ba370 | fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd | /chromeos/components/tether/connection_priority.cc | 72692e09676c91890061428400aa288c2e1e0b68 | [
"BSD-3-Clause"
] | permissive | wzyy2/chromium-browser | 2644b0daf58f8b3caee8a6c09a2b448b2dfe059c | eb905f00a0f7e141e8d6c89be8fb26192a88c4b7 | refs/heads/master | 2022-11-23T20:25:08.120045 | 2018-01-16T06:41:26 | 2018-01-16T06:41:26 | 117,618,467 | 3 | 2 | BSD-3-Clause | 2022-11-20T22:03:57 | 2018-01-16T02:09:10 | null | UTF-8 | C++ | false | false | 1,219 | cc | connection_priority.cc | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromeos/components/tether/connection_priority.h"
#include "base/logging.h"
namespace chromeos {
namespace tether {
ConnectionPriority Prior... |
18221ef8c0931ed7b382c9081175899e03ce1fef | d51f82fe0b94b7b55ad096027d36c3c6ac164f2d | /tools/include/votca/tools/random.h | 0b372e38d81d581353e80da76b666f6a15e078a9 | [
"Apache-2.0"
] | permissive | votca/votca | c45e0d830ca2ef8cb000441935cf681a272afdb4 | 4645704e18767051905d821447f6f211c55475f6 | refs/heads/master | 2023-08-03T15:02:40.949525 | 2023-07-18T19:48:29 | 2023-07-18T19:48:29 | 75,022,030 | 54 | 44 | Apache-2.0 | 2023-09-10T21:44:34 | 2016-11-28T23:02:45 | C++ | UTF-8 | C++ | false | false | 1,630 | h | random.h | /*
* Copyright 2009-2020 The VOTCA Development Team (http://www.votca.org)
*
* 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
*
* Unle... |
9a473894c954d5296c4b954627191ec6bc3bbf45 | f866001c2bee6bfdcec1e7c11ad95c2073d3b71b | /src/AlgoMath.cpp | 794af74144b0eca751174606adff84df6e55fac9 | [] | no_license | ldkv/Maths5A_Coons | c1b68e429f9c586dc729fd9c118d2e4805e3c795 | 23c87b6e4a33273d352b8b49499eaab98122dea1 | refs/heads/master | 2021-01-20T15:09:47.411055 | 2017-05-12T16:12:35 | 2017-05-12T16:12:35 | 90,725,294 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,933 | cpp | AlgoMath.cpp | #include "stdafx.h"
#include "AlgoMath.h"
// Fonction intermédiaire pour l'algo de Casteljau
QVector3D getCasteljauPoint(vector<QVector3D> poly, double t)
{
int N = poly.size();
for (int k = 1; k < N; k++)
for (int i = 0; i < N - k; i++)
poly[i] = (1 - t)*poly[i] + t*poly[i + 1];
return poly[0];
}
// Calculer... |
4a4294e472dabfcb48645c11b8915626fbf75f44 | c4f3d6aaeecda81b20b9ce3e90aa49459b4b7bbc | /fixedInfector.cpp | 55dbf1806f9aa03d348f86759c7a28a790a08e45 | [] | no_license | jcohen1964/MadCow | f030a37d78cd76528116569637c19d12a38cecdd | ae7abf926e15436d398e63d164d1d2cce79e2969 | refs/heads/master | 2020-03-22T10:22:49.348843 | 2018-07-05T21:16:58 | 2018-07-05T21:16:58 | 139,898,542 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,060 | cpp | fixedInfector.cpp | #include "FixedInfector.h"
#include "bovine.h"
#include "sickBovine.h"
#include "bovineHerd.h"
#include "bovineGroup.h"
#include "reporter.h"
#include <string>
#include <iostream>
//Takes three arguments (bovine type, gender, and age in months) and returns number of infected
//bovines with those characterist... |
f3405b065efc5add09db67e3c9ab23a211f39b03 | e8fb2ccc34338ff5fdb27fe0a856da9611cd09fb | /ExpressSystem/ListSortImpl.cpp | 3a08102d527ef3a133a6b42e294563d1ad1eff9b | [] | no_license | SimonJsx/ExpressSystem | 5b3c21a65363e091606a1a615b24d9ff18115e48 | a5265959e21fcbc89f799d8a1aa06afa8e5b5450 | refs/heads/master | 2021-01-01T05:36:36.530222 | 2014-09-16T06:57:11 | 2014-09-16T06:57:11 | 24,084,552 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,757 | cpp | ListSortImpl.cpp | #include "stdafx.h"
#include "ListSortImpl.h"
#include <sstream>
int CALLBACK compareFun(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)
{
ListSortImpl* pListImpl = reinterpret_cast<ListSortImpl*>(lParamSort);
CListCtrl* pList = pListImpl->listHandle_;
int nItem1, nItem2;
LVFINDINFO FindInfo;
FindInfo.flags =... |
503fc26fe88cdab84026231b0a40645f4c4db147 | b6c32b7029a63616d3cf654eaa4dea9e7c4aa504 | /developer/norokko_slepc/frank_matfree_1proc.cpp | d9f8af0ffbdee72c68ac09fff2b666d6b3cb33e5 | [
"BSL-1.0"
] | permissive | wistaria/rokko | 9cbfb47bd4ac81a30fc0ff6e5ae24374c3b0a1b4 | 7cd9d5155e82f038039a46c1dc8f382b3fe7e2b7 | refs/heads/master | 2020-05-30T11:27:18.015330 | 2019-06-01T22:20:58 | 2019-06-01T22:20:58 | 189,702,188 | 0 | 0 | BSL-1.0 | 2019-06-01T07:10:01 | 2019-06-01T07:10:01 | null | UTF-8 | C++ | false | false | 4,300 | cpp | frank_matfree_1proc.cpp | #include <slepceps.h>
#include <petscblaslapack.h>
#include <rokko/localized_matrix.hpp>
#include <rokko/utility/frank_matrix.hpp>
/*
User-defined routines
*/
PetscErrorCode MatMult_myMat(Mat A,Vec x,Vec y);
PetscErrorCode MatGetDiagonal_myMat(Mat A,Vec diag);
#undef __FUNCT__
#define __FUNCT__ "main"
int main(int... |
f524909f1d5f5479db0b52df88922180563941eb | dd8dd5cab1d4a678c412c64f30ef10f9c5d210f1 | /cpp/leetcode/5108. encode-number.cpp | a9c1c648601b73ac7815c8e5baf8a71d2365cf59 | [] | no_license | blacksea3/leetcode | e48a35ad7a1a1bb8dd9a98ffc1af6694c09061ee | 18f87742b64253861ca37a2fb197bb8cb656bcf2 | refs/heads/master | 2021-07-12T04:45:59.428804 | 2020-07-19T02:01:29 | 2020-07-19T02:01:29 | 184,689,901 | 6 | 2 | null | null | null | null | GB18030 | C++ | false | false | 679 | cpp | 5108. encode-number.cpp | #include "public.h"
//数学题
class Solution {
public:
string encode(int num) {
int stlen = log(num + 1) / log(2);
int remain = num - (pow(2, stlen) - 1);
//求remain的stlen位二进制表示
string res;
for (int i = 0; i < stlen; ++i)
{
res += "0";
}
int precount = 0;
while (remain > 0)
{
if (remain % 2)... |
f17d455842f3b3eaa2cbc0d12633fbae2f846928 | 21fbf7be299ee40483d727a8caf0faead2990e17 | /Code/Compile/445.916.cpp | fcf1c7eac01e1f02ceed008080d28df3bbcf7589 | [] | no_license | sihcpro/DetectSimilarCode | 2576dfd321190118a39db7d1181384f05f359003 | 312752160e2c18466f0957d89243913311f5ca7e | refs/heads/master | 2021-04-15T07:48:39.836713 | 2018-10-05T08:34:24 | 2018-10-05T08:34:24 | 126,775,044 | 0 | 1 | null | 2018-10-05T07:46:47 | 2018-03-26T04:53:49 | null | UTF-8 | C++ | false | false | 459 | cpp | 445.916.cpp | # 1 "./Process/445.916.cpp"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<command-line>" 2
# 1 "./Process/445.916.cpp"
int main()
{
long long l,n, maxa=0, mina = 0,u,v;
cin >> l >> n;
while (n--)
{
long long a;
cin >> a;
u = min(a,l-a);
... |
698fa378afb162411dbe2032ae6daa12aca7fe3f | 166facd141cfb42292db448578fbd0bdf9b795ac | /ImasiEngine/Source/Graphics/Buffers/IndexBuffer.cpp | c1a724b7c751fec0ab60296f419eb325083b0cbd | [] | no_license | imasiprojects/ImasiEngine | 7dbcd75d2b4215e603a1bf8bcac1dd586d2ae921 | 03fe836099aec3d567fb16aefa923c245ddab9f8 | refs/heads/master | 2021-09-10T01:59:12.237695 | 2021-09-02T23:04:40 | 2021-09-02T23:04:40 | 161,831,834 | 1 | 1 | null | 2021-09-02T23:04:41 | 2018-12-14T19:33:20 | C++ | UTF-8 | C++ | false | false | 547 | cpp | IndexBuffer.cpp | #include "IndexBuffer.hpp"
#include <GL/glew.h>
#include "../Opengl/OpenglHelper.hpp"
namespace ImasiEngine
{
void IndexBuffer::bind(const IndexBuffer& buffer)
{
GL(glBindBuffer(GLEnums::BufferType::Index, buffer.getGLObjectId()));
}
void IndexBuffer::unbind()
{
GL... |
479b7e50997f16c0afb1893e60ed87f5bf1f9b43 | 42ae6f3f0d6cee31ad2afb14d494d9bec3721689 | /LinkedList.h | 25b9652b5c9a1a50fc93479c224cd13e039993e2 | [
"MIT"
] | permissive | ginge/GuiLibrary | 0bb0cec5011a56d0cc6e28f0c33779e9c821f685 | f9b90686ba910c6fa63f3b7826a0b75264948586 | refs/heads/master | 2021-05-16T02:00:09.304888 | 2019-02-20T13:43:44 | 2019-02-20T13:43:44 | 40,813,934 | 37 | 26 | MIT | 2019-02-20T13:43:45 | 2015-08-16T11:43:32 | C++ | UTF-8 | C++ | false | false | 2,110 | h | LinkedList.h | /*====================================================================================
Copyright (c) 2015 Barry Carter <barry.carter@gmail.com>
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 wit... |
001df64249bca3a2cda70878d0d13857ba4a88d5 | a71785c71eef6acb0afb76b2b0990f9e89f00585 | /Codes/Sort/InsertionSort/main.cpp | fa3212ade21e0e5c2e5e973899af18f60882422d | [] | no_license | chichuyun/Algorithm | c0e980e2eb6d53f9830c62044ebea94431ea22e0 | 8ae69df3af5214b3019156b3ca6e3ee09d1cea86 | refs/heads/master | 2023-04-08T11:01:17.841373 | 2023-04-05T15:19:03 | 2023-04-05T15:19:03 | 154,915,602 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 807 | cpp | main.cpp | #include<iostream>
#include<vector>
#include<utility>
using namespace std;
typedef vector<int> vecInt;
void insertionsort(vecInt &);
int main() {
vecInt lst;
int in, num;
cout<<"num: "<<endl;
cin>>num;
cout<<"Input nums: "<<num<<endl;
for(int i=0;i<num;++i) {
cin>>in;
... |
036c58d5012fe0239b3136c805b7851a878078db | 99d78ea422d89601932299b53352159a4154c5bc | /KappaAnalysis/interface/Producers/PFCandidatesProducer.h | 9e0e6a339fa1fed2e04958b06adcc6a40efd69cc | [] | no_license | KIT-CMS/Artus | 379c10e0313951540806c7ab6b8aaa73f4a2012e | d7cffddcfd95924db8c3d43e004094334fa464fe | refs/heads/master | 2023-02-08T14:49:18.474550 | 2022-12-20T10:33:04 | 2022-12-20T10:33:04 | 99,791,453 | 4 | 4 | null | 2022-02-23T12:22:08 | 2017-08-09T09:38:26 | C++ | UTF-8 | C++ | false | false | 821 | h | PFCandidatesProducer.h | #pragma once
#include "Kappa/DataFormats/interface/Kappa.h"
#include "Artus/KappaAnalysis/interface/KappaProducerBase.h"
#include "Artus/Consumer/interface/LambdaNtupleConsumer.h"
/**
\brief Producer, that devides packedPFCandidates according to pddId. Source :
https://twiki.cern.ch/twiki/bin/view/CMSPublic/Wor... |
4e4d310d194c8a801dd588dcc178ef96f59f474f | 98d27b90c0dead59c23304b0b62dc3483047da44 | /trunk/src/SystemBox.h | e235c418e298de18fb0d4ff9b52c57f040dca64a | [] | no_license | BackupTheBerlios/qshapes-svn | 254ea3d50d200f50d159185ba3f1f66469160298 | 445842e8b18efb85f3344bda563b7bb3473e2e97 | refs/heads/master | 2020-05-18T01:20:13.427326 | 2006-05-08T16:37:24 | 2006-05-08T16:37:24 | 40,775,310 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,532 | h | SystemBox.h | /*
* This file is part of QShapes project
* Copyright (C) 2006 QShapes development team
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your optio... |
d6ab0b300a4bc06f71993dd2c1bf641a87a96781 | 3345d1b8171a54c088e9bc26d23cb14f7f5ed05a | /Prime_Numbers/main.cpp | 81e309ee2cc9680e58e01ea1a629242a86263369 | [] | no_license | LuigiMagrelli/Prime_Numbers | 535063c10140ebfa2b7265fa055b8784f78e81a0 | 405e00e7e166e7c78461480c35b7883845aeb913 | refs/heads/master | 2020-08-14T18:10:01.434924 | 2019-10-15T05:24:00 | 2019-10-15T05:24:00 | 215,213,339 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,485 | cpp | main.cpp | /****************************************
* main.cpp
* Luigi's Prime Calculator
*
* Created by Luigi Magrelli on 6-10-2019
* Copyright © 2019 Techilepsy, LLC. All rights reserved.
*
* This program should ask the user for a maximum value
* and calculate all of the primes from 0-maxVal
* Bonus poin... |
b386adb30c4e4f5ede99a64ee23c8f04d8fe62ed | 0af703b294681f3a4f65375811d14d88bb20424f | /cards/main.cpp | 0adb150a68762f073c31dd3040a89f18e99edcdb | [] | no_license | DanielKaczocha/Cpp | 28e2518242c72e2ab91aa7911760e6d4a593f16a | 94fef31d363853d4ceb13373dd0d2476389d1518 | refs/heads/master | 2020-03-16T15:55:55.391196 | 2018-05-09T20:41:29 | 2018-05-09T20:41:29 | 132,764,601 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 676 | cpp | main.cpp | #include <iostream>
using namespace std;
void deck(string fig[13], string col[4]);
void print (string card[13*4]);
string fig[13] = {"2","3","4","5","6","7","8","9","10","J","Q","K","A"};
string col[4] = {" Pik", " Karo", " Trefl", " Kier"};
string card[13*4] = {};
int main() {
deck(fig, col);
print(ca... |
7c3e887c84000dadadf6fae3e665b22a86fb4a9a | fc9453f8531d0058832fc97989807eb1b7a96c03 | /Task7/Task7.cpp | 1f290c17111b5debeebf829f9f12053cad7e3579 | [] | no_license | Aitoly/FA-3sem-Lab2 | a43750ea23d86fb4a3da2bb54eab1ff7e118e296 | 1610dca84d398f4ae7d7b1513be0a69459c9c85e | refs/heads/master | 2022-12-14T05:18:56.342874 | 2020-09-01T11:29:17 | 2020-09-01T11:29:17 | 291,969,155 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 452 | cpp | Task7.cpp | #pragma warning(disable:4996)
#include<stdio.h>
#include<iostream>
#include<ctype.h>
#include<math.h>
#include<time.h>
#include<stdarg.h>
double middle_geometric(int n, ...)
{
double out = 1;
va_list args;
va_start(args, n);
for (int i = 0; i < n; i++)
{
out *= va_arg(args, int);
}
va_end(args);
return po... |
c0284b91beec3030eae2bbff88a3be08490e644f | b84f4db846184e7d478b49f4f9c5a771c0eb9567 | /PrimeraPrograED/thread_almacen_machines.cpp | b119abc25f4a86c83addd07257c4dcab0bb19fa7 | [] | no_license | TheCsarbeat/Progra_1_ED | 7111442958ec61bdb4bfa91138e7807c03f636c4 | 53e2ef1625a8a3718e9d83d0b465ee19fe9c1d87 | refs/heads/main | 2023-08-25T20:16:30.231260 | 2021-10-19T20:47:36 | 2021-10-19T20:47:36 | 413,277,311 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,056 | cpp | thread_almacen_machines.cpp | #include "thread_almacen_machines.h"
ThreadAlmacenMachines::ThreadAlmacenMachines(){
}
void ThreadAlmacenMachines::__init__(Almacen * almacen, Machine * machine, QMutex * mutex, ColaPeticiones * colaPeticiones,EstructuraProgressBar * progressBar, QCheckBox * checkOnOff) {
this->almacen = almacen;
this->runni... |
6b1e04e17d99df25ddb2fa1b359fd66dda036fb7 | 98dec71e5abd9f33f4966f2f94784828b81d29a0 | /src/filters/FilterNMS.cpp | b72084add48dcb475c276a35c31a348c3346a8ba | [
"BSD-3-Clause"
] | permissive | caomw/PartsBasedDetectorOnVideo | b3c0c2486a83afc0b7be87d1adbd3b4385620e49 | 0d19a662a2b705ca7854de45685b3a1b2d66d970 | refs/heads/master | 2021-01-20T10:04:47.214086 | 2014-05-23T14:53:48 | 2014-05-23T14:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,122 | cpp | FilterNMS.cpp | /*
* PartsBasedDetectorOnVideo
*
* Software License Agreement (BSD License)
*
* Copyright (c) 2013, Chili lab, EPFL.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* *... |
bb7abb6038feb5d0bbece36acc33e88de174d3dd | 7e6c6300633c9165335f962799f6bd490ff0360b | /test.cpp | 53a5718d5de6771843267f4a5fbc8c47489c8541 | [] | no_license | saveunhappy/SymmetricMatrix | 9393d1826d3799b967ec0aad7b4f0c19d1727611 | 7de04264f38017a1b64cfb4191c1f7435f2705ef | refs/heads/master | 2021-05-31T11:23:28.382833 | 2016-05-26T15:07:03 | 2016-05-26T15:07:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 520 | cpp | test.cpp | #define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;
#include <stdlib.h>
#include "Matrix.h"
void test1()
{
int a[6][5] =
{
{ 1, 0, 3, 0, 5 },
{ 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0 },
{ 2, 0, 4, 0, 6 },
{ 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0 },
};
SparseMatrix<int> sm1((int*)a, 6, 5, ... |
33d43e118bf0efd8073ef1aa10de55b03a11e86e | 5664ab66deeecea95313faeea037fa832cca34ce | /modules/canbus/proto/vehicle_parameter.pb.cc | c4be791cc0d9c9a6ffa013f6fa68ff5b6aad53a7 | [] | no_license | Forrest-Z/t1 | 5d1f8c17dc475394ab4d071a577953289238c9f4 | bdacd5398e7f0613e2463b0c2197ba9354f1d3e3 | refs/heads/master | 2023-08-02T03:58:50.032599 | 2021-10-08T05:38:10 | 2021-10-08T05:38:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 17,667 | cc | vehicle_parameter.pb.cc | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: modules/canbus/proto/vehicle_parameter.proto
#include "modules/canbus/proto/vehicle_parameter.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format... |
4eff46c67ecbd27c38743e5aa088bc05da6779a7 | ee699ab7683802dc32ff6b34c4a2c6d9fd5ae555 | /SpringMass/Spring.cpp | 909ece46d33b12a2f0ad629cd20479e12ebd2d95 | [] | no_license | Lyszard/PARACHUTE | 38507bf7eaeeb050cdaefcd1e1b43acbfa28d705 | 16b711ffef2b9a53b87cd6d1945d6f1ebb64fffc | refs/heads/master | 2021-05-09T09:41:29.338643 | 2018-01-29T23:33:06 | 2018-01-29T23:33:06 | 119,452,868 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,042 | cpp | Spring.cpp | #include "Spring.h"
#include <iostream>
using namespace std;
Spring::Spring(double pos, double len, int pointsNumber, double springConstant):
position(pos),
length(len),
pointsNumber(pointsNumber),
springConstant(springConstant),
type(type),
G(9.81)
{
for (int i = 0; i <= pointsNumber; i++)
points.push_back(ne... |
0b3a0a211d95ee167073ef304afe664d34c43d60 | be9b099fe82ad79f269fe878d4c8db3ebe47d4b1 | /Classes/PG_Controller.cpp | 6fbf11baa3d87bd36c7df6fbb766ea42aacabd58 | [] | no_license | lovePC/paoku3d | 989d563a23cd648fd14336ce7a28e7d9a33677ab | d9d44184ee6328175d4d22d22307cbca969914e3 | refs/heads/master | 2020-04-15T13:35:27.400080 | 2014-11-18T14:32:54 | 2014-11-18T14:32:54 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,240 | cpp | PG_Controller.cpp | #include "PG_Controller.h"
#include <stdlib.h>
#include <time.h>
#include "Obstacle.h"
#include "Coin.h"
#include "DecorationAction.h"
#include "GroundAction.h"
#define TRACK_0 0
#define TRACK_1 1
#define TRACK_2 2
PG_Controller::PG_Controller():current_sequence(nullptr)
{
srand((unsigned int)clock());
}
PG_Contr... |
6ec8e78c9dc1172fbff9cff47eee4df7193003dd | ce0fb3ad2300ec9d690167a703778aaf47b4040f | /Platfo/camera3DSystem.h | 4798e1da5d117b516a023bf988b4988e281e7618 | [
"MIT"
] | permissive | johndpope/Platfo | c024137646bad0df86bd7f334a51c8f5b9efc17b | f5c22b5a1193e7b4d3535701c15f479159d17357 | refs/heads/master | 2021-06-01T01:47:37.965660 | 2016-06-20T14:41:09 | 2016-06-20T14:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 633 | h | camera3DSystem.h | #ifndef CAMERA3DSYSTEM_H_INCLUDED
#define CAMERA3DSYSTEM_H_INCLUDED
#include "system.h"
class Camera3DSystem : public System
{
private:
static SystemID ID;
public:
Camera3DSystem();
virtual ~Camera3DSystem();
EntityID activeCamera;
//Auto generation of ID
S... |
df02b966fa3ceac5ba34b86d24d765b792ef346e | 841f348d00b9845020b8df3887db724d03ead126 | /TinySync.cpp | 9e13ed38449a6c74e2b759560ddd36334bd13acd | [] | no_license | nokotan/TinySync | 85f07665ef6cbe443c166139e2947516c43db640 | 7a9c195e6c3dfa2c77311848f71d715263666c81 | refs/heads/master | 2021-04-15T04:16:44.494270 | 2018-03-22T17:45:36 | 2018-03-22T17:48:00 | 126,374,341 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,463 | cpp | TinySync.cpp | #include "TinySync.h"
#include <map>
#include <memory>
#include <xhash>
struct SyncronizationInfo {
void* DataPointer;
size_t PreviousDataHash;
size_t DataSize;
int Operation;
};
struct SendingData {
size_t StructSize;
size_t DataNameHash;
char DataBuffer[1];
};
static s... |
b2cd11c5e90c3af2c04a5339f2dcd9516876e87d | c9e05d02afbb3360a498876a0bc9d68b1394b074 | /EduServer/sublogin/loginform.cpp | b5372423d1652fd820cc82fcc3d962946624d535 | [] | no_license | duier2018/EduMSForNetBase | 971cdb96ae8293f16685620aaa2a537a82b43327 | 7e908b75522e06cf25103c1f855e982ff5094d76 | refs/heads/master | 2020-07-06T08:45:36.584843 | 2019-08-18T04:31:03 | 2019-08-18T04:31:03 | 202,959,860 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 958 | cpp | loginform.cpp | #include "loginform.h"
#include "ui_loginform.h"
#include <QPaintEvent>
#include <QPainter>
#include <QPixmap>
#include <QMessageBox>
LoginForm::LoginForm(QWidget *parent) :
QWidget(parent),
ui(new Ui::LoginForm)
{
ui->setupUi(this);
}
LoginForm::~LoginForm()
{
delete ui;
}
void LoginForm::paintEve... |
d31e6d89e70747fdd1ef7c3a6b6d068da1ac3c52 | 866efabadb19cd98a1d55447aa0a9777bce0eedd | /resource.cpp | 51dd1e6813fa76631c30c65b0fa513e3f89745c3 | [] | no_license | Snowdroplet/GatehouseRewriteRepository | 301e4048f98b8c5856c75932d2c3e2d582b72361 | f3a561e7f98de56ef6a256ce6c872cbf1f8b1827 | refs/heads/master | 2023-06-23T13:31:39.102856 | 2021-07-21T17:12:25 | 2021-07-21T17:12:25 | 387,786,191 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 384 | cpp | resource.cpp | #include "resource.h"
/// Declaration
ALLEGRO_BITMAP *gfxActorSheet = nullptr;
ALLEGRO_BITMAP *gfxTileSheet = nullptr;
/// Constants
void LoadResources()
{
gfxActorSheet = al_load_bitmap("gfxActorSheet32.png");
gfxTileSheet = al_load_bitmap("gfxTileSheet32.png");
}
void UnloadResources()
{
al_destroy... |
ca6ea81744230873137a16127ca939b2d4d6257f | edc691f8d5dfc134c65420ee5decdc95d0418339 | /BiuroPodrozy/include/WycieczkaObjazdowa.h | f52453bcb7e3d336f458e96dda257f81b83e2695 | [] | no_license | alicja-lachman/BiuroPodrozy | 0d591a895479114ea572c7e97a8effbe670476f1 | 41241bc457d1b2dd73b62b23680b8ce8b45fbf4a | HEAD | 2016-08-12T06:02:46.907838 | 2016-01-12T09:47:50 | 2016-01-12T09:47:50 | 47,417,549 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 911 | h | WycieczkaObjazdowa.h | #ifndef WYCIECZKAOBJAZDOWA_H
#define WYCIECZKAOBJAZDOWA_H
#include <vector>
#include <set>
#include <Wycieczka.h>
#include <string>
using namespace std;
class Wczasy;
class WycieczkaLaczona;
class WycieczkaObjazdowa : public Wycieczka
{
private:
string dojazd;
struct tm data_zakonczenia;
vecto... |
6836c212bbf6815e42876f1c0f75b6e5e3f4f654 | 25e826022550f3ee197018b7caf13f034141b425 | /AM/src/MCRIU.cc | 42086cdfd024554276d80f44f7be4e00c6ba9b4b | [
"BSD-3-Clause"
] | permissive | siqiyan/MTF | c7ecab05228714be0be09e200650e70fa7eeb176 | 9a76388c907755448bb7223420fe74349130f636 | refs/heads/master | 2022-04-20T22:17:06.090391 | 2020-04-23T07:09:01 | 2020-04-23T07:09:01 | 256,113,963 | 1 | 0 | BSD-3-Clause | 2020-04-16T05:02:00 | 2020-04-16T05:01:59 | null | UTF-8 | C++ | false | false | 207 | cc | MCRIU.cc | #include "mtf/AM/MCRIU.h"
_MTF_BEGIN_NAMESPACE
MCRIU::MCRIU(const ParamType *riu_params) :
RIU(riu_params, 3){
name = "mcriu";
printf("Using Multi Channel variant\n");
}
_MTF_END_NAMESPACE
|
c0ddcf3f96b7fe93e79abdf436d3b932959155f4 | 9eb936a4f5c65cd25467199e30cce1fc5a8946ae | /src/serialization/allocators.hh | 499749fdba4c4914734b0535f07370a10b20340e | [
"MIT"
] | permissive | mellowagain/rpc-wine | 9d49b718e35f26e017d937138b625013fec09409 | e432eb6918523b329f8afffa6c65f86bae27e54f | refs/heads/master | 2022-10-17T14:05:34.647610 | 2022-09-08T01:44:58 | 2022-09-08T01:44:58 | 137,587,190 | 52 | 5 | MIT | 2022-09-08T01:44:59 | 2018-06-16T14:39:21 | C++ | UTF-8 | C++ | false | false | 1,082 | hh | allocators.hh | #ifndef RPC_WINE_ALLOCATORS_HH
#define RPC_WINE_ALLOCATORS_HH
#include <cstddef>
namespace rpc_wine::serialization {
class linear_allocator {
private:
char *buffer;
char *end;
public:
static const bool kNeedFree = false;
linear_allocator() = default;
linear_alloc... |
bb5f48025157af9a31cf66f87ceeccdc4d794606 | 4601fb207346ec8921d47e6612102a8b15872645 | /src/typedefs.h | 992efcb316b9634f124e4a77e01a380bba521e28 | [
"Apache-2.0"
] | permissive | chinesejie/reflect | 2761abb168636af29f817b7eabf6d6adbcd826d6 | e063ec18bf29c05e1067b91871063618e2ea6035 | refs/heads/master | 2020-12-26T03:55:33.885148 | 2015-05-28T07:40:36 | 2015-05-28T07:40:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 407 | h | typedefs.h | #ifndef _TYPEDEFS_H
#define _TYPEDEFS_H
typedef unsigned char uchar;
#include <string>
#include <vector>
#include <exception>
#include <sstream>
#include <iostream>
using std::string;
using std::vector;
using std::ostream;
using std::cout;
using std::endl;
using std::cin;
enum {
INT8 = 0,
INT32,
STRING, // ... |
74e33482719cd8eb96b6f430233fa2931a2c2d9f | 865bfdce73e6c142ede4a7c9163c2ac9aac5ceb6 | /Source/Generic/Types/Plane.h | 9d781c779408131a64f1fe976b7763b2306be20a | [] | no_license | TLeonardUK/ZombieGrinder | d1b77aa0fcdf4a5b765e394711147d5621c8d4e8 | 8fc3c3b7f24f9980b75a143cbf37fab32cf66bbf | refs/heads/master | 2021-03-19T14:20:54.990622 | 2019-08-26T16:35:58 | 2019-08-26T16:35:58 | 78,782,741 | 6 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 851 | h | Plane.h | // ===================================================================
// Copyright (C) 2013 Tim Leonard
// ===================================================================
#ifndef _GENERIC_PLANE_
#define _GENERIC_PLANE_
#include "Generic/Types/Vector3.h"
class Plane
{
//MEMORY_ALLOCATOR(Plane, "Data Types");
pr... |
b563d412e65d059f3881a53cf70419519f302cb3 | 1d827f46ed78e1d5f72e0f4ce882dfb54879a4a0 | /Arduino/cio_007_Lookups.ino | 3dbdf93f5ead5ddb3ee2121a1656b61c95ed621e | [] | no_license | mackelec/CANio-18 | e771063029db4d89555da410001efa1eeb54b79e | 7da9c43119f657cd2ec8e3f3311d8bf52305f455 | refs/heads/main | 2023-07-17T21:24:53.279573 | 2021-08-22T22:09:29 | 2021-08-22T22:09:29 | 398,897,774 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 67,376 | ino | cio_007_Lookups.ino |
uint8_t const gaugeTempLookup[] = {
20 , 20 , 20 , 21 , 21 , 22 , 22 , 23 , 23 , 24 ,
24 , 25 , 25 , 26 , 26 , 27 , 27 , 28 , 28 , 29 ,
29 , 30 , 30 , 31 , 31 , 32 , 36 , 40 , 45 , 49 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.