repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
asm-products/really-good-email-processor
config.js
288
module.exports = function (app) { // url app.set('url', process.env.URL || 'http://localhost'); // port app.set('port', process.env.PORT || 3000); // destination api url app.set('destination_url', process.env.DESTINATION_URL || 'http://localhost:3000/test'); };
bsd-2-clause
scifio/scifio
src/main/java/io/scif/services/TranslatorService.java
3488
/* * #%L * SCIFIO library for reading and converting scientific file formats. * %% * Copyright (C) 2011 - 2021 SCIFIO developers. * %% * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of so...
bsd-2-clause
mvbattista/homebrew-core
Formula/baresip.rb
1507
class Baresip < Formula desc "Modular SIP useragent" homepage "http://www.creytiv.com/baresip.html" url "http://www.creytiv.com/pub/baresip-0.5.4.tar.gz" sha256 "710c16d209f8e5b7fd63433d27dd0ce2e651967a720ce5447162c268ec0e1c8a" bottle do sha256 "d97728c4347d3bd5a75cdbd1b2b43aabcfd18c26dd9a0552b87d76b0f74...
bsd-2-clause
mvbattista/homebrew-core
Formula/pcl.rb
2359
class Pcl < Formula desc "Library for 2D/3D image and point cloud processing" homepage "http://www.pointclouds.org/" url "https://github.com/PointCloudLibrary/pcl/archive/pcl-1.8.1.tar.gz" sha256 "5a102a2fbe2ba77c775bf92c4a5d2e3d8170be53a68c3a76cfc72434ff7b9783" head "https://github.com/PointCloudLibrary/pcl....
bsd-2-clause
PetterS/easy-IP
examples/parking.cpp
8241
// Petter Strandmark 2013 // petter.strandmark@gmail.com #include <iostream> #include <stdexcept> #include <vector> using std::vector; using std::size_t; #include <easy-ip.h> // // This class adds connectivity constraints to the IP class. // It does so in two different ways, but they both result in // problems that ...
bsd-2-clause
swax/DeOps
Core/Services/Voice/RecordAudio.cs
11763
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Runtime.InteropServices; using System.Threading; namespace DeOps.Services.Voice { public class RecordAudio : IDisposable { VoiceService Voices; IntPtr WaveHandle; ...
bsd-2-clause
lhm/homebrew
Library/Formula/mpich2.rb
1696
require 'formula' # This should really be named Mpich now, but homebrew cannot currently handle # formula renames, see homebrew issue #14374. class Mpich2 < Formula homepage 'http://www.mpich.org/' url 'http://www.mpich.org/static/downloads/3.1.1/mpich-3.1.1.tar.gz' mirror 'http://fossies.org/linux/misc/mpich-3....
bsd-2-clause
sebastienros/jint
Jint.Tests.Test262/test/built-ins/Array/prototype/every/15.4.4.16-3-19.js
1191
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-array.prototype.every es5id: 15.4.4.16-3-19 description: > Array.prototype.every - value of 'length' is an Object which has an own toString method ---*/ functi...
bsd-2-clause
Linuxbrew/homebrew-core
Formula/flamegraph.rb
3310
class Flamegraph < Formula desc "Stack trace visualizer" homepage "https://github.com/brendangregg/FlameGraph" url "https://github.com/brendangregg/FlameGraph/archive/v1.0.tar.gz" sha256 "c5ba824228a4f7781336477015cb3b2d8178ffd86bccd5f51864ed52a5ad6675" license "CDDL-1.0" revision 1 head "https://github.c...
bsd-2-clause
khades/servbot
ircClient/ircClient.go
3684
package ircClient import ( "fmt" "log" "time" "github.com/khades/servbot/models" "github.com/khades/servbot/repos" "gopkg.in/irc.v2" ) // IrcClient struct defines object that will send messages to a twitch server type IrcClient struct { Client *irc.Client Bounces map[string]time.Time Ready ...
bsd-2-clause
cedwardsmedia/homebrew-cask
Casks/bit-slicer.rb
546
cask 'bit-slicer' do version '1.7.6' sha256 '03e9125481bd4c6459e379b3b0df69a2eecbde80f7cb11d9be8dfc9c0f8d3a58' # bitbucket.org is the official download host per the vendor homepage url "https://bitbucket.org/zorgiepoo/bit-slicer/downloads/Bit%20Slicer%20#{version}.zip" appcast 'https://zgcoder.net/bitslicer/...
bsd-2-clause
nordicdyno/cfbackup
cfbackup/__main__.py
180
#!/usr/bin/env python """The main entry point. Invoke as `cfbackup' or `python -m cfbackup'. """ import sys from .core import main if __name__ == '__main__': sys.exit(main())
bsd-2-clause
Fedict/dcattools
scrapers/src/main/java/be/fedict/dcat/scrapers/statbel/HtmlStatbelPubs.java
9495
/* * Copyright (c) 2017, FPS BOSA DG DT * 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 condit...
bsd-2-clause
reitermarkus/brew
Library/Homebrew/test/dev-cmd/bump_spec.rb
784
# typed: false # frozen_string_literal: true require "cmd/shared_examples/args_parse" describe "brew bump" do describe "Homebrew.bump_args" do it_behaves_like "parseable arguments" end describe "formula", :integration_test do it "returns data for single valid specified formula" do install_test_fo...
bsd-2-clause
DaveKriewall/Rearranger
test/testData/com/wrq/rearranger/GetPrefixReturnsResult.java
682
public class GetterDefinitionTest { /** name: correct prefix; body: returns */ public int getX() { return field + 1; } /** name: correct prefix; body: returns field */ public int getZ() { return field; } /** name: matches field; body: returns */ public int getFiel...
bsd-2-clause
KenanSulayman/mollie-api-node
examples/6-list-available-methods.js
1467
// Generated by CoffeeScript 1.6.3 /* Example 6 - How to get the currently activated payment methods. */ (function() { var Mollie, example, _; Mollie = require("../lib/mollie"); _ = require("underscore"); example = (function() { function example(request, response) { /* Initialize the Mo...
bsd-2-clause
mechaphish/colorguard
colorguard/harvester/__init__.py
33
from .harvester import Harvester
bsd-2-clause
bmatsuo/dispatch
examples/doc.go
476
/* * Filename: doc.go * Author: Bryan Matsuo <bmatsuo@soe.ucsc.edu> * Created: Tue Jul 5 22:13:49 PDT 2011 * Description: * Usage: gotest */ /* Examples using the dispatch package. Install the examples with the command cd $GOROOT/src/pkg/github.com/bmatsuo/dispatch && gomake exinst...
bsd-2-clause
PopCap/GameIdea
Engine/Source/Editor/PropertyEditor/Private/SDetailsViewBase.cpp
39373
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "PropertyEditorPrivatePCH.h" #include "SDetailsViewBase.h" #include "AssetSelection.h" #include "PropertyNode.h" #include "ItemPropertyNode.h" #include "CategoryPropertyNode.h" #include "ObjectPropertyNode.h" #include "ScopedTransaction.h" #include ...
bsd-2-clause
tanghaibao/jcvi
jcvi/utils/console.py
355
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # # console.py # utils # # Created by Haibao Tang on 01/09/21 # Copyright © 2021 Haibao Tang. All rights reserved. # """ We create a singleton console instance at the module level or as an attribute of your top-level object. """ from rich.console import Console console =...
bsd-2-clause
vividos/RemotePhotoTool
src/RemotePhotoTool/AboutDlg.cpp
1410
// // RemotePhotoTool - remote camera control software // Copyright (C) 2008-2014 Michael Fink // /// \file RemotePhotoTool\AboutDlg.cpp About dialog for remote photo tool // // includes #include "stdafx.h" #include "resource.h" #include "AboutDlg.hpp" #include "Instance.hpp" #include "../version.h" #include "Lua.hpp"...
bsd-2-clause
cblecker/homebrew-cask
Casks/thunderbird.rb
2682
cask 'thunderbird' do version '60.7.2' language 'cs' do sha256 '1a08ba2673eae88b28bf4fd5111c4af14a29cef31cac7ba91510662100aa7777' 'cs' end language 'de' do sha256 'c90f9b4bc44207b4769d440b1e309e23e7db5b37217713e07cdf73fc3e9531da' 'de' end language 'en-GB' do sha256 '4bc8ee7232a30c9941...
bsd-2-clause
vicchi/maps-api-demos
ovi-polylines.js
1361
var map; function initialize() { map = new ovi.mapsapi.map.Display( document.getElementById("map"), { 'zoomLevel': 12, 'center': [37.78,-122.395033836365], components: [ new ovi.mapsapi.map.component.Behavior(), new ovi.mapsapi.map.component.ZoomBar() ] }); poly(map); } function pol...
bsd-2-clause
golems/HuboCan
HuboCan/test/InfoTypes_test.cpp
2205
/* * Copyright (c) 2015, Georgia Tech Research Corporation * All rights reserved. * * Author(s): Michael X. Grey <greyxmike@gmail.com> * * Humanoid Robotics Lab * * Directed by Prof. Mike Stilman <mstilman@cc.gatech.edu> * * This file is provided under the following "BSD-style" License: * Redistribution an...
bsd-2-clause
pcloudcom/pfs-gui
pCloud/registerwindow.cpp
3491
#include "registerwindow.h" #include "ui_registerwindow.h" #include "binapi.h" #include "pcloudapp.h" #include "common.h" RegisterWindow::RegisterWindow(PCloudApp *a, QWidget *parent) : QMainWindow(parent), ui(new Ui::RegisterWindow) { app=a; setWindowIcon(QIcon(WINDOW_ICON)); ui->setupUi(this); ...
bsd-2-clause
ggobbe/vivre-uo
Scripts/Vivre/Items/Dismounter.cs
2660
using System; using Server; using Server.Mobiles; namespace Server.Items { public class Dismounter : Item { private bool m_Active; private Direction m_Direction; [CommandProperty( AccessLevel.GameMaster )] public bool Active { get { return m_Active; } set { m_Active = value; InvalidateProperties(); ...
bsd-2-clause
EpicLegion/WebRavaged
WebRavaged/application/games/dashboard/blackops.php
56520
<?php defined('SYSPATH') or die('No direct script access.'); /** * Dashboard implementation for Call of Duty: Black Ops * * Copyright (c) 2010, EpicLegion * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditio...
bsd-2-clause
jcodec/jcodec
src/main/java/org/jcodec/codecs/vpx/vp8/data/YV12buffer.java
10007
package org.jcodec.codecs.vpx.vp8.data; import java.util.EnumSet; import org.jcodec.codecs.vpx.VP8Encoder; import org.jcodec.codecs.vpx.vp8.CommonUtils; import org.jcodec.codecs.vpx.vp8.VP8Exception; import org.jcodec.codecs.vpx.vp8.enums.MVReferenceFrame; import org.jcodec.codecs.vpx.vp8.enums.CodecError; import org...
bsd-2-clause
tidepool-org/platform
vendor/github.com/cloudevents/sdk-go/protocol/kafka_sarama/v2/message.go
3691
package kafka_sarama import ( "bytes" "context" "strings" "github.com/cloudevents/sdk-go/v2/binding" "github.com/cloudevents/sdk-go/v2/binding/format" "github.com/cloudevents/sdk-go/v2/binding/spec" "github.com/Shopify/sarama" ) const ( prefix = "ce_" contentTypeHeader = "content-type" ) var sp...
bsd-2-clause
leonidk/apriltrack
example/opencv_demo.cc
7010
/* Copyright (C) 2013-2016, The Regents of The University of Michigan. All rights reserved. This software was developed in the APRIL Robotics Lab under the direction of Edwin Olson, ebolson@umich.edu. This software may be available under alternative licensing terms; contact the address above. Redistribution and use i...
bsd-2-clause
avnit/EGroovy
Library/Homebrew/cmd/untap.rb
1389
require 'cmd/tap' # for tap_args module Homebrew extend self def untap raise "Usage is `brew untap <tap-name>`" if ARGV.empty? user, repo = tap_args # we consistently downcase in tap to ensure we are not bitten by case-insensive # filesystem issues. Which is the default on mac. The problem being th...
bsd-2-clause
DanielArenas/mezcalaria-backend
db/migrate/20170509204708_add_access_token_usuarios.rb
119
class AddAccessTokenUsuarios < ActiveRecord::Migration def change add_column :usuarios, :idiom, :string end end
bsd-2-clause
jmcnamara/XlsxWriter
xlsxwriter/test/comparison/test_object_position05.py
862
############################################################################### # # Tests for XlsxWriter. # # SPDX-License-Identifier: BSD-2-Clause # Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompar...
bsd-2-clause
emaphp/eMacros
src/eMacros/Scope.php
2101
<?php namespace eMacros; class Scope implements \ArrayAccess, \IteratorAggregate { /** * Symboil table * @var array */ public $symbols = []; /** * Macros list * @var array */ public $macros = []; protected static function symbol($symbol) { if ($symbol instanceof Symbol) return $symbol->symbo...
bsd-2-clause
guaguadev/redash
migrations/gg0001_add_ggargs_active_to_user.py
364
from redash.models import db, User from playhouse.migrate import PostgresqlMigrator, migrate if __name__ == '__main__': migrator = PostgresqlMigrator(db.database) with db.database.transaction(): migrate( migrator.add_column('users', 'active', User.active), migrator.add_column('...
bsd-2-clause
fpsw/Servo
servo/validators.py
1054
# -*- coding: utf-8 -*- import os import re import phonenumbers from gsxws.core import validate from django.conf import settings from django.core.exceptions import ValidationError from django.utils.translation import ugettext as _ def phone_validator(val): try: phonenumbers.parse(val.upper(), settings.IN...
bsd-2-clause
mahori/brew
Library/Homebrew/test/utils/git_spec.rb
7740
# frozen_string_literal: true require "utils/git" describe Utils::Git do around do |example| described_class.clear_available_cache example.run ensure described_class.clear_available_cache end before do git = HOMEBREW_SHIMS_PATH/"scm/git" HOMEBREW_CACHE.cd do system git, "init" ...
bsd-2-clause
NikitaKarnauhov/lansink
src/lexer.cpp
15400
/* lexer.cpp Copyright (c) 2013, Nikita Karnauhov 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 not...
bsd-2-clause
sebastienros/jint
Jint.Tests.Test262/test/language/statements/generators/dstr-obj-ptrn-prop-id.js
1778
// This file was procedurally generated from the following sources: // - src/dstr-binding/obj-ptrn-prop-id.case // - src/dstr-binding/default/gen-func-decl.template /*--- description: Binding as specified via property name and identifier (generator function declaration) esid: sec-generator-function-definitions-runtime-...
bsd-2-clause
EIDSS/EIDSS-Legacy
EIDSS v6/eidss.main/Program.cs
7764
using System; using System.Reflection; using System.Windows.Forms; using bv.common; using bv.common.Diagnostics; using bv.common.Resources; using bv.common.Resources.TranslationTool; using bv.model.Model.Core; using bv.model.Model.Validators; using bv.winclient.Core; using bv.common.Core; using eidss.model....
bsd-2-clause
zergylord/MyCaffe
tools/test_net.cpp
1628
// Copyright 2014 BVLC and contributors. // // This is a simple script that allows one to quickly test a network whose // structure is specified by text format protocol buffers, and whose parameter // are loaded from a pre-trained network. // Usage: // test_net net_proto pretrained_net_proto iterations [CPU/GPU] #i...
bsd-2-clause
Krozark/SFML-book
08_Multiplayer/DataPersistence/src/SFML-Book/server/Client.cpp
1735
#include <SFML-Book/server/Client.hpp> #include <SFML-Book/common/FuncIds.hpp> #include <iostream> namespace book { Client::Client() : _team(nullptr) { } Client::~Client() { if(_team) _team->remove(this); } void Client::setTeam(Team::type_ptr team) { if...
bsd-2-clause
clearlycloudy/e2r
core/interface/i_interpolate.rs
329
pub trait IInterpolate < T > : DoubleEndedIterator< Item = T > where T: Clone { fn interp_delta( & mut self, steps: i64 ) -> Option< T >; fn interp_current( & self ) -> T; fn interp_is_end( & self ) -> bool; fn interp_is_start( & self ) -> bool; fn num_steps( & self ) -> u64; fn reset( & mut s...
bsd-2-clause
jcodec/jcodec
src/main/java/org/jcodec/containers/mp4/demuxer/DashStreamDemuxer.java
16617
package org.jcodec.containers.mp4.demuxer; import java.io.Closeable; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.net.URL; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java...
bsd-2-clause
IvionSauce/MeidoBot
IrcCalc/Verifier.cs
6326
using System; using System.Collections.Generic; namespace Calculation { static class Verifier { public static VerifiedExpression VerifyExpression(CalcToken[] tokens, CalcEnvironment env) { int currentDepth = 0; // Depth/subexpression -> Argument counter & function meta...
bsd-2-clause
ibrarahmad/cstore
src/Writers/DictWriter.cpp
6188
/* Copyright (c) 2005, Regents of Massachusetts Institute of Technology, * Brandeis University, Brown University, and University of Massachusetts * Boston. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
bsd-2-clause
asmodehn/sdlut
Core/include/Core/NewLogger.hh
1809
#ifndef NEWLOGGER_HH #define NEWLOGGER_HH #include "Core/Logging/logstream.hh" //to be able to access cnull #include "Core/Logging/nullstream.hh" namespace Core { /*** * * \class NewLogger * \brief NewLogger manages the Logging outputs for the application. * */ class NewLogger : public logstream { public: ...
bsd-2-clause
cloudtools/awacs
awacs/datasync.py
2229
# Copyright (c) 2012-2021, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from .aws import Action as BaseAction from .aws import BaseARN service_name = "AWSDataSync" prefix = "datasync" class Action(BaseAction): def __init__(self, action: str = None) -> None: sup...
bsd-2-clause
gzorin/RSXGL
extsrc/mesa/src/glsl/lower_output_reads.cpp
4597
/* * Copyright © 2012 Vincent Lejeune * Copyright © 2012 Intel Corporation * * 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 rig...
bsd-2-clause
rchekaluk/check_docker
check_docker.go
7713
package main import ( "encoding/json" "errors" "flag" "io/ioutil" "net/http" "strconv" "strings" "sync" "github.com/newrelic/go_nagios" ) const ( API_VERSION = "v1.10" ) // A struct representing CLI opts that will be passed at runtime type CliOpts struct { BaseUrl string CritDataSpace int WarnDat...
bsd-2-clause
dgg/NMoneys.Web
src/Web/Properties/AssemblyInfo.cs
1358
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("NM...
bsd-2-clause
carlosrafaelgn/FPlayAndroid
jni/SimpleVisualizerJni.cpp
15968
// // FPlayAndroid is distributed under the FreeBSD License // // Copyright (c) 2013-2014, Carlos Rafael Gimenes das Neves // 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. Redistributi...
bsd-2-clause
AlexeySa/rspamd
lualib/lua_util.lua
5072
--[[ Copyright (c) 2017, Vsevolod Stakhov <vsevolod@highsecure.ru> 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 ...
bsd-2-clause
jebreimo/Yson
src/Yson/JsonWriter/JsonWriterUtilities.hpp
627
//**************************************************************************** // Copyright © 2018 Jan Erik Breimo. All rights reserved. // Created by Jan Erik Breimo on 2018-12-16. // // This file is distributed under the BSD License. // License text is included with the source distribution. //************************...
bsd-2-clause
cuzzo/atom
Gruntfile.js
601
module.exports = function(grunt) { grunt.initConfig ({ sass: { dist: { files: [{ expand: true, cwd: "example/sass", src: "**/*.scss", dest: "example/css", ext: ".css" }] } }, atom: { options: { molecule_path: "ex...
bsd-2-clause
joschi/homebrew-cask
Casks/bibdesk.rb
838
cask "bibdesk" do version "1.7.9" sha256 "feb0a9556f1b748f5f78d17056c30ed0a1a4266bb02c59a35db939c1e2b349d3" url "https://downloads.sourceforge.net/bibdesk/BibDesk/BibDesk-#{version}/BibDesk-#{version}.dmg", verified: "downloads.sourceforge.net/bibdesk/" appcast "https://bibdesk.sourceforge.io/bibdesk.xml...
bsd-2-clause
inviwo/inviwo
modules/fontrendering/src/util/fontutils.cpp
4775
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2016-2021 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
bsd-2-clause
aio-libs/aiozmq
tests/rpc_namespace_test.py
3047
import unittest import asyncio import aiozmq import aiozmq.rpc from aiozmq._test_util import find_unused_port class MyHandler(aiozmq.rpc.AttrHandler): @aiozmq.rpc.method async def func(self, arg): return arg + 1 class RootHandler(aiozmq.rpc.AttrHandler): ns = MyHandler() class RpcNamespaceTes...
bsd-2-clause
stelfrich/imagej-ops
src/main/java/net/imagej/ops/special/hybrid/BinaryHybridCI1.java
3216
/* * #%L * ImageJ software for multidimensional image processing and analysis. * %% * Copyright (C) 2014 - 2016 Board of Regents of the University of * Wisconsin-Madison, University of Konstanz and Brian Northan. * %% * Redistribution and use in source and binary forms, with or without * modification, are permi...
bsd-2-clause
aftabahmedsajid/XenCenter-Complete-dependencies-
XenAdmin/Wizards/PatchingWizard/PatchingWizard_SelectPatchPage.cs
16620
/* Copyright (c) Citrix Systems 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 li...
bsd-2-clause
tzwenn/PyOpenAirMirror
fply/rpc.py
433
import config import socket import fply.cli class FPLY(fply.cli.FPLY_repl): def __init__(self): self.conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.conn.connect((config.fplyServer, config.fplyServerPort)) def __del__(self): self.conn.close() def send(self, data): self.conn.sendall(data) ...
bsd-2-clause
pm4j/org.pm4j
pm4j-deprecated/src/test/java/org/pm4j/deprecated/core/sample/admin/remote_sample/server/pm/SampleUserSrvPm.java
1684
package org.pm4j.deprecated.core.sample.admin.remote_sample.server.pm; import org.pm4j.core.pm.PmAttr; import org.pm4j.core.pm.PmAttrEnum; import org.pm4j.core.pm.PmAttrLong; import org.pm4j.core.pm.PmAttrString; import org.pm4j.core.pm.PmCommand; import org.pm4j.core.pm.annotation.PmBeanCfg; import org.pm4j.core.pm.a...
bsd-2-clause
windelbouwman/ppci-mirror
test/util/test_collections.py
786
#!/usr/bin/python import unittest from ppci.utils.collections import OrderedSet class OrderedSetTestCase(unittest.TestCase): """ Test if graph works. - Add nodes - add edges - mask and unmask nodes - combine nodes. """ def test_example(self): """ Test example from ...
bsd-2-clause
unasuke/homebrew-fonts
Casks/font-amethysta.rb
353
cask 'font-amethysta' do version :latest sha256 :no_check # github.com/google/fonts was verified as official when first introduced to the cask url 'https://github.com/google/fonts/raw/master/ofl/amethysta/Amethysta-Regular.ttf' name 'Amethysta' homepage 'https://www.google.com/fonts/specimen/Amethysta' ...
bsd-2-clause
floatec/ProsDataBase
ProsDataBase/database/forms.py
3474
# -*- coding: UTF-8 -*- __author__ = 'My-Tien Nguyen' from models import * from django.forms import ModelForm # =============================== # ----- TABLE FORMS --------- # =============================== class CategoryForm(ModelForm): class Meta: model = Category fields = ('name', ) class...
bsd-2-clause
fms13/cdx
docs/search/functions_4.js
176
var searchData= [ ['hamming',['hamming',['../cdx-convert-continuous-to-discrete_8cpp.html#ada194bc2ddf41e0f8f2921f88007ca90',1,'cdx-convert-continuous-to-discrete.cpp']]] ];
bsd-2-clause
Jumpscale/jumpscale6_core
apps/eve/eve_start.py
2751
from JumpScale import j import os from eve import Eve from eve.render import send_response from flask.ext.bootstrap import Bootstrap from eve_docs import eve_docs from eve_docs.config import get_cfg from generators.EveGenerator import generateDomain from werkzeug.wsgi import DispatcherMiddleware from werkzeug.serving...
bsd-2-clause
Drafigon/WildGraphs
src/utility/GraphFunctions.java
8615
package utility; import graph.implementation.Edge; import graph.implementation.Graph; import graph.implementation.Vertex; import java.awt.Color; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Point; import java.awt.image.BufferedImage; import java.util.ArrayList; import java.util.Collection; impor...
bsd-2-clause
askl56/homebrew-cask
Casks/pixel-check.rb
420
cask v1: 'pixel-check' do version '1.3' sha256 '99da44c4538463c6476be2f7d6584a4e5a9bfa175895d72e5baf1f3271316b02' url "http://macguitar.me/apps/pixelcheck/PXC#{version}.zip" name 'PiXel Check' homepage 'http://macguitar.me/apps/pixelcheck/' license :unknown # todo: change license and remove this comment...
bsd-2-clause
flywingsky/task-ninja
app/src-app/taskninja/android/dialogs/NewListDialog.java
1941
package taskninja.android.dialogs; import java.sql.SQLException; import taskninja.android.ActionListener; import taskninja.android.models.NinjaList; import taskninja.android.ormlite.DatabaseHelper; import android.app.Dialog; import android.content.Context; import android.view.View; import android.widget.Button; impor...
bsd-2-clause
sitna/api-sitna
TC/config/browser-versions.js
350
TC.Cfg.acceptedBrowserVersions = [ { "name": "Chrome", "version": 85 }, { "name": "Edge", "version": 85 }, { "name": "Firefox", "version": 78 }, { "name": "Safari", "version": 13 }, { "name": "Mobile Safari", ...
bsd-2-clause
makigumo/homebrew-core
Formula/gnupg@2.2.rb
2628
class GnupgAT22 < Formula desc "GNU Pretty Good Privacy (PGP) package" homepage "https://gnupg.org/" url "https://gnupg.org/ftp/gcrypt/gnupg/gnupg-2.2.32.tar.bz2" sha256 "b2571b35f82c63e7d278aa6a1add0d73453dc14d3f0854be490c844fca7e0614" license "GPL-3.0-or-later" livecheck do url "https://gnupg.org/ftp...
bsd-2-clause
4honor/gingko
gko-tracker-src/src/PeerHandler.cpp
20383
#include "bbts/tracker/PeerHandler.h" #include <climits> #include <boost/format.hpp> #include <glog/logging.h> #include "bbts/encode.h" #include "bbts/KeyTypeRWLock.hpp" #include "bbts/Random.h" #include "bbts/RedisCommandCreator.h" #include "bbts/RedisManager.h" #include "bbts/StatusManager.h" #include "tracker_typ...
bsd-2-clause
kerwinxu/barcodeManager
zxing/cpp/scons/scons-local-2.0.0.final.0/SCons/Tool/dvips.py
3546
"""SCons.Tool.dvips Tool-specific initialization for dvips. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons F...
bsd-2-clause
wolffaxn/homebrew-core
Formula/velero.rb
1842
class Velero < Formula desc "Disaster recovery for Kubernetes resources and persistent volumes" homepage "https://github.com/heptio/velero" url "https://github.com/heptio/velero/archive/v1.1.0.tar.gz" sha256 "9313f059c9c973052fba4b307e652b1067b8542302277af1f610415e79cb32c0" bottle do cellar :any_skip_rel...
bsd-2-clause
DomT4/homebrew-versions
thrift090.rb
3060
# The 0.9.0 tag in homebrew repository isn't working in OSX Mavericks # this version fixes Cpp11 problems about syntax and tr1 headers # All patches and this file can be found in this public gist: # https://gist.githubusercontent.com/rafaelverger/58b6eeafaae7d28b06cc class Thrift090 < Formula desc "Framework for scal...
bsd-2-clause
gaker/tank-maven
tank_maven/models.py
1737
""" Models """ import bcrypt import os from sqlalchemy import ( Column, String, DateTime, Boolean, Integer, Text, ForeignKey) from sqlalchemy.ext.declarative import declarative_base from sqlite3 import dbapi2 as sqlite from tornado import options Base = declarative_base() class User(Base): """ User obje...
bsd-2-clause
msklywenn/bitbox
tools/tracker/src/guibutton.cpp
300
#include "guibutton.h" GUIButton::GUIButton(int x, int y, int w, int h, Action * a) : GUIElement(x, y, w, h), action(a) { } bool GUIButton::process(SDL_Event * event) { if ( event->type == SDL_MOUSEBUTTONDOWN && test(event->button.x, event->button.y) ) { action->job(); } return false; }
bsd-2-clause
dreamsxin/ultimatepp
bazaar/OCETest/MakeBottle.cpp
6614
#include "MakeBottle.h" #include <BRep_Tool.hxx> #include <BRepAlgoAPI_Fuse.hxx> #include <BRepBuilderAPI_MakeEdge.hxx> #include <BRepBuilderAPI_MakeFace.hxx> #include <BRepBuilderAPI_MakeWire.hxx> #include <BRepBuilderAPI_Transform.hxx> #include <BRepFilletAPI_MakeFillet.hxx> #include <BRepLib.hxx> ...
bsd-2-clause
reelsense/homebrew-core
Formula/vapoursynth.rb
1749
class Vapoursynth < Formula include Language::Python::Virtualenv desc "Video processing framework with simplicity in mind" homepage "http://www.vapoursynth.com" url "https://github.com/vapoursynth/vapoursynth/archive/R43.tar.gz" sha256 "5c80d583f6891f4f5840edf09bc207c2e71653786b07606fdb4a164fd67470c2" head...
bsd-2-clause
GeosoftInc/gxpy
geosoft/gxapi/GXNumpy.py
772
import geosoft.gxapi as gxa import numpy as np def gs_from_np(dtype): dtype = np.dtype(dtype) if dtype == np.byte: return gxa.GS_BYTE elif dtype == np.ubyte: return gxa.GS_UBYTE elif dtype == np.int16: return gxa.GS_SHORT elif dtype == np.uint16: return gxa.GS_USHORT...
bsd-2-clause
expipiplus1/joelang
include/joelang/inl/state-inl.hpp
3119
/* Copyright 2012 Joe Hermaszewski. 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 ...
bsd-2-clause
phdabel/MASBench
src/br/ufrgs/MASBench/BinaryMaxSum/Factor/SingleWeightFactor.java
3832
/* * Software License Agreement (BSD License) * * Copyright 2014 Marc Pujol <mpujol@iiia.csic.es>. * * Redistribution and use of this software in source and binary forms, with or * without modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must re...
bsd-2-clause
dante1977/dtjs
index.js
4885
'use strict' module.exports = require('./lib/dtjs'); // //var dtjs = require('./lib/dtjs.js'); //var path = require('path'); //var fs = require('fs'); // ///** // * @namespace dtjs // */ //var index = module.exports = {}; // ///** // * 对应命令的处理 // * @type {{build: *}} // */ //index.cmd = { // build: require('./lib/cmd...
bsd-2-clause
stefan-loewe/Woody
source/ws/loewe/Woody/System/WindowConstraints.php
2316
<?php namespace ws\loewe\Woody\System; use \ws\loewe\Utils\Geom\Dimension; class WindowConstraints { /** * the lowest width that is possible for a window on the current machine, with the current display settings * * @var int */ private $minWidth = null; /** * the lowest height that is possible ...
bsd-2-clause
spartango/EMExperiments
src/edu/harvard/mcb/leschziner/core/ParticleSource.java
429
package edu.harvard.mcb.leschziner.core; import java.util.concurrent.BlockingQueue; /** * Generates particles to be processed by consumers * * @author spartango * */ public interface ParticleSource { /** * Get the queue in which particles that are built can be found * * @return the particl...
bsd-2-clause
Priyaaks/libDAI_P
examples/3NodeBN1_createfg.cpp
2650
/* This file is part of libDAI - http://www.libdai.org/ * * Copyright (c) 2006-2011, The libDAI authors. All rights reserved. * * Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include <dai/factorgraph.h> #include <iostream> #include <fstream> using name...
bsd-2-clause
cirlabs/concealed-carry
app/scripts/main.js
4297
// jshint devel:true 'use strict'; var touch; if (/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)) { touch = true; var wrapper = document.getElementById('interactive-wrapper'); wrapper.className += ' touch-device'; } function circleTooltip(circle) { var $this = circle; var lawsuit = $this....
bsd-2-clause
andreasprlic/karyotypeSVG
js/kt/util.js
8367
/*jshint unused: false */ define(function (require) { var exports = {}; var attr_name_cache = {}; var pako = require('pako'); var NS_SVG = 'http://www.w3.org/2000/svg'; exports.indexOf = function (needle) { var indexOf; if (typeof Array.prototype.indexOf === 'function') { ...
bsd-2-clause
MG-RAST/golib
pool/examples/web_crawler.go
2761
// Exercise: Web Crawler - http://tour.golang.org/#70 // modified to use the worker pool package main import ( "fmt" "github.com/stefantalpalaru/pool" "runtime" ) type Fetcher interface { // Fetch returns the body of URL and // a slice of URLs found on that page. Fetch(url string) (body string, urls []string, e...
bsd-2-clause
jamesturk/jellyfish
jellyfish/__init__.py
757
import warnings try: from .cjellyfish import * # noqa library = "C" except ImportError: from ._jellyfish import * # noqa library = "Python" def jaro_winkler(s1, s2, long_tolerance=False): warnings.warn( "the name 'jaro_winkler' is deprecated and will be removed in jellyfish 1.0, " ...
bsd-2-clause
ess-dmsc/event-formation-unit
src/modules/freia/test/GeometryTest.cpp
1496
// Copyright (C) 2021 European Spallation Source, ERIC. See LICENSE file //===----------------------------------------------------------------------===// /// /// \file //===----------------------------------------------------------------------===// #include <freia/geometry/Geometry.h> #include <common/testutils/TestBa...
bsd-2-clause
mvbattista/homebrew-core
Formula/minetest.rb
2572
class Minetest < Formula desc "Free, open source voxel game engine and game" homepage "https://www.minetest.net/" revision 1 stable do url "https://github.com/minetest/minetest/archive/0.4.16.tar.gz" sha256 "0ef3793de9f569746ea78af7a66fe96ef65400019e5e64a04a5c3fa26a707655" resource "minetest_game"...
bsd-2-clause
depp/oubliette
src/base/image.cpp
5661
/* Copyright 2014 Dietrich Epp. This file is part of Oubliette. Oubliette is licensed under the terms of the 2-clause BSD license. For more information, see LICENSE.txt. */ #include "image.hpp" #include "defs.hpp" #include "surface.hpp" #include <SDL.h> #include <SDL_image.h> #include <cstdio> #include <cstdlib...
bsd-2-clause
golovnin/pgjdbc
pgjdbc/src/main/java/org/postgresql/util/PGTimestamp.java
3491
/* * Copyright (c) 2004, PostgreSQL Global Development Group * See the LICENSE file in the project root for more information. */ package org.postgresql.util; import java.sql.Timestamp; import java.util.Calendar; /** * This class augments the Java built-in Timestamp to allow for explicit setting of the time zone...
bsd-2-clause
ggobbe/vivre-uo
Scripts/Vivre/Items/Potions/Clumsy Potions/GreaterClumsyPotion.cs
733
using System; using Server; namespace Server.Items { public class GreaterClumsyPotion : BaseAgilityPotion { public override int DexOffset{ get{ return IntensifiedStrength?15:12; } } public override TimeSpan Duration{ get{ return TimeSpan.FromMinutes( IntensifiedTime?2.5:1.5 ); } } [Constructable] public ...
bsd-2-clause
vjoel/tupelo
lib/tupelo/app/remote.rb
2488
require 'tupelo/app' module Tupelo class AppBuilder # Perform client operations on another host. # # There are two modes: drb and eval. In the drb mode, a block executes # locally, performing tuplespace operations by proxy to the remote # tupelo client instance. Results of the ops are available i...
bsd-2-clause
sitescout/api-example
src/main/java/com/sitescout/dsp/api/type/SpendCapType.java
767
package com.sitescout.dsp.api.type; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; public enum SpendCapType { none("none"), daily("daily"), allTime("all_time"); private String valueStr; SpendCapType(String valueStr) { this.valueStr = value...
bsd-2-clause
highsource/javascript-codemodel
parser/src/test/java/org/hisrc/jscm/parser/literal/tests/DecimalParserTest.java
1665
package org.hisrc.jscm.parser.literal.tests; import java.math.BigDecimal; import org.hisrc.jscm.parser.ParseException; import org.hisrc.jscm.parser.literal.DecimalParser; import org.junit.Assert; import org.junit.Test; public class DecimalParserTest { @Test public void check() throws ParseException { Assert.ass...
bsd-2-clause
0x5542/LanTexter
src/main/java/de/ulfbiallas/lantexter/model/Constants.java
1466
package de.ulfbiallas.lantexter.model; /** * This class holds a set of global constants. * * @author Ulf Biallas * */ public class Constants { /** Image file for the window and tray icon. */ public static final String ICON_FILE = "icon.png"; /** Name of the application. */ public static final String PROGRAM...
bsd-2-clause