repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
skylib/SnapSnapshotBase | SnapFBSnapshotBaseExample/Pods/Target Support Files/Pods-Snapshot_tests/Pods-Snapshot_tests-umbrella.h | #ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
FOUNDATION_EXPORT double Pods_Snapshot_testsVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_Snapshot_testsVersionString[];
|
skylib/SnapSnapshotBase | SnapFBSnapshotBaseExample/Pods/Target Support Files/SnapFBSnapshotBase/SnapFBSnapshotBase-umbrella.h | <gh_stars>1-10
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
#import "SnapFBSnapshotBase.h"
#import "SnapFBSnapshotSwiftTestCase.h"
FOUNDATION_EXPORT double SnapFBSnapshotBaseVersionNumber;
FOUNDATION_EXPORT const unsigned char SnapFBSnapshotBaseVersionString[];
|
skylib/SnapSnapshotBase | SnapFBSnapshotBaseExample/Pods/Target Support Files/Pods-SnapFBSnapshotBaseExample/Pods-SnapFBSnapshotBaseExample-umbrella.h | <filename>SnapFBSnapshotBaseExample/Pods/Target Support Files/Pods-SnapFBSnapshotBaseExample/Pods-SnapFBSnapshotBaseExample-umbrella.h
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
FOUNDATION_EXPORT double Pods_SnapFBSnapshotBaseExampleVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_SnapFBSnapshotBaseExamp... |
skylib/SnapSnapshotBase | SnapFBSnapshotBase/SnapFBSnapshotSwiftTestCase.h | #import <FBSnapshotTestCase/FBSnapshotTestCase-umbrella.h>
@interface SnapFBSnapshotSwiftTestCase : FBSnapshotTestCase
- (void)verifyView:(UIView *)view;
@end
|
skylib/SnapSnapshotBase | SnapFBSnapshotBase/SnapFBSnapshotBase.h | #define kIphone4PortraitRect CGRectMake(0, 0, 320, 480)
#define kIphone4PortraitSizeClasses @[@(UIUserInterfaceSizeClassCompact), @(UIUserInterfaceSizeClassRegular)]
#define kIphone5PortraitRect CGRectMake(0, 0, 320, 568)
#define kIphone5PortraitSizeClasses @[@(UIUserInterfaceSizeClassCompact), @(UIUserInterfaceSizeCl... |
graphitemaster/pds2tc | s2tc.c | #include <string.h> /* memcpy */
#include <assert.h>
#include "s2tc.h"
/* Min and max macros */
#define S2TC_MIN(A, B) (((A) < (B)) ? (A) : (B))
#define S2TC_MAX(A, B) (((A) > (B)) ? (A) : (B))
/* Right shift and round */
#define RSHIFT(A, N) (((A) + (1 << ((N) - 1))) >> (N))
/* Color subtraction */
#define CSUB(A, B... |
graphitemaster/pds2tc | s2tc.h | #ifndef S2TC_HDR
#define S2TC_HDR
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif /*!__cplusplus*/
/**
* Type: s2tc_dxt_mode_t
* The DXT mode to use for a context
*/
typedef enum {
S2TC_DXT1,
S2TC_DXT3,
S2TC_DXT5
} s2tc_dxt_mode_t;
/**
* Type: s2tc_dist_mode_t
* The color distance mode ... |
dariosanfilippo/bitstream_ANN_DSP | dsm.h | <gh_stars>1-10
/*
* *****************************************************************************
*
* Delta-sigma modulators.
*
* *****************************************************************************
*/
#ifndef DSM
#define DSM
void dsm1(Sig* in, Sig* out, size_t in_vec_id, size_t out_vec_id);
voi... |
dariosanfilippo/bitstream_ANN_DSP | osc.h | <filename>osc.h
/*
* *****************************************************************************
*
* Oscillators
*
* *****************************************************************************
*/
#ifndef OSC
#define OSC
#define TWOPI 2.0 * M_PI
void sine(size_t sr, audio amp, audio freq, audio phase,... |
dariosanfilippo/bitstream_ANN_DSP | random.c | /* Unit-bounded floatng-point random numbers. */
#include "random.h"
audio frand(void) {
return rand() / (audio) RAND_MAX;
}
|
dariosanfilippo/bitstream_ANN_DSP | tests/fulladder_test.c | <reponame>dariosanfilippo/bitstream_ANN_DSP
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdbool.h>
#include <assert.h>
#include "signals.c"
#include "osc.c"
#include "dsm.c"
#include "bitmath.c"
int main(void) {
FILE *fptr;
fptr = fopen("fa.csv", "w+");
size_t l... |
dariosanfilippo/bitstream_ANN_DSP | osc.c | /*******************************************************************************
*
* Sinusoidal oscillator.
*
* Copyright (c) <NAME> 2021.
*
*******************************************************************************/
#include "osc.h"
void sine(size_t sr, audio amp, audio freq, audio phase, Sig* ou... |
dariosanfilippo/bitstream_ANN_DSP | freq_est_uni.c | /*******************************************************************************
*
* This file is used to train and test unipolar networks for the estimation
* of the frequency in DSM sinusoids with different frequency, amplitude,
* and phase values. These networks, in particular, are used with the ... |
dariosanfilippo/bitstream_ANN_DSP | data.h | /*******************************************************************************
*
* This module contains functions for the generation of training and
* test data for frequency and amplitude estimation, and sum and
* multiplication operations.
*
* Copyright (c) <NAME> 2021.
*
****************... |
dariosanfilippo/bitstream_ANN_DSP | bitmath.h | <reponame>dariosanfilippo/bitstream_ANN_DSP<gh_stars>1-10
/*******************************************************************************
*
* This module contains delta-sigma arithmetic operators.
*
* Reference:
* <NAME> (2009) -- Bit-stream signal processing on FPGA.
* http://hub.hku... |
dariosanfilippo/bitstream_ANN_DSP | bitmath.c | /*******************************************************************************
*
* This module contains delta-sigma arithmetic operators.
*
* Reference:
* Ch<NAME> (2009) -- Bit-stream signal processing on FPGA.
* http://hub.hku.hk/handle/10722/54513
*
* Copyright (c) <NAME> 2... |
dariosanfilippo/bitstream_ANN_DSP | random.h | /* Unit-bounded floatng-point random numbers. */
audio frand(void);
|
dariosanfilippo/bitstream_ANN_DSP | signals.h | /*******************************************************************************
*
* This module implements an infrastructure to operate with signals
* based on a vector space representation.
*
* Copyright (c) <NAME> 2021.
*
*************************************************************************... |
dariosanfilippo/bitstream_ANN_DSP | signals.c | <reponame>dariosanfilippo/bitstream_ANN_DSP
/*******************************************************************************
*
* This module implements an infrastructure to operate with signals
* based on a vector space representation.
*
* Copyright (c) <NAME> 2021.
*
*****************************... |
dariosanfilippo/bitstream_ANN_DSP | dsm.c | /*******************************************************************************
*
* This file contains first, second, and third-order delta-sigma
* modulators for multi-bit to one-bit conversion.
*
* While the first-order modulator is stable for any signal in the
* full-scale digital amplitu... |
dariosanfilippo/bitstream_ANN_DSP | tests/data_test.c | <filename>tests/data_test.c
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdbool.h>
#include <assert.h>
#include "signals.c"
#include "osc.c"
#include "dsm.c"
#include "bitmath.c"
#include "data.c"
int main(void) {
size_t sr = 192000;
size_t in_len = 64;
size_... |
dariosanfilippo/bitstream_ANN_DSP | data.c | /*******************************************************************************
*
* This module contains functions for the generation of training and
* test data for frequency and amplitude estimation, and sum and
* multiplication operations.
*
* Copyright (c) <NAME> 2021.
*
****************... |
dariosanfilippo/bitstream_ANN_DSP | tests/binaryadder_test.c | <reponame>dariosanfilippo/bitstream_ANN_DSP<filename>tests/binaryadder_test.c
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdbool.h>
#include <assert.h>
#include "signals.c"
#include "osc.c"
#include "dsm.c"
#include "bitmath.c"
int main(void) {
FILE* fptr;
fptr = fo... |
GlitterIsMe/gogeardb | gogeardb.c | #include "gogeardb.h"
#include "_cgo_export.h"
leveldb_comparator_t* go_geardb_create_comparator() {
return leveldb_comparator_create(
NULL,
go_geardb_destructor,
(int (*)(void*, const char* a, size_t alen, const char* b, size_t blen))(go_geardb_compare),
(const char* (*)(void*))(go_geardb_name));
} |
GlitterIsMe/gogeardb | gogeardb.h | #include <stdlib.h>
#include "leveldb/c.h"
extern leveldb_comparator_t* go_geardb_create_comparator();
|
Kai-Wolf-SW-Consulting/Paramount | src/base/integral_types.h | // Copyright (c) 2017, <NAME>. All rights reserved.
// Use of this source code is governed by a personal license that can be
// found in the LICENSE file in the top directory.
#ifndef PARAMOUNT_INTEGRAL_TYPES_H
#define PARAMOUNT_INTEGRAL_TYPES_H
#include "base/macros.h"
namespace pmt {
// Following are basic intege... |
Kai-Wolf-SW-Consulting/Paramount | src/base/callback_impl.h | // Copyright (c) 2017, <NAME>. All rights reserved.
// Use of this source code is governed by a personal license that can be
// found in the LICENSE file in the topdirectory.
#ifndef PARAMOUNT_CALLBACK_IMPL_H
#define PARAMOUNT_CALLBACK_IMPL_H
#include "base/callback_types.h"
#include <type_traits>
namespace pmt {
na... |
Kai-Wolf-SW-Consulting/Paramount | include/pmt/for_each_argument.h | // Copyright (c) 2017, <NAME>. All rights reserved.
// Use of this source code is governed by a personal license that can be
// found in the LICENSE file in the top directory.
#ifndef PARAMOUNT_FOR_EACH_ARGUMENT_H
#define PARAMOUNT_FOR_EACH_ARGUMENT_H
#include <iostream>
#include <utility>
namespace pmt {
template ... |
Kai-Wolf-SW-Consulting/Paramount | src/base/scope_guard.h | // Copyright (c) 2017, <NAME>. All rights reserved.
// Use of this source code is governed by a personal license that can be
// found in the LICENSE file in the top directory.
#ifndef PARAMOUNT_SCOPE_GUARD_H
#define PARAMOUNT_SCOPE_GUARD_H
#include "base/macros.h"
#include <utility>
namespace pmt {
namespace base {
... |
End of preview. Expand in Data Studio
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
This dataset is 10% repo sampled dataset for selected languages. We applied a repo sample rate of 10%. e.g. if sample rate is 10% then we take 10% of all repos for a given language but include all files inside the repo.
This was generated using our codecomplete/training/completions/datagen
./launch.sh \
--dataset-name bigcode/starcoderdata \
--subset c,cpp,go,java,javascript,typescript,python,ruby,scala,sql \
--sample-rate 0.01 \
--hf-token <HF_TOKEN> \
--output-dir /home/${USER}/data \
--cache-dir /home/${USER}/hfcache \
--output-name c-cpp-go-java-javascript-typescript-python-ruby-scala-sql-0.01 \
--shuffle \
--build
Create the repository
# Install git lfs to suport large files
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs
# create the dataset repo
huggingface-cli repo create <your_dataset_name> --type dataset --organization codecomplete
e.g.
huggingface-cli repo create base_dataset --type dataset --organization codecomplete
Clone the repository
git lfs install
git clone https://huggingface.co/datasets/<your_organization_name>/<your_dataset_name>
e.g.
git clone https://huggingface.co/datasets/codecomplete/base_dataset
Prepare your files
Create a descriptive README.md and check the dataset.json file
cp /somewhere/base_dataset/*.json .
git lfs track *.json
git add .gitattributes
git add *.json
git add --all
Upload your files
git status
git commit -m "First version of the your_dataset_name dataset."
git push
Verify dataset
from datasets import load_dataset
dataset = load_dataset("codecomplete/<your_dataset_name>")
print(dataset.num_rows)
- Downloads last month
- 171