text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
//Read a string from the user , if the string has atleast 3 vowels check whether it is palindrome or not
#include <stdio.h>
#include <string.h>
void main()
{
char str[15], choice;
int nv = 0, i = 0, j, len = 0, f = 1;
printf("Enter the string:\n");
gets(str);
for (i = 0; str[i] != '\0';... | code_c | code | 299 | null |
#ifndef OUTPUT_SOCKET_H
#define OUTPUT_SOCKET_H
#include <vector>
#include <functional>
#include "connection_data_type.h"
#include "socket.h"
namespace noises
{
class OutputSocket : public Socket
{
public:
OutputSocket(const std::string& name, const ConnectionDataType& data_type, Sock... | code_c | code | 271 | null |
<gh_stars>1-10
// 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.
// This file overrides the inclusion of talk/base/basictypes.h to remove
// collisions with Chromium's base/basictypes.h. We then add... | code_c | code | 573 | null |
<filename>src/tnetstrings_impl.h
#ifndef _tnetstrings_impl_h
#define _tnetstrings_impl_h
#include "dbg.h"
#include <assert.h>
static inline tns_value_t *tns_value_create(tns_type_tag tag)
{
tns_value_t *val = malloc(sizeof(tns_value_t));
val->type = tag;
return val;
}
// Functions for manipulating comp... | code_c | code | 1,161 | null |
<filename>libs/Logger/src/logger.c
// Created by <NAME> on 22/02/2021.
// Based on: https://github.com/rxi/log.c
#include "../logger.h"
#include <stdarg.h>
#include <stdio.h>
static struct {
LoggerLevel level;
bool enable;
} configuration;
//! @brief Array of logger level strings.
//! @details Used for translate ... | code_c | code | 301 | null |
/******************************************************************************
* Copyright (C) 2009 - <NAME> www.ikarogames.com *
* *
* This program is free software; you can redistribute it and/or *
* mod... | code_c | code | 972 | null |
/*
* QEMU ARM CPU -- internal functions and types
*
* Copyright (c) 2014 Linaro Ltd
*
* 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 License, or (at your optio... | code_c | code | 3,636 | 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 ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_
#define ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_
#include <memory>
#include "android_webview/browser/compos... | code_c | code | 392 | null |
//
// NSString+RXUtility.h
// RXCategory
//
// Created by Rush.D.Xzj on 15/4/17.
// Copyright (c) 2015年 Rush.D.Xzj. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface NSString (RXUtility)
- (NSString *)rx_hiddenMobileFormatString;
- (BOOL)rx_isChinaMobileFormat;
- (... | code_c | code | 500 | null |
<filename>AaronOC/Classes/Extension/Foundation/NSSet+Ext.h
//
// NSSet+Ext.h
// AaronOC
//
// Created by AaronYin on 2020/4/26.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface NSSet (Ext)
- (NSSet *)setByAddingEntriesFromIndexSet:(NSSet *)set;
@end
NS_ASSUME_NONNULL_END
| code_c | code | 86 | null |
//---------------------------------------------------------------------------
#ifndef ThirdPgH
#define ThirdPgH
//---------------------------------------------------------------------------
#include <WebInit.h>
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <WebModu.hpp>
#i... | code_c | code | 248 | null |
# 1 "syscalls.master"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 157 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "syscalls.master" 2
$FreeBSD: release/10.0.0/sys/kern/syscalls.master 255708 2013-09-19 18:53:42Z jhb $
; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94
;
; System call name/number master fi... | code_c | code | 66,598 | null |
<gh_stars>100-1000
/****************************************************************************
* *
* File Stream I/O Header *
* Copyright <NAME> 1993-2003 *
* *
****************************************************************************/
#ifndef _STRFILE_DEFI... | code_c | code | 2,253 | null |
<filename>deps/mozjs/src/frontend/Parser-inl.h
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* 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... | code_c | code | 322 | null |
#ifndef REQUESTGENERATOR_H
#define REQUESTGENERATOR_H
#include <QString>
#include <memory>
#include "compilerexplorer_global.h"
class QSettings;
namespace compilerExplorer {
namespace network{
class Request;
class RequestGeneratorPrivate;
class COMPILEREXPLORERSHARED_EXPORT RequestGenerator
{
public:
... | code_c | code | 292 | null |
<reponame>blizzard4591/zeusUtilities<filename>srcPlot/graphs_network.h
#ifndef GRAPHS_NETWORK_H
#define GRAPHS_NETWORK_H
#include <cstdint>
#include <qcustomplot.h>
#include <QMap>
#include <QString>
#include <QVector>
class GraphsNetwork {
public:
static bool createGraphs(QCustomPlot* plot, QVector<double> const&... | code_c | code | 117 | null |
/* $OpenBSD: rt2860reg.h,v 1.32 2014/05/24 10:10:17 stsp Exp $ */
/*-
* Copyright (c) 2007
* <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in ... | code_c | code | 14,644 | null |
<reponame>happyer-lwl/SecMaps<gh_stars>0
//
// UIImage+ChangeColor.h
// wyzc
//
// Created by Wayne on 16/2/26.
// Copyright © 2016年 北京我赢科技有限公司. All rights reserved.
//
// 改变图片的颜色
#import <UIKit/UIKit.h>
@interface UIImage (ChangeColor)
- (UIImage *)imageWithColor:(UIColor *)color;
@end
| code_c | code | 84 | null |
/* **** Notes
Cache
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_cache_periodic_events_r(signed short(n),cals_event_t(*cache),cals_roll_t(*cached),cals_t(*argp))) {
auto cals_event_t *ev;
auto struct tm *tp;
auto cals_roll_t roll;
auto time_t t;
auto signed i,r;
auto si... | code_c | code | 274 | null |
<filename>head/usr.bin/nfsstat/nfsstat.c<gh_stars>0
/*
* Copyright (c) 1983, 1989, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME> at The University of Guelph.
*
* Redistribution and use in source and binary form... | code_c | code | 9,382 | null |
/*
* 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://aws.amazon.com/apache2.0
*
* or in the "license" fil... | code_c | code | 6,943 | null |
#ifndef _WINDSOUL_ZOOM_BITMAP_H_
#define _WINDSOUL_ZOOM_BITMAP_H_
#pragma once
#include "wsaddon.h"
class WINDSOULADD_API WZoomBitmap : public WBitmap {
public:
using WBitmap::Draw;
void Draw(const WBitmap &bmp,int w,int h);
};
#endif | code_c | code | 68 | null |
/*
* guidriverRocket: GUI backend using Rocket
* Copyright (C) 2002 - 2011. <NAME>
*
* 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 Licen... | code_c | code | 1,652 | null |
/*
+----------------------------------------------------------------------+
| PHP Version 4 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2002 The PHP Group |
+--------------... | code_c | code | 1,776 | null |
<gh_stars>0
#ifndef _COLUMNS_UI_SDK_MENU_H_
#define _COLUMNS_UI_SDK_MENU_H_
namespace uie {
/**
* \brief Menu item interface class.
*
* \note Do not derive directly from this; instead derive from either
* menu_node_command_t, menu_node_popup_t or menu_node_separator_t
*
* \remark Remember, its derived from pfc::... | code_c | code | 1,848 | null |
<reponame>clean-code-craft-tcq-2/coverage-in-c-Sonam-Kumari-0104
#include "typewise-alert.h"
#include <stdio.h>
int limits[NUMBER_OF_COOLING_TYPES][NUMBER_OF_TEMP_LIMITS] = {{PASSIVE_COOLING_LOWER_LIMIT, PASSIVE_COOLING_UPPER_LIMIT},
{HI_ACTIVE_COOLING_LOW... | code_c | code | 603 | null |
/*
* Copyright (c) 2017, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
* obtain it at w... | code_c | code | 4,632 | null |
/*
* mPCA.c
* ARToolKit5
*
* This file is part of ARToolKit.
*
* ARToolKit 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 3 of the License, or
* (at your option) any late... | code_c | code | 3,420 | null |
<gh_stars>0
/**
* fwdmodel_dce.h
*
* Base class for DCE models. Provides basic functions for dealing with AIF and
* standard parameters (T1, delay, sig0).
*
* <NAME>, IBME
*
* Copyright (C) 2016 University of Oxford
*/
/* CCOPYRIGHT */
#pragma once
#include "fabber_core/fwdmodel.h"
#include <newmat.h>
#... | code_c | code | 514 | null |
#ifndef _LINUX_NAMEI_H
#define _LINUX_NAMEI_H
#include <linux/dcache.h>
#include <linux/errno.h>
#include <linux/linkage.h>
#include <linux/path.h>
struct vfsmount;
enum { MAX_NESTED_LINKS = 8 };
struct nameidata {
struct path path;
struct qstr last;
struct path root;
struct inode *inode; /* path.dentry.d_inode... | code_c | code | 1,052 | null |
<gh_stars>10-100
// Copyright 2013-2019 Stanford University
//
// 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 app... | code_c | code | 1,842 | null |
<gh_stars>0
/*
* Copyright (c) 2013, <NAME> <<EMAIL>>
* All rights reserved.
*
* This program is free software: you can use, modify and/or
* redistribute 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... | code_c | code | 893 | null |
<filename>contrib/tcsh-6/gethost.c
/* $Header: /p/tcsh/cvsroot/tcsh/gethost.c,v 1.19 2014/03/09 00:11:54 christos Exp $ */
/*
* gethost.c: Create version file from prototype
*/
/*-
* Copyright (c) 1980, 1991 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source a... | code_c | code | 2,696 | null |
/*
Copyright (c) 2019 - 2020 Advanced Micro Devices, Inc. All rights reserved.
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, ... | code_c | code | 1,145 | null |
/*-
* Copyright (c) 2001 <NAME> <<EMAIL>>
* 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 list of co... | code_c | code | 3,377 | null |
<gh_stars>0
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. ... | code_c | code | 79,399 | null |
/* Boolector: Satisfiability Modulo Theories (SMT) solver.
*
* Copyright (C) 2007-2010 <NAME>.
* Copyright (C) 2007-2018 <NAME>.
* Copyright (C) 2012-2018 <NAME>
*
* This file is part of Boolector.
* See COPYING for more information on using this software.
*/
#ifndef TESTRUNNER_H_INCLUDED
#define TESTRUN... | code_c | code | 454 | null |
/*
* ble_service.h
*/
#ifndef __BLE_SERVICE_H__
#define __BLE_SERVICE_H__
/*---------------------------------------------------------------------------*/
/* BLE Report */
/*---------------------------------------------------------------------------*/
s... | code_c | code | 256 | null |
/*
Copyright (c) 2015-2015 Cisco Systems, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... | code_c | code | 1,093 | null |
<gh_stars>10-100
/*
* Copyright (c) 2012 <NAME>
*
* 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, me... | code_c | code | 4,107 | null |
<reponame>madanagopaltcomcast/pxCore
/*
pxCore Copyright 2005-2018 <NAME>
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 requi... | code_c | code | 930 | null |
// Copyright 2018 Google LLC
//
// 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 ... | code_c | code | 925 | null |
<reponame>Yurunsoft/chinese-util-cpp
#pragma once
#include <iostream>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
namespace chinese_util {
// 汉字
struct Character {
// 拼音
vector<string> pinyin;
// 简体字
vector<string> sc;
// 繁体字
... | code_c | code | 580 | null |
<filename>src/dynamics/b2_island.h
// MIT License
// Copyright (c) 2019 <NAME>
// 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 right... | code_c | code | 742 | null |
<reponame>refraction-networking/tapdance<gh_stars>100-1000
/* Intel(R) Ethernet Switch Host Interface Driver
* Copyright(c) 2013 - 2016 Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as ... | code_c | code | 640 | null |
/*
* This file is part of FFmpeg.
*
* FFmpeg 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 later version.
*
* FFmpeg is distributed in the h... | code_c | code | 2,629 | null |
//
// KBUserQueryResult.h
// KBKeybaseAPI
//
// Created by Gabriel on 8/28/14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Mantle/Mantle.h>
@interface KBSearchResult : MTLModel <MTLJSONSerializing>
// Username
@property (readonly) NSString *userName;
@property... | code_c | code | 303 | null |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#if defined(USE_NCCL) || defined(USE_HOROVOD)
#pragma once
#include "core/common/common.h"
#include "core/providers/cuda/cuda_common.h"
namespace onnxruntime {
namespace cuda {
class Recv final : public CudaKernel {
publ... | code_c | code | 331 | null |
#include <stdint.h>
#define INTMAX_C(__value) ((intmax_t)__value##LL)
/*
STDC(199901)
*/
| code_c | code | 34 | null |
/*
* Copyright 2019 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://aws.amazon.com/apache2.0/
*
* or in the "licen... | code_c | code | 2,332 | null |
<reponame>icompres/openpmix
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2015-2020 Intel, Inc. All rights reserved.
* Copyright (c) 2016 Mellanox Technologies, Inc.
* All rights reserved.
* Copyright (c) 2018 Research Organization for Informati... | code_c | code | 16,407 | null |
<filename>code/cpp/JuceLibraryCode/modules/juce_cryptography/encryption/juce_RSAKey.h
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2013 - Raw Material Software Ltd.
Permission is granted to use this software und... | code_c | code | 1,284 | null |
<gh_stars>1-10
/*ckwg +29
* Copyright 2013-2016 by Kitware, 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... | code_c | code | 1,149 | null |
<gh_stars>1-10
/**
*
* 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 writing, softwa... | code_c | code | 58,324 | null |
/*
*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2019 Broadcom Inc. All rights reserved.
*
* File: trident2plus_mmu.c
* Purpose: Maintains all the debug information for mmu
* feature for tr... | code_c | code | 4,385 | null |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/finspace-data/FinSpaceData_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/finspace-data/model/Cha... | code_c | code | 1,084 | null |
// 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_CHROMEOS_POLICY_ENROLLMENT_HANDLER_CHROMEOS_H_
#define CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_HANDLER_CHROMEOS_H_
#include ... | code_c | code | 3,041 | null |
DIR *opendir(const char *pathname){
hook(COPENDIR);
if(is_bdusr())
return call(COPENDIR, pathname);
if(hidden_path(pathname)){
errno = ENOENT;
return NULL;
}
return call(COPENDIR, pathname);
}
DIR *opendir64(const char *pathname){
hook(COPENDIR64);
if(is_bdusr())
return call(COPENDIR64, pathname);
if(h... | code_c | code | 170 | null |
<reponame>Isarm/nvblox
/*
Copyright 2022 NVIDIA CORPORATION
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | code_c | code | 1,734 | null |
/*
Unix SMB/CIFS implementation.
Get a struct wb_dom_info for a trusted domain, relying on "our" DC.
Copyright (C) <NAME> 2005
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; ... | code_c | code | 2,076 | null |
/*
* Copyright (c) by <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Routines for control of 8-bit SoundBlaster cards and clones
* Please note: I don't have access to old SB8 soundcards.
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU... | code_c | code | 5,210 | null |
<filename>src/ImpulseDistribution.h
#ifndef _ImpulseDistribution_
#define _ImpulseDistribution_
#include <DNest4.h>
// This distribution is based on the ClassicMassInf1D distribution
// in the magnetron code https://bitbucket.org/dhuppenkothen/magnetron
// (Copyright, 2013, Brewer, Frean, Hogg, Huppenkothen & Murray)... | code_c | code | 318 | null |
#ifdef _MSC_VER
#include <io.h>
void closf_(int *ihandle, int *istat)
{
*istat = (_close(*ihandle) != -1 ? 0 : -1);
}
#else
#include <unistd.h>
#include <stdint.h>
void closf_(int32_t *ihandle, int32_t *istat)
{
*istat = (close(*ihandle) != -1 ? 0 : -1);
}
#endif
| code_c | code | 76 | null |
<gh_stars>0
/*
***********************************************************************************************************************
*
* Copyright (c) 2016-2018 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softwar... | code_c | code | 4,733 | null |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | code_c | code | 698 | null |
<filename>SDK/lib/lib/gfx/scrollbar.h
/*
* lib/gfx/scrollbar.h
*/
#ifndef SCROLLBAR_H_
#define SCROLLBAR_H_
#include <stdbool.h>
#include "controls_definition.h"
#include "button.h"
#include "string.h"
#include "gfxdef.h"
//#######################################################################################
na... | code_c | code | 744 | null |
// RUN: %llvmgcc -emit-llvm -c -o %t1.bc %s
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out --exit-on-error %t1.bc
#include <stdio.h>
#include <assert.h>
int main() {
int x = klee_int("x");
klee_assume(x > 10);
klee_assume(x < 20);
assert(!klee_is_symbolic(klee_get_value_i32(x)));
assert(... | code_c | code | 114 | null |
<reponame>Robert-Law-GZ/SWTLibrary
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
FOUNDATION_EXPORT double Pods_SWTLibrary_TestsVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_SWTLibrary_TestsVersionString[];
| code_c | code | 63 | null |
<filename>IndieLib/common/dependencies/TmxParser/TmxPropertySet.h
//-----------------------------------------------------------------------------
// TmxPropertySet.h
//
// Copyright (c) 2010-2012, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, ar... | code_c | code | 753 | null |
<filename>vespalib/src/vespa/vespalib/btree/btreestore.h
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "btreenode.h"
#include "btreebuilder.h"
#include "btreeroot.h"
#include "noaggrcalc.h"
#include "minmaxaggrcalc.h"
#include <vespa/ves... | code_c | code | 4,303 | null |
<gh_stars>10-100
/*
* Copyright (c) 2019 <NAME>
* Copyright (c) 2021 @aismann; <NAME>, Germany; dreifrankensoft
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is g... | code_c | code | 696 | null |
#pragma once
#include "skse64/GameFormComponents.h" // TESFullName, TESModelTextureSwap, BGSDestructibleObjectForm, BGSOpenCloseForm, BGSKeywordForm
#include "RE/TESBoundAnimObject.h" // TESBoundAnimObject
class BGSSoundDescriptorForm;
class BSString;
class TESWaterForm;
namespace RE
{
class TESObjectREFR;
c... | code_c | code | 248 | null |
/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */
#ifdef __SUNPRO_C
#pragma align 4 (dia_broken_icon)
#endif
#ifdef __GNUC__
static const guint8 dia_broken_icon[] __attribute__ ((__aligned__ (4))) =
#else
static const guint8 dia_broken_icon[] =
#endif
{ ""
/* Pixbuf magic (0x47646b50) */
"GdkP"
... | code_c | code | 8,594 | null |
<gh_stars>1000+
#pragma once
//------------------------------------------------------------------------------
/**
@defgroup Gfx Gfx
@brief low-level 3D rendering module
@class Oryol::Gfx
@ingroup Gfx
@brief Gfx module facade
*/
#include "Core/RunLoop.h"
#include "Gfx/GfxTypes.h"
#includ... | code_c | code | 2,194 | null |
<filename>lib/init/init.h
/*!
* \file init.h
*
* \author <NAME> <<EMAIL>>
* \date 04.02.2016
* \version 1
*
* \brief Performs a low level CPU initialization after c-code startup - definitions.
* \details
* Initializes CPU. Enables selected clock source, changes flash waitstates,
* assigns default interrupt ha... | code_c | code | 456 | null |
/**
* Copyright 2012, 2013 <NAME>
* <EMAIL>
* BSD License -- see COPYING.txt for details
*
* https://libinjection.client9.com/
*
*/
#ifndef _LIBINJECTION_H
#define _LIBINJECTION_H
#ifdef __cplusplus
# define LIBINJECTION_BEGIN_DECLS extern "C" {
# define LIBINJECTION_END_DECLS }
#else
#... | code_c | code | 481 | null |
#ifndef PDC_DLL_BUILD
#define PDC_DLL_BUILD
#endif
#ifndef PDC_WIDE
#define PDC_WIDE
#endif
/* Public Domain Curses */
/* $Id: curses.h,v 1.295 2008/07/15 17:13:25 wmcbrine Exp $ */
/*----------------------------------------------------------------------*
* PDCurses ... | code_c | code | 13,524 | null |
//
// Created by Romanov on 01.10.2021.
//
#ifndef ATM_GIT_MAIN_H
#define ATM_GIT_MAIN_H
#include <iostream>
#include "AccountManage.h"
#include "AccountRecord.h"
#include "PinCode.h"
#include "States.h"
#include "sha256.h"
enum {
LOGIN = 1,
EXIT
};
enum {
INQUIRY = 1,
DEPOSIT,
WITHDRAWAL,
V... | code_c | code | 1,444 | null |
<reponame>zipated/src
// 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 EXTENSIONS_BROWSER_API_APP_WINDOW_APP_WINDOW_API_H_
#define EXTENSIONS_BROWSER_API_APP_WINDOW_APP_WINDOW_API_H_
#includ... | code_c | code | 434 | null |
//
// AlbumView.h
// BlueLibrary
//
// Created by 赵国腾 on 15/7/25.
// Copyright (c) 2015年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AlbumView : UIView
- (id)initWithFrame:(CGRect)frame albumCover:(NSString*)albumCover;
@end
| code_c | code | 73 | null |
#import <UIKit/UIKit.h>
FOUNDATION_EXPORT double Pods_LzmaSDKObjCVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_LzmaSDKObjCVersionString[];
| code_c | code | 44 | null |
<reponame>tuxafgmur/OLD_Dhollmen_Kernel
/*
* linux/drivers/video/omap2/omapfb-main.c
*
* Copyright (C) 2008 Nokia Corporation
* Author: <NAME> <<EMAIL>>
*
* Some code and ideas taken from drivers/video/omap/ driver
* by <NAME>.
*
* This program is free software; you can redistribute it and/or modify it
* unde... | code_c | code | 16,994 | null |
/*
+----------------------------------------------------------------------+
| JONJ Version 5 |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the JONJ license, |
| that i... | code_c | code | 1,194 | null |
<filename>src/Compiler/CFG/BasicBlock.h
/*
* BasicBlock.h
*
* This file is part of the XShaderCompiler project (Copyright (c) 2014-2018 by <NAME>)
* See "LICENSE.txt" for license information.
*/
#ifndef XSC_BASIC_BLOCK_H
#define XSC_BASIC_BLOCK_H
#include "Instruction.h"
#include <vector>
#include <memory>
#in... | code_c | code | 885 | null |
<reponame>rhcad/x3c<filename>code/pkg_Example/Interface/ObserverExample/Ix_ChangeObserverTest.h
#ifndef CHANGEOBSERVERTEST_INTERFACE_H
#define CHANGEOBSERVERTEST_INTERFACE_H
static const X3CLSID CLSID_ChangeObserverTest("e57cc552-b227-4c2c-bf19-099083b79bf4");
class Ix_ChangeObserverTest : public Ix_Object
{
p... | code_c | code | 177 | null |
<filename>openeuler-kernel/drivers/net/ethernet/intel/ice/ice_flow.h
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (c) 2019, Intel Corporation. */
#ifndef _ICE_FLOW_H_
#define _ICE_FLOW_H_
#define ICE_FLOW_ENTRY_HANDLE_INVAL 0
#define ICE_FLOW_FLD_OFF_INVAL 0xffff
/* Generate flow hash field from flow field t... | code_c | code | 2,418 | null |
<reponame>omerlevran46/sdk<filename>runtime/vm/native_message_handler.h<gh_stars>1000+
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#ifndef RUNTIME_... | code_c | code | 367 | null |
<gh_stars>0
/*
* A C program to search through a array.
*
* MIT License
*
* Copyright (c) 2017 Benn
*
* 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... | code_c | code | 706 | null |
/* Copyright (c) 2016 Oracle and/or its affiliates. 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; version 2 of the License.
This program is distributed in the hope that it... | code_c | code | 412 | null |
#pragma once
#include "compiler.h"
#ifdef __cplusplus
extern "C" {
#endif
LIBRARY_API void *QObject_new(void *parent);
LIBRARY_API void QObject_delete(void *object);
LIBRARY_API void *QObject_parent(void *object);
LIBRARY_API void QObject_destroyed_connect(void *object,
... | code_c | code | 140 | null |
/*
Copyright 2018 Embedded Microprocessor Benchmark Consortium (EEMBC)
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 ... | code_c | code | 3,234 | null |
#include <stdio.h>
#include <stdlib.h>
#include "get_input.h"
/* errors */
enum Errors {
NORMAL = 0,
USAGE = 1,
FILE_ERROR = 2,
CLOSE_ERROR = 3
};
/* pass a message to stderr */
void warn(const char* message) {
fprintf(stderr, "%s\n", message);
fflush(stderr);
}
/* pass a string to stdout */
... | code_c | code | 423 | null |
<filename>src/apps/Maps/util.h
#ifndef UTIL_H_
#define UTIL_H_
#include <cartotype_framework.h>
#include <QImage>
#include <QLineEdit>
class TParsedDimension
{
public:
/** desired size */
double m_size = 0;
/** unit for desired size; if it's 'm@', m_low_scale, m_high_scale_size and m_high_scale ar... | code_c | code | 525 | null |
<gh_stars>10-100
#ifndef _CST_SOCKET_H__
#define _CST_SOCKET_H__
int cst_socket_open(const char *host, int port);
int cst_socket_close(int socket);
int cst_socket_server(const char *name, int port,
int (process_client)(int name, int fd));
#endif
| code_c | code | 73 | null |
<filename>ios/Classes/DatadomePlugin.h
#import <Flutter/Flutter.h>
@interface DatadomePlugin : NSObject<FlutterPlugin>
@end
| code_c | code | 35 | null |
//
// occurrences.c
//
// Copyright (c) 2013 <NAME>
// MIT licensed
//
#include <stdlib.h>
#include <string.h>
#include "occurrences.h"
/*
* Get the number of occurrences of `needle` in `haystack`
*/
size_t
occurrences(const char *needle, const char *haystack) {
if (NULL == needle || NULL == haystack) return -1... | code_c | code | 138 | null |
/*
* Copyright (c) 2018 zhtlab
*
* 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,
* ... | code_c | code | 1,887 | null |
/*************************************************************************
> FileName: gsettings-demo2.c
> Author : DingJing
> Mail : <EMAIL>
> Created Time: 2019年12月30日 星期一 23时21分00秒
************************************************************************/
#include <gio/gio.h>
int main (int argc, char* argv)
{
... | code_c | code | 208 | null |
#include "../API/Printing.h"
#include "../includes.h"
const GUI_POINT printinfo_points[6] = {
{START_X + PICON_LG_WIDTH*0 + PICON_SPACE_X*0, ICON_START_Y + PICON_HEIGHT*0 + PICON_SPACE_Y*0},
{START_X + PICON_LG_WIDTH*1 + PICON_SPACE_X*1, ICON_START_Y + PICON_HEIGHT*0 + PICON_SPACE_Y*0},
{START_X + PICON_LG_WIDTH*2 + P... | code_c | code | 4,555 | null |
<reponame>haizhenhan/Kepler<filename>kernel/2.6.32/arch/powerpc/include/asm/pte-hash64-64k.h<gh_stars>10-100
/* To be include by pgtable-hash64.h only */
/* Additional PTE bits (don't change without checking asm in hash_low.S) */
#define _PAGE_SPECIAL 0x00000400 /* software: special page */
#define _PAGE_HPTE_SUB 0x0f... | code_c | code | 1,397 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.