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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6cd8ffec2f3cba6fece1d215ce6205932f188824 | 549270020f6c8724e2ef1b12e38d11b025579f8d | /recipes/metis/all/test_package/test.cpp | 6a150009d25d45971fd25c728987445a77d74a9c | [
"MIT"
] | permissive | conan-io/conan-center-index | 1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43 | 3b17e69bb4e5601a850b6e006e44775e690bac33 | refs/heads/master | 2023-08-31T11:34:45.403978 | 2023-08-31T11:13:23 | 2023-08-31T11:13:23 | 204,671,232 | 844 | 1,820 | MIT | 2023-09-14T21:22:42 | 2019-08-27T09:43:58 | Python | UTF-8 | C++ | false | false | 931 | cpp | test.cpp | #include <metis.h>
#include <cstddef>
#include <iostream>
int main() {
idx_t nVertices = 6;
idx_t nEdges = 7;
idx_t nWeights = 1;
idx_t nParts = 2;
idx_t objval;
idx_t part[6];
// Indexes of starting points in adjacent array
idx_t xadj[6 + 1] = {0, 2, 5, 7, 9, 12, 14};
//... |
52adde50e74e8ee40e3db86a4ecdace23a302f8f | 99df0f601fff296d93fdd20c65c266d752701168 | /src/math/linesegment3.h | c693a0a3cd035832ba601fab6100c3a87e9f5f40 | [
"MIT"
] | permissive | Alec-Sobeck/FPS-Game | c4d7ac2eb3cf6bd38dd5123e487d8a757c888d75 | 3a0f3e82bdbc651ee99e7b10d71d55ba43bb6d35 | refs/heads/master | 2023-04-11T09:03:33.550360 | 2021-04-24T18:59:33 | 2021-04-24T18:59:33 | 29,252,995 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 214 | h | linesegment3.h | #ifndef LINESEGMENT3_H
#define LINESEGMENT3_H
#include "glm/vec3.hpp"
#include "math/linesegment.h"
class LineSegment3 : public LineSegment
{
public:
LineSegment3(glm::vec3 point1, glm::vec3 point2);
};
#endif
|
dfdbc8f4e0044ad099af5aa126043312726cbe5d | a738499c570eb4b3aaaf83cf74246af0edaf7156 | /primality-test/C-C++/prime_imp.cpp | a61f44c7cb3d8b92929a467365fdd2f72b67e1bc | [] | no_license | anguyen524/MultiLanguageProgramming | f4005658227dcae54ceaaa3a65793b42c743802c | e7f288575e185662c4afdaaa50d01e2b2c57fe6e | refs/heads/master | 2020-04-19T06:20:04.648818 | 2013-10-31T12:33:04 | 2013-10-31T12:33:04 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 621 | cpp | prime_imp.cpp | //Copyright © Santoh Gondi, 2013, All Rights Reserved.
//No part of this file may be reproduced without Santosh Gondi's express consent
#include "prime_dec.h"
#include <cmath>
bool isPrime(long long number)
{
if ((2 == number) || (3 == number))
{
return true;
}
if ( (1 == number) || (0 == numb... |
72f8412d389c71fd3059a69bf71e03e093d70a7d | fb227e3635b5c06e49bad48928f7b6d3254c4dca | /intensive/camp/string/spojdict.cpp | 8c741a6b2cf54653dbf27a1da38ec8bd9dec6b2d | [] | no_license | BryanValeriano/marathon | 5be2ab354e49187c865f0296f7dfb5ab3c3d6c9b | 8dadfad7d1a6822f61ba5ed4a06e998541515634 | refs/heads/master | 2022-09-11T00:06:14.982588 | 2022-09-03T17:01:30 | 2022-09-03T17:01:30 | 141,581,750 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,151 | cpp | spojdict.cpp | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mk make_pair
#define fi first
#define sec second
typedef long long ll;
const int INF = 0x3f3f3f3f;
const int TAM = 22000 + 3;
set<string>row;
vector<string>query[TAM];
struct Trie {
int word;
int type;
map<char,Trie>m;
Trie() {
word = ... |
1ce3d25c15c6d0db1af751cf14cafe917fa6c78d | ba18d2d6c57823c5ff0919fb8578980c44b84e50 | /BattleTank/Source/BattleTank/Public/PlayerTankController.h | 5af5afa66658b294ac9ae9bfd1e229fc2559a860 | [] | no_license | LearningUnrealTutorials/BattleTankGame | 54be9c10e1e37a70993fcf436330a28d68a9219d | aec413a9f589594800fe430197f9488678551a71 | refs/heads/master | 2018-09-30T07:55:37.253656 | 2018-07-24T11:14:44 | 2018-07-24T11:14:44 | 103,753,946 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,267 | h | PlayerTankController.h | // by Aleksander Naumenok
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/PlayerController.h"
#include "PlayerTankController.generated.h"
//Forward declaration
class UTankAimingComponent;
/**
* Handlesp player input
*/
UCLASS()
class BATTLETANK_API APlayerTankController : public APlayerController
{
... |
7ab55dd58d478b3180f9dfccf2ed110509493c29 | 2ac511bb4fdfdf3ef3bb8f8d5d1f50567ef0695d | /Zadania_1/Zad.6/main.cpp | 2972ce86b21fa3729ff0c98640d000c8274f2600 | [] | no_license | Gabek21/Zajecia_Programowanie | 03d2c1ae0f11c85a2d57e854577ba8cea10bd909 | d22cf998bf415bd64d8473df0aa9f9bd8dcf11e5 | refs/heads/master | 2021-01-11T03:39:02.723061 | 2012-01-19T21:50:05 | 2012-01-19T21:50:05 | 3,220,916 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 288 | cpp | main.cpp | #include <iostream>
using namespace std;
int main()
{ int a;
cout << "Podaj liczbę a." << endl;
cin >> a;
if ( 100 > a )
if ( a > 9 )
{
cout << "Liczba a jest dwucyfrowa." << endl;
} else {
cout << "Inna" << endl;
}
return 0;
}
|
e8bad10a8cfdabab8e602f866f2e272cbbe15693 | a7e8b39393f21d05243cc6010fe347a67d23a9ca | /lib/SlimmerRuntime/SlimmerRuntime.cpp | 227eb192a10c01a7dc60801e805667ae6a1b5855 | [] | no_license | james0zan/Slimmer | eac4e27303c6ac64efc33aa1f8d52c9e3c4e2ac1 | dbc37b6b046dd99560ee0689354a3b1b1ac16fcf | refs/heads/master | 2021-01-22T05:24:11.713374 | 2015-11-06T06:07:42 | 2015-11-06T06:07:42 | 35,227,857 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 14,616 | cpp | SlimmerRuntime.cpp | #include "SlimmerRuntime.h"
#include "SlimmerUtil.h"
#include <atomic>
#include <semaphore.h>
#include <thread>
#include <vector>
#include <chrono>
#include <sys/fcntl.h>
//===----------------------------------------------------------------------===//
// Semaphore
//===-------------------------... |
6df15deb397b6ab9d4721a11d4fa2546e2cde0fa | 3a047d86eefb8b763f8f817feb901a6447874d52 | /Source/Game/DamageHandler.h | d563ce1dad5d6f48a9cda8b6bd5a058bbcf9f450 | [] | no_license | snosscire/Block-World | f98ff8652a2c99ce2c93070593359f6a6adab40a | 8118def18ff4efddf98aa1322777d060012a436f | refs/heads/master | 2016-09-05T17:37:30.955874 | 2012-07-21T18:29:53 | 2012-07-21T18:29:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 235 | h | DamageHandler.h | #ifndef __BLOCKWORLD_DAMAGEHANDLER_H__
#define __BLOCKWORLD_DAMAGEHANDLER_H__
namespace BlockWorld {
class GameObject;
class DamageHandler {
public:
virtual void handleDamage(GameObject* object, int damage) = 0;
};
};
#endif
|
3fd98e4be9d36c9b3c693685acfd4db5ba45e3cf | 1f41b828fb652795482cdeaac1a877e2f19c252a | /maya_plugins/inLocus/chRig/sgLocusChRig_v2/sgLocusChRig_v2/multMatrixDecompose.h | 32e94cfd402cd209eba667e6870ea8c2e374dd93 | [] | no_license | jonntd/mayadev-1 | e315efe582ea433dcf18d7f1e900920f5590b293 | f76aeecb592df766d05a4e10fa2c2496f0310ca4 | refs/heads/master | 2021-05-02T07:16:17.941007 | 2018-02-05T03:55:12 | 2018-02-05T03:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,553 | h | multMatrixDecompose.h | #ifndef _multMatrixDecompose_h
#define _multMatrixDecompose_h
#include <maya/MPxNode.h>
#include <maya/MFnNumericAttribute.h>
#include <maya/MFnMatrixAttribute.h>
#include <maya/MFnUnitAttribute.h>
#include <maya/MTypeId.h>
#include <maya/MMatrix.h>
class multMatrixDecompose : public MPxNode
{
public:
multMatr... |
d0cf95feab1e26fa3b6fb413669cc47c97bbf07b | eb716b4c99874fe4da78a4fdc7aec9696be9d8d8 | /src/Iot/Thermometer/ThermometerMain.cpp | 8ecd71897f3313b26f0d3f1d990bd5cdfbc3660d | [] | no_license | Sabaniki/IoTFam-Arduino | b23e54be7ec2b5e075abe6cf0b6c68cbfdc803af | 8bd0887aa8bc67396f7e3f385eff5f12b89e950f | refs/heads/master | 2023-02-18T02:51:40.984361 | 2020-11-12T10:08:11 | 2020-11-12T10:08:11 | 274,803,831 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 372 | cpp | ThermometerMain.cpp | //#include "Arduino.h"
//#include <Iot/Thermometer/Thermometer.h>
//#include <ESP8266WiFi.h>
//
//WiFiClient wiFiClient;
//Thermometer *thermometer = nullptr;
//
//void setup() {
// Serial.begin(9600);
// Wire.begin();
// Iot::setupWifi();
// thermometer = new Thermometer(wiFiClient);
//}
//
//void loop() {... |
838dc0d49960b7d6f85c9eb54354621606a8e5b3 | 409cbc183670d2583177e086c8ff558f0c3ef6db | /mcrouter/lib/ZstdCompressionCodec.cpp | 43dcd60696a2737bb409db218c55733b0af255f3 | [
"MIT"
] | permissive | facebook/mcrouter | 14a398b522c737af689e1a3e5e8e807168dad581 | 7f54c55b3aa97a14860207ecd0bb4b33e9324260 | refs/heads/main | 2023-09-01T06:29:33.291821 | 2023-08-31T22:35:45 | 2023-08-31T22:35:45 | 16,211,818 | 2,406 | 524 | MIT | 2023-09-13T21:50:25 | 2014-01-24T17:42:42 | C++ | UTF-8 | C++ | false | false | 3,290 | cpp | ZstdCompressionCodec.cpp | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "ZstdCompressionCodec.h"
#if FOLLY_HAVE_LIBZSTD && !defined(DISABLE_COMPRESSION)
namespace facebook {
namespace memcac... |
3314856da98408b4f2b7c231b68aac525b9a2495 | f465d227a7847522251312aec1efcde6a2c0b36d | /qrcode/src/TestImagePro.h | c910a42532d7d2ae845246098d3d56c7995c8d22 | [] | no_license | jinzhu6/robocup | bc5a1c035eed180fbfb92def04bf11291c39e051 | 460e9c7abdac443664941615eda4196ed256031a | refs/heads/master | 2020-12-26T16:16:51.866747 | 2015-08-14T11:08:28 | 2015-08-14T11:08:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,771 | h | TestImagePro.h | //============================================================================
// Name : TestImagePro.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#inclu... |
6877e9483217306798a3db2effd194946762c50c | 1d882bf4135ba734217b529419681161cea689fa | /Supernova/projects/msrv/common/src/MSrv_LoadingLogo.cpp | c1dd09becb4ffb41c8cb19ff7032229c91fa1c2e | [] | no_license | kungfu-monkey/Supernova | 0445eee3ef5b7d6d5edd93cfe35c1213696fa5a9 | 42bcd6365134b50acac6fd1f207e132681fa8eda | refs/heads/master | 2016-04-29T08:06:49.820616 | 2015-11-23T13:07:17 | 2015-11-23T13:07:17 | 46,719,653 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 15,316 | cpp | MSrv_LoadingLogo.cpp | //<MStar Software>
//******************************************************************************
// MStar Software
// Copyright (c) 2010 - 2012 MStar Semiconductor, Inc. All rights reserved.
// All software, firmware and related documentation herein ("MStar Software") are
// intellectual property of MStar Semiconduc... |
52449b9da9978b4512b5056b0afb4bcf0db270dc | 50e34c82f0c9d3dc8ea193a0e1838c9167833835 | /src/Scenes/Strategy/AI/CaseThree/CaseThree.h | e1b55b2db1f2c2d453e560f60873019b2209858c | [
"MIT"
] | permissive | Ashe/Thesis | 4bf77617bdcfdaf7b950b0a518d3886c3884998a | 8f342878565edb8a62682c33e0d85ba7ef9182b7 | refs/heads/master | 2022-11-27T18:50:10.382200 | 2022-11-12T09:05:52 | 2022-11-12T09:05:52 | 207,936,261 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,613 | h | CaseThree.h | // CaseThree.h
// A wrapper containing the A* class
#ifndef CASETHREE_H
#define CASETHREE_H
#include <utility>
#include "../../../../Controller/AStar/AStar.h"
#include "../../Strategy.h"
#include "../BaseCase.h"
// Encapsulate Strategy AIs
namespace Strategy::AI {
// Functor for using A*
class CaseThree : publi... |
db7c5bffac9b5fe14cbce0a4db383b81ce25d55d | 58c6d3b50b56309d975edafd8666a88b7d99e9d3 | /nav_vel_plan/src/robot2.cpp | 7785eafc6fbef5a387515c62afd9722f13b3b3ec | [] | no_license | ling-k/MazeSolver | bcd8d37d10bbd873ec58f7cb519abb73f1ed99c9 | 43eab5561b374c54e718e215a4cae4c5b3fdce0c | refs/heads/main | 2023-02-01T16:46:51.608636 | 2020-12-20T00:53:44 | 2020-12-20T00:53:44 | 315,453,370 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 500 | cpp | robot2.cpp | #include <ros/ros.h>
#include <geometry_msgs/Pose.h>
#include <geometry_msgs/Twist.h>
#include <nav_vel_plan/Follow.h>
int main(int argc, char** argv)
{
ros::init(argc, argv, "robot2_self");
ros::NodeHandle nh("~/");
MoveBaseClient ac("move_base_robot2", true);
Follow *robot2 = new Follow(nh);
robot2->set... |
0463cdc4fa45d51776afca2684bc080007c3fa9e | 9c5178db121dc5a27c1f81907a4794ede0a187c0 | /contest9/2.cpp | dca90b1c921883156d7893dc6cd8dc3488880d1e | [] | no_license | huynguyen1212/contest | 63dbfc70078d8c1cf37cd9d46d2a8590d38d4a35 | 7d3fff7f65b10c83cc6f1151d4c7873f0001027d | refs/heads/master | 2023-01-06T14:18:51.220264 | 2020-11-01T19:06:50 | 2020-11-01T19:06:50 | 272,675,836 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,214 | cpp | 2.cpp | #include<iostream>
#include<vector>
#include<string>
#include<algorithm>
using namespace std;
vector< vector <int> > a;
vector<vector <int> > dinh;
int xuli(string s)
{
int t=0;
for(int i=0;i<s.length();i++) t=t*10 + (s[i]-'0');
return t;
}
void solve()
{
int n;
cin>>n; cin.ignore();... |
b39da7deb387dcdfe7568473d6a3c21e48baa8ba | 77c45a7bc6d3aa3b8d700cd845f30af7a3df48ba | /codecheff/feb18/chefchr.cpp | 203f0885d2ac84fff89631a19fecd3a8536bec40 | [] | no_license | sudarshan-baliga/competitive-programming | bf9de8bdbe0bc88aba8793511c3d383e9441e53b | 886215940821070f49d8a52df05e03fdefbbca0e | refs/heads/master | 2023-05-28T03:14:18.040459 | 2019-11-13T12:25:23 | 2019-11-13T12:25:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 657 | cpp | chefchr.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int t, len, count;
bool flag;
string s, temp , required = "cefh";
cin >> t;
for( int i = 0; i < t; i++)
{
flag = 0;
count = 0;
cin >> s;
len = s.length();
for (int j = 0; j <= len-4; j+... |
51b4a2a7004883b291f665dbbe29a107a69f950b | 562c3c0aa2a8c5988f16b909f15f3e56649e607e | /minspantree.cpp | 49ffaabdb69ff91da68087dc7c73ebd6f58c93f5 | [] | no_license | cyrusbh/AAPS14 | 5bec1a24fa7b11a0543feea0bff7ad76dcff7839 | eb217b795e6729ef79f515e0c37a06c1afa88621 | refs/heads/master | 2016-09-06T16:47:12.058342 | 2014-03-10T00:59:01 | 2014-03-10T00:59:01 | null | 0 | 0 | null | null | null | null | MacCentralEurope | C++ | false | false | 1,787 | cpp | minspantree.cpp | /**
* Author: Markus Niemelš
* Problem: Minimum spanning tree
* Started: 2014-03-02
*/
#include <cstdio>
#include <vector>
#include <queue>
#include <algorithm>
using namespace std;
typedef pair<int, int> ii;
typedef pair<int, ii> iii;
typedef vector<ii> vii;
vector<vii> prim(vector<vii> AdjList, int &cost){
i... |
a56ae7c777523b5b2337ac7f907bc8b6926e0d23 | e584400cbca1ab49a8aed7326dc1a06978c7b2aa | /cObject.cpp | bab8b8b36b11f46ec39a2b1e2f286d9f861a00ed | [
"MIT"
] | permissive | androidg6/Simple_SDL_engine_MediaPlayer | d23cdffca32c72b4019dc6eee384f68709aba414 | c4f4d4bd9b18d37c53c93b1926529feee7532ac9 | refs/heads/master | 2020-06-09T23:38:38.587889 | 2016-12-10T16:08:30 | 2016-12-10T16:08:30 | 76,122,960 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,390 | cpp | cObject.cpp | #include "cObject.h"
cObject::cObject(){ free(); }
cObject::~cObject(){ free(); }
void cObject::free()
{
if(&spriteTexture == NULL)
{
spriteTexture->free();
}
position.x = 0;
position.y = 0;
spriteTexture = NULL;
}
bool cObject::setTexture(cTexture* mTexture)
{
... |
05274ae6bdc8000155b0ba36fdd9e05d66ac4cce | f9b32ac7c5b830a15b2d8516b26c484fd7f2837a | /Algorithm/InsertSort.cpp | 13834aa8c4dc115437ed4b4f5f221f0cb7712b15 | [] | no_license | Zukky55/Algorithm | 79cdce69430490a5461d75ce8f8d860d354e71c1 | ca36ac79b7292540555555f077bf15b2d4e21367 | refs/heads/master | 2020-05-20T21:16:10.973934 | 2019-05-23T09:22:44 | 2019-05-23T09:22:44 | 185,757,951 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 706 | cpp | InsertSort.cpp | #if 0
#include <iostream>
#include <random>
using namespace std;
const int ARRAY_SIZE = 9;
const int minVal = 0;
const int maxVal = 100;
int a[ARRAY_SIZE];
void DisplayResult(int result[])
{
for (int i = 0; i < ARRAY_SIZE; i++)
{
cout << result[i] << endl;
}
}
void GenerateRandomArray(int material[])
{
mt199... |
4df8175324b25689b5208bd382fea97efea4d909 | 7c512227f605a16284008238f9111655dedeecbe | /src_cpp/utils/boat_detector.h | 4e7fc5dc6b5e8f8d56acf870f9fb398e1bf4fb6f | [] | no_license | chguizz/boat_detection | 5c24869dc561a7c519f5d6a7ba1e0abe036e852a | d60ece6016b8cfd9480545a70086831b8080c7f2 | refs/heads/main | 2023-08-31T05:00:45.500677 | 2021-10-28T21:20:38 | 2021-10-28T21:20:38 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 4,747 | h | boat_detector.h | /*
Chiara Guizzaro
id number: 2019293
Computer vision project, boat detection, a.a. 2020-21
University of Padua
Boat detector class
*/
#include <iostream>
#include <fstream>
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/dnn.hpp>
#include "region_proposal.... |
65d40bedcb32118f0f38d38677693e1acd444f62 | edaa46e37dadb5a813e10c66016edc1448217747 | /test/binding.cpp | 61086c3ed698eee4db27801b95a65bafbb14c334 | [
"Apache-2.0"
] | permissive | jrwilson/ioa | 597dc1821b8c59b213128db2aa44d840188bba04 | 4780fb35a66d750a2bf0b251b0377a58776af453 | refs/heads/master | 2020-04-16T09:27:10.534042 | 2012-02-28T00:30:48 | 2012-02-28T00:30:48 | 1,346,948 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,957 | cpp | binding.cpp | /*
Copyright 2011 Justin R. Wilson
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 agreed to i... |
88849d41a8070cb266d99fdb88da786647bd658f | b46b6030676ec4fa0d3ce13d1ebd07f946753128 | /objOr/Battleship/WaterVehicle.cpp | 14af0759bf0bd5c0729ff8b4544f3b4d79ec1d1a | [] | no_license | tseale07/UCDFall2017 | c2acb3f99dc353d71ef0e30286c53c206b19c213 | 7d6fd22ac9f7330b637d58e26d6d35776f4a483f | refs/heads/master | 2021-08-19T17:18:33.664534 | 2017-11-25T07:04:55 | 2017-11-25T07:04:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,586 | cpp | WaterVehicle.cpp | //
// Created by Scott Clay on 10/29/17.
//
#include "WaterVehicle.h"
#include <map>
#include <fstream>
using std::string;
using std::cout;
using std::cin;
using std::endl;
WaterVehicle::WaterVehicle( ) {
}
WaterVehicle::WaterVehicle( std::ifstream &positions ) {
readShipFile( positions );
hitPoints = leng... |
84c6fba248bb4a25bd17467cc7a2219220081dd7 | dbc1df55531955597623e36cedc2a88f1339e6b8 | /source/lib/data/python/pyexposable.cpp | 7ec0f3704ca5194ce179cf65427e28aafec9c0e1 | [] | no_license | viviwu/MindTree | 9dab297ae11791b5afe2ebd654345ab9e636626a | 04c8d1513ea42ac2d166562df7b3e6f3ea3dbd1e | refs/heads/master | 2021-01-18T11:28:56.772556 | 2016-07-10T15:06:30 | 2016-07-10T15:06:30 | 63,045,565 | 1 | 0 | null | 2016-07-11T07:14:27 | 2016-07-11T07:14:27 | null | UTF-8 | C++ | false | false | 1,340 | cpp | pyexposable.cpp | /*
FRG Shader Editor, a Node-based Renderman Shading Language Editor
Copyright (C) 2011 Sascha Fricke
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 3 of the Lice... |
3d5c4fe5d613d4a862ae01286483cba0bdf09073 | fbe68d84e97262d6d26dd65c704a7b50af2b3943 | /third_party/retdec-3.2/include/retdec/llvmir2hll/semantics/semantics.h | 5f4fa779711df2a6106b010838feca8bddfaefc0 | [
"MIT",
"GPL-1.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"OpenSSL",
"WTFPL",
"LGPL-2.1-only",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-ssleay-windows",
"LGPL-2.0-or-later",
"JSON",
"Zlib",
"NCSA",
"LicenseRef-scancode-proprietary-license",
"G... | permissive | thalium/icebox | c4e6573f2b4f0973b6c7bb0bf068fe9e795fdcfb | 6f78952d58da52ea4f0e55b2ab297f28e80c1160 | refs/heads/master | 2022-08-14T00:19:36.984579 | 2022-02-22T13:10:31 | 2022-02-22T13:10:31 | 190,019,914 | 585 | 109 | MIT | 2022-01-13T20:58:15 | 2019-06-03T14:18:12 | C++ | UTF-8 | C++ | false | false | 3,924 | h | semantics.h | /**
* @file include/retdec/llvmir2hll/semantics/semantics.h
* @brief A base class for all descriptions of function semantics.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#ifndef RETDEC_LLVMIR2HLL_SEMANTICS_SEMANTICS_H
#define RETDEC_LLVMIR2HLL_SEMANTICS_SEMANTICS_H
#include <string>
#incl... |
9e708daee87f1a190bf64956d6b2594d7703f80a | 94017e1ed4691c26e248cc1eff9a4dade1b788b6 | /gattaca/GeneGraph.cpp | d3465dbc95d7b71efd7e09d645c3db96f701a665 | [] | no_license | JohnZ622/Facebookpuzzles | 30b4bdfe8263552042160350a1f8104d6ed85a67 | 9ee10738aaff1e93cc0df98bd7cabb48ba2c6f03 | refs/heads/master | 2021-01-10T16:36:50.369519 | 2016-01-24T06:38:03 | 2016-01-24T06:38:03 | 50,275,678 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,081 | cpp | GeneGraph.cpp | /*
* GeneGraph.cpp
*
* Created on: Sep 11, 2011
* Author: shuheng
*/
#include "GeneGraph.h"
#include <cstring>
#include <vector>
#include <algorithm>
Prediction *GeneGraph::getPredCollection()
{
return predCollection;
}
int GeneGraph::getCollectionSize()
{
return collectionSize;
}
GeneGraph::~GeneGraph... |
7d2fbd4f3250ef407ac3fbc0ce0336cf3764b1da | 11257a3957571720037d0ac4dffb6fa45de3843d | /CodeForces/839-C/839-C-41908231.cpp | a07d491e4991640dc0cde1216bfe7a5ab64f44c3 | [] | no_license | mohaned2014/Competitive-Programming | 88ce66f0bae998eb799bcca5dac3de3d8322d1b5 | 4567fad6507e179bd9c02de1430cea6f3c664bd3 | refs/heads/master | 2020-03-18T05:06:34.601659 | 2019-04-28T20:20:10 | 2019-04-28T20:20:10 | 134,324,880 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,108 | cpp | 839-C-41908231.cpp | #include <iostream>
#include<vector>
#include<bits/stdc++.h>
#define ll long long
using namespace std;
vector<int> visted;
vector <vector<int>> dfs;
//stack<int>sorted;
double DFS(int node, int depth = 0, int parent = -1) {
if (visted[node])
return 0;
visted[node] = 1;
double counter = 0;
dou... |
69d069e245b0829769def76710366df4bf16c34a | ed806fa78149f3a961f0d49549ffe0d24f289375 | /Project10-Worker/WorkerMI.h | 650c3fb2b8d29539d3d28f9b03126654a7d8118d | [] | no_license | shadowMy/practice-cpp | 6986194d7a0c1055e05d44f1a9fd94e0cdcd565b | b7c04b2091c155853c5c98f54ba1c707adff2bc0 | refs/heads/master | 2023-01-22T20:24:31.441644 | 2023-01-18T15:42:05 | 2023-01-18T15:42:05 | 243,026,948 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,134 | h | WorkerMI.h | #pragma once
#ifndef WORKER0_H_
#define WORKER0_H_
#include<string>
class Worker //一个抽象基类an abstract base class
{
private:
std::string fullname;
long id;
protected:
virtual void Data() const; //模块化组合
virtual void Get(); //防止set取得两次worker的信息
public:
Worker() : fullname("no one"), id(0L) { }
Worker(const std::... |
d3aa7a755174d6f3c4c996e9d7064fe1ed75d190 | 3af8ca9c670a2fc045899d12905c3ea29166e834 | /Bank.cc | 82e36f83a743c0a2ce904fea73c3feb21d9c6777 | [] | no_license | duanqn/CS343A6 | 5f9a2b04f33fd82bb3d83523964be04714363767 | d85eb91a3784371b4d13630916070cecbff58fe2 | refs/heads/master | 2021-03-24T12:41:30.667427 | 2017-12-05T04:01:00 | 2017-12-05T04:01:00 | 111,871,764 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,025 | cc | Bank.cc | #include "Bank.h"
Bank::Bank( unsigned int numStudents )
: numStudents( numStudents )
{
accountBalances = new unsigned int[numStudents];
for ( unsigned int i = 0; i < numStudents; i += 1 ) {
accountBalances[i] = 0;
}
withdrawBenchs = new uCondition*[numStudents];
for ( unsigned int i = 0; i < numS... |
c1ca61bad407c998117fd78f77b16f49d367d9e1 | 276353b28b188d44ad00fbe330e37912862995a6 | /src/comm/verbs.cc | 823acd2b8b4b26caceb99deb40e16a6b74772048 | [] | no_license | septicmk/RING | 4b72c02941f8e1280df5526e8b35e8b9b0c7126a | fcb8e9f2d55caeaa4b1ae35ac788a48c4e323ffc | refs/heads/master | 2020-12-03T02:26:15.996846 | 2017-07-01T03:04:19 | 2017-07-01T03:04:19 | 95,938,414 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25,149 | cc | verbs.cc | /* verbs.cc
*
* Copyright (c) 2016 Institute of Computing Technology.
* All rights reserved.
*
* Author: Ke Meng <mengke@ncic.ac.cn>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistribution... |
eeb9d435b71509fafadb2d0f36b030e7af59ce76 | d9a411bd5e218ee779c0377917f1df9d9e116ef2 | /Static/Example2.cpp | 8cfad41e489a1d88752c8a2cd5ea8ace2cf822a8 | [] | no_license | hshachor/CPP-Lab | dbe6435ecfe58ccb9f12c1efcd1b7a79ed0edbe8 | 464884664e2b36177eda15fa95820bd9112405dc | refs/heads/master | 2023-02-02T14:57:57.061120 | 2020-12-23T00:01:33 | 2020-12-23T00:01:33 | 320,932,787 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,057 | cpp | Example2.cpp | #include <iostream>
#include <cstring>
using namespace std;
class Student
{
private:
char name[20];
int grade;
static int numOfStudents;
static int numOfFails;
public:
Student(char* n);
void setGrade(int g);
void percentageOfFailers();
};
int Student::numOfStudents = 0;
int Student::numOf... |
33dcf7c35ac477cd80abb1d253427ca7b8f05b65 | db298922f6956e1539fa02f5d59d6597755a1df3 | /alienshoot/image.cpp | 29ca3a4e7ebdbd6dea6d67ae86d69f90bd2fc8a5 | [] | no_license | ewu-prettymanc/AlienShoot | 38e2080f51b76b7b59213b3cf9a01d939d7a85c2 | b898b5895e82d44ee20c8d70de93935f008e1175 | refs/heads/master | 2021-01-01T20:48:10.181453 | 2014-10-28T23:29:52 | 2014-10-28T23:29:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,760 | cpp | image.cpp | #include"image.h"
// name: constructor
// desc: opens an image from a given file
// params: char * filename
// return: n/a
// 1) call image load
// 2) check for success
// 3) set up the src and dest rectangles
image::image(char * filename)
{
_img = IMG_Load(filename);
//cerr<<"calling image constructor."... |
8d54c073f5c01ffa0b5183b6d77bc78f848f3acd | a173bce5da38c6cb202631780e715087394fddbb | /ch6/6-3/hello-sdl.cc | 87d8ecde85b9bac4d3703fbfa0bc0b7b36cc3ac5 | [] | no_license | chai2010/wasm-book-code | 1d9293f0ae26db4da7722527f44ee4f7279c5100 | 7d3e4a23d5e958870d0c15177aabad67fde52f8d | refs/heads/master | 2023-08-17T08:38:52.017164 | 2023-06-26T17:47:20 | 2023-06-26T17:47:20 | 172,828,644 | 56 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 550 | cc | hello-sdl.cc | #include <SDL.h>
#include <emscripten.h>
SDL_Surface* screen = NULL;
void do_web_frame() {
SDL_Event event;
while(SDL_PollEvent(&event)) {
switch(event.type) {
case SDL_QUIT:
break;
case SDL_MOUSEMOTION:
printf("mouse(x, y): (%d, %d)\n", event.button.x, event.button.y);
fflush(stdout);
break;
}... |
557e6273ffeb21d070e4dfdc1c4bf40ba6f16d8d | e17ef2ee8bff85491ada58822dde79b2ec86414d | /src/Core/Transition.cpp | abfbf1961b0a8630882fe25da3382cc93b996e2e | [] | no_license | ByteDecoder/jelly-goblin-factory | b656e6fe3b5d7474fdc4d0a722a073251285c28b | e4a9b872ac32a9e160082a940d01dff8ca4cba9a | refs/heads/master | 2022-01-16T18:00:58.690316 | 2019-01-22T13:35:10 | 2019-01-22T13:35:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,580 | cpp | Transition.cpp | // Transition
// (c) 2019 Jani Nykänen
#include "Transition.hpp"
#include <cstdlib>
// Constants
static const float MAX_TIME = 60.0f;
// Constructor
Transition::Transition() {
timer = 0;
speed = 0;
col = Color(0, 0, 0);
mode = FadeOut;
active = false;
cb = NULL;
}
// Update
void Transiti... |
e9e8a108e0ca3a3c3c13c1f6367ce162886ba81f | 0363b26f92866d9fddfece366e79d91a68a1a21a | /speed_and_dir_control_stepper_motor.ino | 5d5472a184786b78c935a3d18e58b8f37cd26b38 | [] | no_license | Hrishikesh97/Automated-Embedded-System-calculating-Axial-Ration-of-Antenna | 698ee2c7b7db07a28d9e0f5bea97f773af588c4c | 4494e53b6fc1c17d1ee27df33e3c0926cc8773ac | refs/heads/master | 2020-07-10T15:06:04.966466 | 2019-08-29T12:05:16 | 2019-08-29T12:05:16 | 204,293,351 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,310 | ino | speed_and_dir_control_stepper_motor.ino | //char buffer[3];
int w=0;
int f=0;
float a=0;
float d=0;
int r=1;
char inChar;
String inputString = "";// a string to hold incoming data
String inputString1 = "";
boolean stringComplete = false; // whether the string is complete
const int PUL = 5; //Initializing 5th digital pin as ENABLE
const int DIR = ... |
4f395f9a9c6dcfaa9d1e2c4cf862c5f47f3d9dce | 372ad9c2f0db8709f5b7074acf601874e32266b6 | /Tests/ProfileTest.cpp | 9361f7f557b45ff0b9677d9f2b5e670ee58fa45a | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | Likes123/omniscidb | f69894656e8ae9e7b724e06d84a5fa28f097958c | 1e4904c0622bcef67dbe7a95ef9cb64f9d505d80 | refs/heads/master | 2020-08-31T14:21:26.728671 | 2019-10-29T05:56:57 | 2019-10-30T17:12:55 | 218,709,632 | 1 | 0 | Apache-2.0 | 2019-10-31T07:34:52 | 2019-10-31T07:34:51 | null | UTF-8 | C++ | false | false | 70,086 | cpp | ProfileTest.cpp | /*
* Copyright 2017 MapD Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
4ea1cc37558bb7f5abaf5ce9db30d7acdb629288 | 5a52ebe89a4cc08154ac6c37ad8eaa980ca205be | /lambda/lambda_body.cpp | aee673b396f4d901414201c0cc4d9d851176b09d | [] | no_license | seeman1978/c__20 | 1bdd358481712bc979ba5f8799eff542146f2c59 | 14023f0d7029733c440f53cfa044ef680677bc23 | refs/heads/master | 2022-10-30T21:20:52.444068 | 2022-10-13T11:52:06 | 2022-10-13T11:52:06 | 242,280,930 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | cpp | lambda_body.cpp | //
// Created by wq on 2021/5/4.
//
#include <iostream>
int main()
{
int m = 0;
int n = 0;
[&, n] (int a) mutable { m = ++n + a; }(4);
std::cout << m << std::endl << n << std::endl;
std::cout << [=]{int i=6; return m + n + i;}() << '\n';
static int nextValue = 1;
std::cout << [] { return... |
5e3e230139e9b1cb06ddd65bcab9406da656c1c2 | 055faae4b8706ac25e975efae20c289f6dde4138 | /ar_Preprocessing/ar_04_ifdef.cpp | 747a0a991355f61e4f1b7c9c8909551467c830ef | [] | no_license | wildenali/CplusplusBasic | 84165b451aafbc392d02d5d1543e928107af5c24 | 6eb03696e57c37f34959d3565df5eae9c5f9555c | refs/heads/master | 2020-03-25T10:57:38.528333 | 2020-01-02T14:33:49 | 2020-01-02T14:33:49 | 143,712,917 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 390 | cpp | ar_04_ifdef.cpp | #include <iostream>
#define CILOK
/*
#ifdef
dibaca jika ada definisi nya
*/
#ifdef CILOK // jika definisi CILOK ada
#define TEST_CILOK "Cilok ada nih"
#else // jika tidak ada definisi CILOK
#define TEST_CILOK "Cilok tidak ada"
#endif
using namesp... |
03e9af0cb56b7e6b4bd2e85f75135f737cef4ddc | 67a1c354290269bf41306891bcd333d8d521c742 | /40_DynamicProgramming/DynamicProgramming.hpp | c7a8b163adfdff928bb2a868cea8b18d44ee6464 | [] | no_license | lyandut/BeautyOfDataStructureAndAlgorithm | 83573fca98509ae00119c213e8cbbd740b80fe76 | 43e2569ce6347a38eec404ccfbe94d2af899b748 | refs/heads/master | 2021-06-19T01:22:15.707241 | 2021-03-23T08:20:39 | 2021-03-23T08:20:39 | 196,570,470 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,558 | hpp | DynamicProgramming.hpp | //
// Created by 李研 on 2020/1/12.
//
#ifndef BEAUTYOFDATASTRUCTUREANDALGORITHM_DYNAMICPROGRAMMING_HPP
#define BEAUTYOFDATASTRUCTUREANDALGORITHM_DYNAMICPROGRAMMING_HPP
#include <vector>
using std::vector;
class DynamicProgramming2 {
public:
/*
* 1. 0-1背包问题:求背包中可装入物品总重量的最大值
* weight:物品重量,n:物品个数,w:背包可承载重... |
5e3a39a96ab56a0cdeb302bde4a69e788fcedc93 | c3ffa07567d3d29a7439e33a6885a5544e896644 | /HSNU-OJ/255(chouyi).cpp | 33ad24e1ed62982366e33a171ad61df60855141b | [] | no_license | a00012025/Online_Judge_Code | 398c90c046f402218bd14867a06ae301c0c67687 | 7084865a7050fc09ffb0e734f77996172a93d3ce | refs/heads/master | 2018-01-08T11:33:26.352408 | 2015-10-10T23:20:35 | 2015-10-10T23:20:35 | 44,031,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,210 | cpp | 255(chouyi).cpp | #include<bits/stdc++.h>
#define f first
#define s second
using namespace std;
int ar[1100005];
vector<int>ram[2200005];
typedef pair<int,int> par;
bool tmp[1100005];
vector<par> ans;
int main(){
int m;
scanf("%d",&m);
int l=0;
for(int i=0;i<m;i++)
scanf("%d",&ar[i]);
for(int i... |
b397ff20bf36ccc09777c42f5fe8a0aeb0b6db99 | 8f1349a0afd2c7be7ebb691b6250c5f8a026dc4c | /Algorithm/Free/Bitmask/1094.cpp | dd0f2d10eab6a2c2501ce4e3bb590cb0f625b9f9 | [] | no_license | gkagm2/ProblemSolving | 240ac2423642cc3c8cfca0314a514647142ad70d | 71921e649363238154359a1cbdbba1c40723a37b | refs/heads/master | 2023-08-25T08:37:57.946339 | 2023-08-14T12:13:27 | 2023-08-14T12:13:27 | 233,554,320 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 232 | cpp | 1094.cpp | #include <iostream>
using namespace std;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
short cnt = 0;
int x;
cin >> x;
while(x) {
cnt += x & 1; // x % 2
x = x >> 1; // x / 2
}
cout << cnt;
return 0;
} |
aff71464439b97326b27d413bee47e0565a06169 | 39028070ff3b61fb28d0d2bd88cfa01e8b861cf8 | /code/flist_messenger/flist_api.h | de8a2ab52531c739fc9f463bef64544da4fdbfe3 | [] | no_license | kythyria/flist-messenger | 8e750ba7b1f331e92656a231348ab29dd59fa34c | ac9fd1fc938771fd41b75c44563ed21567458e4c | refs/heads/master | 2021-01-16T21:08:56.815279 | 2018-05-08T02:30:03 | 2018-05-08T02:30:03 | 20,154,945 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,170 | h | flist_api.h | #ifndef FLIST_API_H
#define FLIST_API_H
#include <QObject>
#include <QFlags>
#include <QHash>
#include <QNetworkAccessManager>
#include <QSslError>
#include <QNetworkReply>
#include <QUrl>
#include "api/data.h"
namespace FHttpApi
{
class BaseRequest : public QObject
{
Q_OBJECT
public:
BaseRequest(QNetworkRe... |
f3bf6c53653a8fb7823e0a891100fd01f9b12e3b | 40842166572b79c8b448ca9ba9a6276ab02a27cc | /Unix/tavling2002/4/fuk.cc | dc7bd9a1113c28812b962b4bf0a6084cdd44ce95 | [
"BSD-3-Clause"
] | permissive | calmh/pre-git | 8fc775c9d569724c413a0b4291e9f138d2509bae | 4941fad3e5e38802cf96acfec9bfae8aebe7bc09 | refs/heads/master | 2021-03-22T04:26:13.529348 | 2009-12-21T07:59:14 | 2009-12-21T07:59:14 | 65,546,686 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,567 | cc | fuk.cc | #include <iostream>
#include <vector>
#include <math.h>
int nbr_beep;
static int *visited = new int[11];
class Node
{
int x;
int y;
int sum_dist;
public:
vector<int> dist;
Node(int x, int y);
void calc_dist();
int get_x();
int get_y();
};
vector<Node> node_list;
Node::Node(int tx, int ty)
{
x = tx;
y = ty... |
ef7305f5576cbdbc30e9091ec02de0c0a21c0fe8 | 3ce84c6401e12cf955a04e3692ce98dc15fa55da | /core/boosting/cascadeClassifier.cpp | 243e7ccc13fa87966dfdc92f78ea3403455692e5 | [] | no_license | PimenovAlexander/corecvs | b3470cac2c1853d3237daafc46769c15223020c9 | 67a92793aa819e6931f0c46e8e9167cf6f322244 | refs/heads/master_cmake | 2021-10-09T10:12:37.980459 | 2021-09-28T23:19:31 | 2021-09-28T23:19:31 | 13,349,418 | 15 | 68 | null | 2021-08-24T18:38:04 | 2013-10-05T17:35:48 | C++ | UTF-8 | C++ | false | false | 389 | cpp | cascadeClassifier.cpp | /**
* \file cascadeClassifier.cpp
* \brief This file should hold implentation for cascade classifier
*
* \ingroup cppcorefiles
* \date Jun 24, 2010
* \author alexander
*/
#include "core/utils/global.h"
#include "core/boosting/cascadeClassifier.h"
namespace corecvs {
CascadeClassifier::CascadeClassifier()
{
}
... |
5834d41d4efb1f1649e258efb24d26537d6a31c4 | 2d0bada349646b801a69c542407279cc7bc25013 | /src/vai_runtime/vart/util/include/vitis/ai/shared_queue.hpp | 119c1f09975e524a43e5ae8dd8ac2d67afb1258a | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-free-unknown",
"Libtool-exception",
"GCC-exception-3.1",
"LicenseRef-scancode-mit-old-style",
"OFL-1.1",
"JSON",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"ICU",
"LicenseRef-scancode-... | permissive | Xilinx/Vitis-AI | 31e664f7adff0958bb7d149883ab9c231efb3541 | f74ddc6ed086ba949b791626638717e21505dba2 | refs/heads/master | 2023-08-31T02:44:51.029166 | 2023-07-27T06:50:28 | 2023-07-27T06:50:28 | 215,649,623 | 1,283 | 683 | Apache-2.0 | 2023-08-17T09:24:55 | 2019-10-16T21:41:54 | Python | UTF-8 | C++ | false | false | 4,749 | hpp | shared_queue.hpp | /*
* Copyright 2022-2023 Advanced Micro Devices Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
7993aeb584c26df2b042113a92f5620374536bb6 | 922914e89dce9f177fff6b3ec74b226da1d9016c | /adapter/translator.cc | 9f73e5f7ded754b1f1b6e8acad8175e67340aa46 | [] | no_license | liuhatry/design_patterns | 7db78a3154c974130ab5e7a9e414af8b6aec9568 | f0c9ad97b64851e0d99e434cf2c1fead61038020 | refs/heads/master | 2020-03-19T23:36:00.824686 | 2019-09-30T13:13:23 | 2019-09-30T13:13:23 | 137,011,607 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 239 | cc | translator.cc | #include "translator.hh"
translator::translator(string name):player(name){
fc = new foreignCenter(name);
}
translator::~translator(){
delete fc;
}
void translator::attack(){
fc->attack();
}
void translator::defense(){
fc->defense();
}
|
627936c261e94835776e19171fdff5ba0bcaa048 | 64dccd45009486beb7c7f9595bfaa16f9442dc05 | /BaseLib/base_switches.h | 3186b480193a64a42021790967fba86e6bd53886 | [] | no_license | xjyu007/BaseLib | cbb2d1baa32012a0bce1a33579336b8f93e722f2 | 46985fd2551f9e16619f361559c5a8c3a08c6ec5 | refs/heads/master | 2020-07-16T10:27:18.854060 | 2019-10-18T08:25:25 | 2019-10-18T08:25:25 | 205,770,219 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,207 | h | base_switches.h | #pragma once
// Copyright (c) 2012 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.
// Defines all the "base" command-line switches.
namespace switches {
extern const char kDisableBestEffortTasks[];
extern const char ... |
e896d9c58c2e790c717cec181627037fe8f045c7 | 312db7d82f1c0123799e797807c0813437cc695b | /Programmers/L1/L1_평균 구하기.cpp | 050d591bf901f1ea6e56bc406e4ce949563ce1a0 | [
"MIT"
] | permissive | Luxusio/Coding-Test | d9711765f956b4a59cf13eb9c568a84f326598b7 | 1cf3cf49c71ab66f140701fb3fc0548b2a2ebca4 | refs/heads/master | 2023-07-21T22:34:56.100172 | 2021-09-08T09:33:58 | 2021-09-08T09:33:58 | 355,099,560 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 211 | cpp | L1_평균 구하기.cpp | //// 2021.04.05 08:09
//#include <vector>
//
//using namespace std;
//
//double solution(vector<int> arr) {
// double answer = 0;
// for (int num : arr) answer += num;
// return answer / (double) arr.size();
//} |
edb82528ca6e4a35bc0315859e165e839b0e4ea3 | 82815230eeaf24d53f38f2a3f144dd8e8d4bc6b5 | /Airfoil/wingMotion/wingMotion2D_pimpleFoam/2.14/omega | a5d5da2a97fa5151336a5df08ec7361a1b0a6e32 | [
"MIT"
] | permissive | ishantja/KUHPC | 6355c61bf348974a7b81b4c6bf8ce56ac49ce111 | 74967d1b7e6c84fdadffafd1f7333bf533e7f387 | refs/heads/main | 2023-01-21T21:57:02.402186 | 2020-11-19T13:10:42 | 2020-11-19T13:10:42 | 312,429,902 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 156,065 | omega | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
... | |
4575198936ac52bc604769b2f2534d35cb26f3b7 | b9d0db86458b8022533685f677a74ac9927d9525 | /Strategy.cpp | 9f1793161cc1f42562e8fc0217c38a0c78054b1d | [] | no_license | JishnuM/RobotSoccer | 0d0afb5609643475a1d85ee9bfbeac109e66ca7b | 10ddb0888ec237edecede3bed9ed6061b78db8d1 | refs/heads/master | 2020-06-02T08:34:19.043665 | 2013-05-13T11:11:44 | 2013-05-13T11:11:44 | 7,699,783 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,621 | cpp | Strategy.cpp | // Strategy.cpp : Defines the entry point for the DLL application.
//
#include "stdafx.h"
#include "Strategy.h"
#include <math.h>
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
cas... |
c61e420c462aa478364f735ee10ee34cd09e127c | fc838bc7be081ac4448ca3bd575f419afae44515 | /Lab6/Lab6/main.cpp | 89716ede56a259d574bafba9c52f4c6288aeff08 | [] | no_license | feedblackg44/kpilabs | e665287869bf0631527b363df3993d7cc2453b11 | ab7dade056b5cbea0d9be3941517509e328feaf9 | refs/heads/master | 2023-02-12T03:08:13.423979 | 2021-01-12T10:14:15 | 2021-01-12T10:14:15 | 308,298,496 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,997 | cpp | main.cpp | #include <iostream>
#include <cmath>
#include <limits>
#include <locale>
#include <iomanip>
#include <string>
#include <cstring>
#include "feed.h"
#include "functions.h"
using namespace std;
int main()
{
SetDefaults();
LabHeader(6);
cout << "Программа считает cумму определённых интегралов от заданных функ... |
ae3f0a0a86937fa334a439a5b9ecc7e39b05259c | 09368586cc417ab3bfb8d403e40397cd2cc688ce | /FancyHunter v1.1.0.cpp | b426c12cd9da5fc5bdd9a5d4bd87647fc96d8997 | [] | no_license | Wannabtl/FancyHunter | c8e1e7191badea331a3d2000c45a815f41dc4699 | c988a91be2b4f29684bd22a74af4e81603782754 | refs/heads/main | 2023-08-27T11:22:43.923450 | 2021-11-14T09:58:06 | 2021-11-14T09:58:06 | 422,766,944 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 42,312 | cpp | FancyHunter v1.1.0.cpp | /*
* @Author: Wannabtl
* @Date: 2021-10-28 12:08:30
* @LastEditTime: 2021-11-02 13:51:13
* @Description:
*/
#include<ctime>
#include<bits/stdc++.h>
#include<windows.h>
#include<conio.h>
#define prt printf
#define ps(i) Sleep(i*1000)
#define gc _getch()
#define pc putchar
#define fir(n) for(int i=1;i<=n;i++)
usin... |
124e95a74bcd7e824bd1387fb4fc81c0f60aacfe | 62f0861c1329cab15dbe69f1d5ef407562d8efbd | /Chess/Camera.cpp | 2ac730df04ee5ccd7e34275f2d39cb840bc10e8d | [] | no_license | HARhoades/MyProjects | df2c2236fbd5a66d515394f94e8b883d50939dce | c410334d6d00f75dd11918d7a82818575ca17872 | refs/heads/master | 2021-01-19T17:06:06.211280 | 2018-03-12T21:13:30 | 2018-03-12T21:13:30 | 88,303,686 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,658 | cpp | Camera.cpp | #include <cmath>
#include <iostream>
#include "stdio.h"
#include "GL/freeglut.h"
#include "Helpers.h"
#include "Camera.h"
#include "math.h"
using namespace std;
Camera::Camera(){
this->moveCameraTo(Vec3d(0.0, 10.0, 20.0));
this->cameraLookAt(Vec3d(0.0, 0.0, 0.0));
this->setFOV(90.0);
this->setClip(0.... |
c84b5f02032026d603ed9d0d053e464cf8219558 | 25007feb5ddc87fe232aff2428fd04f1ca1649db | /test/All.cpp | 27355d38c4b89a16309df4c2ec1ca5a8b67ad2df | [] | no_license | ofix/sniper | 76f2ae0af262d3edb862d2d521e5ef699e865180 | 946a853c5f3c450aff9a6e49da767ad423a0ad9e | refs/heads/master | 2021-10-26T17:34:35.308174 | 2021-10-25T14:46:07 | 2021-10-25T14:46:07 | 202,832,835 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,758 | cpp | All.cpp | #include "All.h"
#include "tool/MarkDown.h"
#include "util/Helper.h"
#include <iomanip>
#include "util/Macro.h"
#include "tool/Https.h"
void Test::RunAll()
{
#ifdef xx
mark_down();
symmetry_nums();
regex_match();
//
char* str = (char*)"Hello World XXX YYY ZZZ";
ReplaceSpace(&str,strlen(str)... |
41449ec752dc6fd249a25c33206ae5453638fc16 | 77b19e3e6f3f3688dc0cd560c59cb6d16479d5b3 | /Kewlmation.h | 5ad7db53e73d0edce04ccfca5f62195a27286f2e | [] | no_license | nhoudelot/1finger-by-kewlers | d944ad1d48e27c320abb847be2b70941cf974f12 | 2777f930192b508ca7144d948c5e8842d2301ce2 | refs/heads/master | 2020-03-07T23:14:25.607122 | 2018-04-02T15:36:06 | 2018-04-02T15:36:06 | 127,775,942 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 588 | h | Kewlmation.h | #ifndef KEWLMATION_H
#define KEWLMATION_H
#include <string>
#include "rubber1.0/Rubber.h"
#include "rubber1.0/Datafile.h"
using std::string;
using namespace RubberSpace;
typedef unsigned short uint16;
class Kewlmation
{
public:
Kewlmation(const string filename);
~Kewlmation();
void renderFrame(float pos, float r... |
384c241489a04102c9b9607478eff026b9186881 | b5557b07a4c7b946bba61a597c3f108d4e18df3f | /dp130interval/milkingdfs.cpp | af5ec36400573612bdee552b49fb9c9d9115fd5d | [] | no_license | ZeroNerodaHero/USACO-Training-Gateway | 831d8711f09eab09ce325d0f4b4beab5e091b94c | 2c6bbe9cc4a90ebcda06bcb8b8c61ea8a0664188 | refs/heads/master | 2022-04-09T19:06:46.239649 | 2020-02-17T03:10:33 | 2020-02-17T03:10:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 897 | cpp | milkingdfs.cpp | /*
ID: billyz43
PROG: milking
LANG: C++11
*/
#include <iostream>
#include <fstream>
#include <algorithm>
#include <vector>
#include <cstring>
#include <unordered_map>
#include <iomanip>
#include <cmath>
#include <climits>
#define INF 0x3f3f3f3f
std::ifstream in("milking.in");
std::ofstream out("milking.out");
using nam... |
9f0357ebdbf5133a98eed7832b61d714d590b4e4 | ca46d2a1c729309bff01ef1d3cb83a7b63f60ae2 | /Geometry/Geometry_Library.cpp | 1f69884de161c0c6e73cb22ed644123e86445167 | [] | no_license | redwanulsourav/My-Code-Library | b4c6dc15dd57ddc44e3a5f3e852a0181842d9678 | 06b379f37e1ee566b7bcb4b7f54cdef02adff165 | refs/heads/master | 2021-08-29T17:35:20.529110 | 2017-12-14T13:36:28 | 2017-12-14T13:36:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,848 | cpp | Geometry_Library.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long int lli;
const double eps = 1e-9;
int dblcmp(double d){
if(fabs(d) < eps) return 0;
return (d > eps) ? 1 : -1;
}
struct point{
double x,y;
point(double _x = 0, double _y = 0){
x = _x;
y = _y;
}
void input(){
... |
82a36ae88007368b0f2de8b9fdd6a04ef1372c91 | c2907b3563f31d0574ccb9bb209546d527029ff3 | /tests/svmlight_reader_test.cc | 1437dd67013ea994c38f0ec8c01ce4b4f3061ef9 | [
"MIT"
] | permissive | y-tag/cpp-ToyBox-OnlineClassifier | 22ad75768c97c8ff89b009692ee5035f41a50821 | 982189f0874350a06077eadea380a0afaaf37fa7 | refs/heads/master | 2016-09-02T03:01:03.084169 | 2013-04-27T00:23:07 | 2013-04-27T00:23:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,669 | cc | svmlight_reader_test.cc | #include <cfloat>
#include <vector>
#include <cppunit/extensions/HelperMacros.h>
#include "svmlight_reader.h"
namespace toybox {
namespace online {
class SVMLightReaderTest : public CPPUNIT_NS::TestFixture {
CPPUNIT_TEST_SUITE(SVMLightReaderTest);
CPPUNIT_TEST(testOK);
CPPUNIT_TEST(testNG);
CPPUNIT_TEST_SUI... |
86014108a5e257c870f4748900690f2671333bd0 | fdab4f0f411b09444cbc727d7116997a21233de2 | /src/RBGL.hpp | 510adc143b35543740e18336246c21503f30eba4 | [
"BSL-1.0"
] | permissive | Bioconductor/RBGL | 548f9313243faa7e9e3fc433ddb57cb84b62e89b | 9d7bde9cbc9db5651cdd018d26abf9acddfddb04 | refs/heads/devel | 2023-05-28T08:40:00.413700 | 2023-05-15T15:22:58 | 2023-05-15T15:22:58 | 102,150,272 | 1 | 6 | NOASSERTION | 2023-04-13T19:34:29 | 2017-09-01T20:23:47 | C++ | UTF-8 | C++ | false | false | 5,642 | hpp | RBGL.hpp | /* RBGL2.h -- R interface to Boost Graph Library header */
/* assumes -IboostIncl for RBGL/src */
#ifndef RBGL_RBGL_H
#define RBGL_RBGL_H
#include <iostream>
#include <cstdio>
#include <vector>
#include <iterator>
#include <algorithm>
#include <time.h>
#include <csignal>
#include <boost/config.hpp>
#include <boost/u... |
471cefbab56e25b9949fcc9cf4af81247c257df9 | a119edd785b152cda3aaee2128d1b9fd5f65fdd4 | /exam_2019_july/PCGameShop.cpp | f8e5e1fd07c520944f0466725b7e483859ce3fab | [] | no_license | m-d-asenov/SoftUni-Programming-Basics-with-Java-and-CPP | 9460c00ab0ed713c8a8930ff1fd70a663cb92054 | cdfd5417d6b808bfefe8e03872670d53f6543ed2 | refs/heads/master | 2022-11-28T01:44:03.358826 | 2020-07-21T20:24:30 | 2020-07-21T20:24:30 | 276,233,442 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 791 | cpp | PCGameShop.cpp | #include <iostream>
using namespace std;
int main()
{
double sales;
cin >> sales;
cin.ignore();
int hearthstone = 0;
int fornite = 0;
int overwatch = 0;
int others = 0;
for(int i = 0; i < sales; i++){
string game;
getline(cin,game);
if(game == "Hearthstone"){
hearthston... |
6feadfe9490917b6c377259fa2e0a72306096f47 | f0c54bcfca839c2424bacf09e02e4dc7e07b5637 | /Prime Number of Set Bits.cpp | 62f7edace2b484c3e9f700160829a41e5517bb6d | [] | no_license | Utkarsh9799/LeetCode-Solutions | fd7855db5a1db4e7ac73ced015ee299e6b5936a2 | 7a265d8023754d0a574cbbe603b04f84b7f832ad | refs/heads/master | 2023-01-24T19:39:12.401139 | 2020-12-01T12:21:57 | 2020-12-01T12:21:57 | 274,454,285 | 0 | 1 | null | 2020-10-30T18:42:48 | 2020-06-23T16:22:31 | C++ | UTF-8 | C++ | false | false | 587 | cpp | Prime Number of Set Bits.cpp | class Solution {
public:
int setBits(int n)
{
int ctr = 0;
while(n > 0)
{
n &= (n - 1);
ctr++;
}
return ctr;
}
int isPrime(int n)
{
if (n <= 1)
return 0;
for (int i = 2; i < n; i++)
... |
01ba19cc59d39901f11016a8f6796d53c2a2d986 | 0e5a3baca3337f6551d689bd1bd27a24ad6f79ca | /Meduza/Include/Utils/Timer.h | e3d3b78c31dff520f12264def0e3edf949644f6e | [
"MIT"
] | permissive | oTreasureo47/Meduza | f3dfd6c6b6fc0b64076b7abdd05f91b834a2fd3a | 8b52434f1113aa9137d511f1a6dbc3ddb6ac17b4 | refs/heads/master | 2023-08-24T23:26:23.670930 | 2021-10-24T21:17:24 | 2021-10-24T21:17:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,397 | h | Timer.h | #pragma once
// ======= Copied code from Tim van den Bosch
#include <chrono>
namespace Me
{
template<typename T = float, typename = typename std::enable_if<
std::is_same<float, T>::value ||
std::is_same<double, T>::value ||
std::is_same<int, T>::value,
T>::type>
class Timer
{
public:
using Clock = std::... |
1ac2126dbacdc77a777cef1c5d5cd6dbdb53ebdd | 396db112f48eb9f2d59e85c12f9954e65501833e | /Classes/Common/OBB.h | ae3fcb3d0719882e66defebdbb11a1b5958a229c | [] | no_license | githubMayajie/ldzj | 231ae3153e98bb48be45e4fe1b3fc957a0ab61b7 | 7c8a8483a96ef0599bfaf41b87a84fc408997956 | refs/heads/master | 2021-01-23T05:09:08.985429 | 2017-05-31T14:38:59 | 2017-05-31T14:38:59 | 92,954,918 | 0 | 1 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,055 | h | OBB.h | //------------------------------------------------------------------------------
// declaration : Copyright (c), by XJ , 2014 . All right reserved .
// brief : This file will define the OBB(Oriented bounding box)
// author : XJ
// date : 2014 / 6 / 16
// version : 1.0
//--------------------------------------... |
aa2c0d8fb7cb6c1ab4cf7d2597c8176c975f0ad5 | 3be25e753a93dba1573909a8c20ae684de5e4031 | /source/src/protocol.cpp | d2fd3ca5b41fa460aec8c04ecab7bf2ee33ccca9 | [
"BSD-3-Clause",
"Cube",
"Zlib"
] | permissive | jackdalton/AC | c7e4802f39fec1ccae799489d73a4d7193d99747 | 063eb8d81c745a606c945e898325172de6ab5ec2 | refs/heads/master | 2021-01-11T06:29:03.845956 | 2016-03-26T22:44:29 | 2016-03-26T22:44:29 | 54,790,772 | 2 | 0 | null | 2016-03-26T17:29:06 | 2016-03-26T17:29:05 | null | UTF-8 | C++ | false | false | 12,517 | cpp | protocol.cpp | // misc useful functions used by the server
#include "cube.h"
#ifdef _DEBUG
bool protocoldbg = false;
void protocoldebug(bool enable) { protocoldbg = enable; }
#define DEBUGCOND (protocoldbg)
#endif
// all network traffic is in 32bit ints, which are then compressed using the following simple scheme (assumes that mos... |
39e228e643205ac89c82612f1d8344467fe414b5 | 1809e2cb84798d38d731f4ae52e7fb0bfe9251ec | /include/Rt/v3.h | f993e7226a9a3dfe252dfbfb58c61cc885110936 | [] | no_license | fictorial/old-raytracer-cpp | 6d2efcc28eaca87953becefee63f7ca1ab02eb81 | 51392a74106553797290d617d4b76eb3028de0b9 | refs/heads/master | 2020-08-01T20:05:16.800501 | 2019-09-26T14:05:08 | 2019-09-26T14:05:08 | 211,100,784 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,229 | h | v3.h | #ifndef INCLUDED_RT_V3_H
#define INCLUDED_RT_V3_H
//-----------------------------------------------------------------------------
// File: v3.h
// Repository: $Source$
// Created: Thu Sep 11 02:55:15 2003
// Last Change: Tue Sep 30 03:00 PM 2003 E
// Checked-In: $Date$
// Author: bhammond
// Maintain... |
8db4eb313861066c3f0673fcc915dfeae3069c6e | e8eb6153f9e9d8b7625628226ceb7e4ab4da7746 | /SmallFighter.h | b06f76c0df8a9c41f8a22c6b0f1863149d9b0cf5 | [] | no_license | Waclaw-I/SebaCraft-Client | c3e4661ef6c5d1a27ce3a8413cf88b69871504da | c568d577670a5f1e7afdab7ac15df3432e335659 | refs/heads/master | 2016-08-12T09:50:08.028992 | 2016-05-08T20:47:13 | 2016-05-08T20:47:13 | 54,504,412 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 320 | h | SmallFighter.h | #pragma once
#include "SpaceShip.h"
#include "MachineGun.h"
class SmallFighter : public SpaceShip
{
public:
void updateTurrets() override;
void setTurretsCooldown(double leftTurret, double rightTurret);
void shoot() override;
SmallFighter();
private:
MachineGun leftMachineGun;
MachineGun rightMachineGun;
}; |
726fa050b15b3ce4a9c237f54343c4cc207e6378 | c85e2eb549dc2f3d777631fc2e3f6de946f61656 | /boost/asio_time_server_coroutine.cpp | d10e8c447c004626440b78f54820c03deb9650fe | [
"MIT"
] | permissive | uwydoc/the-practices | 3bf5a8c85d35c708ab504166ab199b286cadeba7 | 61ea1d868017ac88fddf6c0e726f0e9adde3f80e | refs/heads/master | 2021-01-13T01:41:31.482395 | 2015-09-09T08:18:51 | 2015-09-09T08:18:51 | 33,257,617 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,059 | cpp | asio_time_server_coroutine.cpp | // asio_time_server_coroutine.cpp
//
#include <ctime>
#include <iostream>
#include <boost/asio/io_service.hpp>
#include <boost/asio/write.hpp>
#include <boost/asio/buffer.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/spawn.hpp>
#include <boost/container/list.hpp>
#include <boost/bind.hpp>
#include <boost/... |
fd1b776868435ebb46767a9a300b2e75cbb60c20 | 8f61a111094997243a143f25365996a353a28235 | /test/homework_test/tic_tac_toe_test/tic_tac_toe_test.cpp | 0fbef98412e0816c92db01e318a5fbf09bdf4019 | [
"MIT"
] | permissive | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-AntNatx | 984f8970abd1a986df19252acc2d7005c8f07ec9 | 1c581b554ba56ad19273cf2ea924cbdb4e7f131a | refs/heads/master | 2023-04-27T13:32:59.871564 | 2021-05-06T23:42:47 | 2021-05-06T23:42:47 | 333,601,756 | 0 | 0 | MIT | 2021-01-28T00:45:24 | 2021-01-28T00:45:13 | C++ | UTF-8 | C++ | false | false | 13,161 | cpp | tic_tac_toe_test.cpp | #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
#include "tic_tac_toe.h"
#include "tic_tac_toe_manager.h"
#include "tic_tac_toe_4.h"
#include "tic_tac_toe_3.h"
TEST_CASE("Verify Test Configuration", "verification") {
REQUIRE(true == true);
}
TEST... |
5347797d36a289992ced62fce6b6998d8689e059 | 9be935cc446e064b2f8bcf436727d2944f6c8a1c | /sources/figures/BlackPawn.cpp | 7adf4af59f7fc1e26afe031769c21c8beaabae7b | [] | no_license | Pikassik/patterns-practice | b2f522a333943f61af98b31308c07a562cfaa612 | 5242e516e8106f1e1c2a8453e16c309d46a0d142 | refs/heads/master | 2020-05-03T05:44:04.873313 | 2019-05-20T23:05:31 | 2019-05-20T23:05:31 | 178,455,690 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 472 | cpp | BlackPawn.cpp | #include <headers/black-figures/BlackPawn.h>
const std::vector<std::pair<int, int>>& BlackPawn::GetPossibleMoves() {
return possible_moves_;
}
const std::vector<std::pair<int, int>>& BlackPawn::GetPossibleDamaged() {
return possible_damaged_;
}
const std::vector<std::pair<int, int>> BlackPawn::possible_moves_ =
... |
9e3362c875830e73a4c81d0daa39ddf00c2b4bb3 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5765824346324992_0/C++/niconiconi/B.cpp | 52d1ddc3ef7f583b9602523ac613f65a7a92dae0 | [] | 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 | 808 | cpp | B.cpp | #include <cstdio>
#include <cstring>
#include <algorithm>
int M[1100];
int main()
{
int T;
scanf("%d", &T);
for(int cas = 1; cas <= T; ++cas)
{
int b, n;
scanf("%d%d", &b, &n);
for(int i = 1; i <= b; ++i)
scanf("%d", M + i);
long long l = 0, r = 1LL << 60;
while(l <= r)
{
long long mid = (l + r)... |
d7b61e7f8bbe4fc9ab222b3a58c4210eba1f97d1 | 007759b14d17cecf8332d0653d31a2adb51dde4f | /Reconstruction/class5-image-stiching/src/PaxHeader/stitching_detailed (另一个复件).cxx | d91240cab0611d856ce2fda5a10d868f7e9fb686 | [
"MIT"
] | permissive | MrCocoaCat/slambook_cc | 8e2270267720091cd572b81d12d27a1fe5f28314 | 1eb2c3b081c6f668f342ae8d3fa536748bedc77d | refs/heads/master | 2021-09-10T13:00:24.621364 | 2018-03-26T14:03:12 | 2018-03-26T14:03:12 | 90,761,569 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 107 | cxx | stitching_detailed (另一个复件).cxx | 53 path=src/stitching_detailed (另一个复件).cxx
27 mtime=1511451826.180551
27 atime=1511502791.001786
|
6b2430f488ed4a9bfafc9ca06da5f06f072baef0 | fc94af51b5decf8ab631053dc80e0be6b5a35c13 | /5/a/100Pares.cpp | 641851397b407ee94ec3f8e8b63bd538ef3595a1 | [] | no_license | juandiegorb/TallerNo4 | 8581692ac614168166fd5ece466f268520aba04f | f81e1bd9844b3bf1d2640c0455a3a09a479c802a | refs/heads/master | 2020-03-27T02:14:27.259970 | 2018-08-27T21:11:07 | 2018-08-27T21:11:07 | 145,775,955 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 523 | cpp | 100Pares.cpp | /*
*Programa: Generar un arreglo con los 100 primeros numeros pares y muestre su suma
*Fecha: 23 de Agosto del 2018
*Creador: Juan Diego Rios Ballesteros
*/
#include <stdio.h>
using namespace std;
int main(int argc, char *argv[]) {
int numeros[100];
int i = 0, suma = 0, con = 0;
for(i = 1; i <= 200; i++){
if(i... |
0c12f49d00d5f93e849806fc64061805cb779fee | 56ed20390b653e80bf89ebc60a5555ce405c2b88 | /src/ofApp.cpp | 55ded7c3fd1c8e555e2bfb86f22ef94debd56e27 | [] | no_license | camb416/particle-colliders | cf524d1e96c133fe823541ed1a62a25f006e88da | deedb79f4a06b4600702fdd8cb94482c75ea134c | refs/heads/master | 2020-06-03T13:37:44.904926 | 2015-02-20T05:47:23 | 2015-02-20T05:47:23 | 27,413,428 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,423 | cpp | ofApp.cpp | #include "ofApp.h"
int numBoids = 1024;
//--------------------------------------------------------------
void ofApp::setup(){
for(int i=0;i<numBoids;i++){
Boid * b = new Boid();
b->setup();
boids.push_back(b);
}
ofSetBackgroundAuto(false);
ofBackground(255);
}
/... |
94dd05fffcd113a422c415a0388e91df3ace352a | f4bd16c7dcb7672c00e31c78d9216e7f3112fd6d | /16_2710 STACKS QUEUE/Stack.cpp | e86f9436818a21e2a387767fd2f687af026b29e5 | [] | no_license | namangoyal10/Android_handsOn | 1d3528e9b1c0788502ed577fce665ff65a0578e3 | ab628b9408a30420c776d4e3b98fa1aafe60df97 | refs/heads/master | 2020-07-23T06:10:47.298328 | 2019-09-11T17:58:14 | 2019-09-11T17:58:14 | 207,468,454 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 922 | cpp | Stack.cpp | #include<iostream>
using namespace std;
class Node{
private:
int data;
Node* next;
public:
Node(int d=0){
data=d;
next=NULL;
}
friend class Stack;
};
class Stack{
private:
Node* head;
public:
Stack(){
head =NULL;
}
void push_back(int d){
Node* nn=new Node... |
4a0ef1d26619b626550966a31215bced3cc4f443 | f20e965e19b749e84281cb35baea6787f815f777 | /Online/Online/ActiveMQ/ActiveMQ/StompSensor.h | ae1c3613780bed133e6a6948f5b99d4bce8c358c | [] | no_license | marromlam/lhcb-software | f677abc9c6a27aa82a9b68c062eab587e6883906 | f3a80ecab090d9ec1b33e12b987d3d743884dc24 | refs/heads/master | 2020-12-23T15:26:01.606128 | 2016-04-08T15:48:59 | 2016-04-08T15:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,080 | h | StompSensor.h | // $Id: StompSensor.h,v 1.1 2010/11/01 17:20:22 frankb Exp $
//====================================================================
// Comet
//--------------------------------------------------------------------
//
// Package : ActiveMQ
//
// Description: DIM enabled ActiveMQ
//
// Author : M.Frank
// Creat... |
f50d3ef1a105abd740b051bc0acde0c9edfdc802 | d2f03b28b5b47a4169b9c221e31aadf357eae28e | /DinoGame/BigZombie.cpp | a80090acee14bfe8716c53c99d906dd0bf64503e | [] | no_license | ViktorBusk/2D-Dungeon-Crawler | b567d72e5b6d965d36de39cf44158e766d68b432 | 765182f961dfd7e18b7aa120a16d7c3da02166b0 | refs/heads/master | 2023-02-09T19:33:16.445187 | 2021-01-08T14:02:37 | 2021-01-08T14:02:37 | 217,515,203 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 733 | cpp | BigZombie.cpp | #include "BigZombie.h"
BigZombie::BigZombie(Vector2f pos) :
Enemy(pos, PreLoad::Textures::bigZombie, Vector2i(8, 1), SCALE)
{
//Hitbox
this->createHitboxComponent(Color(255, 0, 0, 125));
std::vector<int> hitboxData = PreLoad::Hitboxes::hitboxlist->hitboxData[1][0].second;
this->hitboxComponent->setStaticComponent... |
71ca689c1d788b383d344ddf4f5c39a1e9c23706 | 96b9f588d205e5ea1c35d7d741ea6877047e471e | /lib/include/private/parser.hpp | 6699b97a06d7bb126b8307f6b509c584d544a1d5 | [
"MIT"
] | permissive | wtlgo/brainfuck | 8c5a3941ff90acdc89c6e359f4e1e33a8c576c5e | 522c0e85d9ef959dad4f0d9e50c408f5dd010ee8 | refs/heads/master | 2022-08-26T22:33:01.630667 | 2022-07-24T16:33:31 | 2022-07-24T16:33:31 | 259,443,307 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 770 | hpp | parser.hpp | #ifndef _PARSER_
#define _PARSER_
#include <tuple>
#include <AST.hpp>
#include <tokenizer.hpp>
struct Parser {
typedef Tokenizer::token_list_t::const_iterator it_t;
static wtlgo::bf::AST::const_ptr_t parse(it_t begin, it_t end);
private:
static std::pair<std::shared_ptr<const wtlgo::bf::ASTBody>, it_t> ... |
68281abe893b3d34cb3e30368dc8592ca6c50465 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/03/a0cb2782ef938b/main.cpp | 528f9fd060b4ebd13af52f24cb9f64f1d56f9441 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 172 | cpp | main.cpp | #include <iostream>
#include <string>
void copy()
{
std::string str;
if (!(std::cin >> str))
return;
std::cout << str << '\n';
copy();
}
int main()
{
copy();
}
|
1b2075dce931c1b1a99cafdff22fcb2fb754c585 | 0de1f186ba8b15249f1875a4ba979f8bca9b2a2b | /calib/mode/host_only.hpp | 96ec2e519b29c15c21ef292584238b5c9c957acb | [] | no_license | rap-evangelista/calib | 95cab9ad2a5eb6469ed2aedf884f0dec114823d5 | 7191da522946880b4647de87811837a24e290a39 | refs/heads/master | 2023-01-23T05:18:26.243202 | 2020-12-09T12:29:11 | 2020-12-09T12:29:11 | 299,731,258 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 68 | hpp | host_only.hpp | #ifndef CALIB_MODE_HOST_ONLY
#define CALIB_MODE_HOST_ONLY
#endif |
ab44f41b35b328b7db19a8265916edc106b8cfc5 | b9cfa7d9d0240c26d5d67c23204652cd7530bd3f | /CodeChef Beginner/MDL#.cpp | 4a95c93e68e84a7a952cac6896a99c4c383966bf | [] | no_license | chhavibansal/Coding_Cpp | 29a870a5f7319301c323120b4d2606a6dd2613cb | b65909a446d863810145e3778a6d09d46d4930ff | refs/heads/master | 2020-09-09T19:05:01.106169 | 2020-08-31T13:25:30 | 2020-08-31T13:25:30 | 221,536,693 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 824 | cpp | MDL#.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin >> t;
while(t--){
int n;
cin >> n;
int a[n];
int MIN = INT_MAX , MAX = INT_MIN;
for(int i = 0 ; i < n ; i++){
cin >> a[i];
// if(i < 3){
if(a[i] < ... |
c9d7b23e9008feecd3f0f5527ad1a68908556a03 | 88ae8695987ada722184307301e221e1ba3cc2fa | /buildtools/third_party/libc++/trunk/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directories/create_directories.pass.cpp | ecc68e8540527646934851d2a45fc6132758c72c | [
"NCSA",
"LLVM-exception",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 5,517 | cpp | create_directories.pass.cpp | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
40e5cee07d24f3d6c78a100057ff1be699f9cb1e | bdcf61966e53bdd4175912668b9cf1e5d26983c7 | /Sources/Engine/Modal/Modal.cpp | 9b173566c6652650d4e52534966225c45d3dc607 | [] | no_license | cmattern68/CTA_pompier | 8c3fdbd4c7886d86082833966c5b8a0fc5183484 | 2a4ddd9d4df5233dcb932f1881fe84071a9858f4 | refs/heads/master | 2022-04-08T21:18:44.526519 | 2020-03-19T20:04:59 | 2020-03-19T20:04:59 | 244,639,502 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,788 | cpp | Modal.cpp | #include "Modal.hpp"
namespace cta::engine
{
Modal::Modal(
std::pair<std::size_t, std::size_t> size,
std::pair<std::size_t, std::size_t> pos,
std::string name,
std::tuple<unsigned short int, unsigned short int, unsigned short int> bgColor,
std::tuple<unsigned short int, unsi... |
6a5a077768831f84cf376ff10e7a1a91e296a058 | 3a5a2dc09a6a3fd49c65dcae0d39200af5ea5e3f | /src/wbem/software/NVDIMMFWVersionFactory.cpp | 3019c841a289568729ec034cc52204a38e681890 | [
"BSD-3-Clause"
] | permissive | intel/ixpdimm_sw | d72ec153471bedb9c95db119e5fc422be4c66cc7 | dbd3c99f3524ca6aff80f194ff0f67d4a543b9e3 | refs/heads/master | 2023-06-06T22:02:20.199697 | 2022-08-04T22:49:58 | 2022-08-04T22:49:58 | 46,385,178 | 17 | 7 | BSD-3-Clause | 2018-03-08T20:51:05 | 2015-11-18T00:47:04 | C | UTF-8 | C++ | false | false | 13,612 | cpp | NVDIMMFWVersionFactory.cpp | /*
* Copyright (c) 2015 2016, Intel Corporation
*
* 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 conditions and the... |
7e22e906c752ba62fb4f8815ae141094927eccab | 8a5a67fdf382f43477f3849daf2f0372be134e5b | /Algorithms/Sorting/Counting Sort.cpp | d69cd0d583130dee55de11402efb221afca417c5 | [] | no_license | akhilsaini678/All-Codes | bd57171bbf08e721c32f8fd30c26e05a02b6fd9f | 6c7c7fc345d9fbe68e78723d1703f618941aefb3 | refs/heads/master | 2023-07-12T08:50:44.918801 | 2021-08-22T05:31:30 | 2021-08-22T05:31:30 | 398,625,962 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 957 | cpp | Counting Sort.cpp | #include<bits/stdc++.h>
using namespace std;
void counting_sort(vector<int> &arr)
{
int n=arr.size(),range=0;
for(int i=0;i<n;i++) range=max(range,arr[i]);
vector<int> count(range+1,0),output(n);
for(int i=0;i<n;i++)
count[arr[i]]++;
for(int i=1;i<=range;i++)
{
count[i]+=count[i-1];
cout<<count[i]<<" ";
... |
2bfda45c90f83ee76897bb0829862310e7a29d66 | 602f6f7d39ddbbe7dd89b64b22bfb846e70acd91 | /project1/XmlLoader.cpp | 5ef8c6cc8538e0930af7646321ea765d19f5a31b | [] | no_license | abbesmoe/Tower-Defense-Game | d7bb5e97802d2b9db963f3bdf64e6c11d13f28a3 | 7bf16df4665f7779a94e8b7b97e2d40d4b334cd5 | refs/heads/main | 2023-02-24T17:38:46.198421 | 2021-01-28T16:11:05 | 2021-01-28T16:11:05 | 333,810,737 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,937 | cpp | XmlLoader.cpp | /**
* \file XmlLoader.cpp
*
* \author Moez Abbes, Jacob Riggs, Alan Reed Wagner, Bryan Vi, Mingzhe Huang
*/
#include "pch.h"
#include "XmlLoader.h"
#include <string>
#include <memory>
#include <iostream>
#include "Declaration.h"
#include "Game.h"
#include "TileRoad.h"
using namespace xmlnode;
/** Constructor
* ... |
261e0aedb155c5b00b95b89801c42c1ee2d3080d | 63f8c911e4b8793ab1d0083de4c93cdb437f407f | /source/status/abstractstatus.h | 9317667b72890f2d472b60afdab9e2802adb1572 | [] | no_license | Celande/-V-RPG | 28906d356e157232325def69734b21708fb7a75e | 9648f048526b64edcd1b9623cbd53d11c5d3eb3e | refs/heads/master | 2021-08-28T13:41:14.306448 | 2017-12-12T08:59:10 | 2017-12-12T08:59:10 | 105,540,368 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 308 | h | abstractstatus.h | #ifndef ABSTRACTSTATUS_H
#define ABSTRACTSTATUS_H
#include <iostream>
#include <string>
#include "source/enumeration/image.h"
class AbstractStatus
{
public:
AbstractStatus();
void passTurn();
protected:
std::string name;
Image symbol;
//effectOnStat statEffect
};
#endif // ABSTRACTSTATUS_H
|
33faa7facf415a37165eee46307d4e3b4794c203 | 7fcdc07ba30153d7fde77c912dfb7dcfdecb729d | /source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp | e4810a219a4cb5a8c306925352730ed3fbf92e80 | [
"NCSA"
] | permissive | ice799/lldb | d48a4ae43f9f13a73b3c3fc25dae77fc729072fb | 35c0893e220e53588afe2b63ea8dba0fb9770de1 | refs/heads/master | 2016-09-06T01:40:49.068253 | 2010-07-17T00:56:13 | 2010-07-17T00:56:13 | 779,965 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 63,757 | cpp | ObjectFileMachO.cpp | //===-- ObjectFileMachO.cpp -------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
1b4418fbbce847db533efb39b64f4a07262cfe10 | 7120c98cebc3f8280f608d3e4f20707aaab51741 | /CTDL_hinh_chu_nhat_lon_nhat.cpp | c0ab5a5cb1141909c3538f924c2804cc251d8f61 | [] | no_license | midori42/CTDL-GT2021 | 6c9b6969db105326980408a4190eac5d931600d6 | 1004a7ad20632503f5b33231980d559d9534f17d | refs/heads/main | 2023-07-06T20:06:07.017342 | 2021-08-20T10:02:56 | 2021-08-20T10:02:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,312 | cpp | CTDL_hinh_chu_nhat_lon_nhat.cpp | /*
Cho N cột, mỗi cột có chiều cao bằng H[i]. Bạn hãy tìm hình chữ nhật lớn nhất bị che phủ bởi các cột?
Input:
Dòng đầu tiên là số lượng bộ test T (T ≤ 20).
Mỗi test bắt đầu bởi số nguyên N (N ≤ 100 000).
Dòng tiếp theo gồm N số nguyên H[i] (1 ≤ H[i] ≤ 109).
Output:
Với mỗi test, in ra diện tích hình chữ n... |
c6fe31b9dd86b82eaa12bad957dae1994fa5b66e | 6b9636f187b0acf35e8bd792205e9f67991235ea | /msvc/modules/core/mean.avx2.cpp | e309c4100a35fa896ae52d17fa4dcabc0fd8c10d | [
"BSD-3-Clause"
] | permissive | gajgeospatial/opencv-4.1.0 | 485169246012cd1ccac7deab5f5113f6314e4619 | 4b6cf76e12e846bc7fb5dbdce0054faca6963229 | refs/heads/master | 2022-09-14T21:24:20.751932 | 2020-05-21T01:52:33 | 2020-05-21T01:52:33 | 265,724,546 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 163 | cpp | mean.avx2.cpp |
#include "C:/Development/op3d_active/opencv-4.1.0/modules/core/src/precomp.hpp"
#include "C:/Development/op3d_active/opencv-4.1.0/modules/core/src/mean.simd.hpp"
|
8053787d0a7ced6e528b320219956e3aa42250e6 | de7afdfbf77908253ef4b497617d0a69822bbd4b | /vtex_cc_2019/b.cpp | 2baf6f5f48dec7d9fc44b371924a51b1aeb4b7a9 | [] | no_license | joaoandreotti/competitive_programming | 1ee6abdd589971a1194b059dff6b3b987dc698f3 | 75c8bce751f09ca76845033893f3a3fa0078753e | refs/heads/master | 2020-09-15T11:52:45.554130 | 2020-02-18T13:38:52 | 2020-02-18T13:38:52 | 223,436,524 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 856 | cpp | b.cpp | #include <bits/stdc++.h>
void input ();
void solve ();
typedef std::pair <int, int> pi;
typedef std::pair <int, pi> ppi;
typedef std::vector <ppi> vppi;
int n, arr [3];
vppi v;
void input () {
scanf ("%d", &n);
for (int i = 0; i < n; i++) {
scanf ("%d%d%d", arr, arr + 1, arr + 2);
std::sort (arr, arr + 3);
... |
fac6f467c3cfdd28c68dcd4ac17cbf4ecd943627 | 13a1e9312308aeb63601fd1a7aa4a6bf8b017d13 | /ThenMin.h | e79b0a51b5cd5b3bfdbc74456bb4242fa5a7fac0 | [] | no_license | FaridCH/Fuzzy_Framework | bce142759a66995911bc5a854ce8ba7674a54f3c | ccd0932f927c7420d99a319952c9d1d4682e66cd | refs/heads/master | 2016-09-06T00:01:13.902171 | 2015-01-05T07:41:08 | 2015-01-05T07:41:08 | 28,802,441 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 500 | h | ThenMin.h | #ifndef THENMIN_H
#define THENMIN_H
#include "Then.h"
#include "Expression.h"
namespace fuzzy
{
template <class T>
class ThenMin : public Then<T>
{
public:
ThenMin(){};
virtual ~ThenMin(){};
T evaluate(core::Expression<T>*, core::Expression<T>*) const;
};
template <class T>
T ThenMin<T>::evaluate(core:... |
93c8c9d36d0e88a8c1872f84b4edc3595b026dc9 | b11b140ef2fbb3e3e2d0eb53fdbe4c8943ad5ebb | /hdu/bestcoder65/D/d.cpp | b647103d7f4362d31856fdc185888fcac30dbc6d | [] | no_license | jer22/OI | ea953208ab43542c51eada3c62ef529a6c14588e | 545c2424f277a6626b0f22fb666edd8c37e7328b | refs/heads/master | 2021-04-18T22:57:05.678732 | 2017-11-02T15:40:34 | 2017-11-02T15:40:34 | 27,431,322 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,382 | cpp | d.cpp | #include <cstdio>
#include <cstring>
#include <algorithm>
#include <queue>
#include <iostream>
#include <vector>
#pragma comment(linker, "/STACK:1024000000,1024000000")
using namespace std;
const int MAXN = 500005;
int T, n, K, A, B;
int fa[MAXN];
vector<int> edges[MAXN];
int down[MAXN][12];
int up[MAXN][12];
void ... |
cbc4282156c217dad50ca6e6783e2c2b2a0a941a | 05dad77f4c313ad0f51f134caf52a33358ffa4a2 | /plotIP.cc | cf4ce39ef0cefa25c03e712804e26e2a123614fb | [] | no_license | wverbeke/oldCode | fcb33eebf69cecf3723927b80515a59bec627289 | 836ab7f148a1a3cd27274a1bed0f10912dedcda9 | refs/heads/master | 2021-08-12T02:47:32.301542 | 2017-11-14T10:24:39 | 2017-11-14T10:24:39 | 110,675,453 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,445 | cc | plotIP.cc | //include ROOT classes
#include "TLorentzVector.h"
#include "TH1D.h"
#include "TFile.h"
#include "TString.h"
#include "TLegend.h"
#include "TCanvas.h"
#include "THistPainter.h"
#include "TApplication.h"
#include "TStyle.h"
#include "TTree.h"
#include "THStack.h"
#include "TColor.h"
#include "TROOT.h"
#include "TGraph.h... |
7b0ff0770178c8304d819883dca71c8376914c7c | 4a4121a672252be3c140dc5c9ebba3d214b0f028 | /source/camera/Orthographic.cpp | da396e69149f52973d3c3fdab9c7069c55e17438 | [
"MIT"
] | permissive | xzrunner/raytracing | 3a204d79ae30a9abaab8bc108a8651c9c43bd61a | c130691a92fab2cc9605f04534f42ca9b99e6fde | refs/heads/master | 2020-05-18T23:45:24.777881 | 2019-06-04T00:02:58 | 2019-06-04T00:02:58 | 184,719,671 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,941 | cpp | Orthographic.cpp | #include "raytracing/camera/Orthographic.h"
#include "raytracing/world/World.h"
#include "raytracing/world/ViewPlane.h"
#include "raytracing/tracer/Tracer.h"
#include "raytracing/sampler/Sampler.h"
#include "raytracing/maths/Point2D.h"
#include "raytracing/utilities/RGBColor.h"
#include "raytracing/utilities/Constants.... |
fece98390998d99943bf0838c90791719b4ad639 | 277ce5152b7c8a112aed1da22fd8d608b34b1f9e | /Inheritance/single inheritance/Q2.cpp | 6012b60f47fbb7f3efff4d3c2d193d7ca70a12e1 | [] | no_license | HarshMule20/Cpp_Practices | c6c4182aea99fe7ec9f13f11db540869b01604a2 | 54c41ba5c547ff932ff4f9bec13b03ec2a6053c4 | refs/heads/master | 2022-10-22T21:17:49.421140 | 2020-05-28T18:09:18 | 2020-05-28T18:09:18 | 267,660,040 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 763 | cpp | Q2.cpp | #include<iostream>
#include<conio.h>
using namespace std;
class student
{
int roll;
public:
void getdata()
{
cout<<"Enter roll number= ";
cin>>roll;
cout<<"\n";
}
void show()
{
cout<<"Roll number= "<<roll;
}
};
class... |
7919abdde073ee32b63f3b33ab9d5e53fbb05266 | 934c6eebcdbde46fadb76891fd763bec727803f2 | /avm/Linker.cpp | ccd096c97b7e135905fcc65a92394b8fcb6633a7 | [
"MIT"
] | permissive | weimingtom/libavm2 | b4ba915040062db5e3c28d341de8a8e9bc6cccc7 | cefa9007b6fd1cebcb0e35e61f7afb8e04577e62 | refs/heads/master | 2022-04-13T21:00:31.640313 | 2015-02-06T12:06:18 | 2015-02-06T12:06:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 33,569 | cpp | Linker.cpp | /**************************************************************************
The MIT License (MIT)
Copyright (c) 2015 Dmitry Sovetov
https://github.com/dmsovetov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to ... |
e6c079b3ecc594722322b0677b9372e5f4a941dc | 94e2f239425cfafa921eb686bf7697d92c7a8d74 | /jni/baby-engine/RGBA.h | fbdbdf50b5bbeb9285e3b68655ec21a30ccab5e4 | [] | no_license | parthmpandya/and-copter | f7814abf9942f0b0797b640fccfb2b183296a405 | 551be6c170f7a6562d0f2f093d431878078151bc | refs/heads/master | 2020-05-31T13:27:38.418214 | 2011-07-20T18:50:07 | 2011-07-20T18:50:07 | 40,241,068 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 350 | h | RGBA.h | #pragma once
class RGBA
{
public:
float r, g, b, a;
RGBA(void) :
r(0),
g(0),
b(0),
a(0)
{
}
RGBA(float R, float G, float B, float A) :
r(R),
g(G),
b(B),
a(A)
{
}
operator float*() {
return (float *)&r;
}
operator const float*() const {
return &r;
}
... |
4142923bd7d5c20f2137db4933ad270350ba6eda | 27e1a0831fa730f710c7f48125092b8bfa98c8c6 | /arm_compute/core/NEON/kernels/convolution/winograd/transforms/output.hpp | 700ca76c68d1e23f23abcb4107aa3c8961fb6be4 | [
"MIT"
] | permissive | adityagupta1089/ComputeLibrary | ff9c57f4f69b02d3789f72b5223bc9c1f28ad777 | 39945fde9bbb805e76c55baf3ca536a376fb00f4 | refs/heads/master | 2021-06-22T06:54:52.030052 | 2021-01-03T14:04:39 | 2021-01-03T14:04:39 | 158,011,217 | 2 | 1 | MIT | 2018-11-17T18:07:24 | 2018-11-17T18:07:24 | null | UTF-8 | C++ | false | false | 7,469 | hpp | output.hpp | /*
* Copyright (c) 2017 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights ... |
1f9adb1ae9e42434288d7df7545f16412261e803 | b37a26ed15bdc286f4c2d7845f522719d0a73821 | /server/common/msgmanager.cpp | 124c1e27c038c7d3d42373773692840b3dfc1994 | [] | no_license | mouzey/c-project | 3a6a9e5016e2e36df92cff057ee59e36689e657d | 817278a7343ec496a4a32d264c273daf2403df83 | refs/heads/master | 2021-07-23T17:17:54.906707 | 2020-10-19T13:48:54 | 2020-10-19T13:48:54 | 224,430,279 | 4 | 4 | null | 2020-04-18T02:46:18 | 2019-11-27T12:51:07 | C++ | UTF-8 | C++ | false | false | 753 | cpp | msgmanager.cpp | #include "pch.h"
#include "msgmanager.h"
#include "log.h"
#include "codebase.h"
CMsgManager *g_pMsgMgr = &(CMsgManager::Instance());
CMsgManager::CMsgManager()
{
}
CMsgManager::~CMsgManager()
{
}
void CMsgManager::OnMsgEvent(const char* pBuff, uint32_t nSize, uint64_t key)
{
uint16_t nMsgID = *(uint16_t*)... |
f0f2244c6657ed4cc5e37108741111048960c508 | f35bf9ff7405c179289f049fad4396198b4a0ef8 | /Nov2018_Long/Binary_Strings.cpp | d6768421d045756530b287b4b42bed0864005142 | [] | no_license | proRamLOGO/Competitive_Programming | d19fc542e9f10faba9a23f4ef3335f367ccc125a | 06e59ba95c3804cae10120ac7eda6482c3d72088 | refs/heads/master | 2023-01-03T07:27:25.960619 | 2020-10-29T19:15:53 | 2020-10-29T19:15:53 | 151,049,005 | 0 | 7 | null | 2020-10-29T19:15:54 | 2018-10-01T07:05:55 | C++ | UTF-8 | C++ | false | false | 699 | cpp | Binary_Strings.cpp | #include <iostream>
#include <vector>
#include <bitset>
using namespace std;
long int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
long int n, q ;
cin >> n >> q ;
vector< bitset<16> > arr(n), quer(q+1) ;
for ( auto i = 0 ; i < n ; ++i ) cin >> arr[i] ;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.