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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
49223de3e8d99efd757c99c9819e9a1b46c9770c | cc63466d8a66bb8925508791c007c0054149ce5a | /msj_archives/code/Msj1296.src/Thin Client/ChangeValueFrame.cpp | ab5956d8d39fcdc9a3a7d781aba470b33adf021b | [
"Unlicense"
] | permissive | liumorgan/misc-code | 9675cc258162064083126a22d97902dae36739c9 | d47a8d1cc41f19701ce628c9f15976bb5baa239d | refs/heads/master | 2022-06-29T20:41:54.288305 | 2020-05-13T00:20:05 | 2020-05-13T00:20:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,270 | cpp | ChangeValueFrame.cpp | // ChangeValueFrame.cpp
#include "stdeos.hpp" // this header file must be first for precompiled headers to work
#ifndef CHANGEVALUEFRAME_HPP
#include <ChangeValueFrame.hpp>
#endif
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////... |
32e7107671e9235bfcb76d743731cf23ccaf2bee | 7816a4e09ad76831011ecda4f1bf2b93d8943483 | /factorial.cpp | 3da8a98d30686fa9e4559f789a2c6a76bf361e14 | [] | no_license | sbhattarai5/google-test | e5bda3e2f0ceae06ccf7a16ed2da384982d07340 | 6f6dffc7c2c417c9265c7c1fa95f7af5a996ec33 | refs/heads/master | 2023-03-26T18:52:16.710228 | 2021-03-21T00:19:36 | 2021-03-21T00:19:36 | 349,863,387 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 835 | cpp | factorial.cpp | #include <gtest/gtest.h> // including the library
int factorial(int n)
{
if (n < 0) return -1; // invalid case
int prod = 1;
while (n != 0)
{
prod *= n--;
}
return prod;
}
TEST(FactorialTest, ZeroTest) // for factorial of Zero
{
EXPECT_EQ(1, factorial(0));
}
TES... |
74a95902adabdfa80a9ddff4e6fdfb6a18e8c87e | b20353e26e471ed53a391ee02ea616305a63bbb0 | /trunk/game/gas/GameGas/CMagicOpCfgArg.h | 8bee417777a054b86a7187d6a0b807001616edeb | [] | no_license | trancx/ybtx | 61de88ef4b2f577e486aba09c9b5b014a8399732 | 608db61c1b5e110785639d560351269c1444e4c4 | refs/heads/master | 2022-12-17T05:53:50.650153 | 2020-09-19T12:10:09 | 2020-09-19T12:10:09 | 291,492,104 | 0 | 0 | null | 2020-08-30T15:00:16 | 2020-08-30T15:00:15 | null | UTF-8 | C++ | false | false | 4,864 | h | CMagicOpCfgArg.h | #pragma once
#include "CCfgArg.h"
class CNormalSkillServerSharedPtr;
class CMagicStateCfgServerSharedPtr;
class CTriggerStateCfgServerSharedPtr;
class CDamageChangeStateCfgServerSharedPtr;
class CCumuliTriggerStateCfgServerSharedPtr;
class CSpecialStateCfgServerSharedPtr;
class CAureMagicCfgServerSharedPtr;
... |
4d7ab48501afaf93baff341321e43c683a03f0c7 | 7233691d7aa83bb3e93cc4d4c472c99c332f39cc | /1114.cpp | 2af507b03717d31c1c0071d775ccd38a03777cdf | [] | no_license | Sawom/URI-problem-solving | 708f0cecfde0b104e821b7e2cd0ce72880534614 | d71a38416912e894da8e312b28d1f3f3e77ad528 | refs/heads/main | 2023-08-24T20:03:43.539695 | 2021-09-21T10:46:36 | 2021-09-21T10:46:36 | 311,331,842 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 289 | cpp | 1114.cpp | #include<iostream>
using namespace std;
int main(){
int x;
while(1){
cin>>x;
if(x==2002){
cout<<"Acesso Permitido"<<endl;
break;
}
else{
cout<<"Senha Invalida"<<endl;
}
}
return 0;
}
|
af55c19a1f78ca19252bcad4b428040e8d1f094b | 025e31348577d6081e0839ff2d9765d2fa4ef8e0 | /Segundo Semestre 2018-2/IPOO/Clases/Herencia_Polimorfismo/3/Main.cpp | da7101a8f8922f93513759c207890dbafd4dc74f | [] | no_license | camilojm27/Universidad | 0d777644d021049b2c238af623df67f70ce8c29b | 7ce4f0fbfa65d68414555b1f670b6ad59c10293e | refs/heads/master | 2022-01-15T18:45:51.915970 | 2019-07-27T16:10:03 | 2019-07-27T16:10:03 | 150,368,266 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,086 | cpp | Main.cpp | /*
Archivo: Main.cpp
Autor: Ángel García Baños
Email: angel.garcia@correounivalle.edu.co
Fecha creación: 2019-03-08
Fecha última modificación: 2019-03-08
Versión: 0.1
Licencia: GPL
*/
// Utilidad: Entender la herencia con polimorfismo (una única interfaz con muchas implementaciones).
// El polimorfismo s... |
6d7bb9ceeeba51cfd1b4272af13593975eca4dbb | f90372c080cbd63ab6da7fc0deb310327335972f | /String/PalindromicAutoMaton/[URAL2040]PalindromesAndSuperAbilities2(回文自动机).cpp | d779ab9da317321d9a7dfbd3483001699690c166 | [] | no_license | EbolaEmperor/OI-Learning | 7382b2c7d72516dd4cd1ac129348c2d7ff546645 | 14b3d5efbf671e39421258cbfd65e9e21991faec | refs/heads/master | 2020-04-01T19:40:44.675796 | 2019-07-13T13:12:50 | 2019-07-13T13:12:50 | 153,566,156 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 700 | cpp | [URAL2040]PalindromesAndSuperAbilities2(回文自动机).cpp | #include<bits/stdc++.h>
using namespace std;
const int MAXN=5000010;
char ss[MAXN];
int s[MAXN],n;
int ch[MAXN][2],sz;
int fail[MAXN],lst;
int len[MAXN];
int newnode(int l){len[++sz]=l;return sz;}
void init()
{
sz=-1;
n=lst=0;
newnode(0);
newnode(-1);
fail[0]=1;
s[0]=-1;
}
int find(int p)
{
while(s[n]!=s[n-l... |
352e8306ddf1fca97b5866445cb5f1c6889e621d | fb127294ed7fb48e37342ca0950a34015fe8bd4e | /components/game_mod/r_stream.cpp | c94ff0a33f5fc6e9b212e47150b0b43b3af561ce | [] | no_license | Nukem9/LinkerMod | 89c826f42cfc0aabe111002ca3696df07ac156c9 | 72ee05bbf42dfb2a1893e655788b631be63ea317 | refs/heads/development | 2021-07-14T16:23:00.813862 | 2020-04-09T05:05:38 | 2020-04-09T05:05:38 | 30,128,803 | 134 | 56 | null | 2021-04-04T14:04:54 | 2015-01-31T22:35:11 | C++ | UTF-8 | C++ | false | false | 58,602 | cpp | r_stream.cpp | #include "stdafx.h"
#define IMAGE_BIT_IS_SET(var, bits) ((var)[BIT_INDEX_32(bits)] & BIT_MASK_32(bits))
#define IMAGE_BIT_SET(var, bits) ((var)[BIT_INDEX_32(bits)] |= BIT_MASK_32(bits));
#define IMAGE_BIT_UNSET(var, bits) ((var)[BIT_INDEX_32(bits)] &= ~BIT_MASK_32(bits));
GfxWorld*& rgp_world = *(GfxWorld **)0x0396A2... |
69c80835e25797c9f81972ff83162b3995d28722 | aa96ae5fee9e0dedaaf73bfb6c820db3e844a5de | /Sources/Interface/OptionsDlg.h | e936897d1b153652f5ee4795f40cce47557e514e | [] | no_license | jotak/shahnarman | 1aded6d198d8b8abfd1c43f7f8230403b5034762 | 0876f31e0572b9f465cf9d5ff4582045488788e9 | refs/heads/master | 2021-01-01T18:33:26.850009 | 2012-09-17T20:19:10 | 2012-09-17T20:19:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 756 | h | OptionsDlg.h | #ifndef _OPTIONS_DLG_H
#define _OPTIONS_DLG_H
#include "../GUIClasses/guiDocument.h"
class LocalClient;
class guiPopup;
class OptionsDlg : public guiDocument
{
public:
OptionsDlg(int iWidth, int iHeight, LocalClient * pLocalClient);
~OptionsDlg();
virtual void update(double delta);
// Handlers
... |
3b5abaabdd329c4aa277d1dbd4a21cf8e7a54fd5 | c709c3a135ffa0b90a4371aa1bdaf9e18a7786d0 | /main.cpp | 6e463b9139900dcefa89948b6a20fb51397e6edd | [] | no_license | mystery110/DS_LinkedList | ef77672a913f343805be56d9fbc4e9bb9d0ea5fb | e948919496a65a2ffa89a4bd2bd01709dc27594c | refs/heads/master | 2020-04-25T16:46:42.041498 | 2019-02-27T13:50:12 | 2019-02-27T13:50:12 | 172,923,936 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,700 | cpp | main.cpp | #include<iostream>
#include<string>
#include<sstream>
#include<vector>
#include<cstring>
using namespace std;
typedef enum {entry,head}tagfield;
typedef struct {
int col;
int row;
int value;}entry_Node;
typedef struct matrixNode * Pointer_Node;
struct matrixNode{
Pointer_Node down,right;
tagfield tag;
union ... |
4aad93b40de028436b7ecfa4d96561f7f6e0e936 | c3a001285a07793217247e9985216dafae38a090 | /4Lab/Math32/Win32Dll/math32.cpp | b795369e259444dd7adc7994f98abfa621492705 | [] | no_license | DcDrugs/LabaCSharp | a5d80963b33e55eb7cde22d1e5b1bbedb539f7b9 | aecf7f327f2dff33931f8d99e7d5b464f17efea5 | refs/heads/master | 2021-05-22T20:18:42.683336 | 2020-05-16T15:05:40 | 2020-05-16T15:05:40 | 253,077,120 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,709 | cpp | math32.cpp |
#include "pch.h"
#include <utility>
#include <limits.h>
#include "math32.h"
static double k_ = 0;
static double b_ = 0;
double f(double x)
{
if (x == 0)
{
return 1;
}
return k_ * x + b_;
}
double summ(double* point,int number_of_point)
{
double result = 0;
for (i... |
00621980e6631c9f163b6f999e6753672b5a495a | f34dc62905311dc0e53da1ad7886ca31edc90844 | /encapsulated/Client.cpp | b500927fa1a3a2aaa4ee01b758f0cc0bbd631f0e | [] | no_license | dragonII/fun-for-server-and-client | 35c31fac72af9653a2a19e33c7f22219ac0ebe1d | 8d792174389aa45214d7624635d2832d984abfa0 | refs/heads/master | 2018-12-28T04:15:43.671745 | 2010-08-07T07:18:59 | 2010-08-07T07:18:59 | 32,122,422 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,625 | cpp | Client.cpp | #include <Ice/Ice.h>
#include <Callback.h>
#include <iostream>
#include <fstream>
using namespace std;
using namespace Demo;
#define BLOCK_SIZE 1024
class CallbackReceiverI : public CallbackReceiver
{
public:
virtual void callback(const Ice::Current&)
{
cout << "Client callbacked " << endl;
}
};
class C... |
52587eabbcc73dcde206ce394a38021fba2c4ebd | 634120df190b6262fccf699ac02538360fd9012d | /Develop/Server/GameServer/unittest/TestItemUser.cpp | 64eaf1e03b070f7a984b90dbe503f2ffb99b5124 | [] | no_license | ktj007/Raiderz_Public | c906830cca5c644be384e68da205ee8abeb31369 | a71421614ef5711740d154c961cbb3ba2a03f266 | refs/heads/master | 2021-06-08T03:37:10.065320 | 2016-11-28T07:50:57 | 2016-11-28T07:50:57 | 74,959,309 | 6 | 4 | null | 2016-11-28T09:53:49 | 2016-11-28T09:53:49 | null | UTF-8 | C++ | false | false | 3,481 | cpp | TestItemUser.cpp | #include "stdafx.h"
#include "GEntityPlayer.h"
#include "GTestForward.h"
#include "FBaseGame.h"
#include "GItemUser.h"
#include "GItemHolder.h"
#include "GPlayerTalent.h"
#include "GQuestInfo.h"
#include "GPlayerQuests.h"
#include "GConditionInfo.h"
#include "GConditionsInfo.h"
#include "GEquipmentSlot.h"
SUITE(ItemUs... |
be2a65193c81b0d03e428cdc224a6a305ff5e442 | 67fce22ba3660fd346846e343eb6e739a493958c | /include/BinaryOperator.hpp | 20f9133027c4f06ac83f00d32602fd825b586f28 | [] | no_license | Ziple/ShadeGen | 71e7d75c25f2bad8ec98d263c9c03929bc139c5b | e72b4f9c375f04ad292a5084a2baba7fd6ea01e0 | refs/heads/master | 2016-08-07T20:14:28.262294 | 2014-08-30T17:27:52 | 2014-08-30T17:27:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 418 | hpp | BinaryOperator.hpp | #ifndef __SC_BINRARYOPERATOR_HPP__
#define __SC_BINRARYOPERATOR_HPP__
#include "Operator.hpp"
#include <Utils/SharablePointer.hpp>
class BinaryOperator : public Operator, public Sharable<BinaryOperator>
{
public:
BinaryOperator( Operator::Ptr first, Operator::Ptr second );
void ResolveTypes();
prot... |
0707f600618d45ecf36d69d2e4782838a5031609 | c54f156ec3b98a07a760df58a4a05b64d136dad3 | /@fox_radio/addons/@fox_radio/interface.hpp | b635fb434f80f181ad71c544fa60e7bfc6db6a54 | [] | no_license | taskforceheadbanger/fox_radio | 11a9401c29c1ede51a09e1bf97c71d1e092beba2 | 40b8575cf045312094ee574696f445d708093690 | refs/heads/master | 2023-06-12T13:12:08.812553 | 2018-11-24T21:41:23 | 2018-11-24T21:41:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,892 | hpp | interface.hpp | class RscText;
class RscEdit;
class RscPicture;
class RscListBox;
class RscButton;
class fox_radio
{
idd = 6000;
onLoad = "call fox_radio_fnc_open";
onUnload = "";
duration = 32000;
fadeIn = 0;
fadeOut = 0;
enableSimulation = 1;
class controls
{
class background : RscPicture
... |
35b86c0dfa9a810c81148db17e2de68f8ad62fe2 | 2ae43dabf4aa3c43a83c7296c11f312d89e824f6 | /modules/web/Web04_TcpSyncClient/include/FortuneThread.h | ae333206e0a3d073421ccd0dda0647abeac3c8ce | [
"MIT"
] | permissive | chengfzy/QtStudy | 323933b09df0c7f824796038d7b6e6cd1c5bacc3 | 0a3905c038d3fa4bd44da9c18a09036ce6eb83e6 | refs/heads/master | 2023-05-11T13:49:38.765492 | 2023-05-05T01:13:28 | 2023-05-05T01:13:28 | 155,650,217 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 559 | h | FortuneThread.h | #pragma once
#include <QMutex>
#include <QThread>
#include <QWaitCondition>
class FortuneThread : public QThread {
Q_OBJECT
public:
explicit FortuneThread(QObject* parent = nullptr);
~FortuneThread();
public:
void requestNewFortune(const QString& hostName, const quint16& port);
void run() ove... |
1dc70db0bec714fddc295c395cf8439c7f987d9e | e3a97b316fdf07b170341da206163a865f9e812c | /vital/util/compare.h | 7aff18a5632a0e0a8fb543fcea28beb014e2a527 | [
"BSD-3-Clause"
] | permissive | Kitware/kwiver | 09133ede9d05c33212839cc29d396aa8ca21baaf | a422409b83f78f31cda486e448e8009513e75427 | refs/heads/master | 2023-08-28T10:41:58.077148 | 2023-07-28T21:18:52 | 2023-07-28T21:18:52 | 23,229,909 | 191 | 92 | NOASSERTION | 2023-06-26T17:18:20 | 2014-08-22T15:22:20 | C++ | UTF-8 | C++ | false | false | 729 | h | compare.h | // This file is part of KWIVER, and is distributed under the
// OSI-approved BSD 3-Clause License. See top-level LICENSE file or
// https://github.com/Kitware/kwiver/blob/master/LICENSE for details.
/// \file
/// Comparison utilities.
#ifndef KWIVER_VITAL_UTIL_COMPARE_H_
#define KWIVER_VITAL_UTIL_COMPARE_H_
namespac... |
865e6c4991128b642462500f9aa24c0ee91c5915 | 92ac81571b4f27236fe283bdee4ab9dee1395325 | /DeprecatedCode/Driven/Core/Yw3dShader.h | d52cc7bf0756e5bdd2f5cf224c2f91a1ec28c730 | [
"MIT"
] | permissive | ArcherLew/YwSoftRenderer | 897451685e65581f820c5f30395f55ed0732df03 | 20042112308b7d48951cc9c4497e0d2225f0cf73 | refs/heads/master | 2020-05-31T05:48:45.694625 | 2019-05-25T15:57:01 | 2019-05-25T15:57:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,212 | h | Yw3dShader.h | // Add by Yaukey at 2018-02-22.
// YW Soft Renderer 3d shader class (vertex-shader, triangle-shader and pixel shader).
#ifndef __YW_3D_SHADER_H__
#define __YW_3D_SHADER_H__
#include "Yw3dBase.h"
#include "Yw3dTypes.h"
#include "Yw3dBaseShader.h"
namespace yw
{
// Defines the vertex shader interface.
class IY... |
22aba06e80377c490cc6a10c1c56bf12055f1d84 | bd2ba216e095c26a1fa3145f6cb03d707be3c4f8 | /FileSystemEDII/api.cpp | 5b22bbe0af1654ace90b7c20f78bb6505c0fc614 | [] | no_license | moniquestigter/FileSystemEDII | f0d6bcc4e16d3575743c8a9f3ff0f7752785726d | a7e3ef8bbf0ec8cc5cfd84365f12f4ca9d22983a | refs/heads/master | 2021-01-25T09:20:29.922592 | 2017-06-19T05:04:24 | 2017-06-19T05:04:24 | 93,814,702 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,826 | cpp | api.cpp | #include "api.h"
#include <qmessagebox.h>
API::API()
{
cantIdx = 0;
}
//Funciones para cargar too desde el .txt
BloqueArchivo * API::initArchivoFromChar(char * nombre, BloqueFolder * actual,int nB,int tB,int lB)
{
actual->setCantArchivos(actual);
Archivo * archivo = dv->getArchivo();
archivo->abri... |
95b172aaa3e010033752a592fddf31c54b0a92dc | ac18a18cb845eeaec55ed6974199e0f0cfc20203 | /h/Semap.h | 847ba12e4ba109b48d71333385c8d174b2a5fcdb | [
"MIT"
] | permissive | ZivkovicA013/OSKernel | 454f8c4671777d53f124eca80d0ff9d52ad35525 | 911973d5f6ded370b9a73360e994ae9913e12cb8 | refs/heads/master | 2022-11-13T20:23:20.456164 | 2020-07-14T14:54:24 | 2020-07-14T14:54:24 | 255,463,142 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 436 | h | Semap.h | /*
* Semap.h
*
* Created on: Apr 25, 2020
* Author: OS1
*/
#ifndef SEMAP_H_
#define SEMAP_H_
#include"KerSem.h"
typedef unsigned int Time;
class Semaphore {
public:
Semaphore(int init=1);
virtual int wait(Time maxTimeToWait);
virtual int signal(int n=0);
int val () const;
... |
3b3a8f7509477d5ff28f69b5204cfbb04559662b | a8c3a937f0bd4a119ee268744fc46dbc02102883 | /tetris/Game/MemoryClass.cc | 0d93bfad9fccb0c46bb308f7e0b2e8a1ef497100 | [] | no_license | alexch/www.stinky.com | c1206ddba915daac40a6e6c7cb81ed292a98a7d2 | ec2bbdc7c23632414540844e2ffc0dcccf0c2626 | HEAD | 2016-08-04T23:11:30.754826 | 2015-08-12T17:26:16 | 2015-08-12T17:26:16 | 7,101,205 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 860 | cc | MemoryClass.cc | #include "MemoryClass.h"
#ifdef MACINTOSH
#include <stdlib.h>
#else
#include <stdlib.h>
#endif
#include "assert.h"
#define ASSERT assert
MemoryClass::MemoryClass(int size)
{
ASSERT(size >= 0 && size < MaxMemSize);
this->size = size;
data = (int*) malloc(sizeof(int) * size);
}
MemoryClass::~MemoryCl... |
3bcc84e0e483319a31d57570e1078633335e0562 | fed8f16e93f9a63d5bc350fbf6b2086c21b4843f | /Graph Theory/MST Kruskal's algorithm.cpp | 01f07ce0ae6a13c0a57b33a5fbe9b93c5e3c3bfd | [] | no_license | marksman2op/cp | 199faabccd7cc7764c81e93a15ef88fef16f8414 | bda1bf982f4fbc8498579d4d9b30b43ef0f80b5d | refs/heads/master | 2023-08-17T10:16:13.123785 | 2021-10-04T07:59:39 | 2021-10-04T07:59:39 | 244,225,646 | 1 | 0 | null | 2020-07-23T19:02:22 | 2020-03-01T21:21:42 | C++ | UTF-8 | C++ | false | false | 1,997 | cpp | MST Kruskal's algorithm.cpp | // Sky's the limit :)
#include <bits/stdc++.h>
using namespace std;
#define int long long
/*
MST with Krushkal's Algorithm
- The graph must be: Weighted, Undirected, Connected/Disconnected
- Runs for disconnected graph without any modifications.
- Steps:
- Sort all the edges in non-de... |
e0c3cc470365e6e0753a73ffe2414f83e0657e5f | 52e41e2f7d6f77fab7246954d56cc38ad25a5489 | /23_min_spanning_tree/kruscal.cpp | eef0249be1ad33fe8756a46647f258cb5e9d076e | [] | no_license | shulgaalexey/algorithms | 70b0c00eda5bf7c6010ad38e23027f967ff254c5 | 602fa48595bb6465a884897c0dfb2b01d6fd84de | refs/heads/master | 2020-04-12T03:53:54.800527 | 2017-02-08T08:25:51 | 2017-02-08T08:25:51 | 65,423,784 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,979 | cpp | kruscal.cpp | #include <iostream>
#include <set>
#include <map>
#include <vector>
#include <algorithm>
using namespace std;
class edge {
public:
char from;
char to;
int w;
edge(char f, char t, int _w) : from(f), to(t), w(_w) {}
};
bool edgesort(edge a, edge b)
{
return a.w < b.w;
}
vector<edge> min_spanning_tree(const vector... |
0b19e7005cfc8336336e142410767fb742da3d3f | c20b9846c869cc6b9d745122788d32a34657d75b | /main.cpp | c3d7970634efb6eb24b00b44e98a101b62b7c38f | [] | no_license | persja40/PSRS_p2 | e06f977cd9c5406646004d67cdf64ee3499e9d79 | ea9709565b043c31cc26d8a239597690a4fc1bc4 | refs/heads/master | 2020-03-14T05:40:58.610691 | 2018-05-05T08:41:02 | 2018-05-05T08:41:02 | 131,469,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,112 | cpp | main.cpp | #include <upcxx/upcxx.hpp>
#include <iostream>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <numeric>
#include <vector>
#include <future>
#include <limits>
#include <utility>
using namespace std;
int main(int argc, char *argv[])
{
// setup UPC++ runtime
upcxx::init();
int numprocs =... |
36e2d60dec06107bea6c14e2e3e6e67a70689f69 | 853051eb473691ee9cdea4651913db38cb6e49d4 | /sources/common/test/unitTest/EventSignal.cpp | 8744b4b4a981df91e62a3ee2437102fb12f2563f | [
"MIT"
] | permissive | WojciechRynczuk/vcdMaker | fb67c74cc2d89da586f0d108ac673c34be7a8a5a | 9432d45164806d583016df586f515b0e335304e6 | refs/heads/v4_release | 2021-07-09T02:16:25.451579 | 2020-12-27T18:09:40 | 2020-12-27T18:09:40 | 46,375,377 | 34 | 1 | MIT | 2020-12-27T18:09:41 | 2015-11-17T21:04:52 | C++ | UTF-8 | C++ | false | false | 3,025 | cpp | EventSignal.cpp | /// @file common/test/unitTest/EventSignal.cpp
///
/// Unit test for EventSignal class.
///
/// @ingroup UnitTest
///
/// @par Copyright (c) 2017 vcdMaker team
///
/// Permission is hereby granted, free of charge, to any person obtaining a
/// copy of this software and associated documentation files (the "Software"),
/... |
79f6feb3913d8051bf7988535148c9828f8c9357 | 456d4a833e9e1aedb204b88593e572a24627a4d0 | /src/core/renderer/src/main/c++/dormouse-engine/renderer/shader/Technique.cpp | 912684fca3fe6bc20493653c9e1628b68769a25f | [
"MIT"
] | permissive | blockspacer/dormouse-engine | 14342768be3db8ae8dcf9e8b3f86c87f0c4b5929 | 07ab12f2aaad2a921299d4e9b8f89c97c9ee8da5 | refs/heads/master | 2021-08-27T21:27:35.493849 | 2017-10-22T12:43:40 | 2017-10-22T12:43:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 675 | cpp | Technique.cpp | #include "Technique.hpp"
using namespace dormouse_engine;
using namespace dormouse_engine::renderer;
using namespace dormouse_engine::renderer::shader;
void Technique::bind(graphics::CommandList& commandList) const {
inputLayout_.bind(commandList);
vertexShader_.bind(commandList);
geometryShader_.bind(commandList)... |
3059e7ab24d6f56f6f0d2b7f86ad825006913d23 | 225e224f2d06bf34d30bb221d3a513527a6d123f | /tests/serializable/interfaces/comparable.cpp | 1372232a3ea7ae48cb707a4fd5911facea5bd3a6 | [
"MIT"
] | permissive | molw5/framework | 68763ceb6ba52c43262d7084530953d436ef98b9 | 4ebb4ff15cc656f60bd61626a0893c02e5f3bbcd | refs/heads/master | 2021-01-10T21:33:59.970104 | 2013-04-10T23:15:31 | 2013-04-11T00:44:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,142 | cpp | comparable.cpp | // Copyright (C) 2012 iwg molw5
// For conditions of distribution and use, see copyright notice in COPYING
#include <iostream>
#include <sstream>
#include <array>
#include <UnitTest++/UnitTest++.h>
#include <framework/serializable/base_types.hpp>
#include <framework/serializable/inline_object.hpp>
#include <framework... |
9d5a055389e7bfd65263161411805b764706d73e | 7f62f204ffde7fed9c1cb69e2bd44de9203f14c8 | /NtlLib/Server/servercommon/EventableObject.cpp | 5539e67d1503a59abd4916b0681088b2d7192722 | [] | no_license | 4l3dx/DBOGLOBAL | 9853c49f19882d3de10b5ca849ba53b44ab81a0c | c5828b24e99c649ae6a2953471ae57a653395ca2 | refs/heads/master | 2022-05-28T08:57:10.293378 | 2020-05-01T00:41:08 | 2020-05-01T00:41:08 | 259,094,679 | 3 | 3 | null | 2020-04-29T17:06:22 | 2020-04-26T17:43:08 | null | UTF-8 | C++ | false | false | 7,715 | cpp | EventableObject.cpp | #include "stdafx.h"
#include "EventableObject.h"
EventableObject::~EventableObject()
{
/* decrement event count on all events */
//if (m_events.size() == 0)
// return;
//EventMap::iterator itr = m_events.begin();
//for(; itr != m_events.end(); ++itr)
//{
// itr->second->deleted = true;
// itr->second->DecRe... |
bf26fea3108235b9593227d650deeef642f18442 | 151b1ed23a4d972582cdd26b21c49d8689c804bb | /population.h | 9fe163efa5a04a648208c12267d6f46a870ab925 | [] | no_license | Chuzzle/masters_thesis | 63cf48996c35e6752f82e4ef169d6bace16e83eb | f785d0d6a4ddc45490f73c343fc23d7c686c631a | refs/heads/master | 2020-05-21T19:10:22.282789 | 2017-08-12T18:01:28 | 2017-08-12T18:01:28 | 61,619,714 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 709 | h | population.h | #include <vector>
#include <string>
#include <algorithm>
#include "illegal_event_exception.h"
#include "constants_runspec.h"
#ifndef POPULATION_H
#define POPULATION_H
class Population {
public:
explicit Population();
Population(std::vector<int> initializer) : populations(initializer) {};
int get_pop(std::stri... |
cfd5e881b162bfb595165fa34dd4be96c3313241 | a0315b6cdff3cd53cc6343f7be98130e3ec48e29 | /main.cpp | 5bcf66ee8fdb26395c8be8f0ee30ca8e5977dbc1 | [] | no_license | K4liber/NeuralNetwork | 792920e3af82b1c5354096fa66dfc801a0a8067f | 4401d98d90f7737d2bdcedac5453b9f46decf460 | refs/heads/master | 2021-01-10T16:41:02.346085 | 2016-04-28T13:02:02 | 2016-04-28T13:02:02 | 53,145,922 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,075 | cpp | main.cpp | #include "lib.h"
using namespace std;
int main(int argc,char *argv[])
{
double epsilon;
srand( time( NULL ) );
if(argv[1])
epsilon = atof(argv[1]);
else
epsilon = 0.01;
/*
generateData();
vector<double> dataFromFile = getData("dane1.txt");
// int StreamSize = getStreamSize(fileName);
vector< vector<int> >... |
70c924ec3fdef46a347f6a265d314d9bf4809625 | 0eea8d4513039059627c812c755d8b40a8ce2374 | /RayTracingInOneWeekend/vec3.h | 648513a1b335bdcf84cf9a99ec54e0344edb9ddf | [] | no_license | hyperwired/rt1w | 0c5a1992c7cf39c5adc15087271802b6f65ddadd | 2ed919ffd59edb75e7f473f97b452eb4c89d58f4 | refs/heads/master | 2022-04-15T00:20:47.955640 | 2020-04-13T13:20:37 | 2020-04-13T13:20:37 | 255,219,336 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,525 | h | vec3.h | #pragma once
#include <iostream>
class Vec3 {
public:
Vec3() : e{ 0.f, 0.f, 0.f } {}
Vec3(float e0, float e1, float e2);
float x() const { return e[0]; }
float y() const { return e[1]; }
float z() const { return e[2]; }
Vec3 operator-() const { return Vec3(-e[0], -e[1], -e[2]); }
float operator[](int i) con... |
652b99b1b6693159c493e9874292a91648ee5b1a | 222c3d2fd75c460e7c5cb9e01ee8af4a19f29804 | /aula_14/ConteudoMinistrado.hpp | bc963dd18086f3cec31c64866de32e417e708eef | [
"MIT"
] | permissive | matheusalanojoenck/aula_cpp | e4b8883317fd8af5f2dea256e164228d99bf73f1 | 039bd4f4b11a736f1d800cad97a530e212b30375 | refs/heads/master | 2022-12-15T05:26:21.139261 | 2020-09-11T15:51:20 | 2020-09-11T15:51:20 | 257,736,518 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 435 | hpp | ConteudoMinistrado.hpp | #ifndef CONTEUDO_MINISTRADO_HPP
#define CONTEUDO_MINISTRADO_HPP
#include<string>
class ConteudoMinistrado{
public:
ConteudoMinistrado(std::string descricao, unsigned short cargaHorariaConteudo);
std::string& getDescricao();
unsigned short getCargaHorariaConteudo();
unsigned int getId();
private:
static ... |
6efb8a687a3c7dae5e5032bee915e93f1bb6801d | e331d567c1fd927b4a757ae41ad6319442a4a15e | /main.cpp | 4cd15af2eec0c74f20465dd6976038d6714201b9 | [] | no_license | pmslavin/hanjie | 4b7e6d2bdcc369a968289926640ad7227e6313dd | 6f92d85b9efcc473547847c52bf72babcbcb12bc | refs/heads/master | 2021-01-20T04:29:47.548470 | 2015-01-28T22:41:13 | 2015-01-28T22:41:13 | 29,756,901 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,882 | cpp | main.cpp | #include "Cell.h"
#include "Grid.h"
#include "Frame.h"
#include "SDL2/SDL.h"
std::vector<std::string>
puppy = { "00000011111111111110",
"00111110000000110011",
"01110001110000011001",
"11110111111000001101",
"11101100011000000101",
"11101101011001000101",
"11100110100000000110",
"11100011101110000100",... |
47a69cf279e761347cd7eae518f85d422df0d7dc | f1873886241571eaf4175ec0633a978fa10fc4d0 | /StudentSchedule/Cr.cpp | ea10f415868cb98a7442509e3c4d4558cd3bced6 | [] | no_license | RepTambe/CS-235 | 9dec1c3104828f0cbdfa55c9c190a457604ac5ba | 5c787e530144263a21cadec1fe4d36cbb1b01b58 | refs/heads/master | 2022-04-09T00:48:07.764033 | 2020-03-21T02:39:39 | 2020-03-21T02:39:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 443 | cpp | Cr.cpp | #include <iostream>
#include<string>
#include<iomanip>
#include<sstream>
using namespace std;
#include"Course.h"
#include "Cr.h"
Cr::Cr(string studentCourse, string room)
{
this->room = room;
this->studentCourse = studentCourse;
}
string Cr::GetRoom() const
{
return room;
}
string Cr::toStr... |
67c514a0bae51dc3f92ab00fca7fd72fb3d627b5 | 70418d8faa76b41715c707c54a8b0cddfb393fb3 | /10620.cpp | bee33b1a0a1e7684c45c12a9a7c3efc642b5bb71 | [] | no_license | evandrix/UVa | ca79c25c8bf28e9e05cae8414f52236dc5ac1c68 | 17a902ece2457c8cb0ee70c320bf0583c0f9a4ce | refs/heads/master | 2021-06-05T01:44:17.908960 | 2017-10-22T18:59:42 | 2017-10-22T18:59:42 | 107,893,680 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 874 | cpp | 10620.cpp | #include <bits/stdc++.h>
using namespace std;
/*
Aflea on a chessboard
10620
*/
//typedef __int64 ss;
typedef long long ss;
ss S, X, Y, dx, dy;
struct cor
{
int x, y;
};
int Inside()
{
ss x, y;
x = X / S;
y = Y / S;
if (X % S && Y % S)
{
if ((x + y) % 2)
{
return 1;
}
}
return 0;
}
void Cal()
{
ss i... |
22cfa458a9f737aa6adea4975a00fb41309165ea | ff590bcdaddd559b934c84d71ddfbf00ed7ae86a | /bsdiff/patch_reader_unittest.cc | 8de346d77225e82fe08d03cabe90d59cc619fee5 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | Laymer/updater-hack | d3a0e9a174d9d097ceec2f4677a3f69de08b4297 | 966fe0bb51b76547bfb11effcb205d742e5b79ae | refs/heads/master | 2020-05-14T19:24:31.200944 | 2019-01-17T16:54:25 | 2019-01-17T16:54:25 | 181,929,216 | 1 | 0 | null | 2019-04-17T16:28:01 | 2019-04-17T16:28:00 | null | UTF-8 | C++ | false | false | 9,309 | cc | patch_reader_unittest.cc | // Copyright 2017 The Chromium OS 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 "bsdiff/patch_reader.h"
#include <unistd.h>
#include <algorithm>
#include <limits>
#include <string>
#include <vector>
#include <gtest/gtes... |
797a0ae90e9c35680efe325b8aa7a2221213dc8e | 4d6c3307eaf391b3f7a7a0f7ea23f5d7a49e9b8f | /src/plugins/domeadapter/DomeAdapterDriver.cpp | 49a449423bb73fdb1d8fde5e812f716feff6ffd6 | [
"Apache-2.0"
] | permissive | EricKTCheung/dmlite | f35241c41497781ed3b448639b6cc9f26766882c | 7fe31e16fc18e3c3d8b048a3507f7769ef3f8a9d | refs/heads/master | 2021-01-23T10:38:50.515420 | 2017-05-30T08:44:05 | 2017-05-30T08:44:05 | 93,076,189 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,621 | cpp | DomeAdapterDriver.cpp | /// @file DomeAdapterDriver.cpp
/// @brief Dome adapter catalog
/// @author Georgios Bitzes <georgios.bitzes@cern.ch>
#include <dmlite/cpp/dmlite.h>
#include <dmlite/cpp/catalog.h>
#include <iostream>
#include "DomeAdapter.h"
#include "DomeAdapterDriver.h"
#include "DomeAdapterPools.h"
#include "utils/DomeTalker.h... |
3322e2fd787f3da6b791f78b5a437af1054f8710 | a5f3b0001cdb692aeffc444a16f79a0c4422b9d0 | /main/dbaccess/source/ui/inc/queryorder.hxx | c0fea6b5bdf321cc68bc885ece6d8e340e0f0434 | [
"Apache-2.0",
"CPL-1.0",
"bzip2-1.0.6",
"LicenseRef-scancode-other-permissive",
"Zlib",
"LZMA-exception",
"LGPL-2.0-or-later",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-philippe-de-muyter",
"OFL-1.1",
"LGPL-2.1-only",
"MPL-1.1",
"X11",
"LGPL-2.1-or-later",
"GPL-2.0-only",
... | permissive | apache/openoffice | b9518e36d784898c6c2ea3ebd44458a5e47825bb | 681286523c50f34f13f05f7b87ce0c70e28295de | refs/heads/trunk | 2023-08-30T15:25:48.357535 | 2023-08-28T19:50:26 | 2023-08-28T19:50:26 | 14,357,669 | 907 | 379 | Apache-2.0 | 2023-08-16T20:49:37 | 2013-11-13T08:00:13 | C++ | UTF-8 | C++ | false | false | 3,449 | hxx | queryorder.hxx | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
3af5773a7a258dd375d7444000341d01d06d193f | 3e814f0ed8f3563880228f837c851021fc561ba4 | /Lab4_Chow_Katrine/university.hpp | 4f743048e56814238fef575baf615ce5192d97f3 | [] | no_license | katrinechow/OSU-CS-162 | a356ba8cdcc48b89d051283dd415b55eb186d0aa | 082fba9bb4bfa1de742d6e9cdc1e1d74c546e1e0 | refs/heads/master | 2020-06-08T16:07:12.269212 | 2019-06-22T17:42:20 | 2019-06-22T17:42:20 | 193,259,431 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 987 | hpp | university.hpp | /*******************************************************************************
** Program Name: Lab 4 - OSU Information System: university.hpp
** Author: Katrine Chow
** Date: January 29, 2018
** Description: This is the header file that declares class University and its
** member variables and functions.
**********... |
bb6496d851efad4ceda62804b4d23d241df1a40d | 13b541ec3d5c16a3eb9217e43b8a80c160fd99cf | /Assignments/asn0/src/Calculator.cpp | f3addbf6f4941fac48bbdc7fe011898d055dc383 | [] | no_license | Shanaconda/CPSC2720 | 1b2a476325439891bcf5bab1900d44a6797c0c33 | bfb976f25d40b9234c17b519b72f5b28741f7b40 | refs/heads/master | 2022-04-15T07:44:48.566401 | 2020-04-03T05:07:48 | 2020-04-03T05:07:48 | 236,245,323 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 401 | cpp | Calculator.cpp | #include "Calculator.h"
#include "Exception.h"
Calculator::Calculator() {
//ctor
}
Calculator::~Calculator() {
//dtor
}
int Calculator::add(int x, int y) {
return x+y;
}
int Calculator::sub(int x, int y) {
return x-y;
}
int Calculator::mult(int x, int y) {
return x*y;
}
int Calculator::div(int... |
1b43828e22a15f7de5c75a278990929cc51a6b5c | 17c77c9f30817431791e019f0333b699d9c4534c | /inventorywidget.h | b82acfe92bd7b9986a6e61ddd708f4bc3d45f121 | [] | no_license | OOPDS-CEME-NUST/project-for-object-oriented-programming-and-data-structures-pied-piper | b8588ab9f789828ac6c9d43a1062421f47ea39ad | 64c901775401b24cf0e4e1c4846d079d2d6c4eb1 | refs/heads/master | 2020-04-17T09:12:37.918129 | 2019-01-18T17:48:05 | 2019-01-18T17:48:05 | 166,449,090 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 634 | h | inventorywidget.h | #ifndef INVENTORYWIDGET_H
#define INVENTORYWIDGET_H
#include "const.h"
#include <QWidget>
#include <QSqlQuery>
#include <QSqlQueryModel>
namespace Ui {
class InventoryWidget;
}
class InventoryWidget : public QWidget
{
Q_OBJECT
public:
explicit InventoryWidget(QWidget *parent = nullptr);
~InventoryWi... |
7ff128403d36e21257bbc3d88319ad866382eace | a70051a3422c1d2333008a3b1a8f17a5796ef577 | /BatMon/BatMon.ino | 715a06b507b8f929ccc9322e76358f678f41b210 | [] | no_license | svenlindvall/BatMon | 3ff122c40a728c45e3a912adc5567bc94b5ef7db | d656dfb5a53084ecc760fa549bc6e277ad95c4f8 | refs/heads/master | 2021-01-22T20:19:16.852029 | 2015-01-12T10:36:55 | 2015-01-12T10:36:55 | 29,130,634 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,609 | ino | BatMon.ino | #include <SoftwareSerial.h>
#include <Wire.h>
#include <EEPROM.h>
#include <Adafruit_INA219.h>
Adafruit_INA219 ina219;
int eepromAddr = 0;
int val = 0;
byte x = 0;
const int anaTempPin = A0;
int tempVal = 0;
int sensVal = 0;
SoftwareSerial serLCD(10, 11); // RX, TX
unsigned long currentMillis; // store the curre... |
96fa685d949343f7a0a8103e700047516be2b908 | 29911ed02983d040acb22501d4638e76773f4b1d | /app/src/main/cpp/session/HttpSession.h | 02eda0574604d91edd1b8ed94795eb05c5f04e09 | [] | no_license | XiaoShenOL/EnvProxy | cfa6dadd676c4cf063dc38a1ef8d03855e07af18 | e07993f293e87143e562daa3a754db89f69726ee | refs/heads/master | 2023-03-17T07:49:07.154929 | 2018-12-18T12:31:06 | 2018-12-18T12:31:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 579 | h | HttpSession.h | //
// Created by Rqg on 24/04/2018.
//
#ifndef ENVPROXY_TASKHTTP_H
#define ENVPROXY_TASKHTTP_H
#include "Session.h"
class HttpSession : public Session {
public:
HttpSession(SessionInfo *sessionInfo);
virtual ~HttpSession();
int onTunDown(SessionInfo *sessionInfo, DataBuffer *downData) override;
... |
44c5566750e73803d2655aa864109c4375cc6eec | e37718db54d1b1dc5d999ff8c4f533923b3ad867 | /src/lib/assembleMatrix.hh | b8aa1080a77d180bfa45bb27a9d387e717d68fdf | [] | no_license | modsim/redicon-dune-immo | 724205b6c35c967d2313e4d00d0a623fce82d3ba | d743ab78f1c8800446ba1855b9b91f8bcecb3532 | refs/heads/master | 2021-01-10T06:05:54.812948 | 2016-04-13T11:56:23 | 2016-04-13T11:56:23 | 47,982,551 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,441 | hh | assembleMatrix.hh | #ifndef DUNE_ASSEMBLE_MATRIX_HH
# define DUNE_ASSEMBLE_MATRIX_HH
#include"dune/common/dynmatrix.hh"
//#define DEBUG
#include "integrateEntityDynamic.hh"
#include "pointSource.hh"
#include "updateMatrix.hh"
//#define DEBUG
template<class GridView, class Function, class Source>
Dune::DynamicMatrix<typename Function:... |
876be0c010659409c3e2bc5488746b91e4a8a273 | 374f318e06e0cc050a7fc7916fa9be1d6f3f5931 | /Pass 2/Object_Code.cpp | fa866322952b44c53cd92506833a0acfce756e16 | [] | no_license | usseif97/Assembler | 5f39c0587bd932ae726dba26036a4311860dab93 | 7634af45f7f1a96ff87ccbc455355a5db2dc58e2 | refs/heads/master | 2020-06-19T18:42:32.633833 | 2019-07-14T11:45:34 | 2019-07-14T11:45:34 | 196,826,779 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,291 | cpp | Object_Code.cpp | #include "Object_Code.h"
#include "Mnemonic.h"
#include <bits/stdc++.h>
#include <iostream>
#include <fstream>
#include <regex>
#include <vector>
#include <algorithm>
#include <set>
using namespace std;
Object_Code::Object_Code()
{
//ctor
}
Object_Code::~Object_Code()
{
//dtor
}
vector <std::array<string, 3>... |
ec5fe053afb39963123720303f5283c975b5de2e | 8a5976285ef19b03c8f92f88cc2eeff5ff064c26 | /src/pollard.h | 12740e77d6ab006495fd9e92311734a380c57589 | [] | no_license | YaZko/ECM | 470b87b60b9d4fe3c551320ede15c933844b2749 | cd1db935423912fd175b28753e62dd776610b7d0 | refs/heads/master | 2021-01-25T08:42:36.447985 | 2012-05-08T15:52:25 | 2012-05-08T15:52:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 332 | h | pollard.h | //
// pollard.h
//
//
// Created by MOi on 13/04/12.
// Copyright (c) 2012 Ecole Normale Supérieure de Cachan. All rights reserved.
//
#ifndef _pollard_h
#define _pollard_h
#include <vector>
#include <stdlib.h>
#include <math.h>
#include <cmath>
#include "utils.h"
using namespace std;
vector<long> pollard(long ... |
6794cf94323246f912edc4a6f5e77475305bf4a0 | e65a4dbfbfb0e54e59787ba7741efee12f7687f3 | /cad/freehdl/files/patch-freehdl_kernel-sig-info.hh | 2c178a3c3cf3397212ab184fae426023f7ed63b7 | [
"BSD-2-Clause"
] | permissive | freebsd/freebsd-ports | 86f2e89d43913412c4f6b2be3e255bc0945eac12 | 605a2983f245ac63f5420e023e7dce56898ad801 | refs/heads/main | 2023-08-30T21:46:28.720924 | 2023-08-30T19:33:44 | 2023-08-30T19:33:44 | 1,803,961 | 916 | 918 | NOASSERTION | 2023-09-08T04:06:26 | 2011-05-26T11:15:35 | null | UTF-8 | C++ | false | false | 720 | hh | patch-freehdl_kernel-sig-info.hh | --- freehdl/kernel-sig-info.hh.orig 2013-02-25 17:49:33.000000000 +0000
+++ freehdl/kernel-sig-info.hh
@@ -164,10 +164,6 @@ template<class T>class sig_info : public
type_info_interface *type, char attr, sig_info_base *base_sig,
acl *aclp, vtime delay, void *sr) :
sig_info_base(iname, n, sln, type, attr, ... |
1414befa2246a961e1f6dba8ba1c0f86ae2e445c | 29c1a92c7aa0d67e3ae5c97f6e8621a4126c7962 | /qminer/demo/demo_app.cpp | a0cee3279ad8e4aa48623662223f074796e5194e | [] | no_license | bergloman/docker-images | 793754aa955e77b369e67fbd989724b4fe0d64e0 | 492feb50261feccdbd6a398f00f129dbaf879d5c | refs/heads/master | 2020-04-23T15:12:16.637224 | 2019-10-26T09:15:33 | 2019-10-26T09:15:33 | 171,256,853 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 598 | cpp | demo_app.cpp | #include <qminer.h>
int main(int argc, char **argv) {
#ifndef NDEBUG
// report we are running with all Asserts turned on
printf("*** Running in debug mode ***\n");
#endif
Env = TEnv(argc, argv, TNotify::StdNotify);
TQm::TEnv::Init();
TQm::TEnv::InitLogger(2, "std");
TQm::InfoLog("Hello");
... |
46ce3c55f6adaa89ec81a53788edfa591f77513d | eaa3e394d3bfbc201c3f90b8362fc071673855d9 | /cuda-template-master/Linal2/src/Linal2.cpp | bef3c56d70ec0b56e0337b97dbf168849f641410 | [
"MIT"
] | permissive | moarseniy/MechMath-4th-year-thesis | de48c14a082153ce94bae9c886ae686634e2d9db | 3a61c2c991571de7c838a8ad393c42bef55f7c32 | refs/heads/main | 2023-06-09T06:16:47.695974 | 2021-06-14T14:58:48 | 2021-06-14T14:58:48 | 356,969,701 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,346 | cpp | Linal2.cpp |
#include <iostream>
//#include <fstream>
#include "Linal2.h"
//#include <cmath>
using namespace std;
MyArray::MyArray() {
this->array_size = 0;
this->p = nullptr;
}
MyArray::MyArray(int array_size) {
this->array_size = array_size;
this->p = new double[array_size];
for (int i = 0; i < array_size; i++) {
p[i]... |
a69f897b10885a8058289c265e04a585bd060941 | d7ebe2640ecfa89b69448d4c9388123bffe3b277 | /src/game.h | 3e7b303f6881875da08aac2590ae44c1fbb14aa7 | [] | no_license | kesslern/fallingsand | 3b436fc5670665db0b6bac0cdc18d77947625238 | 4fea2d40ff634767a7b05c80ad5f58d2c9d6e675 | refs/heads/master | 2021-01-21T13:14:16.041440 | 2015-07-15T03:12:18 | 2015-07-15T03:12:18 | 38,594,102 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 710 | h | game.h | #ifndef GAME_H
#define GAME_H
class Particle;
class SDL_Window;
class SDL_Renderer;
class Game
{
public:
Game(int screen_width, int screen_height);
~Game();
bool run();
int screen_width_;
int screen_height_;
unsigned int current_frame_ = 0;
Particle** particles;
private:
/* Create walls. */
void l... |
13a519a3f3f63b25f0944d2000733b5ccd63594d | 83e79571a6d4d1778d54de3f13d602d5254adcd1 | /src/dal/data_common/Filename.h | 82f745811888ccd7d60b1dfe0ca68241f3361d14 | [] | no_license | jjdmol/DAL | d15d15df36956a2f710170b0f058cf93ea93d604 | f2eb2877d606520b1a660b030532c193ab48cdbb | refs/heads/master | 2021-01-16T21:51:41.112844 | 2011-05-17T11:37:40 | 2011-05-17T11:37:40 | 1,733,529 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 13,219 | h | Filename.h | /***************************************************************************
* Copyright (C) 2009 *
* Lars B"ahren (bahren@astron.nl) *
* *
* This pr... |
ea18ec9e109f09f16707dde4446983b253c28b08 | bdbbc3bdbb90dad659ae54305c5d8615c314801a | /src/mm2_model.h | 4f1d55e9a6e990ed52bd633f86ffff3289aa4a34 | [] | no_license | Diatosta/mm2hook | 45d8c35f6eea99facd00e7d0c8db3dcf49f064f6 | bcb44806ac22c9bc4c0072911fd5c219c4320f0e | refs/heads/master | 2022-12-22T00:32:48.680888 | 2022-10-14T23:00:53 | 2022-10-14T23:00:53 | 59,736,193 | 0 | 0 | null | 2016-05-26T09:08:01 | 2016-05-26T09:08:01 | null | UTF-8 | C++ | false | false | 10,950 | h | mm2_model.h | #pragma once
#include "mm2_common.h"
#include "mm2_gfx.h"
#include "mm2_base.h"
namespace MM2
{
// Forward declarations
class modModel;
class modPackage;
class modShader;
class modStatic;
class asMeshSetForm;
// External declarations
extern class Stream;
extern class gfxPacket;
... |
7623da440496746f9016f298862607eec46159e7 | 67b12f8403572d8114b6baccc58d20661159a2ee | /src/neva/pal/public/pal_factory.cc | 270106f974f5f946a5649d9b12a596165845684b | [
"BSD-3-Clause"
] | permissive | Igalia/chromium68 | 08b257ce3b99bb827c2eaf701f61752cc31d6333 | c4d219c3e4b8936e1a94a77bc047b2a08dfd09b8 | refs/heads/integrate_upstream_ozone | 2021-06-30T18:23:01.034847 | 2018-12-06T08:12:07 | 2018-12-06T08:12:07 | 159,666,720 | 0 | 4 | null | 2018-12-18T14:17:14 | 2018-11-29T12:59:43 | null | UTF-8 | C++ | false | false | 1,201 | cc | pal_factory.cc | // Copyright (c) 2018 LG Electronics, 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 or agre... |
e7667626e0f5899c1c97e9a6c5f9fd8b8483aba4 | e1951b7f7a739b96e961797f8849e58dcb41f00d | /test/coordinates/array_coordinates.hpp | c8016c1bf7609795bde0fec68fc8eb993659af64 | [
"MIT"
] | permissive | jonathanpoelen/falcon | fcf2a92441bb2a7fc0c025ff25a197d24611da71 | 5b60a39787eedf15b801d83384193a05efd41a89 | refs/heads/master | 2021-01-17T10:21:17.492484 | 2016-03-27T23:28:50 | 2016-03-27T23:28:50 | 6,459,776 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 125 | hpp | array_coordinates.hpp | #ifndef _FALCON_TEST_COORDINATES_INDEX_HPP
#define _FALCON_TEST_COORDINATES_INDEX_HPP
void array_coordinates_test();
#endif |
4c2ed75edc50074462397f215566b25081a2551d | 8cce708c237041daa227063fefdd7965e0b81434 | /Krimp/trunk/croupier/afopt/Global.h | 50732227308e7ab2af9b981d0f7058be0d3e103b | [
"Apache-2.0"
] | permissive | arcchitjain/Mistle | 21842571646a181d3854a6341372a624826d67ff | 60d810046a6856860ac6dbb61f0b54a6d8b73e84 | refs/heads/master | 2023-03-12T21:18:40.961852 | 2021-03-01T09:44:51 | 2021-03-01T09:44:51 | 218,982,946 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,226 | h | Global.h | //
// Copyright (c) 2005-2012, Matthijs van Leeuwen, Jilles Vreeken, Koen Smets
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
//
// Redistributions of source code must retain the above copyri... |
58d1368ad2ea59b465096c90adef8d1164f6cc0a | 42886436abf12b3551f9807c5ed4c2899485a1ba | /glow/src/camera.h | 1110421322a4f7304ad0481c1029a0fdd4aa221e | [] | no_license | tfiner/cpsc-599 | 39086cfd689bff19148fabfe1b7b299743b454e5 | b4a3a2dc003ab0f2455fb661a8969bb2d29ff34e | refs/heads/master | 2021-01-01T20:12:37.491849 | 2014-11-09T08:52:31 | 2014-11-09T08:52:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,947 | h | camera.h | // Tim Finer
// tfiner@csu.fullerton.edu
// CPSC-599
//
#pragma once
#include "geometry.h"
#include "color.h"
#include <vector>
namespace glow {
class Scene;
using ColorFilm = std::vector<Color>;
using Samples = std::vector<Vector3>;
// These are the constants during a render of an entire fra... |
932bedd0e0a02e42099d162f90b2b690991e6f44 | 26cda148730d0306dc31524db1aa2efdb1f92294 | /hw1/SimSearcher.cpp | a3a020987e8dc27a09c08245ddca84fdbb017c83 | [] | no_license | qq775193759/database | d3d2683d7181e36fddfd4f47a13ef60b9123a3a8 | eb6d53822f93f34a22056c11b569154ad5618196 | refs/heads/master | 2021-01-21T04:50:46.838263 | 2016-06-21T15:49:53 | 2016-06-21T15:49:53 | 54,774,759 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,442 | cpp | SimSearcher.cpp | #include "SimSearcher.h"
#include <iostream>
#include <fstream>
#include <cmath>
#include <algorithm>
using namespace std;
int compare_gram_freq(vector<int> * a, vector<int> * b)
{
if(a == 0) return 1;
if(b == 0) return 0;
return a->size() < b->size();
}
SimSearcher::SimSearcher()
{
}
SimSearcher::~SimSearcher(... |
a478f58ab11655e9a648bbd72e1563481a153539 | 798439d1d649ea0aafd2a2f4b04d3682bdade428 | /HW 1/Mandelbrot_serial.cpp | 55e091246b7e3e518a7fdcf7175ece4c0963f972 | [] | no_license | maxterk/sf2568 | baabec785356cedf644bf071164185d79f13fa7c | c6e7ce5f7b512842ae7e6e780e11f1f6526681f1 | refs/heads/master | 2021-09-14T01:00:04.758459 | 2018-05-06T21:49:14 | 2018-05-06T21:49:14 | 119,403,797 | 0 | 1 | null | 2018-02-04T20:01:06 | 2018-01-29T15:49:12 | C++ | UTF-8 | C++ | false | false | 2,033 | cpp | Mandelbrot_serial.cpp | #include <iostream>
#include <mpi.h>
#include <cmath>
using namespace std;
class Pixel
{
double re,im;
int pixelValue=-1;
public:
Pixel(double a=0, double b=0)
{
re=a;
im=b;
}
Pixel set_pixel(double a, double b){
re=a;
im=b;
}
int calcPixel(double b, int N)
{
if (pixelV... |
dfb19eac6d9b425f79b40e2cca8e67d223b59400 | 859714cebe3661399f13c430d456bfc51f02ad3e | /c++/test_private_members.cc | 6d7236765fa9e382d3068876d18de760d8c0704e | [
"Unlicense"
] | permissive | ahamez/snippets | ffa9bae57b5f30f1ecc2a4a56269757e8865231f | d048f12697b8fe1629bb7c5a8796f2406fd8b07a | refs/heads/master | 2023-04-30T18:53:56.566367 | 2023-04-25T07:44:36 | 2023-04-25T07:46:59 | 146,336,349 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 338 | cc | test_private_members.cc | #include <iostream>
template <typename T> struct tester;
class foo
{
int x_;
template <typename T> friend struct tester;
};
template <>
struct tester<foo>
{
static int x(const foo& f)
{
return f.x_;
}
};
int main (int argc, char const *argv[])
{
auto f = foo{};
std::cout << tester<foo>::x(f) << '... |
fddc8b03de35c35e569c891f933cf27963a3ba3d | 61c7bd39ef8718be81e88782f4013bc26ade0708 | /FollowActor.h | 8f659ab3d6e7ff9f49901bdd3872eb84c8e9d280 | [] | no_license | Mohamed-Abdelhafiz/Cross3DEngine | 2a1f402f96cdd32cdf99b88b6db7819b41b71df8 | 9101ce2500fb5a10c9795a7c036be8053dd692d6 | refs/heads/master | 2020-03-20T22:46:00.788282 | 2018-03-17T15:32:31 | 2018-03-17T15:32:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 354 | h | FollowActor.h | // Ahmed S. Tolba 2015-2018
#pragma once
#include "Actor.h"
class FollowActor : public Actor
{
public:
FollowActor(class Game* game);
void ActorInput(const uint8_t* keys) override;
void SetVisible(bool visible);
private:
class MoveComponent* mMoveComp;
class FollowCamera* mCameraComp;
class SkeletalMeshCompon... |
7a09a8213cf7e2d45f0e56d27c7bf913670235ac | a5e0c76e55204c3afcdf443c1b83076c4cd8d05a | /cowGymnastics.cpp | 780641254e80d889a5c0098a8b76597b86cd3cda | [] | no_license | nathanblan/competitive_programming | 4451f3f3983774a0af8685a8d7ca36edbe896a68 | 7d61f1eb2cfbebfeb64f867804ff408291514c5e | refs/heads/master | 2022-11-10T13:23:15.523527 | 2020-06-25T05:48:08 | 2020-06-25T05:48:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 948 | cpp | cowGymnastics.cpp | #include<iostream>
#include<vector>
#include<cassert>
#include<fstream>
using namespace std;
ifstream fin("x.in");
ofstream fout("x.out");
int mat[100][100];
int ranks[100][100];
int n, k;
bool compare(int a, int b){
for(int w=1;w<=k;w++){
if(ranks[a][w]<ranks[b][w]) {
continue;
}
else {
re... |
15e17849256dd238b6ce49ee11a85d7272878dfa | f302db83ff02f46a4037b066e4cad2d072b1cef6 | /src/xyz_subscriber.cpp | caff8dfa0a449c6ebdd4174f041afd9cf54bcae0 | [] | no_license | supermandugi/virtualFence | f201ea1ba47da7f37373e86828530258f31c785e | 2d07efb2899862cdac7c8e8ca34920953eccffc1 | refs/heads/master | 2020-07-05T21:57:59.454340 | 2016-12-16T04:54:49 | 2016-12-16T04:54:49 | 73,978,347 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,339 | cpp | xyz_subscriber.cpp | #include "ros/ros.h"
#include <cstdlib>
#include "gazebo_msgs/GetModelState.h"
#include <stdio.h>
#define PI 3.14159265358979
int main(int argc, char **argv)
{
ros::init(argc, argv, "xyz_subscriber");
ros::NodeHandle n;
ros::ServiceClient client = n.serviceClient<gazebo_msgs::GetModelState>("gazebo/get_model_s... |
77c281efcf0e1dfc42c20b0e6ab6df3d70d45da3 | 0bf4e9718ac2e2845b2227d427862e957701071f | /tc/srm/528/ColorfulCookie.cpp | 6cd1bbfe046ab6430495f8e081ea8601012158df | [] | no_license | unjambonakap/prog_contest | adfd6552d396f4845132f3ad416f98d8a5c9efb8 | e538cf6a1686539afb1d06181252e9b3376e8023 | refs/heads/master | 2022-10-18T07:33:46.591777 | 2022-09-30T14:44:47 | 2022-09-30T15:00:33 | 145,024,455 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,961 | cpp | ColorfulCookie.cpp | // BEGIN CUT HERE
// END CUT HERE
#line 5 "ColorfulCookie.cpp"
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <algorithm>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <cstdlib>
#include <string>
#incl... |
28f5f578155a91e937c0ee00eca65669b66cad74 | 7167cef28f9c2848bb404d0def7e8a744354ced3 | /NativeDesigner/app/src/main/cpp/native-lib.cpp | fe0d19502b6e425199b8dc11375ccd21fdefa912 | [] | no_license | geogie/NDK | 3956aaf2382e48682ed0166b190bce7d62e1e5fc | 539f2a72c7344bd4315adc0baf4fc781940aa761 | refs/heads/master | 2020-09-10T01:32:17.530064 | 2019-11-14T05:15:05 | 2019-11-14T05:15:05 | 221,615,862 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,750 | cpp | native-lib.cpp | #include <jni.h>
#include <string>
#include <android/log.h>
// 日志定义
#define LOG_TAG "测试-"
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
// 第三方so中的方法引入
extern "C" std::string getMyString();
extern "C" int add(int a,int b);
extern "C" int sub(int a,int b);
extern "C" int mul(int a,int ... |
00757ea318158856167220b59f0322319a7f36fd | db8dfd7ef00432842d187335ca6598341edc1922 | /apps/code/console_edit_cell.h | 5d350041156aabdd24d33bfa996c645fdac8ea74 | [] | no_license | EmilieNumworks/epsilon | a60746285ede5a603916e5dc9361a689926f0fbd | bb3baa7466f39f32b285f2d14b6dc1f28e22e7a5 | refs/heads/master | 2023-01-28T20:49:55.903580 | 2022-09-02T13:15:05 | 2022-09-02T13:15:05 | 102,631,554 | 1 | 0 | null | 2017-09-06T16:20:48 | 2017-09-06T16:20:48 | null | UTF-8 | C++ | false | false | 1,290 | h | console_edit_cell.h | #ifndef CODE_EDIT_CELL_H
#define CODE_EDIT_CELL_H
#include <escher/responder.h>
#include <escher/highlight_cell.h>
#include <escher/text_field.h>
#include <escher/text_field_delegate.h>
#include <escher/pointer_text_view.h>
namespace Code {
class ConsoleEditCell : public Escher::HighlightCell, public Escher::Respond... |
3ba2896199556728fdeeb09a8a2c384baee192a4 | 72aca11f973b7c337012475ad3111cd20a5dd589 | /luogu/04-Senior/P4025-Test.cpp | f6efdcc74a9bc85ba63458f952b13e8c8d4e674f | [] | no_license | aplqo/exercises | a4cee1acbef91e64aee2bd096cd7e0bb834926a4 | e28f14eaf89481c34bc1a27206e8cea2d2d94869 | refs/heads/master | 2021-06-25T06:34:09.535835 | 2021-04-08T13:52:39 | 2021-04-08T13:52:39 | 217,698,619 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,489 | cpp | P4025-Test.cpp | #include <algorithm>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <utility>
#include "debug_tools/tester.h"
using namespace std;
using namespace apdebug::tester;
using mon = pair<int, int>;
const int maxn = 100000;
enum class Return : int {
Accepted = 0,
Vedirect = 1,
Sequence = 2,
Outpu... |
7908faabba448c183135cfca88e3baa7826ee8b5 | 8a3ac97df15fc2fad495e8c31a94475ef66f5bbe | /Contact Playground/Contact Playground/Reward.h | b46b2fb391dcb74a38e215f4d665a7e53556b36f | [] | no_license | jchen114/ContactSimulation | d2332123796d599735e66951c271b4fd8ce355e1 | f416d399aa36861d95730e354b35b769bfdea424 | refs/heads/master | 2021-01-11T08:32:53.004617 | 2017-11-13T22:02:01 | 2017-11-13T22:02:01 | 76,490,325 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 481 | h | Reward.h | #pragma once
#include "LinearMath\btVector3.h"
#include <set>
#include <memory>
class ColliderObject;
class CollideeObject;
class Reward
{
public:
Reward(std::unique_ptr<ColliderObject> &feelerObj, std::set<CollideeObject *> &collisionObjs, float lowerBound);
Reward(float reward);
Reward();
~Reward();
float Ge... |
0366bbd08af7f369aea91a449e6977e8cd9efdb0 | f7edc75e2fa0ec8c9efc6bc4b03f69c027511524 | /C++/2018_practice/OJ3-9(图上的游走)/B2.cpp | cf753b5217a1bae5c431b77ce7de866fbd11a27b | [] | no_license | Ricky-Ting/coding-in-NJU | 12ce237e2d0b50e78081acab9b3ac635dcca9220 | 7e3d815be3a2c748c92b7e6011b9adebce9f83d1 | refs/heads/master | 2021-05-03T16:44:33.289070 | 2019-05-07T06:22:32 | 2019-05-07T06:22:32 | 120,440,565 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,053 | cpp | B2.cpp | #include<cstdio>
#include<algorithm>
#include<iostream>
#define NODE 410
using namespace std;
int n, m;
struct Node{
int head;
int d;
} node[NODE];
struct Edge{
int n;
int v;
bool c;
int oppos;
} edge[42000];
int P;
bool check[NODE];
//int number = 0;
int deep = 1;
bool dfs(int u){
/... |
306b19c831c7ca6c9197fdbbda560e0a9f386b36 | 861e49fdbda2da5428932ee180ee78f8dcd12f13 | /vaslib/src/weather.h | 956d9d6481b4a8f11d13f533a2237111c0bbe9f8 | [] | no_license | tegami-lpr/vasfmc | b45d08bd864a9f60b963f8b0d862927562f4f1ae | e317b69afae556a4e4c158fd687b6c41122515eb | refs/heads/master | 2023-07-06T19:09:20.219216 | 2021-08-12T13:47:32 | 2021-08-12T13:47:32 | 361,862,282 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,265 | h | weather.h | ///////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2005-2007 Alexander Wemmer
//
// 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 versi... |
28ea49b00cdcc2ec0d1fba29a79afc38c5bd351c | 7867463739545b28a690ce6f258a15ef3721e700 | /AdventureOfLino/srcs/Scene/SubSceneItemMenu.h | 53efc90f15c573cdc5377264feb854ff651b3dfe | [] | no_license | horita-k/MyCreatedGame-AdventureOfLino- | 5dc62b3c76f48317463faa20c8a96272fbce50ff | 59b62f9189958e42fd146c70e56717c8f1e630af | refs/heads/master | 2021-06-02T11:40:32.362297 | 2020-10-05T09:18:51 | 2020-10-05T09:18:51 | 96,800,867 | 0 | 1 | null | 2020-10-05T09:16:18 | 2017-07-10T16:53:28 | C++ | SHIFT_JIS | C++ | false | false | 2,646 | h | SubSceneItemMenu.h | /* -*- mode: c++; coding: shift_jis-dos; tab-width: 4; -*- */
//---------------------------------------------------
/**
* アイテムメニュー選択
* @author SPATZ.
* @data 2015/07/13 23:38:22
*/
//---------------------------------------------------
#ifndef __ITEM_MENU_SELECT_H__
#define __ITEM_MENU_SELECT_H__
#incl... |
f0df45073129ec091ca3ae8382267bdf8c81b370 | fc1fb34b183981f5285dd166fb3969a36c796e67 | /practical-02/function-2-1.cpp | 2499b8cab96b57a28a91661b2bd591f9bccf7e67 | [] | no_license | jinshanwang/OOP | 177deb490c2e523d3ebadb42bff38cf12fc13d7d | 424839a8bdda5ccd1ef5563bfa668b0d93376167 | refs/heads/master | 2021-04-06T09:37:58.115761 | 2018-03-13T04:39:13 | 2018-03-13T04:39:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 424 | cpp | function-2-1.cpp | #include <sstream>
#include <string>
#include <iostream>
using namespace std;
void print_as_binary(std::string decimal_number)
{
int decimal;
std::stringstream ss;
ss<< decimal_number;
ss>> decimal;
int i,j=0;
int a[100];
i = decimal;
while(i){
a[j] = i % 2;
i/=2;
... |
4afb2b448d4fb9140e6a9ceaba08791fa2fb47c7 | 9d6e336e453166a96d4296fe8bca342bf3e6462a | /20200204/alarm_2884.cpp | 97ca6731e13394b9c0bec05bf74de61a696c7902 | [] | no_license | foreverlearn95/baekjoon | cddec62bbc322e7f5cb8161f8c666eb97c13f308 | b9e21edca59624699d44fbb37ef715d8cfff0cc5 | refs/heads/master | 2022-11-11T01:32:18.681262 | 2020-07-07T14:25:21 | 2020-07-07T14:25:21 | 277,650,508 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 212 | cpp | alarm_2884.cpp | //baekjoon 2884
#include <iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(b-45<0){
a--;
if(a<0)
a=23;
b=b+60;
}
printf("%d %d",a,b-45);
} |
e0a9a7e1fa2e07195fb94eeb00ef5f208d394b9b | dc65afa5cf0a1dad64d4749a30882953e0c63513 | /src/errors.h | 6ba9854be4fa8ced090fc4f6fe646450829624c2 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | unbornchikken/arrayfire_js | a55d92be75ebf9a0c1251f20c3ac045a1bdad545 | 812e7690066ba7bd7e0e9370b6fff3c3d7e84083 | refs/heads/master | 2021-01-22T00:59:48.914819 | 2015-06-23T20:12:40 | 2015-06-23T20:12:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,341 | h | errors.h | /*
Copyright 2015 Gábor Mező aka unbornchikken (gabor.mezo@outlook.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable... |
542fe6a942b54f9e70bf2bd9cdca427b4964769b | 462c5a969430d97e245b2bc182fd73d55633ea03 | /c++/sort.cpp | c8aa90315fdc235a2b8ccdf135821facad90acb1 | [] | no_license | JH-R/learngit | be509145bf4313ec1f2deb7a57965af13623d987 | d1cee90f589971b889faf8ede4e91d7af2748a86 | refs/heads/master | 2022-06-18T06:02:39.806720 | 2020-05-15T09:54:57 | 2020-05-15T09:54:57 | 257,562,839 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 262 | cpp | sort.cpp | #include<bits/stdc++.h>
using namespace std;
bool comp(int a,int b);
int main()
{
int a[10];
for(int i=0;i<10;i++)
cin>>a[i];
sort(a+0,a+10,comp);
for(int i=0;i<10;i++)
cout<<a[i]<<" ";
cout<<endl;
return 0;
}
bool comp(int a,int b)
{
return a>b;
}
|
5e87d10d98c263b05d685f384606dfee5b6fefcd | a2d8b10890dfb1aa14d989d6e32856345acaf545 | /includes/eeros/hal/SBGEllipseA.hpp | 62ee6663a5090a8d0d2be856d13f0250d9bff6a9 | [
"Apache-2.0"
] | permissive | eeros-project/eeros-framework | 0a1e39788ee3a70c7f65062fb0e2f5bf9835d512 | edd6574260127924ecbc6c0d907e0162e240c40e | refs/heads/master | 2023-07-08T16:00:33.621592 | 2023-06-28T11:21:05 | 2023-06-28T11:21:05 | 17,247,637 | 16 | 15 | Apache-2.0 | 2023-06-27T09:52:11 | 2014-02-27T12:11:16 | C++ | UTF-8 | C++ | false | false | 8,524 | hpp | SBGEllipseA.hpp | #ifndef ORG_EEROS_HAL_SBGELLIPSEA_HPP_
#define ORG_EEROS_HAL_SBGELLIPSEA_HPP_
#include <eeros/logger/Logger.hpp>
#include <eeros/core/Thread.hpp>
#include <eeros/math/Matrix.hpp>
#include <sbgEComLib.h>
#include <atomic>
using namespace eeros::math;
using namespace eeros::logger;
namespace eeros {
namespace hal {
... |
96aff557eb2946ccffb1149e47aae0bd89c34264 | ceea3bfb7f90d48c142123fa93f0761ecfea35aa | /KFTools/KFDeploy/KFDeployDefine.h | ec26e52233b9440b852b1400e7f9bd7cac635ffd | [
"Apache-2.0"
] | permissive | lori227/KFrame | c0d56b065b511d5832247cf7283eee1f0898e23a | 6d5ee260654cc19307eb947f09bae055d3703d95 | refs/heads/master | 2021-06-21T17:07:17.628294 | 2021-05-21T02:19:08 | 2021-05-21T02:19:08 | 138,002,897 | 25 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 1,135 | h | KFDeployDefine.h | #ifndef __KF_DEPLOY_DEFINE_H__
#define __KF_DEPLOY_DEFINE_H__
#include "KFrame.h"
#include "stdafx.h"
using namespace KFrame;
namespace KFDeploy
{
static const char* _deploy_file = "deploy.xml";
static const char* _log_name[] =
{
"All",
"Debug",
"Info",
"Warn",
"E... |
af08590453b9eb96ba2b2f5822b710a9a25d3afd | d76c5b40e37a79a5d0009a5b0bf7f36d73612e12 | /FiboKernelLib/ke_scoped_unicode_string.cpp | b77b98cd27e299d6a0a0da60002fa781bc66b21c | [
"BSL-1.0"
] | permissive | pvthuyet/fibo-windows-kernel-lib | d2141a0d48a5a0c8aa35968f394b439d9e68fc05 | ae0387d71c880c43600ba7b30a487633ec52cd73 | refs/heads/master | 2022-12-27T19:16:59.668777 | 2020-10-03T09:39:17 | 2020-10-03T09:39:17 | 298,961,468 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,850 | cpp | ke_scoped_unicode_string.cpp | #include "ke_scoped_unicode_string.h"
#include "ke_memory.h"
#include "ke_strutils.h"
#include "ke_utility.h"
namespace fibo::kernel
{
ScopedUnicodeString::ScopedUnicodeString() :
ScopedUnicodeString(PagedPool, 0)
{
}
ScopedUnicodeString::ScopedUnicodeString(PCWCH src, size_t count, POOL_TYPE type, ULONG tag) :... |
2b4839b031c204f9cea0060cf2c9bd05abe09a46 | 0348744c233b0e94f623b8ee7b662aea4faaf0ea | /zoos.cpp | a14c7aad150743e433b40c2a73e26c582c152d9b | [] | no_license | Shashank-Varnekar/Basic-Programming-Hackerearth | bbf495884cac38d111deeefae92f32b3bed9d791 | 42a179f08be38878057107bb46698bddf51b7434 | refs/heads/master | 2023-04-28T20:28:59.760056 | 2021-05-17T15:31:16 | 2021-05-17T15:31:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 278 | cpp | zoos.cpp | #include <iostream>
#include <cstdio>
using namespace std;
int main()
{
char str[20];
scanf("%s",str);
int i = 0, z = 0, o = 0;
for(i=0; i<20; i++)
{
if(str[i] == 'z')
z++;
if(str[i] == 'o')
o++;
}
if(2*z==o)
printf("Yes");
else
printf("No");
return 0;
}
|
5ca48bac5d23e8b461444f3f643004aed9c5bcee | 8f81b0fea52234080b97df67a64a2c3391f2161a | /LeetCode/601-700/P654_Maximum_Binary_Tree.cpp | ca0c2acad514357cc13e0b744a593b5cc8a4bfa6 | [] | no_license | jJayyyyyyy/OJ | ce676b8645717848325a208c087502faf2cf7d88 | 6d2874fdf27fadb5cbc10a333e1ea85e88002eef | refs/heads/master | 2022-09-30T18:02:08.414754 | 2020-01-17T12:33:33 | 2022-09-29T02:24:05 | 129,335,712 | 44 | 16 | null | null | null | null | UTF-8 | C++ | false | false | 1,510 | cpp | P654_Maximum_Binary_Tree.cpp | /*
https://leetcode.com/problems/maximum-binary-tree/description/
输入一个数组,用数组中的最大值作为根结点,并将数组分为两个子数组,递归地进行这一过程,构造最大树
类似于 中序+前序/后序 造树
同类题目 P654
*/
#include <iostream>
#include <vector>
using namespace std;
static int x=[](){
std::ios::sync_with_stdio(false);
cin.tie(NULL);
return 0;
}();
// 思路类似选择排序, 时间复杂度 ... |
ba7fce13fb1465277c7c81a2fa522b8538315c2a | 3a2ee16a24aa136413d633ebd8163f7c0494d4dd | /smon_native/native/smon_native/include/smon/mon/win/win_util.h | 4687335ae53a86b3e3eb5b03ede316928df31869 | [] | no_license | yamoe/smon | 1bd0976d31843e19d268aed42ca4d887108587d9 | 429203e7444aa12bc3e2783b881b8d8382770d83 | refs/heads/master | 2021-08-15T04:39:54.550078 | 2017-11-17T10:41:24 | 2017-11-17T10:41:24 | 111,080,880 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 795 | h | win_util.h | #pragma once
class WinUtil {
public:
static std::vector<std::string> drives()
{
std::vector<std::string> drives;
DWORD len = ::GetLogicalDriveStringsA(0UL, nullptr);
if (len == 0) return drives;
std::string str(len, 0x00);
::GetLogicalDriveStringsA(len, &str[0]);
for (int i = 0; i < str... |
b34775286d1a9897faf20be5ee5359efa07a639c | 647279d2a3f43217a1ae830f07301357b3a24b68 | /src/cpp/Statistics.h | b3bd9f5ffe5a6aa6ea660ae5b6b578757409cf2f | [
"Apache-2.0"
] | permissive | aflorio81/Amazon-MIT-RoutingChallenge | 7e16244a7cf920f713da97c3613172b849e2904b | cbacc7b62a41b81c3e4b9ffde0f8dea0f81d3f5a | refs/heads/main | 2023-08-18T10:53:24.337175 | 2021-10-06T15:14:30 | 2021-10-06T15:14:30 | 397,329,177 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 689 | h | Statistics.h | #ifndef statistics_h
#define statistics_h
#include <iostream>
#include <limits>
#include <vector>
class Statistics {
public:
template<typename T>
static void basicStats(const std::vector<T>& vals) {
// min, max and avg
T minn=std::numeric_limits<T>::max();
T max... |
57741dd1b947c7859e03143e7f8e2d0c8346a1ea | e37d0e2adfceac661fbd844912d22c25d91f3cc0 | /CPP-Programming-Language/chapter21-classlevels/ex25.cpp | 1ed2c07d050bbbe930c7f118635c825dfe2fb955 | [] | no_license | mikechen66/CPP-Programming | 7638927918f59302264f40bbca4ffbfe17398ec6 | c49d6d197cad3735d60351434192938c95f8abe7 | refs/heads/main | 2023-07-11T20:27:12.236223 | 2021-08-26T08:50:37 | 2021-08-26T08:50:37 | 384,588,683 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,107 | cpp | ex25.cpp | #include <iostream>
#include <locale>
#include <sstream>
int main(int argc, char** argv) {
using namespace std;
locale loc;
if (argc > 1) {
// use "locale -a" to find valid locales for your system
// e.g.: en_US.utf8
// default is usually "C"
loc = locale(argv[1]);
}
... |
3e4e7fe820b0f5fa1b5e40cd7c7aba4db9009a5f | 3c761ddfeadde07c39f033b12457fe490df6339f | /br_moneyhub4.0/Security/BankDrv/DriverFrame.cpp | 40a4a4fb11b090953dd0d427241a380f440a5081 | [] | no_license | 3660628/chtmoneyhub | d8fe22cef017d7a12b4c582667b6484af01032d2 | 7861d387a49edfe395379c1450df18cb1b8658f2 | refs/heads/master | 2021-01-02T09:20:08.263263 | 2012-01-11T08:32:20 | 2012-01-11T08:32:20 | 33,034,456 | 2 | 1 | null | null | null | null | GB18030 | C++ | false | false | 8,927 | cpp | DriverFrame.cpp | /**
*-----------------------------------------------------------*
* 版权所有: (c), 2010 - 2999, 北京融信恒通科技有限公司
* 文件名: DriverFrame.cpp
* 说明: 驱动框架。
* 版本号: 1.0.0
*
* 版本历史:
* 版本号 日期 作者 说明
* 1.0.0 2010.07.03 曹家鑫
*-----------------------------------------------------------*
*/
#include "ntddk.h"
#... |
723cbe52eb2ee744a4758cdd43806161ff75ad5c | bf7d993e0286740d76b8472ce0b4954fb0f87927 | /Arduino/ESP_conf.ino | 85e3497a16328b12d4c1dccc98348cb0e24f20be | [] | no_license | Gezele14/Proyecto2-Arqui | a1215c88c1a9002b6009bbfed6d589c5217f6835 | ef0e713aadb6657d085a3a023531b4212be58b81 | refs/heads/master | 2022-12-12T19:59:44.507750 | 2019-11-19T05:08:13 | 2019-11-19T05:08:13 | 218,405,700 | 0 | 0 | null | 2022-12-06T14:55:42 | 2019-10-29T23:53:46 | JavaScript | UTF-8 | C++ | false | false | 3,783 | ino | ESP_conf.ino |
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
//Credenciales para la red
int contconecxion = 0;
const char *ssid = "Gerardoz";
const char *pass = "gera1234";
//Calculo de delay para la conexion con MQTT
unsigned long prevmillis = 0;
//Credenciales para la conexion con MQTT
char SERVER[50] = "soldier.cloudmqtt.... |
610a7f7a8914e79bce0c8f00c65899c4ce822118 | ac3f1fbbef5756519a9a858ec8852f43eaac5b65 | /xml_locations_map.h | 7f7f4d7ad67baaa88e7cf843a74fd95f276cfcb6 | [] | no_license | adir-ch/Lonely-planet | 3e6c3c427afd456d9a3bfa0a6e2b5be8c848f1f1 | b317f13d4cf57b4b661660cb67c432f45e4160c1 | refs/heads/master | 2016-09-05T10:52:19.096308 | 2014-04-09T06:22:27 | 2014-04-09T06:22:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 868 | h | xml_locations_map.h | #ifndef __XML_LOCATIONS_MAP_H_INCL__
#define __XML_LOCATIONS_MAP_H_INCL__
#include <pugixml.hpp>
#include "locations_map.h"
/**
* TODO: Add class description
*
* @author adir
*/
class XMLLocationsMap : public LocationsMap, pugi::xml_tree_walker {
public:
// Constructor
XMLLocationsMap();
... |
fcf366ce0d2c579197c00a0ff4122fb39e4a808e | 1da3e9574175754b9201f3a31714f5031c027778 | /LearnOpenGL/utility/Mesh.h | b01a2d8ddbe0a1ef05b7f3bd785cea9bd943b9d4 | [] | no_license | Floating-light/Games101 | df98d92d706dc7c0eda3d9f77d425d13f8e7ee39 | 9a878dcdcbf163a72c00eccb6d8f7ffe8b73dd60 | refs/heads/master | 2023-07-04T03:03:36.561018 | 2021-07-22T12:59:38 | 2021-07-22T12:59:38 | 257,591,290 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,105 | h | Mesh.h | #pragma once
#include "CoreType.h"
#include <string>
#include <vector>
#include <memory>
#include "Material.h"
#include "Shaders/Shader.h"
struct BVertex
{
Vector3D Position;
Vector3D Normal;
Vector2D TexCoords;
};
struct BTexture
{
unsigned int id;
std::string type;
std::string path; // store path of texture ... |
ac9d9f5ff64ede107fe75fd036edd9dd6127e66b | 61b90ba8c153c11ed3d1465a33c33e282ff3841c | /app/Intro.h | ebbb0c8e8d00fe93acfeca94bb2569e28d67f97a | [
"Apache-2.0"
] | permissive | Rexagon/cybr | a3784a80a6fda0aad7d3b66974a4c185a4006a8c | bcffe1192cf3d4bf25c4ff0b6324e5bcc024dfa5 | refs/heads/master | 2021-01-01T17:59:26.271628 | 2017-07-31T18:50:46 | 2017-07-31T18:50:46 | 74,701,506 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 354 | h | Intro.h | #pragma once
#include <memory>
#include "State.h"
#include <SFML/Graphics.hpp>
class Intro : public State
{
public:
Intro();
~Intro();
void init() override;
void close() override;
void update(const float dt) override;
void draw(const float dt) override;
private:
std::unique_ptr<sf::Sp... |
bea3c0c5aeda7c478dab728d927d0173acba7a5d | 9f520bcbde8a70e14d5870fd9a88c0989a8fcd61 | /pitzDaily/397/pa | c2eb052451c160b4aed435340158cf0ebacfed93 | [] | 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 | 104,794 | pa | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
... | |
d5c218041e5bd80c45e4c52eba0ccdc2027d18fe | dea5814556734b95426f09cd2f9cc381ef5abd6b | /includes/protocol/Phy.h | 5d0632f8bc588dde0ddcbe2766bb22922dc07787 | [] | no_license | hamliao/SimulationStack | a0b73a662de5c06093fc5ac8f6b660563bdbc891 | 65b2991f48e781e99909c0939722d60bb0adc003 | refs/heads/master | 2020-03-18T23:27:59.654559 | 2018-06-05T10:57:21 | 2018-06-05T10:57:21 | 135,404,517 | 0 | 0 | null | 2018-06-01T01:30:01 | 2018-05-30T07:23:37 | C++ | UTF-8 | C++ | false | false | 112 | h | Phy.h | #pragma once
#include "Protocol.h"
class Phy : public Protocol
{
public:
explicit Phy():Protocol(PHY){}
};
|
782fc003233ebaabd27be366a21398827f43ca46 | 3f90ad82a713208ac2dfc750168947a8a37b87a2 | /Lab06/prj/src/AdvancedStopwatch.cpp | ed15e85df4e023fc5aa02d7b02092923317d9021 | [] | no_license | 218685/PAMSI | d91082a8c572197ffc92b7f0acdeb87c4f930036 | ef6c34bfeebd2de6cd656a3e067b94829718a595 | refs/heads/master | 2021-01-17T07:11:35.381506 | 2016-05-29T22:05:22 | 2016-05-29T22:05:22 | 52,258,283 | 0 | 2 | null | 2016-02-23T12:59:46 | 2016-02-22T08:24:00 | null | UTF-8 | C++ | false | false | 2,343 | cpp | AdvancedStopwatch.cpp | #include "AdvancedStopwatch.hh"
using namespace std;
AdvancedStopwatch::AdvancedStopwatch(){
ElapsedTimes = new double [MAX_LAPS];
for(int i=0; i<MAX_LAPS; ++i)
ElapsedTimes[i] = 0;
FileBuffer = new double [BUFOR];
for(int i=0; i<BUFOR; ++i)
FileBuffer[i] = 0;
}
AdvancedStopwatch::~AdvancedStopwat... |
23ada3b4f57bdff9a41841e5a93772d8c9b98a2e | 27e9d5d6737c11a96ddba1eb43c2f68991f1532f | /rcbasic_edit/help_menu.cpp | cd2c5744ee5d0661fadd28b9cf20037056c21c2f | [
"Zlib"
] | permissive | n00b87/RCBASIC3 | b7abaf91c247e5ed8adcd9568c1d1e6193b82e83 | b311d53e9ec464ee95688dd29dec0cc8011765ff | refs/heads/master | 2023-04-02T02:08:51.758823 | 2023-02-25T17:01:28 | 2023-02-25T17:01:28 | 69,504,118 | 26 | 4 | NOASSERTION | 2023-02-25T17:01:29 | 2016-09-28T21:11:36 | C++ | UTF-8 | C++ | false | false | 1,218 | cpp | help_menu.cpp | #include "rcbasic_edit_frame.h"
void rcbasic_edit_frame::onDocMenuSelect( wxCommandEvent& event )
{
wxString editor_path_str = wxStandardPaths::Get().GetExecutablePath();
wxFileName editor_path(editor_path_str);
editor_path.SetFullName(_(""));
wxString cwd = wxGetCwd();
wxSetWorkingDirectory(editor... |
0e4a0880987301713b6c5cd7724756e050480c70 | ce023bd6088d310f1509385ba3346933582ba376 | /src/tables.cc | c42f4c4c0bb52fe48454f7a4869a973f11cfaf1c | [] | no_license | lsst-dm/fe55 | 816f9fa1d7e5f14ea32cee3a1a7a8865be87bd88 | 6b4dc64df057ad45fc88accf2ba10d72a5b1e1f2 | refs/heads/main | 2023-08-09T07:19:30.377424 | 2023-07-10T00:47:54 | 2023-07-10T00:47:54 | 37,222,495 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,567 | cc | tables.cc | /*
* rv_ev2pcf.c -- Convert evlist to basic calibration file
*
* Author: gbc@space.mit.edu 17 Oct 1992
*
* The primary calibration file is a QDP file giving a
* histogram of the number of events of each Astro-D
* grade, preceeded by QDP/PLT plotting commands. A
* header giving the experimental source parame... |
cb6c92d55047e8d4850ec9fedf554972e18efc59 | 2086617f3eccf7c769add24179dab1c116644882 | /ModuloAdministracion.cpp | 1094cee8d3ec73fac6388dda6a1c3c9247eb220a | [] | no_license | Elias99garcia/Trabajo-integrador-segundo-cuatrimestre | ae26b737609f679d767e4ac0ca92d7eab018f80e | f8f1ff9a351b06deecc3d47f31b16ed4e09e49c2 | refs/heads/main | 2023-01-30T17:12:09.632041 | 2020-12-17T00:31:47 | 2020-12-17T00:31:47 | 316,785,545 | 0 | 1 | null | null | null | null | ISO-8859-1 | C++ | false | false | 8,185 | cpp | ModuloAdministracion.cpp | /*
Módulo Administración:
La gerencia del centro veterinario es la encargada de realizar el alta de los veterinarios que trabajan
en la institución, así como también de los empleados que realizan la registración de los turnos y mascotas.
Es el área encargada desea visualizar las atenciones realizadas por los profes... |
5411014acfd9a769cd9ad5f3087da51b225d6df5 | ee86d6079aeba223684e421efcb68d565e503b23 | /LibVertexPerfect/LibVertexPerfect/Graphics/Shaders/ShaderProgram.cpp | f4676aea5c0bed4fcc6b90985e153e5b03a0799d | [
"MIT"
] | permissive | Caresilabs/LibVertexPerfect | e0448531338303c715d9522a8a7197a29beed904 | a1b20582204de88bb24c37e56096c8788b18d55b | refs/heads/master | 2021-01-23T05:29:18.829076 | 2017-05-02T18:23:44 | 2017-05-02T18:23:44 | 86,308,563 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,818 | cpp | ShaderProgram.cpp | #include "stdafx.h"
#include "ShaderProgram.h"
#include <D3D11.h>
#include <d3dCompiler.h>
#include <fstream>
#include "../DXGraphics.h"
ShaderProgram::ShaderProgram() {
DeviceContext = static_cast<DXGraphics*>(LVP::Graphics)->DeviceContext;
}
void ShaderProgram::Begin( Camera & camera ) {
//set topology
DeviceCon... |
16e551ba015c93c787d1f095a74cbd7f67ecdcfa | 2f8bf12144551bc7d8087a6320990c4621741f3d | /src/library/vm/vm_aux.cpp | d40c420d4c0e168654b5fb53c5a774a6e6d7611a | [
"Apache-2.0"
] | permissive | jesse-michael-han/lean4 | eb63a12960e69823749edceb4f23fd33fa2253ce | fa16920a6a7700cabc567aa629ce4ae2478a2f40 | refs/heads/master | 2020-05-20T00:50:10.594835 | 2019-05-06T21:24:20 | 2019-05-06T21:24:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 877 | cpp | vm_aux.cpp | /*
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <string>
#include <iostream>
#include "util/timeit.h"
#include "library/trace.h"
#include "library/vm/vm.h"
#include "library/vm/vm_string.h"
#incl... |
696d0379eef5e469885db027a5ad1bd9ae335378 | 4f3f01ca4a864dbe0ad19667db42c7a3ed8c80c0 | /PBR/Core/Light.cpp | 99c1928067c0caa76b145ce4033be54220f7fd13 | [
"MIT"
] | permissive | bbtarzan12/Mesh-Viewer | 07f30c753bd16fd0847a0010468e4cb3b7afca87 | 6e802348887760ae5062653e849d23cb176fd98a | refs/heads/master | 2021-01-04T17:46:38.431398 | 2020-02-25T11:55:34 | 2020-02-25T11:55:34 | 240,689,297 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 535 | cpp | Light.cpp | #include "Light.h"
#include "Material.h"
#include <string>
Light::Light(const glm::vec3& position, const glm::vec3& color, const float power)
:position(position), color(color), power(power)
{
}
void Light::Draw(const std::shared_ptr<Material> material, int index /*= 0*/) const
{
std::string indexString = std::to_s... |
54e2370db9dc9511e416797506f048c3b9107170 | c0a9417b6ee96ec4df39b9f95165be0f53a0b2b8 | /Engine/System/Codes/Timer_Mgr.cpp | 41dd47ab37a32125b4b861adda11039f3ae598a7 | [] | no_license | SeungyulOh/Bryan_Project | e84641bf178125c8bbcb43a955c03eb48fe42efb | aaef5e0d0ccb9248b8a226b1ca8e70e982d491e7 | refs/heads/master | 2021-01-20T01:33:00.055580 | 2017-04-25T02:33:00 | 2017-04-25T02:33:00 | 89,294,250 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,235 | cpp | Timer_Mgr.cpp | #include "Timer_Mgr.h"
using namespace Engine;
IMPLEMENT_SINGLETON(CTimer_Mgr)
Engine::CTimer_Mgr::CTimer_Mgr()
{
}
Engine::CTimer_Mgr::~CTimer_Mgr()
{
}
HRESULT Engine::CTimer_Mgr::Ready_TimerMgr(const _tchar* pTagTimer)
{
CTimer* pTimer = Find_Timer(pTagTimer);
if(pTimer != NULL)
return E_FAIL;
pTimer =... |
d311bc83f67701bbdd8e42e9894287627a5bda75 | c80df697c0b66cd58a039c928574926bd6161a36 | /runtime/vm/field_table.cc | 19f43c8fee72bdbb8d9f0f367abcc5bd5e970df3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-unknown"
] | permissive | dart-lang/sdk | d4e50700dfc54b33c0a7a09fab1aa9623ebc84e5 | b25873f11c68772408f6a4aea5f5c961f31ac9f7 | refs/heads/master | 2023-08-31T11:13:09.400940 | 2023-08-31T09:10:57 | 2023-08-31T09:10:57 | 35,726,310 | 10,701 | 2,079 | BSD-3-Clause | 2023-09-14T10:34:15 | 2015-05-16T14:14:58 | Dart | UTF-8 | C++ | false | false | 4,626 | cc | field_table.cc | // Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "vm/field_table.h"
#include "platform/atomic.h"
#include "vm/flags.h"
#include "vm/growable_a... |
490c7ae02d4df03900eba2b20ac33f209c69192e | ddb5e989f6ede26ece931af750757bc3ef48aada | /source/LowScoreDistribution.h | 64f3350cba4386f498ee6638b9d4213b1898702f | [
"MIT"
] | permissive | mmore500/tag-olympics | 5d64344a8ce29f8d1244ec08cb873a895e305b40 | a0f00aa534bfd7811ebc94a10749ecbbbcaeb007 | refs/heads/master | 2022-09-27T21:02:56.259757 | 2022-09-22T04:58:57 | 2022-09-22T04:58:57 | 194,933,684 | 0 | 0 | MIT | 2020-09-03T11:14:18 | 2019-07-02T20:55:02 | Python | UTF-8 | C++ | false | false | 1,373 | h | LowScoreDistribution.h | #pragma once
#include <iostream>
#include <limits>
#include "tools/MatchBin.h"
#include "tools/matchbin_utils.h"
#include "tools/Random.h"
#include "config/ArgManager.h"
#include "data/DataFile.h"
#include "tools/string_utils.h"
#include "tools/keyname_utils.h"
#include "Config.h"
#include "Metrics.h"
void LowScore... |
05afaa2f0aeeb6196915845139a5e1678e921936 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/dawn/src/tint/ast/transform/clamp_frag_depth_test.cc | 7a0ac9f6019c3edc79195230ee1135ce4768fbf4 | [
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later"
] | 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 | 8,201 | cc | clamp_frag_depth_test.cc | // Copyright 2021 The Tint Authors.
//
// 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 ... |
3ec5f14ac110a39ad91145370c2d1fcc296a2aa0 | 4848ec1bc21916f8dc0493cbf38dbea97c497755 | /src/common/measurement_conversion/src/measurement_conversion.cpp | f4ef2dcf0a502c33cbab23bf0b3069b5e7c5290f | [
"Apache-2.0"
] | permissive | zsyxs0926/AutowareAuto | c2bcf5b739b2f299ba6e35e0171fa2a98ab9663a | 0334d959a2fd905672c3b9738b23d919bffce602 | refs/heads/master | 2023-06-06T11:28:44.866526 | 2021-06-15T15:17:50 | 2021-06-24T15:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,654 | cpp | measurement_conversion.cpp | // Copyright 2021 Apex.AI, 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 or agreed to i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.