repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
Linuxbrew/homebrew-core
Formula/pdf2svg.rb
1165
class Pdf2svg < Formula desc "PDF converter to SVG" homepage "https://cityinthesky.co.uk/opensource/pdf2svg" url "https://github.com/db9052/pdf2svg/archive/v0.2.3.tar.gz" sha256 "4fb186070b3e7d33a51821e3307dce57300a062570d028feccd4e628d50dea8a" license "GPL-2.0" revision 6 bottle do sha256 cellar: :a...
bsd-2-clause
praekelt/mc2
mc2/controllers/base/tests/base.py
4651
import json import responses from django.test import TransactionTestCase from django.conf import settings from mc2.controllers.base.models import Controller, EnvVariable, MarathonLabel class ControllerBaseTestCase(TransactionTestCase): def mk_controller(self, controller={}): controller_defaults = { ...
bsd-2-clause
KosherBacon/homebrew-cask
Casks/gitkraken.rb
892
cask 'gitkraken' do version '2.4.0' sha256 '1afe9a5071aeb477a2e299e2e58c84a51f729884d629fa1962c56ce9faf45e6a' url "https://release.gitkraken.com/darwin/v#{version}.zip" appcast 'https://release.gitkraken.com/darwin/RELEASES', checkpoint: '84bf3052b449f63c13e95dbec666dbdd53dad08137aff7bfb45119b93075c9...
bsd-2-clause
ahamez/pnmc
support/pn/place.cc
1270
/// @file /// @copyright The code is licensed under the BSD License /// <http://opensource.org/licenses/BSD-2-Clause>, /// Copyright (c) 2013-2015 Alexandre Hamez. /// @author Alexandre Hamez #include <ostream> #include "support/pn/place.hh" namespace pnmc { namespace pn { /*------------------...
bsd-2-clause
jacoblusk/SAEA-HTTPD
SAEA-HTTPD/HttpServer.cs
9744
using System; using System.Text; using System.Net; using System.Net.Sockets; using System.Threading; using System.Collections.Generic; using System.Collections.Concurrent; using System.ServiceModel.Channels; using System.Timers; using log4net; namespace SAEAHTTPD { public class HttpServer { private readon...
bsd-2-clause
NARKOZ/gitlab
lib/gitlab/help.rb
2690
# frozen_string_literal: true require 'gitlab' require 'gitlab/cli_helpers' module Gitlab::Help extend Gitlab::CLI::Helpers class << self # Returns the (modified) help from the 'ri' command or returns an error. # # @return [String] def get_help(cmd) cmd_namespace = namespace cmd if c...
bsd-2-clause
mwkm/pbrt-v3
src/shapes/triangle.cpp
26411
/* pbrt source code is Copyright(c) 1998-2015 Matt Pharr, Greg Humphreys, and Wenzel Jakob. This file is part of pbrt. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redi...
bsd-2-clause
kajiki/mahjong-scoring
lib/mahjong_scoring/rules/all_honors.rb
176
module Rules class AllHonors < StandardHand def self.score() 64 end def self.match?(hand) super and hand.tiles.all? { |t| t.honor? } end end end
bsd-2-clause
alexg0/homebrew-cask
Casks/beekeeper-studio.rb
1033
cask "beekeeper-studio" do version "1.9.1" sha256 "a753bff4336f4c9d75db74e181149cc5e07727fb9bb512cdf6e37c0b0d36cc2c" url "https://github.com/beekeeper-studio/beekeeper-studio/releases/download/v#{version}/Beekeeper-Studio-#{version}.dmg", verified: "github.com/beekeeper-studio/beekeeper-studio/" name "Be...
bsd-2-clause
kaufmo/koala-framework
Kwf_js/EyeCandy/List/Plugins/StateChanger/Hover.js
432
var kwfExtend = require('kwf/extend'); Kwf.EyeCandy.List.Plugins.StateChanger.Hover = kwfExtend(Kwf.EyeCandy.List.Plugins.Abstract, { state: 'large', init: function() { this.list.on('childMouseEnter', function(item) { item.pushState(this.state, this); }, this); this.list.on(...
bsd-2-clause
hightower70/CygnusGroundStationDev
Modules/FlightGearInterface/FlightGearThread.cs
5519
/////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2013 Laszlo Arvai. All rights reserved. // // This library is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software F...
bsd-2-clause
milot-mirdita/GeMuDB
Vendor/NCBI eutils/src/gov/nih/nlm/ncbi/www/soap/eutils/efetch_gene/CitPat_class_type0.java
24797
/** * CitPat_class_type0.java * * This file was auto-generated from WSDL * by the Apache Axis2 version: 1.6.2 Built on : Apr 17, 2012 (05:34:40 IST) */ package gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene; /** * CitPat_class_type0 bean class ...
bsd-2-clause
nickraptis/fidibot
src/fidibot.py
7614
#! /usr/bin/env python # # Author: Nick Raptis <airscorp@gmail.com> import argparse import irc.bot from irc.strings import lower from logsetup import setup_logging, setup_client_logging from introspect import build_index from modules import activate_modules from alternatives import alternatives, read_files, _ import t...
bsd-2-clause
titon/test
src/Titon/Test/Stub/Model/Order.php
192
<?php namespace Titon\Test\Stub\Model; class Order extends TestModel { protected $table = 'orders'; protected $belongsTo = [ 'User' => 'Titon\Test\Stub\Model\User' ]; }
bsd-2-clause
mmoening/MatterControl
MatterControlLib/SlicerConfiguration/MappingClasses/InjectGCodeCommands.cs
2359
/* Copyright (c) 2016, Lars Brubaker 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...
bsd-2-clause
stephen-turner/xenadmin
XenAdmin/Wizards/ImportWizard/ImportSourcePage.cs
17896
/* 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...
bsd-2-clause
cfvbaibai/CardFantasy
workspace/CardFantasyCore/src/cfvbaibai/cardfantasy/engine/skill/WeaponSummon.java
865
package cfvbaibai.cardfantasy.engine.skill; import cfvbaibai.cardfantasy.data.Skill; import cfvbaibai.cardfantasy.engine.*; public final class WeaponSummon extends PreAttackCardSkill { public static void apply(SkillResolver resolver, SkillUseInfo skillUseInfo, CardInfo attacker, EntityInfo defender, int min, int ...
bsd-2-clause
PopCap/GameIdea
Engine/Source/Runtime/Renderer/Private/SceneOcclusion.cpp
50556
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. /*============================================================================= SceneRendering.cpp: Scene rendering. =============================================================================*/ #include "RendererPrivate.h" #include "ScenePrivate.h" #inc...
bsd-2-clause
tidepool-org/platform
prescription/store/mongo/prescription_repository.go
13931
package mongo import ( "context" "fmt" "time" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/mongo/options" "github.com/tidepool-org/platform/page" "github.com/tidepool-org/platform/log" structureValidator "g...
bsd-2-clause
kodejava/kodejava.project
kodejava-spring-jdbc/src/main/java/org/kodejava/domain/Record.java
130
package org.kodejava.domain; import lombok.Data; @Data public class Record { private Long id; private String title; }
bsd-2-clause
mxk/gmdb
_gmdb/cmd/backup.py
6942
# # Written by Maxim Khitrov (July 2011) # from . import Command, SigHandler from .. import IMAP4Control, DBControl, conf from ..util import * import logging import socket def store(op, queue): count = len(queue) while queue: op.store(queue.popleft()) return count def check_abort(op): if sig.abort: op.comm...
bsd-2-clause
rohe/pysaml2-3
src/saml2/config.py
16171
#!/usr/bin/env python __author__ = 'rolandh' import sys import os import re import logging import logging.handlers from importlib import import_module from saml2 import root_logger, BINDING_URI, SAMLError from saml2 import BINDING_SOAP from saml2 import BINDING_HTTP_REDIRECT from saml2 import BINDING_HTTP_POST from...
bsd-2-clause
kwgoodman/bottleneck
bottleneck/tests/move_test.py
7685
"""Test moving window functions.""" import numpy as np import pytest from numpy.testing import assert_array_almost_equal, assert_equal, assert_raises import bottleneck as bn from .util import array_order, arrays @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_move(func)...
bsd-2-clause
resmio/django-sendgrid
setup.py
1152
import os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return '' setup( name='dj...
bsd-2-clause
djaodjin/djaodjin-survey
survey/forms.py
8596
# Copyright (c) 2020, DjaoDjin 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 conditions and t...
bsd-2-clause
allpassos/AutoNet
assets/tci/js/tci-employees-add.js
19517
var addEmployee = function () { var handleSelect2 = function () { // Set the "bootstrap" theme as the default theme for all Select2 widgets. // @see https://github.com/select2/select2/issues/2927 $.fn.select2.defaults.set("theme", "bootstrap"); var placeholder = "Selecci...
bsd-2-clause
ritschwumm/scutil
modules/core/src/test/scala/scutil/lang/ShowInterpolatorTest.scala
2201
package scutil.lang import minitest._ import scutil.lang.implicits._ object ShowInterpolatorTest extends SimpleTestSuite { test("show interpolator should do an empty string") { assertEquals( show"""""", "" ) } test("show interpolator should do a single string") { assertEquals( show"""a""", "a" ...
bsd-2-clause
khchine5/book
lino_book/projects/min9/modlib/contacts/models.py
4984
# -*- coding: UTF-8 -*- # Copyright 2013-2017 Luc Saffre # License: BSD (see file COPYING for details) """ The `models` module for `lino.projects.min2.modlib.contacts`. """ from __future__ import unicode_literals from django.utils.translation import ugettext_lazy as _ from django.utils.translation import string_conc...
bsd-2-clause
mmetak/streamlink
src/streamlink/plugins/earthcam.py
3356
from __future__ import print_function import re from streamlink.plugin import Plugin from streamlink.plugin.api import http from streamlink.plugin.api import validate from streamlink.stream import HLSStream, RTMPStream from streamlink.utils import parse_json class EarthCam(Plugin): url_re = re.compile(r"https?:...
bsd-2-clause
mbcoguno/homebrew-core
Formula/patchelf.rb
2240
class Patchelf < Formula desc "Modify dynamic ELF executables" homepage "https://github.com/NixOS/patchelf" url "https://github.com/NixOS/patchelf/releases/download/0.13/patchelf-0.13.tar.bz2" sha256 "4c7ed4bcfc1a114d6286e4a0d3c1a90db147a4c3adda1814ee0eee0f9ee917ed" license "GPL-3.0-or-later" head "https://...
bsd-2-clause
maxk-org/hogl
include/hogl/detail/refcount.hpp
2746
/* Copyright (c) 2015-2020 Max Krasnyansky <max.krasnyansky@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: 1. Redistributions of source code must retain the above copyr...
bsd-2-clause
lifematrix/mcv
test/test_gas.cpp
383
// // Created by Steven on 17/4/4. // #include <mcv/core.h> #include <mcv/conv.h> int main(int argc, char *argv[]) { mcv::Matrix<float> img(10, 10, 3), dest; for(int i=0; i < img.n_rows; i++) for(int j=0; j < img.n_cols; j++) for(int c=0; c < img.n_channels; c++) img.at(i, j, c) = 1....
bsd-2-clause
huanhuashengling/our-information-class
app/Models/SendMailList.php
1503
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class SendMailList extends Model { protected $fillable = ['server_provider', 'num_limit_one_day', 'username', 'mail_address', 'password', 'auth_code', 'is_useable', 'schools_id']; } /* sudo docker run -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=adm...
bsd-2-clause
maplesond/homebrew-science
molden.rb
1094
class Molden < Formula desc "Pre- and post-processing of molecular and electronic structure" homepage "http://www.cmbi.ru.nl/molden/" url "ftp://ftp.cmbi.ru.nl/pub/molgraph/molden/molden5.7.tar.gz" sha256 "8c52229f1762e987995c53936f0dc2cfd086277ec777bf9083d76c0bf0483887" # tag "chemistry" # doi "10.1023/A:1...
bsd-2-clause
sebastienros/jint
Jint.Tests.Test262/test/language/statements/variable/dstr-obj-ptrn-id-init-fn-name-class.js
1390
// This file was procedurally generated from the following sources: // - src/dstr-binding/obj-ptrn-id-init-fn-name-class.case // - src/dstr-binding/default/var-stmt.template /*--- description: SingleNameBinding assigns `name` to "anonymous" classes (`var` statement) esid: sec-variable-statement-runtime-semantics-evalua...
bsd-2-clause
ehughes/trashCAN
trashCAN/TRASH_CAN_CORE_SRC/CANMessageSniffer/Properties/Resources.Designer.cs
3160
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
bsd-2-clause
Iprotechs2017/BTT_Lawyer2017
sample-videochat-webrtc/src/main/java/com/VideoCalling/sample/groupchatwebrtc/fragments/OnCallEventsController.java
145
package com.VideoCalling.sample.groupchatwebrtc.fragments; public interface OnCallEventsController { void onUseHeadSet(boolean use); }
bsd-2-clause
geops/ole2
src/control/rotate.js
4285
import { Style, Icon } from 'ol/style'; import Point from 'ol/geom/Point'; import Vector from 'ol/layer/Vector'; import VectorSource from 'ol/source/Vector'; import Pointer from 'ol/interaction/Pointer'; import Control from './control'; import rotateSVG from '../../img/rotate.svg'; import rotateMapSVG from '../../img/r...
bsd-2-clause
harryjoy/Light-box-jar
harsh/p/raval/lightbox/LightBoxException.java
2164
// Copyright (c) 2011, Harsh P. Raval // 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 conditi...
bsd-2-clause
askl56/homebrew-cask
Casks/kyoku.rb
357
cask v1: 'kyoku' do version '0.0.4' sha256 '5bac75ce062206a12c14d67411a8e802999fa31fb177e730b1ea913c293d6bd9' url "https://github.com/cheeaun/kyoku/releases/download/#{version}/Kyoku.app.zip" appcast 'https://github.com/cheeaun/kyoku/releases.atom' name 'Kyoku' homepage 'https://github.com/cheeaun/kyoku' ...
bsd-2-clause
askl56/homebrew-cask
Casks/filezilla.rb
797
cask v1: 'filezilla' do if MacOS.release <= :snow_leopard version '3.8.1' sha256 '86c725246e2190b04193ce8e7e5ea89d5b9318e9f20f5b6f9cdd45b6f5c2d283' else version '3.12.0.2' sha256 '628feaaf36a93bbd0fe2e21d9d9c201320d99ca43d9a2230325830ff1f95db78' end # sourceforge.net is the official download h...
bsd-2-clause
ymakino/echowand
src/echowand/info/PropertyConstraintAirSpeed.java
1582
package echowand.info; import echowand.util.Constraint; import echowand.util.ConstraintShort; import echowand.util.ConstraintUnion; /** * 風速センサのデータ制約を表現する。 * データの範囲は0x0000 - 0xfffd (0 m/sec - 655.33 m/sec)となる。 * オーバーフローコードとして0xFFFF、アンダーフローコードとして0xFFFEが利用される。 * @author Yoshiki Makino */ public class PropertyConst...
bsd-2-clause
scikit-multilearn/scikit-multilearn
skmultilearn/cluster/random.py
4376
from __future__ import absolute_import import random import numpy as np from .base import LabelSpaceClustererBase class RandomLabelSpaceClusterer(LabelSpaceClustererBase): """Randomly divides the label space into equally-sized clusters This method divides the label space by drawing without replacement a d...
bsd-2-clause
eregon/mozart-graal
vm/src/org/mozartoz/truffle/nodes/builtins/VirtualStringBuiltins.java
7886
package org.mozartoz.truffle.nodes.builtins; import static org.mozartoz.truffle.nodes.builtins.Builtin.ALL; import org.mozartoz.truffle.nodes.DerefNode; import org.mozartoz.truffle.nodes.OzGuards; import org.mozartoz.truffle.nodes.OzNode; import org.mozartoz.truffle.nodes.builtins.VirtualStringBuiltinsFactory.ToAtomN...
bsd-2-clause
vladimirvivien/learning-go
ch07/map_make.go
349
package main import "fmt" func main() { hist := make(map[string]int, 6) hist["Jan"] = 100 hist["Feb"] = 445 hist["Mar"] = 514 hist["Apr"] = 233 hist["May"] = 321 hist["Jun"] = 644 hist["Jul"] = 113 hist["Aug"] = 734 hist["Sep"] = 553 hist["Oct"] = 344 hist["Nov"] = 831 hist["Dec"] = 312 fmt.Println(his...
bsd-2-clause
WojciechMula/toys
avx512-sort/avx512-sort-any.cpp
21542
#include <immintrin.h> #define FORCE_INLINE inline __attribute__((always_inline)) namespace avx512sort { // sort 16 elements void FORCE_INLINE sort1xreg_update(const __m512i b, const __m512i v1, __m512i& r1) { const uint64_t lt1 = _mm512_cmplt_epi32_mask(v1, b); const uint64_t lt_cnt = _m...
bsd-2-clause
astrofrog/sedfitter
sedfitter/timer.py
1041
from __future__ import print_function, division import time import numpy as np class Timer(object): def __init__(self): self.time1 = time.time() self.n = 0 self.step = 1 print(" # Sources CPU time (sec) Sources/sec ") print(" ------------------------------------...
bsd-2-clause
depp/sglib
script/sglib/version.py
2789
# Copyright 2013-2014 Dietrich Epp. # This file is part of SGLib. SGLib is licensed under the terms of the # 2-clause BSD license. For more information, see LICENSE.txt. from d3build.shell import get_output from d3build.error import format_block from d3build.generatedsource import GeneratedSource, NOTICE import colle...
bsd-2-clause
ZickZakk/HTWK_SmartDriving_2015
HTWK_SD_FILTER/SD_SimpleDrive/SimpleDrive.cpp
52854
/** * Copyright (c) 2014-2015, HTWK SmartDriving * 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 lis...
bsd-2-clause
cgloger/inviwo
src/core/links/linkevaluator.cpp
6849
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2012-2016 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
bsd-2-clause
askl56/homebrew-cask
Casks/todos.rb
404
cask v1: 'todos' do version :latest sha256 :no_check url 'http://dbachrach.com/opensoft/downloads/apps/Todos.dmg' appcast 'http://www.dbachrach.com/opensoft/appcasts/Todos.xml' name 'Todos' homepage 'http://dbachrach.com/opensoft/index.php?page=Todos' license :unknown # todo: change license and remove...
bsd-2-clause
inviwo/inviwo
modules/meshrenderinggl/src/processors/meshrasterizer.cpp
24141
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2019-2021 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted pro...
bsd-2-clause
kunjanrshah/Stickty_SectionList
gen/pl/polidea/sectionedlist/BuildConfig.java
166
/** Automatically generated file. DO NOT MODIFY */ package pl.polidea.sectionedlist; public final class BuildConfig { public final static boolean DEBUG = true; }
bsd-2-clause
wukan1986/kquant_data
kquant_data/config.py
2172
#!/usr/bin/env python # -*- coding: utf-8 -*- """ 配置信息 股票数据要能正常运行,需要准备工作如下 1. 安装通达信(日线数据来源),然后配置实际的__CONFIG_TDX_STK_DIR__ 2. 安装大智慧(除权除息来源),确保路径__CONFIG_DZH_PWR_FILE__的目录已经创建。也可不安装大智慧直接建立对应的目录 3. 根据以下的配置文件,在D盘创建相应的目录 """ import os """ 股票 """ # 通达信目录 __CONFIG_TDX_STK_DIR__ = r'D:\new_hbzq' # 大智慧权息文件(已经废弃) __CONFIG_DZH_...
bsd-2-clause
jijiang/xenadmin
XenModel/XenAPI-Extensions/Session.cs
9836
/* 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...
bsd-2-clause
kkuhrman/AblePolecat
usr/share/documentation/html/interface_able_polecat___access_control___role___user___authenticated_interface.js
241
var interface_able_polecat___access_control___role___user___authenticated_interface = [ [ "getAuthority", "interface_able_polecat___access_control___role___user___authenticated_interface.html#a1f73860dd14340c5bad9094f0b5b97c2", null ] ];
bsd-2-clause
c0stra/focus-on-quality
test-builders/src/main/java/test/builders/models/Group.java
417
package test.builders.models; import java.util.List; public class Group<T> { private String name; private List<T> members; public List<T> getMembers() { return members; } public void setMembers(List<T> members) { this.members = members; } public String getName() { ...
bsd-2-clause
byt3bl33d3r/CrackMapExec
cme/protocols/winrm.py
10478
import requests import logging import configparser from impacket.smbconnection import SMBConnection, SessionError from cme.connection import * from cme.helpers.logger import highlight from cme.helpers.bloodhound import add_user_bh from cme.logger import CMEAdapter from io import StringIO from pypsrp.client import Clie...
bsd-2-clause
junejosheeraz/p4antExt
src/com/perforce/p4java/ant/tasks/RevertTask.java
4060
/** * Copyright (c) 2010 Perforce Software. All rights reserved. */ package com.perforce.p4java.ant.tasks; import org.apache.tools.ant.BuildException; import com.perforce.p4java.core.IChangelist; import com.perforce.p4java.core.file.FileSpecBuilder; import com.perforce.p4java.exception.P4JavaError; import com.perfo...
bsd-2-clause
coblo/isccbench
iscc_bench/readers/harvard.py
2886
# -*- coding: utf-8 -*- """Read data from 'Harvard Library Open Metadata'. Records: ~12 Million Size: 12.8 GigaByte (Unpacked) Info: http://library.harvard.edu/open-metadata Data: https://s3.amazonaws.com/hlom/harvard.tar.gz Instructions: Download datafile and run `tar xvf harvard.tar.gz` to extract marc21 files....
bsd-2-clause
fetus-hina/tarte
tarte/components/Twitter/TwitterUserStream.php
17297
<?php class TwitterUserStream extends CComponent { const WATCHDOG_TIMEOUT = 1200; private $screen_name, $id, $socket, $watchdog; private $is_chunked = false, $chunk_buffer = ''; public function __construct($screen_name) { $this->screen_name = $screen_name; $this->id = $this->get...
bsd-2-clause
linkedin-inc/redis
redis_test.go
5164
package redis_test import ( "bytes" "net" "github.com/linkedin-inc/redis" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("Client", func() { var client *redis.Client BeforeEach(func() { client = redis.NewClient(redisOptions()) Expect(client.FlushDb().Err()).To(BeNil()) }) Afte...
bsd-2-clause
PetterS/easy-IP
third-party/gecode/test/int/rel.cpp
19851
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Christian Schulte <schulte@gecode.org> * * Copyright: * Christian Schulte, 2005 * * Last modified: * $Date: 2011-11-29 17:20:37 +0100 (ti, 29 nov 2011) $ by $Author: schulte $ * $Revision: 12486 $ * * T...
bsd-2-clause
kerwinxu/barcodeManager
zxing/cpp/scons/scons-local-2.0.0.final.0/SCons/Tool/dvi.py
2450
"""SCons.Tool.dvi Common DVI Builder definition for various other Tool modules that use it. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associate...
bsd-2-clause
jalabort/ijcv-2014-aam
aam/image/test/image_test.py
18144
import warnings import numpy as np from numpy.testing import assert_allclose, assert_equal from nose.tools import raises from menpo.testing import is_same_array from menpo.image import BooleanImage, MaskedImage, Image @raises(ValueError) def test_create_1d_error(): Image(np.ones(1)) def test_image_n_elements():...
bsd-2-clause
david-novak/orange3-text
orangecontrib/text/tests/test_corpus.py
5157
import os import unittest from itertools import chain import numpy as np from Orange.data import Table from Orange.data.domain import Domain, StringVariable from orangecontrib.text.corpus import Corpus class CorpusTests(unittest.TestCase): def test_corpus_from_file(self): c = Corpus.from_file('bookexce...
bsd-2-clause
cunhalima/cgcam
src/server/sv_connect.cpp
2288
#include <cassert> #include <cstring> #include "../defs.h" int SV_FindClientByNNode(nnode_t *nn) { assert(nn != NULL); for (int i = 0; i < MAX_CLIENTS; i++) { nnode_t *cnn = ss.clients[i].nn; if (cnn == NULL) { continue; } if (nnode_cmp(nn, cnn) == 0) { ...
bsd-2-clause
EricssonResearch/scream
gstscream/src/screamrx/imp.rs
18517
use glib::subclass::prelude::*; use gst::prelude::*; use gst::subclass::prelude::*; use crate::gst::prelude::PadExtManual; use std::convert::TryInto; use std::sync::Arc; use std::sync::Mutex; pub use gstreamer_rtp::rtp_buffer::compare_seqnum; pub use gstreamer_rtp::rtp_buffer::RTPBuffer; pub use gstreamer_rtp::rtp_b...
bsd-2-clause
Rohde-Schwarz-Cybersecurity/botan
src/tests/test_psk_db.cpp
8588
/* * (C) 2017 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include "tests.h" #if defined(BOTAN_HAS_PSK_DB) #include <botan/psk_db.h> #if defined(BOTAN_HAS_SQLITE3) #include <botan/psk_db_sql.h> #include <botan/sqlite3.h> #endif namespace Botan_Tests { namespace { cl...
bsd-2-clause
legend0702/jsgen
bin/jsgen1.js
1191
//引用lib文件下的utils.js var utils = require('../lib/utils'); var fs = require('fs'); var path = require('path'); var fsUtils = require('../lib/fsUtils'); //var rs = fs.createReadStream('G:/Nodejs/sql.txt'); console.log(module.filename); console.log(path.dirname(module.filename)); //error console.log(path.resolve(path.dirn...
bsd-2-clause
mbcraft/phal
src/ParentTagPlaceholder.php
1724
<?php namespace Phal { /** * This class rapresents a parent placeholder tag. It does not render * any tag itself, but can contain other tags or texts. It is used to * keep an order inside the html and to reserve place for tags to be * inserted in special conditions. */ class Pare...
bsd-2-clause
almarklein/bokeh
tests/glyphs/Oval.py
932
import numpy as np from bokeh.document import Document from bokeh.models import ColumnDataSource, DataRange1d, Plot, LinearAxis, Grid from bokeh.models.glyphs import Oval from bokeh.plotting import show N = 9 x = np.linspace(-2, 2, N) y = x**2 source = ColumnDataSource(dict(x=x, y=y)) xdr = DataRange1d(sources=[sou...
bsd-3-clause
rwth-acis/LAS2peer
core/src/main/java/i5/las2peer/classLoaders/libraries/LibraryIdentifier.java
4012
package i5.las2peer.classLoaders.libraries; import java.io.File; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * a basic class managing a library identifier of the format name-number where number fits the format of * {@link LibraryVersion} * */ public class LibraryIdentifier { public stat...
bsd-3-clause
skirpichev/omg
diofant/tests/solvers/test_inequalities.py
15287
"""Tests for tools for solving inequalities and systems of inequalities.""" import pytest from diofant import (And, E, Eq, FiniteSet, Float, Ge, Gt, Integer, Integral, Interval, Le, Lt, Ne, Or, Piecewise, Poly, PurePoly, Rational, RootOf, S, Symbol, Union, false, log, oo, pi,...
bsd-3-clause
andrewsmedina/django-admin2
djadmin2/utils.py
6646
# -*- coding: utf-8 -*- from __future__ import division, absolute_import, unicode_literals from collections import defaultdict from django.db.models.deletion import Collector, ProtectedError from django.db.models.sql.constants import QUERY_TERMS from django.utils import six from django.utils.encoding import force_byt...
bsd-3-clause
holisticon/skill-based-routing
skill-based-routing-plugin/skill-based-routing-plugin-impl/src/main/java/de/holisticon/bpm/sbr/plugin/setup/ShowcaseSetup.java
1434
package de.holisticon.bpm.sbr.plugin.setup; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Throwables; import org.flywaydb.core.Flyway; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.sql.DataSource; public class ShowcaseSetup implements R...
bsd-3-clause
appleseedhq/gaffer
python/GafferArnoldUI/ArnoldTextureBakeUI.py
5993
########################################################################## # # Copyright (c) 2018, Image Engine Design 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: # # * Redistrib...
bsd-3-clause
SnakeDoc/GuestVM
guestvm~guestvm/com.oracle.max.ve.yanfs/src/com/sun/gssapi/dummy/DummyName.java
5936
/* * Copyright (c) 1999, 2007, Oracle and/or its affiliates. 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 * no...
bsd-3-clause
SelvEsperer/aviacion
views/booking/update.php
533
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model app\models\Booking */ $this->title = 'Update Booking: ' . ' ' . $model->name; $this->params['breadcrumbs'][] = ['label' => 'Bookings', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $mo...
bsd-3-clause
phpwork1/k3lh
backend/themes/AceMaster/views/p3k-monitoring-detail/index.php
2257
<?php use yii\helpers\Html; use yii\grid\GridView; use common\vendor\AppLabels; /* @var $this yii\web\View */ /* @var $searchModel backend\models\P3kMonitoringDetailSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ /* @var $pmId int */ /* @var $powerPlantModel backend\models\PowerPlant */ $this->title ...
bsd-3-clause
MrEliasen/Zolid-Framework
app/controllers/admin/home.php
2001
<?php /** * Zolid Framework * https://github.com/MrEliasen/Zolid-Framework * * @author Mark Eliasen (mark.eliasen@zolidsolutions.com) * @copyright Copyright (c) 2014, Mark Eliasen * @version 0.1.6.1 * @license http://opensource.org/licenses/MIT MIT License */ class ControllersAdminHome extends A...
bsd-3-clause
rgarro/zf2
tests/Zend/Service/Technorati/TechnoratiTest.php
24405
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
bsd-3-clause
DEVPAR/wigle-wifi-wardriving
wiglewifiwardriving/src/main/java/net/wigle/wigleandroid/MapFilterActivity.java
5022
package net.wigle.wigleandroid; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.support.v4.app.NavUtils; import android.support.v7.app.AppCompatActivity; import android.view.MenuItem; import android.view.View; import android.widget.EditText; import andr...
bsd-3-clause
spkg/local
nullable_test.go
6719
package local import ( "encoding/json" "strings" "testing" "time" "github.com/stretchr/testify/assert" ) func TestNullDateScan(t *testing.T) { assert := assert.New(t) testCases := []struct { Input interface{} ExpectedError string ExpectedDate NullDate }{ { Input: time.Date(2091, 11...
bsd-3-clause
zcbenz/cefode-chromium
chrome/browser/pepper_broker_infobar_delegate.cc
6580
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/pepper_broker_infobar_delegate.h" #include "base/prefs/pref_service.h" #include "chrome/browser/api/infobars/infobar_service...
bsd-3-clause
byn9826/RapidSlides
main.js
859
const electron = require( 'electron' ); const app = electron.app; const BrowserWindow = electron.BrowserWindow; const path = require( 'path' ); const url = require( 'url' ); let mainWindow; app.on('ready', () => { mainWindow = new BrowserWindow({ height: 600, width: 800 }); //mainWindow.set...
bsd-3-clause
iotsap/FiWare-Template-Handler
NGSI910DatastructuresAndNGSI10Operations/target/generated-sources/xmlbeans/noNamespace/impl/UnsubscribeContextAvailabilityResponseDocumentImpl.java
2969
/* * An XML document type. * Localname: unsubscribeContextAvailabilityResponse * Namespace: * Java type: noNamespace.UnsubscribeContextAvailabilityResponseDocument * * Automatically generated - do not modify. */ package noNamespace.impl; /** * A document containing one unsubscribeContextAvailabilityResponse(@)...
bsd-3-clause
vitorismart/ChromeCast
target/client/services/local-device.js
6882
// Generated by CoffeeScript 1.8.0 /* Copyright (c) 2014, Groupon 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 ...
bsd-3-clause
keverw/Random-Quotes
Upload/system/start.php
1718
<?php session_start(); mb_language('uni'); mb_internal_encoding('UTF-8'); require 'config.php'; function create_slug($string) { $string = strtolower($string); //make loverspaces $string = str_replace('\'s', 's', $string); //replace 's with just s $string = preg_replace("/\ $/",'',$string); //remove last s...
bsd-3-clause
yungsters/relay
packages/relay-runtime/store/__tests__/RelayModernEnvironment-ExecuteWithMatchAdditionalArguments-test.js
28070
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow * @emails oncall+relay */ // flowlint ambiguous-object-type:error 'use strict'; const RelayModernEnvironmen...
bsd-3-clause
devbharat/gtsam
doc/html/a00448.js
230
var a00448 = [ [ "EliminationTraits< GaussianFactorGraph >", "a00076.html", "a00076" ], [ "GaussianFactorGraph", "a00108.html", "a00108" ], [ "hasConstraints", "a00448.html#a35c269c3243cab16a7475239a9c91021", null ] ];
bsd-3-clause
hung101/kbs
frontend/views/ref-nama-pemeriksa-aduan/view.php
1214
<?php use yii\helpers\Html; use yii\widgets\DetailView; // contant values use app\models\general\GeneralLabel; use app\models\general\GeneralMessage; /* @var $this yii\web\View */ /* @var $model app\models\RefNamaPemeriksaAduan */ $this->title = $model->id; $this->params['breadcrumbs'][] = ['label' => GeneralLabel:...
bsd-3-clause
wsldl123292/jodd
jodd-core/src/main/java/jodd/JoddModule.java
250
// Copyright (c) 2003-present, Jodd Team (jodd.org). All Rights Reserved. package jodd; /** * Optional interface for Jodd modules. */ public interface JoddModule { /** * Invoked once when module has been created. */ public void start(); }
bsd-3-clause
cga-harvard/geonode-client
app/static/script/app/geo-debug.js
1220
(function() { var jsfiles = new Array( "/static/src/script/app/GeoExplorer.js", "/static/src/script/app/GeoExplorer/Viewer.js", "/static/src/script/app/GeoExplorer/SearchBar.js", "/static/src/script/app/GeoExplorer/SocialExplorer.js", "/static/src/script/app/GeoExplorer/Capa...
bsd-3-clause
AsiaWebSolution/Yii2BasicTemplateADMINLTE
config/modules/modules.php
569
<?php return [ 'examples' => [ 'class' => 'app\modules\examples\Examples', ], 'posts' => [ 'class' => 'app\modules\posts\Posts', 'modules' => [ 'article' => [ 'class' => 'app\modules\posts\article\article', ], ], ], 'settings' => [ 'class' =...
bsd-3-clause
Blindinglight-Team5433/BlindingLight-Sheila
src/org/usfirst/frc5433/BlindingLight_Sheila/commands/Mecanum_Drive.java
1561
// RobotBuilder Version: 1.5 // // This file was generated by RobotBuilder. It contains sections of // code that are automatically generated and assigned by robotbuilder. // These sections will be updated in the future when you export to // Java from RobotBuilder. Do not put any code or make any change in // the blocks...
bsd-3-clause
Signbank/BSL-signbank
signbank/dictionary/forms.py
4390
from django import forms from django.contrib.formtools.preview import FormPreview from signbank.video.fields import VideoUploadToFLVField from signbank.dictionary.models import Dialect, Gloss, Definition, Relation, Region, defn_role_choices, handshapeChoices, locationChoices from django.conf import settings from taggin...
bsd-3-clause
majuca/prado
framework/Web/UI/WebControls/TTabPanel.php
20591
<?php /** * TTabPanel class file. * * @author Tomasz Wolny <tomasz.wolny@polecam.to.pl> and Qiang Xue <qiang.xue@gmail.com> * @link https://github.com/pradosoft/prado * @copyright Copyright &copy; 2005-2015 The PRADO Group * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT * @package System.Web....
bsd-3-clause
jacastaneda/hosouees
vendor/composer/autoload_static.php
11367
<?php // autoload_static.php @generated by Composer namespace Composer\Autoload; class ComposerStaticInit491b57259d26ede26f33eef9dd2178da { public static $files = array ( '2cffec82183ee1cea088009cef9a6fc3' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier.composer.php', '2c102faa651...
bsd-3-clause
calcutec/aperturus
app/static/js/main.js
20330
window.App = { Models: {}, Collections: {}, Views: {}, Router: {} }; App.Router.MainRouter = Backbone.Router.extend({ routes: { // sets the routes '': 'start', // http://netbard.com/photos/portfolio/ 'create': 'create', // http://netbard.com/photos/portfolio/#create 'edit/:i...
bsd-3-clause