text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
<gh_stars>1-10
//
// NSDictionary+Utilities.h
// Mars
//
// Created by chris on 7/21/14.
// Copyright (c) 2014 lifang. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSMutableDictionary (Utilities)
- (id) valid;
@end
| code_c | code | 70 | null |
<reponame>rubedos/l4t_R32.5.1_viper<filename>kernel/nvidia/drivers/net/wireless/realtek/rtl8814au/core/rtw_chplan.h
/******************************************************************************
*
* Copyright(c) 2007 - 2018 Realtek Corporation.
*
* This program is free software; you can redistribute it and/or modi... | code_c | code | 1,793 | null |
<filename>chrome/browser/extensions/bundle_installer.h
// 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.
#ifndef CHROME_BROWSER_EXTENSIONS_BUNDLE_INSTALLER_H_
#define CHROME_BROWSER_EXTENSIONS_BUNDLE_... | code_c | code | 2,036 | null |
<filename>src/databases/PVLD/pvldPartReader.h
#ifndef PVLD_PART_READER_HPP
#define PVLD_PART_READER_HPP
#include <pvldReader.h>
class PVLD_Part_Reader
: public PVLD_Reader
{
public:
PVLD_Part_Reader()
: PVLD_Reader()
{}
void FreeResource();
void ReadTOC();
void ReadHistoryTOC();... | code_c | code | 1,719 | null |
// coding: utf-8
// ----------------------------------------------------------------------------
/*
* Copyright (c) 2007 <NAME>, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | code_c | code | 1,834 | null |
<reponame>AnthonyM/service-fabric
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ----------------------------------------------------------... | code_c | code | 1,387 | null |
#ifndef INC_3D_GRAPHICS_SPHERE_H
#define INC_3D_GRAPHICS_SPHERE_H
#include "../points.h"
#include <vector>
// constants (to use #define or not to)
// const double PI = 3.1415926f;
// const double H_ANGLE = PI / 180 * 72
// const
typedef point3D point;
class Sphere {
private:
point center;
unsigned int radius... | code_c | code | 279 | null |
<gh_stars>1-10
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM e:/builds/moz2_slave/rel-2.0-xr-w32-bld/build/netwerk/base/public/nsIAuthPromptCallback.idl
*/
#ifndef __gen_nsIAuthPromptCallback_h__
#define __gen_nsIAuthPromptCallback_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* ... | code_c | code | 1,389 | null |
//
// NSObject+MZTool.h
// StudyDemo
//
// Created by 曾龙 on 2018/6/27.
// Copyright © 2018年 曾龙. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface NSObject (MZTool)
/**
获取当前显示的ViewController
*/
+ (UIViewController *)currentViewController;
/*
获取屏幕窗口
*/
+ (UIView *)ge... | code_c | code | 209 | null |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* o... | code_c | code | 2,184 | null |
#ifndef SSTMPIDUMMY_H_
#define SSTMPIDUMMY_H_
#include <sys/time.h>
typedef int MPI_Comm;
typedef int MPI_Status;
typedef int MPI_request;
typedef int MPI_Datatype;
typedef int MPI_Op;
#define MPI_SUCCESS 0
#define MPI_ERR_BUFFER 1 /* Invalid buffer pointer */
#define MPI_ERR_COUNT 2 /* Invalid count argument */
... | code_c | code | 1,666 | null |
// input: 3, 5
// output: 7
int foo(int a, int b){
int r;
r = a*b;
return bar(r);
}
int bar(int a){
return (a/2);
}
void main(void){
int x;
int y;
int val;
x = input();
y = input();
val = foo(x,y);
output(val);
}
| code_c | code | 65 | null |
/* **********************************************************************
**
** Developed for NASA Glenn Research Center
** By: Flight Software Branch (LSS)
**
** Project: Flow Boiling and Condensation Experiment (FBCE)
** Candidate for GOTS reuse once FBCE has completed V&V testing
**
** Filename: mockapplication.h
**... | code_c | code | 367 | null |
<filename>lullaby/modules/script/lull/script_scoped_symbol_table.h
/*
Copyright 2017 Google Inc. 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/licen... | code_c | code | 1,114 | null |
<filename>ctp2_code/libs/anet/src/sbd/sbdtestc.c<gh_stars>0
/*
Copyright (C) 1995-2001 Activision, Inc.
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 (... | code_c | code | 883 | null |
<reponame>MarginC/kame
/* $OpenBSD: pk_llcsubr.c,v 1.8 2003/12/10 07:22:43 itojun Exp $ */
/* $NetBSD: pk_llcsubr.c,v 1.4 1996/02/13 22:05:26 christos Exp $ */
/*
* Copyright (C) <NAME>, Computer Science Department IV,
* University of Erlangen-Nuremberg, Germany, 1990, 1991, 1992
* Copyright (c) 1992, 1993
* ... | code_c | code | 3,208 | null |
<reponame>TinkerBoard-Android/external_wpa_supplicant_8<filename>src/fst/fst_group.c
/*
* FST module - FST group object implementation
* Copyright (c) 2014, Qualcomm Atheros, Inc.
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "utils/includes.h... | code_c | code | 2,944 | null |
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "nerveNet.h"
#include "ocr.h"
// Hard coded bounds
#define MAX_FILENAME_LENGTH 100
#define MAX_SET_SIZE 20000
// Command line options
char network_filename[MAX_FILENAME_LENGTH + 1] = "";
char validation_filename[MAX_FILENAME_LEN... | code_c | code | 939 | null |
<reponame>JavascriptID/sourcerer-app
#ifndef COMMIT_H
#define COMMIT_H
#include "object.h"
#include "tree.h"
#include "strbuf.h"
#include "decorate.h"
struct commit_list {
struct commit *item;
struct commit_list *next;
};
struct commit {
struct object object;
void *util;
unsigned int indegree;
unsigned long da... | code_c | code | 2,189 | null |
<reponame>IngwiePhoenix/drag0n
#ifndef _mach_vm_user_
#define _mach_vm_user_
/* Module mach_vm */
#include <string.h>
#include <mach/ndr.h>
#include <mach/boolean.h>
#include <mach/kern_return.h>
#include <mach/notify.h>
#include <mach/mach_types.h>
#include <mach/message.h>
#include <mach/mig_errors.h>
#include <mac... | code_c | code | 6,520 | null |
<filename>openeuler-kernel/drivers/hwmon/ad7418.c<gh_stars>10-100
// SPDX-License-Identifier: GPL-2.0-only
/*
* An hwmon driver for the Analog Devices AD7416/17/18
* Copyright (C) 2006-07 Tower Technologies
*
* Author: <NAME> <<EMAIL>>
*
* Based on lm75.c
* Copyright (C) 1998-99 <NAME> <<EMAIL>>
*/
#include <l... | code_c | code | 2,242 | null |
//
// BaseCardViewWithButtons.h
// AnaVodafoneUIRevamp
//
// Created by <NAME> on 3/12/17.
// Copyright © 2017 <NAME>. All rights reserved.
//
#import "BaseCardView.h"
@interface BaseCardViewWithButtons : BaseCardView
{
__weak IBOutlet NSLayoutConstraint *buttonsViewHeightConstraint;
__weak IBOu... | code_c | code | 124 | null |
<gh_stars>0
#include <stdio.h>
#include <math.h>
#define PI 3.1415
int main(){
float raio, volume;
printf("Qual o raio da esfera? ");
scanf("%f", &raio);
volume = ((float)4/3) * PI * pow(raio, 3);
printf("O volume da esfera é: %.2f", volume);
return 0;
} | code_c | code | 80 | null |
<reponame>sherief/JoltPhysics<gh_stars>0
// SPDX-FileCopyrightText: 2021 <NAME>
// SPDX-License-Identifier: MIT
#pragma once
JPH_NAMESPACE_BEGIN
/// Helper structure holding the reciprocal of a ray for Ray vs AABox testing
class RayInvDirection
{
public:
/// Constructors
inline RayInvDirection() = default;
inli... | code_c | code | 3,342 | null |
/*
* Acess2 PRO/100 Driver
* - By <NAME> (thePowersGang)
*
* pro100.h
* - Hardware header
*/
#ifndef _PRO100_H_
#define _PRO100_H_
#include "pro100_hw.h"
#include <semaphore.h>
#include <mutex.h>
#define NUM_RX 4
#define RX_BUF_SIZE ((PAGE_SIZE/2)-sizeof(tRXBuffer))
#define NUM_TX (PAGE_SIZE/sizeof(tTXCommand)... | code_c | code | 207 | null |
/*
*
* (C) COPYRIGHT 2011-2015 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
* Foundation, and any use by you of this program is subject to the terms
* of such GNU licence... | code_c | code | 760 | null |
<gh_stars>10-100
/*
* Rockchip Generic Register Files setup
*
* Copyright (c) 2016 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/err.h>... | code_c | code | 999 | null |
//
// OctreeRenderer.h
// libraries/octree/src
//
// Created by <NAME> on 12/6/13.
// Copyright 2013 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#ifndef hifi_OctreeRenderer_h
#define hifi_O... | code_c | code | 654 | null |
<gh_stars>10-100
/*
*
* Copyright 2017, 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, t... | code_c | code | 1,098 | null |
/* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use... | code_c | code | 1,720 | null |
/* Copyright 2013-2014 MultiMC Contributors
*
* 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... | code_c | code | 811 | null |
int main()
{
int c;
float mm[2] = {1, 2};
c = mm[1] < mm[0];
assert(c == 0, "c must be 0");
return 0;
} | code_c | code | 33 | null |
<gh_stars>100-1000
/*!
* bip37.h - bip37 for mako
* Copyright (c) 2021, <NAME> (MIT License).
* https://github.com/chjj/mako
*/
#ifndef BTC_BIP37_H
#define BTC_BIP37_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h>
#include <stdint.h>
#include "types.h"
#include "common.h"
#include "impl.h"
/*
* Ty... | code_c | code | 442 | null |
/*
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... | code_c | code | 2,514 | null |
/*--------------------------------------------------------------------------
File : system_LPC17xx.c
Author : <NAME> Jan. 23, 2012
Desc : Implementation of CMSIS Cortex-M3 Device for LPC17xx Device Series
Added SystemSetCoreClock for on the fly clock setting
Copyright (c) 2012, I-SYST inc., all right... | code_c | code | 1,979 | null |
/*------------------------------------------------------------------------------
-- --
-- This software is confidential and proprietary and may be used --
-- only as expressly authorized by a licensing agreement from ... | code_c | code | 2,332 | null |
#ifndef _ANIMATION_CONTROLLER_FACTORY_H_
#define _ANIMATION_CONTROLLER_FACTORY_H_
#include "AnimationController.h"
class ModelLoader; // class prototype
/** Creates AnimationController objects from file */
class AnimationControllerFactory {
public:
/**
Constructor
@param textureFactory Loads textures for the mode... | code_c | code | 331 | null |
// Copyright 2015 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.
#ifndef COMPONENTS_VARIATIONS_NET_VARIATIONS_HTTP_HEADERS_H_
#define COMPONENTS_VARIATIONS_NET_VARIATIONS_HTTP_HEADERS_H_
#include <set>
#include <string... | code_c | code | 387 | null |
<reponame>wahello/nebula<filename>src/graph/optimizer/OptimizerUtils.h<gh_stars>1-10
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
#ifndef NEBULA_GRAPH_OPTIMIZER_OPTIMIZERUTILS_H_
#define NEBULA_GRAPH_OPTIMIZER_OPTIMIZERUTILS_H_
#include "graph/... | code_c | code | 847 | null |
#pragma once
#include <string>
namespace gnssShadowing {
namespace common {
/// \brief Sleeps for the specified amount of nano seconds.
/// \param[in] nanos The nano seconds
/// \return Whether sleep was successful or not.
bool nsleep(long nanos);
/// \brief Sleeps for the specified amount of ... | code_c | code | 451 | null |
/**
* (c) 2009-2020 Highsoft AS
*
* License: www.highcharts.com/license
* For commercial usage, a valid license is required. To purchase a license for Highcharts iOS, please see our website: https://shop.highsoft.com/
* In case of questions, please contact <EMAIL>
*/
#import "HIChartsJSONSerializable.h"
/**
An array... | code_c | code | 424 | null |
<filename>cpp_labs/semester_3/lab_2/Exceptions.h
#ifndef EXCEPTIONS_H
#define EXCEPTIONS_H
#include <iostream>
using namespace std;
class SequenceException : public exception {
private:
int ex_index;
public:
SequenceException(int index) {
ex_index = index;
};
void what() {
cout << "ERROR. Index:" << ex_index ... | code_c | code | 405 | null |
<filename>drivers/sensor/sensor_handlers.c
/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <sensor.h>
#include <syscall_handler.h>
_SYSCALL_HANDLER(sensor_attr_set, dev, chan, attr, val)
{
_SYSCALL_OBJ(dev, K_OBJ_DRIVER_SENSOR);
_SYSCALL_MEMORY_READ(val, sizeof(stru... | code_c | code | 274 | null |
<gh_stars>10-100
// Copyright 2017 the V8 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.
#ifndef V8_WASM_BASELINE_LIFTOFF_ASSEMBLER_ARM_H_
#define V8_WASM_BASELINE_LIFTOFF_ASSEMBLER_ARM_H_
#include "src/wasm/baseline/liftof... | code_c | code | 620 | null |
//
// Created by bernardoct on 7/25/17.
//
#ifndef TRIANGLEMODEL_RESERVOIRRELLOCATION_H
#define TRIANGLEMODEL_RESERVOIRRELLOCATION_H
#include "Base/WaterSource.h"
class Relocation : public WaterSource {
public:
const unsigned long parent_reservoir_ID;
const vector<double> *new_allocated_fractio... | code_c | code | 294 | null |
<filename>content/public/browser/devtools_agent_host.h
// 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.
#ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_H_
#define CONTENT_PUBLIC_BROWSER_DEVTOOLS_A... | code_c | code | 2,174 | null |
#include<stdio.h>
#define MAXAUT 10
#define MAXTIT 10
struct book
{
char Author[MAXAUT];
char Title[MAXTIT];
long value;
};
main()
{
struct book library;
printf("\nEnter the Author name\n");
gets(library.Author);
printf("\nEnter the Title name\n");
gets(library.Title);
printf("\nEnter the Price of the book\n")... | code_c | code | 130 | null |
#define __READDIR_R __readdir64_r
#define __GETDENTS __getdents64
#define DIRENT_TYPE struct dirent64
#include <sysdeps/unix/readdir_r.c>
weak_alias(__readdir64_r, readdir64_r)
| code_c | code | 51 | null |
<gh_stars>10-100
/*
*
* OBEX Server
*
* Copyright (C) 2013 BMW Car IT GmbH. All rights reserved.
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Licens... | code_c | code | 2,367 | null |
<reponame>memoryInject/data_structures_in_c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <errno.h>
#include <time.h>
#include <unistd.h>
#include "../suffixArray.h"
#include "../../../libs/unity/unity.h"
// This code run before each test
void setUp(void){
}
// This code ... | code_c | code | 376 | null |
/* Copyright (c) 2015-2018, Linaro Limited
* Copyright (c) 2019, Nokia
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <odp_debug_internal.h>
#include <odp_packet_io_internal.h>
#include <odp_errno_define.h>
#include <odp/api/system_info.h>
#include <odp_shm_internal.h>
#include <... | code_c | code | 7,344 | null |
/*
* Copyright (c) 2015 <NAME> (<EMAIL>)
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the Artistic License 2.0 as published by
* The Perl Foundation.
*
* This source is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implie... | code_c | code | 1,195 | null |
#ifndef WALLET_ALERT_MILER_H
#define WALLET_ALERT_MILER_H
#include <iostream>
class Mailer
{
public:
void setEmails(int count, const char *argv[]);
/**
* Send alert email
* @param text
*/
void sendAlert(std::string text);
};
#endif //WALLET_ALERT_MILER_H | code_c | code | 80 | null |
#ifndef LIBEPC_EPC_GIAI_H_
#define LIBEPC_EPC_GIAI_H_
#include "epc.h"
#include <utility>
#include <regex>
namespace epc {
/**
* A GIAI(Global Individual Asset Identifier) class.
*/
class GIAI : public EPC {
public:
enum class Scheme {
kGIAI96,
kGIAI202,
};
GIAI() = default;
/**
... | code_c | code | 1,201 | null |
<reponame>andrewseidl/chrono
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENS... | code_c | code | 3,991 | null |
/*
Copyright (c) 2007 <NAME>. 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 require... | code_c | code | 562 | null |
#pragma once
// A class for loading and writing shapes to files.
// Include libraries from this project.
#include "Shape.h"
// Include the standard libraries to be used.
#include <string>
class ShapeLoader
{
public:
void setFileName(std::string name);
void setShape(Shape * shapeToUse);
bool load(); // Load the ... | code_c | code | 153 | null |
/********************************************************************************************
* arch/arm/src/kinetis/chip/kinetis_dmamux.h
*
* Copyright (C) 2011, 2016 <NAME>. All rights reserved.
* Author: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification... | code_c | code | 1,944 | null |
mapping *yun_biao = ({
([
"name": "京城雜貨鋪",
"file": "/d/beijing/zahuo",
"bonus": 200,
"time": 900,
]),
([
"name": "關外小土屋",
"file": "/d/guanwai/tuwu",
"bonus": 210,
"time": 1000,
]),
([
"name": "長安珠寶行",
"file": "/d/changan/z... | code_c | code | 423 | null |
<filename>src/ripple/rpc/handlers/LedgerHandler.h
//------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software fo... | code_c | code | 884 | null |
#include <string>
#include "../Types/StaticRecFeatureVersion.h"
#ifndef TESTINGSTATICRECCONF_H_
#define TESTINGSTATICRECCONF_H_
class TestingStaticRecConf {
public:
std::string configurationPath;
std::string configurationName;
StaticRecFeatureVersion featureSetVersion;
double classificationThresholdRate;
Testi... | code_c | code | 155 | null |
/*
* Support for OmniVision OV5693 1080p HD camera sensor.
*
* Copyright (c) 2013 Intel Corporation. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version
* 2 as published by the Free Software Foundation.
*
*... | code_c | code | 14,250 | null |
<filename>src/output.h
/*****************************************************************************
* *
* Mixed-mode OpenMP/MPI MicroBenchmark Suite - Version 1.0 *
* ... | code_c | code | 992 | null |
@interface KinemeGLRenderInImageWithDepthPatch : QCPatch
{
QCIndexPort *inputWidth;
QCIndexPort *inputHeight;
QCImagePort *outputImage;
QCImagePort *outputDepthImage;
QCImageTextureBuffer *image;
GLuint depthTexture;
}
- (id)initWithIdentifier:(id)fp8;
- (BOOL)execute:(QCOpenGLContext *)context time:(doub... | code_c | code | 105 | null |
/* datetime.h
*/
#ifndef Py_LIMITED_API
#ifndef DATETIME_H
#define DATETIME_H
#ifdef __cplusplus
extern "C" {
#endif
/* Fields are packed into successive bytes, each viewed as unsigned and
* big-endian, unless otherwise noted:
*
* byte offset
* 0 year 2 bytes, 1-9999
* 2 ... | code_c | code | 2,719 | null |
inherit "room/room";
reset(arg) {
add_exit("east","/wizards/devil/area/huoneet/r28.c");
add_exit("west","/wizards/devil/area/huoneet/r26.c");
set_light(2);
short_desc = "Small sand path in the graveyard";
long_desc = "You are walking on the small sand path which is leading to the centre of the\n"+
... | code_c | code | 179 | null |
<reponame>Noeski/Luax
//
// LXDocumentController.h
// Luax
//
// Created by <NAME> on 11/24/13.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface LXDocumentController : NSDocumentController<NSOpenSavePanelDelegate>
- (IBAction)newProject:(id)sender;
- (IBAction)openProject:(... | code_c | code | 96 | null |
<filename>tools/chplvis/GraphView.h<gh_stars>0
/*
* Copyright 2016 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
*
* You... | code_c | code | 1,233 | null |
#ifndef CONFIG_UWV_H
#define CONFIG_UWV_H
// Depth PID parameter names | Modify values in path/to/v2_control/config/pid_gains.yaml
#define DEPTH_P "/auv_v2/depth_p"
#define DEPTH_I "/auv_v2/depth_i"
#define DEPTH_D "/auv_v2/depth_d"
#define DEPTH_SNSTVTY "/auv_v2/depth_snstvty"
// Yaw PID parameter names | Modify va... | code_c | code | 145 | null |
// Copyright (c) 2015 Baidu.com, Inc. 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 ... | code_c | code | 5,135 | null |
<filename>be/src/exec/pipeline/source_operator.h
// This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited.
#pragma once
#include <utility>
#include "exec/pipeline/operator.h"
#include "exec/pipeline/scan/chunk_source.h"
#include "exec/workgroup/work_group_fwd.h"
namespace st... | code_c | code | 860 | null |
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright 2017 NXP
*
*/
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <rte_malloc.h>
#include <rte_memcpy.h>
#include <rte_string_fns.h>
#include <rte_cycles.h>
#in... | code_c | code | 790 | null |
<reponame>aadnehovda/patched-php-5.2
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2010 The PHP Group ... | code_c | code | 2,746 | null |
<gh_stars>1-10
//
// Created by taroyuyu on 2018/1/31.
//
#ifndef KAKAIMCLUSTER_TCPSOCKETMANAERADAPTER_H
#define KAKAIMCLUSTER_TCPSOCKETMANAERADAPTER_H
#include <google/protobuf/message.h>
#include "../Buffer/CircleBuffer.h"
namespace kakaIM {
namespace net {
class TCPSocketManaerAdapter {
public:... | code_c | code | 320 | null |
<filename>test/c/float/intrinsics.c
#include "smack.h"
#include <assert.h>
// @expect verified
int main(void) {
float a = __VERIFIER_nondet_float();
assume(a == -1.0f);
assert(__builtin_fabs(a) == -a);
return 0;
}
| code_c | code | 64 | null |
/*
* Atmel Image Sensor Controller (ISC) driver
*
* Copyright (C) 2016 Atmel
*
* Author: <NAME> <<EMAIL>>
*
* This program is free software; you may redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
... | code_c | code | 14,312 | null |
<filename>SDK/BP_PromptActor_EmissaryDiscoveredCargoRunCrate_RB_parameters.h<gh_stars>1-10
#pragma once
// Name: SeaOfThieves, Version: 2.0.23
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//--------------------------------------------------... | code_c | code | 517 | null |
<filename>aws-cpp-sdk-sns/include/aws/sns/SNSClient.h
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http:... | code_c | code | 31,606 | null |
<reponame>yangchenghu/CommonPay
//
// CommonPayDefine.h
// CommonPay
//
// Created by yangchenghu on 16/1/4.
// Copyright © 2016年 yangchenghu. All rights reserved.
//
#ifndef CommonPayDefine_h
#define CommonPayDefine_h
#import <Foundation/Foundation.h>
//---------- 接入说明 ----------
//---------- 支付宝支付 ----------... | code_c | code | 337 | null |
<filename>Sources/Engine/External/Bullet/BulletSharpPInvoke/libbulletc/src/btDantzigSolver_wrap.h<gh_stars>0
#include "main.h"
#ifdef __cplusplus
extern "C" {
#endif
EXPORT btDantzigSolver* btDantzigSolver_new();
#ifdef __cplusplus
}
#endif
| code_c | code | 69 | null |
//===========================================================================
// SISL - SINTEF Spline Library, version 4.5.0.
// Definition and interrogation of NURBS curves and surfaces.
//
// Copyright (C) 2000-2005, 2010 SINTEF ICT, Applied Mathematics, Norway.
//
// This program is free software; you can redistrib... | code_c | code | 3,370 | null |
<filename>libraries/Photon-cpp/inc/Enums/ReceiverGroup.h
/* Exit Games Photon Photon - C++ Client Lib
* Copyright (C) 2004-2016 by Exit Games GmbH. All rights reserved.
* http://www.photonengine.com
* mailto:<EMAIL>
*/
#pragma once
#include "Common-cpp/inc/Common.h"
namespace ExitGames
{
namespace Lite
{
nam... | code_c | code | 140 | null |
//===--- AST.h - Markup AST nodes -------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | code_c | code | 6,321 | null |
<filename>JRWX/JRWX/Main/Controllers/ViewController2.h
//
// ViewController2.h
// JRWX
//
// Created by 张益豪 on 16/5/4.
// Copyright © 2016年 Ktkt. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "KTRootViewController.h"
@interface ViewController2 : KTRootViewController
@end
| code_c | code | 82 | null |
<reponame>spacesys-finch/Firmware
/*
* GPIOTest.c
*
* Created on: Jul. 18, 2020
* Author: brytni
*
* GPIO testing functions
* Test will manually blink light on NUCLEO-H74/G474 devkit. When the blue
* button is pressed, the light (red for H7, green for G4) stops blinking until
* the button is released... | code_c | code | 644 | null |
/*
* Copyright (C) <NAME> (agentzh)
*/
#ifndef DDEBUG
#define DDEBUG 0
#endif
#include "ddebug.h"
#include <ngx_core.h>
#include <ngx_http.h>
#include <lauxlib.h>
#include "ngx_http_lua_api.h"
ngx_module_t ngx_http_lua_upstream_module;
static ngx_int_t ngx_http_lua_upstream_init(ngx_conf_t *cf);
static int n... | code_c | code | 3,915 | null |
<filename>mavlink/include/mavlink/v2.0/common/mavlink_msg_mission_ack.h
#pragma once
// MESSAGE MISSION_ACK PACKING
#define MAVLINK_MSG_ID_MISSION_ACK 47
MAVPACKED(
typedef struct __mavlink_mission_ack_t {
uint8_t target_system; /*< System ID*/
uint8_t target_component; /*< Component ID*/
uint8_t type; /*< See MAV... | code_c | code | 2,979 | null |
#ifndef GAME_SERVER_CITY_CHATCMDS_H
#define GAME_SERVER_CITY_CHATCMDS_H
#undef GAME_SERVER_CITY_CHATCMDS_H // this file can be included several times
#ifndef CONSOLE_COMMAND
#define CONSOLE_COMMAND(name, params, flags, callback, userdata, help)
#endif
// account
CONSOLE_COMMAND("login", "?s?s", CFGFLAG_CHAT, ConChatLo... | code_c | code | 1,405 | null |
<gh_stars>0
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "GDriveLib/googledriveservice.h"
namespace Ui {
class MainWindow;
}
class AccountWidgetActs;
class UploadDialog;
class UpdateDialog;
class SearchDialog;
class DownloadDialog;
class FileMataDataDialog;
class QJsonModel;
QT_BEGIN_NAM... | code_c | code | 1,307 | null |
<reponame>Uswer/LineageOS-14.1_jag3gds
/*
* fs/cifs/cifsproto.h
*
* Copyright (c) International Business Machines Corp., 2002,2008
* Author(s): <NAME> (<EMAIL>)
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as pub... | code_c | code | 6,175 | null |
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE', which is part of this source code package.
*
* Partialy financiated as part of the protocol between UTAustin I Portugal - UTA-P.
* [2017] - [2018] University of Minho, <NAME>
* All Rights Reserved.
*/
#ifndef CUSTOMTOOLBUTTON_H
... | code_c | code | 155 | null |
<reponame>NASA-AMMOS/VICAR
#include "vicmain_c"
#include "ftnbridge.h"
/* Program to test the GETHOST subroutine. */
main44()
{
char hostname[41], msg[81];
int length, status;
length = 40;
zvmessage("Testing GETHOST subroutine C interface", "");
status = zgethost(hostname, length);
if (status) ... | code_c | code | 216 | null |
/*
* Copyright (c) 2016 Cisco and/or its affiliates.
* 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 applicabl... | code_c | code | 794 | null |
<filename>src/test/CheckedMathTest.h
#include <C2nxt/StdMath.h>
#include <unity.h>
void test_checked_add(void) {
// NOLINTNEXTLINE(cppcoreguidelines-avoid-magic-numbers, readability-magic-numbers)
let_mut add1 = std_checked_add(std_max_value(u8), 1);
// NOLINTNEXTLINE(cppcoreguidelines-avoid-magic-numbers, readabil... | code_c | code | 2,040 | null |
#include<stdio.h>
#define MAX 100000
int main(void)
{
int arr[MAX],i,n,d;
scanf("%d%d",&n,&d);
for(i=0;i<n;i++)
{
scanf("%d",&arr[i]);
}
for(i=0;i<n;i++)
{
printf("%d ",arr[(i+d)%n]);
}
}
| code_c | code | 67 | null |
<gh_stars>1-10
/****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (<EMAIL>)
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGP... | code_c | code | 1,827 | null |
#pragma once
#include <iostream>
#include <unordered_map>
#include "StringHelper.h"
#include "exceptions/ItemTypeNotFound.h"
namespace components::core
{
enum class ItemType
{
Yerba,
Apple,
Blueberries,
Key
};
inline std::string toString(ItemType itemType)
{
std::unordered_map<ItemType, std::str... | code_c | code | 477 | null |
<reponame>yskhara/NHK2018_Odometry
#ifndef _ROS_realsense_camera_IMUInfo_h
#define _ROS_realsense_camera_IMUInfo_h
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "ros/msg.h"
#include "std_msgs/Header.h"
namespace realsense_camera
{
class IMUInfo : public ros::Msg
{
public:
typedef... | code_c | code | 1,790 | null |
// Copyright (c) 2012 <NAME>. 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 conditions and t... | code_c | code | 1,936 | null |
#ifndef ACTIONMANAGER_H
#define ACTIONMANAGER_H
#include <string>
#include <array>
#include <functional>
#include <map>
#include <SFML/Graphics/Rect.hpp>
namespace sf
{
class RenderTarget;
}
enum class ActionId
{
INVALID,
BLOCK,
UNBLOCK,
SLOW,
SPEED,
READY,
CLEARMAP,
GENBLOCKS,
SH... | code_c | code | 348 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.