text stringlengths 54 60.6k |
|---|
<commit_before>#include "SkBitmapProcShader.h"
#include "SkColorPriv.h"
#include "SkPixelRef.h"
bool SkBitmapProcShader::CanDo(const SkBitmap& bm, TileMode tx, TileMode ty) {
switch (bm.config()) {
case SkBitmap::kA8_Config:
case SkBitmap::kRGB_565_Config:
case SkBitmap::kIndex8_Config:
... |
<commit_before>/*
CSCI 480
Assignment 3 Raytracer
Name: Brandon Barber
*/
#include <stdlib.h>
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <GLUT/glut.h>
#include <pic.h>
#include <string.h>
#include <cmath>
#include <iostream>
using namespace std;
#define MAX_TRIANGLES 2000
#define MAX_SPHERES 10
#define... |
<commit_before>// Created on: 2007-09-04
// Created by: Andrey BETENEV
// Copyright (c) 2007-2012 OPEN CASCADE SAS
//
// The content of this file is subject to the Open CASCADE Technology Public
// License Version 6.5 (the "License"). You may not use the content of this file
// except in compliance with the License. Pl... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/*
* 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 you under the Apache License, Version 2.0 (the
* "... |
<commit_before><commit_msg>Exclude a few OpenVino flaky tests (#4572)<commit_after><|endoftext|> |
<commit_before>/*!
\copyright (c) RDO-Team, 2011
\file expression.cpp
\author (rdo@rk9.bmstu.ru)
\date 07.03.2011
\brief
\indent 4T
*/
// ---------------------------------------------------------------------------- PCH
#include "simulator/compiler/parser/pch.h"
// -------------------... |
<commit_before>//////////////////////////////////////////////////////////////////////////////
// Copyright � 2007, Daniel �nnerby
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2010-2011, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
<commit_before>/*************************************************************************
*
* $RCSfile: taskpanelist.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: ssa $ $Date: 2002-02-22 09:10:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: gtkgdi.hxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: hr $ $Date: 2006-05-11 10:01:13 $
*
* The Contents of this file are made av... |
<commit_before>/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ap... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2003 The Apache Software Foundation. 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. Redistr... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include <sstream>
#include "SSDB_client.h"
#include "gtest/gtest.h"
#include "ssdb_test.h"
#include <algorithm>
using namespace std;
class RDBTest : public SSDBTest
{
public:
ssdb::Status s;
std::vector<std::... |
<commit_before>// Copyright (c) 2007-2008 Facebook
//
// 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 appl... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// //
// This file is part of Swift2D. //
// ... |
<commit_before>/*
* Copyright (c) 2003-2015, GameDuell GmbH
* 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,
* ... |
<commit_before>/*
Copyright (c) 2012, The Mineserver Project
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this ... |
<commit_before>#include "gtest/gtest.h"
#include "entity/components/PositionManager.h"
TEST(PositionManagerTest, PositionComponentComparisons)
{
PositionComponent p1 = { 3, 4 };
PositionComponent p2 = { 3, 4 };
PositionComponent p3 = { 3, 5 };
EXPECT_TRUE(p1 == p2);
EXPECT_FALSE(p1 == p3);
EXPECT_FALSE(p1 != p... |
<commit_before>/*
Copyright (c) 2017 InversePalindrome
Memento Mori - StateSystem.cpp
InversePalindrome.com
*/
#include "StateSystem.hpp"
#include "EntityManager.hpp"
#include "SystemManager.hpp"
#include "ControllerSystem.hpp"
#include "PositionComponent.hpp"
#include <Thor/Math/Random.hpp>
const ... |
<commit_before>#include <coincident/controller.hh>
#include <coincident/coincident.h>
#include <ptrace.hh>
#include <utils.hh>
#include <elf.hh>
#include <thread.hh>
#include <function.hh>
#include <stdlib.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <map>
#define N_THREADS 16
class... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit (ITK)
Module: itkImageToImageAffineNormalizedCorrelationRegistrationTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2000 Nationa... |
<commit_before><commit_msg>Add additional support for the next upcoming gnokii version (>= 0.6.13) All versions below that number are not binary compatible, which means, that users could never upgrade gnokii without recompiling this import/export filter. With 0.6.13 this should be fixed. No new strings added, just many... |
<commit_before>#include "NAFF.h"
#include <iostream>
extern "C" double tunenaff(double** x, double** xp, int* maxn, int* plane_idx, int* norm_flag) {
// Note: Dropped the two last formal arguments "int* x_len, int* xp_len",
// which can sometimes be recieved as formal/dummy arguments to the function,
// as they... |
<commit_before>/***********************************************************************************************
* Pudir - A pusher of directory to Android
* Version: 1.0
* Copyright 2015 eccard
* MIT License
************************************************************************************************/
#inclu... |
<commit_before>// Copyright 2015 Open Source Robotics Foundation, 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 re... |
<commit_before>#ifndef STAN_MATH_PRIM_FUNCTOR_MULTI_EXPRESSION_HPP
#define STAN_MATH_PRIM_FUNCTOR_MULTI_EXPRESSION_HPP
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/err.hpp>
#include <tuple>
namespace stan {
namespace math {
namespace internal {
constexpr int constexpr_sum() { return 0; }
templat... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __
* / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\
* / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / /
* / / /__ / / // / // / // / / / ___ / // ___ / // /| ' / /
* / /_// /\ / /_// / ... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2014.
// 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)
//======================================... |
<commit_before>/* The MIT License (MIT)
*
* Copyright (c) 2014-2018 David Medina and Tim Warburton
*
* 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 witho... |
<commit_before>/*
This file is part of solidity.
solidity is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
solidity is distributed in ... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>#pragma once
#include <ventura/write_file.hpp>
#include <ventura/read_file.hpp>
#include <ventura/open.hpp>
#include <boost/range/algorithm/equal.hpp>
namespace warpcoil
{
inline bool update_generated_file(char const *file,
Si::memory_range new_content,
... |
<commit_before>// Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <hspp/Cards/Character.h>
#include <hspp/Common... |
<commit_before>#include <climits>
#include <cstdint>
#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
#include "snarkfront.hpp"
using namespace snarkfront;
using namespace std;
void printUsage(const char* exeName) {
const string
AES = " -b 128|192|256",
KEY = " -k key_in... |
<commit_before>/*
* Copyright (c) 2008, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* ... |
<commit_before>/***********************************************************************
filename: SVGData.cpp
created: 30th July 2013
author: Lukas Meindl
*************************************************************************/
/********************************************************************... |
<commit_before>// -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard
// U.S. Geological Survey
//
// <LicenseText>
//
// ----------------------------------------------------------------------
//
#include <porti... |
<commit_before>//
// LODDlg.cpp
//
// Copyright (c) 2005-2007 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#include "vtlib/vtlib.h"
#include "vtlib/core/TiledGeom.h"
#include "LODDlg.h"
#include ... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All right... |
<commit_before>//==================================
// PEDUMP - Matt Pietrek 1994-2001
// FILE: PEDUMP.CPP
//==================================
#include "stdafx.h"
#include <windows.h>
#include <stdio.h>
#include <conio.h>
#include "objdump.h"
#include "exedump.h"
#include "dbgdump.h"
#include "libdump.h"
#include "ro... |
<commit_before>#include "config.h"
#include <rule/rules.hpp>
#include <rule/Literal.hpp>
#include <rule/Optional.hpp>
#include <rule/Discard.hpp>
#include <rule/Multiple.hpp>
#include <rule/Predicate.hpp>
#include <rule/Proxy.hpp>
#include <rule/Alternative.hpp>
#include <rule/Lazy.hpp>
#include <rule/Reduce.hpp>
#in... |
<commit_before>#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <vector>
#if defined(__MACH__)
#include <mach/mach_time.h>
#elif defined(__linux__)
#include <time.h>
#endif
uint64_t nanotime() {
#if defined(__MACH__)
static mach_timebase_info_data_t info;
if (info.denom ... |
<commit_before>#include <nan.h>
#include <openssl/bio.h>
#include <openssl/buffer.h>
#include <openssl/crypto.h>
#include <openssl/pem.h>
#include <openssl/rsa.h>
#include <openssl/x509.h>
NAN_METHOD(extractPublic)
{
const auto sourceString = info[0]->ToString();
if (!sourceString->IsOneByte()) {
Nan::ThrowError("... |
<commit_before>void AliITSMerge(Int_t Nfiles=1,const char* file0="galice.root",
const char* file1="galice_bg.root"){
//
TFile *file = (TFile*)gROOT->GetListOfFiles()->FindObject(file0);
if (file) {file->Close(); delete file;}
cout << "AliITSMerge" << endl;
file = new TFile(file0,"UPDATE");
... |
<commit_before>#include "test.h"
#include "lcg.h"
#include <cassert>
#include <limits>
#include <algorithm>
#include <cmath>
template <class T>
void boxmuller(T* data, size_t count) {
assert(count % 2 == 0);
static const T twopi = T(2.0 * 3.14159265358979323846);
LCG<T> r;
for (size_t i = 0; i < count; i += 2) {
... |
<commit_before>/**
* @file sqlite.cpp
* @brief SQLite DB access layer
*
* (c) 2013-2014 by Mega Limited, Auckland, New Zealand
*
* This file is part of the MEGA SDK - Client Access Engine.
*
* Applications using the MEGA API must present a valid application key
* and comply with the the rules set forth in the ... |
<commit_before>#pragma once
#include <Eigen/Core>
#include <string>
#include <igl/readSTL.h>
#include <igl/slice.h>
#include <igl/slice_into.h>
#include "stiffness_matrix_assembly.hpp"
#include "load_vector_assembly.hpp"
#include "dirichlet_boundary.hpp"
typedef Eigen::VectorXd Vector;
//----------------solveBegin---... |
<commit_before>#include "WrapperGenerator.h"
using namespace std;
void WrapperGenerator::initOpToGenMap() {
shared_ptr<TracingInnerWrapperGenerator> traceGen;
shared_ptr<CachingIPCInnerWrapperGenerator> cachingIPCGen;
shared_ptr<NonCachingIPCInnerWrapperGenerator> nonCachingIPCGen;
traceGen = make_sh... |
<commit_before><commit_msg>CGAL 4.14 compatibility<commit_after><|endoftext|> |
<commit_before>#include<cstdio>
#include<algorithm>
#define ll long long
#define maxn 50005
int n,m;
ll ans;
int color[maxn],pos[maxn];
ll sum[maxn];
struct query{
int id,l,r;
ll up,down;
}Q[maxn];
inline bool cmp1(const query &q1,const query &q2){
return pos[q1.l]<pos[q2.l]||(pos[q1.l]==pos[q2.l]&&q1.r<q2.r);... |
<commit_before>#include <pd_view.h>
#include <pd_backend.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
struct File
{
char** lines;
int lineCount;
char* startData;
char* filename;... |
<commit_before>#include <iostream>
#include <string>
#include <vector>
#include <unistd.h>
#include <cstring>
#include <stdio.h>
#include <cstdlib>
#include <sys/wait.h>
#include<boost/tokenizer.hpp>
using namespace std;
using namespace boost;
int main()
{
char hostname[999];
if(gethostname(hostname, 999)==-1)
... |
<commit_before>/*
Copyright (c) 2003, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>/*
* Copyright 2016 Nu-book 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 ag... |
<commit_before>//
// Test Suite for geos::index::quadtree::DoubleBits class.
#include <tut/tut.hpp>
// geos
#include <geos/index/quadtree/DoubleBits.h>
using namespace geos::index::quadtree;
namespace tut {
// dummy data, not used
struct test_doublebits_data {};
typedef test_group<test_doublebits_data> group;
typed... |
<commit_before>/*
* Copyright (C) 2006-2008 Marc Boris Duerner
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later ... |
<commit_before>/*
Copyright (C) 2002 by Norman Kramer
Multi-axis support (C) 2005 Adam D. Bradley <artdodge@cs.bu.edu>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; ei... |
<commit_before>// Copyright (c) 2008, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, thi... |
<commit_before>
#include <davix.hpp>
DAVIX_C_DECL_BEGIN
using namespace Davix;
/// @brief clear a davix error object and release its memory, and set the error pointer to NULL
///
void davix_error_clear(davix_error_t* ptr_err){
DavixError::clearError((DavixError**) ptr_err);
}
/// @brief create a new davix err... |
<commit_before>#define BOOST_TEST_MODULE FastFourierTransform
#include <boost/test/unit_test.hpp>
#ifdef HAVE_FFTW
# include <fftw3.h>
#endif
#include "context_setup.hpp"
BOOST_AUTO_TEST_CASE(transform_expression)
{
const size_t N = 1024;
std::vector<cl::CommandQueue> queue(1, ctx.queue(0));
vex::vector<... |
<commit_before>#include "draw_tree.h"
struct tree_leaf
{
string id;
unordered_set<int> elements;
};
vector<string> node_colors = {"#73B2F9", "#EC7877", "#8ACB69", "#F5DB5D", "#BD80E5", "#F2A253", "#A37242", "#3D73A3", "#43A373", "#724AA4"};
void us_isect(unordered_set<int> &out,
const unordered_set<int> &in1... |
<commit_before>#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <math.h>
#include "elevation.hxx"
using namespace std;
namespace osmwave {
Elevation::Elevation(int south, int west, int north, int east, const string& tilesPath) :
south(south), west(west), north(north), eas... |
<commit_before>/* Copyright (C) 2015 INRA
*
* 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, pu... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Version: MPL 1.1 / GPLv3+ / LGPLv3+
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may o... |
<commit_before>// *****************************************************************************
//
// Copyright (c) 2015, Southwest Research Institute® (SwRI®)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following cond... |
<commit_before>#include "LiquidCrystalExt.h"
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "LineDriver.h"
#include "WProgram.h"
/* When the display powers up, it is configured as follows:
*
* 1. Display clear
* 2. Function set:
* DL = 1; 8-bit interface data
* N = 0; 1-line displa... |
<commit_before>/*
* Copyright 2006-2008 The FLWOR Foundation.
*
* 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... |
<commit_before>//===--- ResolveLocation.cpp - Source location resolver ---------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Axel Naumann <axel@cern.ch>
//------------------------------------------------------------------------------
#include "cling/Interpreter/CIFactory.h... |
<commit_before>
/*
pbrt source code Copyright(c) 1998-2010 Matt Pharr and Greg Humphreys.
This file is part of pbrt.
pbrt is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of t... |
<commit_before>/*
* RingBufferSubHistory.cpp
*
* Created on: 20.05.2016
* Author: hartung
*/
#include "synchronization/RingBufferSubHistory.hpp"
namespace Synchronization
{
size_type RingBufferSubHistory::size() const
{
return _numAddedElems;
}
real_type RingBufferSubHistory::getN... |
<commit_before>/* Copyright 2022 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appl... |
<commit_before>//
// Copyright (c) 2013 The ANGLE Project 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 <cassert>
#include <vector>
#include "EGLWindow.h"
#include "OSWindow.h"
#ifdef _WIN32
#include "win32/Win32Timer... |
<commit_before>// RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
class C {};
// expected-no-diagnostics
void f(C i) {
auto lambda = [&] { f(i); };
typedef decltype(lambda) T;
T* blah = new T(lambda);
(*blah)();
delete blah;
}
<commit_msg>Propagating prior merge from 'llvm.org/master'.<commit_after... |
<commit_before>#include <iostream>
#include <stdexcept>
#include <string>
#include <boost/unordered_set.hpp>
#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>
extern "C" {
#include <libxslt/xslt.h>
#include <libxml/parser.h>
#include <libxml/xpath.h>
#include <libexslt/exslt.h>
}
#include <AlpinoCorpus... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "serialconfig.h"
#include "qlineeditlabel.h"
#include <QtDebug>
#include <QMessageBox>
#include <QPushButton>
#include <QLayout>
#include <QStandardPaths>
#define SETTING_BTNLBL "buttonLabel/"
#define SETTING_WINDOW "window/"
MainWindow::Main... |
<commit_before>#include "argmap.hpp"
#include "commands.hpp"
#include "completion.hpp"
#include "odbx-sql.hpp"
#include <opendbx/api>
#include <stdexcept>
#include <iostream>
#include <sstream>
#include <string>
#include <cstddef>
#include <cstdlib>
#include <clocale>
#include <readline/readline.h>
#include <readline/h... |
<commit_before>/*
* Copyright 2010-2012 PathScale, Inc. 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,
* thi... |
<commit_before>/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
// ok is an experimental test harness, maybe to replace DM. Key features:
// * work is balanced across separate processes for stability and isolation;
// *... |
<commit_before>/*
c2ffi
Copyright (C) 2013 Ryan Pavlik
This file is part of c2ffi.
c2ffi is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any la... |
<commit_before>#ifndef SIMHASH_HASH_H
#define SIMHASH_HASH_H
/* Simply holds references to all of our hash functions */
#include "hashes/jenkins.h"
#include "hashes/murmur.h"
#include "hashes/fnv.h"
/* Include a reference to the tokenizer to use */
#include "tokenizers/strspn.h"
/* For hash_t */
#include "common.h"
... |
<commit_before>
//@HEADER
// ***************************************************
//
// HPCG: High Performance Conjugate Gradient Benchmark
//
// Contact:
// Michael A. Heroux ( maherou@sandia.gov)
// Jack Dongarra (dongarra@eecs.utk.edu)
// Piotr Luszczek (luszczek@eecs.utk.edu)
//
// ***************************... |
<commit_before>/*
* Copyright 2014 Kamil Michalak <kmichalak8@gmail.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
*
* Unl... |
<commit_before>#include "turnmark.h"
#define ANALOG_HIGH 460
#define ANALOG_LOW 10
Turnmark::Turnmark(int pin, void (*callback)(void*, CarriageType), void* context) {
this->pin = pin;
this->callback = callback;
this->callbackContext = context;
atTurnmark = false;
for (int i=0; i<3; i++) lastState[i] = INP... |
<commit_before>#include <sys/types.h>
#include <dirent.h>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <regex>
#include <vector>
#include <string>
#include "list.h"
#include "bpftrace.h"
namespace bpftrace {
const std::string kprobe_path = "/sys/kernel/debug/tracing/available... |
<commit_before>/*
* Lexer.cc
*
* Author: Lunatic
*/
#include "lexer.h"
#include "alarm.h"
namespace Script {
Lexer::~Lexer() {
}
void Lexer::forward() {
if (text[offset++] == '\n') {
row++;
col = 0;
} else {
col++;
}
}
void Lexer::skip_space() {
while (text[offset] == ' ' || text[offset] == '\t'... |
<commit_before>/**
* ClassInfo.cpp
*
* Implementation for the class info
*
* @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
* @copyright 2013 Copernica BV
*/
#include "includes.h"
/**
* Set up namespace
*/
namespace Php {
/**
* Function that is called to clean up space that is occupied by t... |
<commit_before>//===-- DynamicLibrary.cpp - Runtime link/load libraries --------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/**
* Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com>
* All Rights Reserved.
*
* This file is CONFIDENTIAL -- Distribution or duplication of this material or
* the information contained herein is strictly forbidden unless prior written
* permission is obtained.
*/
#include <stdlib.h... |
<commit_before>/*
** repository: https://github.com/trumanzhao/luabus
** trumanzhao, 2017-06-25, trumanzhao@foxmail.com
*/
#include "lua_socket_mgr.h"
int create_socket_mgr(lua_State* L)
{
int max_fd = (int)lua_tonumber(L, 1);
lua_socket_mgr* mgr = new lua_socket_mgr();
if (!mgr->setup(L, max_fd))
{
... |
<commit_before>#include <node.h>
#include <node_buffer.h>
#include <string.h>
#include <stdlib.h>
#include "magic.h"
using namespace node;
using namespace v8;
struct Baton {
uv_work_t request;
Persistent<Function> callback;
char* data;
uint32_t dataLen;
bool dataIsPath;
// libmagic info
... |
<commit_before>// This file was developed by Thomas Müller <thomas94@gmx.net>.
// It is published under the BSD 3-Clause License within the LICENSE file.
#include "../include/ImageViewer.h"
#include "../include/SharedQueue.h"
#include "../include/ThreadPool.h"
#include <args.hxx>
#include <ImfThreading.h>
#include <... |
<commit_before>#include <cstring>
#include <string>
#include <iostream>
#include <map>
#include <set>
#include <argp.h>
#include <arpa/inet.h>
#include <ifaddrs.h>
#include <netinet/in.h>
#include <pcap.h>
#include <signal.h>
#include <sqlite3.h>
#include <sys/time.h>
#include "config.h"
#include "log.h"
#include "ne... |
<commit_before>// The MIT License (MIT)
//
// Copyright (c) 2015 Relja Ljubobratovic, ljubobratovic.relja@gmail.com
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction... |
<commit_before>// main.cpp
// Main function for testing Maggie code
//
// Oliver W. Laslett 2015
// O.Laslett@soton.ac.uk
//
#include<iostream>
using std::cout;
using std::endl;
#include<cmath>
using std::abs;
#include<LangevinEquation.hpp>
#include<StocLLG.hpp>
#include<gtest/gtest.h>
#include<boost/multi_array.hpp>... |
<commit_before>#include <cassert>
#include <fstream>
#include <iostream>
#include <set>
#include <SFML/Graphics.hpp>
template <typename V>
unsigned squareLength(const V& vector) {
return vector.x * vector.x + vector.y * vector.y;
}
enum class Asset {
Player,
Enemy,
Grass,
Wood,... |
<commit_before>#include <iostream>
#include "tcp_server.h"
int main(int argc, char** argv) {
Akumuli::Logger logger("test", 10);
logger.info() << "Info";
for (int i = 0; i < 10; i++)
logger.trace() << "Trace msg " << i;
logger.error() << "Hello " << "world";
return 0;
}
<commit_msg>WIP: ma... |
<commit_before>
//@HEADER
// ***************************************************
//
// HPCG: High Performance Conjugate Gradient Benchmark
//
// Contact:
// Michael A. Heroux ( maherou@sandia.gov)
// Jack Dongarra (dongarra@eecs.utk.edu)
// Piotr Luszczek (luszczek@eecs.utk.edu)
//
// ***************************... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.