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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7c19d402c6b7bb795143efa81e0af27d486776cd | 2f10f807d3307b83293a521da600c02623cdda82 | /deps/boost/win/debug/include/boost/interprocess/sync/detail/condition_algorithm_8a.hpp | 87dc0f71bb35de4ed49f45e93a3d23b457241301 | [] | no_license | xpierrohk/dpt-rp1-cpp | 2ca4e377628363c3e9d41f88c8cbccc0fc2f1a1e | 643d053983fce3e6b099e2d3c9ab8387d0ea5a75 | refs/heads/master | 2021-05-23T08:19:48.823198 | 2019-07-26T17:35:28 | 2019-07-26T17:35:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 130 | hpp | condition_algorithm_8a.hpp | version https://git-lfs.github.com/spec/v1
oid sha256:048c4b85611053738669c1f44dd60bf629378715e9e2035aca6ab6ba2d69cfa6
size 12723
|
319cd99f6e21c6139c95de8f2146ad60b43ed164 | 0cd56f1c5f4d6a6a3a398486f8d929ccdfd2c62b | /classes.cpp | 38250d59e4ca0da3ef45a341cf9fadfbedb63764 | [] | no_license | Theartbug/CS162_program5 | 3fbc6b271e39ee7e4abefea238fccb5616aa3db9 | 987ae4449e1d5bf940fbd43fb611db6aa551519f | refs/heads/master | 2020-12-14T05:29:15.396915 | 2020-01-18T00:01:14 | 2020-01-18T00:01:14 | 234,656,779 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,155 | cpp | classes.cpp | /* Grace Provost
* gprovost@pdx.edu
* Program 5
* 11/29/19
* CS 162
*
* PURPOSE: contains the implementation of the class functions for listItem and list
*/
#include "header.h"
using namespace std;
// a destructor for the node
node::~node()
{
// will recursively call a destructor on ... |
4f80326a1bd715784b49c5e6cd15405121d537a8 | dff8190fd4acfbebd889eba338c612a340894ae3 | /src/Core/include/HG/Core/Application.hpp | 86de72a8e64cadcdd7c5cf840f04cbb9d218a3c3 | [
"LicenseRef-scancode-free-unknown",
"MIT"
] | permissive | Megaxela/HGEngineReloaded | f1bac39e302d63f9ac397331236c8e5140f3b742 | 62d319308c2d8a62f6854721c31afc4981aa13df | refs/heads/master | 2021-07-01T01:40:20.197270 | 2020-09-14T00:02:38 | 2020-09-14T00:02:38 | 163,402,354 | 2 | 2 | MIT | 2020-09-14T00:02:39 | 2018-12-28T11:21:55 | C++ | UTF-8 | C++ | false | false | 5,746 | hpp | Application.hpp | #pragma once
// C++ STL
#include <string>
namespace HG::Physics::Base
{
class PhysicsController;
}
namespace HG::Rendering::Base
{
class SystemController;
class Renderer;
} // namespace HG::Rendering::Base
namespace HG::Core
{
class Scene;
class Input;
class ResourceManager;
class TimeStatistics;
class CountStatist... |
d6de3e922d86306ee0334ed62e6c8303fc5153a8 | 8495caa346ef1d30628a92600de200b3ed290d75 | /src/assimpgraph.cpp | 9ae0ec5df1cc9ba419ce41588e92644ad2276ce3 | [] | no_license | ycoroneos/LightDraw | 033ff6fe42a8b65c21023ab4978ba4c968d462ee | 227285aab6af82e6fbd14538dc5b9cedeb40775a | refs/heads/master | 2021-01-22T09:42:28.084406 | 2017-09-14T01:14:12 | 2017-09-14T01:14:12 | 76,083,269 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 13,825 | cpp | assimpgraph.cpp | #include "inc/scenegraph.h"
#include "inc/mesh.h"
#include <glm/glm.hpp>
#include <glm/gtx/transform.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <assimp/Importer.hpp> // C++ importer interface
#include <assimp/scene.h> // Output data structure
#include <assimp/postprocess.h> // Post process... |
5f57ed656835459b646ee4b375a5e337b3471977 | 6a37877f18f6e605f90af341f90ed76aa8ef7454 | /03_MFC/08_도큐먼트/05_CMapStringToString/BamView.cpp | 081da4710794ee6914d8c49bf83852c5c4265fd4 | [] | no_license | gawallsibya/BIT_MFC-CShap-DotNet | d58286d749dd1df0a4a23960dfc78d3dc31b3607 | 63b7a2a32b21aec115bc54412c7ca5960c431586 | refs/heads/master | 2021-01-10T11:15:00.485800 | 2015-11-16T13:15:19 | 2015-11-16T13:15:19 | 45,892,319 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,264 | cpp | BamView.cpp | // BamView.cpp : implementation of the CBamView class
//
#include "stdafx.h"
#include "Bam.h"
#include "BamDoc.h"
#include "BamView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBam... |
a533e854401f1a09e7d68ebc4a29eff68b29f059 | bbea0972a5320f5d898347f162c9c84b014c35d1 | /Lista 6 (Caminhos mínimos e MST)/ProblemB [UVA-11733].cpp | 3cd206488c81324628fc0aaf6d47869bb33b806d | [] | no_license | irixs/algorithms | 60355ebd52b04c88aee2c456fed2a02c2f82f7c2 | b26b1f1c7ccc1b917219c6e273246596ccfcc2b2 | refs/heads/master | 2020-04-27T01:55:40.106545 | 2020-04-05T02:22:47 | 2020-04-05T02:22:47 | 173,978,855 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,171 | cpp | ProblemB [UVA-11733].cpp | #include<bits/stdc++.h>
using namespace std;
int ds[10001];
void makeset(){
for(int i=0;i<10001;i++){ ds[i]=i;}//ds[u] = conjunto ao qual u pertence
}
int find(int i){//find
if(ds[i]==i) return i;
return ds[i]=find(ds[i]);
}
void uni(int a, int b){//union
int x=find(a), y=find(b);
ds[x]=y;
}
int main () {
int ... |
d1185fc5ab6907131b0432272e9df32d5ea99040 | f028f992f167362363206411890ccb4aa95e5127 | /structures/include/kdtree.h | ff79ebea07070c84f164a5ca4b7d89d5aea809f3 | [] | no_license | ellishg/commonlib | 9f81bcd4a31023fef9a229e10538fc845ac192a0 | b0bedf2d2effda1bed12cba7df037dde08452984 | refs/heads/master | 2021-06-01T09:07:58.651021 | 2016-08-08T23:42:00 | 2016-08-08T23:42:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,123 | h | kdtree.h | #ifndef __KDTREE_H__
#define __KDTREE_H__
#include <vector>
#include "math_utility.h"
/*
* KDTree for 3-dimensional points. By Ellis Hoag.
* TODO: Currently you can insert and remove nodes
* but the tree will not necessarily remain balanced.
* After several insert/remove calls, this will become
* slower and slo... |
87490a744f0e4838ce7cbc52c42db0e6c9c1e433 | c3bdc6275a9b040f466e1e05da48d367cdc8ef8a | /sketch_nov24b/sketch_nov24b.ino | 5ef5afd73e1197e07a40b1ef6605c2364dc1f26d | [] | no_license | amadues2013/Arduino | 9a6315ca6dc7edbc298d8dba35d521c2d8cd6794 | bf84bf8b191494980b25bfeb77837c82bcf9db48 | refs/heads/master | 2020-05-31T21:19:20.148047 | 2017-02-02T09:14:39 | 2017-02-02T09:14:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,643 | ino | sketch_nov24b.ino | int textileButtonFront = A3; // declare the textile button:
int textileButtonBack = A4; // declare the textile button:
int buttonStateFront = 0; // State of the Textile Button:
int buttonStateBack = 0; // State of the Textile Button:
int previousbuttonStateFront = 0; //State the button was in the previous time we c... |
862d0b837f4507fe8b234b051e1ca51a19717369 | 42a5316d14e8a3a01dd58eee2e63b3376a3fead9 | /006 Sum square difference.cpp | 5ec7d0f56fe46b6cfe2f87a12e876138112cef7a | [
"MIT"
] | permissive | satvik007/ProjectEuler | f76b9936002eca7d59e5f63de29c6bf7ae7628c4 | 6044cebe03672412d385a62bef827b28f0943cb6 | refs/heads/master | 2021-05-12T08:05:28.121197 | 2018-01-12T18:27:18 | 2018-01-12T18:27:18 | 117,266,819 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 742 | cpp | 006 Sum square difference.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector <int> vi;
bitset <64> bs;
vi primes;
void sieve(){
bs.set(); bs[0]=bs[1]=false;
for(int i=2; i<50; i++) if(bs[i]){
primes.push_back(i);
for(int j=i*i; j<50; j+=i) bs[j] = false;
}
}
int main(){
... |
1d05145abb8efbea698d86eec72bb8a9c1114892 | bdd9f3cdabe0c768641cf61855a6f24174735410 | /src/engine/client/application/LightningEditor/src/win32/FirstLightningEditor.cpp | 84d49820738ce7bb82cf5419c8668248dc13140a | [] | no_license | SWG-Source/client-tools | 4452209136b376ab369b979e5c4a3464be28257b | 30ec3031184243154c3ba99cedffb2603d005343 | refs/heads/master | 2023-08-31T07:44:22.692402 | 2023-08-28T04:34:07 | 2023-08-28T04:34:07 | 159,086,319 | 15 | 47 | null | 2022-04-15T16:20:34 | 2018-11-25T23:57:31 | C++ | UTF-8 | C++ | false | false | 267 | cpp | FirstLightningEditor.cpp | // ============================================================================
//
// FirstLightningEditor.cpp
// Copyright Sony Online Entertainment
//
// ============================================================================
#include "FirstLightningEditor.h" |
17749a5f6a085bb696cf4401b440d68e1be8f5fe | 4908cc6f887ab25a8286603ca28b78c42d8b308e | /Client/IGHelp.h | 5e3d8f64c5b3d1fc5bc9c35293f81276e908434f | [] | no_license | JakubBlunar/DiplomkaMMORPG | dab09c6929a1381a736bbffad90efc93b7099769 | 573ce266782875c8670a6d090f26c755a067a4db | refs/heads/master | 2021-03-27T13:08:36.958242 | 2019-04-16T17:18:24 | 2019-04-16T17:18:24 | 123,625,265 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 515 | h | IGHelp.h | #ifndef IG_HELP_H
#define IG_HELP_H
#include "IGWindow.h"
class IGHelp :
public IGWindow
{
public:
IGHelp();
~IGHelp();
protected:
void render(Game* g, IGManager* manager) override;
int selectedMenuItem;
static void ShowHelpMarker(const char* desc)
{
ImGui::TextDisabled("(?)");
if (ImGui::IsItemHovered(... |
551bf0a6f30f6333f5224a15123501f26befcf76 | ab886674b26e3c3e4452f9f4aeaecfb68766696d | /Лаб1/Plapher/Unit1.cpp | d0cd2848afeb62d606e263d5bf9289e97c499f3a | [] | no_license | Stibenet/Crypto_lab | 35ec414d10c629d5fbd709f0301d95057346fc06 | 3b0e78175c84c1b35129c874b08a514b5617ef79 | refs/heads/master | 2021-07-14T15:49:21.765614 | 2017-10-19T16:51:42 | 2017-10-19T16:51:42 | 107,573,683 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 16,293 | cpp | Unit1.cpp | #include <vcl.h>
#include "stdio.h"
#include "conio.h"
#include "windows.h"
#pragma hdrstop
#include "Unit1.h"
#include "Unit2.h"
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
AnsiString Al = "ABCDEFGHIJKLMNOPQRSTUVWXYZАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯabcdefghijklmnopqrstuvwxyzабвгдеёжзийклмнопрс... |
0c02da6477ec72b18a8c66c684ab55cc469fd8d3 | d3d1d7d99054b8684ed5fc784421024050a95c79 | /codeforces/contest/1435/d.cpp | 5b0f321cb1f7b863cacb9e0fdce22ed2d994de9d | [] | no_license | rishabhSharmaOfficial/CompetitiveProgramming | 76e7ac3f8fe8c53599e600fc2df2520451b39710 | 85678a6dc1ee437d917adde8ec323a55a340375e | refs/heads/master | 2023-04-28T05:51:18.606350 | 2021-05-15T07:04:33 | 2021-05-15T07:04:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,783 | cpp | d.cpp | #include<bits/stdc++.h>
#define ll long long int
#define ld long double
#define pi pair<int,int>
#define all(x) x.begin(), x.end()
#define allr(x) x.rbegin(), x.rend()
#define sz(x) ((int)x.size())
#define ln(x) ((int)x.length())
#define mp make_pair
#define pb push_back
#define ff first
#define ss second
#define endl ... |
4b8de53f38b4e035c14edacc49391ab06cbae364 | 0cda2dcf353c9dbb42e7b820861929948b9942ea | /fileedit/2009/_/fileedit_/CrazyBot.cpp | 1ef882d6779ef1d739ca261dfc245623982045f5 | [] | no_license | naoyat/topcoder | 618853a31fa339ac6aa8e7099ceedcdd1eb67c64 | ec1a691cd0f56359f3de899b03eada9efa01f31d | refs/heads/master | 2020-05-30T23:14:10.356754 | 2010-01-17T04:03:52 | 2010-01-17T04:03:52 | 176,567 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,432 | cpp | CrazyBot.cpp | // BEGIN CUT HERE
/*
// PROBLEM STATEMENT
// An out-of-control robot is placed on a plane, and it takes n random steps. At each step, the robot chooses one of four directions randomly and moves one unit in that direction. The probabilities of the robot choosing north, south, east or west are north, south, east and wes... |
66a84169a1dc038ea531f5314b70de740ea98d27 | f37c2913bb2f5db7b00d952aadcfb7b33706f1c9 | /Source/VeMain/VeWindow.inl | 45f83eceba6886abf1b6997a57c837f4d5109e84 | [] | no_license | JamesLinus/Venus3D | 0e43fac3af27ad60dcdf32f3fccdc9e14808b9ca | 3a1915efc0ae5a8f85f5b896c021ad2c0981fd67 | refs/heads/master | 2021-01-22T16:38:17.497524 | 2015-09-29T09:29:59 | 2015-09-29T09:29:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,699 | inl | VeWindow.inl | ////////////////////////////////////////////////////////////////////////////
//
// Venus Engine Inline File.
// Copyright (C), Venus Interactive Entertainment.2012
// -------------------------------------------------------------------------
// Module: VePower
// File name: VeWindow.inl
// Created: 2015/... |
4c7da564b2bf088aa2d1ef60268ab4f1a6e43cd3 | b29615eaab848908c52461dcd55aaa4c6c9b3ec3 | /cocos3d/ClientSide/Projects/HelloWorld/Classes/3D/CC3HelloWorldLayer.cpp | 9c20e3795ef856a365ddc141767dd557ee6b3cdb | [] | no_license | luoxz-ai/cocos3d-x | f31fe6f505ad351824f1a622309556563a431b63 | f62c3275d1e336a7d9b1a7e5cb7d29337df585af | refs/heads/master | 2023-06-17T01:44:14.275126 | 2020-11-24T04:25:42 | 2020-11-24T04:25:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,228 | cpp | CC3HelloWorldLayer.cpp | #include "CC3HelloWorldLayer.h"
/**
* Override to set up your 2D controls and other initial state, and to initialize update processing.
*
* For more info, read the notes of this method on CC3Layer.
*/
void CC3HelloWorldLayer::initializeControls()
{
scheduleUpdate();
#pragma _NOTE_TODO( "setUserInteractionEnabled(... |
99a1e1fc3f8612cb2a47c6fcb59166bf7f00d50a | 60e59dc2870e4db3cace890e5192c83b79feace3 | /ProgrammingIClass/ADVANCED/0905 adv2/combination 1.cpp | 7e58376070016ead7fc2eb04aebef4c53f055534 | [] | no_license | itsss/SASA_Programming-I | 6e1c3b9b46bb2bec20d9cccb9ab96e077dbc1862 | d0c42528d76ce4b4965f918ea0980a96fbd43507 | refs/heads/master | 2021-01-20T01:29:13.975450 | 2017-12-16T11:16:18 | 2017-12-16T11:16:18 | 101,291,686 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 402 | cpp | combination 1.cpp | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
int f(int n, int k)
{
if(k == n) return 1;
else if (k == 1) return n;
else return f(n-1, k-1) + f(n-1, k);
}
int main()
{
int n, k;
scanf("%d %d", &n, &k);
time_t s = clock();
printf("%d", f(n, k));
time_t e = clock();
... |
d39ba36d12592939342b81c4a280c95f885f8936 | c07417cf62f727a263a8c9151b9dd95c85e3bbb1 | /BMPFont/BMPFont.h | faf0b6d8395224187a26ee8a3c864c4c1c86e5c5 | [] | no_license | yzxx/BMPFont | 0ad9c2a962b0ee6db3fa548d05f7920336761edf | 2fcea5debdfddcd4acb2394447db8bd5ee352843 | refs/heads/master | 2020-05-19T18:50:45.160001 | 2014-01-04T07:02:35 | 2014-01-04T07:02:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 796 | h | BMPFont.h | #ifndef _BMPFONT_H
#define _BMPFONT_H
#include <cstdio>
#include <stdint.h>
typedef struct
{
char fileHead[4];
uint32_t fileSize;
uint8_t sectionNum;
uint8_t fontHeight;
uint16_t flag;
char reserve[4];
}binFileHead;
typedef struct
{
uint16_t fistChar;
uint16_t lastChar;
uint32_t f... |
b292c78cc0cb58707f8d618a50ae595c6aa84dac | 204cc62cabf9a8ded9994abb6005b3f2d4f8ce9f | /EngineCore/Source/3rdParty/luaplus51-all/Src/Modules/wxLua/modules/wxbind/src/wxcore_menutool.cpp | 8ad084787e30d799cb1b8b4de316a25c4f993bec | [
"MIT"
] | permissive | ClowReed32/Cthugha-Engine-Demos | 0619afa3b11b5bbc8fa5234ff3a43edc5065d2bc | 313f7cef74e35e2d1dc344d54e6e000180e63e3f | refs/heads/master | 2016-08-13T01:54:13.161904 | 2016-05-08T19:27:57 | 2016-05-08T19:27:57 | 52,268,478 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 222,735 | cpp | wxcore_menutool.cpp | // ---------------------------------------------------------------------------
// ../modules/wxbind/src/wxcore_menutool.cpp was generated by genwxbind.lua
//
// Any changes made to this file will be lost when the file is regenerated.
// ---------------------------------------------------------------------------
#inc... |
2c55fd0581fffdb429ed3b6344a212e701f104c5 | 865bfdce73e6c142ede4a7c9163c2ac9aac5ceb6 | /Source/XScript/Parser/Nodes/Expressions/Branching/CTernaryExpressionASTNode.cpp | b3eab4d134836eec4ea2693c35e17380dd6b4eaa | [] | 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 | 3,648 | cpp | CTernaryExpressionASTNode.cpp | /* *****************************************************************
CTernaryExpressionASTNode.cpp
Copyright (C) 2012 Tim Leonard - All Rights Reserved
***************************************************************** */
#include "XScript/Parser/Nodes/Expressions/Branching/CTernaryExpressionASTNode.h"
#incl... |
9bc08312668f007b79e58ec15cb5117420901ab1 | 93c5b850a5cca84c8e6098321d3bd39f38999e9b | /Ray/RayTracer.cpp | d456174b4fdbae26cc66483f1eacbe20b092134c | [] | no_license | Samaah330/3D_Graphics_Renderer | e0ddfd97a9859d1246dde931ce71747958117504 | 0e3ad74b9c808c436de2fff0dcbd9176cae1978a | refs/heads/master | 2023-06-14T22:00:00.221996 | 2021-07-08T21:59:24 | 2021-07-08T21:59:24 | 384,257,458 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,391 | cpp | RayTracer.cpp | #include "Raytracer.h"
Raytracer::Raytracer(int w, int h, int d) {
width = w;
height = h;
dpi = d;
}
int Raytracer::getWidth() {
return width;
}
int Raytracer::getHeight() {
return height;
}
int Raytracer::getDPI() {
return dpi;
}
int Raytracer::winningObjectIndex(vector<double> object_inte... |
84b3cbc25479b073146aea7004f9169c2b6106dd | ed5691252ab1fee9194ba1e08f6dfa453a2b0e4d | /SRM717Div1Med.cpp | f9ecbc1d0df49f629366cedd9ec29352f7f948ab | [] | no_license | MakinoRuki/TopCoder | e7a3a6862a9c51c9eba8876a2f684dd41acf689f | 33ffe10ebf00030fceb912ddbebebd9fd449bf84 | refs/heads/master | 2023-01-25T04:45:29.994033 | 2023-01-20T13:48:32 | 2023-01-20T13:48:32 | 62,936,095 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 541 | cpp | SRM717Div1Med.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <vector>
#include <algorithm>
#define N 100010
using namespace std;
typedef long long ll;
ll mod = 1000000007LL;
class DerangementsStrikeBack {
public:
ll dp[N];
int count(int n, int m) {
memset(dp, 0, sizeof(dp));
dp[0] = 1LL;
ll ans = 0LL... |
77a363ba048345eb24c2e8cc5ec9b9930ac3fbdf | fbd889ee87d8b078198660f1340010c182b10a3a | /aoj/GRL_7_A.cpp | 8b1103e259eae29840363e31b7e0944dc9fe36e9 | [] | no_license | en30/online-judge | 66760ad982d2437c0c15b7d5b1db87c8c86acee0 | 20443311f5a94dbfd468ef91c3383008e6f85a84 | refs/heads/master | 2022-04-09T18:41:50.015048 | 2020-04-01T17:04:25 | 2020-04-01T17:15:28 | 190,676,995 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 458 | cpp | GRL_7_A.cpp | #include <bits/stdc++.h>
#include "../include/template"
#include "../include/ford_fulkerson.hpp"
int main() {
int X, Y, E;
cin >> X >> Y >> E;
// s, X, Y, t
int s = 0;
int t = 1 + X + Y;
FordFulkerson G(t + 1);
rep(i, X) G.addEdge(s, i + 1, 1);
rep(i, Y) G.addEdge(1 + X + i, t, 1);
rep(i, E) {
... |
bc9dbe8aac897fb145ffa2d92b3ccac684967ea2 | 266c0379711d39ff0932c62110328cff44977477 | /Image.h | 0ffc7ec7e752bb89b57bc17c6692ca1ebb0e1dbb | [] | no_license | Fierykev/LDPRT | fa85f8ccf96a51f22242d4e65925d22ada1c5c04 | adefba2815227861bd615029896072f038df1d16 | refs/heads/master | 2021-07-18T07:54:27.709579 | 2019-08-20T22:31:35 | 2019-08-20T22:31:35 | 91,287,792 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 453 | h | Image.h | #ifndef __IMAGE_H__
#define __IMAGE_H__
#include <GL/glew.h>
#include <IL\il.h>
#include "vec.h"
class Image
{
public:
Image();
~Image();
bool empty();
bool load(const char* file);
bool convert(ILenum format, ILenum type);
bool convert4f();
Vec4f* getData4f();
GLuint genGlImage();
ILubyte* getData();
in... |
eda916ca9a36599bf955bc7bd0ff0d7def1a2853 | 13228eff8d5902a0cad56cf9e8541ea2ace33577 | /CombineProject/Snake.h | e54cd6ff24fdef75d5e9bdf9339d4f47cae626cf | [] | no_license | sreeragkr4491/CombineProject | 5fd5657b0ec2fe0835a8f86cf51e36b05c826dc9 | 3e4884ae57acebb658802fa5808b3de54ecbe2d0 | refs/heads/master | 2023-04-14T08:33:02.181369 | 2021-04-19T09:22:40 | 2021-04-19T09:22:40 | 357,435,955 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 420 | h | Snake.h | #pragma once
#include<iostream>
#include<conio.h>
#include <windows.h>
class Snake
{
public:
bool gameover;
const int length = 80;
const int height = 40;
int snakex, snakey, applex, appley;
int stailx[50], staily[50], ltail, score;
enum dir { IDLE = 0, LEFT, RIGHT, UP, DOWN };
COORD coord = { 0, 0 };
dir d;... |
86764c6f102a06b408805acd682d43d1e32da622 | 2ae783689fcbf960ece26348b44849e32f8cabd1 | /Rook.h | 57d57aa3a331d6a9c0167e78d77a71c2e30b6f32 | [] | no_license | MartinVeselinov/Chess | 4f2aa3942e2dd4806d2e956d9b86b6890b8473de | 84a1ec40e088a028f4e269a7660ac384c847ba6a | refs/heads/master | 2020-03-19T18:54:16.352520 | 2018-06-10T17:52:36 | 2018-06-10T17:52:36 | 136,830,570 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 435 | h | Rook.h | #pragma once
#include "ChessPiece.h"
#include <iostream>
class Rook :public ChessPiece
{
private:
int num;
int curr;
char let;
ChessPosition * allowed;
public:
Rook(const ChessPosition& pos);
~Rook();
ChessPosition getPosition() const;
ChessPosition* getAllowedMoves();
bool captures(ChessPositio... |
42e66056d3bae17d3793680648c99ec17ac1f574 | a815edcd3c7dcbb79d7fc20801c0170f3408b1d6 | /chrome/browser/unified_consent/chrome_unified_consent_service_client.cc | 0480bf54e3f916a9199908297e2a3b8f964b5d35 | [
"BSD-3-Clause"
] | permissive | oguzzkilic/chromium | 06be90df9f2e7f218bff6eee94235b6e684e2b40 | 1de71b638f99c15a3f97ec7b25b0c6dc920fbee0 | refs/heads/master | 2023-03-04T00:01:27.864257 | 2018-07-17T10:33:19 | 2018-07-17T10:33:19 | 141,275,697 | 1 | 0 | null | 2018-07-17T10:48:53 | 2018-07-17T10:48:52 | null | UTF-8 | C++ | false | false | 1,767 | cc | chrome_unified_consent_service_client.cc | // Copyright 2018 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 "chrome/browser/unified_consent/chrome_unified_consent_service_client.h"
#include "chrome/browser/metrics/metrics_reporting_state.h"
#include "c... |
b0354f571af22720850dc6fd6679d79e8d43efb4 | 34d5d3bd9e7297d2ce6bb418458218e4147c973d | /RfidWriter/softReset.cpp | 94e77a87a7bc202231ba3929f9cc5c5b8757055b | [
"Apache-2.0"
] | permissive | Kaemmelot/AudiblePlayer | 828075959c4fe1051c5bb8815f67dadfb51f21c5 | 44cecd27856c12138898235596ee356bd99974c9 | refs/heads/master | 2020-06-13T02:17:27.444202 | 2019-06-30T09:50:10 | 2019-06-30T09:50:10 | 194,498,883 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 196 | cpp | softReset.cpp | #include <avr/wdt.h>
void wdt_init(void) __attribute__((naked)) __attribute__((section(".init3")));
void wdt_init(void)
{
// disable watchdog after reset
MCUSR = 0;
wdt_disable();
}
|
c7a8abdf93647ef29b1404fcdaeb6d120a4b42f3 | ebf5aea5eb18615b8006222b668f75c52a3723cc | /grapher/src/iostream.cpp | 935849359c3db39df12d1dac010e1b59baefa374 | [] | no_license | starflitche/ctbench | c5699de9b47d59d798a04326b1d14940670270c3 | 69103e0a869c09716cdc909bff62578b742f1ea6 | refs/heads/main | 2023-06-07T16:19:04.400921 | 2021-06-23T15:00:17 | 2021-06-23T15:00:17 | 379,639,789 | 0 | 0 | null | 2021-06-23T14:57:29 | 2021-06-23T14:57:29 | null | UTF-8 | C++ | false | false | 1,327 | cpp | iostream.cpp | #include <grapher/iostream.hpp>
namespace grapher {
std::ostream &to_csv(std::ostream &o, entry_t const &e) {
o << ',' << e.size << ',' << e.execute_compiler << ',' << e.frontend << ','
<< e.source << ',' << e.instantiate_function << ',' << e.parse_class << ','
<< e.instantiate_class << ',' << e.backend << ... |
bd9aa9a73ddda7af3d313971bdabfb451eb0a50f | 2ab2fec7d40b0beee83b7b9acc61aecaeb1e1328 | /widget.cpp | 9586f20fe8ba2510d8bfc95972d057ae43b13f81 | [] | no_license | exp101t/fifteen-game | ab2f58d7eaab84c175b9f2d8bd9443b7b1b17d2e | b9c43c057dba711f37038712bcfdbe0f053efc39 | refs/heads/master | 2020-03-20T01:25:08.255031 | 2018-06-12T13:40:30 | 2018-06-12T13:40:30 | 137,075,389 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,957 | cpp | widget.cpp | #include "widget.h"
#include <chrono>
#include <QDebug>
#include <QMessageBox>
bool check(QList<int> field){
int result = 0;
for(int i = 0; i < 15; i++)
for(int j = i + 1; j < 15; j++)
result += (field[i] > field[j]);
return (result % 2 == 0);
}
Widget::Widget(QWidget ... |
28618283e78efcad3fe9baeb9a5a7419ec641c51 | 8de3f6da3371b732fb601a4a43e7656d7c39c896 | /face/face.h | aeb5dbcbc5e1044c612ecc79678d76113bd2a8b1 | [] | no_license | GaryHsu77/FaceCap | 8da0021749ee1f87437bff7fbf16c93bc1bf89e7 | 68d6371807d7e51fd8137e230d22c2a0721b20ac | refs/heads/master | 2020-05-01T03:35:20.478603 | 2019-03-23T05:35:23 | 2019-03-23T05:35:23 | 177,248,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,305 | h | face.h | #ifndef __FACE_H__
#define __FACE_H__
#include <opencv2/opencv.hpp>
#include "opencv2/core.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/videoio.hpp"
#include <list>
#include <iostream>
#include <fstream>
#include "face.hpp"
#define LBPH_MODE 0
#define FISH_MODE... |
328b4837bd55ad3571b992bcd21cf95fdea8e2a9 | 2f1a092537d8650cacbd274a3bd600e87a627e90 | /thrift/compiler/test/fixtures/doctext/gen-cpp2/module_metadata.cpp | a58a27169a08b2d9b4c1695435e181fe25fb561a | [
"Apache-2.0"
] | permissive | ConnectionMaster/fbthrift | 3aa7d095c00b04030fddbabffbf09a5adca29d42 | d5d0fa3f72ee0eb4c7b955e9e04a25052678d740 | refs/heads/master | 2023-04-10T17:49:05.409858 | 2021-08-03T02:32:49 | 2021-08-03T02:33:57 | 187,603,239 | 1 | 1 | Apache-2.0 | 2023-04-03T23:15:28 | 2019-05-20T08:49:29 | C++ | UTF-8 | C++ | false | false | 9,436 | cpp | module_metadata.cpp | /**
* Autogenerated by Thrift for src/module.thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#include <thrift/lib/cpp2/gen/module_metadata_cpp.h>
#include "thrift/compiler/test/fixtures/doctext/gen-cpp2/module_metadata.h"
namespace apache {
namespace thrift {
namespace... |
6d931bf46642bbe6cf1e2b155b268e0f933c321d | 5caf84a373e34d75ded9bae736e4961c55ee1d30 | /omid/ai/estimation.cpp | 168ca416e14ef6e1905e91de1e876bafed0ef0dc | [] | no_license | fdmxfarhan/omid | e79999df16af78b0e29819aa8000478eb5c77cae | 5279215dad916d117f5bc81f64842480bfcef3f4 | refs/heads/main | 2023-08-21T01:16:04.111709 | 2021-10-14T10:15:57 | 2021-10-14T10:15:57 | 416,839,216 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25,271 | cpp | estimation.cpp | #include "estimation.h"
#include "matrix.h"
#include "filter.h"
#include "Switches.h"
//bool Estimation::is_ball_static ;
Line Estimation::ballLine;
//VecPosition Estimation::ballDirection;
Ownership Estimation::ownership;
int Estimation::ownership_index ;
//VecPosition Estimation::ballVelocity ;
int Estimation::robot... |
91d1ddd2352e0386248c77a3bbb4202a7f3eb2dd | 5028c8fa86015884fbd828d9f4137d1928e39044 | /dovelet/0715/16steps.cpp | c4b9799be927c5d21e56ea1de7fa117acd6b1ac1 | [] | no_license | Cho-Young-Il/algorithm | 73a3439cb5c512de235e0a56369ef7f89e40a5a2 | 6af0ef34ad8123dd6d213247af08b487ff3a607f | refs/heads/master | 2021-01-10T18:17:15.653685 | 2016-04-04T02:00:35 | 2016-04-04T02:00:35 | 51,694,197 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 298 | cpp | 16steps.cpp | #include <stdio.h>
int main()
{
int x, y;
scanf("%d %d",&x,&y);
if((x-y>2||y-x>2)||x<y)
{
printf("No Number\n");
return 0;
}
if(x%2==1 && y%2==1 )
printf("%d\n",x+y-1);
else if(x%2==0 && y%2==0)
printf("%d\n",x+y);
else
printf("No Number\n");
return 0;
} |
fee9492b514d86cc7d3c77fdab8c790baa00591d | 0a2357ad0098bbb7b74528cb01d6decaab928ed8 | /aoj/0054.cpp | 1537c77267f5077f8f6d21823c3e8647a55d17d2 | [] | no_license | touyou/CompetitiveProgramming | 12af9e18f4fe9ce9f08f0a0f2750bcb5d1fc9ce7 | 419f310ccb0f24ff08d3599e5147e5a614071926 | refs/heads/master | 2021-06-18T09:19:01.767323 | 2020-07-16T03:40:08 | 2020-07-16T03:40:08 | 90,118,147 | 0 | 0 | null | 2020-10-13T04:32:19 | 2017-05-03T06:57:58 | C++ | UTF-8 | C++ | false | false | 251 | cpp | 0054.cpp | #include <cstdio>
int main() {
int a,b,n;
while (scanf("%d%d%d",&a,&b,&n)!=EOF) {
int res=0;
for (int i=0; i<n; i++) {
a*=10;
res+=a/b%10;
a%=b;
}
printf("%d\n",res);
}
}
|
1a52277136273c0d1c115f0cd332091d9ccd5441 | d18ad9e17134e517879330d15c355b3a3f102615 | /Povox/src/Platform/Vulkan/VulkanDevice.cpp | 127d234c57436fa657c99142d85c2cc4b8d240c1 | [
"Apache-2.0"
] | permissive | PowerOfNames/Povox | 5b21e8057a95ee7f3ed1398bf422863601e8e188 | 9c6e590fe7d5b82fbb0f9c4d0c07821cb9cad0b6 | refs/heads/master | 2023-08-13T21:12:03.425458 | 2023-08-07T13:23:39 | 2023-08-07T13:23:39 | 233,458,408 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,183 | cpp | VulkanDevice.cpp | #include "pxpch.h"
#include "VulkanDevice.h"
#include "Povox/Core/Application.h"
#include "Platform/Vulkan/VulkanContext.h"
#include "Platform/Vulkan/VulkanDebug.h"
#include "Platform/Vulkan/VulkanSwapchain.h"
namespace Povox {
VulkanDevice::~VulkanDevice()
{
vkDestroyDevice(m_Device, nullptr);
}
void Vulkan... |
cf5cea2c927615eed7639696e73ac33441c5c124 | 49616bddf1f6cf68e76ab2d0be0899e233174152 | /libfma/include/fma/Reference.hpp | f2f670c4cc021aa1f0f5ea094a15899d296d4924 | [
"MIT"
] | permissive | BenjaminSchulte/fma | 40ed53a4a78f4bdf340d0b1e0a4f8656d6718abf | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | refs/heads/master | 2022-03-12T12:16:19.154084 | 2021-09-18T13:01:00 | 2021-09-18T13:01:00 | 110,001,614 | 15 | 0 | MIT | 2020-12-22T10:07:09 | 2017-11-08T16:32:16 | C++ | UTF-8 | C++ | false | false | 817 | hpp | Reference.hpp | #ifndef __FMA_REFERENCE_H__
#define __FMA_REFERENCE_H__
#include <string>
#include <memory>
namespace FMA {
class File;
typedef std::shared_ptr<class File> FilePtr;
/**
* A file reference
*/
struct CodeReference {
CodeReference()
: file(), line(0), col(0), cachedName(NULL)
{}
CodeReference(const Code... |
fa74e3217acb0cbad87a062ac873bb85aad35be3 | 65083e92ca48b3313584b7c588c740d1453c4b21 | /색종이.cpp | 82fdfdd5aeee30a8a4a87a127bb5728dd935000a | [] | no_license | chltkdgns1/Algoritmn_third | 01d9427cb9bfe15416160d33f5ee39fe144ea36e | cd01f00f64b65e11df531b83df042541b767c0f6 | refs/heads/master | 2022-04-15T01:04:54.715602 | 2020-04-13T09:03:19 | 2020-04-13T09:03:19 | 255,278,286 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 677 | cpp | 색종이.cpp | #include <iostream>
#include <algorithm>
using namespace std;
int d[4] = { 0,5,3,1 };
int q[4] = { 0,7,6,5 };
int main() {
ios::sync_with_stdio(0), cout.tie(0), cout.tie(0);
int a[7]; for (int i = 1; i <= 6; i++) cin >> a[i];
int res = a[6] + a[5] + a[4] + a[3] / 4 + (a[3] % 4 == 0 ? 0 : 1);
a[3] %= 4; a[1] -= a[5]... |
12ed1cd3cc0406fa15e2ef2e4a3d5c730289d288 | bb518103e85a3679e2fc12434d16983bf638c253 | /leetcode/c++/sort_list.cpp | cee0618064bac4570991c62fea2bdc177dee3ce6 | [] | no_license | andy2git/coding | 17d2b1b7405035ddfadb75dab9a3a36b31d798cc | e3188141211869046629ff19219b07a67edfe73f | refs/heads/master | 2022-07-17T20:50:05.645214 | 2022-06-30T05:57:07 | 2022-06-30T05:57:07 | 31,408,027 | 0 | 0 | null | 2016-03-24T04:44:16 | 2015-02-27T07:19:20 | C++ | UTF-8 | C++ | false | false | 1,187 | cpp | sort_list.cpp | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode *sortList(ListNode *head) {
if(!head) return nullptr;
if(!head->next) return head;
ListNode *p... |
a6ab2ee840ff7d6b0aa6054d384d471951779ddb | d48bcee5a8e0446f07f9929d0f01c9a301dc84b1 | /src/GraphsGenerator/eventlistop.cpp | 6fbe14ed1b89114cd469025cb560c33fb96d5b90 | [] | no_license | columbia/ArgusDebugger | 561592fed458fbb67cf543af2216616e0ac9f2e3 | 06cd82d2f0a9bf15293391f06ce726e06d236c44 | refs/heads/main | 2023-05-04T15:00:24.923019 | 2021-05-16T02:10:32 | 2021-05-16T02:10:32 | 367,765,270 | 16 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,120 | cpp | eventlistop.cpp | #include "eventlistop.hpp"
#include "mach_msg.hpp"
#include <time.h>
EventLists::EventLists(LoadData::meta_data_t &meta_data)
{
owner = true;
generate_event_lists(meta_data);
meta_data.last_event_timestamp = event_lists[0].size() > 0 ?
event_lists[0].back()->get_abstime() : 0.0;
}
EventLists::EventLists(std::... |
95c8350b3e097cba164eead4b4837f3b0823d4e5 | d2e27b839614d8b23022ab12dd1c116845b2912b | /Mahatta/Source/Game/game_entity_load.cpp | 6071c62cacc279883bd34e57787d1aad40dc417a | [] | no_license | Crogarox/Mahatta | c734acd3c4779036d4232c18c98012d4eaab926e | 039a708f9cbde426a146d8b9e6bfb14ba72abb83 | refs/heads/master | 2021-12-18T00:12:26.527787 | 2012-10-03T07:09:42 | 2012-10-03T07:09:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,828 | cpp | game_entity_load.cpp | #include "game_local.h"
#define ENTITY_FOLDER (L"Data\\Entity\\")
#define ENTITY_SEC (L"main")
/////////////////////////////////////
// Name: GameEntityLoad
// Purpose: generic entity load from
// ini file (Data\Entity)
// Output: entity loaded
// Return:
/////////////////////////////////////
hENT... |
41d555ef2dec7837828ab9effbddd1dba421aab0 | 587511acb7f3c19415d48c914ec1b39ffac62d6c | /Ellipse.cpp | 6d97a6612d67bd2e28e8a9a3902ba8e15f25a47e | [] | no_license | AndreyLatyshev/HelixAndFriends | 11d92046f5fc9ede779d33be1547243603065db7 | 613ff0e60d43c3bc7bf5d2856ee6606d649a3a4a | refs/heads/master | 2023-08-13T20:17:36.871311 | 2021-09-14T07:13:12 | 2021-09-14T07:13:12 | 406,262,389 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,070 | cpp | Ellipse.cpp | #include "Ellipse.h"
Ellipse::Ellipse()
{
Ellipse (Point(.0, .0, .0), 1.0, 1.0);
}
Ellipse::Ellipse (Point thePoint, double theMajRad, double theMinRad)
{
assert ((theMajRad > theMinRad) && (theMajRad > 0) && (theMinRad > 0));
SetOrigin (thePoint);
SetMajRad (theMajRad);
SetMinRad (theMinRad);
}... |
f120dc674e329aa1b6a9abd66db9f1d737322e4b | 9f520bcbde8a70e14d5870fd9a88c0989a8fcd61 | /pitzDaily/442/U | f77cdc459b39c93cbda601c04c7bc01784fb2db7 | [] | no_license | asAmrita/adjoinShapOptimization | 6d47c89fb14d090941da706bd7c39004f515cfea | 079cbec87529be37f81cca3ea8b28c50b9ceb8c5 | refs/heads/master | 2020-08-06T21:32:45.429939 | 2019-10-06T09:58:20 | 2019-10-06T09:58:20 | 213,144,901 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 251,330 | U | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
... | |
06a182b2b7f9f7de0c6ad91ac355a78dd17f434a | 573048d38055494633325867346b7c04d5373015 | /ImprovedApproximateMultipleKnapsack.cpp | 3820c8be6c38471b30740c872b1eff4cff6b9a55 | [] | no_license | bholst/multiple_knapsack | 5081266f069fa0e84ae32477f29744a818e1ef61 | 88e67b4f037ad8c273053c7cdb9c8b0a2b84541b | refs/heads/master | 2021-03-12T23:30:19.053964 | 2011-03-28T21:05:05 | 2011-03-28T21:05:05 | 1,068,143 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 38,114 | cpp | ImprovedApproximateMultipleKnapsack.cpp | //
// Copyright (C) 2011 Bastian Holst <bastianholst@gmx.de>
//
// STD
#include <cmath>
#include <iostream>
// Qt
#include <QtCore/QDebug>
#include <QtCore/QList>
// Project
#include "GreedyMultipleKnapsack.h"
#include "ProfitItem.h"
#include "PackingAlgorithms.h"
// Self
#include "ImprovedApproximateMultipleKnaps... |
cfb802d3042916ebe88a104df107569f2c6906af | ffdc77394c5b5532b243cf3c33bd584cbdc65cb7 | /mindspore/core/ops/grad/gru_v2_grad.cc | d5e4540b6c5efb28b256ce158496e99a53065763 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"MPL-1.0",
"OpenSSL",
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause-Open-MPI",
"MIT",
"MPL-2.0-no-copyleft-exception",
"NTP",
"BSD-3-Clause",
"GPL-1.0-or-later",
"0BSD",
"MPL-2.0",
"LicenseRef-scancode-f... | permissive | mindspore-ai/mindspore | ca7d5bb51a3451c2705ff2e583a740589d80393b | 54acb15d435533c815ee1bd9f6dc0b56b4d4cf83 | refs/heads/master | 2023-07-29T09:17:11.051569 | 2023-07-17T13:14:15 | 2023-07-17T13:14:15 | 239,714,835 | 4,178 | 768 | Apache-2.0 | 2023-07-26T22:31:11 | 2020-02-11T08:43:48 | C++ | UTF-8 | C++ | false | false | 7,119 | cc | gru_v2_grad.cc | /**
* Copyright 2023 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
3aa4b5f7a8e31f3592e7297f8bd42cc6356936b5 | f9f03edf48617e2dc512a812c030a4f3a07c03d2 | /871_dp.cpp | d6ed6aa318275a53f6f58c3333a0d8b9608e8618 | [] | no_license | gitchaofang/leetcode | 8d2769383e563788486dfa85a21d2df0c1c568d6 | 86907b9df994280e376e8c9f136fa8c37807ba2a | refs/heads/master | 2021-08-08T17:46:50.384188 | 2020-12-16T06:30:59 | 2020-12-16T06:30:59 | 232,033,250 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 537 | cpp | 871_dp.cpp | class Solution {
public:
int minRefuelStops(int target, int startFuel, vector<vector<int>>& stations) {
int n = stations.size();
vector<long> dp(n + 1, 0);
dp[0] = startFuel;
for (int k = 1; k <= n; ++k) {
for (int i = k - 1; i >= 0 && dp[i] >= stations[k - 1][0]; --i) {
... |
4e3497eba65c0d95e38da5f25a6814511834f766 | e6599aabfa70e6d1c956af872ae6176c3c548449 | /Problem Solving/Algorithms/Graph Theory/Problem Solving/main.cpp | 9730456f33f7aed1416f6d06f6f98cecc0ea7eb7 | [] | no_license | zjsxzy/HackerRank | 3e19f5de955f8041bdbaf51b9859ebbbba6b60be | f433de22ecb36714488af11673e47603140be85c | refs/heads/master | 2022-12-22T12:11:07.278691 | 2022-12-19T07:35:45 | 2022-12-19T07:35:45 | 12,827,135 | 20 | 28 | null | null | null | null | UTF-8 | C++ | false | false | 1,327 | cpp | main.cpp | #include <map>
#include <set>
#include <list>
#include <cmath>
#include <queue>
#include <stack>
#include <bitset>
#include <vector>
#include <cstdio>
#include <string>
#include <sstream>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
#define abs(x) ((x) > 0 ? (x) :... |
472c40e5a8ebb6ce87c8d8a38a5b5102a3308598 | d8dde07d7c9cf75f7f18a91ab1dd74a4a261a9e7 | /contest/ssssssss/1034.cpp | c80bdb6cfe4ac49db59f1aaa8ed093d988436a92 | [] | no_license | tiankonguse/ACM | 349109d3804e5b1a1de109ec48a2cb3b0dceaafc | ef70b8794c560cb87a6ba8f267e0cc5e9d06c31b | refs/heads/master | 2022-10-09T19:58:38.805515 | 2022-09-30T06:59:53 | 2022-09-30T06:59:53 | 8,998,504 | 82 | 51 | null | 2020-11-09T05:17:09 | 2013-03-25T04:04:26 | C++ | UTF-8 | C++ | false | false | 1,006 | cpp | 1034.cpp | #include<iostream>
#include<string>
#include<queue>
#include<map>
#include<cmath>
#include<stack>
#include<algorithm>
using namespace std;
const int N=200100;
int _map[N],str[N];
int n,m;
int begin;
int num;
int ans;
int _min(int a,int b){
return a<b?a:b;
}
int main()
{
while(~scanf("%d%d",&n,&m)){
for(int i=0;i<n;... |
74773f6b074e0ec72d7e81432a31ed6013501448 | 382098b21afbd5cf226f6705129694e48c1fd367 | /include/network/client/ModuleNetworkClient.hpp | cb1269aeb1186fd5b5d062019a62060f48e0c904 | [] | no_license | pierfale/Hozy | 1a991bd005d8a5ef9b209345258d1a4d55559ece | 596ad9c177e84bd93b10e7686c5fd92827f00cd8 | refs/heads/master | 2021-01-01T18:11:13.770543 | 2014-05-22T20:17:19 | 2014-05-22T20:17:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 527 | hpp | ModuleNetworkClient.hpp | #ifndef MODULE_NETWORK_CLIENT_HPP
#define MODULE_NETWORK_CLIENT_HPP
#ifdef WIN32
#include <winsock2.h>
#endif
#include "tool/Singleton.hpp"
#include "Module.hpp"
#include "tool/error/ErrorManager.hpp"
#include "network/SocketTcp.hpp"
#include "tool/log/Log.hpp"
class ModuleNetworkClient : public Module, public Singl... |
4575e7ed3644bbc7f03f0b104f0bb476a01cc6b0 | 6a318ae917ac0e618e8db4470e544ff5bd1eadfe | /search/dfs/num_of_islands_200.cpp | ebc739d82ba20726baaae89396308020cf3379e7 | [] | no_license | notlate-cn/leet | 13cb3c64b7de5b857be7dacb7ccef165b72d559f | 8e1f9837eee23ea2f59147ba2c8079ee6ae92c8a | refs/heads/main | 2023-04-13T06:28:58.436022 | 2020-12-26T15:00:13 | 2020-12-26T15:00:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,363 | cpp | num_of_islands_200.cpp | //
// Created by 鞋底洞 on 2020/10/19.
//
#include "../../trust.h"
#include <array>
#include <string>
#include <vector>
#include <sstream>
#include <map>
#include <set>
#include <bitset>
#include <unordered_set>
#include <unordered_map>
using namespace std;
namespace num_of_islands {
class Solution {
void DFS(vector<... |
db601b6384d920a51b1a0b3ba4c82e29743b9296 | 71d7e92b4fd7d2a8fd8c178f8705960c00cf3ba7 | /AtividadePratica7/parte1/main.cpp | e0a0ddbd3b5e077364365f926b571c991e55f2e6 | [] | no_license | jvdprates/p_o_o | 23379ec2f60ceefb11a528146dd6a07984455006 | 3771b72b59d4708c6bd2a4daf290e6d52073a367 | refs/heads/master | 2022-12-28T19:27:42.305893 | 2020-10-20T01:57:00 | 2020-10-20T01:57:00 | 287,388,126 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 404 | cpp | main.cpp | #include <iostream>
#include "Ponto3D.h"
using std::cout;
int main()
{
Ponto2D p1(3,4), p2;
p2.set2D(2,1.5);
cout << p1 << endl;
cout << p2 << endl;
p2 = p1;
cout << p2 << endl;
Ponto3D p3(2,4.5,5), p4;
p4.set3D(1,0.3,12);
cout << p3 << endl;
cout << p4 << endl;
p4 = p3... |
93bc00f5d765a07ce592d40efdb981a590725529 | d2d72032d3fa4537c0c278c199fcb447d791e48e | /libs/engine/op.h | 380cf40011a54df62b52df7b1a6d28d623123803 | [
"MIT"
] | permissive | lineCode/gecko-1 | 28eb3b2964625e14aff7f3d20a66a9110280b573 | 6d874fbbddad65371958e6415ca07027cd1c89b8 | refs/heads/master | 2020-04-05T14:50:12.902104 | 2018-11-04T08:07:00 | 2018-11-04T08:07:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,426 | h | op.h | //
// Copyright (c) 2016 Kimball Thurston
// All rights reserved.
// Copyrights licensed under the MIT License.
// See the accompanying LICENSE.txt file for terms
//
#pragma once
#include <base/const_string.h>
#include "op_functions.h"
////////////////////////////////////////
namespace engine
{
class subgroup;
/... |
e0b098dc4079f6331cd34be566bb3f4c0d1bd479 | a38160db9d6e2b302ab210e08b81e212c71e8735 | /src/environment/RegularObjects/PlyObject.cpp | 7733b7c2b8c6261ffe2f34a40081084b5069cc82 | [] | no_license | Michoumichmich/Moteur-Graphique | b5503cfba85dc5ba5021d2302efb75b41b220ba6 | fc4c711b23612d2bcfae1f1c67896d47a941ac67 | refs/heads/master | 2023-02-27T18:49:06.982776 | 2021-02-04T23:34:12 | 2021-02-04T23:34:12 | 300,194,286 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,190 | cpp | PlyObject.cpp | #include "PlyObject.h"
#include "../utils/io/PlyParser.hpp"
#include <algorithm>
PlyObject::PlyObject(std::string ply_file) : source_file(ply_file) {
happly::PLYData plyIn(source_file);
std::vector<std::array<double, 3>> vPos = plyIn.getVertexPositions();
std::vector<Point3D> nodes(vPos.begin(), vPos.en... |
a2593322f4fc4377e022f4143088b071fc8afdb0 | 7061213b5609c2bc5e7fa8c20af5618bdc2f85e9 | /assignment_01/Solution/ConfigurationParser/ConfigParser.h | cbd871db094bfda6f9c6b49e69644249a5cfcc29 | [] | no_license | dantenerolmh/GameEngineDesign | cffe593ce5f5dcfe560a40b4b46b859b1c7b158c | f171ad5375ab081f5c0e506214a41113bafe22c1 | refs/heads/master | 2020-03-19T02:59:29.534662 | 2018-06-04T04:53:33 | 2018-06-04T04:53:33 | 135,683,293 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 319 | h | ConfigParser.h | #pragma once
#include <string>;
class ConfigParser
{
public:
ConfigParser();
~ConfigParser();
struct Color
{
float r;
float g;
float b;
};
private:
float spinning;
float spinSpeed;
Color backgroundColor;
std::string terrainPath;
float terrainWidth;
float terrainDepth;
float terrainHeight;
};
|
198768ffde1824a239dddb86536963047fd393d1 | f36fa908b11e5cb3956b3153a0ee00af3816d036 | /lab02/HTMLEncode/HTMLUtils.h | 54b41c182b34f082101d7b962315232dd82fe37f | [] | no_license | Und3rMySk1n/oop | 710f5c4344c2107028e531aff6e5bbb96a5b3702 | 4d5de5093fc0b1bf51786d4499baf42a9e0473c8 | refs/heads/master | 2021-01-10T15:21:03.342401 | 2016-02-18T18:55:55 | 2016-02-18T18:55:55 | 44,984,690 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 106 | h | HTMLUtils.h | #pragma once
#include "stdafx.h"
#include <string>
std::string HtmlEncode(std::string const &text); |
311863eb24e63d054544deec5d5c4ab30b88fbe8 | d83e14443f8d2da190ccf4fe13a8001feaac38c0 | /Lab 1/mergeSort.cpp | 05d60d70eabab468e85d6f7b7197d5c7f696e6c8 | [] | no_license | ameya1101/DSA-Labs | c3de9a3b605a2029a134431df4c3f9336b97ede3 | f5f4fb67ab768e597589b4e8985d3649f8ce1d96 | refs/heads/master | 2023-02-24T15:30:15.345462 | 2021-02-04T19:36:02 | 2021-02-04T19:36:02 | 332,389,696 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,490 | cpp | mergeSort.cpp | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
void arrayInput(int arr[], int n)
{
for(int i = 0; i < n; i++)
cin >> arr[i];
}
void arrayOutput(int arr[], int n)
{
cout << endl;
for(int i = 0; i < n; i++)
cout << arr[i] <<... |
0ce9f790a39d6d5c38cbc3da92b222669047f68f | 031000708801dc8c489a4f464fd59067670365b0 | /src/engine/utility/StbImage.cpp | f9f1df59f4216e43850f035bb533c6c851a44dd9 | [
"MIT"
] | permissive | zapolnov/TankHero | 3cb084df6bc5525bf73880a70c40137f99d0f54a | a907417dc171cb0d4ea04539ae09ba37ee7782ab | refs/heads/master | 2020-12-01T08:30:04.676313 | 2018-05-16T22:42:07 | 2018-05-16T22:42:07 | 67,896,082 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 87 | cpp | StbImage.cpp | #include "StbImage.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb/src/stb_image.h"
|
54f3227e9d720e7748e32e4d251db1a47aa520bd | cf733be063f987e1d6a3ad856e6ff685d4542d01 | /app/ros/robust-vslam/src/robust_vslam_ros.cpp | f56b56a037673f5f5eaf1444bfa1cca6668b1ce1 | [] | no_license | liuzhenboo/Stereo-Visual-Odometry | 769d587684a8134d74d339d5aef3fe6bf7afd275 | 8e12294d42178532fb2e850e30dbca6ff34862a2 | refs/heads/master | 2022-11-27T15:49:44.214644 | 2020-08-07T05:00:19 | 2020-08-07T05:00:19 | 275,805,762 | 3 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 2,959 | cpp | robust_vslam_ros.cpp | //
// Created by Liu Zhenbo on 2020-6-30.
//
#include <ros/ros.h>
#include <cv_bridge/cv_bridge.h>
#include <message_filters/subscriber.h>
#include <message_filters/time_synchronizer.h>
#include <message_filters/sync_policies/approximate_time.h>
#include <opencv2/core/core.hpp>
#include "lzb_vio/System.h"
#include "lzb... |
b5f8dfbca77802ebae8892a9c1da95af27532932 | ef0908274c3f260d8e5cd1b905acf158b5147d59 | /Cpp/Chapter5/return_obj_copy_con.cpp | bce1473156c7c7c490eb0c30fc1fe05e02bc5927 | [] | no_license | comeeasy/study | 240d24999edc07d02f10261092abd9781f716b4a | ccb0de2ee944a29234ca643c1ce1dd39012d405b | refs/heads/master | 2021-06-28T19:43:24.893583 | 2021-06-07T14:10:46 | 2021-06-07T14:10:46 | 228,672,620 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 626 | cpp | return_obj_copy_con.cpp | #include<iostream>
using namespace std;
class Simple {
private :
int num;
public :
Simple(int n) : num(n) {}
Simple(const Simple ©) : num(copy.num) {}
Simple& add(int n) {
num += n;
return *this;
}
~Simple() {
//cout << "Destroy obj: " << this << endl;
}
void simple_func() {
cout << "simple_func: "... |
075070621b0edf86171cce19cddf5c5153057ded | 3b2315257621801f9a8fde7c47329a3429638024 | /game/player.h | 3655896c864be30a5b0cfe0c58c6e12be9b7b842 | [] | no_license | JPalka/xerxes | 837e01e865990a27906b8ebba14c0f0061d7726e | f252228d8d8dd6b1ca1ff79bd7000ae20135fabc | refs/heads/master | 2022-03-06T08:45:00.287983 | 2019-09-14T20:46:46 | 2019-09-14T20:46:46 | 208,991,598 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 499 | h | player.h | #ifndef PLAYER_H
#define PLAYER_H
#include <string>
#include <game/village.h>
class Account;
class Player {
public:
unsigned long int id;
std::string name; //Urlencoded
std::string tribe; //TEMPORARY type
//Think what to do about it, does Player store references to his villages or
//just have village store... |
fa1b0b1d81715546a79a82553e1f02b773acdcb6 | 676cddc7574752b1e2bfd0bf706445590ea388fe | /src/SP1Framework/game.h | 7e3b2b4ea55b64d91e5fed7e0e704c4a0e1f1936 | [] | no_license | TheGamingIron/NYPSP1 | 9cbb7baf6f4a8ef81715caa16c9d39fc2e51d2cf | 54a8b84cf0fc62ba0521a3d8e2ef56e1dc5fe2ad | refs/heads/master | 2021-01-02T01:09:11.474683 | 2020-02-10T04:07:31 | 2020-02-10T04:07:31 | 239,424,062 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,817 | h | game.h | //#ifndef _GAME_H
//#define _GAME_H
#pragma once
enum EGAMESTATES
{
S_SINGLEPLAYER,
S_SPLASHSCREEN,
S_MAINMENU,
S_INSTRUCTIONS,
S_OPTIONS,
S_TUTORIAL,
S_BUILD,
S_NULL,
S_GAME,
S_WINNERSCREEN,
S_CLASSSELECTION,
S_COMPLETEDSCREEN,
S_COUNT
};
#include <iostream>
#include <iomanip>
#incl... |
b5926ec74916802519b7b7c3e6beafa65672dfed | 4a25f6a665f63924237163b60c7dbc8e8e19423f | /VFE.cpp | 857a728aa43c40741dc5c32b0013453cef856388 | [] | no_license | xlchan/GP | 7dcf8fdc54def1ad9191a5bc85ff7038b9d3d87b | eca8ccea7b55e974df4937e3198d08a7c3f4728d | refs/heads/master | 2020-06-11T16:28:58.837472 | 2018-12-05T14:06:43 | 2018-12-05T14:08:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,831 | cpp | VFE.cpp | #include "VFE.h"
#include "MatrixSolver.h"
#include <fstream>
#include <cstdio>
#include <chrono>
using namespace std;
using namespace Eigen;
using namespace std::chrono;
VFE::VFE(const MatrixXd& train_in, const MatrixXd& train_out, GP::CovFunc cf, GP::MatrixDecomp md)
: GP(train_in, train_out, cf, md)
{
// XXX... |
ccbefe3785bdf58fc23d875c29ba8d7c65696ad0 | 897e5e009ef3ac532df48da8dffc8aa3c7b1beba | /Help.h | acc62b6cf472949786fde50fdc59ddb5db210bb3 | [] | no_license | utkillr/VerController | fe4956b4c0ebd59d556b730839aeaa1ffcdd4af7 | 04421781d4455dbacabcf70a7ea340a182a29093 | refs/heads/master | 2021-01-19T07:53:56.412341 | 2017-06-14T13:53:38 | 2017-06-14T13:53:38 | 39,726,456 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | h | Help.h | #ifndef HELPFILE
#define HELPFILE
#include <string>
#include <iostream>
using namespace std;
//Common function for help
void printHelp();
//Help for adding option
void showAddingHelp();
//Help for adding existing file option
void showAddingExistingHelp();
//Help for adding permissions option
void showAddingPermissio... |
45d882be3d07f4157d10ea75f76b5fb01c818cd9 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1484496_0/C++/Troublemaker/C.cpp | 5f5d570a8f5f4644d5e2524e4bdc109851cdbaf2 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,535 | cpp | C.cpp |
#include <iostream>
#include <fstream>
#include <vector>
#include <set>
#include <algorithm>
#include <functional>
using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define FROM_0_TO(i,n) FOR(i,0,n)
#define PRINT
#define TASKNUM "C"
#define DATASET "small"
ifstream fsIn(TASKNUM "-... |
0a8f8ed9e3cf71ddbfadfb263ce6392d79011f3d | 33cc75a925b12133bc78fe0f307140878bb093b6 | /icpc/2007-exactas-selection/e/test.cpp | 0e86cf4085f7f1a4a0bc8ba61684f525f93ecb24 | [] | no_license | redeff/cmp | 05603369f404cff25d168105b1f1c7a956fd07b8 | 8974bacf61b6c73d1cb5d3b5aa33c12af0d687d0 | refs/heads/master | 2021-05-08T01:10:47.542693 | 2019-10-13T22:19:32 | 2019-10-13T22:19:32 | 107,782,810 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 146 | cpp | test.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
string s1 = "aasdhkfjaksdfhkajsdfh";
string s2 = "b";
cout << (s1 < s2) << endl;
}
|
a72b367c65ef7bdc59cafed0cf584fc5ce350754 | 7a172ffea7f3ef1c2cd868d961e01cd8515d9886 | /23/ForbiddenStrings.cpp | 440099769c09f44d7b32b87ae04e3d96c7125262 | [] | no_license | rituraj0/OtherCompetitions | e37ba5ff02998c76aad95cf174bb856ad6766d9e | 2054a6376caa3258c9db56f634a54228f4f1a412 | refs/heads/master | 2020-06-05T21:59:41.811711 | 2015-02-17T16:28:08 | 2015-02-17T16:28:08 | 26,070,295 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,383 | cpp | ForbiddenStrings.cpp | #include<algorithm>
#include<iomanip>
#include<iostream>
#include<sstream>
#include<cstring>
#include<cstdlib>
#include<climits>
#include<fstream>
#include<cctype>
#include<cstdio>
#include<string>
#include<vector>
#include<queue>
#include<stack>
#include<cmath>
#include<map>
#include<set>
using namespace std;
typed... |
f80bbfc487dddaee2dbc7472fc029cc48cb14928 | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/git/new_hunk_1065.cpp | cc5fcde5c7e51f9604b0c2e39739ec0e35b43a76 | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 865 | cpp | new_hunk_1065.cpp | return -1;
}
/*
* The trailing slash after the directory name is given by
* this function at the end. Remove duplicates.
*/
while (pathbuf.len && pathbuf.buf[pathbuf.len - 1] == '/')
strbuf_setlen(&pathbuf, pathbuf.len - 1);
if (!alt_odb_usable(&pathbuf, normalized_objdir)) {
strbuf_release(&pathbuf);... |
cfd5fd0c692b7774e5e2d27f695197f2cea699f8 | 0e7f9e5cff3a0ccdeb9cbca4ed369c6ea0eff730 | /src/loaders/TextureLoader.h | afa6ca008b4b250d858f7f1c2011ecff66671a18 | [] | no_license | pronebel/3DStudio | fbfecbc3e647f98172df9e6dc4d0fc5379c6a901 | ba8c827732cf7fbc1f509a245f1811b5a6ef2463 | refs/heads/main | 2023-03-16T23:16:08.072388 | 2021-02-19T08:39:35 | 2021-02-19T08:39:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,446 | h | TextureLoader.h | //
// Created by William Lundqvist on 2020-11-19.
//
#ifndef GLPROJECT_TEXTURELOADER_H
#define GLPROJECT_TEXTURELOADER_H
#include <glad/glad.h>
#include <map>
#include "../graphics/Texture.h"
namespace GLProj {
/**
* loader class that loads and creates textures, it also caches previously loaded textures.
... |
ab2f3d7c50bb27366f0e913b06e03537ddecc96e | 6f8ae3f9c901a75e3887e3b32fe132b713c4dd19 | /Leetcode/78_subsets.cpp | 45c6a8a097d516f279b7ffe773c46295ac2fa665 | [] | no_license | iansu81/Ian_play | 297161c17de293cc0a1492cb5fa77c33d78fecfb | ed47631d093987be704029be4809321fe1d35baa | refs/heads/master | 2023-03-18T11:12:20.940949 | 2023-03-15T06:13:04 | 2023-03-15T06:13:04 | 161,003,540 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 969 | cpp | 78_subsets.cpp |
#include <vector>
#include <iostream>
#include <algorithm>
#include <unordered_set>
using namespace std;
class Solution {
public:
vector<vector<int>> subsets(vector<int>& nums) {
vector<vector<int>> result;
vector<int> tmp;
backtrack(0, nums, tmp, result);
return result;
... |
45f5b510cbb78125cb33424a8945625078713231 | 434ebf510f24b6e237b7aa6e757a645c7bec89ad | /reversi/reversi.hpp | c8acae2d795f5c3c1b7c847a57bb1a85e96abc99 | [] | no_license | Yanhualuo/CIS330 | 3cbb14adea3f46487622dfb9fa06bf6928efc44d | 0c07930ea62aebc323c9b9da2eb05bf1bc8705ba | refs/heads/master | 2021-05-09T16:37:52.836042 | 2018-01-27T00:28:48 | 2018-01-27T00:28:48 | 119,117,514 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 878 | hpp | reversi.hpp | /*
* reversi.hpp
*
* Created on: Feb 7, 2017
* Author: yanhualuo
*/
#ifndef REVERSI_HPP_
#define REVERSI_HPP_
typedef int boolean;
//#define true 1;
//#define false 0;
struct board{
int size;
int grid;
int **chess_board;
int white, black;
};
typedef enum{
white =1,
black = 2,
blank = 0,
}chessC... |
0dee11be9bc3af23c9e45ba6934a31000a9861d7 | 7de6f05d3f34ea53e919cca29531fc55a31d4abf | /BasicRayTracer/Ray.h | 97b2c83ba68d32e3168c187c643e7ca013d304e6 | [] | no_license | arvearve/Raytracer | 60720a6aa7e6ba220eff0b1767ead898252a082f | 1da01772c5c8cff90b3389796e180f11955b0cf3 | refs/heads/master | 2021-05-28T16:34:17.457741 | 2015-03-21T01:39:45 | 2015-03-25T04:15:28 | 30,689,351 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,182 | h | Ray.h | #pragma once
#ifndef __RAY_H
#define __RAY_H
#include <vector>
#include <math.h>
#include <unordered_set>
#include "Vec3f.h"
#include "scene_io.h"
class Primitive;
class Ray;
typedef void(*surface_shader)(Ray &ray);
#define BACKGROUND_COLOR Colr(0,0,0)
#define BUMP_EPSILON 0.0001
#define IOR_AIR 1.0
#define IOR_GLASS ... |
e07a1ad4dae70734175d285d13ee32a545b3cb51 | 598ab5150f0a009643843a9f0fee7435edb1e938 | /src/qt/editaliasdialog.cpp | 1c4f1ab4bdff586cedf7210abea3b99172d8fc57 | [
"MIT"
] | permissive | revelacaogr/syscoin2 | 2c8b953c2c27ecf4c4a08a606dc390f51b58c252 | 85d0349ca0029c31bc6012ce99c3b970c92a40c5 | refs/heads/master | 2021-01-15T19:44:55.344196 | 2016-05-17T04:01:55 | 2016-05-17T04:01:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,722 | cpp | editaliasdialog.cpp | #include "editaliasdialog.h"
#include "ui_editaliasdialog.h"
#include "aliastablemodel.h"
#include "guiutil.h"
#include "walletmodel.h"
#include "syscoingui.h"
#include "ui_interface.h"
#include <QDataWidgetMapper>
#include <QMessageBox>
#include "rpcserver.h"
using namespace std;
extern const CRPCTable tableRPC;
Edi... |
cee9d2587273328a13274b7cb9dd264aef006f24 | 95a43c10c75b16595c30bdf6db4a1c2af2e4765d | /codecrawler/_code/hdu1236/16208097.cpp | ddf9a6015c108ae329c5b16a90f3718878bb2cb7 | [] | no_license | kunhuicho/crawl-tools | 945e8c40261dfa51fb13088163f0a7bece85fc9d | 8eb8c4192d39919c64b84e0a817c65da0effad2d | refs/heads/master | 2021-01-21T01:05:54.638395 | 2016-08-28T17:01:37 | 2016-08-28T17:01:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,375 | cpp | 16208097.cpp | #include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
#define N 1010
int que[15];
struct node
{
char str[22];
int num;
int score;
}stu[N];
bool cmp(const node &a, const node &b)
{
if(a.score == b.score)
return strcmp(a.str, b.str) < 0 ? 1 : 0; //æåå... |
214848d91c7b1321dff2935b59c72fe728e58d36 | d985f7286f3c3844b7d9e7c89075d2ebe4bcfa18 | /4/4.11/main.cpp | e298b8a566c9b0b0f81c5576b58433781a712b69 | [] | no_license | KeremAtak/ceepeepee | 091e5677c2a4215ea79bcd436ee867cf6d03fed7 | 0fc63d5ece3954203d900e8debf363f5d40b99e2 | refs/heads/master | 2022-12-11T06:55:57.873720 | 2020-08-27T22:45:18 | 2020-08-27T22:45:18 | 275,889,063 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 902 | cpp | main.cpp | #include <iostream>
int main()
{
char ch1{ 'a' }; // (preferred)
std::cout << ch1; // cout prints a character
char ch2{ 98 }; // code point for 'b' (not preferred)
std::cout << ch2; // cout prints a character ('b')
std::cout << 'c';
std::cout << '\n';
/*char ch { 'a' };
std::c... |
980db974503b19fafef4b81e52c5f32559604aa4 | 69518d2d4b44416ba673c15a57bd9c50fc6e56ec | /merge_without_extra_space.cpp | 14b99dabe150e07f32a65a0a2db5b1825c3b0422 | [] | no_license | adityarana14/Array | 7c69eed10ac29f82f1eb2328f0c30f026b8ce855 | bf88d0f0064339a98ed2345325f4281337f5d2c4 | refs/heads/main | 2023-04-13T20:19:30.748218 | 2021-04-17T23:46:42 | 2021-04-17T23:46:42 | 351,333,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 910 | cpp | merge_without_extra_space.cpp | class Solution{
public:
//Function to merge the arrays.
void merge(long long arr1[], long long arr2[], int n, int m)
{
// code here
priority_queue<long long int,vector<long long int> , greater<long long int>> pq;
int i=0,j=0;
while(i<n || j<... |
d2d336f2630638f5e127237c24932f5e8729165b | 3de143e9e9034fa2ec46bf4d3cffc262b645f9c4 | /test5_28.cpp | 340b4f74e6a86f9ea590761e2f712c1ed4068594 | [] | no_license | rain-point/first | 964975b44322d610642e7fe35cdca5443a7641d8 | 7c607bf0cdbd41aa3503a05a9cc6335cdc74745f | refs/heads/master | 2023-07-12T19:18:27.155630 | 2021-08-12T15:06:52 | 2021-08-12T15:06:52 | 329,480,813 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 423 | cpp | test5_28.cpp | #define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
class A
{
public:
A(int a = 1)
{
_a = a;
}
private:
int _a;
};
class Date
{
public:
Date(int year = 0, int month = 1, int day = 1)
{
_year = year;
_month = month;
_day = day;
}
private:
int _year;
int _month;
int _day;
};
class ... |
37589beca94030bd4b75b923425110f13f5c1b29 | 7fe87d487f038b383b00757f2c97fb0188c67895 | /11764 - Jumping Mario.cpp | 6fbcff1edf59566c49f1682be03edbe2edd6e971 | [] | no_license | Sanjit12/UVa-Solved-Problems | 7dc76b6eef2f555950523a4a4989774ede0a4b99 | 427e9080e7d610321c0a91529d4272e006993361 | refs/heads/master | 2021-01-01T19:00:24.012855 | 2017-07-27T03:25:21 | 2017-07-27T03:25:21 | 98,486,635 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 456 | cpp | 11764 - Jumping Mario.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n,cas=0;
scanf("%d",&n);
while(n--)
{
int h=0,l=0,t,pre=0,j;
scanf("%d",&t);
scanf("%d",&j);
pre=j;
for(int i=1;i<t;i++)
{
scanf("%d",&j);
if(j<pre)l++;
... |
c07fa5da3b3da2c3808daafe24e9c0ad8586691c | 83726be441755bcb53bdafcfa28da74b135ded12 | /libmat/src/lm_tArray.cc | 0013cd64728c6adbb629ce2251dc1cf58b855d98 | [
"BSD-2-Clause"
] | permissive | FermiQ/winterface | 1ac6e01264ae10c4842098f7436f83cb98ffdadc | b6d501df1d0c015f2cd7126ac6b4e746d541c80c | refs/heads/master | 2023-03-17T01:21:30.486849 | 2020-08-07T16:01:38 | 2020-08-07T16:01:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,050 | cc | lm_tArray.cc | // 2014-2019, ETH Zurich, Integrated Systems Laboratory
// Authors: Christian Stieger
#include "lm_tArray.h"
#include "lm_tMat.h"
#include "lm_ops.h"
#include "lm_cpxItr.h"
#include <vector>
#include <ctime>
#include <fstream>
// logical
template<class TT, class FT, class CT>
lm_tMat<FT,FT,CT> lm_tArray<TT,FT,CT>::op... |
9420b80b5e95494093440fd1b2fd489a70f74c6f | 8d38a84edc263dd708dd8ad3041b54d49b333cb5 | /Language tools/Different names.cpp | f0b2744a33aaf346b054d9739bfd47a7e40de2c5 | [] | no_license | kishankunal/100DaysOfCode | 04571f94bdbf9e5386be80207ef1dc9c9d61bb43 | 814641dfbca7fb2a34458df0aaa0cf7304c5285a | refs/heads/master | 2020-08-04T01:05:24.543691 | 2019-10-15T09:09:12 | 2019-10-15T09:09:12 | 211,946,809 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 612 | cpp | Different names.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
getline(cin,s);
s += " ";
int curr = 0;
int size = s.size();
unordered_map<string,int> data;
while(curr<size){
string str="";
while(!isspace(s[curr])){
str+=s[curr];
curr++;
}
... |
afc6ccc8447d0986790e4e39b48c6fe570c87246 | 5b81557013f460bdcd9bab9d428395e8805be238 | /2_exercicios_c_repeticao/ciclos_ex_07.cpp | 65d50ca1076e47cc632ec1d2c82a11c44e1cc043 | [
"MIT"
] | permissive | pocinho/trabalhos-plano-adicional-cpp | 772530d43ef63bc43e27ed988ee3dcbe90ec876c | d0f03cdbeb683d0ccc77420c19dd876922f236b9 | refs/heads/master | 2021-01-20T15:13:28.917804 | 2017-05-09T11:48:07 | 2017-05-09T11:48:07 | 90,739,521 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 410 | cpp | ciclos_ex_07.cpp | /*
AUTOR: PAULO POCINHO
DESDE: 16-03-2017
Exercício 7: Faça um algoritmo que gere
a seguinte série: 10, 20, 30, 40, ..... 980, 990, 1000.
*/
#include <iostream>
using namespace std;
int main()
{
int conta = 0;
for (int i = 1; i <= 100; ++i)
{
conta += 10;
cout << co... |
ac51d00b592501c5e572f6e4543abd5ba2ee71a1 | b54ddf5179ec16d56190e24aa4674fcf68f60651 | /recored01/消息 socket_libuv_03.cpp | 33bd426cad6f9ad70055573e0fc5bd443128d88c | [] | no_license | luojinfang/od_ida | 6a90cadc2206c31dd8b84540118241b38cf92522 | b16e3b8bb0ab8e23ef69802653b3f00a836dbbca | refs/heads/main | 2023-05-15T04:33:51.873249 | 2021-06-07T01:49:12 | 2021-06-07T01:49:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,923 | cpp | 消息 socket_libuv_03.cpp | //Util::Data::CreateTXBuffer
//拷贝发送内容-----------------------------关键
Address To From Si Comment Party
//=> memcpy
0866F95C 6B48E1DC 6B48E153 1C common.6B48E153 User //CTXCommPack::AddBuf(CTXCommPack *this, const unsigned __int8 *Src, unsigned int Size)
0866F978 6B48A69F 6B48E1DC 1C... |
3b3acb5aaee1b846114198efec5873cab3b8d775 | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /Reconstruction/egamma/egammaCaloTools/src/egammaPreSamplerShape.cxx | 03f7d947f2d3a97354bb3bc184331e28ee317d56 | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,569 | cxx | egammaPreSamplerShape.cxx | /*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
#include "egammaPreSamplerShape.h"
#include "egammaUtils/egammaEnergyPositionAllSamples.h"
#include "xAODCaloEvent/CaloCluster.h"
#include "CaloUtils/CaloLayerCalculator.h"
#include "CaloDetDescr/CaloDetDescrManager.h"
#include "SGTools/... |
975251bf70e0866c8795451589c5056b4eefd9b8 | 9648c1994a8732bfaa1146f47979f0601757ec31 | /UVA/UVA12063.cpp | caa2eb4a2935c4122f2584d84e43b5f3a34e0e22 | [] | no_license | aamir-ops/Competitive-Programming | 304d5b46b4bf11cee7e1fcd27ad31cbb17f76ffd | cde4b30ffb63711e74fe2cb2bcd67bab37c0ef5f | refs/heads/master | 2020-12-13T21:53:24.152246 | 2018-04-23T03:27:55 | 2018-04-23T03:27:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 807 | cpp | UVA12063.cpp | #include<bits/stdc++.h>
using namespace std;
typedef unsigned long long ll;
ll dp[70][35][205];
int n, d, t;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cin >> t;
for(int tt = 1; tt <= t; tt++) {
cin >> n >> d;
cout << "Case " << tt << ": ";
if((n & 1) || d == 0) {
cout << 0 << "\n";... |
1dc1e606b946f90b8f15bcc67c6c62fa68424074 | e7db8983521a41ad490a981f718345af3f7cab90 | /2017-11-24/övning7.1.cpp | 0a148d47e4b522a21824ba13177a18f501f394d4 | [] | no_license | sedvin/cpp | dc7b642e13180757197b25f5ac39b59d2e1e0dda | 5e46e324dc92a4d55085299b28095bd1c8748118 | refs/heads/master | 2018-07-14T06:32:22.973027 | 2018-06-01T12:48:29 | 2018-06-01T12:48:29 | 117,235,923 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 358 | cpp | övning7.1.cpp | #include <iostream>
#include <iomanip>
#include <string>
using namespace std;
int main()
{
char svar;
cout << "Vill du testa en villkorssats?(j/n)" << endl;
cin >> svar;
if( svar == 'j' )
{
cout << "Du svarade ja, det verkar fungera!" << endl;
}
else
{
cout << "Du svarade nej." << endl;
... |
37e1c6e7a2d16a9386580cfbcf9470caaddd141f | 2b027e4b2043a17471282b008f205dd2ac221281 | /src/BabyFeed/view/babyview.h | aeed9243db7d12ded311cbdd5c86637df36e4d14 | [] | no_license | hmiguellima/babyfeed | cd93bcfd7e62b5429089b42b2804fad4588b73c1 | 162ecf24c742dedd5e856638db3bcb1ba187063e | refs/heads/master | 2020-04-07T16:25:37.174103 | 2019-02-17T16:33:16 | 2019-02-17T16:33:16 | 158,528,732 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,093 | h | babyview.h | #ifndef BABYVIEW_H
#define BABYVIEW_H
#include "view/view.h"
#include "mainwindow.h"
#include "model/contactsmodel.h"
class BabyView : public View
{
Q_OBJECT
public:
BabyView(MainWindow* dView, QObject* parent);
QString url();
QString viewName();
QString getPhotoUrl();
void ... |
b4494d6f498bc1aee2bdbcdf82edf2d2b45e827a | a11e2edaa536604d5bdc867f5f1e04bbc0b58700 | /AggroEngine/src/Subsystem/Graphics/Impl/OpenGL/Shaders/GLSLShader.hpp | fc78360b392f6229f9f395f9b327b6b1c50b3f6f | [] | no_license | Argo15/Aggro-Engine | bd9be7b996ec0c3c9e70fe10ee4d02fc3e57ab18 | 7df2211900e6b3572a06f3195cbb357d23677e5f | refs/heads/master | 2021-12-31T12:23:12.208908 | 2021-10-07T22:10:32 | 2021-10-07T22:10:32 | 72,375,974 | 6 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 732 | hpp | GLSLShader.hpp | #pragma once
#include <string>
#include "Graphics.hpp"
/**
* This GLSL shader class is based off the book "More OpenGL Game Programming."
*
* author: wcrane
* since: 2013-12-28
**/
class GLSLShader
{
public:
GLSLShader(const std::string &filename, GLenum shaderType = GL_VERTEX_SHADER);
GLSLShader(GLenum shade... |
a10dc187e06f1b55869c77a6544bb71521136c1c | 7ffa9013e21deaa30d44a4d3c397c834900a4c34 | /good/include/good/map.h | c32940c31091ca227f142b1359b7a52c9b73690e | [] | no_license | jasonhaominglo/botrix | 26c66c16fb001f131afa9787c4036786bf941402 | 8add83bf4224ba913f55578df2ec8d0815d5324a | refs/heads/master | 2023-02-27T18:05:34.643191 | 2021-02-09T21:08:41 | 2021-02-09T21:08:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,964 | h | map.h | //----------------------------------------------------------------------------------------------------------------
// Map implementation, based on Anderssion tree.
// Copyright (c) 2011 Borzh.
//----------------------------------------------------------------------------------------------------------------
#ifnde... |
48f4f235355ed4b3d01325c3c5fef670d6dfd658 | 391c67fd3ef8c157d2d7a82305e6892b90534671 | /werd/Thread.cpp | 71c323c691ee20467191c45c49d5adbf28734ab6 | [] | no_license | lucius/werdaemon | 9c058ec98781de4adfc6fa640561fb4ca0789e9d | b4f7a027e49457a8c77c40e67fc2089c018d2c23 | refs/heads/master | 2021-01-10T07:37:17.251256 | 2008-09-15T05:26:46 | 2008-09-15T05:26:46 | 53,146,218 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,216 | cpp | Thread.cpp | #include "Thread.h"
#include <iostream>
#include <pthread.h>
#include <signal.h>
Thread::Thread()
{
}
Thread::~Thread()
{
}
bool
Thread::inicia(void* _argumentos)
{
this->argumentos = _argumentos;
return !((bool) pthread_create(&(this->id_thread), NULL, Thread::pontoDeAcesso, (void*) this));
}
bool
Thread::in... |
e25834869b0bbe757e3080f741d7b966566718c6 | eab47b71185ac405380441e251ddcc75da575052 | /playback/amf/src/engines/streamming_server.h | 35cbad306854010b416edcc4154788259646a1c5 | [] | no_license | mrtos/ambarella | 6b2bfc6adc3d314ef85cdc63bcded02b85cd3383 | 2eaae76ec56e052479ca6405a82c8fec0bc7a794 | refs/heads/master | 2016-12-13T05:10:17.576686 | 2016-01-21T09:47:01 | 2016-01-21T09:47:01 | 27,258,572 | 3 | 12 | null | null | null | null | UTF-8 | C++ | false | false | 12,411 | h | streamming_server.h |
/**
* streamming_server.h
*
* History:
* 2011/09/06 - [Zhi He] created file
*
* Copyright (C) 2011, Ambarella, Inc.
*
* All rights reserved. No Part of this file may be reproduced, stored
* in a retrieval system, or transmitted, in any form, or by any means,
* electronic, mechanical, photocopying, rec... |
0d368d5444e3d0e391f7e4eeb69deeb6cbfd2ba0 | 7f6ed057437e28ade3598dd43f0fb6b36104edd6 | /src/Communication/loki_signal.h | 6c0734db41d4640a81a5bfe854a713f0af3016f8 | [
"MIT"
] | permissive | ucam-comparch-loki/lokisim | 4bacd85f13e04ce21cccc79dae44747dfb0ff7e4 | 3641e01d6173d448a8bd9d62c3cc9664d05e442d | refs/heads/master | 2021-05-24T09:02:41.419384 | 2020-06-01T07:52:59 | 2020-06-01T07:52:59 | 253,477,937 | 0 | 0 | MIT | 2020-04-06T13:58:14 | 2020-04-06T11:32:18 | C++ | UTF-8 | C++ | false | false | 4,321 | h | loki_signal.h | /*
* loki_signal.h
*
* A signal which combines the three common pieces of information often
* communicated between Loki's modules:
* 1. Data
* 2. Acknowledgements
* 3. Validity of the data
* - Set to "true" when data is written
* - Set to "false" when acknowledgement is received
*
* By having all of... |
e8cc43b3a6d3e8601050357402fa7995db6bbdce | 215558543f94883e3e396ea071fb9949167734d7 | /src/flogicfiber.cpp | 7f13491cca284500cf3eddae30df3c2b1f2b05b2 | [] | no_license | p12/fmap | 9beda3230fd527b45c78d0445ef466b6b129153c | a0a2b3b01af4bf87db3fc92373b4d5e257f98b45 | refs/heads/master | 2021-07-25T22:09:38.165425 | 2016-09-24T14:47:33 | 2016-09-24T14:47:33 | 14,169,571 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 156 | cpp | flogicfiber.cpp | #include "flogicfiber.h"
int FlogicFiber::nextId = 0;
FlogicFiber::FlogicFiber()
{
id = nextId++;
}
int FlogicFiber::getId() const
{
return id;
}
|
ffec54ffa7a4c90d19ba2aff51cfe3c77be6f683 | f2f42c22aef6be50eb06b9fc2c8042e89e2f2567 | /Form1.h | 7aefe213d93dfe18fac1fadd79879f807e6b6847 | [] | no_license | yoichi/LeakTest | 5445e5b4f8261e8aee10f04db4f64e89163b94b3 | 11bee29acf45dbdf2a9db45679a580e90dd718bd | refs/heads/master | 2020-05-22T14:55:41.036398 | 2011-01-23T14:09:58 | 2011-01-23T14:09:58 | 1,259,824 | 3 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 7,222 | h | Form1.h | #pragma once
class IProduct;
enum AllocationType;
namespace LeakTest {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Form1 の概要
///
... |
6578d91c935053bf0d3c80386e8696482f7d73dd | 1aecb09f0284b06317dab1be7abf554ed80680ae | /BvRenderGL/BvRenderContextStateGl.h | 7f033c1256b68f3d033b9e3103de59066930c5ea | [] | no_license | brunovergilio/BDeV-Engine | 6b22fb533c48112453bed2a836dd5ee30ce68eee | f56c41633d55787c94742a4132cc5d6238635d68 | refs/heads/master | 2023-08-08T00:30:15.620489 | 2023-07-25T00:52:04 | 2023-07-25T00:52:04 | 208,153,042 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,188 | h | BvRenderContextStateGl.h | #pragma once
#include "BvCommonGl.h"
#include "BDeV/Container/BvVector.h"
#include "BDeV/RenderAPI/BvPipelineState.h"
#include <functional>
class BvRenderDeviceGl;
class BvTextureView;
class BvTextureViewGl;
class BvFramebufferGl;
class BvGraphicsPipelineStateGl;
class BvRenderContextStateGl
{
BV_NOCOPYMOVE(BvRen... |
3b8ff8a35e921b671c4a9677f38e1e46030db6c6 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /native_client_sdk/src/libraries/nacl_io/kernel_wrap_win.cc | 0715cb01fd6aa2c65baff64d5916c55f791a179a | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 5,060 | cc | kernel_wrap_win.cc | // Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// The entire file is wrapped in this #if. We do this so this .cc file can be
// compiled, even on a non-Windows build.
#if defined(WIN32)
#include "nacl_io/kernel_wrap.h"
#in... |
59db8148963117210a0d73432a1b89ba637a0d84 | b7f16b58f1f1c59606bc8ead7dd74cf2f427e3e2 | /inline.cpp | 305241c51390a04a9a9999cef349baea375127a9 | [] | no_license | hmatz/CPP_Study | ca0f7c1010e07af00c87391a3dda9545c4766b20 | 66f7f521f00383e1b97f97653770a24e82d42bb7 | refs/heads/master | 2020-03-08T02:19:12.300265 | 2018-04-06T04:55:30 | 2018-04-06T04:55:30 | 127,856,080 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 634 | cpp | inline.cpp | //Using inline to execute simple function
#include <iostream>
using namespace std;
inline int MultiplyByMistery(int x)
{
int d = x*7;
return d;
}
int main()
{
while (1)
{
int x;
cout<<"Guess an integer value from 0 to 10: ";
cin >> x;
if (x == 7)
{
... |
94c9d17d74648f73aedbc12aa6984c19e9440f18 | 2854790b128ee9a7d338e6abde1c0957c3d4c77e | /students/project_skyrim_2.cpp | 9bb13bbffab06fd6f5e92b7d4eac7f946c04f56b | [] | no_license | AnaDz/Graphic3D | ddaf65b4b7f619c9770916d81b9019cd80f11396 | 5858777cad70a79b48597e90d1b230548703cc8c | refs/heads/master | 2021-01-18T03:28:34.059404 | 2017-03-30T14:16:23 | 2017-03-30T14:16:23 | 85,818,999 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,397 | cpp | project_skyrim_2.cpp | #include "../include/ShaderProgram.hpp"
#include "../include/Viewer.hpp"
/* PRACTICAL_03 : RENDERABLES */
#include "../include/FrameRenderable.hpp"
#include "../teachers/CubeRenderable.hpp"
#include "../teachers/IndexedCubeRenderable.hpp"
#include "../teachers/CylinderRenderable.hpp"
#include "../teachers/MeshRenderab... |
91573ebee05a82f3f32b38d88c8cb428891f8a23 | f545b849fa162f7e437eb9fd9e3958f6b81d3ddb | /BOJ/q22862.cpp | b271f198485d9356e5cbd86b54e297ff41b2ff08 | [] | no_license | lkw1120/problem-solving | 216fb135f1b314a10faf5e5c06d1ca03d638e935 | 9887ed81ce0958a9a9b7d80d754d14217e4df25a | refs/heads/master | 2023-08-20T15:32:35.739832 | 2023-08-19T17:04:23 | 2023-08-19T17:04:23 | 172,870,054 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 474 | cpp | q22862.cpp | #include<bits/stdc++.h>
using namespace std;
vector<int> v;
int N,K,L,R,cnt,ans;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin>>N>>K;
v.resize(N);
for(int i=0;i<N;i++) {
cin>>v[i];
}
L = 0;
R = 1;
cnt = v[0]%2? 1:0;
while(true) {
while(R < N) {
if(v[R]%2) {
if(cnt < K) cn... |
c3e43247cfd8d6edba3ac10c4a2c297fb35312e6 | c193f398bae6b7f67bf933317b9edd78dc31b007 | /Dynamic programming/Egg Dropping Puzzle.cpp | 801ef5d92a74c04eff15d37a08b6d88467436662 | [] | no_license | rohitopal23/SDE-sheet | 3ac198fe292291ab142e34b6f30096e93abe247e | 1a972363959340a190d158603e1c3ebe7752df21 | refs/heads/master | 2023-04-05T23:11:35.269171 | 2021-04-13T17:38:18 | 2021-04-13T17:38:18 | 357,237,770 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 720 | cpp | Egg Dropping Puzzle.cpp | class Solution{
public:
/* Function to get minimum number of trials needed in worst
case with n eggs and k floors */
int dp[201][201];
int solve(int e, int f){
if(f == 0 || f == 1 || e == 1){
return f;
}
if(dp[e][f] != -1){
retu... |
ed519978facbab3ff643775631536c7141ad0e76 | caf73e3d1cadf8aa1b266a7076582f2dfd694588 | /src/Model/Banking/Bank.cpp | 501e2fb8093dcc1d87b539d94d963c8adc242968 | [] | no_license | kornawe/CapitalismSimulator2021 | 0f41d50cde69c7a09b4a097f7537d744a8f263e9 | 815c521b3585889245b71c666d5006c7f6bcc440 | refs/heads/master | 2023-07-19T17:25:07.470342 | 2021-08-16T22:40:12 | 2021-08-16T22:40:12 | 392,466,310 | 0 | 0 | null | 2021-08-24T00:41:24 | 2021-08-03T21:55:01 | C | UTF-8 | C++ | false | false | 388 | cpp | Bank.cpp | #include "IBank.h"
#include "ITransaction.h"
namespace CapitalismSimulator {
namespace Banking {
void IBank::ChargePlayer(IAccount *toCharge, IAmount *amount) {
ITransaction tx(toCharge, m_account, amount);
tx.Execute();
return;
}
void IBank::PayPlayer(IAccount *toPay, IAmount *amount) {
ITransaction... |
8474a1d122e4db72f23af76c32041b72f17d214b | 1fc4f5203d231f0abe1d1168298dd41e0ad2dc2e | /Bcode_WintgTerm_V2.6.6_Build_20180929(界面统一版本)/GpcTerms/BasicTerm/plotdll/DrawSingleTrain.cpp | 1155f797f1d79e9f9e24ac691b1b2ddde80ab127 | [] | no_license | Huixaing/Project | 79d5ceb89620c0de6278cb211ef837c728f1af71 | fc3ab640265eaaed0c0a2c217370196525e1efc3 | refs/heads/master | 2020-03-30T00:44:07.773723 | 2018-10-08T05:44:22 | 2018-10-08T05:44:22 | 150,541,134 | 1 | 5 | null | null | null | null | GB18030 | C++ | false | false | 374,028 | cpp | DrawSingleTrain.cpp | #include "stdafx.h"
#include "resource.h"
#include "plotDoc.h"
void CPlotDoc::DrawSingleTrain(CDC * pCDC, CTG_SingleTrain * single,int nDrawMode ,int nStartNo,int nPointNum,BOOL isPrint,int schd_type)
{
if(1==m_nDrawTrainConsiderStationSep)
{
// 优化过车站展开
DrawSingleTrain_New(pCDC, single, nDrawMode, nStartNo, nPoi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.