text
string
size
int64
token_count
int64
#include <iostream> #include "Pixel.h" #define LION_DIV 256 LionPixel::LionPixel() { r = 0; g= 0; b = 0; } LionPixel::LionPixel(int red, int green, int blue) { r = red; g = green; b = blue; } LionPixel::LionPixel(int red, int green, int blue, double alpha) { r = red; g = green...
653
274
#include "thread.hpp" #include "fpage.hpp" #include "schd.hpp" #include "ktimer.hpp" #include "ipc.hpp" #include "irq.hpp" namespace f9 { __attribute__((weak)) void root_thread(); __attribute__((weak)) void root_thread() { while(1); } DECLARE_KTABLE(tcb_t, thread_table, CONFIG_MAX_THREADS); //volatile tcb_t *curre...
11,112
5,233
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #include "config.h" #include "timings.h" #include <memcached/protocol_binary.h> #include <stdlib.h> #include <string.h> #include <sstream> #ifdef HAVE_ATOMIC #include <atomic> #else #include <cstdatomic> #endif typedef struct timings_st {...
5,187
2,281
/* MANGO Multimedia Development Platform Copyright (C) 2012-2021 Twilight Finland 3D Oy Ltd. All rights reserved. */ #include <cmath> #include <mango/core/pointer.hpp> #include <mango/core/buffer.hpp> #include <mango/core/system.hpp> #include <mango/image/image.hpp> namespace { using namespace mango; u...
12,039
3,384
// swap QMultiMaps #include <iostream> #include <QMultiMap> #include <cassert> using namespace std; int main () { QMultiMap<char,int> foo; QMultiMap<char,int> bar; QMultiMap<char,int>::iterator it; foo['x']=100; foo['y']=200; bar['a']=11; bar['b']=22; bar['c']=33; foo.swap(bar); cout << "foo co...
711
317
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "extensions/browser/browser_context_keyed_service_factories.h" #include "extensions/browser/api/api_resource_manager.h" #include "extensions/bro...
1,691
498
// Fixation target abstract class // Written by Tim Murphy <tim@murphy.org> 2021 #include "FixationTarget.h" #include "CircleTarget.h" #include "CrosshairBullseyeTarget.h" #include <stdexcept> FixationTarget::FixationTarget(unsigned int diameter) :diameter(diameter) { } unsigned int FixationTarget::getDiameter...
828
280
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: vector<ListNode*> splitListToParts(ListNode* root, int k) { int d=depth(root); vector<int> ls; while(k>0){ ...
1,007
329
//***************************************************************** // Copyright 2015 MIT Lincoln Laboratory // Project: SPAR // Authors: OMD // Description: Implmentation of OrderedFunctionRegistry // // Modifications: // Date Name Modification // ---- ---- ...
2,099
574
/* * Copyright (c) 2014 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
8,694
2,965
// Fill out your copyright notice in the Description page of Project Settings. #include "BuildingEscape.h" IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, BuildingEscape, "BuildingEscape" );
200
64
/************************************************************** * * 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...
4,838
1,729
#include "gpuCgSpiritGadget.h" #include "cuNDArray_operators.h" #include "cuNDArray_elemwise.h" #include "cuNDArray_blas.h" #include "cuNDArray_utils.h" #include "cuNDArray_reductions.h" #include "GadgetMRIHeaders.h" #include "b1_map.h" #include "GPUTimer.h" #include "vector_td_utilities.h" #include "hoNDArray_fileio.h...
9,353
3,437
#include <algorithm> #include <cmath> #include <iostream> #include <iomanip> #include <string> #include <vector> #include "lambda.hpp" using namespace std; bool lessLength(const string &f, const string &s) { return f.length() < s.length(); } void lambda() { vector<string> myStrVec = {"12345", "123456", "1234"...
2,441
949
// ----------------------------------------------------------------------------------------------------- // Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin // Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik // This file may be used, modified and/or redistributed under the terms of th...
2,159
823
/******************************************************************************* * File: Key_name_from_public_data.cpp * Description: Calculate the key's name from its public data (TPMT_PUBLIC) * * Author: Chris Newton * * Created: Tueday 29 May 2018 * * (C) Copyright 2018, University of Surrey. * *****...
3,685
1,149
Matrix4i m = Matrix4i::Random(); cout << "Here is the matrix m:" << endl << m << endl; cout << "Here is m.block<2,2>(1,1):" << endl << m.block<2,2>(1,1) << endl; m.block<2,2>(1,1).setZero(); cout << "Now the matrix m is:" << endl << m << endl;
249
100
#include "CppUnitLite/TestHarness.h" #include "Stack.h" #include <string> SimpleString StringFrom(const std::string& value) { return SimpleString(value.c_str()); } TEST( Stack, creation ) { Stack s; LONGS_EQUAL(0, s.size()); std::string b = "asa"; CHECK_EQUAL("asa", b); }
288
120
#include "korean/core/chars/distance.h" #include <gmock/gmock.h> #include <gtest/gtest.h> using namespace korean::chars; TEST(distance, calculateLevenshtein) { ASSERT_EQ(calculateLevenshteinDistance(L"abcdef", L"abdef"), 1); ASSERT_EQ(calculateLevenshteinDistance(L"안녕", L"안하세요"), 3); ASSERT_EQ(calculateLevensh...
1,091
633
// // Buffer.cpp // ASAE // // Created by Benjamin G Fields on 4/2/18. // Copyright © 2018 Benjamin G Fields. All rights reserved. // // Description: defines the implementatin of the buffer object #include "Buffer.hpp" //Description:return the state of the buffer by saying if it is full,empty or still has space ...
784
267
#include "basic/talker.h" #include <gtest/gtest.h> class MyTestSuite : public ::testing::Test { public: MyTestSuite(){} ~MyTestSuite(){} }; TEST_F(MyTestSuite, lowValue){ Talker rt; int initial_value = 3; int value = rt.doSomeMath(initial_value); ASSERT_EQ(value, initial_value+5) << "Value should be its initi...
650
275
// Boost.Signals2 library // Copyright Douglas Gregor 2001-2004. // Copyright Frank Mori Hess 2007-2008. // Use, modification and // distribution is subject to the Boost Software License, Version // 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // For more in...
4,648
1,410
#include "pch.h" #include "process.h" std::vector<ProcessInfo> GetProcessInfo() { STARTUPINFO st; PROCESS_INFORMATION pi; PROCESSENTRY32 ps; HANDLE hSnapshot; HANDLE processHandle = NULL; std::vector<ProcessInfo> PInfo; ZeroMemory(&st, sizeof(STARTUPINFO)); ZeroMemory(&pi, sizeof(PROCESS_INFORMAT...
2,074
852
/* * The MIT License (MIT) * * Copyright (c) 2017 Nathan Osman * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use,...
3,386
1,058
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/common/extensions/update_manifest.h" #include <algorithm> #include "base/memory/scoped_ptr.h" #include "base/stl_util.h" #include "...
8,323
2,650
/*------------------------------------------------------------------------ * Vulkan Conformance Tests * ------------------------ * * Copyright (c) 2016 The Khronos Group 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 ...
36,168
14,432
#include <vector> using std::vector; using std::swap; class Solution { public: int firstMissingPositive(vector<int>& nums) { int n = nums.size(); for (int i = 0; i < n; ++i) { while (nums[i] > 0 && nums[i] <= n && nums[nums[i] - 1] != nums[i]) sw...
1,527
496
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
4,367
1,403
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/common/extensions/api/system_indicator/system_indicator_handler.h" #include "base/test/values_test_util.h" #include "components/version_...
3,306
999
// ----------------------------------------------------------------------- // // // MODULE : Intelligence.cpp // // PURPOSE : Implementation of the Intelligence object // // CREATED : 9/14/99 // // (c) 1999-2000 Monolith Productions, Inc. All Rights Reserved // // -----------------------------------------------------...
16,636
6,734
#include "stdio.h" #include "util.h" int main(int argc, char** argv) { cmplx_f c = atocmplx_f(argv[1]); c.print(); puts(""); return 0; }
141
70
#ifndef MODULO_FILAS_H//include de guarda #define MODULO_FILAS_H #include <deque> #include <vector> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "Processos/Processo.hpp" #include "../include/LeitorEntradas.hpp" class Filas{ public: /* Esta classe implementa as filas de prioridade simples. S...
1,142
475
// A simple and tail recursive C++ program to reverse // a linked list #include <bits/stdc++.h> using namespace std; struct Node { int data; struct Node* next; }; void reverseUtil(Node* curr, Node* prev, Node** head); // This function mainly calls reverseUtil() // with prev as NU...
1,755
597
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "transformations/resolve_gen_names_collisions.hpp" #include "gtest/gtest.h" #include "openvino/opsets/opset8.hpp" #include "openvino/pass/manager.hpp" TEST(ResolveGeneratedNameCollisionsTest, FixGeneratedNames) { auto...
2,912
1,111
// 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. // // Client for cert_provision library. #include <base/bind.h> #include <base/command_line.h> #include <base/files/file_util.h> #include <base/strings...
6,201
2,141
//////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// #include <SFML/Graphics.hpp> #include <windows.h> #include <cmath> HWND button; //////////////////////////////////////////////////////////// /// Function called whenever o...
4,245
1,374
/*============================================================================== Copyright (c) 2005-2010 Joel de Guzman Copyright (c) 2010 Thomas Heller Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ===...
166,332
62,322
#include <bits/stdc++.h> using namespace std; struct Node { int data; struct Node *left, *right; }; bool iterativeSearch(struct Node* root, int key) { while (root != NULL) { if (key > root->data) root = root->right; else if (key < root->data) root = root->left; else return true; } return false;...
1,039
441
#include <bits/stdc++.h> using namespace std; // input handle #define iln() scanf("\n") #define in(n) scanf("%d",&n) #define ins(n) scanf("%s",n) #define inc(n) scanf("%c",&n) #define inf(n) scanf("%lf",&n) #define inl(n) scanf("%lld",&n) #define ot(x) printf("%d", x) #define sp() printf(" ") #define ots(x) printf("%s"...
1,574
758
// MIT Licensed (see LICENSE.md). #pragma once namespace Zero { /// Create the starting space and load the starting level into that space class DefaultGameSetup : public Component { public: ZilchDeclareType(DefaultGameSetup, TypeCopyMode::ReferenceType); DefaultGameSetup(); // Component Interface void Initi...
776
217
#include "GDCore/Serialization/SerializerElement.h" #include <iostream> namespace gd { SerializerElement SerializerElement::nullElement; SerializerElement::SerializerElement() : valueUndefined(true), isArray(false) {} SerializerElement::SerializerElement(const SerializerValue& value) : valueUndefined(false), e...
8,110
2,296
/*! * \file SickNav350.hh * \brief Defines the SickNav350 class for working with the * Sick NAV350. * * Code by Jason C. Derenick and Thomas H. Miller. * Contact derenick(at)lehigh(dot)edu * * The Sick LIDAR Matlab/C++ Toolbox * Copyright (c) 2008, Jason C. Derenick and Thomas H. Miller * All rights re...
37,188
11,126
/////////////////////////////////////////////////////////////////////////////// // Copyright (c) Electronic Arts Inc. All rights reserved. /////////////////////////////////////////////////////////////////////////////// #include "TestThread.h" #include <EATest/EATest.h> #include <eathread/eathread_thread.h> #include <...
7,087
2,866
/************************************************************************************//** // Copyright (c) 2006-2015 Advanced Micro Devices, Inc. All rights reserved. /// \author AMD Developer Tools Team /// \file ****************************************************************************************/ #include "tootle...
8,693
2,875
#include "UnitTest++/Config.h" #ifndef UNITTEST_NO_DEFERRED_REPORTER #include "UnitTest++/UnitTestPP.h" #include "UnitTest++/DeferredTestReporter.h" #include <cstring> namespace UnitTest { namespace { #ifndef UNITTEST_MEMORYOUTSTREAM_IS_STD_OSTRINGSTREAM MemoryOutStream& operator <<(MemoryOutStream& lhs, const s...
3,371
1,146
/** * @file inter_code_generator.h * @brief 中间代码生成器类具体实现 */ #include "../include/inter_code_generator.h" #define POS(cur) cur->line_number, cur->pos map<string, VARIABLE_INFO_ENUM> Info::VAR_INFO_MAP = { {"double", VARIABLE_INFO_ENUM::DOUBLE}, {"float", VARIABLE_INFO_ENUM::DOUBLE}, {"int"...
16,722
5,754
/** * TimerThread class definition * * @file TimerThread.hxx */ #ifndef TIMERTHREAD_HXX #define TIMERTHREAD_HXX /* Includes -------------------------------------------- */ #include <functional> #include <chrono> #include <unordered_map> #include <set> #include <thread> #include <mutex> #include <condition_variabl...
10,759
2,637
/* * Copyright (C) 2006-2012, Gostai S.A.S. * * This software is provided "as is" without warranty of any kind, * either expressed or implied, including but not limited to the * implied warranties of fitness for a particular purpose. * * See the LICENSE file for more information. */ /// \file parser/uparser.cc...
1,910
718
// This file has been generated by Py++. #ifndef BufferObject_hpp__pyplusplus_wrapper #define BufferObject_hpp__pyplusplus_wrapper void register_BufferObject_class(); #endif//BufferObject_hpp__pyplusplus_wrapper
215
66
#include <test/cpp/tensorexpr/test_base.h> #include <memory> #include <sstream> #include <stdexcept> #include <unordered_map> #include <test/cpp/tensorexpr/padded_buffer.h> #include <torch/csrc/jit/tensorexpr/analysis.h> #include <torch/csrc/jit/tensorexpr/bounds_inference.h> #include <torch/csrc/jit/tensorexpr/eval.h...
82,756
35,577
// -*-Mode: C++;-*- // * BeginRiceCopyright ***************************************************** // // $HeadURL$ // $Id$ // // -------------------------------------------------------------------------- // Part of HPCToolkit (hpctoolkit.org) // // Information about sources of support for research and development of //...
7,948
2,280
/* * TurnByAngle.cpp * * Created on: Apr 14, 2018 * Author: healym */ #include "TurnByAngle.h" #include "../Robot.h" constexpr double LEFT_POWER = .25; constexpr double RIGHT_POWER = -.25; namespace { // Converts an angle (in degrees) to a value in the range [0..360). double normalizeAngle(double angleD...
1,823
667
#include "inst.h" /**************************************************************************** * CLASS 4C ****************************************************************************/ #undef INST #define INST INST_CLASS_4C C33_OP(scan0_rd_rs) { c33word ua, ub; ua = Rs.w; for(ub = 0; ub < 8; ub++) { ...
2,717
1,617
#include <boost/fusion/include/at_c.hpp>
41
18
// 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. #include "chrome/browser/ui/tabs/tab_strip_model_utils.h" #include "chrome/browser/ui/tabs/tab_strip_model.h" #include "components/history/core/brows...
790
265
#include <bits/stdc++.h> using namespace std; int n, num, cnt; vector<pair<int, int> > arr; vector<int> ans; int main(void) { cin.tie(NULL); ios_base::sync_with_stdio(false); cin >> n; for (int i = 0; i < n; ++i) { cin >> num; arr.push_back({num, i}); } sort(arr.begin(), arr.end()); ans.assign(...
554
257
/* * Written by Solar Designer <solar at openwall.com> in 2000-2011. * No copyright is claimed, and the software is hereby placed in the public * domain. In case this attempt to disclaim copyright and place the software * in the public domain is deemed null and void, then the software is * Copyright (c) 2000-2011...
15,265
7,631
/* Copyright(c) 2002 - 2016 Lee Salzman Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribu...
11,421
3,851
/* Copyright 2012 - Le Padellec Sylvain 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 in...
6,483
2,609
class Solution { public: int maxSubArray(vector<int>& nums) { int maxSum = INT_MIN; int sum = 0; for (int i = 0; i < nums.size(); i++) { sum = std::max(sum + nums[i], nums[i]); maxSum = std::max(maxSum, sum); } return maxSum; } };
320
113
#pragma once #include <memory> #include <optional> #include "Interpolations.hpp" #include <glm/vec2.hpp> #include <ngf/System/TimeSpan.h> #include <ngf/Graphics/Rect.h> namespace ng { class Engine; class Camera { public: Camera(); virtual ~Camera(); /// @brief Pans the camera to the target position in a specifi...
1,528
474
class Solution { public:     bool dfs(vector<vector<char>> &board, int row, int col, string &word, int wc) {    if(wc == (int) word.length()){        return true;   }    if(row < 0 or row >= board.size() or col < 0 or col >= board[row].size() or board[row][col] != word[wc])   {        return false;   }    {...
1,110
484
#include <stdio.h> #include <iostream> #include "Graph.h" #include "IntegerSet.h" #include "Queue.h" SparseGraph::SparseGraph(int n) : Graph(n) { nodes = new Node[numNodes]; } void SparseGraph::addEdge(int v1, int v2) { nodes[v1].edge.append(v2); nodes[v2].edge.append(v1); } bool SparseGraph::isAdjacent(int v1...
4,166
1,694
#ifndef __TINYSTL_HASH_MAP__ #define __TINYSTL_HASH_MAP__ #include "hash_table.hpp" #include "allocator.hpp" #include "utils.hpp" namespace TinySTL { template <typename Key, typename Value> static bool isEqualKey(const Pair<const Key, Value> &a, const Pair<const Key, Value> &b) { return a.first == b.f...
3,532
976
/******************************************************************************* Copyright 2006-2012 Lukas Käll <lukas.kall@scilifelab.se> 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:...
5,115
1,981
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
4,241
1,339
#include "pch.h" #include "LoadingWrapper.h" using namespace std; LoadingWrapper::LoadingWrapper(function<void()> ctor, function<void()> dtor) : _dtor(dtor) { Schedule(ctor); } future<void> LoadingWrapper::Schedule(function<void()> fn) { auto disp = Windows::ApplicationModel::Core::CoreApplication::MainView->Core...
542
185
class Solution { public: // left记录当前节点的上一个节点的值 long long left = LONG_MIN; bool XXX(TreeNode* root) { return XXX2(root, NULL, NULL); } bool XXX1(TreeNode* root) { if(!root) return true; if(XXX(root->left)) { // 如果上一个节点的值小于当前节点,说明满足升序,继续遍历,否则返回false if(...
800
318
/* * Copyright 2011 Bjorn Fahller <bjorn@fahller.se> * All rights reserved * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this li...
2,524
923
#include "stdafx.h" #include "Script.h" #include "Object.h" #include "Mesh.h" #include "Transform.h" cg::Script::Script(Object *pObj) :pObject(pObj), transform(pObj->transform), pMesh(pObj->pMesh) {}
201
85
/******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause **********************************************...
1,065
391
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/core/SkTypes.h" #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) #ifdef SK_BUILD_FOR_MAC #import <ApplicationServices/Applicat...
24,656
7,615
/* Copyright 2002-2020 Nikolay Avrionov. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or...
3,200
1,420
#ifndef RENDERBUFFERFORMAT_HPP_INCLUDED #define RENDERBUFFERFORMAT_HPP_INCLUDED namespace gst { // Supported renderbuffer storage formats. enum class RenderbufferFormat { DEPTH_COMPONENT16, DEPTH_COMPONENT24, DEPTH_COMPONENT32, DEPTH_COMPONENT32F }; } #endif
305
123
/********************************************************************** <BR> This file is part of Crack dot Com's free source code release of Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for information about compiling & licensing issues visit this URL</a> <PRE> If that doesn't help, ...
6,560
2,876
/* * Copyright 2018 Google * * 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 in w...
1,580
477
#pragma once #include <functional> #include <memory> #include <optional> #include <vector> #include <Transform/Movable.hpp> #include <Transform/Rect.hpp> #include <Transform/UnitBasedObject.hpp> #include <Transform/UnitVector.hpp> namespace obe::Transform { class Polygon; using point_index_t = unsigned int;...
7,660
1,961
/** * Upbit Open API * ## REST API for Upbit Exchange - Base URL: [https://api.upbit.com] - Official Upbit API Documents: [https://docs.upbit.com] - Official Support email: [open-api@upbit.com] * * OpenAPI spec version: 1.0.0 * Contact: ujhin942@gmail.com * * NOTE: This class is auto generated by the swagger co...
4,259
1,515
//============================================================================== /// /// File: EdLevelAnimationWindow.cpp /// /// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved. /// /// This file is subject to the terms and conditions defined in /// file 'LICENSE.txt', which is part o...
35,812
10,890
/** * Copyright (C) 2018 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be usef...
19,353
6,485
/* * Copyright 2019-present Facebook, 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 a...
12,266
4,305
//+------------------------------------------------------------------ // // File: culong.cxx // // Contents: implementation for CUlongCmdlineObj // // Synoposis: Encapsulates a command line switch which takes an // unsigned long value, eg: /maxusers:10 // // Classes: CUlongCmdlineO...
9,922
3,197
//===- BinaryReader.cpp ---------------------------------------------------===// // // The MCLinker Project // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------------------...
600
130
/* Copyright © 2017 Apple Inc. All rights reserved. * * Use of this source code is governed by a BSD-3-clause license that can * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause */ #ifndef TURI_SGRAPH_TEST_DEGREE_COUNT_HPP #define TURI_SGRAPH_TEST_DEGREE_COUNT_HPP #include <sgrap...
4,698
1,916
#include <../../nrnconf.h> #include <stdio.h> #include <assert.h> #include <stdlib.h> #include <unistd.h> #include "mos2nrn.h" static void getdname(char* dname); #include <string.h> const char* back2forward(const char*); const char* basefile(const char*); int main(int argc, char** argv) { char buf[256]; char dnam...
1,591
777
#include "./cells.hpp" namespace GS_DDMRM { namespace S_IceRay { namespace S_material { namespace S_pattern { namespace S_noise { GS_DDMRM::S_IceRay::S_utility::S_table::GC_value<3,1> GC_cells::M2s_table; } } } } }
320
132
/* * Copyright 2016 The Cartographer 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...
2,260
738
/*********************************************************************************************************************** * * * ANTIKERNEL v0.1 ...
21,479
9,458
// ----------------------------------------------------------------------------------------------------- // Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin // Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik // This file may be used, modified and/or redistributed under the terms of th...
3,295
1,405
/*========================================================================= Program: Visualization Toolkit Module: vtkPointHandleRepresentation3D.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
28,923
9,007
/* $Author = Sargis Ananyan; $Corp = RedM Inc; $Web = https://redm.pro/; $Lincese = BSD 3; $Name = mLang; $Description = A programming language for web programming.; */ #pragma once bool empty_bool __attribute__ ((weak)); int empty_int __attribute__ ((weak)); double empty_float __attribute__ ((weak)); string empty_st...
83,256
31,681
/* ** Copyright(C) 2017, StepToSky ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions are met: ** ** 1.Redistributions of source code must retain the above copyright notice, this ** list of conditions and the following di...
9,424
2,821
// Copyright (c) 2018-2019 The Blocknet developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <qt/blocknetquicksend.h> #include <qt/blocknetaddressbook.h> #include <qt/blocknethdiv.h> #include <qt/blockneticonbtn....
17,638
5,674
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../config.h" #include "fzxx/match.h" #include "fzxx/tty_interface.h" static int isprint_unicode(char c) { return isprint(c) || c & (1 << 7); } static int is_boundary(char c) { return ~c & (1 << 7) || c & (1 << 6); } static void ...
10,851
3,969
#include "storage/data_table.h" #include <pthread.h> #include <cstring> #include <list> #include <unordered_map> #include "common/allocator.h" #include "storage/block_access_controller.h" #include "storage/storage_util.h" #include "transaction/transaction_context.h" #include "transaction/transaction_util.h" namespace ...
20,819
6,004
/* * tilefetcher.cpp -- part of Steps, a simple maps app * * Copyright 2009-2016 Andy Teijelo <www.ateijelo.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.ap...
14,016
5,007
//-------------------------------------------------------------------------------------- // File: ShadowMap.cpp // // Starting point for new Direct3D applications // // Copyright (c) Microsoft Corporation. // Licensed under the MIT License (MIT). //----------------------------------------------------------------...
49,061
17,392
/* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. Copyright (c) 2019 Panda Team */ #include <node_api.h> #include "jsfeature_top.hpp" #include "utils.hpp" template napi_valu...
18,998
7,405
#include "../../amalgamated/rfc_amalgamated.h" class MyWindow : public KFrame, public KMenuItemListener { protected: KMenuBar menuBar; KMenu mFile, mEdit, mHelp; KMenuItem miOpen, miExit, miCut, miCopy, miPaste, miAbout; public: MyWindow() { this->SetText(L"My Window"); this->Create(); miOpen.SetText(L"...
1,970
821
#include <iostream> #include <math.h> using namespace std; int main(void) { int numPrecision = 2; cout.precision(numPrecision); double a = 0; int b = 1; cout << "Value for \"double a\" is: " << fixed << a << endl; cout << "Value for \"int b\" is: " /* << fixed */ << b << endl; return 0; }
303
125