code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
from JumpScale import j
import JumpScale.baselib.watchdog.manager
import JumpScale.baselib.redis
import JumpScale.lib.rogerthat
descr = """
critical alert
"""
organization = "jumpscale"
enable = True
REDIS_PORT = 9999
# API_KEY = j.application.config.get('rogerthat.apikey')
redis_client = j.clients.credis.getRedis... | Jumpscale/jumpscale6_core | apps/watchdogmanager/alerttypes/critical.py | Python | bsd-2-clause | 2,105 |
'use strict';
/**
* Karma unit tests.
*/
describe('<%= componentName %>Service', function(){
var <%= componentName %>service;
beforeEach(module('<%= appName %>.<%= moduleName %>'));
beforeEach(inject(function($injector) {
service = $injector.get('<%= componentName %>');
}));
});
| urecio/generator-angular-scalable | generators/service/templates/services/%component-name%.service.spec.js | JavaScript | bsd-2-clause | 299 |
using WampSharp.V2.Core.Contracts;
namespace WampSharp.V2.PubSub
{
internal interface IWampRawTopic<TMessage> : ISubscriptionNotifier
{
bool HasSubscribers { get; }
long SubscriptionId { get; }
string TopicUri { get; }
void Subscribe(ISubscribeRequest<TMessage> request, Subscri... | jmptrader/WampSharp | src/net45/WampSharp/WAMP2/V2/PubSub/Interfaces/IWampRawTopic.cs | C# | bsd-2-clause | 414 |
class Nss < Formula
desc "Libraries for security-enabled client and server applications"
homepage "https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS"
url "https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_66_RTM/src/nss-3.66.tar.gz"
sha256 "89a79e3a756cf0ac9ba645f4d4c0fc58d4133134401fb0b6c8a74... | JCount/homebrew-core | Formula/nss.rb | Ruby | bsd-2-clause | 3,529 |
#----------------------------------------------------------------
# Generated CMake target import file for configuration "MinSizeRel".
#----------------------------------------------------------------
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)
# Import target "dart-collision-bull... | axeisghost/DART6motionBlur | Xcode/dart/collision/bullet/CMakeFiles/Export/share/dart/cmake/dart_collision-bulletTargets-minsizerel.cmake | CMake | bsd-2-clause | 951 |
{% load staticfiles %}
<link rel="stylesheet" type="text/css" href="{% static 'polls/style.css' %}" />
{% if latest_question_list %}
<ul>
{% for question in latest_question_list %}
<li><a href="{% url 'polls:detail' question.id %}">{{ question.question_text }}</a></li>
{% endfor %}
</... | olszak94/django-polls | polls/templates/polls/index.html | HTML | bsd-2-clause | 386 |
#pragma once
#include "afxwin.h"
// CRegisterInsterface ¶Ô»°¿ò
class CRegisterInsterface : public CDialogEx
{
DECLARE_DYNAMIC(CRegisterInsterface)
public:
CRegisterInsterface(CWnd* pParent = NULL); // ±ê×¼¹¹Ô캯Êý
virtual ~CRegisterInsterface();
// ¶Ô»°¿òÊý¾Ý
enum { IDD = IDD_DIALOG_REGISTER };
protected:
... | theDarkForce/chat | chat/chat/chat/RegisterInsterface.h | C | bsd-2-clause | 524 |
/*
* Copyright (c) 2015, Archarithms Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of condi... | Archarithms/bigio | core/src/main/java/io/bigio/core/GossipListener.java | Java | bsd-2-clause | 1,899 |
import tornado.web
import json
from tornado_cors import CorsMixin
from common import ParameterFormat, EnumEncoder
class DefaultRequestHandler(CorsMixin, tornado.web.RequestHandler):
CORS_ORIGIN = '*'
def initialize(self):
self.default_format = self.get_argument("format", "json", True)
self.s... | sebastianwebber/pgconfig-api | common/util.py | Python | bsd-2-clause | 5,642 |
<html>
<head>
<!--
<link rel="stylesheet" type="text/css" href="epoch_style.css" />
-->
<link rel="stylesheet" type="text/css" href="css/bootstrap/bootstrap.css" />
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="css/bootstrap/bootstrap-responsive.min.css" rel="styl... | klrkdekira/durian-runtuh | downloads/3.html | HTML | bsd-2-clause | 27,644 |
/*++
Copyright (C) 2018 3MF Consortium
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the followi... | 3MFConsortium/lib3mf | Include/Model/Reader/v093/NMR_ModelReaderNode093_Components.h | C | bsd-2-clause | 2,258 |
#pragma once
#include <iosfwd>
#include <map>
#include "../datastructs/var_degree_map.h"
#include "../semirings/free-semiring.h"
#include "commutative_polynomial.h"
template <typename SR> class NonCommutativePolynomialBase;
template <typename SR> class NonCommutativeMonomial;
enum elemType {Variable, SemiringType}... | mschlund/FPsolve | c/src/polynomials/non_commutative_monomial.h | C | bsd-2-clause | 18,264 |
from ._stub import *
from ._fluent import *
from ._matchers import *
| manahl/mockextras | mockextras/__init__.py | Python | bsd-2-clause | 69 |
package edu.ucsf.lava.core.spring;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.FactoryBean;
public class ListMerger implements FactoryBean {
private List list = new ArrayList();
public ListMerger(List<List> items) {
for (List item ... | UCSFMemoryAndAging/lava | lava-core/src/edu/ucsf/lava/core/spring/ListMerger.java | Java | bsd-2-clause | 643 |
#! /usr/bin/env perl
#
# Grep Crawl vault files for some string and output the match preceded by
# vault name. Don't search things like SUBST lines or the MAP.
#
use File::Find;
my $myname = $0;
$myname =~ s,.*/,,;
$myname =~ s/(.)\..*$/$1/;
# probably pointless extensibility...
my @path = ($ENV{HOME} . '/Sources/cr... | geekosaur/vaultgrep | vaultgrep.pl | Perl | bsd-2-clause | 6,218 |
/*
* Copyright (C) 2012 The Guava Authors
*
* 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 ... | antlr/codebuff | output/java_guava/1.4.19/PairedStatsAccumulator.java | Java | bsd-2-clause | 10,613 |
cask 'beaker-electron' do
version '1.4.2-0-ge55c059'
sha256 '32d6ecf6a1ebfc32c3e1b2dfc1edb33eaeab6f83d3f9d74dd9b64e08bd24e3e6'
# cloudfront.net is the official download host per the vendor homepage
url "https://d299yghl10frh5.cloudfront.net/beaker-notebook-#{version}-electron-mac.dmg"
name 'Beaker Electron'
... | coeligena/homebrew-verscustomized | Casks/beaker-electron.rb | Ruby | bsd-2-clause | 402 |
/**
* BSD 2-Clause License
*
* Copyright (c) 2016-2017, Jochen Seeber
* 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 ... | jochenseeber/gradle-project-config | src/main/java/me/seeber/gradle/project/base/IssueTracker.java | Java | bsd-2-clause | 2,170 |
<blockquote class="blockquote-reverse">
Ranking - klasyfikacja wartościująca wg ustalonych kryteriów
</blockquote>
<p>
Ranking powstał na bazie zdobytych przez zawodnika <abbr title="Punkty Klasyfikacyjne">PKL</abbr>, wykorzystując ich różnorodność w bazie <abbr title="Centralna Ewidencja Zawodników i Rozgrywek">CE... | emkael/pzbs-ranking | static/ranking.html | HTML | bsd-2-clause | 1,113 |
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path... | nickludlam/EDForumTracker | app/assets/stylesheets/application.css | CSS | bsd-2-clause | 713 |
/****************************************************************************
* include/nuttx/regex.h
* Non-standard, pattern-matching APIs available in lib/.
*
* Copyright (C) 2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary for... | IUTInfoAix/terrarium_2015 | nuttx/include/nuttx/regex.h | C | bsd-2-clause | 3,228 |
package de.lessvoid.nifty.slick2d;
import de.lessvoid.nifty.Nifty;
import de.lessvoid.nifty.slick2d.input.RelaySlickInputSystem;
import de.lessvoid.nifty.slick2d.input.SlickInputSystem;
import de.lessvoid.nifty.slick2d.render.SlickRenderDevice;
import de.lessvoid.nifty.slick2d.sound.SlickSoundDevice;
import de.... | xranby/nifty-gui | nifty-renderer-slick/src/main/java/de/lessvoid/nifty/slick2d/NiftyCarrier.java | Java | bsd-2-clause | 3,582 |
package at.ac.uibk.igwee.webapp.metadata.mdmapper.controller;
import java.util.ArrayList;
import java.util.Date;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import at.ac.uibk.igwee.metadata.metaquery.QueryQueue;
@Component
@Scope("session")
publi... | kofnego-jw/vocmapping | at.ac.uibk.igwee.metadata/at.ac.uibk.igwee.metadata.webapp.vocmapper/src/main/java/at/ac/uibk/igwee/webapp/metadata/mdmapper/controller/SessionHolder.java | Java | bsd-2-clause | 1,844 |
# Package file for INVIWOCIMGMODULE, part of Inviwo projects
# It defines the following variables
#
# INVIWOCIMGMODULE_FOUND
# INVIWOCIMGMODULE_INCLUDE_DIR
# INVIWOCIMGMODULE_LIBRARY_DIR
# INVIWOCIMGMODULE_LIBRARIES
# INVIWOCIMGMODULE_DEFINITIONS
# INVIWOCIMGMODULE_LINK_FLAGS
#
set(BUILD_INVIWOCIMGMODULE 1)
set(INVIW... | cgloger/inviwo | cmake/FindInviwoCImgModule.cmake | CMake | bsd-2-clause | 2,312 |
# ShowImges
A gallery.
| xhuichen/ShowImages | README.md | Markdown | bsd-2-clause | 23 |
/**
* Copyright (c) 2007, Gaudenz Alder
*/
package com.mxgraph.canvas;
import java.awt.Font;
import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.Hashtable;
import java.util.List;
import java.util.Map;
... | md-k-sarker/OWLAx | src/main/java/com/mxgraph/canvas/mxSvgCanvas.java | Java | bsd-2-clause | 39,300 |
from steamstoreprice.exception import UrlNotSteam, PageNotFound, RequestGenericError
from bs4 import BeautifulSoup
import requests
class SteamStorePrice:
def normalizeurl(self, url):
"""
clean the url from referal and other stuff
:param url(string): amazon url
:return: string(ur... | Mirio/steamstoreprice | steamstoreprice/steamstoreprice.py | Python | bsd-2-clause | 2,007 |
package com.ociweb.pronghorn.ring.route;
import com.ociweb.pronghorn.GraphManager;
import com.ociweb.pronghorn.ring.FieldReferenceOffsetManager;
import com.ociweb.pronghorn.ring.RingBuffer;
import com.ociweb.pronghorn.ring.RingReader;
import com.ociweb.pronghorn.ring.stage.PronghornStage;
/**
* Given n ring buffers ... | romanp-stl/jFAST | src/main/java/com/ociweb/pronghorn/ring/route/SplitterStage2.java | Java | bsd-2-clause | 7,291 |
#Analyzer
##Things that get checked
* ECB Mode for encryption
* Random IV, Salt
* Constant keys or passwords
* PBKDF iteration count (< 1000)
* Password leaks (HTTP, Filesystem)
* Hardcoded HTTP Authentication (but not all constant strings are found yet)
* Sensitive Data (needs to be manually defined in 'data.json')
... | dvdmssmnn/Analyzer | Readme.md | Markdown | bsd-2-clause | 1,348 |
using System;
using System.Collections;
using Microsoft.Win32;
namespace Cubewise.Query
{
public enum ODBC_DRIVERS {SQL_SERVER=0};
/// <summary>
/// ODBCManager is the class that provides static methods, which provide
/// access to the various ODBC components such as Drivers List, DSNs List
/// etc.
/// </summa... | cubewise-code/odbc-connect | ODBCConnect/ODBCManager.cs | C# | bsd-2-clause | 9,886 |
package com.betfair.domain
import org.joda.time.DateTime
import org.joda.time.format.DateTimeFormat
import play.api.libs.json.{Json, Reads}
case class MarketCatalogue(marketId: String,
marketName: String,
marketStartTime: Option[DateTime],
... | city81/betfair-service-ng | src/main/scala/com/betfair/domain/MarketCatalogue.scala | Scala | bsd-2-clause | 979 |
/*
* POK header
*
* The following file is a part of the POK project. Any modification should
* be made according to the POK licence. You CANNOT use this file or a part
* of a file for your own project.
*
* For more information on the POK licence, please see our LICENCE FILE
*
* Pl... | pok-kernel/pok | libpok/middleware/portsamplingread.c | C | bsd-2-clause | 928 |
/*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#ifndef __API_CONSTANTS_H
#define __API_CONSTANTS_H
#define BIT(n) (1ul<<(n))
enum... | NICTA/seL4 | libsel4/include/sel4/constants.h | C | bsd-2-clause | 668 |
// Package api pulls 4chan board and thread data from the JSON API into native Go data structures.
package api
import (
"encoding/json"
"fmt"
"io"
"net/http"
pathpkg "path"
"sync"
"time"
)
var (
// Whether or not to use HTTPS for requests.
SSL bool = false
// Cooldown time for updating threads using (*Threa... | moshee/go-4chan-api | api/api.go | GO | bsd-2-clause | 16,980 |
/**
* RayFoundation.h
* A ray of light in the realm of darkness.
* Some additions to C.
* If You don't like it, You can preprocess files, to get pure-C code.
* Author Kucheruavyu Ilya (kojiba@protonmail.com)
* 2014 Ukraine Kharkiv
* _ _ _ _
* | | (_|_) |
* | | _____ _ _| |__ __ _
* | |/ / _ ... | kojiba/RayLanguage | Classes/RayFoundation/RayFoundation.h | C | bsd-2-clause | 2,390 |
import common.config
import common.messaging as messaging
import common.storage
import common.debug as debug
from common.geo import Line, LineSet
from common.concurrency import ConcurrentObject
from threading import Lock, RLock
import tree.pachinko.message_type as message_type
import tree.pachinko.config as config
i... | kaimast/inanutshell | tree/pachinko/content_server.py | Python | bsd-2-clause | 16,352 |
package safebrowsing
/*
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "hat-trie.h"
hattrie_t* start() {
hattrie_t* trie;
trie = hattrie_create();
return trie;
}
void set(hattrie_t* h, char* key, size_t len) {
value_t* val;
val = hattrie_get(h, key, len);
*val = 1;
}
int get(hattrie_t*... | rjohnsondev/go-safe-browsing-api | hattrie.go | GO | bsd-2-clause | 2,393 |
/*
* Copyright (c) 2015, Tomasz Kapuściński
* 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 co... | tomaszkax86/My-Java-Utils | src/pl/tomaszkax86/math/Fixed.java | Java | bsd-2-clause | 8,469 |
#ifndef xt_case_dumpster_h
#define xt_case_dumpster_h
#include "xt/case/array.h"
#include "xt/case/list.h"
#include "xt/case/set.h"
#include "xt/core/iobject.h"
struct xt_case_dumpster_t;
typedef struct xt_case_dumpster_t xt_case_dumpster_t;
xt_core_bool_t xt_case_dumpster_add(xt_case_dumpster_t *dumpster,
void ... | xtools/xt | case/dumpster.h | C | bsd-2-clause | 584 |
//
// http_core_header_map.h
// vClientTemplateLib
//
// Created by Virendra Shakya on 5/17/14.
// Copyright (c) 2014 Virendra Shakya. All rights reserved.
//
#ifndef __vClientTemplateLib__http_core_header_group__
#define __vClientTemplateLib__http_core_header_group__
#include <string>
#include "base/thread/threa... | drvirens/hexagonal-client | vCTL/src/net/http/core/http_core_header_map.h | C | bsd-2-clause | 1,135 |
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef FORTIFY
#include "fortify/fortify.h"
#endif
#include "base/result.h"
#include "datastruct/bitfifo.h"
#include "test/all-tests.h"
#define MAXSIZE 32
static const struct
{
int length; /* in bits */
unsigned int after_... | dpt/DPTLib | libraries/datastruct/bitfifo/test/bitfifo-test.c | C | bsd-2-clause | 2,924 |
package com.jayantkrish.jklol.util;
import java.util.Iterator;
import java.util.List;
import com.google.common.base.Preconditions;
import com.jayantkrish.jklol.models.DiscreteVariable;
import com.jayantkrish.jklol.models.VariableNumMap;
/**
* An iterator over all possible assignments to a set of variables.
*/
publ... | jayantk/jklol | src/com/jayantkrish/jklol/util/AllAssignmentIterator.java | Java | bsd-2-clause | 1,616 |
#include "contractor/graph_contractor.hpp"
#include "contractor/contractor_graph.hpp"
#include "contractor/contractor_search.hpp"
#include "contractor/query_edge.hpp"
#include "util/deallocating_vector.hpp"
#include "util/integer_range.hpp"
#include "util/log.hpp"
#include "util/percent.hpp"
#include "util/timing_util.... | yuryleb/osrm-backend | src/contractor/graph_contractor.cpp | C++ | bsd-2-clause | 29,457 |
module Interface.LpSolve where
-- standard modules
-- local modules
import Helpful.Process
--import Data.Time.Clock (diffUTCTime, getCurrentTime)
--import Debug.Trace
zeroObjective :: String -> Maybe Bool
zeroObjective p = case head answer of
"This problem is infeasible" -> Nothing
"This problem is unbounde... | spatial-reasoning/zeno | src/Interface/LpSolve.hs | Haskell | bsd-2-clause | 1,952 |
from django.test import override_settings
from incuna_test_utils.testcases.api_request import (
BaseAPIExampleTestCase, BaseAPIRequestTestCase,
)
from tests.factories import UserFactory
class APIRequestTestCase(BaseAPIRequestTestCase):
user_factory = UserFactory
def test_create_request_format(self):
... | incuna/incuna-test-utils | tests/testcases/test_api_request.py | Python | bsd-2-clause | 918 |
from django.forms import ModelForm
from bug_reporting.models import Feedback
from CoralNet.forms import FormHelper
class FeedbackForm(ModelForm):
class Meta:
model = Feedback
fields = ('type', 'comment') # Other fields are auto-set
#error_css_class = ...
#required_css_class = ...
d... | DevangS/CoralNet | bug_reporting/forms.py | Python | bsd-2-clause | 661 |
import logging
import re
from streamlink.plugin import Plugin, pluginmatcher
from streamlink.plugin.api import validate
from streamlink.stream import HLSStream
from streamlink.utils.parse import parse_json
log = logging.getLogger(__name__)
@pluginmatcher(re.compile(
r"https?://(?:www\.)?livestream\.com/"
))
cla... | melmorabity/streamlink | src/streamlink/plugins/livestream.py | Python | bsd-2-clause | 1,433 |
import time
import threading
import PyTango
import numpy
import h5py
THREAD_DELAY_SEC = 0.1
class HDFwriterThread(threading.Thread):
#-----------------------------------------------------------------------------------
# __init__
#-----------------------------------------------------------------------------------... | ess-dmsc/do-ess-data-simulator | DonkiDirector/HDFWriterThread.py | Python | bsd-2-clause | 6,785 |
package utils;
import java.math.BigDecimal;
import java.math.BigInteger;
/**
* Static functions for calculating roots and related functions for
* BigIntegers and BigDecimals.
*/
public class RootFinder {
private static BigDecimal ZERO = new BigDecimal("0");
private static BigDecimal EPSILON = new BigDeci... | jonghough/Subspace | src/main/java/utils/RootFinder.java | Java | bsd-2-clause | 5,410 |
// Generated by CoffeeScript 1.3.3
var binding, exports, leveldb;
leveldb = exports = module.exports = require('./leveldb/handle');
binding = require('./leveldb.node');
leveldb.version = '0.6.2';
leveldb.bindingVersion = "" + binding.majorVersion + "." + binding.minorVersion;
leveldb.Batch = require('./leveldb/bat... | maxogden/node-leveldb | lib/index.js | JavaScript | bsd-2-clause | 1,340 |
var app = angular.module("pinguApp", []);
console.log("Fired up angular ...");
| avalikarvamus/pinguinvoice | app/static/scripts/pinguApp.js | JavaScript | bsd-2-clause | 80 |
cask :v1 => 'basecamp' do
version '4.4.6'
sha256 'd114af2d4f68132cee1739eae67a5704bf09612bae032a97535b2befcc44ab40'
url "http://download.garmin.com/software/BaseCampforMac_#{version.gsub('.', '')}.dmg"
homepage 'http://www.garmin.com/en-US/shop/downloads/basecamp'
license :gratis
pkg 'Install BaseCamp.pkg... | donbobka/homebrew-cask | Casks/basecamp.rb | Ruby | bsd-2-clause | 373 |
# GeoNAN Test Fixtures
The test fixture data is a spatialite database that has parking locations loaded from a shapefile. The
parking data was created from data collected by the Downtown Alliance, Austin, TX. The table name
that contains the data is called parking.
Copyright © 2011 Jamie Phillips
## License
GeoN... | phillipsj/GeoNAN | data/data-readme.md | Markdown | bsd-2-clause | 483 |
from rknfilter.targets import BaseTarget
from rknfilter.db import Resource, Decision, CommitEvery
from rknfilter.core import DumpFilesParser
class StoreTarget(BaseTarget):
def __init__(self, *args, **kwargs):
super(StoreTarget, self).__init__(*args, **kwargs)
self._dump_files_parser = DumpFilesPars... | DmitryFillo/rknfilter | rknfilter/targets/store.py | Python | bsd-2-clause | 1,324 |
/*
Copyright (c) 2007-2008 nemesis Developers Association. All rights reserved.
Governed by the nemesis License 3.0 the full text of which is contained in
the file License.txt included in nemesis binary and source code distribution
packages.
*/
#include <atlcomcli.h>
#include <atlconv.h>
#include <comutil.h>
#inc... | adouble42/nemesis-current | Format/FormatCom.cpp | C++ | bsd-2-clause | 5,169 |
#include <ros/ros.h>
#include "serial_comm.h"
#include <string.h>
#include "std_msgs/String.h"
using namespace std;
class RosToSerialBridge {
private:
serial_comm* comm_port;
public:
RosToSerialBridge(ros::NodeHandle nh) {
string port;
nh.param<string>("port", port, str... | sameeptandon/sail-car-log | ros_drivers/src/novatel_serial_driver/novatel_driver_node.cpp | C++ | bsd-2-clause | 1,575 |
//
// PolitiekAppDelegate.h
// Politiek
//
// Created by Wolfgang Schreurs on 11/6/11.
// Copyright 2012 Wolfgang Schreurs. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AudioPlayerViewController.h"
#import "FBConnect.h"
@class Reachability;
@interface OnsNieuwsAppDelegate : UIResponder
<UIAppli... | wolf81/OnsNieuws | Politiek/OnsNieuwsAppDelegate.h | C | bsd-2-clause | 535 |
from quex.engine.generator.languages.address import Address
from quex.blackboard import E_EngineTypes, E_AcceptanceIDs, E_StateIndices, \
E_TransitionN, E_PostContextIDs, E_PreContextIDs, \
... | coderjames/pascal | quex-0.63.1/quex/engine/generator/state/drop_out.py | Python | bsd-2-clause | 4,373 |
class Telegraf < Formula
desc "Server-level metric gathering agent for InfluxDB"
homepage "https://www.influxdata.com/"
url "https://github.com/influxdata/telegraf/archive/v1.15.2.tar.gz"
sha256 "2cc5392e9b035bce3255693b718d9e4bdd54fe16f5dc728b933113cfdaa93360"
license "MIT"
head "https://github.com/influxd... | lembacon/homebrew-core | Formula/telegraf.rb | Ruby | bsd-2-clause | 2,340 |
<html>
<head>
<title>57North Standing Order</title>
<link href="//hub.57north.org.uk/static/stylesheets/so_form.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1>New Standing Order Instruction</h1>
<p>Please set up the following standing order and debit my/our account accordingly</p>
<h2>Account details</h2>
<... | hackerdeen/hackhub | templates/standing_order.html | HTML | bsd-2-clause | 946 |
# based on https://github.com/pypa/sampleproject/blob/master/setup.py
# see http://packaging.python.org/en/latest/tutorial.html#creating-your-own-project
from setuptools import setup, find_packages
from setuptools.command.install import install as stdinstall
import codecs
import os
import re
import sys
def find_v... | prechelt/typecheck-decorator | setup.py | Python | bsd-2-clause | 3,969 |
// Copyright (c) Narvalo.Org. All rights reserved. See LICENSE.txt in the project root for license information.
namespace Quaderno.Entities
{
public partial interface ITransactionFormatter
{
string Format(Bonus bonus);
string Format(Deposit deposit);
string Format(Expense expense);
... | chtoucas/Quaderno | src/Quaderno.Core/Entities/ITransactionFormatter.cs | C# | bsd-2-clause | 504 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>東方深秘録 スコアデータ</title>
<link rel="stylesheet" href="style.css" />
<style>
/* <![CDATA[ */
td.character { min-widt... | y-iihoshi/ThScoreFileConverter | TemplateGenerator/Templates/th145score.html | HTML | bsd-2-clause | 10,374 |
cards-object-model
==================
[my code samples] OO Analysis & Design + Java . Time was limited by 1 hour.
| petrychenko/cards-object-model | README.md | Markdown | bsd-2-clause | 119 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>M-Kernel: template/... | alexeyk13/mkernel | doc/html/dir_dfacb4c4bbd4233d3d500b32c7cc4486.html | HTML | bsd-2-clause | 5,481 |
//Wrapped in an outer function to preserve global this
(function (root) { var amdExports; define([], function () { (function () {
// by tauren
// https://github.com/Modernizr/Modernizr/issues/191
Modernizr.addTest('cookies', function () {
// Quick test if browser has cookieEnabled host property
if (navigator.coo... | noahpeters/iffy | sample/www/js/lib/Modernizr/feature-detects/cookies.js | JavaScript | bsd-2-clause | 626 |
import re, csv
header_end = re.compile("\s+START\s+END\s+")
## p. 1172 is missing a space between the final date and the description. Can't understand why the layout option does this; a space is clearly visible. I dunno.
five_data_re = re.compile("\s*([\w\d]+)\s+(\d\d\/\d\d\/\d\d\d\d)\s+(.*?)\s+(\d\d\/\d\d\/\d\d\d\d... | jsfenfen/senate_disbursements | 114_sdoc4/read_pages.py | Python | bsd-2-clause | 11,865 |
/*
* Copyright (c) 2010 Riccardo Panicucci, Luigi Rizzo, Universita` di Pisa
* All rights reserved
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyr... | dplbsd/netmap-ipfwjit | sys/netpfil/ipfw/dn_sched.h | C | bsd-2-clause | 6,921 |
//============================================================================
// MCKL/include/mckl/smp.hpp
//----------------------------------------------------------------------------
// MCKL: Monte Carlo Kernel Library
//----------------------------------------------------------------------------
// Copyright (c) 2... | zhouyan/MCKL | include/mckl/smp.hpp | C++ | bsd-2-clause | 2,050 |
<div class="row">
<div class="col-md-4">
<div class="panel panel-info">
<div class="panel-heading">Instance</div>
<table class="table">
<tr><td>ID</td><td>{{instance.id}}</td></tr>
<tr><td>Service</td><td>{{service}}</td></tr>
<tr><td>Environ</td><td>{{environ}}</td></tr>
... | WrathOfChris/billow-web | billow_web/templates/instance.html | HTML | bsd-2-clause | 2,955 |
from django.views.generic import ListView
from models import Project
# Create your views here.
class ListProjectView(ListView):
model = Project
template_name = 'cmsplugin_vfoss_project/project_list.html'
| thuydang/djagazin | wsgi/djagazin/cmsplugin_vfoss_project/views.py | Python | bsd-2-clause | 207 |
/* @LICENSE(MUSLC_MIT) */
#include <sys/io.h>
#include "internal/syscall.h"
#ifdef SYS_iopl
int iopl(int level)
{
return syscall(SYS_iopl, level);
}
#endif
| gapry/refos | libs/libmuslc/src/linux/iopl.c | C | bsd-2-clause | 159 |
-- Log module for LICH
--
local log = {}
local io = require('io')
log.VERBOSE = false
log.DEBUG = false
log.INFO = true
log.ERROR = true
function log.verbose(msg)
if log.VERBOSE or log.DEBUG then
io.stdout:write('dbg: ' .. msg .. "\n")
end
end
log.debug = log.verbose
function log.info(msg)
if log.... | n0la/lich | lich/log.lua | Lua | bsd-2-clause | 502 |
(function() {
var imageLoaderExample, myapp, oflib, window;
oflib = require('lib/of');
oflib._.extend(this, oflib);
imageLoaderExample = (function() {
function imageLoaderExample() {
this.bikers = new ofImage;
this.gears = new ofImage;
this.tdf = new ofImage;
this.tdfSmall = new ofIm... | codeboost/JOpenFrameworks | bin/imageLoaderExample.js | JavaScript | bsd-2-clause | 2,556 |
// Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System.Diagnostics.SymbolStore
// Name: ISymbolWriter
// C++ Typed Name: mscorlib::System::Diagnostics::SymbolStore::ISymbolWriter
#include <gtest/gtest.h>
#include <mscorlib/System/Diagnostic... | brunolauze/MonoNative | MonoNative.Tests/mscorlib/System/Diagnostics/SymbolStore/mscorlib_System_Diagnostics_SymbolStore_ISymbolWriter_Fixture.cpp | C++ | bsd-2-clause | 7,006 |
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>$title</title>
$styles
</head>
<body>
<h1>$title</h1>
<p>
<input type="text" id="txt" value="Hello, $title!" />
<input type="button" id="btn" value="hello" />
</p>
$scripts
</body>... | tnantoka/CoffeeScriptAtOnce | CoffeeScriptAtOnce/Resources/template/src/index.html | HTML | bsd-2-clause | 329 |
_x$ = 8 ; size = 4
bool <lambda_38b13499cc98be0a488fd10e7e4a1541>::operator()(int)const PROC ; <lambda_38b13499cc98be0a488fd10e7e4a1541>::operator(), COMDAT
mov eax, DWORD PTR _x$[esp-4]
cmp eax, 42 ; 0000002aH
je SH... | WojciechMula/toys | autovectorization-tests/results/msvc19.28.29333-avx2/count_if.asm | Assembly | bsd-2-clause | 3,571 |
var config = {
apiKey: "AIzaSyCVr8kNbA_47LwbKBesa4PzggiQoMtD6nA",
authDomain: "absen-143db.firebaseapp.com",
databaseURL: "https://absen-143db.firebaseio.com",
projectId: "absen-143db",
storageBucket: "absen-143db.appspot.com",
messagingSenderId: "993994713726"
};
firebase.initializeApp(config);
var date = new Date(),... | christoga/schoolkit | js/absen.js | JavaScript | bsd-2-clause | 3,385 |
# NodeBB Vibration Notifications for Mobile
This NodeBB plugin uses the HTML5 Vibration API to alert you upon new incoming notifications while browsing on mobile.
## Installation
npm install nodebb-plugin-vibration-notifications
## Browser support
Latest versions of Chrome and Firefox for Android | psychobunny/nodebb-plugin-vibration-notifications | README.md | Markdown | bsd-2-clause | 307 |
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using Core.Framework.Permissions.Helpers;
using Core.Framework.Permissions.Models;
using Framework.Core.Localization;
using Framework.Facilities.NHibernate.Objects;
namespace Core.Web.NHibernate.Models
{
[Export(typeof (IPerm... | coreframework/Core-Framework | Source/Core.Web.NHibernate/Models/Role.cs | C# | bsd-2-clause | 2,688 |
/*
fourier.cpp -- Functions for sampling and evaluating Fourier series
Copyright (c) 2015 Wenzel Jakob <wenzel@inf.ethz.ch>
All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.
*/
#include <layer/fourier.h>
#include <layer/simd.h>
NAM... | wjakob/layerlab | src/fourier.cpp | C++ | bsd-2-clause | 17,040 |
# PyVEX
# Installing PyVEX
PyVEX can be pip-installed:
```bash
pip install pyvex
```
# Citing PyVEX
If you use PyVEX in an academic work, please cite the paper for which it was developed:
```bibtex
@article{shoshitaishvili2015firmalice,
title={Firmalice - Automatic Detection of Authentication Bypass Vulnerabili... | avain/pyvex | README.md | Markdown | bsd-2-clause | 8,325 |
#!/bin/bash
docker run -it --rm -e DISPLAY=$DISPLAY --ipc host -v /tmp/.X11-unix:/tmp/.X11-unix -v $PWD:/home/angr/pwd angr/angr-management "$@"
| Ruide/angr-dev | angr-management/run-docker.sh | Shell | bsd-2-clause | 146 |
require 'gitlab'
require 'terminal-table/import'
require_relative 'cli_helpers'
require_relative 'shell'
class Gitlab::CLI
extend Helpers
# If set to true, JSON will be rendered as output
@render_json = false
# Starts a new CLI session.
#
# @example
# Gitlab::CLI.start(['help'])
# Gitlab::CLI.sta... | michaellihs/gitlab | lib/gitlab/cli.rb | Ruby | bsd-2-clause | 2,363 |
#include "Arduino.h"
#include "Math.h"
#include <lchica.h>
#ifndef Arduino_h
#define Arduino_h
#endif
#define RED_LED_NUM 4
#define BLUE_LED_NUM 2
#define YELLOW_LED_NUM 2
#define LED_PIN_NUM 8
#define CLOCKWISE true
#define REVERSE false
const int ledpin[LED_PIN_NUM]= {46,47,48,49,50,51,52,53};
const int blueledpin[B... | kendemu/kasadas-bohan | lchica.cpp | C++ | bsd-2-clause | 5,652 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The Date.prototype has the property "getFullYear"
esid: sec-properties-of-the-date-prototype-object
es5id: 15.9.5_A10_T1
description: The Date.prototype has the property "getF... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Date/prototype/S15.9.5_A10_T1.js | JavaScript | bsd-2-clause | 466 |
/*******************************************************************************
* Copyright (c) 2013-2015 Sierra Wireless and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.... | iotoasis/SI | si-modules/LWM2M_IPE_Server/leshan-server-core/src/main/java/org/eclipse/leshan/server/Startable.java | Java | bsd-2-clause | 814 |
/*
* Copyright (C) Igor Sysoev
* Copyright (C) Nginx, Inc.
*/
#ifndef _NGX_BUF_H_INCLUDED_
#define _NGX_BUF_H_INCLUDED_
#include <ngx_config.h>
#include <ngx_core.h>
typedef void * ngx_buf_tag_t;
typedef struct ngx_buf_s ngx_buf_t;
// http://book.51cto.com/art/201303/386653.htm
struct ngx_buf_s {... | songbingyu/nginx1.8-annotated | src/core/ngx_buf.h | C | bsd-2-clause | 7,874 |
/*
* Show the TPM capability information
*
* Copyright (c) 2016, Wind River Systems, Inc.
* All rights reserved.
*
* See "LICENSE" for license terms.
*
* Author:
* Jia Zhang <zhang.jia@linux.alibaba.com>
*/
#include <efi.h>
#include <efilib.h>
#include <tcg2.h>
EFI_STATUS
efi_main(EFI_HANDLE ImageHand... | jiazhang0/efi-tpm2-utils | src/efi/tpm2-capability.c | C | bsd-2-clause | 5,087 |
// Copyright 2014 BVLC and contributors.
#include <stdint.h> // for uint32_t & uint64_t
#include <time.h>
#include <climits>
#include <cmath> // for std::fabs
#include <cstdlib> // for rand_r
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/... | xiaomi646/caffe_2d_mlabel | src/caffe/test/test_math_functions.cpp | C++ | bsd-2-clause | 7,892 |
---
title: Xadow Tutorial - Acceleration Detector
category: RePhone
oldwikiname: Xadow tutorial-Acceleration detector
surveyurl: https://www.research.net/r/Xadow_Tutorial_Acceleration_Detector
---
We have made an acceleration detector, it detects the acceleration and reminds users by vibrating. When the acceler... | SeeedDocument/Seeed-WiKi | docs/Xadow_Tutorial_Acceleration_Detector.md | Markdown | bsd-2-clause | 2,631 |
#!/usr/bin/env bash
# Compiling with ghcjs:
stack build --stack-yaml=stack-ghcjs.yaml
# Moving the generated files to the js folder:
mkdir -p js
cp -r $(stack path --local-install-root --stack-yaml=stack-ghcjs.yaml)/bin/hakyll-cms.jsexe/all.js js/
# Minifying all.js file using the closure compiler:
cd js
closure-com... | Haskell-Praxis/hakyll-cms | deploy.sh | Shell | bsd-2-clause | 477 |
/*
* Copyright 2019 Shannon F. Stewman
*
* See LICENCE for the full copyright terms.
*/
#ifndef ADT_EDGESET_H
#define ADT_EDGESET_H
#include <stdint.h>
struct bm;
struct set;
struct fsm_alloc;
struct fsm_edge;
struct edge_set;
struct state_set;
struct edge_iter {
size_t i, j;
const struct edge_set *set;
};
s... | katef/libfsm | include/adt/edgeset.h | C | bsd-2-clause | 4,364 |
""" Common utility
"""
import logging
import time
def measure(func, *args, **kwargs):
def start(*args, **kwargs):
begin = time.time()
result = func(*args, **kwargs)
end = time.time()
arg = args
while not (isinstance(arg, str) or isinstance(arg, int) or isinstance(arg, flo... | inlinechan/stags | stags/util.py | Python | bsd-2-clause | 856 |
/*
* L.GeoJSON turns any GeoJSON data into a Leaflet layer.
*/
L.GeoJSON = L.FeatureGroup.extend({
initialize: function (geojson, options) {
L.setOptions(this, options);
this._layers = {};
if (geojson) {
this.addData(geojson);
}
},
addData: function (geojson) {
var features = L.U... | perliedman/Leaflet | src/layer/GeoJSON.js | JavaScript | bsd-2-clause | 6,642 |
<html>
<head>
<title>Refrigeração Montagner</title>
</head>
<?php
include("comum/comum.inc");
?>
<body bgcolor="<?php echo($cor_fundo_principal); ?>">
<center>
<br>
<br>
<br>
<h1>Refrigeração Montagner Comércio e Serviços de Máquinas Ltda. ME</h1>
<br>
<... | vinnix/refrimon | refrimon/inicio.php | PHP | bsd-2-clause | 488 |
from __future__ import (absolute_import, print_function, division)
class NotImplementedException(Exception):
pass
| zbuc/imaghost | ghost_exceptions/__init__.py | Python | bsd-2-clause | 120 |
SYSROOT=$NDKROOT/platforms/android-19/arch-x86
GCCTOOLCHAIN=$NDKROOT/toolchains/x86-4.8/prebuilt/windows-x86_64
GNUSTL=$NDKROOT/sources/cxx-stl/gnu-libstdc++/4.8
COMMONTOOLCHAINFLAGS="-target i686-none-linux-android --sysroot=$SYSROOT -gcc-toolchain $GCCTOOLCHAIN"
COMMONCOMPILERFLAGS="-fdiagnostics-format=msvc -fPIC -f... | PopCap/GameIdea | Engine/Source/ThirdParty/ICU/icu4c-53_1/Android/ConfigForAndroid-x86.sh | Shell | bsd-2-clause | 1,335 |
BEGIN
FOR cur_rec IN (SELECT object_name, object_type
FROM user_objects
WHERE object_type IN
('VIEW',
'PACKAGE',
'PROCEDURE',
'FUNCTION',
... | kmstumpff/Scripts | RemoveAllTables.sql | SQL | bsd-2-clause | 1,725 |
// This file was procedurally generated from the following sources:
// - src/dstr-assignment/array-elem-put-prop-ref-user-err.case
// - src/dstr-assignment/error/assignment-expr.template
/*---
description: Any error raised as a result of setting the value should be forwarded to the runtime. (AssignmentExpression)
esid:... | sebastienros/jint | Jint.Tests.Test262/test/language/expressions/assignment/dstr-array-elem-put-prop-ref-user-err.js | JavaScript | bsd-2-clause | 884 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.