code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
#!/usr/bin/env python import logging import socket import struct import time import sys import cb_bin_client import couchbaseConstants import pump import cbsnappy as snappy try: import ctypes except ImportError: cb_path = '/opt/couchbase/lib/python' while cb_path in sys.path: sys.path.remove(cb_p...
TOTVS/mdmpublic
couchbase-cli/lib/python/pump_mc.py
Python
bsd-2-clause
17,056
using System; using bv.model.BLToolkit; using eidss.model.Reports.KZ; using EIDSS.Reports.BaseControls.Filters; using EIDSS.Reports.BaseControls.Keeper; using EIDSS.Reports.BaseControls.Report; namespace EIDSS.Reports.Parameterized.Veterinary.KZ.Keepers { public partial class VetProphMeasuresKeeper : Base...
EIDSS/EIDSS-Legacy
EIDSS v6/vb/EIDSS/EIDSS.Reports/Parameterized/Veterinary/KZ/Keepers/VetProphMeasuresKeeper.cs
C#
bsd-2-clause
1,874
<?php class tasks_Db extends controller_Tasks { public function actionCheck($force = false) { } }
fsw/old_eve
evelibs/core.lib/tasks/Db.php
PHP
bsd-2-clause
107
#pragma once #include "FAST/Visualization/Window.hpp" class QPushButton; class QLineEdit; class QLabel; class QElapsedTimer; class QListWidget; namespace fast { class RealSenseStreamer; class Tracking; class TrackingGUI : public Window { FAST_OBJECT(TrackingGUI) public: void extractPointCloud(); ...
smistad/FAST
source/FAST/Examples/RealSense/TrackingGUI.hpp
C++
bsd-2-clause
973
import argparse import os import json import sys from lxml import etree def process_file(name): tree = etree.parse(name) xpath = tree.xpath("//xsl:when/@test", namespaces={"xsl": "http://www.w3.org/1999/XSL/Transform"}) test_xml = tree.xpath("/xsl:stylesheet/xsl:template/xsl:if[@tes...
gsnedders/presto-testo-converters
convert_xpath.py
Python
bsd-2-clause
1,711
class GnomeRecipes < Formula desc "Formula for GNOME recipes" homepage "https://wiki.gnome.org/Apps/Recipes" url "https://download.gnome.org/sources/gnome-recipes/2.0/gnome-recipes-2.0.2.tar.xz" sha256 "1be9d2fcb7404a97aa029d2409880643f15071c37039247a6a4320e7478cd5fb" revision 2 bottle do sha256 "9250e...
reelsense/homebrew-core
Formula/gnome-recipes.rb
Ruby
bsd-2-clause
2,389
""" Web runtime based on Selenium. Selenium is a Python library to automate browsers. """ from .common import BaseRuntime class SeleniumRuntime(BaseRuntime): """ Runtime based on Selenium (http://www.seleniumhq.org/), a tool to automate browsers, e.g. for testing. Requires the Python package "selenium...
JohnLunzer/flexx
flexx/webruntime/selenium.py
Python
bsd-2-clause
1,783
// Copyright (c) 2009-2012, Andre Caron (andre.l.caron@gmail.com) // 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 //...
AndreLouisCaron/w32
code/w32.gdi/Key.cpp
C++
bsd-2-clause
2,607
/* * #%L * ImageJ2 software for multidimensional image processing and analysis. * %% * Copyright (C) 2014 - 2021 ImageJ2 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...
imagej/imagej-ops
src/main/java/net/imagej/ops/convert/ConvertNamespace.java
Java
bsd-2-clause
32,601
from Crypto.Cipher import AES import struct CHUNK_SIZE = 32768 def encrypt_chunk(f, aes): chunk = f.read(CHUNK_SIZE) realn = len(chunk) if realn == 0: return '' if realn % 16 != 0: padding = 16 - (realn % 16) chunk += ' ' * padding head = struct.pack('!H', realn) ...
zhemao/bootlegger
bootlegger/cryptfile.py
Python
bsd-2-clause
1,195
using Lombiq.Vsix.Orchard.Models; using System.Collections.Generic; using System.Linq; namespace Lombiq.Vsix.Orchard.Services.DependencyInjector { public class SimplifiedFieldNameFromGenericTypeGenerator : FieldNameFromGenericTypeGeneratorBase { private static IEnumerable<string> SimplifiedGen...
Lombiq/Lombiq-Visual-Studio-Extension
Lombiq.Vsix.Orchard/Services/DependencyInjector/SimplifiedFieldNameFromGenericTypeGenerator.cs
C#
bsd-2-clause
1,640
#!/bin/env ruby # ƒ\[ƒXƒR[ƒh’†‚ÌShiftJIS•¶Žš—ñ‚ðƒGƒ“ƒR[ƒh‚·‚é # include‚µ‚Ä‚¢‚é"*.h"‚ð"*.hxx"‚ɏ‘‚«Š·‚¦‚é require "kconv" while ($<.gets) line=Kconv::tosjis($_) if (line=~/^[ ]*#include[ ]"/)!=nil line.gsub!(/"([^"]*)\.h"/) do "\""+$1+".hxx\"" end end kanji1=0 line.each_byte do |c| if kanji1==0 i...
kawari/kawari7
src/sjis2ascii.rb
Ruby
bsd-2-clause
642
import os.path import subprocess import sys import prob_util CODEBASE_DIR = subprocess.check_output(['git', 'rev-parse', '--show-toplevel']).strip('\n') MALE_NAME_FILE = os.path.join(CODEBASE_DIR, 'data', 'male-first.txt') FEMALE_NAME_FILE = os.path.join(CODEBASE_DIR, 'data', 'female-first.txt') LASTNAME_FILE = os.p...
iveygman/namegen
util/names.py
Python
bsd-2-clause
1,858
/* 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,...
Frezzle/xenadmin
XenAdmin/Dialogs/MoveVirtualDiskDialog.cs
C#
bsd-2-clause
6,229
using System; using System.Collections.Generic; using System.Windows.Forms; using BLToolkit.DataAccess; using BLToolkit.Reflection; using bv.common.Core; using bv.common.Enums; using bv.model.BLToolkit; using bv.model.Model.Core; using bv.winclient.BasePanel; using bv.winclient.Core; using eidss.model.Enums...
EIDSS/EIDSS-Legacy
EIDSS v5/eidss.winclient/Vet/VetCaseListPanel.cs
C#
bsd-2-clause
9,268
cask 'rekordbox' do version '5.8.5' sha256 'da2a2e67c6bafa1b96439b8e20c4d1713139802e91c86a2391ac61e7cf32adaa' url "https://rekordbox.com/_app/files/Install_rekordbox_#{version.dots_to_underscores}.pkg.zip" appcast 'https://rekordbox.com/en/support/releasenote.php' name 'rekordbox' homepage 'https://rekordb...
lantrix/homebrew-cask
Casks/rekordbox.rb
Ruby
bsd-2-clause
727
require(['lib/domReady', 'match'], function (domReady, matchClass) { // Don't let events bubble up if (Event.halt === undefined) { // Don't let events bubble up Event.prototype.halt = function () { this.stopPropagation(); this.preventDefault(); }; }; // Add toggleClass method similar t...
KorAP/Rabbid
dev/js/src/app.js
JavaScript
bsd-2-clause
946
// -*- coding: utf-8 -*- // Copyright (C) 2006-2012 Rosen Diankov <rosen.diankov@gmail.com> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // at...
benersuay/drchubo_v2_ikfast
src/drchubo_v2_ikfastsolvers.cpp
C++
bsd-2-clause
3,827
package org.kodejava.example.jdbc; import java.sql.*; public class DriverPropertyInfoDemo { private static final String URL = "jdbc:mysql://localhost/kodejava"; public static void main(String[] args) { try { // Gets information about the possible properties for this // driver....
kodejava/kodejava.project
kodejava-jdbc/src/main/java/org/kodejava/example/jdbc/DriverPropertyInfoDemo.java
Java
bsd-2-clause
1,254
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "Paper2DEditorPrivatePCH.h" #include "STimelineTrack.h" #include "GenericCommands.h" #include "FlipbookEditorCommands.h" #include "SFlipbookTrackHandle.h" #include "AssetDragDropOp.h" #include "PropertyCustomizationHelpers.h" #define LOCTEXT_NAMESP...
PopCap/GameIdea
Engine/Plugins/2D/Paper2D/Source/Paper2DEditor/Private/FlipbookEditor/STimelineTrack.cpp
C++
bsd-2-clause
14,371
<table class="host_info"> <tr> <td> <b style='font-size:20px;'><a href="."><?php _host(); ?></a></b> <span style="font-size:12px;line-height:20px;">(<a target="blank" href="http://<?php _host('m_host'); ?>"><?php _host('m_host'); ?></a>)</span><br/> <?php _host('m_desc') ?><br/> <b>Hardware</b> <?php _e("HW...
danpalamo/php-tsunami
templates/mtknm5/host_page.php
PHP
bsd-2-clause
1,551
/* brass_table.cc: Btree implementation * * Copyright 1999,2000,2001 BrightStation PLC * Copyright 2002 Ananova Ltd * Copyright 2002,2003,2004,2005,2006,2007,2008,2009,2010,2011 Olly Betts * Copyright 2008 Lemur Consulting Ltd * * This program is free software; you can redistribute it and/or * modify it under t...
iveteran/xapian-scws
xapian-core_scws-1.2.18/backends/brass/brass_table.cc
C++
bsd-2-clause
65,871
/* * Copyright (c) 2019, Adam <Adam@sigterm.info> * 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 * li...
runelite/runelite
runelite-client/src/test/java/net/runelite/client/plugins/cooking/CookingPluginTest.java
Java
bsd-2-clause
4,401
/* * RPLIDAR SDK * * Copyright (c) 2009 - 2014 RoboPeak Team * http://www.robopeak.com * Copyright (c) 2014 - 2018 Shanghai Slamtec Co., Ltd. * http://www.slamtec.com * */ /* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following con...
robopeak/rplidar_ros
sdk/src/arch/win32/timer.cpp
C++
bsd-2-clause
2,003
// Copyright (c) 2012, Joshua Burke // All rights reserved. // // See LICENSE for more information. namespace Frost.Painting { public enum LineStyle { Solid, Dash, Dot } public enum LineJoin { Round, Bevel, Miter } public enum LineCap { Butt, Round, Square } public enum Repetition {...
fealty/Frost
Frost/Painting/Enumerations.cs
C#
bsd-2-clause
371
/* * Copyright (c) 2015-2019, Statens vegvesen * 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 ...
nvdb-vegdata/nvdb-api-client
src/main/java/no/vegvesen/nvdbapi/client/clients/RoadNetRouteClient.java
Java
bsd-2-clause
8,901
package httap import ( "github.com/stretchr/testify/assert" "testing" "io/ioutil" "net" "net/http" "strings" "time" ) type requestInfo struct { *http.Request consumedBody []byte } func TestNewWiretapOptions(t *testing.T) { tap := NewWiretap(Options{}) assert.NotNil(t, tap) assert.Equal(t, tap.BufSize,...
rolftimmermans/httap
lib/wiretap_test.go
GO
bsd-2-clause
4,082
/* * Copyright 2010, * François Bleibel, * Olivier Stasse, * * CNRS/AIST * */ #ifndef __SOT_EXCEPTION_FACTORY_H #define __SOT_EXCEPTION_FACTORY_H /* --------------------------------------------------------------------- */ /* --- INCLUDE --------------------------------------------------------- */ /* ----------...
stack-of-tasks/sot-core
include/sot/core/exception-factory.hh
C++
bsd-2-clause
1,792
/* * Source MUD * Copyright (C) 2000-2005 Sean Middleditch * See the file COPYING for license details * http://www.sourcemud.org */ #include "common.h" #include "common/imanager.h" std::vector<IManager*>* IManager::managers = NULL; std::vector<IManager*>* IManager::pending = NULL; // add manager to registry IM...
elanthis/sourcemud
src/common/imanager.cc
C++
bsd-2-clause
1,535
package wkb import ( "encoding/binary" "github.com/geodatalake/geom" "io" ) func geometryCollectionReader(r io.Reader, byteOrder binary.ByteOrder) (geom.Geom, error) { var numGeometries uint32 if err := binary.Read(r, byteOrder, &numGeometries); err != nil { return nil, err } geoms := make([]geom.Geom, numGe...
owcm/geom
encoding/wkb/geometrycollection.go
GO
bsd-2-clause
958
// Copyright 2012, 2017 Dmitry Chestnykh. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package wots implements Winternitz-Lamport-Diffie one-time signature scheme. // // If the hash function is one-way and of sufficient length, the priv...
dchest/wots
wots.go
GO
bsd-2-clause
6,280
import traceback from collections import namedtuple, defaultdict import itertools import logging import textwrap from shutil import get_terminal_size from .abstract import Callable, DTypeSpec, Dummy, Literal, Type, weakref from .common import Opaque from .misc import unliteral from numba.core import errors, utils, typ...
stonebig/numba
numba/core/types/functions.py
Python
bsd-2-clause
26,542
cask v1: 'xtorrent' do version '2.1(v171)' sha256 '26ea235dcb827c6e58ab3409bec83396e86704d742d517e527016ecd44672379' # dreamhosters.com is the official download host per the vendor homepage url "http://acquisition.dreamhosters.com/xtorrent/Xtorrent#{version}.dmg" name 'Xtorrent' appcast 'https://xtorrent.s...
askl56/homebrew-cask
Casks/xtorrent.rb
Ruby
bsd-2-clause
518
import React from "react" import { Helmet } from "react-helmet" import { useParams } from "react-router-dom" import Box from "@material-ui/core/Box" import { useStrainQuery } from "dicty-graphql-schema" import DetailsHeader from "features/Stocks/Details/common/DetailsHeader" import DetailsLoader from "features/Stocks/D...
dictyBase/Dicty-Stock-Center
src/features/Stocks/Details/Strains/StrainDetailsContainer.tsx
TypeScript
bsd-2-clause
1,888
//============================================================================= // Copyright © Jason Heddings, All Rights Reserved // $Id: SimpleTask.cs 83 2013-11-06 23:34:18Z jheddings $ //============================================================================= using System; using System.Xml.Serialization; usin...
jheddings/flynn
source/core/Tasks/SimpleTask.cs
C#
bsd-2-clause
3,021
goog.provide('ol.layer.Group'); goog.require('goog.array'); goog.require('goog.asserts'); goog.require('goog.events'); goog.require('goog.events.EventType'); goog.require('goog.math'); goog.require('goog.object'); goog.require('ol.Collection'); goog.require('ol.CollectionEvent'); goog.require('ol.CollectionEventType')...
jeluard/cljs-ol3js
resources/closure-js/libs/ol-v3.0.0-beta.5/ol/layer/layergroup.js
JavaScript
bsd-2-clause
5,759
using UnityEngine; using System.Collections.Generic; using Require; using System; [Serializable] public class CircuitDictionaryItem { public string transitionName; public List<CircuitComponent> transition; } public class CircuitDictionaryComponent : CircuitComponent { public List<CircuitDictionaryItem> t...
invisibledrygoods/Circuitry
Circuitry/Assets/Scripts/CircuitDictionary.cs
C#
bsd-2-clause
1,648
#ifndef AFFICHEUR_HPP #define AFFICHEUR_HPP #include "QSFMLCanvas.hpp" #include <iostream> //QT #include <QtGui> //SFML #include <SFML/Graphics.hpp> //perso #include "Taille_fenetre.hpp" #include "afficheur_options.hpp" #include "afficheur_options_perso.hpp" #include "map_options.hpp" #include "Editeur_skill.hpp" #inc...
Krozark/Dethroned-God
SFML-1.6/Editeur/afficheur.hpp
C++
bsd-2-clause
10,554
from django.conf.urls import patterns, url from packages.simple.views import PackageIndex, PackageDetail handler404 = "packages.simple.views.not_found" urlpatterns = patterns("", url(r"^$", PackageIndex.as_view(), name="simple_package_index"), url(r"^(?P<slug>[^/]+)/(?:(?P<version>[^/]+)/)?$", PackageDetail....
crate-archive/crate-site
crateweb/apps/packages/simple/urls.py
Python
bsd-2-clause
364
class ApacheSpark121 < Formula desc "Engine for large-scale data processing" homepage "https://spark.apache.org/" url "https://d3kbcqa49mib13.cloudfront.net/spark-1.2.1-bin-hadoop2.4.tgz" version "1.2.1" sha256 "8e618cf67b3090acf87119a96e5e2e20e51f6266c44468844c185122b492b454" head "https://github.com/apach...
jimhe/homebrew-versions
apache-spark121.rb
Ruby
bsd-2-clause
725
//----------------------------------*-C++-*----------------------------------// /*! * \file Alea/mc_solvers/Polynomial.hh * \author Steven Hamilton * \brief Polynomial class declaration. */ //---------------------------------------------------------------------------// #ifndef Alea_mc_solvers_Polynomial_hh #def...
ORNL-CEES/Profugus
packages/Alea/mc_solvers/Polynomial.hh
C++
bsd-2-clause
1,923
/* * Copyright (c) 2013, Dwijesh Bhageerutty * 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 c...
dbhage/qasp
src/memory/node/StateNode.java
Java
bsd-2-clause
2,135
// Copyright 2013 The lime Authors. // Use of this source code is governed by a 2-clause // BSD-style license that can be found in the LICENSE file. package main import ( "fmt" "image/color" "runtime" "strings" "sync" "time" "gopkg.in/fsnotify.v1" "gopkg.in/qml.v1" "github.com/limetext/lime-backend/lib" "...
ricochet1k/lime-qml
main/frontend.go
GO
bsd-2-clause
10,649
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.RegularExpressions; using DotLiquid; using Microsoft.VisualBasic.FileIO; namespace MarkdownSharp { using MarkdownSharp.Preprocessor; public stati...
PopCap/GameIdea
Engine/Source/Programs/UnrealDocTool/UnrealDocTool/MarkdownSharp/OffensiveWordFilterHelper.cs
C#
bsd-2-clause
3,212
# Copyright 2012-2017 Luc Saffre # License: BSD (see file COPYING for details) from __future__ import unicode_literals from __future__ import print_function from lino.api import dd, rt, _ # from etgen.html import E from .mixins import VatDocument from lino_xl.lib.ledger.ui import PartnerVouchers, ByJournal, Print...
khchine5/xl
lino_xl/lib/vat/desktop.py
Python
bsd-2-clause
4,520
# Copyright 2009-2015 Eucalyptus Systems, Inc. # # 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 retain the above copyright notice, # this list of conditions ...
nagyistoce/euca2ools
setup.py
Python
bsd-2-clause
6,806
package org.newdawn.slick.svg.inkscape; import java.util.ArrayList; import java.util.StringTokenizer; import org.newdawn.slick.geom.Polygon; import org.newdawn.slick.geom.Shape; import org.newdawn.slick.geom.Transform; import org.newdawn.slick.svg.Diagram; import org.newdawn.slick.svg.Figure; import org.new...
SenshiSentou/SourceFight
slick_dev/tags/Slick0.19/src/org/newdawn/slick/svg/inkscape/PolygonProcessor.java
Java
bsd-2-clause
3,230
/* Copyright 2005-2012 Intel Corporation. All Rights Reserved. The source code contained or described herein and all documents related to the source code ("Material") are owned by Intel Corporation or its suppliers or licensors. Title to the Material remains with Intel Corporation or its supplier...
PopCap/GameIdea
Engine/Source/ThirdParty/IntelTBB/IntelTBB-4.0/src/test/test_task_arena.cpp
C++
bsd-2-clause
5,747
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Hutte documentation build configuration file, created by # sphinx-quickstart on Mon Jul 27 23:08:58 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # auto...
bastienleonard/hutte
doc/sphinx/conf.py
Python
bsd-2-clause
11,279
//------------------------------------------------------------------------------ // <copyright file="XmlDocCommentHighPriorityClassifierClassificationDefinition.cs" company="Company"> // Copyright (c) Company. All rights reserved. // </copyright> //-----------------------------------------------------------------...
nickhalvorsen/VSXMLDocCommentClassifier
XmlDocCommentHighPriorityClassifier/XmlDocCommentHighPriorityClassifierClassificationDefinition.cs
C#
bsd-2-clause
1,215
package repos import ( "strings" "github.com/cbroglie/mustache" "github.com/khades/servbot/models" "gopkg.in/mgo.v2/bson" ) var templateCollection = "templates" func SetChannelTemplateAlias(user *string, userID *string, channelID *string, commandName *string, aliasTo *string) { aliasStripped := strings.ToLower...
khades/servbot
repos/template.go
GO
bsd-2-clause
2,685
from optparse import make_option import os import shutil from django.core.management.base import BaseCommand from django.contrib.auth.models import User import MySQLdb from blog.models import Blog, Post, Asset class Command(BaseCommand): help = 'Import blog posts from Movable Type' option_list = BaseCommand...
nodebox/workshops
blog/management/commands/import_mt.py
Python
bsd-2-clause
4,262
package org.laladev.moneyjinn.model.capitalsource; public enum CapitalsourceState { NON_CACHE, CACHE; }
OlliL/moneyjinn-server
moneyjinn-model/src/main/java/org/laladev/moneyjinn/model/capitalsource/CapitalsourceState.java
Java
bsd-2-clause
107
$:.unshift File.expand_path("../../lib", __FILE__) require "minitest/autorun" require "minitest/spec" require "matchrb/global" describe "match" do describe "when the pattern is a class" do it "matches the kind of the object" do Foo = Class.new foo = Foo.new result = match foo, Foo =>...
dlisboa/matchrb
spec/match_spec.rb
Ruby
bsd-2-clause
3,033
#include "stdafx.h" #include "DDE_Stopper.h" #include "DDE_StopperDlg.h" #include ".\dde_stopperdlg.h" #ifdef _DEBUG #define new DEBUG_NEW #endif UINT CDDE_StopperDlg::WM_TRAYRESTARTNOTIFY = (WM_USER + 1002); UINT CDDE_StopperDlg::WM_TRAYICONNOTIFY = (WM_USER + 1003); UINT CDDE_StopperDlg::WM_ADDLOG ...
katakk/DDE-stopper
src/DDE_StopperDlg.cpp
C++
bsd-2-clause
4,997
/** * @module ol/style/RegularShape */ import {asString} from '../color.js'; import {asColorLike} from '../colorlike.js'; import {createCanvasContext2D} from '../dom.js'; import {CANVAS_LINE_DASH} from '../has.js'; import ImageState from '../ImageState.js'; import {defaultStrokeStyle, defaultFillStyle, defaultLineCa...
mzur/ol3
src/ol/style/RegularShape.js
JavaScript
bsd-2-clause
15,429
cask "cantata" do version "2.3.2" sha256 "c9eb8a1102d0a68cafc93f22df73445b8f69706f3322285f9a2f623a28df0176" url "https://github.com/CDrummond/cantata/releases/download/v#{version}/Cantata-#{version}.dmg" appcast "https://github.com/CDrummond/cantata/releases.atom" name "Cantata" homepage "https://github.co...
haha1903/homebrew-cask
Casks/cantata.rb
Ruby
bsd-2-clause
400
package org.dstadler.commoncrawl.index; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.util.logging.Logger; import org.dstadler.commons.logging.jdk.LoggerFactory; /** * Sample to read from locally stored cdx-00000.gz files * * @author dstadler * */ public class Down...
centic9/CommonCrawlDocumentDownload
src/main/java/org/dstadler/commoncrawl/index/DownloadURLIndexFromFile.java
Java
bsd-2-clause
956
class NSColor def self.systemControlColor NSColor.colorForControlTint(NSColor.currentControlTint) end def self.blueControlColor NSColor.colorForControlTint(NSBlueControlTint) end def self.graphiteControlColor NSColor.colorForControlTint(NSGraphiteControlTint) end def nscolor(alpha=nil) ...
Watson1978/sugarcube
lib/osx/sugarcube-color/nscolor.rb
Ruby
bsd-2-clause
6,386
# -*- coding: utf-8 -*- """ Builds epub book out of Paul Graham's essays: http://paulgraham.com/articles.html Author: Ola Sitarska <ola@sitarska.com> Copyright: Licensed under the GPL-3 (http://www.gnu.org/licenses/gpl-3.0.html) This script requires python-epub-library: http://code.google.com/p/python-epub-builder/ "...
norayr/pgessays
pgessays.py
Python
bsd-2-clause
2,125
package com.jayantkrish.jklol.lisp.inc; import java.util.Collection; import java.util.List; import com.google.common.base.Preconditions; import com.jayantkrish.jklol.inference.MarginalCalculator.ZeroProbabilityError; import com.jayantkrish.jklol.models.parametric.SufficientStatistics; import com.jayantkrish.jklol.tra...
jayantk/jklol
src/com/jayantkrish/jklol/lisp/inc/IncEvalLoglikelihoodOracle.java
Java
bsd-2-clause
3,627
#from shoutrequest import ShoutRequest from djangorequest import DjangoRequest import json from twisted.internet import task from twisted.internet import reactor mb = {"requestid":"AAAAA1", "requesttype":"get", "requesttimeout":10, "requestbody":{"selects": [{"name":"sweetspot.models.Locations", "label":"L", "cols":["...
psiCode/shoutserver
mysite/djangorequest_test.py
Python
bsd-2-clause
1,094
package milter import ( "errors" ) // pre-defined errors var ( errCloseSession = errors.New("Stop current milter processing") errMacroNoData = errors.New("Macro definition with no data") )
phalaaxx/milter
errors.go
GO
bsd-2-clause
195
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): "Write your forwards methods here." # Note: Remember to use orm['appname.ModelName'] rather than "from appname.mo...
melinath/django-stepping-out
stepping_out/migrations/0016_scheduled_dance_to_venue.py
Python
bsd-2-clause
17,560
#include "Jitter_CodeGen_x86_32.h" #include <algorithm> using namespace Jitter; CX86Assembler::REGISTER CCodeGen_x86_32::g_registers[MAX_REGISTERS] = { CX86Assembler::rBX, CX86Assembler::rSI, CX86Assembler::rDI, }; CX86Assembler::XMMREGISTER CCodeGen_x86_32::g_mdRegisters[MAX_MDREGISTERS] = { CX86A...
Alloyed/Play--CodeGen
src/Jitter_CodeGen_x86_32.cpp
C++
bsd-2-clause
48,543
// Code generated by include_assets.go. DO NOT EDIT. package assets var ( Analyticsjs = `!function(e){function t(t){t.holmesId=e.localStorage.getItem("_holmesId");for(var n=0;n<o.length;n++)o[n](t);var a="__HOLMES_BASE_URL__/track?u="+(new Date).getTime()+"&t="+encodeURIComponent(JSON.stringify(t)),r=new XMLHttpRequ...
justsocialapps/holmes
assets/assets.go
GO
bsd-2-clause
2,093
#!/usr/bin/python # -*- coding: utf-8 -*- # Converted from VPC_With_VPN_Connection.template located at: # http://aws.amazon.com/cloudformation/aws-cloudformation-templates from troposphere import Base64, FindInMap, GetAtt, Join, Output from troposphere import Parameter, Ref, Tags, Template from troposphere.autoscaling...
ikben/troposphere
examples/VPC_single_instance_in_subnet.py
Python
bsd-2-clause
14,764
# -*- coding: utf-8 -*- # Copyright (c) 2012-2015, Anima Istanbul # # This module is part of anima-tools and is released under the BSD 2 # License: http://www.opensource.org/licenses/BSD-2-Clause import tempfile import unittest import pymel.core as pm from stalker import (db, User, Repository, Status, FilenameTempla...
sergeneren/anima
tests/env/maya/test_previs.py
Python
bsd-2-clause
6,717
import isLength from './isLength'; import toObject from './toObject'; /** * Creates a `baseEach` or `baseEachRight` function. * * @private * @param {Function} eachFunc The function to iterate over a collection. * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Function} Returns the...
wushuyi/remoteMultiSketchpad
frontend/assets/libs/lodash-3.6.0-es/internal/createBaseEach.js
JavaScript
bsd-2-clause
861
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Christian Schulte <schulte@gecode.org> * * Copyright: * Christian Schulte, 2004 * * Bugfixes provided by: * Olof Sivertsson <olsi0767@student.uu.se> * * Last modified: * $Date: 2014-09-22 01:35:47 +0200...
PetterS/easy-IP
third-party/gecode/examples/bibd.cpp
C++
bsd-2-clause
5,709
package uk.co.marmablue.gunboat.gui; import uk.co.marmablue.gunboat.gui.GLDisplay; /** Game window for Gunboat. * @author Ian Renton */ public class Game { /** Main method. * @param args command line arguments. */ public static void main(String[] args) { GLDisplay gameGLDisplay = null; ...
ianrenton/Gunboat
src/uk/co/marmablue/gunboat/gui/Game.java
Java
bsd-2-clause
1,174
package pub import ( "fmt" ) type RtmpTransferCmd struct { FromLiveAddr string ToRtmpPublishAddr string } func (c *RtmpTransferCmd) CmdString() string { return fmt.Sprintf("rtmp_transfer %s %s", c.FromLiveAddr, c.ToRtmpPublishAddr) } type HlsTransferCmd struct { FromHlsAddr string ToRtmpPublishAddr...
jemygraw/go-pub-sdk
pub/cmd.go
GO
bsd-2-clause
658
# MusicPlayer, https://github.com/albertz/music-player # Copyright (c) 2012, Albert Zeyer, www.az2000.de # All rights reserved. # This code is under the 2-clause BSD license, see License.txt in the root directory of this project. def queueMain(): from Player import PlayerEventCallbacks from Queue import queue from ...
albertz/music-player
src/modules/mod_queue.py
Python
bsd-2-clause
505
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file #include <thread> #include <vector> #include <iostream> #include <mutex> #include <set> #include "catch.hpp" #include "elimination_array.hpp" #include <functional> #include <chrono> #include <thread> using namespace std...
bilbil/enhance
test/concurrent/test_elimination_array.cpp
C++
bsd-2-clause
3,032
package net.imagej.ops.math.divide; import net.imagej.ops.Contingent; import net.imagej.ops.Ops; import net.imagej.ops.map.MapBinaryInplace1s; import net.imagej.ops.special.inplace.AbstractBinaryInplace1Op; import net.imagej.ops.special.inplace.BinaryInplace1Op; import net.imagej.ops.special.inplace.Inplaces; import ...
stelfrich/imagej-ops
src/main/java/net/imagej/ops/math/divide/DivideHandleZeroMap1.java
Java
bsd-2-clause
1,726
package io.pivotal.node_gemfire; import org.apache.geode.cache.Region; import org.apache.geode.cache.execute.FunctionAdapter; import org.apache.geode.cache.execute.FunctionContext; import org.apache.geode.cache.execute.RegionFunctionContext; import java.util.List; import java.util.Map; import java.util.Set; public c...
gemfire/node-gemfire
spec/support/java/function/src/main/java/io/pivotal/node_gemfire/Put.java
Java
bsd-2-clause
814
package com.multiwork.andres; import java.io.InputStream; import java.io.OutputStream; import com.actionbarsherlock.app.SherlockListActivity; import com.actionbarsherlock.view.Menu; import com.actionbarsherlock.view.MenuInflater; import com.actionbarsherlock.view.MenuItem; import com.bluetoothutils.andres.BluetoothHe...
dragondgold/MultiWork
MultiWork/src/main/java/com/multiwork/andres/MainMenu.java
Java
bsd-2-clause
5,809
#include <ffmpeg/avcodec.h> #include <ffmpeg/avformat.h> #include <stdio.h> #include <stdlib.h> #define IS_INTERLACED(a) ((a)&MB_TYPE_INTERLACED) #define IS_16X16(a) ((a)&MB_TYPE_16x16) #define IS_16X8(a) ((a)&MB_TYPE_16x8) #define IS_8X16(a) ((a)&MB_TYPE_8x16) #define IS_8X8(a) ((a)&MB_TYPE_8x...
victorhsieh/motion-vector
motion_vector.cpp
C++
bsd-2-clause
8,277
# -*- coding: utf-8 -*- """ The Logging component of the Server. """ import logging.handlers ################################################################################ class Logging: """ This class handles the console and file logging. """ def __init__(self, filename): self._logger =...
andreas-kowasch/DomainSearch
DomainSearchServer/additional/Logging.py
Python
bsd-2-clause
1,463
class Groff < Formula desc "GNU troff text-formatting system" homepage "https://www.gnu.org/software/groff/" url "https://ftp.gnu.org/gnu/groff/groff-1.22.4.tar.gz" mirror "https://ftpmirror.gnu.org/groff/groff-1.22.4.tar.gz" sha256 "e78e7b4cb7dec310849004fa88847c44701e8d133b5d4c13057d876c1bad0293" license ...
rwhogg/homebrew-core
Formula/groff.rb
Ruby
bsd-2-clause
1,100
package com.study.mli.dobe.activity.tools; import java.io.Serializable; /** * Created by crown on 2016/9/30. */ public class ImageViewInfo implements Serializable { public float mOriginX; public float mOriginY; public float mOriginWidth; public float mOriginHeight; public String mThumbnail; public String mU...
mianli/Dobelity
dobe/src/main/java/com/study/mli/dobe/activity/tools/ImageViewInfo.java
Java
bsd-2-clause
643
#******************************************************************************* # U n s u p e r v i s e d D e c o m p o s i t i o n B a s e * #******************************************************************************* class UnsupervisedDecompositionBase(object): #human readable information...
ilastik/ilastik-0.5
ilastik/modules/unsupervised_decomposition/core/algorithms/unsupervisedDecompositionBase.py
Python
bsd-2-clause
1,598
Dummy::Application.configure do # Settings specified here will take precedence over those in config/application.rb. # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test sui...
diowa/twbs_less_rails
test/dummy/config/environments/test.rb
Ruby
bsd-2-clause
1,741
/*- * #%L * PropertiesFramework :: Core * %% * Copyright (C) 2017 LeanFrameworks * %% * 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,...
LeanFrameworks/PropertiesFramework
propertiesframework-core/src/main/java/com/github/leanframeworks/propertiesframework/api/common/Disposable.java
Java
bsd-2-clause
2,297
<?php use common\models\User; use yii\db\Schema; use yii\db\Migration; class M170205110000Install extends Migration { /** * */ public function safeUp() { $tableOptions = null; if ($this->db->driverName === 'mysql') { $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_un...
davidjeddy/yii2-poll
migrations/M170205110000Install.php
PHP
bsd-2-clause
1,634
/* * Copyright (c) 2014, tibbitts * 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 a...
PuyallupStakeFamilyHistoryCenter/familyhistoryservice
src/test/java/org/puyallupfamilyhistorycenter/service/cache/PersonDaoTest.java
Java
bsd-2-clause
5,730
//////////////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2009, Daniel Kollmann // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are permitted // provided that the following conditions are met:...
learno/Brainiac-Designer
Brainiac Designer Base/FileManagers/FileManagerXML.cs
C#
bsd-3-clause
13,808
<?php /** * @package SimplePortal * * @author SimplePortal Team * @copyright 2020 SimplePortal Team * @license BSD 3-clause * * @version 2.3.8 */ if (!defined('SMF')) die('Hacking attempt...'); /* void sportal_articles() // !!! array sportal_articles_callback() // !!! void sportal_add_article() /...
SimplePortal/SimplePortal
smf2/Sources/PortalArticles.php
PHP
bsd-3-clause
12,135
<?php use yii\helpers\Html; /* @var $this \yii\web\View view component instance */ /* @var $message \yii\mail\MessageInterface the message being composed */ /* @var $content string main view render result */ ?> <?php $this->beginPage() ?> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Cont...
releaznl/releaz-project-manager
common/mail/layouts/html.php
PHP
bsd-3-clause
18,424
# proxy module from __future__ import absolute_import from apptools.help.help_plugin.help_doc import *
enthought/etsproxy
enthought/help/help_plugin/help_doc.py
Python
bsd-3-clause
103
#region license // Copyright (c) 2005 - 2007 Ayende Rahien (ayende@ayende.com) // 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 abo...
alaendle/rhino-mocks
Rhino.Mocks/Impl/VerifiedMockState.cs
C#
bsd-3-clause
4,580
# -*- coding: utf-8 -*- # Copyright (c) 2013, Mayo Clinic # 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 # ...
cts2/rf2db
rf2db/parsers/RF2Iterator.py
Python
bsd-3-clause
9,117
import numpy as np import h5py from checkpoint import Writer, create_reader class Baz: def __init__(self): self.z = {1:'one', 'two': 2, 'tree': [1,2,'three']} def write(self, group): writer = Writer(group, self) writer.yaml('z') @staticmethod def read(group): foo, re...
thni/clash
checkpoint/example/main.py
Python
bsd-3-clause
1,870
/* Sirikata Transfer -- Content Distribution Network * CachedServiceLookup.hpp * * Copyright (c) 2009, Patrick Reiter Horn * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Re...
robertkhamilton/sirikata
libcore/src/transfer/CachedServiceLookup.hpp
C++
bsd-3-clause
4,840
//---------------------------------------------------------------------------// //! //! \file tstElectroatomCore.cpp //! \author Luke Kersting //! \brief ElectroatomCore unit tests //! //---------------------------------------------------------------------------// // Std Lib Includes #include <iostream> #include <a...
lkersting/SCR-2123
packages/monte_carlo/collision/native/test/tstElectroatomCore.cpp
C++
bsd-3-clause
14,267
// Copyright (c) 2016 Mirants Lu. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "voyager/core/dispatch.h" #include "voyager/core/eventloop.h" #include "voyager/util/logging.h" namespace voyager { Dispatch::Dispatch(EventLoop* eve...
QiumingLu/voyager
voyager/core/dispatch.cc
C++
bsd-3-clause
2,547
/* * Copyright Northwestern University * Copyright Stanford University (ATB 1.0 and ATS 1.0) * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/annotation-and-image-markup/LICENSE.txt for details. */ package edu.stanford.isis.atb.domain.template; import javax.validation.co...
NCIP/annotation-and-image-markup
ATB_1.1_src/src/main/java/edu/stanford/isis/atb/domain/template/GeometricShape.java
Java
bsd-3-clause
926
<?php return array( 'Blog' => 'Блог', 'joke' => 'Шутка', 'Login' => 'Вход', );
Alcatraz1907/test
web/lang/ru/main.php
PHP
bsd-3-clause
94
# proxy module from pyface.layered_panel import *
enthought/etsproxy
enthought/pyface/layered_panel.py
Python
bsd-3-clause
50
# -*- coding: utf-8 -*- # # Copyright (C) 2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.edgewall.org/wiki/TracLicense. # # This software consists o...
exocad/exotrac
tracopt/ticket/commit_updater.py
Python
bsd-3-clause
12,921