commit
stringlengths 40
40
| old_file
stringlengths 4
112
| new_file
stringlengths 4
112
| old_contents
stringlengths 0
2.05k
| new_contents
stringlengths 28
3.9k
| subject
stringlengths 17
736
| message
stringlengths 18
4.78k
| lang
stringclasses 1
value | license
stringclasses 13
values | repos
stringlengths 7
111k
|
---|---|---|---|---|---|---|---|---|---|
cd6663b9bab8f725d1138946f1690e63ca440238 | include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h | include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h | //===-- UnifyMethodExitNodes.h - Ensure methods have one return --*- C++ -*--=//
//
// This pass is used to ensure that methods have at most one return instruction
// in them. It also holds onto the return instruction of the last unified
// method.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_XFORMS_UNIFY_METHOD_EXIT_NODES_H
#define LLVM_XFORMS_UNIFY_METHOD_EXIT_NODES_H
#include "llvm/Pass.h"
struct UnifyMethodExitNodes : public MethodPass {
BasicBlock *ExitNode;
public:
static AnalysisID ID; // Pass ID
UnifyMethodExitNodes(AnalysisID id) : ExitNode(0) { assert(ID == id); }
// UnifyAllExitNodes - Unify all exit nodes of the CFG by creating a new
// BasicBlock, and converting all returns to unconditional branches to this
// new basic block. The singular exit node is returned in ExitNode.
//
// If there are no return stmts in the Method, a null pointer is returned.
//
static bool doit(Method *M, BasicBlock *&ExitNode);
virtual bool runOnMethod(Method *M) {
return doit(M, ExitNode);
}
BasicBlock *getExitNode() const { return ExitNode; }
virtual void getAnalysisUsageInfo(Pass::AnalysisSet &Required,
Pass::AnalysisSet &Destroyed,
Pass::AnalysisSet &Provided) {
// FIXME: Should invalidate CFG
Provided.push_back(ID); // Provide self!
}
};
#endif
| //===-- UnifyMethodExitNodes.h - Ensure methods have one return --*- C++ -*--=//
//
// This pass is used to ensure that methods have at most one return instruction
// in them. It also holds onto the return instruction of the last unified
// method.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_XFORMS_UNIFY_METHOD_EXIT_NODES_H
#define LLVM_XFORMS_UNIFY_METHOD_EXIT_NODES_H
#include "llvm/Pass.h"
struct UnifyMethodExitNodes : public MethodPass {
BasicBlock *ExitNode;
public:
static AnalysisID ID; // Pass ID
UnifyMethodExitNodes(AnalysisID id = ID) : ExitNode(0) { assert(ID == id); }
// UnifyAllExitNodes - Unify all exit nodes of the CFG by creating a new
// BasicBlock, and converting all returns to unconditional branches to this
// new basic block. The singular exit node is returned in ExitNode.
//
// If there are no return stmts in the Method, a null pointer is returned.
//
static bool doit(Method *M, BasicBlock *&ExitNode);
virtual bool runOnMethod(Method *M) {
return doit(M, ExitNode);
}
BasicBlock *getExitNode() const { return ExitNode; }
virtual void getAnalysisUsageInfo(Pass::AnalysisSet &Required,
Pass::AnalysisSet &Destroyed,
Pass::AnalysisSet &Provided) {
// FIXME: Should invalidate CFG
Provided.push_back(ID); // Provide self!
}
};
#endif
| Add constructor for addition to opt program | Add constructor for addition to opt program
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@1626 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm |
5564e6c45401c37adb9444b6bf0ef8ce70b1fce8 | test/Misc/dev-fd-fs.c | test/Misc/dev-fd-fs.c | // Check that we can operate on files from /dev/fd.
// REQUIRES: dev-fd-fs
// Check reading from named pipes. We cat the input here instead of redirecting
// it to ensure that /dev/fd/0 is a named pipe, not just a redirected file.
//
// RUN: cat %s | %clang -x c /dev/fd/0 -E > %t
// RUN: FileCheck --check-prefix DEV-FD-INPUT < %t %s
// DEV-FD-INPUT: int x;
int x;
| // Check that we can operate on files from /dev/fd.
// REQUIRES: dev-fd-fs
// Check reading from named pipes. We cat the input here instead of redirecting
// it to ensure that /dev/fd/0 is a named pipe, not just a redirected file.
//
// RUN: cat %s | %clang -x c /dev/fd/0 -E > %t
// RUN: FileCheck --check-prefix DEV-FD-INPUT < %t %s
//
// DEV-FD-INPUT: int x;
// Check writing to /dev/fd named pipes. We use cat here as before to ensure we
// get a named pipe.
//
// RUN: %clang -x c %s -E -o /dev/fd/1 | cat > %t
// RUN: FileCheck --check-prefix DEV-FD-FIFO-OUTPUT < %t %s
//
// DEV-FD-FIFO-OUTPUT: int x;
// Check writing to /dev/fd regular files.
//
// RUN: %clang -x c %s -E -o /dev/fd/1 > %t
// RUN: FileCheck --check-prefix DEV-FD-REG-OUTPUT < %t %s
//
// DEV-FD-REG-OUTPUT: int x;
int x;
| Check that we can output to /dev/fd filesystem. | tests: Check that we can output to /dev/fd filesystem.
- An LLVM unique_file() bug could cause us to infinite loop on the later test
case.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@168082 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang |
478712e78ca63c1816adfdfc25ff323ab30df49d | src/quick_sort.h | src/quick_sort.h | // -*- mode: c++ -*-
// Copyright (c) 2014 Olaf Dietsche
#ifndef __quick_sort_h_included__
#define __quick_sort_h_included__
#include <functional>
#include <iterator>
#include <utility>
template<typename I, typename T, typename C> I quicksort_partition(I first, I last, C cmp)
{
--last;
T pivot = *last;
while (first < last) {
while (first != last && cmp(*first, pivot))
++first;
while (first != last && cmp(pivot, *last))
--last;
if (first != last)
std::swap(*first, *last);
}
return first;
}
template<typename I, typename T = typename std::iterator_traits<I>::value_type, typename C = std::less<T>> void quick_sort(I first, I last, C cmp = C())
{
if (last - first > 1) {
I i = quicksort_partition<I, T, C>(first, last, cmp);
quick_sort(first, i, cmp);
quick_sort(i, last, cmp);
}
}
#endif
| // -*- mode: c++ -*-
// Copyright (c) 2014 Olaf Dietsche
#ifndef __quick_sort_h_included__
#define __quick_sort_h_included__
#include <functional>
#include <iterator>
#include <utility>
template<typename I, typename T, typename C> I quicksort_partition(I first, I last, C cmp)
{
--last;
T pivot = *last;
while (first < last) {
while (first != last && cmp(*first, pivot))
++first;
while (first != last && cmp(pivot, *last))
--last;
if (first != last)
std::swap(*first, *last);
}
return first;
}
template<typename I, typename T = typename std::iterator_traits<I>::value_type, typename C = std::less<T>> void quick_sort(I first, I last, C cmp = C())
{
if (last - first > 1) {
I i = quicksort_partition<I, T, C>(first, last, cmp);
quick_sort(first, i, cmp);
quick_sort(i + 1, last, cmp);
}
}
#endif
| Fix sort of second half | Fix sort of second half
| C | mit | olafdietsche/algorithms |
1f8ab6a78828996947893bef790d5fb7d24d8197 | src/bin/test_panel.c | src/bin/test_panel.c | #include <Elementary.h>
#ifndef ELM_LIB_QUICKLAUNCH
void
test_panel(void *data, Evas_Object *obj, void *event_info)
{
Evas_Object *win, *bg, *panel;
win = elm_win_add(NULL, "panel", ELM_WIN_BASIC);
elm_win_title_set(win, "Panel");
elm_win_autodel_set(win, 1);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_show(bg);
panel = elm_panel_add(win);
elm_panel_orient_set(panel, ELM_PANEL_ORIENT_LEFT);
evas_object_size_hint_weight_set(panel, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(panel, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(panel);
evas_object_resize(win, 300, 300);
evas_object_show(win);
}
#endif
| #include <Elementary.h>
#ifndef ELM_LIB_QUICKLAUNCH
void
test_panel(void *data, Evas_Object *obj, void *event_info)
{
Evas_Object *win, *bg, *panel;
Evas_Object *list;
win = elm_win_add(NULL, "panel", ELM_WIN_BASIC);
elm_win_title_set(win, "Panel");
elm_win_autodel_set(win, 1);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_show(bg);
panel = elm_panel_add(win);
elm_panel_orient_set(panel, ELM_PANEL_ORIENT_LEFT);
evas_object_size_hint_weight_set(panel, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(panel, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(panel);
list = elm_genlist_add(win);
evas_object_resize(list, 100, 100);
evas_object_size_hint_weight_set(list, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(list, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(list);
elm_panel_content_set(panel, list);
evas_object_resize(win, 300, 300);
evas_object_show(win);
}
#endif
| Add a genlist to the panel test. | Add a genlist to the panel test.
SVN revision: 43175
| C | lgpl-2.1 | FlorentRevest/Elementary,rvandegrift/elementary,tasn/elementary,tasn/elementary,FlorentRevest/Elementary,tasn/elementary,rvandegrift/elementary,rvandegrift/elementary,rvandegrift/elementary,tasn/elementary,tasn/elementary,FlorentRevest/Elementary,FlorentRevest/Elementary |
abbeadabe96f0d17430bff01e9d01643fa54ca82 | Classes/GTDiff.h | Classes/GTDiff.h | //
// GTDiff.h
// ObjectiveGitFramework
//
// Created by Danny Greg on 29/11/2012.
// Copyright (c) 2012 GitHub, Inc. All rights reserved.
//
#import "git2.h"
@class GTTree;
@interface GTDiff : NSObject
@property (nonatomic, readonly, assign) git_diff_list *git_diff_list;
+ (GTDiff *)diffOldTree:(GTTree *)oldTree withNewTree:(GTTree *)newTree options:(NSUInteger)options;
+ (GTDiff *)diffIndexToOldTree:(GTTree *)oldTree withOptions:(NSUInteger)options;
+ (GTDiff *)diffWorkingDirectoryToIndexWithOptions:(NSUInteger)options;
+ (GTDiff *)diffWorkingDirectoryToTree:(GTTree *)tree withOptions:(NSUInteger)options;
@end
| //
// GTDiff.h
// ObjectiveGitFramework
//
// Created by Danny Greg on 29/11/2012.
// Copyright (c) 2012 GitHub, Inc. All rights reserved.
//
#import "git2.h"
@class GTTree;
typedef enum : git_delta_t {
GTDiffFileDeltaUnmodified = GIT_DELTA_UNMODIFIED,
GTDiffFileDeltaAdded = GIT_DELTA_ADDED,
GTDiffFileDeltaDeleted = GIT_DELTA_DELETED,
GTDiffFileDeltaModified = GIT_DELTA_MODIFIED,
GTDiffFileDeltaRenamed = GIT_DELTA_RENAMED,
GTDiffFileDeltaCopied = GIT_DELTA_COPIED,
GTDiffFileDeltaIgnored = GIT_DELTA_IGNORED,
GTDiffFileDeltaUntracked = GIT_DELTA_UNTRACKED,
GTDiffFileDeltaTypeChange = GIT_DELTA_TYPECHANGE,
} GTDiffFileDelta;
@interface GTDiff : NSObject
@property (nonatomic, readonly, assign) git_diff_list *git_diff_list;
+ (GTDiff *)diffOldTree:(GTTree *)oldTree withNewTree:(GTTree *)newTree options:(NSUInteger)options;
+ (GTDiff *)diffIndexToOldTree:(GTTree *)oldTree withOptions:(NSUInteger)options;
+ (GTDiff *)diffWorkingDirectoryToIndexWithOptions:(NSUInteger)options;
+ (GTDiff *)diffWorkingDirectoryToTree:(GTTree *)tree withOptions:(NSUInteger)options;
@end
| Declare an enum for git_delta_t | Declare an enum for git_delta_t
| C | mit | phatblat/objective-git,c9s/objective-git,Acidburn0zzz/objective-git,dleehr/objective-git,tiennou/objective-git,libgit2/objective-git,misterfifths/objective-git,alehed/objective-git,blackpixel/objective-git,misterfifths/objective-git,c9s/objective-git,0x4a616e/objective-git,alehed/objective-git,TOMalley104/objective-git,blackpixel/objective-git,tiennou/objective-git,Acidburn0zzz/objective-git,Acidburn0zzz/objective-git,TOMalley104/objective-git,slavikus/objective-git,pietbrauer/objective-git,libgit2/objective-git,c9s/objective-git,phatblat/objective-git,tiennou/objective-git,javiertoledo/objective-git,royalwang/objective-git,0x4a616e/objective-git,Acidburn0zzz/objective-git,alehed/objective-git,slavikus/objective-git,nerdishbynature/objective-git,misterfifths/objective-git,pietbrauer/objective-git,blackpixel/objective-git,dleehr/objective-git,nerdishbynature/objective-git,dleehr/objective-git,TOMalley104/objective-git,pietbrauer/objective-git,javiertoledo/objective-git,dleehr/objective-git,misterfifths/objective-git,javiertoledo/objective-git,TOMalley104/objective-git,javiertoledo/objective-git,libgit2/objective-git,blackpixel/objective-git,phatblat/objective-git,c9s/objective-git,libgit2/objective-git,pietbrauer/objective-git,slavikus/objective-git,nerdishbynature/objective-git,0x4a616e/objective-git |
162924dad528b4b475150405038f507876e1634d | composite.c | composite.c | #include "composite.h"
Image * compositeImage(Image *canvas, void *data, ExceptionInfo *ex)
{
CompositeData *d = data;
if (!CompositeImage(canvas, d->composite, d->draw, d->x, d->y)) {
}
return canvas;
}
| #include "composite.h"
Image * compositeImage(Image *canvas, void *data, ExceptionInfo *ex)
{
CompositeData *d = data;
if (!CompositeImage(canvas, d->composite, d->draw, d->x, d->y)) {
ex->severity = DrawError;
return NULL;
}
return canvas;
}
| Return an error if CompositeImage fails | Return an error if CompositeImage fails
| C | mit | etix/magick,rainycape/magick,zuriu/magick,zuriu/magick,500px/magick,500px/magick,rainycape/magick,zuriu/magick,500px/magick,etix/magick,etix/magick,rainycape/magick |
57113e9209a110d6ee9743b01f396f14016b13f6 | include/nbind/nbind.h | include/nbind/nbind.h | // This file is part of nbind, copyright (C) 2014-2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.
#pragma once
#define NBIND_MULTIMETHOD(name, args, ...) definer.overloaded args ().method(name, ## __VA_ARGS__)
#include "noconflict.h"
#define function NBIND_FUNCTION
#define multifunction NBIND_MULTIFUNCTION
#define method(...) NBIND_METHOD(__VA_ARGS__)
#define inherit(...) NBIND_INHERIT(__VA_ARGS__)
#define args NBIND_ARGS
#define multimethod NBIND_MULTIMETHOD
#define construct NBIND_CONSTRUCT
#define field(...) NBIND_FIELD(__VA_ARGS__)
#define getter NBIND_GETTER
#define getset NBIND_GETSET
| // This file is part of nbind, copyright (C) 2014-2016 BusFaster Ltd.
// Released under the MIT license, see LICENSE.
#pragma once
#define NBIND_MULTIMETHOD(name, args, ...) definer.overloaded args ().method(name, ## __VA_ARGS__)
#include "noconflict.h"
#define function NBIND_FUNCTION
#define multifunction NBIND_MULTIFUNCTION
#define method(...) NBIND_EXPAND(NBIND_METHOD(__VA_ARGS__))
#define inherit(...) NBIND_INHERIT(__VA_ARGS__)
#define args NBIND_ARGS
#define multimethod NBIND_MULTIMETHOD
#define construct NBIND_CONSTRUCT
#define field(...) NBIND_FIELD(__VA_ARGS__)
#define getter NBIND_GETTER
#define getset NBIND_GETSET
| Fix build issue on Windows. | Fix build issue on Windows.
| C | mit | charto/nbind,charto/nbind,charto/nbind,charto/nbind,charto/nbind,charto/nbind |
b10f05e91dc5bd22105a4159e0ecf4f41f2d27f2 | vsprojects/dummy.c | vsprojects/dummy.c | /*
*
* Copyright 2015, 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, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following disclaimer
* in the documentation and/or other materials provided with the
* distribution.
* * Neither the name of Google Inc. nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
| /*
*
* Copyright 2015, 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, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following disclaimer
* in the documentation and/or other materials provided with the
* distribution.
* * Neither the name of Google Inc. nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
| Fix newline at end of file | Fix newline at end of file
| C | apache-2.0 | malexzx/grpc,jtattermusch/grpc,kpayson64/grpc,grani/grpc,goldenbull/grpc,nicolasnoble/grpc,msiedlarek/grpc,ppietrasa/grpc,ipylypiv/grpc,goldenbull/grpc,donnadionne/grpc,Crevil/grpc,ppietrasa/grpc,ctiller/grpc,nicolasnoble/grpc,makdharma/grpc,greasypizza/grpc,ctiller/grpc,philcleveland/grpc,soltanmm/grpc,podsvirov/grpc,carl-mastrangelo/grpc,thunderboltsid/grpc,jboeuf/grpc,yang-g/grpc,ejona86/grpc,ncteisen/grpc,jboeuf/grpc,Vizerai/grpc,simonkuang/grpc,mehrdada/grpc,matt-kwong/grpc,a-veitch/grpc,makdharma/grpc,arkmaxim/grpc,wcevans/grpc,geffzhang/grpc,arkmaxim/grpc,VcamX/grpc,podsvirov/grpc,thinkerou/grpc,LuminateWireless/grpc,arkmaxim/grpc,simonkuang/grpc,jcanizales/grpc,7anner/grpc,muxi/grpc,sreecha/grpc,dklempner/grpc,ananthonline/grpc,kumaralokgithub/grpc,zhimingxie/grpc,VcamX/grpc,Vizerai/grpc,yugui/grpc,leifurhauks/grpc,dklempner/grpc,fuchsia-mirror/third_party-grpc,fuchsia-mirror/third_party-grpc,MakMukhi/grpc,vjpai/grpc,grpc/grpc,stanley-cheung/grpc,soltanmm-google/grpc,mehrdada/grpc,malexzx/grpc,grpc/grpc,matt-kwong/grpc,matt-kwong/grpc,hstefan/grpc,chrisdunelm/grpc,goldenbull/grpc,stanley-cheung/grpc,vjpai/grpc,msmania/grpc,sreecha/grpc,murgatroid99/grpc,baylabs/grpc,murgatroid99/grpc,pmarks-net/grpc,LuminateWireless/grpc,apolcyn/grpc,bogdandrutu/grpc,greasypizza/grpc,grani/grpc,vsco/grpc,yang-g/grpc,yugui/grpc,PeterFaiman/ruby-grpc-minimal,kskalski/grpc,leifurhauks/grpc,infinit/grpc,LuminateWireless/grpc,leifurhauks/grpc,tamihiro/grpc,murgatroid99/grpc,quizlet/grpc,carl-mastrangelo/grpc,murgatroid99/grpc,fuchsia-mirror/third_party-grpc,yongni/grpc,PeterFaiman/ruby-grpc-minimal,zhimingxie/grpc,yang-g/grpc,firebase/grpc,soltanmm/grpc,kriswuollett/grpc,kpayson64/grpc,carl-mastrangelo/grpc,deepaklukose/grpc,nicolasnoble/grpc,matt-kwong/grpc,VcamX/grpc,donnadionne/grpc,ppietrasa/grpc,kumaralokgithub/grpc,malexzx/grpc,daniel-j-born/grpc,royalharsh/grpc,philcleveland/grpc,mehrdada/grpc,grani/grpc,rjshade/grpc,wcevans/grpc,kumaralokgithub/grpc,yongni/grpc,donnadionne/grpc,jtattermusch/grpc,miselin/grpc,VcamX/grpc,soltanmm/grpc,donnadionne/grpc,soltanmm-google/grpc,ncteisen/grpc,firebase/grpc,leifurhauks/grpc,vjpai/grpc,y-zeng/grpc,soltanmm-google/grpc,PeterFaiman/ruby-grpc-minimal,stanley-cheung/grpc,a11r/grpc,miselin/grpc,apolcyn/grpc,msmania/grpc,a-veitch/grpc,miselin/grpc,yongni/grpc,ncteisen/grpc,mehrdada/grpc,nicolasnoble/grpc,kpayson64/grpc,donnadionne/grpc,bogdandrutu/grpc,thunderboltsid/grpc,jboeuf/grpc,bogdandrutu/grpc,kskalski/grpc,miselin/grpc,arkmaxim/grpc,ananthonline/grpc,soltanmm-google/grpc,ejona86/grpc,fuchsia-mirror/third_party-grpc,stanley-cheung/grpc,kriswuollett/grpc,kpayson64/grpc,podsvirov/grpc,rjshade/grpc,simonkuang/grpc,soltanmm/grpc,yugui/grpc,dgquintas/grpc,ncteisen/grpc,deepaklukose/grpc,murgatroid99/grpc,sreecha/grpc,thunderboltsid/grpc,a11r/grpc,kskalski/grpc,MakMukhi/grpc,dgquintas/grpc,ipylypiv/grpc,kriswuollett/grpc,baylabs/grpc,donnadionne/grpc,grpc/grpc,hstefan/grpc,a11r/grpc,tamihiro/grpc,MakMukhi/grpc,ejona86/grpc,jboeuf/grpc,msiedlarek/grpc,kpayson64/grpc,ejona86/grpc,stanley-cheung/grpc,mehrdada/grpc,geffzhang/grpc,Vizerai/grpc,Vizerai/grpc,bogdandrutu/grpc,MakMukhi/grpc,ctiller/grpc,fuchsia-mirror/third_party-grpc,muxi/grpc,jboeuf/grpc,jtattermusch/grpc,Crevil/grpc,kpayson64/grpc,dgquintas/grpc,jcanizales/grpc,pmarks-net/grpc,rjshade/grpc,ipylypiv/grpc,podsvirov/grpc,PeterFaiman/ruby-grpc-minimal,jcanizales/grpc,yang-g/grpc,greasypizza/grpc,jtattermusch/grpc,ananthonline/grpc,ncteisen/grpc,perumaalgoog/grpc,tamihiro/grpc,andrewpollock/grpc,rjshade/grpc,jcanizales/grpc,miselin/grpc,malexzx/grpc,ncteisen/grpc,jtattermusch/grpc,zhimingxie/grpc,ananthonline/grpc,geffzhang/grpc,chrisdunelm/grpc,ejona86/grpc,yugui/grpc,makdharma/grpc,vsco/grpc,muxi/grpc,grpc/grpc,grpc/grpc,hstefan/grpc,ncteisen/grpc,jboeuf/grpc,apolcyn/grpc,a11r/grpc,Crevil/grpc,Crevil/grpc,ipylypiv/grpc,apolcyn/grpc,jcanizales/grpc,andrewpollock/grpc,jcanizales/grpc,dklempner/grpc,tengyifei/grpc,yongni/grpc,bogdandrutu/grpc,carl-mastrangelo/grpc,perumaalgoog/grpc,carl-mastrangelo/grpc,soltanmm/grpc,greasypizza/grpc,tamihiro/grpc,yang-g/grpc,dklempner/grpc,greasypizza/grpc,Vizerai/grpc,matt-kwong/grpc,yongni/grpc,adelez/grpc,ppietrasa/grpc,msiedlarek/grpc,msmania/grpc,wcevans/grpc,philcleveland/grpc,arkmaxim/grpc,deepaklukose/grpc,perumaalgoog/grpc,thinkerou/grpc,wcevans/grpc,vsco/grpc,grani/grpc,kskalski/grpc,stanley-cheung/grpc,deepaklukose/grpc,makdharma/grpc,infinit/grpc,quizlet/grpc,zhimingxie/grpc,royalharsh/grpc,quizlet/grpc,jtattermusch/grpc,muxi/grpc,simonkuang/grpc,chrisdunelm/grpc,andrewpollock/grpc,pmarks-net/grpc,thunderboltsid/grpc,podsvirov/grpc,chrisdunelm/grpc,baylabs/grpc,hstefan/grpc,yang-g/grpc,infinit/grpc,royalharsh/grpc,dgquintas/grpc,PeterFaiman/ruby-grpc-minimal,andrewpollock/grpc,yang-g/grpc,nicolasnoble/grpc,murgatroid99/grpc,yang-g/grpc,y-zeng/grpc,y-zeng/grpc,msiedlarek/grpc,apolcyn/grpc,nicolasnoble/grpc,sreecha/grpc,chrisdunelm/grpc,jtattermusch/grpc,firebase/grpc,goldenbull/grpc,msmania/grpc,Vizerai/grpc,a11r/grpc,baylabs/grpc,a-veitch/grpc,dklempner/grpc,vjpai/grpc,tamihiro/grpc,jboeuf/grpc,tamihiro/grpc,mehrdada/grpc,pmarks-net/grpc,daniel-j-born/grpc,kumaralokgithub/grpc,grpc/grpc,donnadionne/grpc,jboeuf/grpc,rjshade/grpc,infinit/grpc,carl-mastrangelo/grpc,yongni/grpc,7anner/grpc,vsco/grpc,perumaalgoog/grpc,mehrdada/grpc,thunderboltsid/grpc,muxi/grpc,vsco/grpc,tengyifei/grpc,daniel-j-born/grpc,infinit/grpc,a-veitch/grpc,murgatroid99/grpc,Vizerai/grpc,sreecha/grpc,baylabs/grpc,stanley-cheung/grpc,makdharma/grpc,ctiller/grpc,ppietrasa/grpc,stanley-cheung/grpc,tengyifei/grpc,ejona86/grpc,daniel-j-born/grpc,deepaklukose/grpc,philcleveland/grpc,fuchsia-mirror/third_party-grpc,PeterFaiman/ruby-grpc-minimal,adelez/grpc,firebase/grpc,grani/grpc,y-zeng/grpc,kriswuollett/grpc,quizlet/grpc,daniel-j-born/grpc,Vizerai/grpc,thinkerou/grpc,thunderboltsid/grpc,ipylypiv/grpc,kriswuollett/grpc,thinkerou/grpc,tengyifei/grpc,firebase/grpc,thunderboltsid/grpc,zhimingxie/grpc,malexzx/grpc,simonkuang/grpc,jcanizales/grpc,jtattermusch/grpc,rjshade/grpc,muxi/grpc,mehrdada/grpc,quizlet/grpc,ejona86/grpc,wcevans/grpc,PeterFaiman/ruby-grpc-minimal,royalharsh/grpc,apolcyn/grpc,VcamX/grpc,simonkuang/grpc,msmania/grpc,kriswuollett/grpc,rjshade/grpc,hstefan/grpc,baylabs/grpc,a-veitch/grpc,MakMukhi/grpc,soltanmm-google/grpc,pszemus/grpc,yugui/grpc,dklempner/grpc,soltanmm/grpc,simonkuang/grpc,kriswuollett/grpc,andrewpollock/grpc,ananthonline/grpc,Crevil/grpc,LuminateWireless/grpc,vjpai/grpc,ncteisen/grpc,pmarks-net/grpc,andrewpollock/grpc,ctiller/grpc,fuchsia-mirror/third_party-grpc,makdharma/grpc,greasypizza/grpc,greasypizza/grpc,zhimingxie/grpc,geffzhang/grpc,murgatroid99/grpc,kpayson64/grpc,vjpai/grpc,wcevans/grpc,yugui/grpc,7anner/grpc,dklempner/grpc,vjpai/grpc,grpc/grpc,grpc/grpc,malexzx/grpc,kpayson64/grpc,tamihiro/grpc,infinit/grpc,hstefan/grpc,grpc/grpc,zhimingxie/grpc,ppietrasa/grpc,stanley-cheung/grpc,zhimingxie/grpc,dgquintas/grpc,a-veitch/grpc,carl-mastrangelo/grpc,kumaralokgithub/grpc,baylabs/grpc,perumaalgoog/grpc,grpc/grpc,jcanizales/grpc,geffzhang/grpc,firebase/grpc,sreecha/grpc,VcamX/grpc,podsvirov/grpc,pszemus/grpc,simonkuang/grpc,ejona86/grpc,thinkerou/grpc,miselin/grpc,greasypizza/grpc,adelez/grpc,quizlet/grpc,pmarks-net/grpc,matt-kwong/grpc,jboeuf/grpc,infinit/grpc,yugui/grpc,y-zeng/grpc,sreecha/grpc,firebase/grpc,yugui/grpc,philcleveland/grpc,adelez/grpc,7anner/grpc,kumaralokgithub/grpc,daniel-j-born/grpc,msiedlarek/grpc,royalharsh/grpc,murgatroid99/grpc,jboeuf/grpc,a-veitch/grpc,podsvirov/grpc,fuchsia-mirror/third_party-grpc,philcleveland/grpc,LuminateWireless/grpc,firebase/grpc,dklempner/grpc,yongni/grpc,sreecha/grpc,y-zeng/grpc,simonkuang/grpc,donnadionne/grpc,arkmaxim/grpc,jboeuf/grpc,pszemus/grpc,adelez/grpc,grani/grpc,ctiller/grpc,PeterFaiman/ruby-grpc-minimal,yugui/grpc,7anner/grpc,msiedlarek/grpc,nicolasnoble/grpc,royalharsh/grpc,Crevil/grpc,a11r/grpc,stanley-cheung/grpc,carl-mastrangelo/grpc,quizlet/grpc,ejona86/grpc,thinkerou/grpc,geffzhang/grpc,deepaklukose/grpc,ananthonline/grpc,VcamX/grpc,sreecha/grpc,dgquintas/grpc,makdharma/grpc,thinkerou/grpc,vjpai/grpc,vjpai/grpc,ncteisen/grpc,jboeuf/grpc,apolcyn/grpc,LuminateWireless/grpc,a-veitch/grpc,malexzx/grpc,matt-kwong/grpc,leifurhauks/grpc,kumaralokgithub/grpc,malexzx/grpc,geffzhang/grpc,kpayson64/grpc,vjpai/grpc,ppietrasa/grpc,quizlet/grpc,msmania/grpc,makdharma/grpc,geffzhang/grpc,fuchsia-mirror/third_party-grpc,perumaalgoog/grpc,pszemus/grpc,kumaralokgithub/grpc,grani/grpc,muxi/grpc,dgquintas/grpc,murgatroid99/grpc,kskalski/grpc,soltanmm-google/grpc,quizlet/grpc,LuminateWireless/grpc,y-zeng/grpc,carl-mastrangelo/grpc,hstefan/grpc,grani/grpc,tamihiro/grpc,kpayson64/grpc,sreecha/grpc,philcleveland/grpc,soltanmm/grpc,andrewpollock/grpc,donnadionne/grpc,mehrdada/grpc,pszemus/grpc,ppietrasa/grpc,grani/grpc,bogdandrutu/grpc,VcamX/grpc,chrisdunelm/grpc,msmania/grpc,malexzx/grpc,soltanmm-google/grpc,a11r/grpc,thunderboltsid/grpc,ncteisen/grpc,muxi/grpc,tengyifei/grpc,a-veitch/grpc,soltanmm/grpc,stanley-cheung/grpc,kskalski/grpc,wcevans/grpc,kriswuollett/grpc,MakMukhi/grpc,a11r/grpc,a11r/grpc,ejona86/grpc,muxi/grpc,geffzhang/grpc,7anner/grpc,tengyifei/grpc,7anner/grpc,Vizerai/grpc,ctiller/grpc,carl-mastrangelo/grpc,Vizerai/grpc,fuchsia-mirror/third_party-grpc,chrisdunelm/grpc,donnadionne/grpc,kpayson64/grpc,MakMukhi/grpc,adelez/grpc,firebase/grpc,royalharsh/grpc,Crevil/grpc,baylabs/grpc,nicolasnoble/grpc,chrisdunelm/grpc,leifurhauks/grpc,thinkerou/grpc,deepaklukose/grpc,daniel-j-born/grpc,perumaalgoog/grpc,bogdandrutu/grpc,msiedlarek/grpc,dgquintas/grpc,podsvirov/grpc,leifurhauks/grpc,wcevans/grpc,hstefan/grpc,pszemus/grpc,zhimingxie/grpc,pszemus/grpc,pmarks-net/grpc,kskalski/grpc,ejona86/grpc,goldenbull/grpc,ananthonline/grpc,ctiller/grpc,dgquintas/grpc,nicolasnoble/grpc,royalharsh/grpc,goldenbull/grpc,PeterFaiman/ruby-grpc-minimal,pszemus/grpc,ananthonline/grpc,7anner/grpc,msiedlarek/grpc,Vizerai/grpc,VcamX/grpc,grpc/grpc,nicolasnoble/grpc,bogdandrutu/grpc,stanley-cheung/grpc,carl-mastrangelo/grpc,miselin/grpc,muxi/grpc,ctiller/grpc,daniel-j-born/grpc,ncteisen/grpc,goldenbull/grpc,msmania/grpc,daniel-j-born/grpc,jtattermusch/grpc,firebase/grpc,thunderboltsid/grpc,goldenbull/grpc,pszemus/grpc,infinit/grpc,andrewpollock/grpc,pszemus/grpc,arkmaxim/grpc,philcleveland/grpc,ipylypiv/grpc,thinkerou/grpc,ctiller/grpc,matt-kwong/grpc,ctiller/grpc,nicolasnoble/grpc,PeterFaiman/ruby-grpc-minimal,y-zeng/grpc,MakMukhi/grpc,apolcyn/grpc,dgquintas/grpc,rjshade/grpc,vjpai/grpc,y-zeng/grpc,vsco/grpc,baylabs/grpc,muxi/grpc,carl-mastrangelo/grpc,grpc/grpc,miselin/grpc,mehrdada/grpc,royalharsh/grpc,msmania/grpc,dklempner/grpc,MakMukhi/grpc,soltanmm-google/grpc,kriswuollett/grpc,ananthonline/grpc,adelez/grpc,mehrdada/grpc,ipylypiv/grpc,yongni/grpc,Crevil/grpc,kskalski/grpc,sreecha/grpc,bogdandrutu/grpc,ipylypiv/grpc,podsvirov/grpc,adelez/grpc,philcleveland/grpc,ejona86/grpc,pszemus/grpc,vsco/grpc,thinkerou/grpc,soltanmm/grpc,tengyifei/grpc,makdharma/grpc,infinit/grpc,deepaklukose/grpc,jtattermusch/grpc,msiedlarek/grpc,chrisdunelm/grpc,jcanizales/grpc,perumaalgoog/grpc,rjshade/grpc,ncteisen/grpc,firebase/grpc,pszemus/grpc,leifurhauks/grpc,miselin/grpc,sreecha/grpc,ipylypiv/grpc,thinkerou/grpc,soltanmm-google/grpc,donnadionne/grpc,arkmaxim/grpc,goldenbull/grpc,greasypizza/grpc,dgquintas/grpc,chrisdunelm/grpc,firebase/grpc,apolcyn/grpc,pmarks-net/grpc,yang-g/grpc,perumaalgoog/grpc,chrisdunelm/grpc,matt-kwong/grpc,deepaklukose/grpc,jtattermusch/grpc,hstefan/grpc,nicolasnoble/grpc,thinkerou/grpc,vjpai/grpc,pmarks-net/grpc,LuminateWireless/grpc,adelez/grpc,Crevil/grpc,kumaralokgithub/grpc,ctiller/grpc,ppietrasa/grpc,tamihiro/grpc,andrewpollock/grpc,arkmaxim/grpc,wcevans/grpc,donnadionne/grpc,leifurhauks/grpc,kskalski/grpc,7anner/grpc,tengyifei/grpc,LuminateWireless/grpc,mehrdada/grpc,jtattermusch/grpc,vsco/grpc,muxi/grpc,vsco/grpc,yongni/grpc,tengyifei/grpc |
a84cee8127a0e9724b26e7d1d527f220c358c328 | util/cast_util.h | util/cast_util.h | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
namespace rocksdb {
// The helper function to assert the move from dynamic_cast<> to
// static_cast<> is correct. This function is to deal with legacy code.
// It is not recommanded to add new code to issue class casting. The preferred
// solution is to implement the functionality without a need of casting.
template <class DestClass, class SrcClass>
inline DestClass* static_cast_with_check(SrcClass* x) {
DestClass* ret = static_cast<DestClass*>(x);
#ifdef ROCKSDB_USE_RTTI
assert(ret == dynamic_cast<DestClass*>(x));
#endif
return ret;
}
} // namespace rocksdb
| // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#pragma once
namespace rocksdb {
// The helper function to assert the move from dynamic_cast<> to
// static_cast<> is correct. This function is to deal with legacy code.
// It is not recommanded to add new code to issue class casting. The preferred
// solution is to implement the functionality without a need of casting.
template <class DestClass, class SrcClass>
inline DestClass* static_cast_with_check(SrcClass* x) {
DestClass* ret = static_cast<DestClass*>(x);
#ifdef ROCKSDB_USE_RTTI
assert(ret == dynamic_cast<DestClass*>(x));
#endif
return ret;
}
} // namespace rocksdb
| Add a missing "once" in .h | Add a missing "once" in .h
Summary: Closes https://github.com/facebook/rocksdb/pull/2670
Differential Revision: D5529018
Pulled By: siying
fbshipit-source-id: 10a378933d509035d2dbe502247dd85fcea09789
| C | bsd-3-clause | Andymic/rocksdb,Andymic/rocksdb,SunguckLee/RocksDB,bbiao/rocksdb,bbiao/rocksdb,bbiao/rocksdb,SunguckLee/RocksDB,SunguckLee/RocksDB,SunguckLee/RocksDB,bbiao/rocksdb,Andymic/rocksdb,bbiao/rocksdb,SunguckLee/RocksDB,bbiao/rocksdb,Andymic/rocksdb,bbiao/rocksdb,SunguckLee/RocksDB,bbiao/rocksdb,SunguckLee/RocksDB,Andymic/rocksdb,Andymic/rocksdb,Andymic/rocksdb,Andymic/rocksdb,SunguckLee/RocksDB |
ad7dfb9776553aefa94360bcf87032bea8a069fa | helpers.h | helpers.h | #ifndef _HELPERS_H
#define _HELPERS_H
#include <stdarg.h>
#include <stdio.h>
#include <stdint.h>
#define LENGTH(x) (sizeof(x) / sizeof(*x))
#define MAX(A, B) ((A) > (B) ? (A) : (B))
#define MIN(A, B) ((A) < (B) ? (A) : (B))
#define BOOLSTR(A) ((A) ? "true" : "false")
#define MAXLEN 256
#define XCB_CONFIG_WINDOW_X_Y_WIDTH_HEIGHT XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y | XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT
#define XCB_CONFIG_WINDOW_X_Y XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y
#ifdef DEBUG
# define PUTS(x) puts(x)
# define PRINTF(x,...) printf(x, ##__VA_ARGS__)
#else
# define PUTS(x) ((void)0)
# define PRINTF(x,...) ((void)0)
#endif
void logmsg(FILE *, char *, va_list);
void warn(char *, ...);
__attribute__((noreturn))
void die(char *, ...);
uint32_t get_color(char *);
#endif
| #ifndef _HELPERS_H
#define _HELPERS_H
#include <stdarg.h>
#include <stdio.h>
#include <stdint.h>
#define LENGTH(x) (sizeof(x) / sizeof(*x))
#define MAX(A, B) ((A) > (B) ? (A) : (B))
#define MIN(A, B) ((A) < (B) ? (A) : (B))
#define BOOLSTR(A) ((A) ? "true" : "false")
#define MAXLEN 256
#define XCB_CONFIG_WINDOW_X_Y_WIDTH_HEIGHT XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y | XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT
#define XCB_CONFIG_WINDOW_X_Y XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y
#ifdef DEBUG
# define PUTS(x) puts(x)
# define PRINTF(x,...) printf(x, __VA_ARGS__)
#else
# define PUTS(x) ((void)0)
# define PRINTF(x,...) ((void)0)
#endif
void logmsg(FILE *, char *, va_list);
void warn(char *, ...);
__attribute__((noreturn))
void die(char *, ...);
uint32_t get_color(char *);
#endif
| Address the non-portability of the PRINTF macro | Address the non-portability of the PRINTF macro
| C | bsd-2-clause | nfnty/bspwm,0re5ama/bspwm,netzverweigerer/bspwm,nfnty/bspwm,JBouron/bspwm,JBouron/bspwm,XiKuuKy/bspwm,JBouron/bspwm,medisun/bspwm,Stebalien/bspwm,jbalint/bspwm,jbalint/bspwm,nfnty/bspwm,baskerville/bspwm,0re5ama/bspwm,medisun/bspwm,medisun/bspwm,XiKuuKy/bspwm,ikn/bspwm,netzverweigerer/bspwm,baskerville/bspwm,0re5ama/bspwm,Stebalien/bspwm,ikn/bspwm,jbalint/bspwm |
a6d8dea8b4792df8c762c3038aba19b8b031387f | whitebalancing.h | whitebalancing.h | #ifndef WHITE_BALANCING_H
#define WHITE_BALANCING_H
#include <stdio.h>
#include <stdlib.h>
typedef unsigned char byte;
void compute_color_histogram(byte *color, byte *histogram, int width, int height)
{
for (int i = 0; i < 256; ++i) {
histogram[i] = 0;
}
for (int i = 0; i < width * height; ++i) {
histogram[color[i]]++;
}
}
void histogram_stretch(byte *color, byte *histogram, int width, int height)
{
int low = 0;
int high = 255;
int local_low = 0;
int local_high = 255;
int five_percent_limit = ((float)(5 / 100)) * (width * height);
int counter = 0;
for (int i = 0; i < 256; ++i) {
counter += histogram[i];
if (counter > five_percent_limit) {
local_low = i;
}
}
counter = 0;
for (int i = 255; i >= 0; --i) {
counter += histogram[i];
if (counter > five_percent_limit) {
local_high = i;
}
}
for (int i = 0; i < width * height; ++i) {
color[i] = (color[i] - local_low) * ((high - low) /
(local_high - local_low)) + low;
}
}
#endif
| Implement helper functions for white balancing | Implement helper functions for white balancing
| C | apache-2.0 | Corly/ImageProcessing,Corly/ImageProcessing,Corly/ImageProcessing |
|
172df98c0d9ca58afe0eb846f1edd2c888ffe273 | example/ex-dict04.c | example/ex-dict04.c | #include <stdio.h>
#include "m-string.h"
#include "m-dict.h"
/* program that reads text from standard-input,
and prints the total number of distinct words found in the text.
*/
DICT_SET_DEF2(str, string_t, STRING_OPLIST)
int main(void)
{
M_LET(word, STRING_OPLIST)
M_LET(wordcount, DICT_SET_OPLIST(str, STRING_OPLIST)) {
while (string_fget_word(word, " \t\n,.!;:?", stdin))
dict_str_set_at(wordcount, word);
printf ("Words: %lu\n", dict_str_size(wordcount));
}
}
| Add new example based on set and word counts. | Add new example based on set and word counts.
| C | bsd-2-clause | P-p-H-d/mlib,P-p-H-d/mlib |
|
7438c35b557fb834703ecc8c35acb20d2fd5abcc | include/rmd160.h | include/rmd160.h | #ifndef _RMD160_H_
#define _RMD160_H_
typedef struct {
unsigned int rmd[5];
unsigned char buf[64];
unsigned int nbuf;
} rmd160_context;
void rmd160_init(rmd160_context *ctx);
void rmd160_update(rmd160_context *ctx, const void *data, unsigned len);
void rmd160_final(rmd160_context *ctx, void *digest);
void rmd160_hash(const void *input, unsigned len, void *digest); // digest must be 20 bytes
#endif /* !_RMD160_H_ */
| #ifndef _RMD160_H_
#define _RMD160_H_
#include <stdint.h>
typedef struct {
uint64_t len;
uint32_t rmd[5];
uint8_t buf[64];
uint32_t nbuf;
} rmd160_context;
void rmd160_init(rmd160_context *ctx);
void rmd160_update(rmd160_context *ctx, const void *data, unsigned nbytes);
void rmd160_final(rmd160_context *ctx, unsigned char digest[20]);
void rmd160_hash(const void *input, unsigned len, unsigned char digest[20]);
#endif /* !_RMD160_H_ */
| Use C99 stdint types, update prototypes. | Use C99 stdint types, update prototypes.
| C | bsd-2-clause | fmela/weecrypt,fmela/weecrypt |
1f5f35cc0e89312c6b6aef13689ab0c821d36da6 | src/modules/cpufreq/e_mod_main.h | src/modules/cpufreq/e_mod_main.h | #ifndef E_MOD_MAIN_H
#define E_MOD_MAIN_H
typedef struct _Status Status;
typedef struct _Config Config;
struct _Status
{
Evas_List *frequencies;
Evas_List *governors;
int cur_frequency;
int can_set_frequency;
char *cur_governor;
unsigned char active;
};
struct _Config
{
/* saved * loaded config values */
double poll_time;
int restore_governor;
const char *governor;
/* just config state */
E_Module *module;
Evas_List *instances;
E_Menu *menu;
E_Menu *menu_poll;
E_Menu *menu_governor;
E_Menu *menu_frequency;
Status *status;
char *set_exe_path;
Ecore_Timer *frequency_check_timer;
};
EAPI extern E_Module_Api e_modapi;
EAPI void *e_modapi_init (E_Module *m);
EAPI int e_modapi_shutdown (E_Module *m);
EAPI int e_modapi_save (E_Module *m);
EAPI int e_modapi_about (E_Module *m);
#endif
| #ifndef E_MOD_MAIN_H
#define E_MOD_MAIN_H
typedef struct _Status Status;
typedef struct _Config Config;
struct _Status
{
Evas_List *frequencies;
Evas_List *governors;
int cur_frequency;
int can_set_frequency;
char *cur_governor;
unsigned char active;
};
struct _Config
{
/* saved * loaded config values */
double poll_time;
int restore_governor;
const char *governor;
/* just config state */
E_Module *module;
Evas_List *instances;
E_Menu *menu;
E_Menu *menu_poll;
E_Menu *menu_governor;
E_Menu *menu_frequency;
Status *status;
char *set_exe_path;
Ecore_Timer *frequency_check_timer;
};
EAPI extern E_Module_Api e_modapi;
EAPI void *e_modapi_init (E_Module *m);
EAPI int e_modapi_shutdown (E_Module *m);
EAPI int e_modapi_save (E_Module *m);
#endif
| Remove unused (and deprecated) declaration. | Remove unused (and deprecated) declaration.
git-svn-id: 0f3f1c46c6da7ffd142db61e503a7ff63af3a195@32298 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
| C | bsd-2-clause | jordemort/e17,jordemort/e17,jordemort/e17 |
62a27af5a8c9e03a1bfbf6ec796917277ee263d1 | src/main.c | src/main.c | #include "nrf_delay.h"
#include "nrf_gpio.h"
int main(void){
nrf_gpio_range_cfg_output(21,22);
while(1){
nrf_gpio_pin_write(21,1);
nrf_gpio_pin_write(22,1);
nrf_delay_ms(80);
nrf_gpio_pin_write(21, 1);
nrf_gpio_pin_write(22, 1);
nrf_delay_ms(80);
}
}
| #include "nrf_delay.h"
#include "nrf_gpio.h"
int main(void){
nrf_gpio_range_cfg_output(21,22);
while(1){
nrf_gpio_pin_write(21,1);
nrf_gpio_pin_write(22,0);
nrf_delay_ms(80);
nrf_gpio_pin_write(21, 0);
nrf_gpio_pin_write(22, 1);
nrf_delay_ms(80);
}
}
| Fix C program - Leds were not toggling anymore | Fix C program - Leds were not toggling anymore
| C | mit | rbarzic/nrf5x-dk-gcc,wulffern/nrf52-shiftreg,rbarzic/nrf5x-dk-gcc,wulffern/nrf52-shiftreg |
c60e3d16e8f405b2e56bf530aa550e6223fca0f7 | src/main.c | src/main.c | #include "common.h"
#include "arguments.h"
TCHAR *get_version(void)
{
return _T("HostKit Agent PREALPHA\nCompiled at ") __TIME__ _T(" on ") __DATE__ _T("\n");
}
int _tmain(int argc, TCHAR *argv[])
{
int result;
initialize_arguments();
if(parse_arguments(argv) != ARGS_OK || arguments.error) {
_tprintf(_T("%s"), get_help());
quit();
}
if(arguments.debug) {
_ftprintf(stderr, _T("Debug log is enabled.\n"));
}
if(arguments.version == TRUE) {
_tprintf(_T("%s"), get_version());
quit();
}
if(arguments.service == TRUE) {
result = servicize();
if(result != 0) {
_ftprintf(stderr, _T("Unable to install as service.\n"));
}
quit();
}
if(arguments.persistent == TRUE) {
result = persist();
if(result != 0) {
_ftprintf(stderr, _T("An occurred when running persistent.\n"));
}
quit();
}
return 0;
}
| #include "common.h"
#include "arguments.h"
TCHAR *get_version(void)
{
return _T("HostKit Agent PREALPHA\nCompiled at ") __TIME__ _T(" on ") __DATE__ _T("\n");
}
TCHAR *get_copyright(void)
{
return _T("");
}
int _tmain(int argc, TCHAR *argv[])
{
int result;
initialize_arguments();
if(parse_arguments(argv) != ARGS_OK || arguments.error) {
_tprintf(_T("%s"), get_help());
quit();
}
if(arguments.debug) {
_ftprintf(stderr, _T("Debug log is enabled.\n"));
}
if(arguments.version == TRUE) {
_tprintf(_T("%s"), get_version());
_tprintf(_T("%s"), get_copyright());
quit();
}
if(arguments.service == TRUE) {
result = servicize();
if(result != 0) {
_ftprintf(stderr, _T("Unable to install as service.\n"));
}
quit();
}
if(arguments.persistent == TRUE) {
result = persist();
if(result != 0) {
_ftprintf(stderr, _T("An occurred when running persistent.\n"));
}
quit();
}
return 0;
}
| Add stub for legal notice. | Add stub for legal notice.
| C | bsd-2-clause | abenson/hostkit,abenson/hostkit |
667e5c1daf0f5e6183361e8c6ff47b34bae3bea3 | src/uart.c | src/uart.c | #include "uart.h"
void uart_putchar(char c, FILE *stream) {
if( c == '\n' )
uart_putchar( '\r', stream );
UDR0 = c;
loop_until_bit_is_set(UCSR0A, TXC0);
}
static FILE uart_out = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE);
void uart_init(void) {
UBRR0L = BAUDRATE&0xFF;
UBRR0H = (BAUDRATE>>8);
#if USE_2X
UCSR0A |= _BV(U2X0);
#else
UCSR0A &= ~(_BV(U2X0));
#endif
UCSR0C = _BV(UCSZ01) | _BV(UCSZ00); /* 8-bit data */
UCSR0B = _BV(RXEN0) | _BV(TXEN0); /* Enable RX and TX */
stdout = &uart_out;
}
| #include "uart.h"
void uart_putchar(char c, FILE *stream) {
if( c == '\n' )
uart_putchar('\r', stream);
loop_until_bit_is_set(UCSR0A, UDRE0);
UDR0 = c;
}
static FILE uart_out = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE);
void uart_init(void) {
UBRR0L = BAUDRATE&0xFF;
UBRR0H = (BAUDRATE>>8);
#if USE_2X
UCSR0A |= _BV(U2X0);
#else
UCSR0A &= ~(_BV(U2X0));
#endif
UCSR0C = _BV(UCSZ01) | _BV(UCSZ00); /* 8-bit data */
UCSR0B = _BV(RXEN0) | _BV(TXEN0); /* Enable RX and TX */
stdout = &uart_out;
}
| Reorder UART transmission. Instead of waiting for cache to be empty and then sending the value, we first add the value to cache and then wait for transmission. This way no characters are lost during transmission | Reorder UART transmission. Instead of waiting for cache to be empty and then sending the value, we first add the value to cache and then wait for transmission. This way no characters are lost during transmission
| C | mit | nathanhi/steep-beta,nathanhi/steep-beta |
e95489710c532a005dec1eac1f742d2c794d14d3 | lib/haka/regexp_module.c | lib/haka/regexp_module.c | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <haka/error.h>
#include <haka/regexp_module.h>
struct regexp_module *regexp_module_load(const char *module_name, struct parameters *args) {
struct module *module = module_load(module_name, args);
if (module == NULL || module->type != MODULE_REGEXP) {
error(L"Module %s is not of type MODULE_REGEXP", module_name);
return NULL;
}
return (struct regexp_module *)module;
}
| /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <haka/error.h>
#include <haka/regexp_module.h>
struct regexp_module *regexp_module_load(const char *module_name, struct parameters *args) {
struct module *module = module_load(module_name, args);
if (module == NULL || module->type != MODULE_REGEXP) {
if (module != NULL) module_release(module);
error(L"Module %s is not of type MODULE_REGEXP", module_name);
return NULL;
}
return (struct regexp_module *)module;
}
| Fix memory leak on regexp module load | Fix memory leak on regexp module load
| C | mpl-2.0 | nabilbendafi/haka,haka-security/haka,Wingless-Archangel/haka,Wingless-Archangel/haka,lcheylus/haka,LubyRuffy/haka,lcheylus/haka,nabilbendafi/haka,LubyRuffy/haka,haka-security/haka,nabilbendafi/haka,lcheylus/haka,haka-security/haka |
c3a30babd416d7c91ba0d187ff9e57df49930595 | ouzel/input/linux/InputLinux.h | ouzel/input/linux/InputLinux.h | // Copyright (C) 2017 Elviss Strazdins
// This file is part of the Ouzel engine.
#pragma once
#include <X11/keysym.h>
#include <X11/XKBlib.h>
#include <X11/cursorfont.h>
#include <X11/X.h>
#include "input/Input.h"
namespace ouzel
{
class Engine;
namespace input
{
class InputLinux: public Input
{
friend Engine;
public:
static KeyboardKey convertKeyCode(KeySym keyCode);
static uint32_t getModifiers(unsigned int state);
virtual ~InputLinux();
virtual void setCursorVisible(bool visible) override;
virtual bool isCursorVisible() const override;
virtual void setCursorLocked(bool locked) override;
virtual bool isCursorLocked() const override;
virtual void setCursorPosition(const Vector2& position) override;
protected:
InputLinux();
virtual bool init() override;
bool cursorVisible = true;
bool cursorLocked = false;
Cursor emptyCursor = None;
};
} // namespace input
} // namespace ouzel
| // Copyright (C) 2017 Elviss Strazdins
// This file is part of the Ouzel engine.
#pragma once
#include <X11/keysym.h>
#include <X11/XKBlib.h>
#include <X11/cursorfont.h>
#include <X11/X.h>
#include "input/Input.h"
namespace ouzel
{
class Engine;
namespace input
{
class InputLinux: public Input
{
friend Engine;
public:
static KeyboardKey convertKeyCode(KeySym keyCode);
static uint32_t getModifiers(unsigned int state);
virtual ~InputLinux();
virtual void setCursorVisible(bool visible) override;
virtual bool isCursorVisible() const override;
virtual void setCursorLocked(bool locked) override;
virtual bool isCursorLocked() const override;
virtual void setCursorPosition(const Vector2& position) override;
protected:
InputLinux();
virtual bool init() override;
bool cursorVisible = true;
bool cursorLocked = false;
::Cursor emptyCursor = None;
};
} // namespace input
} // namespace ouzel
| Fix the declaration of Cursor on Linux | Fix the declaration of Cursor on Linux
| C | unlicense | Hotspotmar/ouzel,elvman/ouzel,elnormous/ouzel,Hotspotmar/ouzel,elnormous/ouzel,elnormous/ouzel,Hotspotmar/ouzel,elvman/ouzel |
20539f35218d24ec960e37b70927849f30c344f0 | net/flip/flip_bitmasks.h | net/flip/flip_bitmasks.h | // Copyright (c) 2009 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 NET_FLIP_FLIP_BITMASKS_H_
#define NET_FLIP_FLIP_BITMASKS_H_
namespace flip {
const int kStreamIdMask = 0x7fffffff; // StreamId mask from the FlipHeader
const int kControlFlagMask = 0x8000; // Control flag mask from the FlipHeader
const int kPriorityMask = 0xc0; // Priority mask from the SYN_FRAME
const int kLengthMask = 0xffffff; // Mask the lower 24 bits.
} // flip
#endif // NET_FLIP_FLIP_BITMASKS_H_
| // Copyright (c) 2009 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 NET_FLIP_FLIP_BITMASKS_H_
#define NET_FLIP_FLIP_BITMASKS_H_
namespace flip {
const unsigned int kStreamIdMask = 0x7fffffff; // StreamId mask from the FlipHeader
const unsigned int kControlFlagMask = 0x8000; // Control flag mask from the FlipHeader
const unsigned int kPriorityMask = 0xc0; // Priority mask from the SYN_FRAME
const unsigned int kLengthMask = 0xffffff; // Mask the lower 24 bits.
} // flip
#endif // NET_FLIP_FLIP_BITMASKS_H_
| Fix signed vs unsigned issue | linux: Fix signed vs unsigned issue
Review URL: http://codereview.chromium.org/297015
git-svn-id: http://src.chromium.org/svn/trunk/src@30099 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: 86a9c861257cd0e752a713d61f3f4a14473acfa2 | C | bsd-3-clause | meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser |
f285f813cc3d270186ea4789da82cb8b8c9ff1f9 | src/clientversion.h | src/clientversion.h | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning and copyright year
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 8
#define CLIENT_VERSION_REVISION 6
#define CLIENT_VERSION_BUILD 0
// Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE false
// Copyright year (2009-this)
// Todo: update this when changing our copyright comments in the source
#define COPYRIGHT_YEAR 2014
// Converts the parameter X to a string after macro replacement on X has been performed.
// Don't merge these into one macro!
#define STRINGIZE(X) DO_STRINGIZE(X)
#define DO_STRINGIZE(X) #X
#endif // CLIENTVERSION_H
| #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning and copyright year
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 8
#define CLIENT_VERSION_REVISION 7
#define CLIENT_VERSION_BUILD 0
// Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE true
// Copyright year (2009-this)
// Todo: update this when changing our copyright comments in the source
#define COPYRIGHT_YEAR 2014
// Converts the parameter X to a string after macro replacement on X has been performed.
// Don't merge these into one macro!
#define STRINGIZE(X) DO_STRINGIZE(X)
#define DO_STRINGIZE(X) #X
#endif // CLIENTVERSION_H
| Mark Devcoin release version 0.8.7.0. | Mark Devcoin release version 0.8.7.0.
| C | mit | coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin |
5ffcc6ae21937e80848d6e37b23734aa999ab6af | src/ucc/filemodes.h | src/ucc/filemodes.h | #define FILEMODES \
X(preproc, "c", 'i') \
X(compile, "cpp-output", 's') \
X(assemb, "assembler", 'o') \
ALIAS(assemb, "asm") \
X(assemb_with_cpp, "assembler-with-cpp", 'o') \
ALIAS(assemb_with_cpp, "asm-with-cpp") \
| #ifndef FILEMODES_H
#define FILEMODES_H
#define FILEMODES \
X(preproc, "c", 'i') \
X(compile, "cpp-output", 's') \
X(assemb, "assembler", 'o') \
ALIAS(assemb, "asm") \
X(assemb_with_cpp, "assembler-with-cpp", 'o') \
ALIAS(assemb_with_cpp, "asm-with-cpp")
#endif
| Fix filesmodes multiple-inc and backslash-eof | Fix filesmodes multiple-inc and backslash-eof
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler |
6a5388550ed2d5d5efcce1e164391eafe528dba1 | tree/ntuple/inc/LinkDef.h | tree/ntuple/inc/LinkDef.h | // Author: Jakob Blomer CERN 10/2018
/*************************************************************************
* Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifdef __CLING__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ nestedtypedefs;
#pragma link C++ nestedclasses;
// Support for auto-loading in the RNTuple tutorials
#pragma link C++ class ROOT::Experimental::Detail::RFieldBase-;
#pragma link C++ class ROOT::Experimental::Detail::RFieldBase::RSchemaIterator-;
#pragma link C++ class ROOT::Experimental::RFieldVector-;
#pragma link C++ class ROOT::Experimental::RNTupleReader-;
#pragma link C++ class ROOT::Experimental::RNTupleWriter-;
#pragma link C++ class ROOT::Experimental::RNTupleModel-;
#pragma link C++ class ROOT::Experimental::RNTuple+;
#endif
| // Author: Jakob Blomer CERN 10/2018
/*************************************************************************
* Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifdef __CLING__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ nestedtypedefs;
#pragma link C++ nestedclasses;
// Support for auto-loading in the RNTuple tutorials
#pragma link C++ class ROOT::Experimental::Detail::RFieldBase-;
#pragma link C++ class ROOT::Experimental::Detail::RFieldBase::RSchemaIterator-;
#pragma link C++ class ROOT::Experimental::RVectorField-;
#pragma link C++ class ROOT::Experimental::RNTupleReader-;
#pragma link C++ class ROOT::Experimental::RNTupleWriter-;
#pragma link C++ class ROOT::Experimental::RNTupleModel-;
#pragma link C++ class ROOT::Experimental::RNTuple+;
#endif
| Fix class name spelling in class rule | [ntuple] Fix class name spelling in class rule
| C | lgpl-2.1 | karies/root,karies/root,karies/root,root-mirror/root,karies/root,olifre/root,root-mirror/root,root-mirror/root,olifre/root,olifre/root,karies/root,root-mirror/root,root-mirror/root,olifre/root,root-mirror/root,root-mirror/root,olifre/root,karies/root,olifre/root,olifre/root,karies/root,root-mirror/root,olifre/root,karies/root,olifre/root,root-mirror/root,olifre/root,karies/root,karies/root,olifre/root,karies/root,root-mirror/root,root-mirror/root |
6e3256887f14fd4b946d37318ddaa37c799dcd17 | test/tsan/thread_exit.c | test/tsan/thread_exit.c | // RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
#include "test.h"
int var;
void *Thread(void *x) {
pthread_exit(&var);
return 0;
}
int main() {
pthread_t t;
pthread_create(&t, 0, Thread, 0);
void *retval = 0;
pthread_join(t, &retval);
if (retval != &var) {
fprintf(stderr, "Unexpected return value\n");
exit(1);
}
fprintf(stderr, "PASS\n");
return 0;
}
// CHECK-NOT: WARNING: ThreadSanitizer:
// CHECK: PASS
| // RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1
// | FileCheck %s
#include "test.h"
int var;
void *Thread(void *x) {
fprintf(stderr, "Thread\n");
pthread_exit(&var);
return 0;
}
int main() {
fprintf(stderr, "MAIN\n");
pthread_t t;
pthread_create(&t, 0, Thread, 0);
void *retval = 0;
fprintf(stderr, "JOIN\n");
pthread_join(t, &retval);
if (retval != &var) {
fprintf(stderr, "Unexpected return value\n");
exit(1);
}
fprintf(stderr, "PASS\n");
return 0;
}
// CHECK-NOT: WARNING: ThreadSanitizer:
// CHECK: PASS
| Debug failing test on PPC bot | [tsan] Debug failing test on PPC bot
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@353617 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
93a0354f038dd4fb6746376a8a3ec16c776c7826 | src/exercise117.c | src/exercise117.c | /* Exercise 1-17: Write a program to print all input lines that are longer
* than 80 characters. */
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#define LINE_LIMIT 80
int main(int argc, char **argv)
{
uint32_t current_line_length = 0;
int32_t buffer[LINE_LIMIT] = { 0 };
bool buffer_in_use = true;
int32_t character = 0;
while ((character = getchar()) != EOF) {
if (character == '\n') {
if (current_line_length > LINE_LIMIT) {
putchar('\n');
}
current_line_length = 0;
buffer_in_use = true;
} else {
current_line_length++;
if (current_line_length <= LINE_LIMIT) {
buffer[current_line_length - 1] = character;
} else {
if (buffer_in_use == true) {
uint32_t i;
for (i = 0; i < LINE_LIMIT; ++i) {
putchar(buffer[i]);
}
buffer_in_use = false;
}
putchar(character);
}
}
}
return EXIT_SUCCESS;
}
| Add solution to Exercise 1-17. | Add solution to Exercise 1-17.
| C | unlicense | damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions |
|
822adf4743536e3c0fac1861fa23e57801ebf3aa | core/formats/nifti_utils.h | core/formats/nifti_utils.h | /* Copyright (c) 2008-2019 the MRtrix3 contributors.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Covered Software is provided under this License on an "as is"
* basis, without warranty of any kind, either expressed, implied, or
* statutory, including, without limitation, warranties that the
* Covered Software is free of defects, merchantable, fit for a
* particular purpose or non-infringing.
* See the Mozilla Public License v. 2.0 for more details.
*
* For more details, see http://www.mrtrix.org/.
*/
#include <string>
#include "types.h"
namespace MR
{
namespace Formats
{
/*! basic convenience function to determine whether an image path
* corresponds to a NIfTI-format image. */
inline bool is_nifti (const std::string& path)
{
static const vector<std::string> exts { ".nii", ".nii.gz", ".img" };
for (const auto& ext : exts) {
if (path.substr (path.size() - ext.size()) == ext)
return true;
}
return false;
}
}
}
| /* Copyright (c) 2008-2019 the MRtrix3 contributors.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Covered Software is provided under this License on an "as is"
* basis, without warranty of any kind, either expressed, implied, or
* statutory, including, without limitation, warranties that the
* Covered Software is free of defects, merchantable, fit for a
* particular purpose or non-infringing.
* See the Mozilla Public License v. 2.0 for more details.
*
* For more details, see http://www.mrtrix.org/.
*/
#include <string>
#include "types.h"
namespace MR
{
namespace Formats
{
/*! basic convenience function to determine whether an image path
* corresponds to a NIfTI-format image. */
inline bool is_nifti (const std::string& path)
{
static const vector<std::string> exts { ".nii", ".nii.gz", ".img" };
for (const auto& ext : exts) {
if (path.size() >= ext.size() &&
path.substr (path.size() - ext.size()) == ext)
return true;
}
return false;
}
}
}
| Fix for short file names | Formats::is_nifti(): Fix for short file names
| C | mpl-2.0 | MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3 |
e050411af032f62ce4e4f5775b13607e3c754e4a | meta.h | meta.h | #pragma once
#include "ffmpeg.h"
#include <stddef.h>
#include <stdint.h>
struct Meta {
char const* title;
char const* artist;
};
struct Meta retrieve_meta(AVFormatContext* ctx);
| #pragma once
#include "ffmpeg.h"
#include <stddef.h>
#include <stdint.h>
struct Meta {
const char const* title;
const char const* artist;
};
struct Meta retrieve_meta(AVFormatContext* ctx);
| Fix incorrect const pointer marking. | Fix incorrect const pointer marking.
| C | mit | bakape/thumbnailer,bakape/thumbnailer |
43fc1531f877c2c7d5369a29b236aa48d6ebe08c | src/plugins/qmldesigner/components/formeditor/abstractcustomtool.h | src/plugins/qmldesigner/components/formeditor/abstractcustomtool.h | #ifndef QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
#define QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
#include "abstractformeditortool.h"
namespace QmlDesigner {
class QMLDESIGNERCORE_EXPORT AbstractCustomTool : public QmlDesigner::AbstractFormEditorTool
{
public:
AbstractCustomTool();
void selectedItemsChanged(const QList<FormEditorItem *> &itemList) QTC_OVERRIDE;
virtual QString name() const = 0;
virtual int wantHandleItem(const ModelNode &modelNode) const QTC_OVERRIDE = 0;
};
} // namespace QmlDesigner
#endif // QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
| #ifndef QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
#define QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
#include "abstractformeditortool.h"
namespace QmlDesigner {
class QMLDESIGNERCORE_EXPORT AbstractCustomTool : public QmlDesigner::AbstractFormEditorTool
{
public:
AbstractCustomTool();
void selectedItemsChanged(const QList<FormEditorItem *> &itemList) QTC_OVERRIDE;
virtual QString name() const = 0;
virtual int wantHandleItem(const ModelNode &modelNode) const = 0;
};
} // namespace QmlDesigner
#endif // QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
| Remove wrong override for wantHandleItem | QmlDesigner: Remove wrong override for wantHandleItem
Change-Id: I283897f528e03df1d89200906f8d7d8f1066b6d3
Reviewed-by: Friedemann Kleint <[email protected]>
Reviewed-by: Thomas Hartmann <[email protected]>
| C | lgpl-2.1 | duythanhphan/qt-creator,AltarBeastiful/qt-creator,danimo/qt-creator,kuba1/qtcreator,darksylinc/qt-creator,amyvmiwei/qt-creator,richardmg/qtcreator,AltarBeastiful/qt-creator,martyone/sailfish-qtcreator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,danimo/qt-creator,colede/qtcreator,duythanhphan/qt-creator,danimo/qt-creator,kuba1/qtcreator,Distrotech/qtcreator,xianian/qt-creator,kuba1/qtcreator,omniacreator/qtcreator,amyvmiwei/qt-creator,malikcjm/qtcreator,danimo/qt-creator,malikcjm/qtcreator,malikcjm/qtcreator,omniacreator/qtcreator,colede/qtcreator,martyone/sailfish-qtcreator,colede/qtcreator,omniacreator/qtcreator,danimo/qt-creator,richardmg/qtcreator,darksylinc/qt-creator,richardmg/qtcreator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,farseerri/git_code,kuba1/qtcreator,AltarBeastiful/qt-creator,darksylinc/qt-creator,Distrotech/qtcreator,xianian/qt-creator,darksylinc/qt-creator,kuba1/qtcreator,maui-packages/qt-creator,danimo/qt-creator,xianian/qt-creator,Distrotech/qtcreator,Distrotech/qtcreator,duythanhphan/qt-creator,darksylinc/qt-creator,AltarBeastiful/qt-creator,colede/qtcreator,xianian/qt-creator,kuba1/qtcreator,maui-packages/qt-creator,farseerri/git_code,duythanhphan/qt-creator,farseerri/git_code,farseerri/git_code,martyone/sailfish-qtcreator,danimo/qt-creator,AltarBeastiful/qt-creator,xianian/qt-creator,xianian/qt-creator,richardmg/qtcreator,Distrotech/qtcreator,colede/qtcreator,amyvmiwei/qt-creator,kuba1/qtcreator,omniacreator/qtcreator,farseerri/git_code,richardmg/qtcreator,martyone/sailfish-qtcreator,amyvmiwei/qt-creator,danimo/qt-creator,farseerri/git_code,AltarBeastiful/qt-creator,duythanhphan/qt-creator,darksylinc/qt-creator,danimo/qt-creator,omniacreator/qtcreator,Distrotech/qtcreator,xianian/qt-creator,AltarBeastiful/qt-creator,colede/qtcreator,martyone/sailfish-qtcreator,maui-packages/qt-creator,maui-packages/qt-creator,martyone/sailfish-qtcreator,omniacreator/qtcreator,amyvmiwei/qt-creator,malikcjm/qtcreator,colede/qtcreator,darksylinc/qt-creator,xianian/qt-creator,maui-packages/qt-creator,darksylinc/qt-creator,xianian/qt-creator,Distrotech/qtcreator,maui-packages/qt-creator,richardmg/qtcreator,farseerri/git_code,duythanhphan/qt-creator,farseerri/git_code,kuba1/qtcreator,richardmg/qtcreator,malikcjm/qtcreator,amyvmiwei/qt-creator,kuba1/qtcreator,AltarBeastiful/qt-creator,malikcjm/qtcreator,maui-packages/qt-creator,malikcjm/qtcreator,duythanhphan/qt-creator,omniacreator/qtcreator,martyone/sailfish-qtcreator |
d8c93163ddf1e91bffe0449a66fed3bd47e8844e | test/CFrontend/2005-02-27-MarkGlobalConstant.c | test/CFrontend/2005-02-27-MarkGlobalConstant.c | // RUN: %llvmgcc -xc %s -S -o - | grep 'ctor_.* constant '
// The synthetic global made by the CFE for big initializer should be marked
// constant.
void bar();
void foo() {
char Blah[] = "asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd";
bar(Blah);
}
| // RUN: %llvmgcc -xc %s -S -o - | grep 'internal constant '
// The synthetic global made by the CFE for big initializer should be marked
// constant.
void bar();
void foo() {
char Blah[] = "asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd";
bar(Blah);
}
| Fix this regex to match what llvmgcc4 produces also | Fix this regex to match what llvmgcc4 produces also
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@27673 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm |
953660c5630b5d3bdf4567b68ba6e51929395ee5 | tensorflow/core/platform/default/stream_executor_util.h | tensorflow/core/platform/default/stream_executor_util.h | q /* Copyright 2015 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/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#ifndef TENSORFLOW_PLATFORM_DEFAULT_STREAM_EXECUTOR_UTIL_H_
#define TENSORFLOW_PLATFORM_DEFAULT_STREAM_EXECUTOR_UTIL_H_
// IWYU pragma: private, include "third_party/tensorflow/core/platform/stream_executor_util.h"
// IWYU pragma: friend third_party/tensorflow/core/platform/stream_executor_util.h
#include "tensorflow/stream_executor/lib/status.h"
namespace tensorflow {
namespace gpu = ::perftools::gputools;
// On the open-source platform, stream_executor currently uses
// tensorflow::Status
inline Status FromStreamExecutorStatus(
const perftools::gputools::port::Status& s) {
return s;
}
} // namespace tensorflow
#endif // TENSORFLOW_PLATFORM_DEFAULT_STREAM_EXECUTOR_UTIL_H_
| /* Copyright 2015 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/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#ifndef TENSORFLOW_PLATFORM_DEFAULT_STREAM_EXECUTOR_UTIL_H_
#define TENSORFLOW_PLATFORM_DEFAULT_STREAM_EXECUTOR_UTIL_H_
// IWYU pragma: private, include "third_party/tensorflow/core/platform/stream_executor_util.h"
// IWYU pragma: friend third_party/tensorflow/core/platform/stream_executor_util.h
#include "tensorflow/stream_executor/lib/status.h"
namespace tensorflow {
namespace gpu = ::perftools::gputools;
// On the open-source platform, stream_executor currently uses
// tensorflow::Status
inline Status FromStreamExecutorStatus(
const perftools::gputools::port::Status& s) {
return s;
}
} // namespace tensorflow
#endif // TENSORFLOW_PLATFORM_DEFAULT_STREAM_EXECUTOR_UTIL_H_
| Fix build breakage from a typo. Change: 111528530 | Fix build breakage from a typo.
Change: 111528530
| C | apache-2.0 | manazhao/tf_recsys,martinwicke/tensorflow,manjunaths/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Carmezim/tensorflow,Kongsea/tensorflow,petewarden/tensorflow_makefile,ppries/tensorflow,rabipanda/tensorflow,AnishShah/tensorflow,dendisuhubdy/tensorflow,arborh/tensorflow,Mistobaan/tensorflow,renyi533/tensorflow,XueqingLin/tensorflow,Bulochkin/tensorflow_pack,Xeralux/tensorflow,SnakeJenny/TensorFlow,aselle/tensorflow,shreyasva/tensorflow,ZhangXinNan/tensorflow,petewarden/tensorflow,pcm17/tensorflow,ville-k/tensorflow,ville-k/tensorflow,freedomtan/tensorflow,thesuperzapper/tensorflow,chenjun0210/tensorflow,ZhangXinNan/tensorflow,MycChiu/tensorflow,AnishShah/tensorflow,ishay2b/tensorflow,llhe/tensorflow,cancan101/tensorflow,benoitsteiner/tensorflow-opencl,davidzchen/tensorflow,anand-c-goog/tensorflow,manazhao/tf_recsys,Intel-tensorflow/tensorflow,caisq/tensorflow,martinbede/second-sight,sandeepdsouza93/TensorFlow-15712,abhitopia/tensorflow,benoitsteiner/tensorflow-opencl,ppwwyyxx/tensorflow,Moriadry/tensorflow,lukas-krecan/tensorflow,sjperkins/tensorflow,calebfoss/tensorflow,apark263/tensorflow,freedomtan/tensorflow,johndpope/tensorflow,snnn/tensorflow,ppwwyyxx/tensorflow,davidzchen/tensorflow,paolodedios/tensorflow,RyanYoung25/tensorflow,HKUST-SING/tensorflow,dongjoon-hyun/tensorflow,peterbraden/tensorflow,haeusser/tensorflow,strint/tensorflow,krikru/tensorflow-opencl,jbedorf/tensorflow,freedomtan/tensorflow,4Quant/tensorflow,drpngx/tensorflow,horance-liu/tensorflow,ppwwyyxx/tensorflow,benoitsteiner/tensorflow-xsmm,jhseu/tensorflow,elingg/tensorflow,RyanYoung25/tensorflow,laosiaudi/tensorflow,lukeiwanski/tensorflow,asadziach/tensorflow,juharris/tensorflow,mrry/tensorflow,ageron/tensorflow,pavelchristof/gomoku-ai,dhalleine/tensorflow,eadgarchen/tensorflow,handroissuazo/tensorflow,mengxn/tensorflow,chris-chris/tensorflow,hehongliang/tensorflow,ninotoshi/tensorflow,mdrumond/tensorflow,laszlocsomor/tensorflow,alisidd/tensorflow,pavelchristof/gomoku-ai,seanli9jan/tensorflow,jeffzheng1/tensorflow,tornadozou/tensorflow,cxxgtxy/tensorflow,yongtang/tensorflow,ibab/tensorflow,av8ramit/tensorflow,Kongsea/tensorflow,pcm17/tensorflow,asimshankar/tensorflow,hsaputra/tensorflow,ravindrapanda/tensorflow,nanditav/15712-TensorFlow,annarev/tensorflow,jbedorf/tensorflow,adamtiger/tensorflow,hfp/tensorflow-xsmm,hsaputra/tensorflow,seaotterman/tensorflow,yanchen036/tensorflow,laszlocsomor/tensorflow,admcrae/tensorflow,laszlocsomor/tensorflow,kchodorow/tensorflow,johndpope/tensorflow,thjashin/tensorflow,tomasreimers/tensorflow-emscripten,DavidNorman/tensorflow,tiagofrepereira2012/tensorflow,manjunaths/tensorflow,dongjoon-hyun/tensorflow,memo/tensorflow,wangyum/tensorflow,sandeepgupta2k4/tensorflow,tomasreimers/tensorflow-emscripten,gibiansky/tensorflow,benoitsteiner/tensorflow-xsmm,krikru/tensorflow-opencl,Bismarrck/tensorflow,mortada/tensorflow,kobejean/tensorflow,asimshankar/tensorflow,pierreg/tensorflow,wchan/tensorflow,chenjun0210/tensorflow,yongtang/tensorflow,whn09/tensorflow,anand-c-goog/tensorflow,anilmuthineni/tensorflow,hsaputra/tensorflow,TakayukiSakai/tensorflow,ivano666/tensorflow,ghchinoy/tensorflow,ravindrapanda/tensorflow,odejesush/tensorflow,Mistobaan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,hfp/tensorflow-xsmm,Kongsea/tensorflow,alistairlow/tensorflow,karllessard/tensorflow,dhalleine/tensorflow,raymondxyang/tensorflow,pcm17/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,laosiaudi/tensorflow,thjashin/tensorflow,girving/tensorflow,JingJunYin/tensorflow,apark263/tensorflow,eerwitt/tensorflow,gautam1858/tensorflow,pierreg/tensorflow,tillahoffmann/tensorflow,JingJunYin/tensorflow,Bulochkin/tensorflow_pack,llhe/tensorflow,aam-at/tensorflow,MostafaGazar/tensorflow,pavelchristof/gomoku-ai,frreiss/tensorflow-fred,benoitsteiner/tensorflow-xsmm,JVillella/tensorflow,tntnatbry/tensorflow,chemelnucfin/tensorflow,tntnatbry/tensorflow,gunan/tensorflow,adit-chandra/tensorflow,aam-at/tensorflow,ibmsoe/tensorflow,whn09/tensorflow,XueqingLin/tensorflow,dongjoon-hyun/tensorflow,meteorcloudy/tensorflow,davidzchen/tensorflow,kobejean/tensorflow,jhseu/tensorflow,kevin-coder/tensorflow-fork,Kongsea/tensorflow,eerwitt/tensorflow,chris-chris/tensorflow,aldian/tensorflow,sandeepdsouza93/TensorFlow-15712,freedomtan/tensorflow,maciekcc/tensorflow,eaplatanios/tensorflow,davidzchen/tensorflow,guschmue/tensorflow,code-sauce/tensorflow,alsrgv/tensorflow,alshedivat/tensorflow,ZhangXinNan/tensorflow,alivecor/tensorflow,MoamerEncsConcordiaCa/tensorflow,apark263/tensorflow,brchiu/tensorflow,suiyuan2009/tensorflow,eerwitt/tensorflow,admcrae/tensorflow,asimshankar/tensorflow,alshedivat/tensorflow,taknevski/tensorflow-xsmm,whn09/tensorflow,juharris/tensorflow,tongwang01/tensorflow,chemelnucfin/tensorflow,hfp/tensorflow-xsmm,gojira/tensorflow,HaebinShin/tensorflow,gnieboer/tensorflow,Bismarrck/tensorflow,alsrgv/tensorflow,sjperkins/tensorflow,DavidNorman/tensorflow,Bulochkin/tensorflow_pack,codrut3/tensorflow,cancan101/tensorflow,mrry/tensorflow,thjashin/tensorflow,yongtang/tensorflow,ivano666/tensorflow,alheinecke/tensorflow-xsmm,hfp/tensorflow-xsmm,unsiloai/syntaxnet-ops-hack,ravindrapanda/tensorflow,elingg/tensorflow,codrut3/tensorflow,tillahoffmann/tensorflow,chris-chris/tensorflow,annarev/tensorflow,eaplatanios/tensorflow,alivecor/tensorflow,nburn42/tensorflow,bowang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,johndpope/tensorflow,alivecor/tensorflow,asadziach/tensorflow,sarvex/tensorflow,thjashin/tensorflow,JinXinDeep/tensorflow,MycChiu/tensorflow,Bulochkin/tensorflow_pack,hehongliang/tensorflow,hehongliang/tensorflow,gautam1858/tensorflow,gautam1858/tensorflow,suiyuan2009/tensorflow,alsrgv/tensorflow,odejesush/tensorflow,ppwwyyxx/tensorflow,alistairlow/tensorflow,LUTAN/tensorflow,tensorflow/tensorflow,ivano666/tensorflow,seanli9jan/tensorflow,kamcpp/tensorflow,alsrgv/tensorflow,eaplatanios/tensorflow,moonboots/tensorflow,gautam1858/tensorflow,ageron/tensorflow,ibmsoe/tensorflow,drpngx/tensorflow,mdrumond/tensorflow,xzturn/tensorflow,meteorcloudy/tensorflow,elingg/tensorflow,ZhangXinNan/tensorflow,Mistobaan/tensorflow,tomasreimers/tensorflow-emscripten,tornadozou/tensorflow,mortada/tensorflow,awni/tensorflow,ZhangXinNan/tensorflow,lukas-krecan/tensorflow,rabipanda/tensorflow,brchiu/tensorflow,nightjean/Deep-Learning,XueqingLin/tensorflow,alheinecke/tensorflow-xsmm,handroissuazo/tensorflow,dendisuhubdy/tensorflow,davidzchen/tensorflow,lukeiwanski/tensorflow,dendisuhubdy/tensorflow,adamtiger/tensorflow,karllessard/tensorflow,zasdfgbnm/tensorflow,mdrumond/tensorflow,ishay2b/tensorflow,ageron/tensorflow,cg31/tensorflow,JingJunYin/tensorflow,mdrumond/tensorflow,admcrae/tensorflow,markslwong/tensorflow,apark263/tensorflow,strint/tensorflow,adit-chandra/tensorflow,theflofly/tensorflow,jendap/tensorflow,aselle/tensorflow,sarvex/tensorflow,scenarios/tensorflow,allenlavoie/tensorflow,ppries/tensorflow,taknevski/tensorflow-xsmm,raymondxyang/tensorflow,hsaputra/tensorflow,hsaputra/tensorflow,TakayukiSakai/tensorflow,suiyuan2009/tensorflow,ibmsoe/tensorflow,jalexvig/tensorflow,yaroslavvb/tensorflow,mrry/tensorflow,llhe/tensorflow,jart/tensorflow,adit-chandra/tensorflow,theflofly/tensorflow,yongtang/tensorflow,dyoung418/tensorflow,seaotterman/tensorflow,admcrae/tensorflow,martinwicke/tensorflow,Intel-Corporation/tensorflow,ppwwyyxx/tensorflow,elingg/tensorflow,caisq/tensorflow,ychfan/tensorflow,ppries/tensorflow,benoitsteiner/tensorflow-opencl,nanditav/15712-TensorFlow,jhseu/tensorflow,dancingdan/tensorflow,frreiss/tensorflow-fred,cg31/tensorflow,tensorflow/tensorflow,shreyasva/tensorflow,wchan/tensorflow,Bismarrck/tensorflow,mavenlin/tensorflow,nightjean/Deep-Learning,JinXinDeep/tensorflow,jhaux/tensorflow,guschmue/tensorflow,aam-at/tensorflow,freedomtan/tensorflow,rdipietro/tensorflow,ville-k/tensorflow,DavidNorman/tensorflow,petewarden/tensorflow,krikru/tensorflow-opencl,elingg/tensorflow,pavelchristof/gomoku-ai,ville-k/tensorflow,ageron/tensorflow,rabipanda/tensorflow,EvenStrangest/tensorflow,chris-chris/tensorflow,freedomtan/tensorflow,petewarden/tensorflow,kchodorow/tensorflow,chemelnucfin/tensorflow,martinwicke/tensorflow,Moriadry/tensorflow,karllessard/tensorflow,yanchen036/tensorflow,alheinecke/tensorflow-xsmm,tensorflow/tensorflow-pywrap_saved_model,Carmezim/tensorflow,gojira/tensorflow,arborh/tensorflow,xodus7/tensorflow,naturali/tensorflow,yaroslavvb/tensorflow,ninotoshi/tensorflow,neilhan/tensorflow,manjunaths/tensorflow,codrut3/tensorflow,taknevski/tensorflow-xsmm,ibmsoe/tensorflow,scenarios/tensorflow,MostafaGazar/tensorflow,arborh/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-pywrap_saved_model,codrut3/tensorflow,DavidNorman/tensorflow,Mistobaan/tensorflow,ArtsiomCh/tensorflow,peterbraden/tensorflow,horance-liu/tensorflow,handroissuazo/tensorflow,apark263/tensorflow,lukeiwanski/tensorflow-opencl,EvenStrangest/tensorflow,drpngx/tensorflow,markslwong/tensorflow,4Quant/tensorflow,aselle/tensorflow,asimshankar/tensorflow,kevin-coder/tensorflow-fork,davidzchen/tensorflow,drpngx/tensorflow,ran5515/DeepDecision,tiagofrepereira2012/tensorflow,scenarios/tensorflow,eadgarchen/tensorflow,guschmue/tensorflow,tensorflow/tensorflow-pywrap_saved_model,lukeiwanski/tensorflow-opencl,meteorcloudy/tensorflow,pierreg/tensorflow,alsrgv/tensorflow,unsiloai/syntaxnet-ops-hack,TakayukiSakai/tensorflow,alsrgv/tensorflow,alisidd/tensorflow,eerwitt/tensorflow,sandeepgupta2k4/tensorflow,davidzchen/tensorflow,ravindrapanda/tensorflow,HKUST-SING/tensorflow,vrv/tensorflow,a-doumoulakis/tensorflow,petewarden/tensorflow_makefile,naturali/tensorflow,HKUST-SING/tensorflow,pcm17/tensorflow,anilmuthineni/tensorflow,ArtsiomCh/tensorflow,shreyasva/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,markslwong/tensorflow,benoitsteiner/tensorflow,abhitopia/tensorflow,benoitsteiner/tensorflow-xsmm,Intel-tensorflow/tensorflow,awni/tensorflow,aam-at/tensorflow,pcm17/tensorflow,eadgarchen/tensorflow,allenlavoie/tensorflow,yufengg/tensorflow,tornadozou/tensorflow,girving/tensorflow,tensorflow/tensorflow,yaroslavvb/tensorflow,girving/tensorflow,JingJunYin/tensorflow,guschmue/tensorflow,dancingdan/tensorflow,pcm17/tensorflow,frreiss/tensorflow-fred,hlt-mt/tensorflow,neilhan/tensorflow,kevin-coder/tensorflow-fork,peterbraden/tensorflow,apark263/tensorflow,martinwicke/tensorflow,lakshayg/tensorflow,jostep/tensorflow,llhe/tensorflow,manipopopo/tensorflow,tensorflow/tensorflow,haeusser/tensorflow,anilmuthineni/tensorflow,asimshankar/tensorflow,lukeiwanski/tensorflow-opencl,asadziach/tensorflow,ninotoshi/tensorflow,naturali/tensorflow,alisidd/tensorflow,asimshankar/tensorflow,AnishShah/tensorflow,pavelchristof/gomoku-ai,tensorflow/tensorflow,lukeiwanski/tensorflow-opencl,kobejean/tensorflow,theflofly/tensorflow,panmari/tensorflow,RyanYoung25/tensorflow,mixturemodel-flow/tensorflow,allenlavoie/tensorflow,dancingdan/tensorflow,benoitsteiner/tensorflow,anilmuthineni/tensorflow,mortada/tensorflow,MycChiu/tensorflow,DCSaunders/tensorflow,aselle/tensorflow,bowang/tensorflow,adit-chandra/tensorflow,LUTAN/tensorflow,meteorcloudy/tensorflow,wangyum/tensorflow,HKUST-SING/tensorflow,manjunaths/tensorflow,odejesush/tensorflow,shreyasva/tensorflow,seanli9jan/tensorflow,martinwicke/tensorflow,chemelnucfin/tensorflow,frreiss/tensorflow-fred,girving/tensorflow,yaroslavvb/tensorflow,eerwitt/tensorflow,aldian/tensorflow,kobejean/tensorflow,snnn/tensorflow,jalexvig/tensorflow,hfp/tensorflow-xsmm,vrv/tensorflow,gibiansky/tensorflow,sandeepgupta2k4/tensorflow,ran5515/DeepDecision,sandeepgupta2k4/tensorflow,cg31/tensorflow,mengxn/tensorflow,mixturemodel-flow/tensorflow,Intel-tensorflow/tensorflow,lukeiwanski/tensorflow,ibab/tensorflow,johndpope/tensorflow,MycChiu/tensorflow,Moriadry/tensorflow,ghchinoy/tensorflow,girving/tensorflow,jhseu/tensorflow,jbedorf/tensorflow,jendap/tensorflow,panmari/tensorflow,nolanliou/tensorflow,bowang/tensorflow,LUTAN/tensorflow,yaroslavvb/tensorflow,caisq/tensorflow,MoamerEncsConcordiaCa/tensorflow,seanli9jan/tensorflow,karllessard/tensorflow,xzturn/tensorflow,thjashin/tensorflow,drpngx/tensorflow,elingg/tensorflow,pcm17/tensorflow,tiagofrepereira2012/tensorflow,tomasreimers/tensorflow-emscripten,Mistobaan/tensorflow,ravindrapanda/tensorflow,xodus7/tensorflow,cxxgtxy/tensorflow,krikru/tensorflow-opencl,4Quant/tensorflow,haeusser/tensorflow,zasdfgbnm/tensorflow,guschmue/tensorflow,Xeralux/tensorflow,cxxgtxy/tensorflow,kobejean/tensorflow,tiagofrepereira2012/tensorflow,nburn42/tensorflow,alheinecke/tensorflow-xsmm,MycChiu/tensorflow,mavenlin/tensorflow,juharris/tensorflow,lukeiwanski/tensorflow-opencl,paolodedios/tensorflow,nolanliou/tensorflow,freedomtan/tensorflow,rdipietro/tensorflow,aam-at/tensorflow,codrut3/tensorflow,jeffzheng1/tensorflow,jostep/tensorflow,handroissuazo/tensorflow,mixturemodel-flow/tensorflow,petewarden/tensorflow_makefile,mixturemodel-flow/tensorflow,seaotterman/tensorflow,ppwwyyxx/tensorflow,JinXinDeep/tensorflow,yongtang/tensorflow,JVillella/tensorflow,guschmue/tensorflow,andrewcmyers/tensorflow,tornadozou/tensorflow,kchodorow/tensorflow,manazhao/tf_recsys,zasdfgbnm/tensorflow,karllessard/tensorflow,nanditav/15712-TensorFlow,allenlavoie/tensorflow,nikste/tensorflow,dendisuhubdy/tensorflow,meteorcloudy/tensorflow,gunan/tensorflow,jbedorf/tensorflow,nikste/tensorflow,hsaputra/tensorflow,ZhangXinNan/tensorflow,jalexvig/tensorflow,MycChiu/tensorflow,laosiaudi/tensorflow,eaplatanios/tensorflow,ppries/tensorflow,Xeralux/tensorflow,alshedivat/tensorflow,kobejean/tensorflow,petewarden/tensorflow,Bulochkin/tensorflow_pack,gnieboer/tensorflow,HKUST-SING/tensorflow,tornadozou/tensorflow,jalexvig/tensorflow,renyi533/tensorflow,jhaux/tensorflow,yufengg/tensorflow,EvenStrangest/tensorflow,seanli9jan/tensorflow,ravindrapanda/tensorflow,ninotoshi/tensorflow,seaotterman/tensorflow,ychfan/tensorflow,RyanYoung25/tensorflow,handroissuazo/tensorflow,ppwwyyxx/tensorflow,frreiss/tensorflow-fred,XueqingLin/tensorflow,Bulochkin/tensorflow_pack,cancan101/tensorflow,jalexvig/tensorflow,kevin-coder/tensorflow-fork,dyoung418/tensorflow,aam-at/tensorflow,renyi533/tensorflow,HaebinShin/tensorflow,jalexvig/tensorflow,tiagofrepereira2012/tensorflow,HaebinShin/tensorflow,allenlavoie/tensorflow,wangyum/tensorflow,pierreg/tensorflow,awni/tensorflow,yaroslavvb/tensorflow,brchiu/tensorflow,dancingdan/tensorflow,tomasreimers/tensorflow-emscripten,haeusser/tensorflow,chemelnucfin/tensorflow,jhaux/tensorflow,meteorcloudy/tensorflow,admcrae/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jhaux/tensorflow,ageron/tensorflow,mixturemodel-flow/tensorflow,cg31/tensorflow,caisq/tensorflow,Carmezim/tensorflow,gunan/tensorflow,odejesush/tensorflow,mengxn/tensorflow,dhalleine/tensorflow,pavelchristof/gomoku-ai,nolanliou/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,panmari/tensorflow,seanli9jan/tensorflow,arborh/tensorflow,renyi533/tensorflow,thjashin/tensorflow,aselle/tensorflow,elingg/tensorflow,guschmue/tensorflow,yanchen036/tensorflow,pierreg/tensorflow,kobejean/tensorflow,unsiloai/syntaxnet-ops-hack,yufengg/tensorflow,kobejean/tensorflow,paolodedios/tensorflow,admcrae/tensorflow,AndreasMadsen/tensorflow,eadgarchen/tensorflow,codrut3/tensorflow,lukeiwanski/tensorflow,MostafaGazar/tensorflow,maciekcc/tensorflow,karllessard/tensorflow,freedomtan/tensorflow,whn09/tensorflow,krikru/tensorflow-opencl,paolodedios/tensorflow,guschmue/tensorflow,wangyum/tensorflow,unsiloai/syntaxnet-ops-hack,jeffzheng1/tensorflow,chris-chris/tensorflow,jwlawson/tensorflow,DavidNorman/tensorflow,strint/tensorflow,DCSaunders/tensorflow,manipopopo/tensorflow,wchan/tensorflow,hlt-mt/tensorflow,markslwong/tensorflow,jhaux/tensorflow,gibiansky/tensorflow,thesuperzapper/tensorflow,HKUST-SING/tensorflow,LUTAN/tensorflow,kchodorow/tensorflow,ychfan/tensorflow,Mazecreator/tensorflow,nightjean/Deep-Learning,sandeepgupta2k4/tensorflow,Mazecreator/tensorflow,seanli9jan/tensorflow,Bulochkin/tensorflow_pack,benoitsteiner/tensorflow,jostep/tensorflow,johndpope/tensorflow,sandeepgupta2k4/tensorflow,chenjun0210/tensorflow,taknevski/tensorflow-xsmm,adit-chandra/tensorflow,girving/tensorflow,tntnatbry/tensorflow,martinwicke/tensorflow,lukeiwanski/tensorflow,gojira/tensorflow,pcm17/tensorflow,alshedivat/tensorflow,jbedorf/tensorflow,lukeiwanski/tensorflow-opencl,wangyum/tensorflow,petewarden/tensorflow_makefile,yanchen036/tensorflow,snnn/tensorflow,Moriadry/tensorflow,AnishShah/tensorflow,jart/tensorflow,Bismarrck/tensorflow,awni/tensorflow,aldian/tensorflow,zasdfgbnm/tensorflow,snnn/tensorflow,benoitsteiner/tensorflow-xsmm,sjperkins/tensorflow,alshedivat/tensorflow,codrut3/tensorflow,alshedivat/tensorflow,ishay2b/tensorflow,EvenStrangest/tensorflow,odejesush/tensorflow,DCSaunders/tensorflow,RyanYoung25/tensorflow,ninotoshi/tensorflow,panmari/tensorflow,dyoung418/tensorflow,Intel-Corporation/tensorflow,Kongsea/tensorflow,gnieboer/tensorflow,AndreasMadsen/tensorflow,kevin-coder/tensorflow-fork,kamcpp/tensorflow,annarev/tensorflow,aselle/tensorflow,gautam1858/tensorflow,Bismarrck/tensorflow,krikru/tensorflow-opencl,MostafaGazar/tensorflow,dongjoon-hyun/tensorflow,ppries/tensorflow,ychfan/tensorflow,jeffzheng1/tensorflow,calebfoss/tensorflow,hfp/tensorflow-xsmm,yufengg/tensorflow,andrewcmyers/tensorflow,gibiansky/tensorflow,MoamerEncsConcordiaCa/tensorflow,anand-c-goog/tensorflow,HaebinShin/tensorflow,rdipietro/tensorflow,chenjun0210/tensorflow,cxxgtxy/tensorflow,gnieboer/tensorflow,neilhan/tensorflow,panmari/tensorflow,nikste/tensorflow,lukeiwanski/tensorflow,mixturemodel-flow/tensorflow,tiagofrepereira2012/tensorflow,aselle/tensorflow,nburn42/tensorflow,ghchinoy/tensorflow,allenlavoie/tensorflow,codrut3/tensorflow,xodus7/tensorflow,anilmuthineni/tensorflow,asimshankar/tensorflow,dyoung418/tensorflow,mortada/tensorflow,code-sauce/tensorflow,meteorcloudy/tensorflow,asimshankar/tensorflow,frreiss/tensorflow-fred,nolanliou/tensorflow,code-sauce/tensorflow,raymondxyang/tensorflow,nolanliou/tensorflow,MostafaGazar/tensorflow,gibiansky/tensorflow,hlt-mt/tensorflow,ArtsiomCh/tensorflow,pierreg/tensorflow,JinXinDeep/tensorflow,code-sauce/tensorflow,unsiloai/syntaxnet-ops-hack,nanditav/15712-TensorFlow,davidzchen/tensorflow,nightjean/Deep-Learning,horance-liu/tensorflow,MostafaGazar/tensorflow,haeusser/tensorflow,arborh/tensorflow,rdipietro/tensorflow,shreyasva/tensorflow,vrv/tensorflow,Intel-Corporation/tensorflow,memo/tensorflow,Mistobaan/tensorflow,adit-chandra/tensorflow,mavenlin/tensorflow,lakshayg/tensorflow,MoamerEncsConcordiaCa/tensorflow,markslwong/tensorflow,jeffzheng1/tensorflow,ghchinoy/tensorflow,mortada/tensorflow,juharris/tensorflow,mrry/tensorflow,eaplatanios/tensorflow,Intel-tensorflow/tensorflow,hehongliang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,code-sauce/tensorflow,benoitsteiner/tensorflow,martinbede/second-sight,dyoung418/tensorflow,sandeepdsouza93/TensorFlow-15712,pavelchristof/gomoku-ai,frreiss/tensorflow-fred,aldian/tensorflow,ghchinoy/tensorflow,bowang/tensorflow,laosiaudi/tensorflow,wchan/tensorflow,caisq/tensorflow,TakayukiSakai/tensorflow,cancan101/tensorflow,mengxn/tensorflow,tensorflow/tensorflow,mdrumond/tensorflow,xzturn/tensorflow,xzturn/tensorflow,juharris/tensorflow,jwlawson/tensorflow,AndreasMadsen/tensorflow,hsaputra/tensorflow,aselle/tensorflow,tongwang01/tensorflow,SnakeJenny/TensorFlow,petewarden/tensorflow,rabipanda/tensorflow,calebfoss/tensorflow,chemelnucfin/tensorflow,snnn/tensorflow,eerwitt/tensorflow,gnieboer/tensorflow,martinwicke/tensorflow,xzturn/tensorflow,chenjun0210/tensorflow,dendisuhubdy/tensorflow,panmari/tensorflow,Mazecreator/tensorflow,brchiu/tensorflow,renyi533/tensorflow,mortada/tensorflow,adit-chandra/tensorflow,gibiansky/tensorflow,gautam1858/tensorflow,nikste/tensorflow,drpngx/tensorflow,XueqingLin/tensorflow,asimshankar/tensorflow,dongjoon-hyun/tensorflow,gibiansky/tensorflow,tiagofrepereira2012/tensorflow,meteorcloudy/tensorflow,EvenStrangest/tensorflow,sjperkins/tensorflow,nanditav/15712-TensorFlow,jwlawson/tensorflow,nolanliou/tensorflow,thesuperzapper/tensorflow,adamtiger/tensorflow,naturali/tensorflow,gunan/tensorflow,renyi533/tensorflow,rdipietro/tensorflow,nburn42/tensorflow,Intel-Corporation/tensorflow,sjperkins/tensorflow,vrv/tensorflow,arborh/tensorflow,sjperkins/tensorflow,nikste/tensorflow,jbedorf/tensorflow,AnishShah/tensorflow,zycdragonball/tensorflow,whn09/tensorflow,martinwicke/tensorflow,tntnatbry/tensorflow,panmari/tensorflow,wchan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,ghchinoy/tensorflow,sandeepdsouza93/TensorFlow-15712,jart/tensorflow,alistairlow/tensorflow,handroissuazo/tensorflow,Intel-tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xodus7/tensorflow,jwlawson/tensorflow,xodus7/tensorflow,eaplatanios/tensorflow,jeffzheng1/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,haeusser/tensorflow,JinXinDeep/tensorflow,Kongsea/tensorflow,mengxn/tensorflow,jalexvig/tensorflow,krikru/tensorflow-opencl,awni/tensorflow,ville-k/tensorflow,suiyuan2009/tensorflow,scenarios/tensorflow,Xeralux/tensorflow,mavenlin/tensorflow,juharris/tensorflow,nightjean/Deep-Learning,martinbede/second-sight,jendap/tensorflow,sarvex/tensorflow,martinbede/second-sight,jhseu/tensorflow,av8ramit/tensorflow,peterbraden/tensorflow,karllessard/tensorflow,arborh/tensorflow,yongtang/tensorflow,moonboots/tensorflow,mengxn/tensorflow,kevin-coder/tensorflow-fork,jhaux/tensorflow,HKUST-SING/tensorflow,MoamerEncsConcordiaCa/tensorflow,martinwicke/tensorflow,RapidApplicationDevelopment/tensorflow,jendap/tensorflow,mixturemodel-flow/tensorflow,seanli9jan/tensorflow,ninotoshi/tensorflow,ravindrapanda/tensorflow,dancingdan/tensorflow,yaroslavvb/tensorflow,jwlawson/tensorflow,ArtsiomCh/tensorflow,benoitsteiner/tensorflow-xsmm,codrut3/tensorflow,alheinecke/tensorflow-xsmm,ageron/tensorflow,anilmuthineni/tensorflow,ZhangXinNan/tensorflow,chemelnucfin/tensorflow,jendap/tensorflow,maciekcc/tensorflow,ivano666/tensorflow,handroissuazo/tensorflow,nikste/tensorflow,av8ramit/tensorflow,jalexvig/tensorflow,alisidd/tensorflow,sjperkins/tensorflow,ychfan/tensorflow,adamtiger/tensorflow,sjperkins/tensorflow,pavelchristof/gomoku-ai,rdipietro/tensorflow,DCSaunders/tensorflow,llhe/tensorflow,wangyum/tensorflow,bowang/tensorflow,jendap/tensorflow,dyoung418/tensorflow,dancingdan/tensorflow,ibmsoe/tensorflow,horance-liu/tensorflow,mrry/tensorflow,jalexvig/tensorflow,neilhan/tensorflow,jostep/tensorflow,jart/tensorflow,zasdfgbnm/tensorflow,eadgarchen/tensorflow,manazhao/tf_recsys,tornadozou/tensorflow,ran5515/DeepDecision,hehongliang/tensorflow,ArtsiomCh/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,nanditav/15712-TensorFlow,gojira/tensorflow,elingg/tensorflow,DavidNorman/tensorflow,maciekcc/tensorflow,DCSaunders/tensorflow,ppwwyyxx/tensorflow,ravindrapanda/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,MycChiu/tensorflow,mdrumond/tensorflow,annarev/tensorflow,lukeiwanski/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ibab/tensorflow,eerwitt/tensorflow,gautam1858/tensorflow,XueqingLin/tensorflow,gunan/tensorflow,jhseu/tensorflow,alistairlow/tensorflow,aldian/tensorflow,caisq/tensorflow,kobejean/tensorflow,andrewcmyers/tensorflow,Moriadry/tensorflow,scenarios/tensorflow,mdrumond/tensorflow,seaotterman/tensorflow,jwlawson/tensorflow,hfp/tensorflow-xsmm,shreyasva/tensorflow,jbedorf/tensorflow,mrry/tensorflow,alistairlow/tensorflow,peterbraden/tensorflow,thesuperzapper/tensorflow,Moriadry/tensorflow,jendap/tensorflow,sandeepgupta2k4/tensorflow,juharris/tensorflow,jeffzheng1/tensorflow,HaebinShin/tensorflow,yufengg/tensorflow,ivano666/tensorflow,alisidd/tensorflow,wangyum/tensorflow,Mazecreator/tensorflow,shreyasva/tensorflow,yaroslavvb/tensorflow,ghchinoy/tensorflow,pcm17/tensorflow,Xeralux/tensorflow,ibmsoe/tensorflow,code-sauce/tensorflow,allenlavoie/tensorflow,abhitopia/tensorflow,nikste/tensorflow,xzturn/tensorflow,adit-chandra/tensorflow,alsrgv/tensorflow,tillahoffmann/tensorflow,theflofly/tensorflow,anilmuthineni/tensorflow,cg31/tensorflow,codrut3/tensorflow,gibiansky/tensorflow,kevin-coder/tensorflow-fork,abhitopia/tensorflow,lakshayg/tensorflow,benoitsteiner/tensorflow-opencl,maciekcc/tensorflow,petewarden/tensorflow_makefile,TakayukiSakai/tensorflow,tomasreimers/tensorflow-emscripten,xzturn/tensorflow,girving/tensorflow,scenarios/tensorflow,alshedivat/tensorflow,gunan/tensorflow,calebfoss/tensorflow,horance-liu/tensorflow,strint/tensorflow,cxxgtxy/tensorflow,xzturn/tensorflow,petewarden/tensorflow,with-git/tensorflow,eadgarchen/tensorflow,snnn/tensorflow,tntnatbry/tensorflow,JVillella/tensorflow,jhseu/tensorflow,rabipanda/tensorflow,llhe/tensorflow,pierreg/tensorflow,caisq/tensorflow,nolanliou/tensorflow,adit-chandra/tensorflow,laszlocsomor/tensorflow,seanli9jan/tensorflow,adit-chandra/tensorflow,thesuperzapper/tensorflow,markslwong/tensorflow,vrv/tensorflow,strint/tensorflow,Bulochkin/tensorflow_pack,MycChiu/tensorflow,kchodorow/tensorflow,Mazecreator/tensorflow,dancingdan/tensorflow,Intel-tensorflow/tensorflow,nolanliou/tensorflow,jwlawson/tensorflow,gojira/tensorflow,tntnatbry/tensorflow,drpngx/tensorflow,LUTAN/tensorflow,mdrumond/tensorflow,EvenStrangest/tensorflow,RapidApplicationDevelopment/tensorflow,eaplatanios/tensorflow,petewarden/tensorflow_makefile,lukas-krecan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,chemelnucfin/tensorflow,manipopopo/tensorflow,neilhan/tensorflow,nanditav/15712-TensorFlow,a-doumoulakis/tensorflow,adamtiger/tensorflow,tensorflow/tensorflow,dongjoon-hyun/tensorflow,dhalleine/tensorflow,whn09/tensorflow,with-git/tensorflow,tensorflow/tensorflow-pywrap_saved_model,manjunaths/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,horance-liu/tensorflow,Bismarrck/tensorflow,LUTAN/tensorflow,calebfoss/tensorflow,Carmezim/tensorflow,LUTAN/tensorflow,lukeiwanski/tensorflow-opencl,whn09/tensorflow,lukas-krecan/tensorflow,jhaux/tensorflow,Carmezim/tensorflow,cancan101/tensorflow,allenlavoie/tensorflow,gibiansky/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,frreiss/tensorflow-fred,jhseu/tensorflow,bowang/tensorflow,RyanYoung25/tensorflow,nikste/tensorflow,johndpope/tensorflow,andrewcmyers/tensorflow,cxxgtxy/tensorflow,nburn42/tensorflow,girving/tensorflow,odejesush/tensorflow,calebfoss/tensorflow,cancan101/tensorflow,Intel-tensorflow/tensorflow,anand-c-goog/tensorflow,brchiu/tensorflow,eaplatanios/tensorflow,chris-chris/tensorflow,abhitopia/tensorflow,ppries/tensorflow,alistairlow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,av8ramit/tensorflow,EvenStrangest/tensorflow,rdipietro/tensorflow,chemelnucfin/tensorflow,RyanYoung25/tensorflow,hehongliang/tensorflow,ville-k/tensorflow,jhaux/tensorflow,calebfoss/tensorflow,paolodedios/tensorflow,thesuperzapper/tensorflow,alshedivat/tensorflow,seaotterman/tensorflow,freedomtan/tensorflow,cg31/tensorflow,alheinecke/tensorflow-xsmm,nightjean/Deep-Learning,sarvex/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,av8ramit/tensorflow,petewarden/tensorflow,mortada/tensorflow,aldian/tensorflow,yanchen036/tensorflow,calebfoss/tensorflow,rabipanda/tensorflow,renyi533/tensorflow,neilhan/tensorflow,JingJunYin/tensorflow,maciekcc/tensorflow,tillahoffmann/tensorflow,paolodedios/tensorflow,wchan/tensorflow,asadziach/tensorflow,code-sauce/tensorflow,LUTAN/tensorflow,xzturn/tensorflow,tongwang01/tensorflow,SnakeJenny/TensorFlow,Bulochkin/tensorflow_pack,manjunaths/tensorflow,rabipanda/tensorflow,ghchinoy/tensorflow,anilmuthineni/tensorflow,xzturn/tensorflow,suiyuan2009/tensorflow,manipopopo/tensorflow,girving/tensorflow,lakshayg/tensorflow,petewarden/tensorflow,dendisuhubdy/tensorflow,memo/tensorflow,aldian/tensorflow,eadgarchen/tensorflow,tongwang01/tensorflow,gautam1858/tensorflow,jwlawson/tensorflow,JinXinDeep/tensorflow,Carmezim/tensorflow,DavidNorman/tensorflow,abhitopia/tensorflow,apark263/tensorflow,ibmsoe/tensorflow,haeusser/tensorflow,AndreasMadsen/tensorflow,dongjoon-hyun/tensorflow,Intel-Corporation/tensorflow,Bismarrck/tensorflow,asadziach/tensorflow,cxxgtxy/tensorflow,apark263/tensorflow,naturali/tensorflow,brchiu/tensorflow,SnakeJenny/TensorFlow,ville-k/tensorflow,tongwang01/tensorflow,a-doumoulakis/tensorflow,Bulochkin/tensorflow_pack,Mistobaan/tensorflow,AnishShah/tensorflow,nightjean/Deep-Learning,rdipietro/tensorflow,zasdfgbnm/tensorflow,manjunaths/tensorflow,jwlawson/tensorflow,nburn42/tensorflow,sandeepdsouza93/TensorFlow-15712,Kongsea/tensorflow,davidzchen/tensorflow,dancingdan/tensorflow,chenjun0210/tensorflow,girving/tensorflow,strint/tensorflow,cancan101/tensorflow,zasdfgbnm/tensorflow,aselle/tensorflow,sarvex/tensorflow,awni/tensorflow,SnakeJenny/TensorFlow,sandeepdsouza93/TensorFlow-15712,ppwwyyxx/tensorflow,chenjun0210/tensorflow,jbedorf/tensorflow,AnishShah/tensorflow,renyi533/tensorflow,kchodorow/tensorflow,ppries/tensorflow,JingJunYin/tensorflow,rabipanda/tensorflow,mavenlin/tensorflow,RapidApplicationDevelopment/tensorflow,andrewcmyers/tensorflow,jart/tensorflow,maciekcc/tensorflow,martinbede/second-sight,gunan/tensorflow,ishay2b/tensorflow,JVillella/tensorflow,ageron/tensorflow,admcrae/tensorflow,naturali/tensorflow,horance-liu/tensorflow,apark263/tensorflow,benoitsteiner/tensorflow-opencl,tongwang01/tensorflow,theflofly/tensorflow,4Quant/tensorflow,tensorflow/tensorflow,alsrgv/tensorflow,DCSaunders/tensorflow,tomasreimers/tensorflow-emscripten,hsaputra/tensorflow,rdipietro/tensorflow,anand-c-goog/tensorflow,manipopopo/tensorflow,theflofly/tensorflow,dongjoon-hyun/tensorflow,benoitsteiner/tensorflow-opencl,jhseu/tensorflow,mavenlin/tensorflow,chris-chris/tensorflow,taknevski/tensorflow-xsmm,eerwitt/tensorflow,AnishShah/tensorflow,mrry/tensorflow,martinbede/second-sight,apark263/tensorflow,memo/tensorflow,Xeralux/tensorflow,peterbraden/tensorflow,wchan/tensorflow,dancingdan/tensorflow,Intel-tensorflow/tensorflow,anilmuthineni/tensorflow,lakshayg/tensorflow,moonboots/tensorflow,cg31/tensorflow,lukeiwanski/tensorflow-opencl,with-git/tensorflow,nburn42/tensorflow,admcrae/tensorflow,andrewcmyers/tensorflow,laszlocsomor/tensorflow,DCSaunders/tensorflow,raymondxyang/tensorflow,jeffzheng1/tensorflow,markslwong/tensorflow,Intel-Corporation/tensorflow,snnn/tensorflow,calebfoss/tensorflow,maciekcc/tensorflow,alheinecke/tensorflow-xsmm,rabipanda/tensorflow,kamcpp/tensorflow,apark263/tensorflow,Carmezim/tensorflow,tillahoffmann/tensorflow,karllessard/tensorflow,asadziach/tensorflow,ghchinoy/tensorflow,hlt-mt/tensorflow,brchiu/tensorflow,frreiss/tensorflow-fred,manazhao/tf_recsys,abhitopia/tensorflow,alisidd/tensorflow,memo/tensorflow,sarvex/tensorflow,krikru/tensorflow-opencl,caisq/tensorflow,unsiloai/syntaxnet-ops-hack,AnishShah/tensorflow,benoitsteiner/tensorflow-xsmm,juharris/tensorflow,benoitsteiner/tensorflow-xsmm,petewarden/tensorflow,theflofly/tensorflow,Moriadry/tensorflow,mengxn/tensorflow,peterbraden/tensorflow,DavidNorman/tensorflow,paolodedios/tensorflow,renyi533/tensorflow,annarev/tensorflow,awni/tensorflow,JinXinDeep/tensorflow,gunan/tensorflow,laosiaudi/tensorflow,alshedivat/tensorflow,ishay2b/tensorflow,jalexvig/tensorflow,benoitsteiner/tensorflow-xsmm,karllessard/tensorflow,Intel-Corporation/tensorflow,RapidApplicationDevelopment/tensorflow,snnn/tensorflow,ychfan/tensorflow,aam-at/tensorflow,a-doumoulakis/tensorflow,a-doumoulakis/tensorflow,av8ramit/tensorflow,naturali/tensorflow,wangyum/tensorflow,handroissuazo/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ArtsiomCh/tensorflow,aselle/tensorflow,awni/tensorflow,gnieboer/tensorflow,tomasreimers/tensorflow-emscripten,panmari/tensorflow,xodus7/tensorflow,Xeralux/tensorflow,lukas-krecan/tensorflow,ibmsoe/tensorflow,naturali/tensorflow,chenjun0210/tensorflow,memo/tensorflow,alivecor/tensorflow,tongwang01/tensorflow,eerwitt/tensorflow,RapidApplicationDevelopment/tensorflow,HKUST-SING/tensorflow,alsrgv/tensorflow,jendap/tensorflow,theflofly/tensorflow,benoitsteiner/tensorflow,johndpope/tensorflow,tensorflow/tensorflow,hlt-mt/tensorflow,haeusser/tensorflow,ibab/tensorflow,girving/tensorflow,alistairlow/tensorflow,alisidd/tensorflow,jart/tensorflow,SnakeJenny/TensorFlow,ychfan/tensorflow,ran5515/DeepDecision,benoitsteiner/tensorflow-opencl,dancingdan/tensorflow,a-doumoulakis/tensorflow,johndpope/tensorflow,with-git/tensorflow,sandeepdsouza93/TensorFlow-15712,manipopopo/tensorflow,Mistobaan/tensorflow,rabipanda/tensorflow,kamcpp/tensorflow,with-git/tensorflow,hehongliang/tensorflow,benoitsteiner/tensorflow-opencl,ran5515/DeepDecision,kevin-coder/tensorflow-fork,whn09/tensorflow,freedomtan/tensorflow,jbedorf/tensorflow,zycdragonball/tensorflow,dhalleine/tensorflow,drpngx/tensorflow,neilhan/tensorflow,nanditav/15712-TensorFlow,ibab/tensorflow,alsrgv/tensorflow,asadziach/tensorflow,cg31/tensorflow,Xeralux/tensorflow,dongjoon-hyun/tensorflow,frreiss/tensorflow-fred,dendisuhubdy/tensorflow,hlt-mt/tensorflow,mortada/tensorflow,ppwwyyxx/tensorflow,mavenlin/tensorflow,zasdfgbnm/tensorflow,seanli9jan/tensorflow,zycdragonball/tensorflow,LUTAN/tensorflow,kchodorow/tensorflow,Intel-Corporation/tensorflow,andrewcmyers/tensorflow,karllessard/tensorflow,brchiu/tensorflow,chenjun0210/tensorflow,ghchinoy/tensorflow,jart/tensorflow,alivecor/tensorflow,seaotterman/tensorflow,horance-liu/tensorflow,ArtsiomCh/tensorflow,arborh/tensorflow,annarev/tensorflow,Mazecreator/tensorflow,dongjoon-hyun/tensorflow,SnakeJenny/TensorFlow,JingJunYin/tensorflow,MycChiu/tensorflow,dhalleine/tensorflow,taknevski/tensorflow-xsmm,jart/tensorflow,frreiss/tensorflow-fred,lukeiwanski/tensorflow-opencl,AndreasMadsen/tensorflow,benoitsteiner/tensorflow,kamcpp/tensorflow,yanchen036/tensorflow,manipopopo/tensorflow,alshedivat/tensorflow,meteorcloudy/tensorflow,seaotterman/tensorflow,renyi533/tensorflow,allenlavoie/tensorflow,aam-at/tensorflow,snnn/tensorflow,kchodorow/tensorflow,pierreg/tensorflow,code-sauce/tensorflow,yongtang/tensorflow,yongtang/tensorflow,allenlavoie/tensorflow,llhe/tensorflow,cancan101/tensorflow,unsiloai/syntaxnet-ops-hack,jbedorf/tensorflow,laosiaudi/tensorflow,odejesush/tensorflow,thjashin/tensorflow,mortada/tensorflow,gunan/tensorflow,yufengg/tensorflow,cg31/tensorflow,lakshayg/tensorflow,benoitsteiner/tensorflow-opencl,laszlocsomor/tensorflow,petewarden/tensorflow,dongjoon-hyun/tensorflow,whn09/tensorflow,DCSaunders/tensorflow,aam-at/tensorflow,JinXinDeep/tensorflow,zasdfgbnm/tensorflow,tntnatbry/tensorflow,alistairlow/tensorflow,Bulochkin/tensorflow_pack,TakayukiSakai/tensorflow,laszlocsomor/tensorflow,caisq/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,llhe/tensorflow,eaplatanios/tensorflow,brchiu/tensorflow,mixturemodel-flow/tensorflow,ZhangXinNan/tensorflow,MostafaGazar/tensorflow,JVillella/tensorflow,Bismarrck/tensorflow,asadziach/tensorflow,theflofly/tensorflow,RapidApplicationDevelopment/tensorflow,ivano666/tensorflow,MostafaGazar/tensorflow,av8ramit/tensorflow,alistairlow/tensorflow,xodus7/tensorflow,wchan/tensorflow,eadgarchen/tensorflow,MostafaGazar/tensorflow,ivano666/tensorflow,taknevski/tensorflow-xsmm,taknevski/tensorflow-xsmm,benoitsteiner/tensorflow,aam-at/tensorflow,tornadozou/tensorflow,laosiaudi/tensorflow,ageron/tensorflow,thesuperzapper/tensorflow,RapidApplicationDevelopment/tensorflow,Intel-tensorflow/tensorflow,chemelnucfin/tensorflow,annarev/tensorflow,nightjean/Deep-Learning,av8ramit/tensorflow,lakshayg/tensorflow,HKUST-SING/tensorflow,ZhangXinNan/tensorflow,DCSaunders/tensorflow,lukas-krecan/tensorflow,manjunaths/tensorflow,MoamerEncsConcordiaCa/tensorflow,jhseu/tensorflow,anand-c-goog/tensorflow,jostep/tensorflow,vrv/tensorflow,thjashin/tensorflow,tornadozou/tensorflow,moonboots/tensorflow,ZhangXinNan/tensorflow,moonboots/tensorflow,lukas-krecan/tensorflow,aldian/tensorflow,Bismarrck/tensorflow,DavidNorman/tensorflow,jwlawson/tensorflow,av8ramit/tensorflow,bowang/tensorflow,abhitopia/tensorflow,RapidApplicationDevelopment/tensorflow,gunan/tensorflow,neilhan/tensorflow,XueqingLin/tensorflow,jendap/tensorflow,MoamerEncsConcordiaCa/tensorflow,4Quant/tensorflow,kobejean/tensorflow,neilhan/tensorflow,AnishShah/tensorflow,gnieboer/tensorflow,admcrae/tensorflow,snnn/tensorflow,gnieboer/tensorflow,dhalleine/tensorflow,Bulochkin/tensorflow_pack,dendisuhubdy/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,DCSaunders/tensorflow,JVillella/tensorflow,alisidd/tensorflow,anand-c-goog/tensorflow,gojira/tensorflow,JingJunYin/tensorflow,theflofly/tensorflow,gnieboer/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ibab/tensorflow,mengxn/tensorflow,gautam1858/tensorflow,HaebinShin/tensorflow,suiyuan2009/tensorflow,with-git/tensorflow,aam-at/tensorflow,yanchen036/tensorflow,yanchen036/tensorflow,jendap/tensorflow,Carmezim/tensorflow,mrry/tensorflow,thesuperzapper/tensorflow,hfp/tensorflow-xsmm,ppries/tensorflow,strint/tensorflow,JVillella/tensorflow,benoitsteiner/tensorflow,haeusser/tensorflow,Intel-tensorflow/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,DavidNorman/tensorflow,kevin-coder/tensorflow-fork,dendisuhubdy/tensorflow,abhitopia/tensorflow,peterbraden/tensorflow,av8ramit/tensorflow,yongtang/tensorflow,zycdragonball/tensorflow,llhe/tensorflow,thesuperzapper/tensorflow,ivano666/tensorflow,renyi533/tensorflow,chris-chris/tensorflow,sarvex/tensorflow,alisidd/tensorflow,JingJunYin/tensorflow,paolodedios/tensorflow,xodus7/tensorflow,nanditav/15712-TensorFlow,kamcpp/tensorflow,ibmsoe/tensorflow,AnishShah/tensorflow,ghchinoy/tensorflow,with-git/tensorflow,gojira/tensorflow,xodus7/tensorflow,caisq/tensorflow,zycdragonball/tensorflow,benoitsteiner/tensorflow-xsmm,HaebinShin/tensorflow,nolanliou/tensorflow,laosiaudi/tensorflow,eaplatanios/tensorflow,memo/tensorflow,odejesush/tensorflow,JingJunYin/tensorflow,freedomtan/tensorflow,4Quant/tensorflow,sandeepgupta2k4/tensorflow,Mazecreator/tensorflow,ageron/tensorflow,asimshankar/tensorflow,mengxn/tensorflow,asimshankar/tensorflow,mavenlin/tensorflow,ZhangXinNan/tensorflow,tiagofrepereira2012/tensorflow,ghchinoy/tensorflow,seanli9jan/tensorflow,ppwwyyxx/tensorflow,jalexvig/tensorflow,jbedorf/tensorflow,Xeralux/tensorflow,strint/tensorflow,allenlavoie/tensorflow,jostep/tensorflow,laszlocsomor/tensorflow,DavidNorman/tensorflow,eadgarchen/tensorflow,kobejean/tensorflow,Intel-tensorflow/tensorflow,martinbede/second-sight,moonboots/tensorflow,manazhao/tf_recsys,tensorflow/tensorflow-pywrap_tf_optimizer,thjashin/tensorflow,annarev/tensorflow,paolodedios/tensorflow,anand-c-goog/tensorflow,AndreasMadsen/tensorflow,alivecor/tensorflow,petewarden/tensorflow_makefile,ravindrapanda/tensorflow,Moriadry/tensorflow,ishay2b/tensorflow,ishay2b/tensorflow,elingg/tensorflow,lukeiwanski/tensorflow,renyi533/tensorflow,nikste/tensorflow,lukeiwanski/tensorflow,ran5515/DeepDecision,scenarios/tensorflow,jendap/tensorflow,tillahoffmann/tensorflow,Mistobaan/tensorflow,theflofly/tensorflow,AndreasMadsen/tensorflow,XueqingLin/tensorflow,hlt-mt/tensorflow,ppwwyyxx/tensorflow,davidzchen/tensorflow,nburn42/tensorflow,benoitsteiner/tensorflow,zasdfgbnm/tensorflow,meteorcloudy/tensorflow,annarev/tensorflow,laszlocsomor/tensorflow,manipopopo/tensorflow,brchiu/tensorflow,tongwang01/tensorflow,raymondxyang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,cxxgtxy/tensorflow,benoitsteiner/tensorflow,jart/tensorflow,SnakeJenny/TensorFlow,manazhao/tf_recsys,manjunaths/tensorflow,vrv/tensorflow,petewarden/tensorflow,lukeiwanski/tensorflow,gojira/tensorflow,kamcpp/tensorflow,ran5515/DeepDecision,alshedivat/tensorflow,nolanliou/tensorflow,gunan/tensorflow,gautam1858/tensorflow,hlt-mt/tensorflow,sjperkins/tensorflow,alivecor/tensorflow,ArtsiomCh/tensorflow,theflofly/tensorflow,jostep/tensorflow,yongtang/tensorflow,Xeralux/tensorflow,alheinecke/tensorflow-xsmm,TakayukiSakai/tensorflow,sandeepdsouza93/TensorFlow-15712,raymondxyang/tensorflow,scenarios/tensorflow,ninotoshi/tensorflow,alsrgv/tensorflow,snnn/tensorflow,jhseu/tensorflow,ppries/tensorflow,Bismarrck/tensorflow,markslwong/tensorflow,jhaux/tensorflow,annarev/tensorflow,eadgarchen/tensorflow,RyanYoung25/tensorflow,alsrgv/tensorflow,lakshayg/tensorflow,EvenStrangest/tensorflow,moonboots/tensorflow,ageron/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,laosiaudi/tensorflow,tillahoffmann/tensorflow,dhalleine/tensorflow,nburn42/tensorflow,ville-k/tensorflow,gautam1858/tensorflow,gojira/tensorflow,a-doumoulakis/tensorflow,asadziach/tensorflow,arborh/tensorflow,mrry/tensorflow,sandeepgupta2k4/tensorflow,arborh/tensorflow,paolodedios/tensorflow,4Quant/tensorflow,brchiu/tensorflow,llhe/tensorflow,tensorflow/tensorflow,dendisuhubdy/tensorflow,ychfan/tensorflow,johndpope/tensorflow,ageron/tensorflow,suiyuan2009/tensorflow,manipopopo/tensorflow,raymondxyang/tensorflow,chemelnucfin/tensorflow,AndreasMadsen/tensorflow,arborh/tensorflow,kevin-coder/tensorflow-fork,dyoung418/tensorflow,hsaputra/tensorflow,nburn42/tensorflow,davidzchen/tensorflow,code-sauce/tensorflow,TakayukiSakai/tensorflow,odejesush/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,raymondxyang/tensorflow,memo/tensorflow,unsiloai/syntaxnet-ops-hack,ninotoshi/tensorflow,Kongsea/tensorflow,laszlocsomor/tensorflow,HaebinShin/tensorflow,drpngx/tensorflow,zycdragonball/tensorflow,kchodorow/tensorflow,yufengg/tensorflow,chemelnucfin/tensorflow,ibab/tensorflow,jbedorf/tensorflow,vrv/tensorflow,andrewcmyers/tensorflow,petewarden/tensorflow_makefile,krikru/tensorflow-opencl,Xeralux/tensorflow,ville-k/tensorflow,xodus7/tensorflow,guschmue/tensorflow,adamtiger/tensorflow,manipopopo/tensorflow,tntnatbry/tensorflow,ageron/tensorflow,scenarios/tensorflow,hsaputra/tensorflow,gunan/tensorflow,nburn42/tensorflow,dancingdan/tensorflow,moonboots/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,RapidApplicationDevelopment/tensorflow,tntnatbry/tensorflow,a-doumoulakis/tensorflow,hfp/tensorflow-xsmm,xodus7/tensorflow,aselle/tensorflow,jeffzheng1/tensorflow,kevin-coder/tensorflow-fork,freedomtan/tensorflow,guschmue/tensorflow,ibab/tensorflow,annarev/tensorflow,seaotterman/tensorflow,manipopopo/tensorflow,alivecor/tensorflow,rabipanda/tensorflow,taknevski/tensorflow-xsmm,arborh/tensorflow,sarvex/tensorflow,cancan101/tensorflow,alistairlow/tensorflow,av8ramit/tensorflow,anand-c-goog/tensorflow,MoamerEncsConcordiaCa/tensorflow,DavidNorman/tensorflow,Mistobaan/tensorflow,AndreasMadsen/tensorflow,adit-chandra/tensorflow,shreyasva/tensorflow,sjperkins/tensorflow,Mazecreator/tensorflow,vrv/tensorflow,jwlawson/tensorflow,memo/tensorflow,wangyum/tensorflow,mdrumond/tensorflow,jostep/tensorflow,adit-chandra/tensorflow,martinbede/second-sight,Bismarrck/tensorflow,kamcpp/tensorflow,yaroslavvb/tensorflow,alheinecke/tensorflow-xsmm,bowang/tensorflow,4Quant/tensorflow,horance-liu/tensorflow,jart/tensorflow,johndpope/tensorflow,eaplatanios/tensorflow,Mazecreator/tensorflow,sandeepdsouza93/TensorFlow-15712,hfp/tensorflow-xsmm,jhaux/tensorflow,yongtang/tensorflow,lukas-krecan/tensorflow,benoitsteiner/tensorflow-xsmm,tomasreimers/tensorflow-emscripten,Carmezim/tensorflow,hfp/tensorflow-xsmm,with-git/tensorflow,tillahoffmann/tensorflow,ychfan/tensorflow,aam-at/tensorflow,chris-chris/tensorflow,MoamerEncsConcordiaCa/tensorflow,zycdragonball/tensorflow,drpngx/tensorflow,XueqingLin/tensorflow,ville-k/tensorflow,kamcpp/tensorflow,markslwong/tensorflow,Mistobaan/tensorflow,xzturn/tensorflow,strint/tensorflow,handroissuazo/tensorflow,adamtiger/tensorflow,horance-liu/tensorflow,dyoung418/tensorflow,gojira/tensorflow,zasdfgbnm/tensorflow,gojira/tensorflow |
d456379d6c183b97b5fecae6f256fd6c931fcf04 | include/rapidcheck-catch.h | include/rapidcheck-catch.h | #pragma once
#include <rapidcheck.h>
#include <sstream>
namespace rc {
/// For use with `catch.hpp`. Use this function wherever you would use a
/// `SECTION` for convenient checking of properties.
///
/// @param description A description of the property.
/// @param testable The object that implements the property.
template <typename Testable>
void prop(const std::string &description, Testable &&testable) {
using namespace detail;
SECTION(description) {
const auto result = checkTestable(std::forward<Testable>(testable));
std::ostringstream ss;
printResultMessage(result, ss);
INFO(ss.str() << "\n");
if (!result.template is<SuccessResult>()) {
FAIL();
}
}
}
} // namespace rc
| #pragma once
#include <rapidcheck.h>
#include <sstream>
namespace rc {
/// For use with `catch.hpp`. Use this function wherever you would use a
/// `SECTION` for convenient checking of properties.
///
/// @param description A description of the property.
/// @param testable The object that implements the property.
template <typename Testable>
void prop(const std::string &description, Testable &&testable) {
using namespace detail;
SECTION(description) {
const auto result = checkTestable(std::forward<Testable>(testable));
if (result.template is<SuccessResult>()) {
const auto success = result.template get<SuccessResult>();
if (!success.distribution.empty()) {
std::cout << "- " << description << std::endl;
printResultMessage(result, std::cout);
std::cout << std::endl;
}
} else {
std::ostringstream ss;
printResultMessage(result, ss);
INFO(ss.str() << "\n");
FAIL();
}
}
}
} // namespace rc
| Add printing of distribution to catch.hpp integration | Add printing of distribution to catch.hpp integration
| C | bsd-2-clause | unapiedra/rapidfuzz,unapiedra/rapidfuzz,emil-e/rapidcheck,tm604/rapidcheck,emil-e/rapidcheck,whoshuu/rapidcheck,unapiedra/rapidfuzz,tm604/rapidcheck,whoshuu/rapidcheck,tm604/rapidcheck,emil-e/rapidcheck,whoshuu/rapidcheck |
6031c76c7967b748fa9f6fddf7d042bda3e2e5de | smbase/intstack.h | smbase/intstack.h | // intstack.h see license.txt for copyright and terms of use
// stack of ints
// quarl 2006-05-31 initial version based on sobjstack.h
#ifndef INTSTACK_H
#define INTSTACK_H
#include "intlist.h" // IntList
template <class T>
class IntStack {
private: // data
// will implement the stack as a list, with prepend and removeAt(0)
IntList<T> list;
public: // funcs
IntStack() : list() {}
~IntStack() {}
int count() const { return list.count(); }
bool isEmpty() const { return list.isEmpty(); }
bool isNotEmpty() const { return list.isNotEmpty(); }
T top() { return list.first(); }
T pop() { return list.removeAt(0); }
void delPop() { list.deleteAt(0); }
void push(T item) { list.prepend(item); }
void clear() { list.deleteAll(); }
bool contains(T const item) const { return list.contains((void*)item); }
};
#endif // INTSTACK_H
| // intstack.h see license.txt for copyright and terms of use
// stack of ints
// quarl 2006-05-31 initial version based on sobjstack.h
#ifndef INTSTACK_H
#define INTSTACK_H
#include "intlist.h" // IntList
template <class T>
class IntStack {
private: // data
// will implement the stack as a list, with prepend and removeAt(0)
IntList<T> list;
public: // funcs
IntStack() : list() {}
~IntStack() {}
int count() const { return list.count(); }
bool isEmpty() const { return list.isEmpty(); }
bool isNotEmpty() const { return list.isNotEmpty(); }
T top() { return list.first(); }
// peek at nth item (linear time)
T nth(int which) { return list.nth(which); }
T pop() { return list.removeAt(0); }
void delPop() { list.deleteAt(0); }
void push(T item) { list.prepend(item); }
void clear() { list.deleteAll(); }
bool contains(T const item) const { return list.contains((void*)item); }
};
#endif // INTSTACK_H
| Add IntStack::nth() for peeking at Nth item | Add IntStack::nth() for peeking at Nth item
| C | bsd-3-clause | angavrilov/olmar,angavrilov/olmar,angavrilov/olmar,angavrilov/olmar |
85854585eba837646ecd0977e65c95be89c53818 | firmlaunch.h | firmlaunch.h | #ifndef FIRMLAUNCH_H
#define FIRMLAUNCH_H
#include "types.h"
int firm_setup(u32* FIRM, void* N3DSKey1, void* N3DSKey2);
void firmlaunch(u32* FIRM);
int patch(u32* FIRM, u32* search_size, u8* pattern, u8* patch_data, u32 pattern_size, u32 patch_size);
#endif
| #ifndef FIRMLAUNCH_H
#define FIRMLAUNCH_H
#include "types.h"
int firm_setup(u32* FIRM, void* N3DSKey1, void* N3DSKey2);
void firmlaunch(u32* FIRM);
int patch(u32* FIRM, u32 search_size, u8* pattern, u8* patch_data, u32 pattern_size, u32 patch_size);
#endif
| Fix my stupid error :/ | Fix my stupid error :/
| C | mit | fox8091/libFirmlaunch,fox8091/libFirmlaunch |
fa7c9bc2318b195aa8218e51e8f1c4b1f52ac43e | src/math/p_acos.c | src/math/p_acos.c | #include <pal.h>
/**
*
* Computes the inverse cosine (arc cosine) of the input vector 'a'. Input
* values to acos must be in the range -1 to 1. The result values are in the
* range 0 to pi. The function does not check for illegal input values.
*
* @param a Pointer to input vector
*
* @param c Pointer to output vector
*
* @param n Size of 'a' and 'c' vector.
*
* @return None
*
*/
#include <math.h>
void p_acos_f32(const float *a, float *c, int n)
{
int i;
for (i = 0; i < n; i++) {
*(c + i) = acosf(*(a + i));
}
}
| #include <math.h>
#include <pal.h>
static const float pi_2 = (float) M_PI / 2.f;
/**
*
* Computes the inverse cosine (arc cosine) of the input vector 'a'. Input
* values to acos must be in the range -1 to 1. The result values are in the
* range 0 to pi. The function does not check for illegal input values.
*
* @param a Pointer to input vector
*
* @param c Pointer to output vector
*
* @param n Size of 'a' and 'c' vector.
*
* @return None
*
*/
void p_acos_f32(const float *a, float *c, int n)
{
int i;
float tmp;
/* acos x = pi/2 - asin x */
p_asin_f32(a, c, n);
for (i = 0; i < n; i++) {
tmp = pi_2 - c[i];
c[i] = tmp;
}
}
| Implement the inverse cosine function. | math:acos: Implement the inverse cosine function.
Signed-off-by: Mansour Moufid <[email protected]>
| C | apache-2.0 | debug-de-su-ka/pal,parallella/pal,eliteraspberries/pal,aolofsson/pal,aolofsson/pal,Adamszk/pal3,debug-de-su-ka/pal,eliteraspberries/pal,eliteraspberries/pal,parallella/pal,mateunho/pal,debug-de-su-ka/pal,mateunho/pal,mateunho/pal,debug-de-su-ka/pal,olajep/pal,8l/pal,Adamszk/pal3,8l/pal,parallella/pal,debug-de-su-ka/pal,8l/pal,eliteraspberries/pal,aolofsson/pal,parallella/pal,eliteraspberries/pal,olajep/pal,parallella/pal,mateunho/pal,olajep/pal,aolofsson/pal,8l/pal,olajep/pal,Adamszk/pal3,mateunho/pal,Adamszk/pal3 |
90da898d0f4e4b3e664a081be92141e61b28fc46 | You-DataStore/datastore.h | You-DataStore/datastore.h | #pragma once
#ifndef YOU_DATASTORE_DATASTORE_H_
#define YOU_DATASTORE_DATASTORE_H_
#include <stack>
#include <memory>
#include "task_typedefs.h"
#include "transaction.h"
namespace You {
namespace DataStore {
namespace UnitTests {}
class DataStore {
public:
Transaction && begin();
static DataStore& get();
// Modifying methods
void post(TaskId, SerializedTask&);
void put(TaskId, SerializedTask&);
void erase(TaskId);
std::vector<SerializedTask> getAllTask();
void notify();
private:
bool isServing = false;
std::shared_ptr<Transaction> activeTransaction;
std::stack<std::shared_ptr<Transaction> > transactionStack;
};
} // namespace DataStore
} // namespace You
#endif // YOU_DATASTORE_DATASTORE_H_
| #pragma once
#ifndef YOU_DATASTORE_DATASTORE_H_
#define YOU_DATASTORE_DATASTORE_H_
#include <stack>
#include <memory>
#include "task_typedefs.h"
#include "transaction.h"
namespace You {
namespace DataStore {
namespace UnitTests {}
class DataStore {
public:
Transaction && begin();
static DataStore& get();
// Modifying methods
void post(TaskId, const SerializedTask&);
void put(TaskId, const SerializedTask&);
void erase(TaskId);
std::vector<SerializedTask> getAllTask();
void notify();
private:
bool isServing = false;
std::shared_ptr<Transaction> activeTransaction;
std::stack<std::shared_ptr<Transaction> > transactionStack;
};
} // namespace DataStore
} // namespace You
#endif // YOU_DATASTORE_DATASTORE_H_
| Add const modifier to post and put method of DataStore | Add const modifier to post and put method of DataStore
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
75338467e66fd3c862a0a48363c3f4681f30180a | OCDSpec/OCDSpecDescriptionRunner.h | OCDSpec/OCDSpecDescriptionRunner.h | #import <Foundation/Foundation.h>
#import "OCDSpec/Protocols/DescriptionRunner.h"
#import "OCDSpec/OCDSpecDescription.h"
#import "OCDSpec/OCDSpecSharedResults.h"
#import "OCDSpec/AbstractDescriptionRunner.h"
@interface OCDSpecDescriptionRunner : NSObject
{
Class *classes;
int classCount;
id specProtocol;
id baseClass;
int successes;
int failures;
}
@property(nonatomic, assign) id specProtocol;
@property(nonatomic, assign) id baseClass;
@property(readonly) int successes;
@property(readonly) int failures;
-(void) runAllDescriptions;
@end
#define CONTEXT(classname) \
void descriptionOf##classname();\
@interface TestRunner##classname : AbstractDescriptionRunner \
@end\
@implementation TestRunner##classname\
+(int) getFailures \
{ \
return [[OCDSpecSharedResults sharedResults].failures intValue];\
} \
+(int)getSuccesses \
{ \
return [[OCDSpecSharedResults sharedResults].successes intValue];\
} \
+(void) run \
{ \
descriptionOf##classname(); \
} \
@end \
void descriptionOf##classname()
| #import <Foundation/Foundation.h>
#import "OCDSpec/Protocols/DescriptionRunner.h"
#import "OCDSpec/OCDSpecDescription.h"
#import "OCDSpec/OCDSpecSharedResults.h"
#import "OCDSpec/Abstract/AbstractDescriptionRunner.h"
@interface OCDSpecDescriptionRunner : NSObject
{
Class *classes;
int classCount;
id specProtocol;
id baseClass;
int successes;
int failures;
}
@property(nonatomic, assign) id specProtocol;
@property(nonatomic, assign) id baseClass;
@property(readonly) int successes;
@property(readonly) int failures;
-(void) runAllDescriptions;
@end
#define CONTEXT(classname) \
void descriptionOf##classname();\
@interface TestRunner##classname : AbstractDescriptionRunner \
@end\
@implementation TestRunner##classname\
+(int) getFailures \
{ \
return [[OCDSpecSharedResults sharedResults].failures intValue];\
} \
+(int)getSuccesses \
{ \
return [[OCDSpecSharedResults sharedResults].successes intValue];\
} \
+(void) run \
{ \
descriptionOf##classname(); \
} \
@end \
void descriptionOf##classname()
| Correct the project for the move | Correct the project for the move
| C | mit | paytonrules/OCDSpec,paytonrules/OCDSpec |
0da6fb4d36a340b36f6153c66bcd432982abf1dd | src/python/pylogger.h | src/python/pylogger.h | #ifndef PYLOGGER_H
#define PYLOGGER_H
#include "Python.h"
#include <string>
#include "cantera/base/logger.h"
namespace Cantera
{
/// Logger for Python.
/// @ingroup textlogs
class Py_Logger : public Logger
{
public:
Py_Logger() {
PyRun_SimpleString("import sys");
}
virtual ~Py_Logger() {}
virtual void write(const std::string& s) {
std::string ss = "sys.stdout.write(\"\"\"";
ss += s;
ss += "\"\"\")";
PyRun_SimpleString(ss.c_str());
PyRun_SimpleString("sys.stdout.flush()");
}
virtual void error(const std::string& msg) {
std::string err = "raise \""+msg+"\"";
PyRun_SimpleString((char*)err.c_str());
}
};
}
#endif
| #ifndef PYLOGGER_H
#define PYLOGGER_H
#include "Python.h"
#include <string>
#include "cantera/base/logger.h"
namespace Cantera
{
/// Logger for Python.
/// @ingroup textlogs
class Py_Logger : public Logger
{
public:
Py_Logger() {
PyRun_SimpleString("import sys");
}
virtual ~Py_Logger() {}
virtual void write(const std::string& s) {
std::string ss = "sys.stdout.write(\"\"\"";
ss += s;
ss += "\"\"\")";
PyRun_SimpleString(ss.c_str());
PyRun_SimpleString("sys.stdout.flush()");
}
virtual void error(const std::string& msg) {
std::string err = "raise Exception(\"\"\""+msg+"\"\"\")";
PyRun_SimpleString(err.c_str());
}
};
}
#endif
| Fix Py_Logger to raise instances of Exception instead of strings | Fix Py_Logger to raise instances of Exception instead of strings
Raising string exceptions was removed in Python 2.6
| C | bsd-3-clause | imitrichev/cantera,Heathckliff/cantera,Heathckliff/cantera,imitrichev/cantera,imitrichev/cantera,imitrichev/cantera,imitrichev/cantera,Heathckliff/cantera,imitrichev/cantera,Heathckliff/cantera,Heathckliff/cantera,Heathckliff/cantera |
54ec1c1815f4ca6306eceac7b3297aa970962ec0 | src/enums.h | src/enums.h | #ifndef ENUMS_H
#define ENUMS_H
#include <QtCore>
enum MidiDataRole {
MidiValueType = Qt::UserRole + 1,
MidiValueMin,
MidiValueMax
};
enum MidiType {
DefaultType,
NoteType,
ToggleType,
StringType,
ChannelType
};
#endif
| #ifndef ENUMS_H
#define ENUMS_H
#include <QtCore>
enum MidiDataRole {
MidiValueType = Qt::UserRole + 1,
MidiValueMin,
MidiValueMax,
MidiValues
};
enum MidiType {
DefaultType,
NoteType,
ToggleType,
StringType,
ChannelType
};
#endif
| Add custom data role MidiValues | Add custom data role MidiValues
| C | mit | charlesfleche/lpd8-editor,charlesfleche/lpd8-editor |
51fe30c43891d1d903a5408e95000ab0d499e25f | debug-spx.h | debug-spx.h | /*
* Header
Wicci Project C Code Header
Utility Code for Spx Debugging and Initialization Management
** Copyright
Copyright (c) 2005-2019 J. Greg Davidson.
You may use this software under the terms of the
GNU AFFERO GENERAL PUBLIC LICENSE
as specified in the file LICENSE.md included with this distribution.
All other use requires my permission in writing.
* Dependencies:
PostgreSQL unless you define macro C_DEBUG_NO_PG
*/
#ifndef C_DEBUG_SPX_H
#define C_DEBUG_SPX_H
#include "debug-log.h"
/* Define MODULE_TAG if you want a module-specific instance
of this debugging code.
*/
#ifndef MODULE_TAG
#define MODULE_TAG(x) x
#endif
int MODULE_TAG(Initialized_) = 0; /*
used by those packages which care;
see below for the functions on this variable
*/
FUNCTION_DEFINE(MODULE_TAG(debug_level)) { // () -> integer
PG_RETURN_INT32( DebugLevel() );
}
FUNCTION_DEFINE(MODULE_TAG(debug_set)) { // (integer) -> integer
PG_RETURN_INT32( DebugSetLevel( PG_GETARG_INT32(0) ) );
}
FUNCTION_DEFINE(MODULE_TAG(debug)) { // () -> boolean
PG_RETURN_BOOL( DebugLevel() > 0 );
}
FUNCTION_DEFINE(MODULE_TAG(debug_on)) { // () -> integer
PG_RETURN_INT32( DebugSetOn( ) );
}
FUNCTION_DEFINE(MODULE_TAG(debug_off)) { // () -> integer
PG_RETURN_INT32( DebugSetOff( ) );
}
static inline int
Initialized(void) { // is this package intialized?
return MODULE_TAG(Initialized_);
}
static inline void
Initialize(void) { // record this package is initialized
MODULE_TAG(Initialized_) = 1;
DEBUG_OUT( "Module Initialized" );
}
#endif
| Split off from debug.h because of debug-log.h cross dependencies | Split off from debug.h because of debug-log.h cross dependencies
| C | agpl-3.0 | GregDavidson/wicci-core-S1_refs,GregDavidson/wicci-core-S1_refs |
|
b6a04637c81e41c348e985c78f3e9f3009a19826 | hello_mpi.c | hello_mpi.c | #include <stdio.h>
#include <mpi.h>
#include "hello_mpi.h"
int hello_mpi(void) {
int numprocs, rank, namelen;
char processor_name[MPI_MAX_PROCESSOR_NAME];
MPI_Init(NULL, NULL);
MPI_Comm_size(MPI_COMM_WORLD, &numprocs);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Get_processor_name(processor_name, &namelen);
// printf("Process %d on %s out of %d\n", rank, processor_name, numprocs);
if (rank == 0) {
printf("I'm master\n");
int slaves_rank = -1;
int i;
struct MPI_Status status;
for (i = 1; i < numprocs; i++) {
MPI_Recv(&slaves_rank, 1, MPI_INT, i,10111, MPI_COMM_WORLD, &status);
printf("Master got reply from %d and status is: %d\n", slaves_rank,
status.MPI_ERROR);
}
}
else {
printf("Only a slave\n");
MPI_Send((void*)&rank, 1, MPI_INT, 0, 10111, MPI_COMM_WORLD);
}
MPI_Finalize();
return 0;
}
| #include <stdio.h>
#include <mpi.h>
#include <unistd.h>
#include "hello_mpi.h"
int hello_mpi(void) {
int numprocs, rank, namelen;
char processor_name[MPI_MAX_PROCESSOR_NAME];
MPI_Init(NULL, NULL);
MPI_Comm_size(MPI_COMM_WORLD, &numprocs);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Get_processor_name(processor_name, &namelen);
// printf("Process %d on %s out of %d\n", rank, processor_name, numprocs);
if (rank == 0) {
printf("I'm master\n");
int slaves_rank = -1;
int i;
MPI_Status status;
MPI_Request request;
for (i = 1; i < numprocs; i++) {
MPI_Irecv(&slaves_rank, 1, MPI_INT, i, 10111, MPI_COMM_WORLD, &request);
MPI_Wait(&request, &status);
printf("Master got reply from %d and request is: %d\n", slaves_rank,
request);
}
}
else {
MPI_Request request;
MPI_Isend((void*)&rank, 1, MPI_INT, 0, 10111, MPI_COMM_WORLD, &request);
printf("Only a slave - with request %d\n", request);
}
MPI_Finalize();
return 0;
}
| Convert from MPI_Send/Recv, to MPI_ISend/IRecv | Convert from MPI_Send/Recv, to MPI_ISend/IRecv
| C | mit | Convolution-filter/convolution-filter-MPI |
fe85b79dbc358dc3ecddf77f33621798541f358f | src/forces/label_state.h | src/forces/label_state.h | #ifndef SRC_FORCES_LABEL_STATE_H_
#define SRC_FORCES_LABEL_STATE_H_
#include <Eigen/Core>
#include <string>
#include <map>
namespace Forces
{
class Force;
/**
* \brief Encapsulates state for a label necessary for the simulation
*
* This consists of label and anchor positions in 2D and 3D, as well as
* the label's size, text and its id.
*
* It also stores the last force values for debugging purposes.
*/
class LabelState
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
LabelState(int id, std::string text, Eigen::Vector3f anchorPosition,
Eigen::Vector2f size);
const int id;
Eigen::Vector3f anchorPosition;
Eigen::Vector3f labelPosition;
Eigen::Vector2f size;
Eigen::Vector2f anchorPosition2D;
Eigen::Vector2f labelPosition2D;
float labelPositionDepth;
const std::string text;
std::map<Force *, Eigen::Vector2f> forces;
};
} // namespace Forces
#endif // SRC_FORCES_LABEL_STATE_H_
| #ifndef SRC_FORCES_LABEL_STATE_H_
#define SRC_FORCES_LABEL_STATE_H_
#include <Eigen/Core>
#include <string>
#include <map>
namespace Forces
{
class Force;
/**
* \brief Encapsulates state for a label necessary for the simulation
*
* This consists of label and anchor positions in 2D and 3D, as well as
* the label's size, text and its id.
*
* It also stores the last force values for debugging purposes.
*/
class LabelState
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
LabelState(int id, std::string text, Eigen::Vector3f anchorPosition,
Eigen::Vector2f size);
int id;
Eigen::Vector3f anchorPosition;
Eigen::Vector3f labelPosition;
Eigen::Vector2f size;
Eigen::Vector2f anchorPosition2D;
Eigen::Vector2f labelPosition2D;
float labelPositionDepth;
std::string text;
std::map<Force *, Eigen::Vector2f> forces;
};
} // namespace Forces
#endif // SRC_FORCES_LABEL_STATE_H_
| Remove const modifier from LabelState members. | Remove const modifier from LabelState members.
This enables move and move assignment, which is necessary for
containers.
| C | mit | Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller |
68bc833ceda612ee8fb5e673d08c8de41cff4c90 | src/ufrn_bti_imd0012_2017_1_t3/matrix_fun.c | src/ufrn_bti_imd0012_2017_1_t3/matrix_fun.c | /**
Having fun with multidimensinal arrays.
*/
#include <stdio.h>
/**
TODO: Dada uma matriz inteira Maxb, imprima o número de linhas e colunas
nulas (apenas com valores zerados, matematicamente falando)
da matriz.
*/
#define ROWS_QTT 4
#define COLS_QTT 5
int main(){
/*
Dada uma matriz Amxm, imprima quantas vezes se repete cada valor.
Should be a function like writeRepeatedValuesQtts(args).
*/
int matrix[ROWS_QTT][COLS_QTT] = {
{2, 3, 18, 9, 8},
{1, 15, 2, 9, 6},
{3, 5, 100, 99, 77},
{12, 10, 3, 7, 18}
};
int i, j, k;
char hasFoundRepeteadValue; /* it's a flag! */
int repetitions[ROWS_QTT * COLS_QTT][2]; /* r[0]: repeated number, r[1]: its repeated times */
int repetitionsSize = 0; /* if C doesnt have dinamic sizes, I'll create my own */
for (i = 0; i < ROWS_QTT; i++){
for (j = 0; j < COLS_QTT; j++){
hasFoundRepeteadValue = 0;
/* has this value been stored previously?... */
for (k = 0; k < repetitionsSize; k++){
if (repetitions[k][0] == matrix[i][j]){
/* ... yes! raise our flag and increase the repeated times quantity for this founded number */
hasFoundRepeteadValue = 1;
repetitions[k][1]++;
break;
}
}
if (!hasFoundRepeteadValue){
/* ... no! so it's a new value, store it at a new position and increase the position quantity */
repetitions[repetitionsSize][0] = matrix[i][j];
repetitions[repetitionsSize][1] = 1;
repetitionsSize++;
}
}
}
for(i = 0; i < repetitionsSize; i++){
if (repetitions[i][1] > 1)
printf("%d se repetiu %d vezes.\n", repetitions[i][0], repetitions[i][1]);
}
return 0;
} | Add alg to find repetead values in a matrix | Add alg to find repetead values in a matrix
| C | unknown | Mazuh/MISC-Algs,Mazuh/MISC-Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/MISC-Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/MISC-Algs |
|
8532fe7dbbe4425a76bdd945a342714624f8673c | webkit/glue/webkit_constants.h | webkit/glue/webkit_constants.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
namespace webkit_glue {
// Chromium sets the minimum interval timeout to 4ms, overriding the
// default of 10ms. We'd like to go lower, however there are poorly
// coded websites out there which do create CPU-spinning loops. Using
// 4ms prevents the CPU from spinning too busily and provides a balance
// between CPU spinning and the smallest possible interval timer.
const double kForegroundTabTimerInterval = 0.004;
// Provides control over the minimum timer interval for background tabs.
const double kBackgroundTabTimerInterval = 1.0;
} // namespace webkit_glue
#endif // WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
| // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
namespace webkit_glue {
// Chromium sets the minimum interval timeout to 4ms, overriding the
// default of 10ms. We'd like to go lower, however there are poorly
// coded websites out there which do create CPU-spinning loops. Using
// 4ms prevents the CPU from spinning too busily and provides a balance
// between CPU spinning and the smallest possible interval timer.
const double kForegroundTabTimerInterval = 0.004;
// Provides control over the minimum timer interval for background tabs.
const double kBackgroundTabTimerInterval = 0.004;
} // namespace webkit_glue
#endif // WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
| Revert 75430 because it's causing failures in dom_checker_tests. : Increase the minimum interval for timers on background tabs to reduce their CPU consumption. | Revert 75430 because it's causing failures in dom_checker_tests.
: Increase the minimum interval for timers on background tabs to reduce
their CPU consumption.
The new interval is 1000 ms, or once per second. We can easily adjust
this value up or down, but this seems like a reasonable value to judge
the compatibility impact of this change.
BUG=66078
TEST=none (tested manually with minimal test case)
Review URL: http://codereview.chromium.org/6546021
[email protected]
Review URL: http://codereview.chromium.org/6538073
git-svn-id: http://src.chromium.org/svn/trunk/src@75490 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: dbdcd34d8dfea30fcfcbb176db89e2a14f88eabc | C | bsd-3-clause | meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser |
784e657183e783a2db4c42e18d1e2224e408b052 | src/botansqlite3/botansqlite3.c | src/botansqlite3/botansqlite3.c | /*
* (C) 2016 Daniel Seither (Kullo GmbH)
*
* Distributed under the terms of the Botan license
*/
#define SQLITE_HAS_CODEC 1
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wcast-align"
#pragma clang diagnostic ignored "-Wcast-qual"
#pragma clang diagnostic ignored "-Wconversion"
#pragma clang diagnostic ignored "-Wdisabled-macro-expansion"
#pragma clang diagnostic ignored "-Wdouble-promotion"
#pragma clang diagnostic ignored "-Wfloat-equal"
#pragma clang diagnostic ignored "-Wmissing-noreturn"
#pragma clang diagnostic ignored "-Wmissing-prototypes"
#pragma clang diagnostic ignored "-Wmissing-variable-declarations"
#pragma clang diagnostic ignored "-Wparentheses-equality"
#pragma clang diagnostic ignored "-Wreserved-id-macro"
#pragma clang diagnostic ignored "-Wsign-compare"
#pragma clang diagnostic ignored "-Wsign-conversion"
#pragma clang diagnostic ignored "-Wundef"
#pragma clang diagnostic ignored "-Wunreachable-code"
#pragma clang diagnostic ignored "-Wunreachable-code-break"
#pragma clang diagnostic ignored "-Wunused-macros"
#pragma clang diagnostic ignored "-Wunused-function"
#pragma clang diagnostic ignored "-Wunused-value"
#include "../sqlite3.c"
#pragma clang diagnostic pop
#include "codecext.c"
| /*
* (C) 2016 Daniel Seither (Kullo GmbH)
*
* Distributed under the terms of the Botan license
*/
#define SQLITE_HAS_CODEC 1
#if defined __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wcast-align"
#pragma clang diagnostic ignored "-Wcast-qual"
#pragma clang diagnostic ignored "-Wconversion"
#pragma clang diagnostic ignored "-Wdisabled-macro-expansion"
#pragma clang diagnostic ignored "-Wdouble-promotion"
#pragma clang diagnostic ignored "-Wfloat-equal"
#pragma clang diagnostic ignored "-Wmissing-noreturn"
#pragma clang diagnostic ignored "-Wmissing-prototypes"
#pragma clang diagnostic ignored "-Wmissing-variable-declarations"
#pragma clang diagnostic ignored "-Wparentheses-equality"
#pragma clang diagnostic ignored "-Wreserved-id-macro"
#pragma clang diagnostic ignored "-Wsign-compare"
#pragma clang diagnostic ignored "-Wsign-conversion"
#pragma clang diagnostic ignored "-Wundef"
#pragma clang diagnostic ignored "-Wunreachable-code"
#pragma clang diagnostic ignored "-Wunreachable-code-break"
#pragma clang diagnostic ignored "-Wunused-macros"
#pragma clang diagnostic ignored "-Wunused-function"
#pragma clang diagnostic ignored "-Wunused-value"
#endif
#include "../sqlite3.c"
#if defined __clang__
#pragma clang diagnostic pop
#endif
#include "codecext.c"
| Fix unknown pragma warnings on MSVC | Fix unknown pragma warnings on MSVC
| C | bsd-3-clause | kullo/smartsqlite,kullo/smartsqlite,kullo/smartsqlite |
c62a4efe9492d867e281c2c680e0b8c185d9669b | eg/inc/LinkDef.h | eg/inc/LinkDef.h | /* @(#)root/eg:$Name: $:$Id: LinkDef.h,v 1.2 2000/09/06 15:15:18 brun Exp $ */
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class TParticle-;
#pragma link C++ class TAttParticle;
#pragma link C++ class TPrimary;
#pragma link C++ class TGenerator-;
#pragma link C++ class TDatabasePDG+;
#pragma link C++ class TParticlePDG+;
#endif
| /* @(#)root/eg:$Name: $:$Id: LinkDef.h,v 1.3 2000/09/08 16:42:12 brun Exp $ */
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class TParticle-;
#pragma link C++ class TAttParticle+;
#pragma link C++ class TPrimary+;
#pragma link C++ class TGenerator+;
#pragma link C++ class TDatabasePDG+;
#pragma link C++ class TParticlePDG+;
#endif
| Use option + for TAttParticle and TPrimary | Use option + for TAttParticle and TPrimary
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@932 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | nilqed/root,agarciamontoro/root,jrtomps/root,vukasinmilosevic/root,abhinavmoudgil95/root,zzxuanyuan/root,buuck/root,perovic/root,Dr15Jones/root,sawenzel/root,olifre/root,ffurano/root5,sawenzel/root,0x0all/ROOT,simonpf/root,agarciamontoro/root,sbinet/cxx-root,esakellari/root,omazapa/root,tc3t/qoot,mhuwiler/rootauto,ffurano/root5,georgtroska/root,zzxuanyuan/root,zzxuanyuan/root-compressor-dummy,omazapa/root-old,krafczyk/root,sawenzel/root,veprbl/root,mattkretz/root,esakellari/root,bbockelm/root,bbockelm/root,ffurano/root5,zzxuanyuan/root-compressor-dummy,vukasinmilosevic/root,strykejern/TTreeReader,gbitzes/root,buuck/root,satyarth934/root,georgtroska/root,zzxuanyuan/root,perovic/root,satyarth934/root,jrtomps/root,evgeny-boger/root,mkret2/root,mattkretz/root,zzxuanyuan/root-compressor-dummy,bbockelm/root,olifre/root,karies/root,evgeny-boger/root,Y--/root,omazapa/root-old,arch1tect0r/root,mattkretz/root,olifre/root,bbockelm/root,sbinet/cxx-root,zzxuanyuan/root-compressor-dummy,mhuwiler/rootauto,davidlt/root,kirbyherm/root-r-tools,gbitzes/root,esakellari/root,dfunke/root,Duraznos/root,abhinavmoudgil95/root,thomaskeck/root,gganis/root,mattkretz/root,bbockelm/root,esakellari/my_root_for_test,simonpf/root,olifre/root,abhinavmoudgil95/root,BerserkerTroll/root,tc3t/qoot,evgeny-boger/root,evgeny-boger/root,bbockelm/root,karies/root,veprbl/root,perovic/root,veprbl/root,bbockelm/root,beniz/root,beniz/root,dfunke/root,mkret2/root,zzxuanyuan/root,mkret2/root,beniz/root,karies/root,kirbyherm/root-r-tools,root-mirror/root,buuck/root,esakellari/my_root_for_test,nilqed/root,georgtroska/root,gganis/root,Duraznos/root,davidlt/root,simonpf/root,nilqed/root,dfunke/root,mhuwiler/rootauto,dfunke/root,mattkretz/root,Dr15Jones/root,vukasinmilosevic/root,gbitzes/root,bbockelm/root,esakellari/my_root_for_test,sirinath/root,omazapa/root,mkret2/root,perovic/root,esakellari/my_root_for_test,jrtomps/root,pspe/root,omazapa/root-old,gganis/root,zzxuanyuan/root-compressor-dummy,mkret2/root,veprbl/root,simonpf/root,dfunke/root,davidlt/root,thomaskeck/root,Y--/root,esakellari/my_root_for_test,tc3t/qoot,thomaskeck/root,lgiommi/root,BerserkerTroll/root,smarinac/root,Y--/root,CristinaCristescu/root,sbinet/cxx-root,omazapa/root,mkret2/root,esakellari/my_root_for_test,evgeny-boger/root,mhuwiler/rootauto,satyarth934/root,pspe/root,abhinavmoudgil95/root,simonpf/root,alexschlueter/cern-root,Y--/root,omazapa/root-old,georgtroska/root,satyarth934/root,alexschlueter/cern-root,CristinaCristescu/root,krafczyk/root,omazapa/root,sirinath/root,sawenzel/root,davidlt/root,abhinavmoudgil95/root,omazapa/root-old,omazapa/root,vukasinmilosevic/root,CristinaCristescu/root,simonpf/root,cxx-hep/root-cern,Dr15Jones/root,jrtomps/root,gbitzes/root,smarinac/root,agarciamontoro/root,root-mirror/root,Dr15Jones/root,cxx-hep/root-cern,lgiommi/root,thomaskeck/root,vukasinmilosevic/root,sirinath/root,mattkretz/root,vukasinmilosevic/root,nilqed/root,nilqed/root,mhuwiler/rootauto,veprbl/root,beniz/root,CristinaCristescu/root,beniz/root,arch1tect0r/root,simonpf/root,olifre/root,buuck/root,agarciamontoro/root,omazapa/root-old,zzxuanyuan/root-compressor-dummy,krafczyk/root,0x0all/ROOT,krafczyk/root,sawenzel/root,smarinac/root,jrtomps/root,jrtomps/root,arch1tect0r/root,mhuwiler/rootauto,veprbl/root,davidlt/root,arch1tect0r/root,olifre/root,karies/root,zzxuanyuan/root,mattkretz/root,0x0all/ROOT,Duraznos/root,mkret2/root,omazapa/root-old,alexschlueter/cern-root,perovic/root,gbitzes/root,lgiommi/root,gbitzes/root,krafczyk/root,perovic/root,BerserkerTroll/root,satyarth934/root,arch1tect0r/root,root-mirror/root,gganis/root,sirinath/root,root-mirror/root,vukasinmilosevic/root,zzxuanyuan/root-compressor-dummy,evgeny-boger/root,davidlt/root,pspe/root,BerserkerTroll/root,Y--/root,vukasinmilosevic/root,veprbl/root,cxx-hep/root-cern,abhinavmoudgil95/root,beniz/root,tc3t/qoot,dfunke/root,zzxuanyuan/root,omazapa/root-old,omazapa/root-old,abhinavmoudgil95/root,nilqed/root,Duraznos/root,mkret2/root,BerserkerTroll/root,krafczyk/root,Duraznos/root,esakellari/my_root_for_test,mkret2/root,strykejern/TTreeReader,evgeny-boger/root,lgiommi/root,root-mirror/root,arch1tect0r/root,mattkretz/root,gganis/root,kirbyherm/root-r-tools,CristinaCristescu/root,gbitzes/root,arch1tect0r/root,beniz/root,ffurano/root5,pspe/root,beniz/root,gbitzes/root,smarinac/root,kirbyherm/root-r-tools,lgiommi/root,Dr15Jones/root,Duraznos/root,gganis/root,agarciamontoro/root,esakellari/my_root_for_test,Duraznos/root,simonpf/root,zzxuanyuan/root,tc3t/qoot,sawenzel/root,davidlt/root,smarinac/root,davidlt/root,nilqed/root,buuck/root,lgiommi/root,sawenzel/root,abhinavmoudgil95/root,pspe/root,gganis/root,karies/root,olifre/root,veprbl/root,Duraznos/root,tc3t/qoot,zzxuanyuan/root-compressor-dummy,sawenzel/root,tc3t/qoot,CristinaCristescu/root,esakellari/root,dfunke/root,arch1tect0r/root,esakellari/my_root_for_test,tc3t/qoot,buuck/root,abhinavmoudgil95/root,bbockelm/root,karies/root,sirinath/root,omazapa/root-old,sirinath/root,zzxuanyuan/root,sbinet/cxx-root,gganis/root,root-mirror/root,strykejern/TTreeReader,krafczyk/root,arch1tect0r/root,perovic/root,simonpf/root,satyarth934/root,thomaskeck/root,kirbyherm/root-r-tools,pspe/root,lgiommi/root,cxx-hep/root-cern,karies/root,dfunke/root,alexschlueter/cern-root,gganis/root,olifre/root,beniz/root,lgiommi/root,zzxuanyuan/root,sbinet/cxx-root,cxx-hep/root-cern,cxx-hep/root-cern,esakellari/root,buuck/root,mattkretz/root,thomaskeck/root,agarciamontoro/root,lgiommi/root,mhuwiler/rootauto,strykejern/TTreeReader,buuck/root,veprbl/root,mhuwiler/rootauto,mkret2/root,strykejern/TTreeReader,zzxuanyuan/root,georgtroska/root,0x0all/ROOT,georgtroska/root,Duraznos/root,vukasinmilosevic/root,Dr15Jones/root,0x0all/ROOT,satyarth934/root,esakellari/root,pspe/root,vukasinmilosevic/root,buuck/root,smarinac/root,CristinaCristescu/root,jrtomps/root,sbinet/cxx-root,0x0all/ROOT,satyarth934/root,perovic/root,davidlt/root,satyarth934/root,lgiommi/root,abhinavmoudgil95/root,bbockelm/root,mattkretz/root,tc3t/qoot,zzxuanyuan/root-compressor-dummy,cxx-hep/root-cern,esakellari/root,alexschlueter/cern-root,karies/root,arch1tect0r/root,evgeny-boger/root,beniz/root,dfunke/root,alexschlueter/cern-root,Y--/root,pspe/root,ffurano/root5,agarciamontoro/root,omazapa/root,omazapa/root,jrtomps/root,Y--/root,agarciamontoro/root,dfunke/root,thomaskeck/root,mkret2/root,pspe/root,olifre/root,BerserkerTroll/root,nilqed/root,smarinac/root,zzxuanyuan/root-compressor-dummy,cxx-hep/root-cern,CristinaCristescu/root,Y--/root,agarciamontoro/root,strykejern/TTreeReader,jrtomps/root,sbinet/cxx-root,perovic/root,root-mirror/root,lgiommi/root,jrtomps/root,strykejern/TTreeReader,zzxuanyuan/root-compressor-dummy,Y--/root,gbitzes/root,0x0all/ROOT,zzxuanyuan/root,sawenzel/root,mhuwiler/rootauto,CristinaCristescu/root,smarinac/root,0x0all/ROOT,mhuwiler/rootauto,ffurano/root5,smarinac/root,omazapa/root,sirinath/root,CristinaCristescu/root,sbinet/cxx-root,root-mirror/root,abhinavmoudgil95/root,evgeny-boger/root,krafczyk/root,evgeny-boger/root,root-mirror/root,mhuwiler/rootauto,smarinac/root,sawenzel/root,Dr15Jones/root,sirinath/root,tc3t/qoot,gganis/root,georgtroska/root,georgtroska/root,satyarth934/root,olifre/root,zzxuanyuan/root,gganis/root,mattkretz/root,sirinath/root,sbinet/cxx-root,perovic/root,sirinath/root,veprbl/root,thomaskeck/root,root-mirror/root,BerserkerTroll/root,gbitzes/root,vukasinmilosevic/root,sbinet/cxx-root,sbinet/cxx-root,nilqed/root,evgeny-boger/root,omazapa/root,esakellari/root,satyarth934/root,Y--/root,krafczyk/root,ffurano/root5,Duraznos/root,beniz/root,karies/root,Duraznos/root,root-mirror/root,omazapa/root-old,BerserkerTroll/root,esakellari/root,dfunke/root,omazapa/root,CristinaCristescu/root,perovic/root,karies/root,nilqed/root,esakellari/root,buuck/root,sirinath/root,nilqed/root,kirbyherm/root-r-tools,kirbyherm/root-r-tools,sawenzel/root,georgtroska/root,agarciamontoro/root,arch1tect0r/root,krafczyk/root,esakellari/my_root_for_test,esakellari/root,davidlt/root,BerserkerTroll/root,georgtroska/root,Y--/root,gbitzes/root,pspe/root,alexschlueter/cern-root,davidlt/root,thomaskeck/root,jrtomps/root,olifre/root,thomaskeck/root,bbockelm/root,krafczyk/root,veprbl/root,BerserkerTroll/root,pspe/root,georgtroska/root,karies/root,simonpf/root,omazapa/root,0x0all/ROOT,buuck/root,agarciamontoro/root,simonpf/root,BerserkerTroll/root |
62f0dc07ed56e285e349a244ab402e20092b8eb0 | frtstream/src/vespa/frtstream/frtserverstream.h | frtstream/src/vespa/frtstream/frtserverstream.h | // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/frtstream/frtstream.h>
namespace frtstream {
class FrtServerStream : public FrtStream {
FRT_RPCRequest* request;
uint32_t _nextOutValue;
FRT_Values& in() {
return *request->GetReturn();
}
FRT_Value& nextOut() {
return request->GetParams()->GetValue(_nextOutValue++);
}
public:
FrtServerStream(FRT_RPCRequest* req) :
request(req),
_nextOutValue(0) {}
using FrtStream::operator<<;
using FrtStream::operator>>;
};
} //end namespace frtstream
| // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/frtstream/frtstream.h>
namespace frtstream {
class FrtServerStream : public FrtStream {
FRT_RPCRequest* request;
uint32_t _nextOutValue;
FRT_Values& in() override {
return *request->GetReturn();
}
FRT_Value& nextOut() override {
return request->GetParams()->GetValue(_nextOutValue++);
}
public:
FrtServerStream(FRT_RPCRequest* req) :
request(req),
_nextOutValue(0) {}
using FrtStream::operator<<;
using FrtStream::operator>>;
};
} //end namespace frtstream
| Fix warnings hidden earlier due to including application headers as system includes | Fix warnings hidden earlier due to including application headers as system includes
| C | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
f72fde5522035f7455d14f33fe417a500f66df4f | tests/regression/27-inv_invariants/16-sedgewick.c | tests/regression/27-inv_invariants/16-sedgewick.c | #include <stddef.h>
#include <assert.h>
struct node {
struct node *left;
struct node *right;
int key;
};
// https://old.reddit.com/r/programminghorror/comments/jgrpcu/on_sedgewicks_original_presentation_for_llrb_trees/
struct node* min(struct node *root) {
struct node *x = root;
while (x != NULL)
x = x->left;
if (x == NULL) // WARN (dead branch)
return NULL;
else
return x;
}
int main() {
struct node *root;
struct node *m = min(root);
assert(m == NULL);
return 0;
}
| Add Sedgewick min NULL fail as regression test | Add Sedgewick min NULL fail as regression test
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
|
9d4102d0b9373d0c9d9931e77c07fb85285fbe2a | tests/regression/29-svcomp/22-atomic_priv_sound.c | tests/regression/29-svcomp/22-atomic_priv_sound.c | // PARAM: --enable ana.sv-comp.functions
#include <pthread.h>
#include <assert.h>
extern void __VERIFIER_atomic_begin();
extern void __VERIFIER_atomic_end();
int myglobal = 5;
void *t_fun(void *arg) {
__VERIFIER_atomic_begin();
assert(myglobal == 5); // TODO
myglobal++;
assert(myglobal == 6); // TODO
__VERIFIER_atomic_end();
return NULL;
}
int main(void) {
pthread_t id;
pthread_create(&id, NULL, t_fun, NULL);
assert(myglobal == 5); // UNKNOWN!
__VERIFIER_atomic_begin();
assert(myglobal == 5); // UNKNOWN!
__VERIFIER_atomic_end();
pthread_join (id, NULL);
return 0;
}
| Add regression test for SV-COMP atomics soundness | Add regression test for SV-COMP atomics soundness
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
|
ab4d30fe039870d8912855a3550bf4b52fb262f2 | srtp.h | srtp.h | #ifndef SRTP_H
#define SRTP_H
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "srtp2/srtp.h"
typedef struct rtp_packet {
void *data;
int len;
} rtp_packet;
srtp_t *srtp_create_session(void *client_write_key, void *server_write_key, char *profile);
rtp_packet *srtp_decrypt_packet(srtp_t * sess, void *data, int len);
#endif
| #ifndef SRTP_H
#define SRTP_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "srtp2/srtp.h"
typedef struct rtp_packet {
void *data;
int len;
} rtp_packet;
srtp_t *srtp_create_session(void *client_write_key, void *server_write_key, char *profile);
rtp_packet *srtp_decrypt_packet(srtp_t *sess, void *data, int len);
#endif
| Add <stdlib.h> to GStreamer code | Add <stdlib.h> to GStreamer code
Run clang-format on DTLS+SRTP
| C | mit | pion/srtp |
a1aadd55fb43e31407aecc4ebaf0258130a98238 | include/asm-sparc64/kdebug.h | include/asm-sparc64/kdebug.h | #ifndef _SPARC64_KDEBUG_H
#define _SPARC64_KDEBUG_H
/* Nearly identical to x86_64/i386 code. */
#include <linux/notifier.h>
struct pt_regs;
/*
* These are only here because kprobes.c wants them to implement a
* blatant layering violation. Will hopefully go away soon once all
* architectures are updated.
*/
static inline int register_page_fault_notifier(struct notifier_block *nb)
{
return 0;
}
static inline int unregister_page_fault_notifier(struct notifier_block *nb)
{
return 0;
}
extern void bad_trap(struct pt_regs *, long);
/* Grossly misnamed. */
enum die_val {
DIE_OOPS = 1,
DIE_DEBUG, /* ta 0x70 */
DIE_DEBUG_2, /* ta 0x71 */
DIE_DIE,
DIE_TRAP,
DIE_TRAP_TL1,
DIE_CALL,
DIE_PAGE_FAULT,
};
#endif
| #ifndef _SPARC64_KDEBUG_H
#define _SPARC64_KDEBUG_H
/* Nearly identical to x86_64/i386 code. */
#include <linux/notifier.h>
struct pt_regs;
/*
* These are only here because kprobes.c wants them to implement a
* blatant layering violation. Will hopefully go away soon once all
* architectures are updated.
*/
static inline int register_page_fault_notifier(struct notifier_block *nb)
{
return 0;
}
static inline int unregister_page_fault_notifier(struct notifier_block *nb)
{
return 0;
}
extern void bad_trap(struct pt_regs *, long);
/* Grossly misnamed. */
enum die_val {
DIE_OOPS = 1,
DIE_DEBUG, /* ta 0x70 */
DIE_DEBUG_2, /* ta 0x71 */
DIE_DIE,
DIE_TRAP,
DIE_TRAP_TL1,
DIE_CALL,
};
#endif
| Kill unused DIE_PAGE_FAULT enum value. | [SPARC64]: Kill unused DIE_PAGE_FAULT enum value.
sparc64 got rid of the pagefault notifiers, so the enum value for them
can go away aswell.
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
| C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas |
de4ecf75c925661e8543a95d9a98c76d1382b5b1 | examples/hello.c | examples/hello.c | #define ZF_LOG_LEVEL ZF_LOG_INFO
#define ZF_LOG_TAG "MAIN"
#include <zf_log.h>
int main(int argc, char *argv[])
{
zf_log_set_tag_prefix("hello");
ZF_LOGI("You will see the number of arguments: %i", argc);
ZF_LOGD("You will NOT see the first argument: %s", *argv);
zf_log_set_output_level(ZF_LOG_WARN);
ZF_LOGW("You will see this WARNING message");
ZF_LOGI("You will NOT see this INFO message");
return 0;
}
| #define ZF_LOG_LEVEL ZF_LOG_INFO
#define ZF_LOG_TAG "MAIN"
#include <zf_log.h>
int main(int argc, char *argv[])
{
zf_log_set_tag_prefix("hello");
ZF_LOGI("You will see the number of arguments: %i", argc);
ZF_LOGD("You will NOT see the first argument: %s", *argv);
zf_log_set_output_level(ZF_LOG_WARN);
ZF_LOGW("You will see this WARNING message");
ZF_LOGI("You will NOT see this INFO message");
const char data[] =
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. "
"Aliquam pharetra orci id velit porttitor tempus.";
ZF_LOGW_MEM(data, sizeof(data), "Lorem ipsum at %p:", data);
return 0;
}
| Add example for memory logging support | Add example for memory logging support
| C | mit | wonder-mice/zf_log,wonder-mice/zf_log,wonder-mice/zf_log |
a9865d3e8694bfe5f94e69fd87d6d90798578936 | chapter-1/1-2-backslash-c.c | chapter-1/1-2-backslash-c.c | /**
* Exercise 1-2
*
* Experiment to find out what happens when prints's argument string contains \c,
* where c is some character not listed above.
*
* The C Programming Language - the second edition
* by Brian Kernighan and Dennis Ritchie
*
* Author: Li Zhineng <[email protected]>
* URL: https://zhineng.li
* File: 1-2-backslash-c.c
* Date: 2017-01-01
*/
#include <stdio.h>
main()
{
printf("hello, world\n\c");
}
| /**
* Exercise 1-2
*
* Experiment to find out what happens when printfs's argument string contains \c,
* where c is some character not listed above.
*
* The C Programming Language - the second edition
* by Brian Kernighan and Dennis Ritchie
*
* Author: Li Zhineng <[email protected]>
* URL: https://zhineng.li
* File: 1-2-backslash-c.c
* Date: 2017-01-01
*/
#include <stdio.h>
main()
{
printf("hello, world\n\c");
}
| Fix misspelling in execrise 2 in chapter 1 | Fix misspelling in execrise 2 in chapter 1
| C | mit | lizhineng/learning-the-c-programming-language |
8bdf7b1d4d4534a373550ec20b6f4c8308094212 | check_tests/eas_test_user.h | check_tests/eas_test_user.h | #ifndef __EAS_TEST_USER_H__
#define __EAS_TEST_USER_H__
#define TEST_ACCOUNT_ID ("[email protected]")
// Password: "G00dP@55w0rd"
#endif
| #ifndef __EAS_TEST_USER_H__
#define __EAS_TEST_USER_H__
#define TEST_ACCOUNT_ID ("[email protected]")
// Password: "G00dP@55w0rd"
// #define TEST_ACCOUNT_ID ("[email protected]")
#endif
| Add in a bad user option. Exists in GConf but not on the server. | Add in a bad user option. Exists in GConf but not on the server.
| C | lgpl-2.1 | simo5/evolution-activesync,simo5/evolution-activesync,simo5/evolution-activesync |
5d992b5774dde67ea14502dd01d7bf8f97352995 | C/FatorialRecursiva.c | C/FatorialRecursiva.c | #include<stdio.h>
int fatorial(int n){
if(n==1) return 1;
return (n * fatorial(n-1));
}
int main(){
printf("%d\n", fatorial(5));
return 0;
}
| Add Fatorial Recursica em C | Add Fatorial Recursica em C | C | mit | kelvins/Algoritmos-e-Estruturas-de-Dados,kelvins/Algoritmos-e-Estruturas-de-Dados,kelvins/Algoritmos-e-Estruturas-de-Dados,kelvins/Algoritmos-e-Estruturas-de-Dados,kelvins/Algoritmos-e-Estruturas-de-Dados,kelvins/Algoritmos-e-Estruturas-de-Dados,kelvins/Algoritmos-e-Estruturas-de-Dados,kelvins/Algoritmos-e-Estruturas-de-Dados,kelvins/Algoritmos-e-Estruturas-de-Dados,kelvins/Algoritmos-e-Estruturas-de-Dados |
|
d60451381ed2d582505d55c6a5dedb4d22e3c23a | AFImage/Pod/AFImageCache.h | AFImage/Pod/AFImageCache.h | #import "AFImageCacheOperation.h"
#pragma mark Type Definitions
// Block that transforms one image into another.
typedef AFImageCacheOperation *(^AFImageCacheOperationCreateBlock)(NSURL *url, AFImageTransform *transform,
NSCache *cache, BOOL refresh, AFImageCompletionBlock completionBlock);
#pragma mark Class Interface
@interface AFImageCache : NSObject
#pragma mark - Properties
// Allows overriding the creation of image cache operations.
@property (nonatomic, copy) AFImageCacheOperationCreateBlock imageCacheOperationCreateBlock;
#pragma mark - Static Methods
+ (id)sharedInstance;
#pragma mark - Instance Methods
- (AFImageCacheOperation *)imageWithURL: (NSURL *)url
completionBlock: (AFImageCompletionBlock)completionBlock;
- (AFImageCacheOperation *)imageWithURL: (NSURL *)url
refresh: (BOOL)refresh
completionBlock: (AFImageCompletionBlock)completionBlock;
- (AFImageCacheOperation *)imageWithURL: (NSURL *)url
transform: (AFImageTransform *)transform
completionBlock: (AFImageCompletionBlock)completionBlock;
- (AFImageCacheOperation *)imageWithURL: (NSURL *)url
transform: (AFImageTransform *)transform
refresh: (BOOL)refresh
completionBlock: (AFImageCompletionBlock)completionBlock;
@end // @interface AFImageCache | #import "AFImageCacheOperation.h"
#pragma mark Type Definitions
// Block that transforms one image into another.
typedef AFImageCacheOperation *(^AFImageCacheOperationCreateBlock)(NSURL *url, AFImageTransform *transform,
NSCache *cache, BOOL refresh, AFImageCompletionBlock completionBlock);
#pragma mark Class Interface
@interface AFImageCache : NSObject
#pragma mark - Properties
// Allows overriding the creation of image cache operations.
@property (nonatomic, copy) AFImageCacheOperationCreateBlock imageCacheOperationCreateBlock;
#pragma mark - Static Methods
+ (instancetype)sharedInstance;
#pragma mark - Instance Methods
- (AFImageCacheOperation *)imageWithURL: (NSURL *)url
completionBlock: (AFImageCompletionBlock)completionBlock;
- (AFImageCacheOperation *)imageWithURL: (NSURL *)url
refresh: (BOOL)refresh
completionBlock: (AFImageCompletionBlock)completionBlock;
- (AFImageCacheOperation *)imageWithURL: (NSURL *)url
transform: (AFImageTransform *)transform
completionBlock: (AFImageCompletionBlock)completionBlock;
- (AFImageCacheOperation *)imageWithURL: (NSURL *)url
transform: (AFImageTransform *)transform
refresh: (BOOL)refresh
completionBlock: (AFImageCompletionBlock)completionBlock;
@end // @interface AFImageCache | Convert from id to instancetype | Convert from id to instancetype
| C | mit | mlatham/AFImage |
87fabd563cf81f09e61b006d07af03490b1092be | src/tests/eina_test_main.c | src/tests/eina_test_main.c | /* EINA - EFL data type library
* Copyright (C) 2008 Cedric Bail
*
* 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 version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library;
* if not, see <http://www.gnu.org/licenses/>.
*/
#include "Eina.h"
#include "eina_suite.h"
START_TEST(eina_simple)
{
fail_if(!eina_init());
fail_if(eina_shutdown() != 0);
}
END_TEST
void eina_test_main(TCase *tc)
{
tcase_add_test(tc, eina_simple);
}
| /* EINA - EFL data type library
* Copyright (C) 2008 Cedric Bail
*
* 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 version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library;
* if not, see <http://www.gnu.org/licenses/>.
*/
#include "Eina.h"
#include "eina_suite.h"
#include <stdio.h>
START_TEST(eina_simple)
{
/* Eina_error as already been initialized by eina_hash
that was called by eina_mempool_init that's why we don't have 0 here */
fail_if(eina_init() != 2);
fail_if(eina_shutdown() != 1);
}
END_TEST
void eina_test_main(TCase *tc)
{
tcase_add_test(tc, eina_simple);
}
| Fix test due to mempool internal change. | Fix test due to mempool internal change.
git-svn-id: 02e3ca972ab3b5e6aa10db2b13bd0ff52712197b@36223 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
| C | lgpl-2.1 | jordemort/eina,jordemort/eina,OpenInkpot-archive/iplinux-eina,OpenInkpot-archive/iplinux-eina,OpenInkpot-archive/iplinux-eina,jordemort/eina |
fa009912d9b1df5b73e5807a263e4541756b9dfb | 1337-617.c | 1337-617.c | #include <util.h>
/*
* _1n17 is leet for init.
* This function initializes a 1337-617 repo.
* Meaning it creates a directory with the passed name
* In this directory it creates another one called `.1337-617`
* There it makes the first commit for the repo creation
*/
int _1n17 (char *restrict repo_name)
{
return 1;
} | #include <util.h>
/*
* _h45h stands for hash
* it simply creates a random hash of the passed length
*/
int _h45h (
const int length,
char *restrict hash
)
{
return 1;
}
/*
* c3c0_h45h stands for check hash
* Checks wether or not the passed hash has been used as a commit ID before
*/
int c3c0_h45h (const char *restrict hash)
{
return 1;
}
/*
* _1n17 is leet for init.
* This function initializes a 1337-617 repo.
* Meaning it creates a directory with the passed name
* In this directory it creates another one called `.1337-617`
* There it makes the first commit for the repo creation
*/
int _1n17 (char *restrict repo_name)
{
return 1;
} | Add definitons for some hash functions | Add definitons for some hash functions
| C | mit | Kriegslustig/1337-617 |
d2508569281f2254caa9e12450010a50ab97e0a0 | libkopete/kopeteversion.h | libkopete/kopeteversion.h | /*
Kopete (c) 2002-2005 by the Kopete developers <[email protected]>
*************************************************************************
* *
* 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 option) any later version. *
* *
*************************************************************************
*/
#ifndef _KOPETE_VERSION_H_
#define _KOPETE_VERSION_H_
#define KOPETE_VERSION_STRING "0.40.0"
#define KOPETE_VERSION_MAJOR 0
#define KOPETE_VERSION_MINOR 40
#define KOPETE_VERSION_RELEASE 0
#define KOPETE_MAKE_VERSION( a,b,c ) (((a) << 16) | ((b) << 8) | (c))
#define KOPETE_VERSION \
KOPETE_MAKE_VERSION(KOPETE_VERSION_MAJOR,KOPETE_VERSION_MINOR,KOPETE_VERSION_RELEASE)
#define KOPETE_IS_VERSION(a,b,c) ( KOPETE_VERSION >= KOPETE_MAKE_VERSION(a,b,c) )
#endif // _KOPETE_VERSION_H_
| /*
Kopete (c) 2002-2005 by the Kopete developers <[email protected]>
*************************************************************************
* *
* 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 option) any later version. *
* *
*************************************************************************
*/
#ifndef _KOPETE_VERSION_H_
#define _KOPETE_VERSION_H_
#define KOPETE_VERSION_STRING "0.40.3"
#define KOPETE_VERSION_MAJOR 0
#define KOPETE_VERSION_MINOR 40
#define KOPETE_VERSION_RELEASE 3
#define KOPETE_MAKE_VERSION( a,b,c ) (((a) << 16) | ((b) << 8) | (c))
#define KOPETE_VERSION \
KOPETE_MAKE_VERSION(KOPETE_VERSION_MAJOR,KOPETE_VERSION_MINOR,KOPETE_VERSION_RELEASE)
#define KOPETE_IS_VERSION(a,b,c) ( KOPETE_VERSION >= KOPETE_MAKE_VERSION(a,b,c) )
#endif // _KOPETE_VERSION_H_
| Update version string for next RC | Update version string for next RC
svn path=/trunk/KDE/kdenetwork/kopete/; revision=745111
| C | lgpl-2.1 | Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete |
8d9e49ed14c4fe40bbee51d6ae28867b72ff5f07 | PodioKitCore/Common/PodioKitCore.h | PodioKitCore/Common/PodioKitCore.h | //
// PodioKitCore.h
// PodioKitCore
//
// Created by Sebastian Rehnby on 12/02/15.
// Copyright (c) 2015 Citrix Systems, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PKCMacros.h"
#import "PKCConstants.h"
#import "PKCClient.h"
#import "PKCRequest.h"
#import "PKCResponse.h"
#import "PKCKeychain.h"
#import "PKCKeychainTokenStore.h"
#import "PKCDatastore.h"
#import "PKCOAuth2Token.h"
#import "PKCFile.h"
#import "PKCPushCredential.h"
#ifdef __IPHONE_OS_VERSION_MIN_REQUIRED
#import "PKCFile+UIImage.h"
#import "UIButton+PKCRemoteImage.h"
#import "UIImageView+PKCRemoteImage.h"
#endif | //
// PodioKitCore.h
// PodioKitCore
//
// Created by Sebastian Rehnby on 12/02/15.
// Copyright (c) 2015 Citrix Systems, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PKCMacros.h"
#import "PKCConstants.h"
#import "PKCClient.h"
#import "PKCRequest.h"
#import "PKCResponse.h"
#import "PKCKeychain.h"
#import "PKCKeychainTokenStore.h"
#import "PKCDatastore.h"
#import "PKCBaseAPI.h"
#import "PKCOAuth2Token.h"
#import "PKCFile.h"
#import "PKCPushCredential.h"
#ifdef __IPHONE_OS_VERSION_MIN_REQUIRED
#import "PKCFile+UIImage.h"
#import "UIButton+PKCRemoteImage.h"
#import "UIImageView+PKCRemoteImage.h"
#endif | Include PKCBaseAPI in umbrella header | Include PKCBaseAPI in umbrella header
| C | mit | podio/podio-objc-core,podio/podio-objc-core,podio/podio-objc-core |
38932860b844b490af964d60b42d469a53b67d50 | test/Driver/aarch64-rand.c | test/Driver/aarch64-rand.c | // RUN: %clang -### -target aarch64-none-none-eabi -march=armv8.4a+rng %s 2>&1 | FileCheck %s
// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8.5a+rng %s 2>&1 | FileCheck %s
// CHECK: "-target-feature" "+rand"
// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8.4a+norng %s 2>&1 | FileCheck %s --check-prefix=NORAND
// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8.5a+norng %s 2>&1 | FileCheck %s --check-prefix=NORAND
// NORAND: "-target-feature" "-rand"
// RUN: %clang -### -target aarch64-none-none-eabi %s 2>&1 | FileCheck %s --check-prefix=ABSENTRAND
// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8.4a %s 2>&1 | FileCheck %s --check-prefix=ABSENTRAND
// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8.5a %s 2>&1 | FileCheck %s --check-prefix=ABSENTRAND
// ABSENTRAND-NOT: "-target-feature" "+rand"
// ABSENTRAND-NOT: "-target-feature" "-rand"
| Test optional Armv8.5-A random number extension | [AArch64][v8.5A] Test optional Armv8.5-A random number extension
The implementation of this is in TargetParser, so we only need to add a
test for it in clang.
Patch by Pablo Barrio!
Differential revision: https://reviews.llvm.org/D52492
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@343220 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang |
|
513ee4a749193cc8ba80666c852062bd7c9d2bf4 | ext/opengl/glimpl.h | ext/opengl/glimpl.h | #ifndef _GLIMPL_H_
#define _GLIMPL_H_
#ifndef GLFUNC_MAGIC_START
#include "fptr_struct.h"
#endif
#define GET_GLIMPL_VARIABLE(_name_) \
(((struct glimpl *)DATA_PTR(obj))->_name_)
#define SET_GLIMPL_VARIABLE(_name_,_val_) \
((struct glimpl *)DATA_PTR(obj))->_name_ = (_val_)
/* at least GL_MAX_VERTEX_ATTRIBS - usually 16 or 32 on today's high-end cards */
#define _MAX_VERTEX_ATTRIBS 64
extern VALUE g_default_glimpl;
struct glimpl {
struct glfunc_ptrs glfuncs;
int opengl_version[2]; /* major, minor */
char *opengl_extensions;
void * (* load_gl_function)(VALUE self, const char *name,int raise);
VALUE current_feed_buffer;
VALUE current_sel_buffer;
VALUE Vertex_ptr;
VALUE Normal_ptr;
VALUE Color_ptr;
VALUE Index_ptr;
VALUE TexCoord_ptr;
VALUE EdgeFlag_ptr;
VALUE FogCoord_ptr; /* OpenGL 1.4 */
VALUE SecondaryColor_ptr; /* OpenGL 1.4 */
VALUE VertexAttrib_ptr[_MAX_VERTEX_ATTRIBS];
VALUE error_checking;
VALUE inside_begin_end;
void *dl;
void * (* fptr_GetProcAddress)(const char *name);
};
#endif /* _GLIMPL_H_ */
| #ifndef _GLIMPL_H_
#define _GLIMPL_H_
#ifndef GLFUNC_MAGIC_START
#include "fptr_struct.h"
#endif
#define GET_GLIMPL_VARIABLE(_name_) \
(((struct glimpl *)DATA_PTR(obj))->_name_)
#define SET_GLIMPL_VARIABLE(_name_,_val_) \
((struct glimpl *)DATA_PTR(obj))->_name_ = (_val_)
/* at least GL_MAX_VERTEX_ATTRIBS - usually 16 or 32 on today's high-end cards */
#define _MAX_VERTEX_ATTRIBS 64
extern VALUE g_default_glimpl;
struct glimpl {
struct glfunc_ptrs glfuncs;
int opengl_version[2]; /* major, minor */
char *opengl_extensions;
void * (* load_gl_function)(VALUE self, const char *name,int raise);
VALUE current_feed_buffer;
VALUE current_sel_buffer;
VALUE Vertex_ptr;
VALUE Normal_ptr;
VALUE Color_ptr;
VALUE Index_ptr;
VALUE TexCoord_ptr;
VALUE EdgeFlag_ptr;
VALUE FogCoord_ptr; /* OpenGL 1.4 */
VALUE SecondaryColor_ptr; /* OpenGL 1.4 */
VALUE VertexAttrib_ptr[_MAX_VERTEX_ATTRIBS];
VALUE error_checking;
VALUE inside_begin_end;
void *dl;
void * (APIENTRY * fptr_GetProcAddress)(const char *name);
};
#endif /* _GLIMPL_H_ */
| Fix call convention for wglGetProcAddress on Windows-i686 | Fix call convention for wglGetProcAddress on Windows-i686
| C | mit | larskanis/opengl,larskanis/opengl |
ffb3fd2e84d778386e5da7b6d975cc4895dc2bd6 | AssimpKit/Code/Model/SCNScene+AssimpImport.h | AssimpKit/Code/Model/SCNScene+AssimpImport.h | //
// SCNScene+AssimpImport.h
// AssimpKit
//
// Created by Deepak Surti on 10/24/16.
//
//
#include <GLKit/GLKit.h>
#import <SceneKit/SceneKit.h>
@interface SCNScene (AssimpImport)
+ (SCNScene*)assimpSceneNamed:(NSString*)name;
@end
| //
// SCNScene+AssimpImport.h
// AssimpKit
//
// Created by Deepak Surti on 10/24/16.
//
//
#include <GLKit/GLKit.h>
#import <SceneKit/SceneKit.h>
@interface SCNScene (AssimpImport)
+ (instancetype)assimpSceneNamed:(NSString*)name;
@end
| Use instancetype keyword for assimp method | Use instancetype keyword for assimp method
| C | bsd-3-clause | dmsurti/AssimpKit |
6de7ad8a2255d0a1ae782d75eaadcecbffc7fdd2 | compat/android/sys/user.h | compat/android/sys/user.h | // Copyright 2017 The Crashpad 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 applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef CRASHPAD_COMPAT_ANDROID_SYS_USER_H_
#define CRASHPAD_COMPAT_ANDROID_SYS_USER_H_
// This is needed for traditional headers.
#include <sys/types.h>
#include_next <sys/user.h>
#endif // CRASHPAD_COMPAT_ANDROID_SYS_USER_H_
| Fix Android x86_64 build when using traditional headers | Fix Android x86_64 build when using traditional headers
Bug: crashpad:30
Change-Id: I4b4e478bb3811fd5d9d66d98a4ecc811be3ea129
Reviewed-on: https://chromium-review.googlesource.com/703689
Commit-Queue: Joshua Peraza <[email protected]>
Reviewed-by: Mark Mentovai <[email protected]>
| C | apache-2.0 | atom/crashpad,atom/crashpad,chromium/crashpad,chromium/crashpad,chromium/crashpad,atom/crashpad |
|
5b7106db8763b164b199fd9381cff9ba3445b9ff | src/parse.h | src/parse.h | // Copyright 2016 Mitchell Kember. Subject to the MIT License.
#ifndef PARSE_H
#define PARSE_H
#include "expr.h"
#define PARSE_SUCCESS (-1)
// ParseResult contains the result of parsing text. The 'expr' field has a
// meaningful value if and only if 'err_type' is PARSE_SUCCESS.
struct ParseResult {
size_t chars_read; // number of characters read
struct Expression expr; // parsed expression
int err_type; // PARSE_SUCCESS or a ParseErrorType value
};
// Parses a string as an s-expression of pairs, symbols, and numbers. On
// success, returns the parse result with 'err_type' set to PARSE_SUCCESS.
// Otherwise, returns a ParseErrorType in the result.
struct ParseResult parse(const char *text);
#endif
| // Copyright 2016 Mitchell Kember. Subject to the MIT License.
#ifndef PARSE_H
#define PARSE_H
#include "expr.h"
// Constant indicating that a parse was successful.
#define PARSE_SUCCESS (-1)
// ParseResult contains the result of parsing text. The 'expr' field has a
// meaningful value if and only if 'err_type' is PARSE_SUCCESS.
struct ParseResult {
size_t chars_read; // number of characters read
struct Expression expr; // parsed expression
int err_type; // PARSE_SUCCESS or a ParseErrorType value
};
// Parses a string as an s-expression of pairs, symbols, and numbers. On
// success, returns the parse result with 'err_type' set to PARSE_SUCCESS.
// Otherwise, returns a ParseErrorType in the result.
struct ParseResult parse(const char *text);
#endif
| Add comment for constant PARSE_SUCCESS | Add comment for constant PARSE_SUCCESS
| C | mit | mk12/eva,mk12/eva |
c4194bbe0dbae028bb35d465c4f6342c1d87b486 | src/substr.c | src/substr.c | //
// substr.c
// AnsiLove/C
//
// Copyright (C) 2011-2016 Stefan Vogt, Brian Cassidy, Frederic Cambus.
// All rights reserved.
//
// This source code is licensed under the BSD 3-Clause License.
// See the file LICENSE for details.
//
#define _XOPEN_SOURCE 700
#include <string.h>
char *substr(char *str, size_t begin, size_t len)
{
if (str == 0 || strlen(str) == 0)
return 0;
return strndup(str + begin, len);
}
| //
// substr.c
// AnsiLove/C
//
// Copyright (C) 2011-2016 Stefan Vogt, Brian Cassidy, Frederic Cambus.
// All rights reserved.
//
// This source code is licensed under the BSD 3-Clause License.
// See the file LICENSE for details.
//
#define _XOPEN_SOURCE 700
#define _NETBSD_SOURCE
#include <string.h>
char *substr(char *str, size_t begin, size_t len)
{
if (str == 0 || strlen(str) == 0)
return 0;
return strndup(str + begin, len);
}
| Define _NETBSD_SOURCE macro to make 'strndup' declaration visible on NetBSD | Define _NETBSD_SOURCE macro to make 'strndup' declaration visible on NetBSD
| C | bsd-2-clause | ansilove/AnsiLove-C,ansilove/ansilove |
fd8a853dfba813b54ddb0eeebee14f9dc9fa5961 | include/pipe/algorithm/pipe.h | include/pipe/algorithm/pipe.h | #pragma once
#include <utility>
#include <pipe/traits.h>
namespace pipe { namespace algorithm {
template <typename Generator, typename Algorithm, typename _ = std::enable_if<pipe::is_generator<Generator>::value>::type>
auto operator|(Generator& gen, Algorithm algorithm)
{
return algorithm(std::move(gen));
}
}} // namespace pipe::algorithm
| #pragma once
#include <utility>
#include <pipe/traits.h>
namespace pipe { namespace algorithm { namespace details {
template <typename Generator, typename Algorithm, typename _ = std::enable_if<pipe::is_generator<Generator>::value>::type>
auto operator|(Generator& gen, Algorithm algorithm)
{
return algorithm(std::move(gen));
}
}}} // namespace pipe::algorithm::details
| Move operator| in details namespace | Move operator| in details namespace
| C | mit | vladris/pipe,vladris/pipe |
d351c50c960d6bad2469b08fd547936512c58a08 | uart_echo.c | uart_echo.c | #include <avr/interrupt.h>
#include "uart.h"
int main (void) {
uart_enable(UM_Asynchronous);
sei();
unsigned char c = 0;
do {
c = uart_receive();
uart_transmit(c);
} while (c);
return 0;
}
| #include <avr/interrupt.h>
#include <util/delay.h>
#include "uart.h"
int main (void) {
uart_enable(UM_Asynchronous);
sei();
DDRB = 0xFF;
unsigned char c = 0;
do {
c = uart_receive();
// Do some blinking if we receive a number between 1 and 9.
if (c >= '1' && c <= '9') {
for (int i = 0; i < (c-'0'); ++i) {
PORTB = 0xFF;
_delay_ms(100);
PORTB = 0x00;
_delay_ms(100);
}
}
uart_transmit(c);
} while (1);
return 0;
}
| Add a slight bit more functionality to the UART echo app so that it can blink some lights with numerical inputs. This can help determine whether or not the AVR is receiving the correct data, even though it is echoing it back anyway. | Add a slight bit more functionality to the UART echo app so that it can blink some lights with numerical inputs. This can help determine whether or not the AVR is receiving the correct data, even though it is echoing it back anyway.
| C | mpl-2.0 | grimwm/avr,grimwm/avr,grimwm/avr,grimwm/avr |
c905615f0dd9db449f32f9a4adff40676e84b8a2 | Reactor/MTRReactiveEngine.h | Reactor/MTRReactiveEngine.h | //
// MTRReactiveEngine.h
// Reactor
//
// Created by Ty Cobb on 1/15/15.
// Copyright (c) 2015 cobb. All rights reserved.
//
@import Foundation;
@interface MTRReactiveEngine : NSObject
/**
@brief Adds reactivity to marked classes
Sweeps the class list for classes adopting @c MTRReactive, and swizzles their
property setters/getters to add reactivity.
*/
+ (void)engage;
@end
| //
// MTRReactiveEngine.h
// Reactor
//
// Created by Ty Cobb on 1/15/15.
// Copyright (c) 2015 cobb. All rights reserved.
//
@import Foundation;
@protocol MTRReactive;
@interface MTRReactiveEngine : NSObject
/**
@brief Adds reactivity to marked classes
Sweeps the class list for classes adopting @c MTRReactive, and swizzles their
property setters/getters to add reactivity.
*/
+ (void)engage;
/**
@brief Manually adds reactivity to marked classes
Use this method if you want to have on-demand reactification.
*/
+ (void)reactify:(Class<MTRReactive>)klass;
@end
| Add feature to on-demand reactify classes | Add feature to on-demand reactify classes | C | mit | wzrad/Reactor,derkis/Reactor,derkis/Reactor |
95acf0f82a339ca56201730369a9b641e72a4b20 | arc/arc/Plugin/PluginDelegate.h | arc/arc/Plugin/PluginDelegate.h | //
// PluginDelegate.h
// arc
//
// Created by Yong Michael on 6/4/13.
// Copyright (c) 2013 nus.cs3217. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ArcAttributedString.h"
#import "File.h"
typedef enum {
kMCQSettingType,
kRangeSettingType,
kBoolSettingType
} kSettingType;
@protocol PluginDelegate <NSObject>
// Returns an array of NSStrings
// eg: [@"fontFamily", @"fontSize"]
@property (nonatomic, strong) NSArray *settingKeys;
// Returns a NSDictionary of properties for setting
// eg: [pluginInstance propertiesFor:@"fontFamily"]
// returns:
// {
// type: kMCQSettingType,
// values: [A, B, C, D]
// }
- (NSDictionary *)propertiesFor:(NSString *)settingKey;
// Returns Default Value for given setting
- (id<NSObject>)defaultValueFor:(NSString *)settingKey;
// Exec Method (Middleware)
+ (void)arcAttributedString:(ArcAttributedString*)arcAttributedString
ofFile:(id<File>)file
delegate:(id)delegate;
@end
| //
// PluginDelegate.h
// arc
//
// Created by Yong Michael on 6/4/13.
// Copyright (c) 2013 nus.cs3217. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ArcAttributedString.h"
#import "File.h"
typedef enum {
kMCQSettingType,
kRangeSettingType,
kBoolSettingType
} kSettingType;
@protocol PluginDelegate <NSObject>
// Returns an array of NSStrings
// eg: [@"fontFamily", @"fontSize"]
@property (nonatomic, strong) NSArray *settingKeys;
// Returns a NSDictionary of properties for setting
// eg: [pluginInstance propertiesFor:@"fontFamily"]
// returns:
// {
// type: kMCQSettingType,
// labels: ["Inconsolata", "Source Code Pro", "Ubuntu Monospace"]
// values: ["Inconsolata", "SourceCodePro-Regular", "Ubuntu Mono Regular"]
// }
- (NSDictionary *)propertiesFor:(NSString *)settingKey;
// Returns Default Value for given setting
- (id<NSObject>)defaultValueFor:(NSString *)settingKey;
// Exec Method (Middleware)
+ (void)arcAttributedString:(ArcAttributedString*)arcAttributedString
ofFile:(id<File>)file
delegate:(id)delegate;
@end
| Update comment to reflect dictionary layout. | Update comment to reflect dictionary layout.
| C | mit | BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc |
316572d9a3274a18a8def23c087b139e27f99ac8 | snake.c | snake.c | #include <stdlib.h>
/**
* @author: Hendrik Werner
*/
int main() {
return EXIT_SUCCESS;
}
| #include <stdlib.h>
/**
* @author: Hendrik Werner
*/
typedef struct Position {
int row;
int col;
} Position;
int main() {
return EXIT_SUCCESS;
}
| Define a struct to represent 2d positions. | Define a struct to represent 2d positions.
| C | mit | Hendrikto/Snake |
fca387c79a274d3da8d5abb97ee9b1765188abaa | eval/src/vespa/eval/tensor/dense/direct_dense_tensor_builder.h | eval/src/vespa/eval/tensor/dense/direct_dense_tensor_builder.h | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "dense_tensor.h"
namespace vespalib::tensor {
/**
* Class for building a dense tensor by inserting cell values directly into underlying array of cells.
*/
class DirectDenseTensorBuilder
{
public:
using Cells = DenseTensor::Cells;
using Address = DenseTensor::Address;
private:
eval::ValueType _type;
Cells _cells;
static size_t calculateCellAddress(const Address &address, const eval::ValueType &type) {
size_t result = 0;
for (size_t i = 0; i < address.size(); ++i) {
result *= type.dimensions()[i].size;
result += address[i];
}
return result;
}
public:
DirectDenseTensorBuilder(const eval::ValueType &type_in);
~DirectDenseTensorBuilder();
void insertCell(const Address &address, double cellValue) {
_cells[calculateCellAddress(address, _type)] = cellValue;
}
Tensor::UP build();
};
}
| // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "dense_tensor.h"
namespace vespalib::tensor {
/**
* Class for building a dense tensor by inserting cell values directly into underlying array of cells.
*/
class DirectDenseTensorBuilder
{
public:
using Cells = DenseTensor::Cells;
using Address = DenseTensor::Address;
private:
eval::ValueType _type;
Cells _cells;
static size_t calculateCellAddress(const Address &address, const eval::ValueType &type) {
size_t result = 0;
for (size_t i = 0; i < address.size(); ++i) {
result *= type.dimensions()[i].size;
result += address[i];
}
return result;
}
public:
DirectDenseTensorBuilder(const eval::ValueType &type_in);
~DirectDenseTensorBuilder();
void insertCell(const Address &address, double cellValue) {
insertCell(calculateCellAddress(address, _type), cellValue);
}
void insertCell(size_t index, double cellValue) {
_cells[index] = cellValue;
}
Tensor::UP build();
};
}
| Allow for building index on the outside. | Allow for building index on the outside.
| C | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
0ef96b3c2dbf65fd92dd700e15689180af74d438 | firmware/WidgetTerminal.h | firmware/WidgetTerminal.h | /**
* @file WidgetTerminal.h
* @author Volodymyr Shymanskyy
* @license This project is released under the MIT License (MIT)
* @copyright Copyright (c) 2015 Volodymyr Shymanskyy
* @date Jan 2015
* @brief
*/
#ifndef WidgetTerminal_h
#define WidgetTerminal_h
#include <Print.h>
#include <Blynk/BlynkApi.h>
class WidgetTerminal
: public Print
{
public:
WidgetTerminal(int vPin)
: mPin(vPin), mOutQty(0)
{}
virtual size_t write(uint8_t byte) {
mOutBuf[mOutQty++] = byte;
if (mOutQty >= sizeof(mOutBuf)) {
flush();
}
return 1;
}
void flush() {
if (mOutQty) {
Blynk.virtualWrite(mPin, mOutBuf, mOutQty);
mOutQty = 0;
}
}
using Print::write;
private:
uint8_t mPin;
uint8_t mOutBuf[32];
uint8_t mOutQty;
};
#endif
| /**
* @file WidgetTerminal.h
* @author Volodymyr Shymanskyy
* @license This project is released under the MIT License (MIT)
* @copyright Copyright (c) 2015 Volodymyr Shymanskyy
* @date Jan 2015
* @brief
*/
#ifndef WidgetTerminal_h
#define WidgetTerminal_h
#include <Print.h>
#if !defined(SPARK) // On Spark this is auto-included
#include <Blynk/BlynkApi.h>
#endif
class WidgetTerminal
: public Print
{
public:
WidgetTerminal(int vPin)
: mPin(vPin), mOutQty(0)
{}
virtual size_t write(uint8_t byte) {
mOutBuf[mOutQty++] = byte;
if (mOutQty >= sizeof(mOutBuf)) {
flush();
}
return 1;
}
void flush() {
if (mOutQty) {
Blynk.virtualWrite(mPin, mOutBuf, mOutQty);
mOutQty = 0;
}
}
using Print::write;
private:
uint8_t mPin;
uint8_t mOutBuf[32];
uint8_t mOutQty;
};
#endif
| Fix terminal widget on Spark Core | Fix terminal widget on Spark Core
| C | mit | yaneexy/blynk-library-spark,vshymanskyy/blynk-library-spark,domo-connect/blynk-library-spark,vshymanskyy/blynk-library-spark,chieftuscan/blynk-library-spark,chieftuscan/blynk-library-spark,yaneexy/blynk-library-spark,domo-connect/blynk-library-spark |
d2afa9534fc413ca9bd4d84e3f2398e922aec7c0 | meta/inc/TVirtualIsAProxy.h | meta/inc/TVirtualIsAProxy.h | // @(#)root/meta:$Name: $:$Id: TVirtualIsAProxy.h,v 1.1 2005/05/27 16:42:58 pcanal Exp $
// Author: Markus Frank 20/05/2005
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TVirtualIsAProxy
#define ROOT_TVirtualIsAProxy
//////////////////////////////////////////////////////////////////////////
// //
// TClass //
// //
// Virtual IsAProxy base class. //
// //
//////////////////////////////////////////////////////////////////////////
class TVirtualIsAProxy {
public:
virtual ~TVirtualIsAProxy() { }
virtual void SetClass(TClass *cl) = 0;
virtual TClass* operator()(const void *obj) = 0;
};
#endif // ROOT_TVirtualIsAProxy
| // @(#)root/meta:$Name: $:$Id: TVirtualIsAProxy.h,v 1.2 2005/06/08 18:51:36 rdm Exp $
// Author: Markus Frank 20/05/2005
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TVirtualIsAProxy
#define ROOT_TVirtualIsAProxy
//////////////////////////////////////////////////////////////////////////
// //
// TClass //
// //
// Virtual IsAProxy base class. //
// //
//////////////////////////////////////////////////////////////////////////
class TClass;
class TVirtualIsAProxy {
public:
virtual ~TVirtualIsAProxy() { }
virtual void SetClass(TClass *cl) = 0;
virtual TClass* operator()(const void *obj) = 0;
};
#endif // ROOT_TVirtualIsAProxy
| Add the necessary includes and forward declarations such that the class can be compiled independently. | Add the necessary includes and forward declarations such that the class can be compiled independently.
git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@19581 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT |
ba62f0d82dda609e9e01b84797944e9d18a989eb | KBSCloudApp.h | KBSCloudApp.h | //
// KBSCloudApp.h
//
// Created by Keith Smiley
// Copyright (c) 2013 Keith Smiley. All rights reserved.
//
#ifndef _KBSCLOUDAPP_
#define _KBSCLOUDAPP_
#import "KBSCloudAppUser.h"
#import "KBSCloudAppAPI.h"
NS_ENUM(NSInteger, KBSCloudAppAPIErrorCode) {
KBSCloudAppNoUserOrPass,
KBSCloudAppAPIInvalidUser,
KBSCloudAppInternalError
};
static NSString * const KBSCloudAppAPIErrorDomain = @"com.keithsmiley.cloudappapi";
static NSString * const baseAPI = @"http://my.cl.ly/";
static NSString * const baseShortURL = @"cl.ly";
static NSString * const itemsPath = @"items";
static NSString * const accountPath = @"account";
#endif
| //
// KBSCloudApp.h
//
// Created by Keith Smiley
// Copyright (c) 2013 Keith Smiley. All rights reserved.
//
#ifndef _KBSCLOUDAPP_
#define _KBSCLOUDAPP_
#import "KBSCloudAppUser.h"
#import "KBSCloudAppAPI.h"
#import "KBSCloudAppURL.h"
NS_ENUM(NSInteger, KBSCloudAppAPIErrorCode) {
KBSCloudAppNoUserOrPass,
KBSCloudAppAPIInvalidUser,
KBSCloudAppInternalError
};
static NSString * const KBSCloudAppAPIErrorDomain = @"com.keithsmiley.cloudappapi";
static NSString * const baseAPI = @"http://my.cl.ly/";
static NSString * const baseShortURL = @"cl.ly";
static NSString * const itemsPath = @"items";
static NSString * const accountPath = @"account";
#endif
| Include URL in common includes | Include URL in common includes
| C | mit | keith/KBSCloudAppAPI |
2d02b4ce02e4ec00b773f193f06ba44f0e1d57a4 | source/common/hal/freescale/k20dx/read_uid.c | source/common/hal/freescale/k20dx/read_uid.c | /* CMSIS-DAP Interface Firmware
* Copyright (c) 2009-2013 ARM Limited
*
* 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, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "MK20D5.h"
#include "read_uid.h"
void read_unique_id(uint32_t * id) {
*id = SIM->UIDL ^ SIM->UIDML ^ SIM->UIDMH ^ SIM->UIDH;
}
| /* CMSIS-DAP Interface Firmware
* Copyright (c) 2009-2013 ARM Limited
*
* 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, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "MK20D5.h"
#include "read_uid.h"
void read_unique_id(uint32_t * id) {
id[0] = SIM->UIDL;
id[1] = SIM->UIDML;
id[2] = SIM->UIDMH;
id[3] = SIM->UIDH;
}
| Use the full UUID for the K20DX | Use the full UUID for the K20DX
Use all 4 words of the unique ID individually rather than xor ing them
all together.
| C | apache-2.0 | sg-/DAPLink,sg-/DAPLink,sg-/DAPLink,google/DAPLink-port,google/DAPLink-port,google/DAPLink-port,google/DAPLink-port |
8dcdc08596a7065b20e037ceb19ee286ebf98a76 | proc_info/openbsd_proc_info.c | proc_info/openbsd_proc_info.c | #include <fcntl.h>
#include <kvm.h>
#include <sys/sysctl.h>
#include <unistd.h>
#include <stdio.h>
#include <time.h>
int main(int argc,char** args) {
kvm_t* kd;
// Get a handle to libkvm interface
kd = kvm_open(NULL, NULL, NULL, KVM_NO_FILES, "error: ");
pid_t pid;
pid = getpid();
struct kinfo_proc * kp;
int p_count;
// Get the kinfo_proc2 for this process by its pid
kp = kvm_getprocs(kd, KERN_PROC_PID, pid, sizeof(struct kinfo_proc), &p_count);
printf("got %i kinfo_proc2 for pid %i\n", p_count, pid);
// /usr/include/sys/sysctl.h details the kinfo_proc2 struct
time_t proc_start_time;
proc_start_time = kp->p_ustart_sec;
kvm_close(kd);
printf("sleeping for 15 seconds\n");
sleep(15);
printf("Process started at %s\n", ctime(&proc_start_time));
time_t current_time;
current_time = time(NULL);
printf("Current time after nap %s\n", ctime(¤t_time));
return 0;
}
| Add support for openbsd, test on openbsd 6.8 | Add support for openbsd, test on openbsd 6.8
| C | cc0-1.0 | dnabre/misc |
|
93fcae8ec3035b4b3f1b3a789ecfa15e20c00f8b | program/driver/us100.c | program/driver/us100.c | /*==============================================================================================*/
/*==============================================================================================*/
#include "QuadCopterConfig.h"
/* Connection methods of Ultrasonic */
#define ULT_USE_UART2 1
#define ULT_USE_PWM 0
Ultrasonic_t Ultrasonic = {
.lenHigh = 0,
.lenLow = 0,
.d = 0
};
/*==============================================================================================*/
/*==============================================================================================*
**函數 : us100_distant
**功能 : get 1 calculated distant data from the data received by USART
**輸入 : Ultrasonic.lenHigh, Ultrasonic.lenLow
**輸出 : Ultrasonic.d (mm)
**使用 : print_us100_distant();
**==============================================================================================*/
/*==============================================================================================*/
void print_us100_distance(){
#if ULT_USE_UART2
serial2.putc('U');
vTaskDelay(500);
Ultrasonic.lenHigh = serial2.getc();
Ultrasonic.lenLow = serial2.getc();
Ultrasonic.d = (Ultrasonic.lenHigh*256 + Ultrasonic.lenLow)*0.1;
serial.printf("Distance: ");
serial.printf("%d",Ultrasonic.d);
serial.printf(" cm\n\r");
vTaskDelay(30);
#endif
}
| /*==============================================================================================*/
/*==============================================================================================*/
#include "QuadCopterConfig.h"
/* Connection methods of Ultrasonic */
#define ULT_USE_UART2 1
#define ULT_USE_PWM 0
Ultrasonic_t Ultrasonic = {
.lenHigh = 0,
.lenLow = 0,
.d = 0
};
/*==============================================================================================*/
/*==============================================================================================*
**函數 : us100_distant
**功能 : get 1 calculated distant data from the data received by USART
**輸入 : Ultrasonic.lenHigh, Ultrasonic.lenLow
**輸出 : Ultrasonic.d (mm)
**使用 : print_us100_distant();
**==============================================================================================*/
/*==============================================================================================*/
void print_us100_distance(){
#if ULT_USE_UART2
serial2.putc('U');
vTaskDelay(70);
Ultrasonic.lenHigh = serial2.getc();
Ultrasonic.lenLow = serial2.getc();
Ultrasonic.d = (Ultrasonic.lenHigh*256 + Ultrasonic.lenLow)*0.1;
serial.printf("Distance: ");
serial.printf("%d",Ultrasonic.d);
serial.printf(" cm\n\r");
vTaskDelay(30);
#endif
}
| Fix speed of ultrasonic display | Fix speed of ultrasonic display
| C | mit | zxc2694/STM32F429_Quadrotor,zxc2694/STM32F429_Quadrotor,zxc2694/STM32F429_Quadrotor |
6fa3dbcb9600a94ee0183733ca8db869770246dd | util/test/util/test_string.c | util/test/util/test_string.c | #include <stdio.h>
#include <axis2_error_default.h>
#include <axis2_log.h>
#include <axis2_string.h>
void test_strltrim(const axis2_env_t *env)
{
axis2_char_t s[100]=" abcd efgh ";
axis2_char_t *trimmed;
trimmed = AXIS2_STRLTRIM(s, " \t\r\n");
if (0 == AXIS2_STRCMP(trimmed, "abcd efgh "))
printf("AXIS2_STRLTRIM successful\n");
else
printf("AXIS2_STRLTRIM failed [%s]\n", trimmed);
}
void test_strrtrim(const axis2_env_t *env)
{
axis2_char_t s[100]=" abcd efgh ";
axis2_char_t *trimmed;
trimmed = AXIS2_STRRTRIM(s, " \t\r\n");
if (0 == AXIS2_STRCMP(trimmed, " abcd efgh"))
printf("AXIS2_STRRTRIM successful\n");
else
printf("AXIS2_STRRTRIM failed [%s]\n", trimmed);
}
void test_strtrim(const axis2_env_t *env)
{
axis2_char_t s[100]=" abcd efgh ";
axis2_char_t *trimmed;
trimmed = AXIS2_STRTRIM(s, " \t\r\n");
if (0 == AXIS2_STRCMP(trimmed, "abcd efgh"))
printf("AXIS2_STRTRIM successful\n");
else
printf("AXIS2_STRTRIM failed [%s]\n", trimmed);
}
void run_test_string(axis2_env_t *env)
{
if (!env)
return;
test_strltrim(env);
test_strrtrim(env);
test_strtrim(env);
}
| Test for trim functions added. | Test for trim functions added.
git-svn-id: fbb392d5347ebc45c06187f72dfd8bab02595dbf@413026 13f79535-47bb-0310-9956-ffa450edef68
| C | apache-2.0 | axbannaz/axis2-c,axbannaz/axis2-c,axbannaz/axis2-c,axbannaz/axis2-c,axbannaz/axis2-c,axbannaz/axis2-c |
|
3e17ed56780465cd5bc949d8eed9c1e8bb6522fe | src/input.c | src/input.c | // input.c
#include "../include/simple2d.h"
/*
* Get the mouse coordinates relative to the viewport
*/
void S2D_GetMouseOnViewport(S2D_Window *window, int wx, int wy, int *x, int *y) {
double scale; // viewport scale factor
int w, h; // width and height of scaled viewport
switch (window->viewport.mode) {
case S2D_FIXED:
*x = wx; *y = wy;
break;
case S2D_SCALE:
S2D_GL_GetViewportScale(window, &w, &h, &scale);
*x = wx * 1 / scale - (window->width - w) / (2.0 * scale);
*y = wy * 1 / scale - (window->height - h) / (2.0 * scale);
break;
case S2D_STRETCH:
*x = wx * window->viewport.width / (double)window->width;
*y = wy * window->viewport.height / (double)window->height;
break;
}
}
| // input.c
#include "../include/simple2d.h"
/*
* Get the mouse coordinates relative to the viewport
*/
void S2D_GetMouseOnViewport(S2D_Window *window, int wx, int wy, int *x, int *y) {
double scale; // viewport scale factor
int w, h; // width and height of scaled viewport
switch (window->viewport.mode) {
case S2D_FIXED:
*x = wx / (window->orig_width / (double)window->viewport.width);
*y = wy / (window->orig_height / (double)window->viewport.height);
break;
case S2D_SCALE:
S2D_GL_GetViewportScale(window, &w, &h, &scale);
*x = wx * 1 / scale - (window->width - w) / (2.0 * scale);
*y = wy * 1 / scale - (window->height - h) / (2.0 * scale);
break;
case S2D_STRETCH:
*x = wx * window->viewport.width / (double)window->width;
*y = wy * window->viewport.height / (double)window->height;
break;
}
}
| Fix mouse position over an `S2D_FIXED` viewport | Fix mouse position over an `S2D_FIXED` viewport
| C | mit | simple2d/simple2d,simple2d/simple2d |
1cc80628fc64ff01aec730304e1bb06c0eb6e052 | warmup/diagonal_difference.c | warmup/diagonal_difference.c | /*
Input Format
The first line contains a single integer N. The next N lines contain N integers (each) describing the matrix.
Constraints
1≤N≤100
−100≤A[i]≤100
Output Format
Output a single integer equal to the absolute difference in the sums across the diagonals.
Sample Input
3
11 2 4
4 5 6
10 8 -12
Sample Output
15
Explanation
The first diagonal of the matrix is:
11
5
-12
Sum across the first diagonal = 11+5-12= 4
The second diagonal of the matrix is:
4
5
10
Sum across the second diagonal = 4+5+10 = 19
Difference: |4-19| =15
*/
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main() {
int n,i,j;
scanf("%d",&n);
int A[n][n];
int d1=0;
int d2=0;
for(i=0; i<n ; i++){
for(j=0; j<n; j++){
scanf("%d ",&A[i][j]);
}
}
for(i=0; i<n ;i++){
d1 = d1 + A[i][i];
d2 = d2 + A[i][n-1-i];
}
printf("%d\n", abs(d1-d2));
return 0;
}
| Add Diagonal Diff for NxN matrix | Add Diagonal Diff for NxN matrix
| C | mit | anaghajoshi/HackerRank |
|
cce36d17a24c875d8418d07c3c661a14ae421199 | secure_api/vale/asm/testsha256.c | secure_api/vale/asm/testsha256.c | #include "sha256_main_i.h"
int main()
{
uint8_t plaintext[3U] = { (uint8_t)0x61U, (uint8_t)0x62U, (uint8_t)0x63U };
uint32_t plaintext_len = (uint32_t)3U;
uint32_t output[8];
uint32_t output_len = (uint32_t)32U;
/*
// This is equivalent to what sha256_main_i_SHA256_Complete does:
uint32_t h[8];
uint8_t unprocessed[64];
sha256_main_i_SHA256Context ctx;
ctx.H = h;
ctx.unprocessed_bytes = unprocessed;
ctx.num_unprocessed_bytes = 0;
ctx.num_total_bytes = 0;
sha256_main_i_SHA256_Init(&ctx);
sha256_main_i_SHA256_Update(&ctx, plaintext, 0, 3);
sha256_main_i_SHA256_Final(&ctx, output);
*/
sha256_main_i_SHA256_Complete(plaintext, 0, 3, output);
/*
// Reverse byte order of 4-byte chunks of output
for (int i = 0; i < 8; i++) {
uint32_t v = ((uint32_t *) output)[i];
output[i * 4] = v >> 24;
output[i * 4 + 1] = v >> 16;
output[i * 4 + 2] = v >> 8;
output[i * 4 + 3] = v;
}
*/
printf("Expected digest : ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad\n");
printf("4-byte chunks of digest as uint32_t's: ");
for (int i = 0; i < 8; i++) {
printf("%02x", ((uint32_t *) output)[i]);
}
printf("\n");
printf("Digest byte by byte : ");
for (int i = 0; i < 32; i++) {
printf("%02x", ((uint8_t *) output)[i]);
}
printf("\n");
return 0;
}
| Add standalone test for Vale SHA2-256 | Add standalone test for Vale SHA2-256
| C | apache-2.0 | mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star |
|
067bb0d1183573504aa10ac2132c37aa0dac4aa6 | libraries/base/cbits/PrelIOUtils.c | libraries/base/cbits/PrelIOUtils.c | /*
* (c) The University of Glasgow 2002
*
* static versions of the inline functions in HsCore.h
*/
#define INLINE
#ifdef __GLASGOW_HASKELL__
# include "Rts.h"
#endif
#include "HsBase.h"
#ifdef __GLASGOW_HASKELL__
void errorBelch2(const char*s, char *t)
{
errorBelch(s,t);
}
void debugBelch2(const char*s, char *t)
{
debugBelch(s,t);
}
#if defined(HAVE_LIBCHARSET)
# include <libcharset.h>
#elif defined(HAVE_LANGINFO_H)
# include <langinfo.h>
#endif
#if !defined(mingw32_HOST_OS)
const char* localeEncoding(void)
{
#if defined(HAVE_LIBCHARSET)
return locale_charset();
#elif defined(HAVE_LANGINFO_H)
return nl_langinfo(CODESET);
#else
#warning Depending on the unportable behavior of GNU iconv due to absence of both libcharset and langinfo.h
/* GNU iconv accepts "" to mean the current locale's
* encoding. Warning: This isn't portable.
*/
return "";
#endif
}
#endif
#endif /* __GLASGOW_HASKELL__ */
| /*
* (c) The University of Glasgow 2002
*
* static versions of the inline functions in HsBase.h
*/
#define INLINE
#ifdef __GLASGOW_HASKELL__
# include "Rts.h"
#endif
#include "HsBase.h"
#ifdef __GLASGOW_HASKELL__
void errorBelch2(const char*s, char *t)
{
errorBelch(s,t);
}
void debugBelch2(const char*s, char *t)
{
debugBelch(s,t);
}
#if defined(HAVE_LIBCHARSET)
# include <libcharset.h>
#elif defined(HAVE_LANGINFO_H)
# include <langinfo.h>
#endif
#if !defined(mingw32_HOST_OS)
const char* localeEncoding(void)
{
#if defined(HAVE_LIBCHARSET)
return locale_charset();
#elif defined(HAVE_LANGINFO_H)
return nl_langinfo(CODESET);
#else
#warning Depending on the unportable behavior of GNU iconv due to absence of both libcharset and langinfo.h
/* GNU iconv accepts "" to mean the current locale's
* encoding. Warning: This isn't portable.
*/
return "";
#endif
}
#endif
#endif /* __GLASGOW_HASKELL__ */
| Update a comment in base cbits | Update a comment in base cbits
| C | bsd-3-clause | ezyang/ghc,urbanslug/ghc,TomMD/ghc,shlevy/ghc,TomMD/ghc,tjakway/ghcjvm,sdiehl/ghc,mettekou/ghc,siddhanathan/ghc,TomMD/ghc,sgillespie/ghc,nathyong/microghc-ghc,jstolarek/ghc,nathyong/microghc-ghc,ezyang/ghc,gridaphobe/ghc,ml9951/ghc,mcschroeder/ghc,da-x/ghc,ml9951/ghc,oldmanmike/ghc,anton-dessiatov/ghc,sdiehl/ghc,nathyong/microghc-ghc,green-haskell/ghc,vikraman/ghc,spacekitteh/smcghc,da-x/ghc,nushio3/ghc,acowley/ghc,siddhanathan/ghc,oldmanmike/ghc,GaloisInc/halvm-ghc,wxwxwwxxx/ghc,spacekitteh/smcghc,TomMD/ghc,mfine/ghc,vikraman/ghc,da-x/ghc,olsner/ghc,vTurbine/ghc,anton-dessiatov/ghc,nkaretnikov/ghc,vikraman/ghc,TomMD/ghc,nkaretnikov/ghc,anton-dessiatov/ghc,GaloisInc/halvm-ghc,vTurbine/ghc,gridaphobe/ghc,forked-upstream-packages-for-ghcjs/ghc,ml9951/ghc,nkaretnikov/ghc,AlexanderPankiv/ghc,jstolarek/ghc,urbanslug/ghc,jstolarek/ghc,gcampax/ghc,ezyang/ghc,mcschroeder/ghc,bitemyapp/ghc,sgillespie/ghc,oldmanmike/ghc,snoyberg/ghc,nushio3/ghc,nathyong/microghc-ghc,forked-upstream-packages-for-ghcjs/ghc,mcschroeder/ghc,GaloisInc/halvm-ghc,olsner/ghc,acowley/ghc,mfine/ghc,gcampax/ghc,gcampax/ghc,mettekou/ghc,siddhanathan/ghc,mettekou/ghc,snoyberg/ghc,wxwxwwxxx/ghc,wxwxwwxxx/ghc,shlevy/ghc,da-x/ghc,ezyang/ghc,mfine/ghc,ghc-android/ghc,olsner/ghc,green-haskell/ghc,wxwxwwxxx/ghc,nathyong/microghc-ghc,nushio3/ghc,gcampax/ghc,mfine/ghc,sgillespie/ghc,anton-dessiatov/ghc,nushio3/ghc,elieux/ghc,siddhanathan/ghc,fmthoma/ghc,christiaanb/ghc,vTurbine/ghc,TomMD/ghc,TomMD/ghc,green-haskell/ghc,anton-dessiatov/ghc,vTurbine/ghc,oldmanmike/ghc,christiaanb/ghc,sgillespie/ghc,wxwxwwxxx/ghc,fmthoma/ghc,da-x/ghc,AlexanderPankiv/ghc,AlexanderPankiv/ghc,bitemyapp/ghc,snoyberg/ghc,tjakway/ghcjvm,nkaretnikov/ghc,urbanslug/ghc,gcampax/ghc,ezyang/ghc,AlexanderPankiv/ghc,elieux/ghc,elieux/ghc,shlevy/ghc,spacekitteh/smcghc,sgillespie/ghc,christiaanb/ghc,wxwxwwxxx/ghc,fmthoma/ghc,sdiehl/ghc,urbanslug/ghc,nushio3/ghc,mettekou/ghc,snoyberg/ghc,jstolarek/ghc,vTurbine/ghc,tjakway/ghcjvm,acowley/ghc,shlevy/ghc,gridaphobe/ghc,ezyang/ghc,vTurbine/ghc,olsner/ghc,ml9951/ghc,siddhanathan/ghc,mettekou/ghc,christiaanb/ghc,gridaphobe/ghc,fmthoma/ghc,vTurbine/ghc,fmthoma/ghc,ghc-android/ghc,gridaphobe/ghc,elieux/ghc,forked-upstream-packages-for-ghcjs/ghc,christiaanb/ghc,forked-upstream-packages-for-ghcjs/ghc,urbanslug/ghc,snoyberg/ghc,sdiehl/ghc,elieux/ghc,nathyong/microghc-ghc,forked-upstream-packages-for-ghcjs/ghc,tjakway/ghcjvm,shlevy/ghc,vikraman/ghc,ml9951/ghc,nushio3/ghc,mfine/ghc,AlexanderPankiv/ghc,ml9951/ghc,urbanslug/ghc,oldmanmike/ghc,nushio3/ghc,ghc-android/ghc,oldmanmike/ghc,bitemyapp/ghc,fmthoma/ghc,siddhanathan/ghc,acowley/ghc,forked-upstream-packages-for-ghcjs/ghc,bitemyapp/ghc,sdiehl/ghc,GaloisInc/halvm-ghc,ezyang/ghc,acowley/ghc,shlevy/ghc,nathyong/microghc-ghc,mcschroeder/ghc,ml9951/ghc,GaloisInc/halvm-ghc,nkaretnikov/ghc,tjakway/ghcjvm,gridaphobe/ghc,gcampax/ghc,fmthoma/ghc,vikraman/ghc,ghc-android/ghc,sgillespie/ghc,forked-upstream-packages-for-ghcjs/ghc,vikraman/ghc,tjakway/ghcjvm,ghc-android/ghc,sdiehl/ghc,AlexanderPankiv/ghc,nkaretnikov/ghc,anton-dessiatov/ghc,bitemyapp/ghc,elieux/ghc,nkaretnikov/ghc,green-haskell/ghc,mfine/ghc,gridaphobe/ghc,siddhanathan/ghc,oldmanmike/ghc,da-x/ghc,shlevy/ghc,mettekou/ghc,urbanslug/ghc,mfine/ghc,GaloisInc/halvm-ghc,olsner/ghc,snoyberg/ghc,wxwxwwxxx/ghc,mettekou/ghc,sdiehl/ghc,spacekitteh/smcghc,christiaanb/ghc,GaloisInc/halvm-ghc,spacekitteh/smcghc,acowley/ghc,olsner/ghc,olsner/ghc,vikraman/ghc,elieux/ghc,snoyberg/ghc,anton-dessiatov/ghc,AlexanderPankiv/ghc,mcschroeder/ghc,acowley/ghc,ghc-android/ghc,sgillespie/ghc,tjakway/ghcjvm,ghc-android/ghc,ml9951/ghc,mcschroeder/ghc,gcampax/ghc,da-x/ghc,green-haskell/ghc,mcschroeder/ghc,christiaanb/ghc,jstolarek/ghc |
70f269b59dbd1f483940d401e6e82fe5f2408a92 | utils/log.h | utils/log.h | /*
* Copyright 2003 James Bursa <[email protected]>
* Copyright 2004 John Tytgat <[email protected]>
*
* This file is part of NetSurf, http://www.netsurf-browser.org/
* Licenced under the MIT License,
* http://www.opensource.org/licenses/mit-license.php
*/
#include <stdio.h>
#ifndef _LIBNSGIF_LOG_H_
#define _LIBNSGIF_LOG_H_
#ifdef NDEBUG
# define LOG(x) ((void) 0)
#else
# ifdef __GNUC__
# define LOG(x) do { printf x, fputc('\n', stdout)); } while (0)
# elif defined(__CC_NORCROFT)
# define LOG(x) do { printf x, fputc('\n', stdout)); } while (0)
# else
# define LOG(x) do { printf x, fputc('\n', stdout)); } while (0)
# endif
#endif
#endif
| /*
* Copyright 2003 James Bursa <[email protected]>
* Copyright 2004 John Tytgat <[email protected]>
*
* This file is part of NetSurf, http://www.netsurf-browser.org/
* Licenced under the MIT License,
* http://www.opensource.org/licenses/mit-license.php
*/
#include <stdio.h>
#ifndef _LIBNSBMP_LOG_H_
#define _LIBNSBMP_LOG_H_
#ifdef NDEBUG
# define LOG(x) ((void) 0)
#else
# ifdef __GNUC__
# define LOG(x) do { printf x, fputc('\n', stdout)); } while (0)
# elif defined(__CC_NORCROFT)
# define LOG(x) do { printf x, fputc('\n', stdout)); } while (0)
# else
# define LOG(x) do { printf x, fputc('\n', stdout)); } while (0)
# endif
#endif
#endif
| Fix misleading dbl header include protection test. | Fix misleading dbl header include protection test.
svn path=/trunk/libnsbmp/; revision=5312
| C | mit | dkua/libnsbmp,dkua/libnsbmp |
664508dc503dff2492306255827eb1861cfb8ce0 | tests/c-api-tests/parsestring-using-cinterface.c | tests/c-api-tests/parsestring-using-cinterface.c | #include <stdio.h>
#include "c_interface.h"
int main() {
VC vc = vc_createValidityChecker();
vc_setFlags(vc,'n');
vc_setFlags(vc,'d');
vc_setFlags(vc,'p');
vc_setFlags(vc,'m');
Expr q;
Expr asserts;
const char* s = "(benchmark fg.smt\n"
":logic QF_AUFBV\n"
":extrafuns ((x_32 BitVec[32]))\n"
":extrafuns ((y32 BitVec[32]))\n"
":assumption true\n)\n";
vc_parseMemExpr(vc,s,&q,&asserts);
vc_printExpr(vc, q);
vc_printExpr(vc, asserts);
printf("\n");
vc_Destroy(vc);
}
| Fix regresscapi. This file wasn't checked in | Fix regresscapi. This file wasn't checked in
| C | mit | kyledewey/stp,kyledewey/stp,kyledewey/stp,kyledewey/stp,kyledewey/stp,kyledewey/stp |
|
4ef5651e85589e3aaca704c6d2d7ae7e794e5d25 | arch/mips/include/asm/bug.h | arch/mips/include/asm/bug.h | #ifndef __ASM_BUG_H
#define __ASM_BUG_H
#include <linux/compiler.h>
#include <asm/sgidefs.h>
#ifdef CONFIG_BUG
#include <asm/break.h>
static inline void __noreturn BUG(void)
{
__asm__ __volatile__("break %0" : : "i" (BRK_BUG));
/* Fool GCC into thinking the function doesn't return. */
while (1)
;
}
#define HAVE_ARCH_BUG
#if (_MIPS_ISA > _MIPS_ISA_MIPS1)
static inline void __BUG_ON(unsigned long condition)
{
if (__builtin_constant_p(condition)) {
if (condition)
BUG();
else
return;
}
__asm__ __volatile__("tne $0, %0, %1"
: : "r" (condition), "i" (BRK_BUG));
}
#define BUG_ON(C) __BUG_ON((unsigned long)(C))
#define HAVE_ARCH_BUG_ON
#endif /* _MIPS_ISA > _MIPS_ISA_MIPS1 */
#endif
#include <asm-generic/bug.h>
#endif /* __ASM_BUG_H */
| #ifndef __ASM_BUG_H
#define __ASM_BUG_H
#include <linux/compiler.h>
#include <asm/sgidefs.h>
#ifdef CONFIG_BUG
#include <asm/break.h>
static inline void __noreturn BUG(void)
{
__asm__ __volatile__("break %0" : : "i" (BRK_BUG));
unreachable();
}
#define HAVE_ARCH_BUG
#if (_MIPS_ISA > _MIPS_ISA_MIPS1)
static inline void __BUG_ON(unsigned long condition)
{
if (__builtin_constant_p(condition)) {
if (condition)
BUG();
else
return;
}
__asm__ __volatile__("tne $0, %0, %1"
: : "r" (condition), "i" (BRK_BUG));
}
#define BUG_ON(C) __BUG_ON((unsigned long)(C))
#define HAVE_ARCH_BUG_ON
#endif /* _MIPS_ISA > _MIPS_ISA_MIPS1 */
#endif
#include <asm-generic/bug.h>
#endif /* __ASM_BUG_H */
| Convert BUG() to use unreachable() | MIPS: Convert BUG() to use unreachable()
Use the new unreachable() macro instead of while(1);
Signed-off-by: David Daney <[email protected]>
Acked-by: Ralf Baechle <[email protected]>
CC: [email protected]
Signed-off-by: Linus Torvalds <[email protected]>
| C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas |
d3f6edf4589da29a8694b00e797910e2e3f886f5 | tools/checkscp.c | tools/checkscp.c | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include "scp.h"
unsigned char scp_processheader(FILE *scpfile)
{
return 0;
}
void scp_processtrack(FILE *scpfile, const unsigned char track)
{
}
int main(int argc, char **argv)
{
unsigned char numtracks;
unsigned char track;
FILE *fp;
if (argc!=2)
{
printf("Specify .scp on command line\n");
return 1;
}
fp=fopen(argv[1], "rb");
if (fp==NULL)
{
printf("Unable to open file\n");
return 2;
}
numtracks=scp_processheader(fp);
for (track=0; track<numtracks; track++)
scp_processtrack(fp, track);
fclose(fp);
return 0;
}
| #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "scp.h"
struct scp_header header;
unsigned char scp_processheader(FILE *scpfile)
{
fread(&header, 1, sizeof(header), scpfile);
if (strncmp((char *)&header.magic, SCP_MAGIC, strlen(SCP_MAGIC))!=0)
{
printf("Not an SCP file\n");
return 0;
}
printf("SCP magic detected\n");
printf("Version: %d.%d\n", header.version>>4, header.version&0x0f);
printf("Disk type: %d %d\n", header.disktype>>4, header.disktype&0x0f);
printf("Revolutions: %d\n", header.revolutions);
printf("Tracks: %d to %d\n", header.starttrack, header.endtrack);
printf("Flags: 0x%.2x\n", header.flags);
printf("Bitcell encoding: %d bits\n", header.bitcellencoding==0?16:header.bitcellencoding);
printf("Heads: %d\n", header.heads);
printf("Resolution: %dns\n", (header.resolution+1)*SCP_BASE_NS);
printf("Checksum: 0x%.8x\n", header.checksum);
printf("Tracks in SCP: %d\n", header.endtrack-header.starttrack);
return 0;
}
void scp_processtrack(FILE *scpfile, const unsigned char track)
{
}
int main(int argc, char **argv)
{
unsigned char numtracks;
unsigned char track;
FILE *fp;
if (argc!=2)
{
printf("Specify .scp on command line\n");
return 1;
}
fp=fopen(argv[1], "rb");
if (fp==NULL)
{
printf("Unable to open file\n");
return 2;
}
numtracks=scp_processheader(fp);
for (track=0; track<numtracks; track++)
scp_processtrack(fp, track);
fclose(fp);
return 0;
}
| Check magic and output header fields | Check magic and output header fields
| C | mit | picosonic/bbc-fdc,picosonic/bbc-fdc |
a1199a9863cc34c78bc0e63e3ea0c9420abeacb1 | MFSideMenu/MFSideMenuShadow.h | MFSideMenu/MFSideMenuShadow.h | //
// MFSideMenuShadow.h
// MFSideMenuDemoSearchBar
//
// Created by Michael Frederick on 5/13/13.
// Copyright (c) 2013 Frederick Development. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface MFSideMenuShadow : NSObject
@property (nonatomic, assign) BOOL enabled;
@property (nonatomic, assign) CGFloat radius;
@property (nonatomic, assign) CGFloat opacity;
@property (nonatomic, strong) UIColor *color;
@property (nonatomic, assign) UIView *shadowedView;
+ (MFSideMenuShadow *)shadowWithView:(UIView *)shadowedView;
+ (MFSideMenuShadow *)shadowWithColor:(UIColor *)color radius:(CGFloat)radius opacity:(CGFloat)opacity;
- (void)draw;
- (void)shadowedViewWillRotate;
- (void)shadowedViewDidRotate;
@end
| //
// MFSideMenuShadow.h
// MFSideMenuDemoSearchBar
//
// Created by Michael Frederick on 5/13/13.
// Copyright (c) 2013 Frederick Development. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface MFSideMenuShadow : NSObject
@property (nonatomic, assign) BOOL enabled;
@property (nonatomic, assign) CGFloat radius;
@property (nonatomic, assign) CGFloat opacity;
@property (nonatomic, strong) UIColor *color;
@property (nonatomic, assign) UIView *shadowedView;
+ (MFSideMenuShadow *)shadowWithView:(UIView *)shadowedView;
+ (MFSideMenuShadow *)shadowWithColor:(UIColor *)color radius:(CGFloat)radius opacity:(CGFloat)opacity;
- (void)draw;
- (void)shadowedViewWillRotate;
- (void)shadowedViewDidRotate;
@end
| Include UIKit to h file, because change pch to h for two files in main project and refactor all needed includes. | Include UIKit to h file, because change pch to h for two files in main project and refactor all needed includes.
| C | bsd-3-clause | AxialExchange/MFSideMenu |
842e55bd409151abc805b2e0595346821c3f6c83 | as6502/common.h | as6502/common.h | //
// common.h
// v6502
//
// Created by Daniel Loffgren on H.25/05/05.
// Copyright (c) 平成25年 Hello-Channel, LLC. All rights reserved.
//
#ifndef v6502_common_h
#define v6502_common_h
void die(const char *reason);
#endif
| //
// common.h
// v6502
//
// Created by Daniel Loffgren on H.25/05/05.
// Copyright (c) 平成25年 Hello-Channel, LLC. All rights reserved.
//
#ifndef v6502_common_h
#define v6502_common_h
__attribute((noreturn)) void die(const char *reason);
#endif
| Make sure static analyzer can see die's noreturn attribute | Make sure static analyzer can see die's noreturn attribute
git-svn-id: dd14d189f2554b0b3f4c2209a95c13d2029e3fe8@183 96dfbd92-d197-e211-9ca9-00110a534b34
| C | mit | RyuKojiro/v6502 |
512dd8c387681b748f43660144d64895f593973f | features/FEATURE_BLE/ble/BLETypes.h | features/FEATURE_BLE/ble/BLETypes.h | /* mbed Microcontroller Library
* Copyright (c) 2017-2017 ARM Limited
*
* 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, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef BLE_TYPES_H_
#define BLE_TYPES_H_
#include <stddef.h>
#include <stdint.h>
namespace ble {
/**
* A connection handle is an unsigned integer capable of holding a pointer.
* The real type (either a pointer to an object or an integer) is opaque and
* platform dependent.
*/
typedef uintptr_t connection_handle_t;
/**
* Model an attribute handle in a GATT database.
*/
typedef uint16_t attribute_handle_t;
/**
* Model an inclusive range of GATT attributes handles.
*/
struct attribute_handle_range_t {
attribute_handle_t begin;
attribute_handle_t end;
friend bool operator==(
const attribute_handle_range_t& lhs, const attribute_handle_range_t& rhs
) {
return (lhs.begin == rhs.begin) && (lhs.end == rhs.end);
}
friend bool operator!=(
const attribute_handle_range_t& lhs, const attribute_handle_range_t& rhs
) {
return !(lhs == rhs);
}
};
/**
* Construct an attribute_handle_range_t from its start and end handle.
* @note This function is defined instead of a constructor to keep "POD-ness"
* of attribute_handle_range_t.
*/
static inline attribute_handle_range_t attribute_handle_range(
attribute_handle_t begin,
attribute_handle_t end
) {
attribute_handle_range_t result = {
begin,
end
};
return result;
}
} // namespace ble
#endif /* BLE_TYPES_H_ */
| Add collection of basic BLE types shared accross all layers. | BLE: Add collection of basic BLE types shared accross all layers.
| C | apache-2.0 | HeadsUpDisplayInc/mbed,infinnovation/mbed-os,karsev/mbed-os,nRFMesh/mbed-os,ryankurte/mbed-os,kjbracey-arm/mbed,kjbracey-arm/mbed,c1728p9/mbed-os,HeadsUpDisplayInc/mbed,catiedev/mbed-os,Archcady/mbed-os,infinnovation/mbed-os,mazimkhan/mbed-os,andcor02/mbed-os,mazimkhan/mbed-os,Archcady/mbed-os,kjbracey-arm/mbed,catiedev/mbed-os,Archcady/mbed-os,CalSol/mbed,karsev/mbed-os,nRFMesh/mbed-os,CalSol/mbed,infinnovation/mbed-os,HeadsUpDisplayInc/mbed,c1728p9/mbed-os,ryankurte/mbed-os,mazimkhan/mbed-os,andcor02/mbed-os,HeadsUpDisplayInc/mbed,betzw/mbed-os,mbedmicro/mbed,nRFMesh/mbed-os,betzw/mbed-os,karsev/mbed-os,Archcady/mbed-os,mazimkhan/mbed-os,CalSol/mbed,mbedmicro/mbed,betzw/mbed-os,karsev/mbed-os,andcor02/mbed-os,mazimkhan/mbed-os,CalSol/mbed,andcor02/mbed-os,andcor02/mbed-os,infinnovation/mbed-os,infinnovation/mbed-os,nRFMesh/mbed-os,nRFMesh/mbed-os,karsev/mbed-os,c1728p9/mbed-os,catiedev/mbed-os,ryankurte/mbed-os,andcor02/mbed-os,betzw/mbed-os,catiedev/mbed-os,catiedev/mbed-os,mazimkhan/mbed-os,infinnovation/mbed-os,mbedmicro/mbed,kjbracey-arm/mbed,ryankurte/mbed-os,c1728p9/mbed-os,c1728p9/mbed-os,Archcady/mbed-os,mbedmicro/mbed,HeadsUpDisplayInc/mbed,c1728p9/mbed-os,karsev/mbed-os,Archcady/mbed-os,nRFMesh/mbed-os,catiedev/mbed-os,betzw/mbed-os,betzw/mbed-os,HeadsUpDisplayInc/mbed,ryankurte/mbed-os,ryankurte/mbed-os,CalSol/mbed,mbedmicro/mbed,CalSol/mbed |
|
541b99466e6b0bce16a105cef2fbfb44e7932e2a | test/Sema/neon-vector-types.c | test/Sema/neon-vector-types.c | // RUN: %clang_cc1 %s -fsyntax-only -verify
typedef float float32_t;
typedef signed char poly8_t;
typedef short poly16_t;
typedef unsigned long long uint64_t;
// Define some valid Neon types.
typedef __attribute__((neon_vector_type(2))) int int32x2_t;
typedef __attribute__((neon_vector_type(4))) int int32x4_t;
typedef __attribute__((neon_vector_type(1))) uint64_t uint64x1_t;
typedef __attribute__((neon_vector_type(2))) uint64_t uint64x2_t;
typedef __attribute__((neon_vector_type(2))) float32_t float32x2_t;
typedef __attribute__((neon_vector_type(4))) float32_t float32x4_t;
typedef __attribute__((neon_polyvector_type(16))) poly8_t poly8x16_t;
typedef __attribute__((neon_polyvector_type(8))) poly16_t poly16x8_t;
// The attributes must have a single argument.
typedef __attribute__((neon_vector_type(2, 4))) int only_one_arg; // expected-error{{attribute requires 1 argument(s)}}
// The number of elements must be an ICE.
typedef __attribute__((neon_vector_type(2.0))) int non_int_width; // expected-error{{attribute requires integer constant}}
// Only certain element types are allowed.
typedef __attribute__((neon_vector_type(2))) double double_elt; // expected-error{{invalid vector element type}}
typedef __attribute__((neon_vector_type(4))) void* ptr_elt; // expected-error{{invalid vector element type}}
typedef __attribute__((neon_polyvector_type(4))) float32_t bad_poly_elt; // expected-error{{invalid vector element type}}
struct aggr { signed char c; };
typedef __attribute__((neon_vector_type(8))) struct aggr aggregate_elt; // expected-error{{invalid vector element type}}
// The total vector size must be 64 or 128 bits.
typedef __attribute__((neon_vector_type(1))) int int32x1_t; // expected-error{{Neon vector size must be 64 or 128 bits}}
typedef __attribute__((neon_vector_type(3))) int int32x3_t; // expected-error{{Neon vector size must be 64 or 128 bits}}
| Add tests for new Neon vector type attributes. | Add tests for new Neon vector type attributes.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@119303 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang |
|
a1893ca13b9fc87ebde6472240436a15645704c0 | include/nekit/utils/error.h | include/nekit/utils/error.h | // MIT License
// Copyright (c) 2017 Zhuhao Wang
// 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, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#pragma once
#include <system_error>
namespace nekit {
namespace utils {
typedef std::error_code Error;
} // namespace utils
} // namespace nekit
| // MIT License
// Copyright (c) 2017 Zhuhao Wang
// 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, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#pragma once
#include <system_error>
namespace nekit {
namespace utils {
using Error = std::error_code;
} // namespace utils
} // namespace nekit
| Use `using` instead of `typedef` | STYLE: Use `using` instead of `typedef`
| C | mit | zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit |
1a8eebb5f92e2b2545612ab8d2c5132719c55c96 | simulator/kernel/kernel.h | simulator/kernel/kernel.h | /*
* kernel.h - base kernel class
* @author Vyacheslav Kompan [email protected]
* Copyright 2018 MIPT-MIPS
*/
#ifndef KERNEL_H
#define KERNEL_H
/* Simulator modules */
#include <memory/memory.h>
#include <simulator.h>
/* Generic C++ */
#include <memory>
class Kernel {
std::weak_ptr<Simulator> sim;
std::shared_ptr<FuncMemory> mem;
public:
static std::shared_ptr<Kernel> create_kernel() {
return std::make_shared<Kernel>();
}
void set_simulator( std::shared_ptr<Simulator> sim) { this->sim = sim; }
void set_memory( std::shared_ptr<FuncMemory> mem) { this->mem = std::move( mem); }
/* Return false if simulator should be stopped, e.g. on 'exit' syscall */
virtual bool execute() { return true; }
Kernel() = default;
Kernel( const Kernel&) = delete;
Kernel( Kernel&&) = delete;
Kernel operator=( const Kernel&) = delete;
Kernel operator=( Kernel&&) = delete;
};
#endif //KERNEL_H
| /*
* kernel.h - base kernel class
* @author Vyacheslav Kompan [email protected]
* Copyright 2018 MIPT-MIPS
*/
#ifndef KERNEL_H
#define KERNEL_H
/* Simulator modules */
#include <memory/memory.h>
#include <simulator.h>
/* Generic C++ */
#include <memory>
class Kernel {
std::weak_ptr<Simulator> sim;
std::shared_ptr<FuncMemory> mem;
public:
static std::shared_ptr<Kernel> create_kernel() {
return std::make_shared<Kernel>();
}
void set_simulator( std::shared_ptr<Simulator> s) { sim = s; }
void set_memory( std::shared_ptr<FuncMemory> m) { mem = std::move( m); }
/* Return false if simulator should be stopped, e.g. on 'exit' syscall */
virtual bool execute() { return true; }
Kernel() = default;
Kernel( const Kernel&) = delete;
Kernel( Kernel&&) = delete;
Kernel operator=( const Kernel&) = delete;
Kernel operator=( Kernel&&) = delete;
};
#endif //KERNEL_H
| Rename Kernel setter methods arguments | Rename Kernel setter methods arguments
| C | mit | MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015 |
82d35af306f00b277c29502adc76f44e27d06dc6 | src/binder/multidispatch.h | src/binder/multidispatch.h | /* This is how a Code looks on the inside. Once again, C struct that should
* match what P6opaque computes for the Code class. */
typedef struct {
PMC *st; /* S-table, though we don't care about that here. */
PMC *sc; /* Serialization context, though we don't care about that here. */
PMC *spill; /* Attribute spill storage. */
PMC *_do; /* Lower-level code object. */
PMC *signature; /* Signature object. */
PMC *dispatchees; /* List of dispatchees, if any. */
PMC *dispatcher_info; /* Holder for any extra dispatcher info. */
} Rakudo_Code;
/* Represents a candidate. We extract various bits of information about it when
* we are building the sorted candidate list and store them in here for fast
* access during a dispatch. */
typedef struct {
PMC *sub; /* The sub that is the candidate. */
PMC *signature; /* The signature of the sub. */
PMC **types; /* Class or role type constraints for each parameter. */
PMC **constraints; /* Refinement type constraints for each parameter. */
INTVAL num_types; /* Number of entries in the above two arrays. */
INTVAL min_arity; /* Number of required positional arguments. */
INTVAL max_arity; /* Number of required and optional positional arguments. */
INTVAL bind_check; /* A true value if any parameters have constraints and/or are named. */
STRING *req_named; /* Name of one required named argument, if any. This is to allow us
* to quickly rule out candidates disambiguated by a required named
* argument, as is the common case for traits. */
} Rakudo_md_candidate_info;
/* Overall multi-dispatcher info, which we will hang off the dispatcher
* info slot in a dispatcher sub. */
typedef struct {
Rakudo_md_candidate_info **candidates;
/* XXX TODO: Cache goes here also. */
} Rakudo_md_info;
/* Represents the produced information about a candidate as well as the graph
* edges originating from it. The edges array contains pointers to the edges
* in the graph that we have arrows to. */
typedef struct candidate_graph_node {
Rakudo_md_candidate_info *info;
struct candidate_graph_node **edges;
INTVAL edges_in;
INTVAL edges_out;
} Rakudo_md_candidate_graph_node;
| Move various multi-dispatch data structures into a header file, plus way that we'll be able to get at the dispatcher list, dispatcher info stash and so forth. | Move various multi-dispatch data structures into a header file, plus way that we'll be able to get at the dispatcher list, dispatcher info stash and so forth.
| C | artistic-2.0 | rakudo/rakudo,labster/rakudo,awwaiid/rakudo,niner/rakudo,rakudo/rakudo,softmoth/rakudo,dwarring/rakudo,jonathanstowe/rakudo,ungrim97/rakudo,Gnouc/rakudo,LLFourn/rakudo,azawawi/rakudo,ab5tract/rakudo,b2gills/rakudo,pmurias/rakudo,tbrowder/rakudo,b2gills/rakudo,retupmoca/rakudo,rakudo/rakudo,ungrim97/rakudo,samcv/rakudo,ungrim97/rakudo,salortiz/rakudo,LLFourn/rakudo,pmurias/rakudo,zhuomingliang/rakudo,laben/rakudo,skids/rakudo,ugexe/rakudo,MasterDuke17/rakudo,sergot/rakudo,jonathanstowe/rakudo,LLFourn/rakudo,sjn/rakudo,samcv/rakudo,ab5tract/rakudo,sjn/rakudo,paultcochrane/rakudo,nbrown/rakudo,Gnouc/rakudo,sergot/rakudo,cygx/rakudo,jonathanstowe/rakudo,MasterDuke17/rakudo,azawawi/rakudo,skids/rakudo,tony-o/rakudo,salortiz/rakudo,tony-o/deb-rakudodaily,teodozjan/rakudo,Gnouc/rakudo,awwaiid/rakudo,retupmoca/rakudo,zostay/rakudo,ab5tract/rakudo,zhuomingliang/rakudo,cognominal/rakudo,LLFourn/rakudo,zostay/rakudo,tony-o/rakudo,dankogai/rakudo,lucasbuchala/rakudo,salortiz/rakudo,samcv/rakudo,cognominal/rakudo,ab5tract/rakudo,nunorc/rakudo,tbrowder/rakudo,paultcochrane/rakudo,jonathanstowe/rakudo,nbrown/rakudo,sjn/rakudo,usev6/rakudo,raydiak/rakudo,samcv/rakudo,paultcochrane/rakudo,rakudo/rakudo,teodozjan/rakudo,awwaiid/rakudo,nbrown/rakudo,Leont/rakudo,niner/rakudo,tony-o/rakudo,salortiz/rakudo,ungrim97/rakudo,tbrowder/rakudo,skids/rakudo,cognominal/rakudo,lucasbuchala/rakudo,rakudo/rakudo,tbrowder/rakudo,azawawi/rakudo,tony-o/rakudo,dwarring/rakudo,usev6/rakudo,raydiak/rakudo,usev6/rakudo,dankogai/rakudo,Leont/rakudo,rjbs/rakudo,raydiak/rakudo,dankogai/rakudo,lucasbuchala/rakudo,Gnouc/rakudo,teodozjan/rakudo,tony-o/rakudo,cognominal/rakudo,rjbs/rakudo,tony-o/rakudo,salortiz/rakudo,zhuomingliang/rakudo,softmoth/rakudo,laben/rakudo,b2gills/rakudo,lucasbuchala/rakudo,rjbs/rakudo,LLFourn/rakudo,tbrowder/rakudo,jonathanstowe/rakudo,laben/rakudo,awwaiid/rakudo,softmoth/rakudo,sjn/rakudo,Leont/rakudo,tony-o/deb-rakudodaily,tony-o/deb-rakudodaily,nbrown/rakudo,labster/rakudo,ugexe/rakudo,tony-o/deb-rakudodaily,softmoth/rakudo,skids/rakudo,b2gills/rakudo,dankogai/rakudo,pmurias/rakudo,azawawi/rakudo,niner/rakudo,labster/rakudo,nunorc/rakudo,MasterDuke17/rakudo,tony-o/deb-rakudodaily,paultcochrane/rakudo,labster/rakudo,Gnouc/rakudo,raydiak/rakudo,nbrown/rakudo,labster/rakudo,dankogai/rakudo,nunorc/rakudo,samcv/rakudo,ungrim97/rakudo,ugexe/rakudo,lucasbuchala/rakudo,laben/rakudo,tony-o/deb-rakudodaily,sergot/rakudo,rakudo/rakudo,tbrowder/rakudo,cognominal/rakudo,ugexe/rakudo,softmoth/rakudo,usev6/rakudo,dwarring/rakudo,MasterDuke17/rakudo,MasterDuke17/rakudo,sjn/rakudo,cygx/rakudo,usev6/rakudo,ab5tract/rakudo,labster/rakudo,retupmoca/rakudo,skids/rakudo,azawawi/rakudo,pmurias/rakudo,retupmoca/rakudo,paultcochrane/rakudo,zhuomingliang/rakudo,zostay/rakudo,cygx/rakudo,nunorc/rakudo,Leont/rakudo,nbrown/rakudo,Gnouc/rakudo,teodozjan/rakudo,sergot/rakudo,ugexe/rakudo,tony-o/deb-rakudodaily,zostay/rakudo,MasterDuke17/rakudo,niner/rakudo,dwarring/rakudo,awwaiid/rakudo,salortiz/rakudo,b2gills/rakudo,cygx/rakudo,cygx/rakudo |
|
688499b9a6d027ad71dbc4718f9c3b8a48dba776 | src/salut.c | src/salut.c | #include "config.h"
#include <glib.h>
#include <telepathy-glib/run.h>
#include <telepathy-glib/debug.h>
#include "salut-connection-manager.h"
#include "salut-avahi-discovery-client.h"
#include "debug.h"
static TpBaseConnectionManager *
salut_create_connection_manager (void)
{
return TP_BASE_CONNECTION_MANAGER (
g_object_new (SALUT_TYPE_CONNECTION_MANAGER,
"backend-type", SALUT_TYPE_AVAHI_DISCOVERY_CLIENT,
NULL));
}
int
main (int argc, char **argv)
{
g_type_init ();
g_thread_init (NULL);
g_set_prgname ("telepathy-salut");
#ifdef ENABLE_DEBUG
tp_debug_divert_messages (g_getenv ("SALUT_LOGFILE"));
debug_set_flags_from_env ();
if (g_getenv ("SALUT_PERSIST"))
tp_debug_set_persistent (TRUE);
#endif
return tp_run_connection_manager ("telepathy-salut", VERSION,
salut_create_connection_manager,
argc, argv);
}
| #include "config.h"
#include <glib.h>
#include <telepathy-glib/run.h>
#include <telepathy-glib/debug.h>
#include "salut-connection-manager.h"
#include "salut-avahi-discovery-client.h"
#include "debug.h"
static TpBaseConnectionManager *
salut_create_connection_manager (void)
{
return TP_BASE_CONNECTION_MANAGER (
g_object_new (SALUT_TYPE_CONNECTION_MANAGER,
"backend-type", SALUT_TYPE_AVAHI_DISCOVERY_CLIENT,
NULL));
}
int
main (int argc, char **argv)
{
g_type_init ();
g_thread_init (NULL);
#ifdef ENABLE_DEBUG
tp_debug_divert_messages (g_getenv ("SALUT_LOGFILE"));
debug_set_flags_from_env ();
if (g_getenv ("SALUT_PERSIST"))
tp_debug_set_persistent (TRUE);
#endif
return tp_run_connection_manager ("telepathy-salut", VERSION,
salut_create_connection_manager,
argc, argv);
}
| Remove use of g_set_prgname in main(). | Remove use of g_set_prgname in main().
tp_run_connection_manager calls g_set_prgname internally. It's
supposed to only be called once. Calling it in addition to
tp_run_connection_manager causes an assertion. This patch removes
use of it in main().
| C | lgpl-2.1 | freedesktop-unofficial-mirror/telepathy__telepathy-salut,freedesktop-unofficial-mirror/telepathy__telepathy-salut,freedesktop-unofficial-mirror/telepathy__telepathy-salut,freedesktop-unofficial-mirror/telepathy__telepathy-salut |
fd1f5bb3bf922fcfd5afdb5d6a0faced6eb995b3 | include/Genes/Pawn_Structure_Gene.h | include/Genes/Pawn_Structure_Gene.h | #ifndef PAWN_STRUCTURE_GENE_H
#define PAWN_STRUCTURE_GENE_H
#include <string>
#include <map>
#include "Genes/Gene.h"
#include "Game/Piece.h"
#include "Game/Color.h"
class Board;
class Pawn_Structure_Gene : public Clonable_Gene<Pawn_Structure_Gene>
{
public:
Pawn_Structure_Gene() noexcept;
std::string name() const noexcept override;
double score_board(const Board& board, Piece_Color perspective, size_t depth, double game_progress) const noexcept override;
private:
double opening_guarded_by_pawn = 1.0;
double opening_guarded_by_pawn_in_one_move = 1.0;
double opening_guarded_by_piece = 1.0;
double endgame_guarded_by_pawn = 1.0;
double endgame_guarded_by_pawn_in_one_move = 1.0;
double endgame_guarded_by_piece = 1.0;
void gene_specific_mutation() noexcept override;
void adjust_properties(std::map<std::string, double>& properties) const noexcept override;
void load_gene_properties(const std::map<std::string, double>& properties) override;
void normalize_guard_scores() noexcept;
};
#endif // PAWN_STRUCTURE_GENE_H
| #ifndef PAWN_STRUCTURE_GENE_H
#define PAWN_STRUCTURE_GENE_H
#include <string>
#include <map>
#include "Genes/Gene.h"
#include "Game/Piece.h"
#include "Game/Color.h"
class Board;
//! \brief A gene to evaluate how well pawns are protected.
class Pawn_Structure_Gene : public Clonable_Gene<Pawn_Structure_Gene>
{
public:
Pawn_Structure_Gene() noexcept;
std::string name() const noexcept override;
private:
double opening_guarded_by_pawn = 1.0;
double opening_guarded_by_pawn_in_one_move = 1.0;
double opening_guarded_by_piece = 1.0;
double endgame_guarded_by_pawn = 1.0;
double endgame_guarded_by_pawn_in_one_move = 1.0;
double endgame_guarded_by_piece = 1.0;
double score_board(const Board& board, Piece_Color perspective, size_t depth, double game_progress) const noexcept override;
void gene_specific_mutation() noexcept override;
void adjust_properties(std::map<std::string, double>& properties) const noexcept override;
void load_gene_properties(const std::map<std::string, double>& properties) override;
void normalize_guard_scores() noexcept;
};
#endif // PAWN_STRUCTURE_GENE_H
| Fix public/private members and doxygen comments | Fix public/private members and doxygen comments
| C | mit | MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess |
a919d4dcbd4286c675d4ef6d720dd80b71be3614 | sort_algorithms.c | sort_algorithms.c | /* Author: Dan Wilder
*
* School: University of Missouri - St. Louis
* Semester: Fall 2015
* Class: CS 3130 - Design and Analysis of Algorithms
* Instructor: Galina N. Piatnitskaia
*/
#include "sort_algorithms.h"
void swap(int *x, int *y) {
int temp = *x;
*x = *y
*y = temp;
}
void bubbleSort(int arr[], int n) {
/* with swaps counting. n is the size of arr.
*/
int i, j;
for (i = 0; i <= n-1; ++i)
for (j = n; j >= i+1; --j)
if (arr[j] < arr[j-1])
swap(&arr[j], &arr[j-1]);
}
| /* Author: Dan Wilder
*
* School: University of Missouri - St. Louis
* Semester: Fall 2015
* Class: CS 3130 - Design and Analysis of Algorithms
* Instructor: Galina N. Piatnitskaia
*/
#include "sort_algorithms.h"
void swap(int *x, int *y) {
int temp = *x;
*x = *y
*y = temp;
}
void bubbleSort(int arr[], int size) {
/* with swaps counting.
*/
int i, j;
for (i = 0; i <= size-1; ++i)
for (j = size; j >= i+1; --j)
if (arr[j] < arr[j-1])
swap(&arr[j], &arr[j-1]);
}
| Change name of parameter in bubbleSort | Change name of parameter in bubbleSort
| C | mit | sentientWilder/Search-and-Sort,sentientWilder/Search-and-Sort |
f88f56d7356cd46fcc861a06aa4312e57486dfc5 | src/popsift/common/sync_queue.h | src/popsift/common/sync_queue.h | #pragma once
#include <condition_variable>
#include <mutex>
#include <queue>
namespace popsift {
/*************************************************************
* SyncQueue
* This is a basic alternative to the Boost sync_queue class.
* It lets threads push and pull items off a queue in a thread
* safe manner.
*************************************************************/
template<typename T>
class SyncQueue {
public:
SyncQueue() = default;
/* Push an item onto the queue and signal it's available. */
void push(const T& value) {
std::unique_lock<std::mutex> lock(mtx_);
items_.push(value);
lock.unlock();
signal_.notify_one();
}
/* Check if the queue is empty - thread safety via mutex. */
bool empty() {
std::unique_lock<std::mutex> lock(mtx_);
return items_.empty();
}
/* BLOCKING. Pull an item off the queue, or, wait until one arrives. */
T pull() {
std::unique_lock<std::mutex> lock(mtx_);
signal_.wait(lock, [this] { return !items_.empty(); });
auto ans = items_.front();
items_.pop();
return ans;
}
private:
std::mutex mtx_;
std::queue<T> items_;
std::condition_variable signal_;
};
} // namespace popsift | #pragma once
#include <condition_variable>
#include <mutex>
#include <queue>
namespace popsift {
/**
* @brief A thread safe wrapper around std::queue (replaces boost::sync_queue).
* @tparam T the value type that's stored in the queue.
*/
template<typename T>
class SyncQueue {
public:
SyncQueue() = default;
/**
* @brief Push an item onto the queue and signal it's available.
* @param[in] value the item to add to the queue.
*/
void push(const T& value) {
std::unique_lock<std::mutex> lock(mtx_);
items_.push(value);
lock.unlock();
signal_.notify_one();
}
/**
* @brief Check if the queue is empty - thread safety via mutex.
* @return True if the queue is empty.
*/
bool empty() {
std::unique_lock<std::mutex> lock(mtx_);
return items_.empty();
}
/**
* @brief Pull an item off the queue, or, wait until one arrives. Blocking.
* @return The front item that was popped off the queue.
*/
T pull() {
std::unique_lock<std::mutex> lock(mtx_);
signal_.wait(lock, [this] { return !items_.empty(); });
auto ans = items_.front();
items_.pop();
return ans;
}
private:
std::mutex mtx_;
std::queue<T> items_;
std::condition_variable signal_;
};
} // namespace popsift | Add doxygen comments to SyncQueue. | Add doxygen comments to SyncQueue.
| C | mpl-2.0 | alicevision/popsift,alicevision/popsift,alicevision/popsift |
deaddeb464bb6922424a399be2cf62a57e90d7b5 | MoblicoSDK/Services/MLCSettingsService.h | MoblicoSDK/Services/MLCSettingsService.h | /*
Copyright 2012 Moblico Solutions LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this work except in compliance with the License.
You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#import <MoblicoSDK/MLCService.h>
@class MLCSettings;
NS_ASSUME_NONNULL_BEGIN
typedef void(^MLCSettingsServiceCompletionHandler)(id _Nullable MLCSettings, NSError * _Nullable error, NSHTTPURLResponse * _Nullable response);
@interface MLCSettingsService : MLCService
+ (instancetype)readSettings:(MLCSettingsServiceCompletionHandler)handler;
+ (MLCSettings *)settings;
+ (void)overrideSettings:(nullable NSDictionary *)settings;
@end
@interface MLCSettings : NSObject
- (nullable id)objectForKey:(NSString *)key;
- (nullable id)objectForKeyedSubscript:(NSString *)key;
@end
NS_ASSUME_NONNULL_END
| /*
Copyright 2012 Moblico Solutions LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this work except in compliance with the License.
You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#import <MoblicoSDK/MLCService.h>
@class MLCSettings;
NS_ASSUME_NONNULL_BEGIN
typedef void(^MLCSettingsServiceCompletionHandler)(MLCSettings * _Nullable MLCSettings, NSError * _Nullable error, NSHTTPURLResponse * _Nullable response);
@interface MLCSettingsService : MLCService
+ (instancetype)readSettings:(MLCSettingsServiceCompletionHandler)handler;
+ (MLCSettings *)settings;
+ (void)overrideSettings:(nullable NSDictionary *)settings;
@end
@interface MLCSettings : NSObject
- (nullable id)objectForKey:(NSString *)key;
- (nullable id)objectForKeyedSubscript:(NSString *)key;
@end
NS_ASSUME_NONNULL_END
| Update type in SettingsService callback. | Update type in SettingsService callback.
| C | apache-2.0 | Moblico/MoblicoSDK-iOS |
a7792a50ca0d22f595d01d191252ab20f5cb206c | integration/cocos2d-x-v2/include/bee/Cocos2dxBeehive.h | integration/cocos2d-x-v2/include/bee/Cocos2dxBeehive.h | //
// Created by Dawid Drozd aka Gelldur on 08.10.17.
//
#pragma once
#include <map>
#include <string>
#include <vector>
#include <bee/Beehive.h>
namespace cocos2d
{
class CCNode;
}
namespace Bee
{
class Graph;
class Node;
class Cocos2dxBeehive
{
public:
Cocos2dxBeehive(const std::vector<std::string>& searchPaths);
~Cocos2dxBeehive();
cocos2d::CCNode* createView(const std::string& content);
cocos2d::CCNode* findViewById(const std::string& id);
private:
Graph* _graph;
std::shared_ptr<sel::State> _state;
Bee::Beehive _beehive;
void addRelation(Node* nodeParent, Node* nodeChild);
};
}
| //
// Created by Dawid Drozd aka Gelldur on 08.10.17.
//
#pragma once
#include <map>
#include <string>
#include <vector>
#include <bee/Beehive.h>
namespace cocos2d
{
class CCNode;
}
namespace Bee
{
class Graph;
class Node;
class Cocos2dxBeehive
{
public:
Cocos2dxBeehive(const std::vector<std::string>& searchPaths);
~Cocos2dxBeehive();
cocos2d::CCNode* createView(const std::string& content);
cocos2d::CCNode* findViewById(const std::string& id);
const std::shared_ptr<sel::State>& getState()
{
return _state;
}
private:
Graph* _graph;
std::shared_ptr<sel::State> _state;
Bee::Beehive _beehive;
void addRelation(Node* nodeParent, Node* nodeChild);
};
}
| Add getter for lua state | Add getter for lua state
| C | apache-2.0 | gelldur/Bee |
62313cd8de5b7809f748801fccd8010334cb4851 | src/include/cdb/cdbsrlz.h | src/include/cdb/cdbsrlz.h | /*-------------------------------------------------------------------------
*
* cdbsrlz.h
* definitions for paln serialization utilities
*
* Copyright (c) 2004-2008, Greenplum inc
*
* NOTES
*
*-------------------------------------------------------------------------
*/
#ifndef CDBSRLZ_H
#define CDBSRLZ_H
#include "nodes/nodes.h"
extern char *serializeNode(Node *node, int *size, int *uncompressed_size);
extern Node *deserializeNode(const char *strNode, int size);
#endif /* CDBSRLZ_H */
| /*-------------------------------------------------------------------------
*
* cdbsrlz.h
* definitions for plan serialization utilities
*
* Copyright (c) 2004-2008, Greenplum inc
*
* NOTES
*
*-------------------------------------------------------------------------
*/
#ifndef CDBSRLZ_H
#define CDBSRLZ_H
#include "nodes/nodes.h"
extern char *serializeNode(Node *node, int *size, int *uncompressed_size);
extern Node *deserializeNode(const char *strNode, int size);
#endif /* CDBSRLZ_H */
| Fix typo in header file comment | Fix typo in header file comment
| C | apache-2.0 | janebeckman/gpdb,atris/gpdb,cjcjameson/gpdb,yuanzhao/gpdb,50wu/gpdb,kaknikhil/gpdb,foyzur/gpdb,tangp3/gpdb,chrishajas/gpdb,atris/gpdb,Quikling/gpdb,rvs/gpdb,jmcatamney/gpdb,0x0FFF/gpdb,Quikling/gpdb,atris/gpdb,janebeckman/gpdb,zaksoup/gpdb,cjcjameson/gpdb,ashwinstar/gpdb,Quikling/gpdb,kaknikhil/gpdb,0x0FFF/gpdb,lintzc/gpdb,cjcjameson/gpdb,0x0FFF/gpdb,Quikling/gpdb,chrishajas/gpdb,chrishajas/gpdb,rvs/gpdb,zaksoup/gpdb,Chibin/gpdb,CraigHarris/gpdb,greenplum-db/gpdb,50wu/gpdb,lisakowen/gpdb,50wu/gpdb,greenplum-db/gpdb,cjcjameson/gpdb,xinzweb/gpdb,xinzweb/gpdb,Quikling/gpdb,royc1/gpdb,Chibin/gpdb,edespino/gpdb,rubikloud/gpdb,lintzc/gpdb,lintzc/gpdb,foyzur/gpdb,lpetrov-pivotal/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,Quikling/gpdb,jmcatamney/gpdb,0x0FFF/gpdb,edespino/gpdb,yuanzhao/gpdb,CraigHarris/gpdb,ahachete/gpdb,lintzc/gpdb,Chibin/gpdb,yuanzhao/gpdb,atris/gpdb,greenplum-db/gpdb,adam8157/gpdb,randomtask1155/gpdb,rvs/gpdb,ashwinstar/gpdb,lisakowen/gpdb,rubikloud/gpdb,royc1/gpdb,atris/gpdb,lintzc/gpdb,atris/gpdb,CraigHarris/gpdb,ahachete/gpdb,tangp3/gpdb,atris/gpdb,ashwinstar/gpdb,edespino/gpdb,cjcjameson/gpdb,ahachete/gpdb,kaknikhil/gpdb,zaksoup/gpdb,Chibin/gpdb,xinzweb/gpdb,lpetrov-pivotal/gpdb,ahachete/gpdb,cjcjameson/gpdb,edespino/gpdb,rvs/gpdb,foyzur/gpdb,Quikling/gpdb,xinzweb/gpdb,randomtask1155/gpdb,0x0FFF/gpdb,lintzc/gpdb,janebeckman/gpdb,lintzc/gpdb,lpetrov-pivotal/gpdb,kaknikhil/gpdb,randomtask1155/gpdb,janebeckman/gpdb,royc1/gpdb,lpetrov-pivotal/gpdb,xuegang/gpdb,xuegang/gpdb,50wu/gpdb,tangp3/gpdb,chrishajas/gpdb,zaksoup/gpdb,zaksoup/gpdb,janebeckman/gpdb,royc1/gpdb,adam8157/gpdb,atris/gpdb,xinzweb/gpdb,lpetrov-pivotal/gpdb,edespino/gpdb,xuegang/gpdb,yuanzhao/gpdb,randomtask1155/gpdb,Chibin/gpdb,ahachete/gpdb,Quikling/gpdb,50wu/gpdb,edespino/gpdb,lisakowen/gpdb,lisakowen/gpdb,tangp3/gpdb,edespino/gpdb,Quikling/gpdb,tangp3/gpdb,rubikloud/gpdb,jmcatamney/gpdb,foyzur/gpdb,royc1/gpdb,greenplum-db/gpdb,xinzweb/gpdb,kaknikhil/gpdb,chrishajas/gpdb,jmcatamney/gpdb,rubikloud/gpdb,lintzc/gpdb,yuanzhao/gpdb,foyzur/gpdb,adam8157/gpdb,CraigHarris/gpdb,rvs/gpdb,ahachete/gpdb,0x0FFF/gpdb,CraigHarris/gpdb,foyzur/gpdb,rubikloud/gpdb,lisakowen/gpdb,tangp3/gpdb,cjcjameson/gpdb,CraigHarris/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,zaksoup/gpdb,lisakowen/gpdb,lisakowen/gpdb,rubikloud/gpdb,janebeckman/gpdb,kaknikhil/gpdb,randomtask1155/gpdb,xuegang/gpdb,greenplum-db/gpdb,0x0FFF/gpdb,ashwinstar/gpdb,adam8157/gpdb,xuegang/gpdb,yuanzhao/gpdb,50wu/gpdb,yuanzhao/gpdb,janebeckman/gpdb,CraigHarris/gpdb,greenplum-db/gpdb,chrishajas/gpdb,royc1/gpdb,CraigHarris/gpdb,edespino/gpdb,randomtask1155/gpdb,zaksoup/gpdb,xuegang/gpdb,rvs/gpdb,rvs/gpdb,Chibin/gpdb,rvs/gpdb,ashwinstar/gpdb,kaknikhil/gpdb,zaksoup/gpdb,0x0FFF/gpdb,adam8157/gpdb,xinzweb/gpdb,janebeckman/gpdb,cjcjameson/gpdb,lpetrov-pivotal/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,CraigHarris/gpdb,xuegang/gpdb,edespino/gpdb,lpetrov-pivotal/gpdb,jmcatamney/gpdb,cjcjameson/gpdb,foyzur/gpdb,rvs/gpdb,lisakowen/gpdb,janebeckman/gpdb,lintzc/gpdb,adam8157/gpdb,chrishajas/gpdb,rvs/gpdb,kaknikhil/gpdb,edespino/gpdb,randomtask1155/gpdb,Chibin/gpdb,adam8157/gpdb,foyzur/gpdb,lpetrov-pivotal/gpdb,rubikloud/gpdb,yuanzhao/gpdb,royc1/gpdb,ahachete/gpdb,tangp3/gpdb,Quikling/gpdb,royc1/gpdb,50wu/gpdb,tangp3/gpdb,xuegang/gpdb,yuanzhao/gpdb,50wu/gpdb,ahachete/gpdb,xuegang/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,Chibin/gpdb,ashwinstar/gpdb,kaknikhil/gpdb,ashwinstar/gpdb,janebeckman/gpdb,rubikloud/gpdb,adam8157/gpdb,Chibin/gpdb,Chibin/gpdb,chrishajas/gpdb,randomtask1155/gpdb,xinzweb/gpdb,yuanzhao/gpdb |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.