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
// Copyright (C) 2016 André Bargull. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-white-space description: > Mongolian Vowel Separator is not recognized as white space. info: | 11.2 White Space WhiteSpace :: <TAB> <VT> <FF> <SP> ...
sebastienros/jint
Jint.Tests.Test262/test/language/white-space/mongolian-vowel-separator.js
JavaScript
bsd-2-clause
659
#!/usr/bin/env python __author__ = 'Adam R. Smith, Michael Meisinger, Dave Foster <dfoster@asascience.com>' import threading import traceback import gevent from gevent import greenlet, Timeout from gevent.event import Event, AsyncResult from gevent.queue import Queue from pyon.core import MSG_HEADER_ACTOR from pyon....
scionrep/scioncc
src/pyon/ion/process.py
Python
bsd-2-clause
27,034
# Author: Nick Raptis <airscorp@gmail.com> """ Module for listing commands and help. """ from basemodule import BaseModule, BaseCommandContext from alternatives import _ class HelpContext(BaseCommandContext): def cmd_list(self, argument): """List commands""" arg = argument.lower() index ...
nickraptis/fidibot
src/modules/help.py
Python
bsd-2-clause
2,615
cask 'feeder' do version '3.6.8' sha256 '4399609c1b04b1b92aa51bf9c240fc7dfec49e534eae014dbe750e7c7bbdfd2d' url "https://reinventedsoftware.com/feeder/downloads/Feeder_#{version}.dmg" appcast "https://reinventedsoftware.com/feeder/downloads/Feeder#{version.major}.xml" name 'Feeder' homepage 'https://reinven...
uetchy/homebrew-cask
Casks/feeder.rb
Ruby
bsd-2-clause
386
// This file was procedurally generated from the following sources: // - src/async-generators/yield-as-identifier-reference-escaped.case // - src/async-generators/syntax/async-class-expr-method.template /*--- description: yield is a reserved keyword within generator function bodies and may not be used as an identifier ...
sebastienros/jint
Jint.Tests.Test262/test/language/expressions/class/async-gen-method-yield-as-identifier-reference-escaped.js
JavaScript
bsd-2-clause
1,059
#!/usr/bin/env python #Copyright (c) <2015>, <Jaakko Leppakangas> #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 #...
jaeilepp/eggie
eggie.py
Python
bsd-2-clause
1,903
L.CommunistWorker = L.AbstractWorker.extend({ statics: { // number of web workers, not using web workers when falsy NUM_WORKERS: 2 }, initialize: function (workerFunc) { this.workerFunc = workerFunc; }, onAdd: function (map) { this._workers = L.CommunistWorker.crea...
nrenner/leaflet-tilelayer-vector
CommunistWorker.js
JavaScript
bsd-2-clause
1,976
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace nora.clara.machine { public enum Event { OPEN_REQUEST, ACTION_REQUEST, DEATH_REQUEST, CONNECTED_TO_STEAM, PLAYING_STATE_OPENED, PLAYI...
dschleck/nora
clara/machine/Event.cs
C#
bsd-2-clause
795
/* * Copyright (c) 2009-2010 jMonkeyEngine * 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...
chototsu/MikuMikuStudio
sdk/jme3-core/src/com/jme3/gde/core/filters/impl/JmeWaterFilter.java
Java
bsd-2-clause
3,026
<?php namespace Nether\Object\Meta; use Attribute; use Nether\Object\Prototype\AttributeInterface; use Nether\Object\Prototype\PropertyAttributes; #[Attribute(Attribute::TARGET_PROPERTY)] class PropertyOrigin implements AttributeInterface { /*// @date 2021-08-05 @related Nether\Object\Prototype::__Construct when att...
netherphp/object
src/Nether/Object/Meta/PropertyOrigin.php
PHP
bsd-2-clause
753
/** * Copyright (c) 2013, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * https://raw.github.com/facebook/regenerator/master/LICENSE file. An * additional grant of patent rights can be found in the PATENTS file in * the same directory. */ var as...
jlongster/unwinder
lib/leap.js
JavaScript
bsd-2-clause
5,549
var http = require('http') var url = require('url') var path = require('path') var sleep = require('sleep-ref') var Router = require("routes-router") var concat = require('concat-stream') var ldj = require('ldjson-stream') var manifest = require('level-manifest') var multilevel = require('multilevel') var extend = requ...
giantoak/dat
lib/rest-handler.js
JavaScript
bsd-2-clause
11,585
/** * The main application class. An instance of this class is created by app.js when it calls * Ext.application(). This is the ideal place to handle application launch and initialization * details. * * */ Ext.define('Sample.Application', { extend: 'Devon.App', name: 'Sample', requires:[ 'Samp...
CoEValencia/chirr
demos/workspace/ExtSample/app/Application.js
JavaScript
bsd-2-clause
796
package com.glob3mobile.vectorial.processing; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Comparator; import java.util.List; import com.glob3mobile.utils.Progress; import com.glob3mobile.vectorial.lod.PointFeatureLODStorage; import com.glob3mobile.vectorial.lod.mapd...
octavianiLocator/g3m
tools/vectorial-streaming/src/com/glob3mobile/vectorial/processing/LODPointFeaturesPreprocessor.java
Java
bsd-2-clause
5,344
#include <catch.hpp> #include <rapidcheck/catch.h> using namespace rc; TEST_CASE("scaleInteger") { prop("for uint32_t, equal to naive way", [] { const auto x = *gen::arbitrary<uint32_t>(); const auto size = *gen::nonNegative<int>(); RC_ASSERT(gen::detail::scaleInteger(x, size) == ...
unapiedra/rapidfuzz
test/gen/detail/ScaleIntegerTests.cpp
C++
bsd-2-clause
1,493
// ------------------------------------------------------------------------------ // <copyright from='2002' to='2002' company='Scott Hanselman'> // Copyright (c) Scott Hanselman. All Rights Reserved. // </copyright> // ------------------------------------------------------------------------------ // // Scott Han...
shanselman/TinyOS
src/TinyOSCore/InstructionCollection.cs
C#
bsd-2-clause
12,715
#ifndef EXTRACTION_WAY_HPP #define EXTRACTION_WAY_HPP #include "extractor/guidance/road_classification.hpp" #include "extractor/travel_mode.hpp" #include "util/guidance/turn_lanes.hpp" #include "util/typedefs.hpp" #include <string> #include <vector> namespace osrm { namespace extractor { namespace detail { inline vo...
frodrigo/osrm-backend
include/extractor/extraction_way.hpp
C++
bsd-2-clause
3,763
var crypto = require('crypto'); var Canvas = require('canvas'); var _ = require('lodash'); var bu = require('./bufutil'); var fmt = require('util').format; var unpack = require('./unpack'); var bright = require('./bright'); function fprint(buf, len) { if (len > 64) throw new Error(fmt("sha512 can only generate 64B ...
sehrgut/node-retricon
lib/index.js
JavaScript
bsd-2-clause
3,668
#include <mscorlib/System/Runtime/Serialization/mscorlib_System_Runtime_Serialization_SerializationObjectManager.h> #include <mscorlib/System/mscorlib_System_Type.h> #include <mscorlib/System/mscorlib_System_String.h> namespace mscorlib { namespace System { namespace Runtime { namespace Serialization { ...
brunolauze/MonoNative
MonoNative/mscorlib/System/Runtime/Serialization/mscorlib_System_Runtime_Serialization_SerializationObjectManager.cpp
C++
bsd-2-clause
1,080
var compilerSupport=require('../../src/compilerSupport');var main = function () { var __builder = new compilerSupport.TaskBuilder(), __state = 0, __continue = __builder.CONT, __ex; var data; return __builder.run(function () { switch (__state) { case 0: { data = 12345; ...
omgtehlion/asjs
tests/00-misc/00-fulfills-promise.exp.js
JavaScript
bsd-2-clause
678
// (c) 2010-2014 IndiegameGarden.com. Distributed under the FreeBSD license in LICENSE.txt 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 va...
IndiegameGarden/Quest
TTengine/Properties/AssemblyInfo.cs
C#
bsd-2-clause
1,485
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text; namespace Mkko.Configuration { [ConfigurationCollection(typeof(ExecutionEnvironmentSettings), AddItemName = "executionEnvironment", CollectionType = ConfigurationElementCollectionType.BasicMap)] p...
mk83ko/any-log-analyzer
AnyLogAnalyzerCore/Configuration/ExecutionEnvironmentCollection.cs
C#
bsd-2-clause
1,003
#region Copyright notice /** * Copyright (c) 2018 Samsung Electronics, 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 co...
Samsung/Dexter
project/dexter-cs/DexterCS/Src/ProjectAnalysisConfiguration.cs
C#
bsd-2-clause
2,316
require "language/node" class HttpServer < Formula desc "Simple zero-configuration command-line HTTP server" homepage "https://github.com/http-party/http-server" url "https://registry.npmjs.org/http-server/-/http-server-13.0.1.tgz" sha256 "35e08960062d766ad4c1e098f65b6e8bfb44f12516da90fd2df9974729652f03" lic...
mbcoguno/homebrew-core
Formula/http-server.rb
Ruby
bsd-2-clause
944
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Ocronet.Dynamic.Recognizers; using Ocronet.Dynamic.OcroFST; using Ocronet.Dynamic; using Ocronet.Dynamic.ImgLib; using Ocronet.Dynamic.Interfaces; using Ocronet.Dynamic.Utils; using Ocronet.Dynamic.IOData; using System.IO; usin...
nickun/OCRonet
Ocronet.Dynamic/Tests/TestLinerec.cs
C#
bsd-2-clause
13,695
class Opusfile < Formula desc "API for decoding and seeking in .opus files" homepage "https://www.opus-codec.org/" url "https://archive.mozilla.org/pub/opus/opusfile-0.11.tar.gz" sha256 "74ce9b6cf4da103133e7b5c95df810ceb7195471e1162ed57af415fabf5603bf" revision 1 bottle do cellar :any rebuild 1 ...
edporras/homebrew-core
Formula/opusfile.rb
Ruby
bsd-2-clause
2,016
cask 'opera-beta' do version '50.0.2762.42' sha256 '0ae6866beb0047a2aebd22df7d2638f2d95ad8c08227879905d0e96e1add2235' url "https://get.geo.opera.com/pub/opera-beta/#{version}/mac/Opera_beta_#{version}_Setup.dmg" name 'Opera Beta' homepage 'https://www.opera.com/computer/beta' auto_updates true app 'Ope...
yurikoles/homebrew-versions
Casks/opera-beta.rb
Ruby
bsd-2-clause
337
# coding: utf8 from __future__ import unicode_literals from flask import abort, make_response, request from flask_api.decorators import set_renderers from flask_api import exceptions, renderers, status, FlaskAPI import json import unittest app = FlaskAPI(__name__) app.config['TESTING'] = True class JSONVersion1(ren...
theskumar-archive/flask-api
flask_api/tests/test_app.py
Python
bsd-2-clause
4,692
/* * Copyright 2016 Skynav, Inc. All rights reserved. * Portions Copyright 2009 Extensible Formatting Systems, Inc (XFSI). * * 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 c...
skynav/ttt
ttt-ttv/src/main/java/com/xfsi/xav/validation/images/jpeg/JpegInputStream.java
Java
bsd-2-clause
3,933
// EarthShape.java // See copyright.txt for license and terms of use. package earthshape; import java.awt.BorderLayout; import java.awt.Cursor; import java.awt.Image; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.InputEvent; import java.awt.eve...
smcpeak/earthshape
src/earthshape/EarthShape.java
Java
bsd-2-clause
118,405
var searchData= [ ['lcd_2ec',['lcd.c',['../lcd_8c.html',1,'']]], ['lcd_2eh',['lcd.h',['../lcd_8h.html',1,'']]], ['light_2ec',['light.c',['../light_8c.html',1,'']]], ['light_2eh',['light.h',['../light_8h.html',1,'']]] ];
bplainia/galaxyLightingSystem
doxygen/html/search/files_4.js
JavaScript
bsd-2-clause
228
/* Copyright (c) 2014, 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 following ...
jlewin/agg-sharp
PolygonMesh/Processors/FaceBspTree.cs
C#
bsd-2-clause
8,877
using System; using System.Reflection; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace LabVIEW_CLI { class Program { static bool connected = false; static bool stop = false; static int Main(string[] args)...
rose-a/LabVIEW-CLI
C Sharp Source/LabVIEW CLI/Program.cs
C#
bsd-2-clause
7,352
from celery.task import Task import requests class StracksFlushTask(Task): def run(self, url, data): requests.post(url + "/", data=data)
Stracksapp/stracks_api
stracks_api/tasks.py
Python
bsd-2-clause
152
/* * Ferox, a graphics and game library in Java * * Copyright (c) 2012, Michael Ludwig * 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 t...
geronimo-iia/ferox
ferox-math/src/main/java/com/ferox/math/bounds/Frustum.java
Java
bsd-2-clause
28,685
var files = [ [ "Code", "dir_a44bec13de8698b1b3f25058862347f8.html", "dir_a44bec13de8698b1b3f25058862347f8" ] ];
crurik/GrapeFS
Doxygen/html/files.js
JavaScript
bsd-2-clause
116
package cocoonClient.Panels; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.Box; import javax.swing.BoxLayout; import javax.swing.JScrollPane; import javax....
hydai/Cocoon
Cocoon/src/cocoonClient/Panels/StatusPanel.java
Java
bsd-2-clause
3,759
package de.lman; import de.lman.engine.Colors; import de.lman.engine.Game; import de.lman.engine.InputState; import de.lman.engine.Keys; import de.lman.engine.Mouse; import de.lman.engine.math.Mat2f; import de.lman.engine.math.Scalar; import de.lman.engine.math.Transform; import de.lman.engine.math.Vec2f; import de.lm...
f1nalspace/leverman-devlog
lman/src/de/lman/Leverman.java
Java
bsd-2-clause
11,052
package org.jvnet.jaxb2_commons.plugin.mergeable; import java.util.Arrays; import java.util.Collection; import javax.xml.namespace.QName; import org.jvnet.jaxb2_commons.lang.JAXBMergeStrategy; import org.jvnet.jaxb2_commons.lang.MergeFrom2; import org.jvnet.jaxb2_commons.lang.MergeStrategy2; import org.jvnet.jaxb2_c...
highsource/jaxb2-basics
basic/src/main/java/org/jvnet/jaxb2_commons/plugin/mergeable/MergeablePlugin.java
Java
bsd-2-clause
10,727
using System; using System.Collections.Generic; using System.Drawing; using DevExpress.XtraBars; namespace bv.winclient.Core.TranslationTool { public partial class PropertyGrid : BvForm { public ControlDesigner SourceControl { get; private set; } public ControlModel Model { get; pr...
EIDSS/EIDSS-Legacy
EIDSS v6.1/bv.winclient/Core/TranslationTool/PropertyGrid.cs
C#
bsd-2-clause
4,672
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('freebasics', '0006_change_site_url_field_type'), ] operations = [ migrations.AddField( model_name='freebasicscon...
praekeltfoundation/mc2-freebasics
freebasics/migrations/0007_freebasicscontroller_postgres_db_url.py
Python
bsd-2-clause
442
// Copyright (c) 2019 ASMlover. 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 ofconditions and...
ASMlover/study
cplusplus/wren_cc/compiler.hh
C++
bsd-2-clause
1,647
def excise(conn, qrelname, tid): with conn.cursor() as cur: # Assume 'id' column exists and print that for bookkeeping. # # TODO: Instead should find unique constraints and print # those, or try to print all attributes that are not corrupt. sql = 'DELETE FROM {0} WHERE ctid =...
fdr/pg_corrupt
pg_corrupt/excise.py
Python
bsd-2-clause
506
<?php /* vim: set expandtab tabstop=4 shiftwidth=4: */ // +----------------------------------------------------------------------+ // | Artisan Smarty | // +----------------------------------------------------------------------+ // | PHP Version 4 ...
EpubBuilder/EpubBuilder
Smarty/plugins/modifier.count_sentences.php
PHP
bsd-2-clause
1,355
# frozen_string_literal: true require_relative '../helpers/load_file' module WavefrontCli module Subcommand # # Stuff to import an object # class Import attr_reader :wf, :options def initialize(calling_class, options) @calling_class = calling_class @wf = calling_class.wf...
snltd/wavefront-cli
lib/wavefront-cli/subcommands/import.rb
Ruby
bsd-2-clause
1,786
import datetime from django.utils import timezone from django.test import TestCase from django.urls import reverse from .models import Question class QuestionMethodTests(TestCase): def test_was_published_recently_with_future_question(self): """ was_published_recently() should return False for qu...
congpc/DjangoExample
mysite/polls/tests.py
Python
bsd-2-clause
5,010
class GetIplayer < Formula desc "Utility for downloading TV and radio programmes from BBC iPlayer" homepage "https://github.com/get-iplayer/get_iplayer" url "https://github.com/get-iplayer/get_iplayer/archive/v3.06.tar.gz" sha256 "fba3f1abd01ca6f9aaed30f9650e1e520fd3b2147fe6aa48fe7c747725b205f7" head "https:/...
grhawk/homebrew-core
Formula/get_iplayer.rb
Ruby
bsd-2-clause
2,242
/* * (C) 2014,2015,2017 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/asn1_print.h> #include <botan/bigint.h> #include <botan/hex.h> #include <botan/der_enc.h> #include <botan/ber_dec.h> #include <botan/asn1_time.h> #include <botan/asn1_str.h> #include <botan/oi...
Rohde-Schwarz-Cybersecurity/botan
src/lib/asn1/asn1_print.cpp
C++
bsd-2-clause
8,549
package operations; import data.Collector; import graph.implementation.Edge; import utility.GraphFunctions; /** * Set the curve point to an ideal position. * If source and destination are equal, it would be a line. * If not, it is a noose on top of the vertex. */ public class O_RelaxEdge implements EdgeOperation...
Drafigon/WildGraphs
src/operations/O_RelaxEdge.java
Java
bsd-2-clause
590
/** * @license AngularJS v1.3.0-build.2480+sha.fb6062f * (c) 2010-2014 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular, undefined) {'use strict'; /* jshint maxlen: false */ /** * @ngdoc module * @name ngAnimate * @description * * # ngAnimate * * The `ngAnimate` module provides...
sabhiram/nodejs-scaffolding
app/public/js/angular-animate.js
JavaScript
bsd-2-clause
74,308
#!/usr/bin/env python # -*- coding: utf-8 -*- """--- Day 3: Perfectly Spherical Houses in a Vacuum --- Santa is delivering presents to an infinite two-dimensional grid of houses. He begins by delivering a present to the house at his starting location, and then an elf at the North Pole calls him via radio and tells hi...
MattJDavidson/python-adventofcode
advent/problem_03.py
Python
bsd-2-clause
3,424
/****************************************************************************** * The MIT License * Copyright (c) 2007 Novell Inc., www.novell.com * * 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 Sof...
brunolauze/System.Management
System.Management/System.Management.Internal/CimDataTypes/CimTable.cs
C#
bsd-2-clause
1,669
// Copyright 2010 Google Inc. All Rights Reserved. // Refactored from contributions of various authors in strings/strutil.cc // // This file contains string processing functions related to // numeric values. #define __STDC_FORMAT_MACROS 1 #include "strings/numbers.h" #include <memory> #include <cassert> #include <ctyp...
romange/beeri
strings/numbers.cc
C++
bsd-2-clause
49,536
require "language/haskell" class Ghc < Formula include Language::Haskell::Cabal desc "Glorious Glasgow Haskell Compilation System" homepage "https://haskell.org/ghc/" url "https://downloads.haskell.org/~ghc/8.6.3/ghc-8.6.3-src.tar.xz" sha256 "9f9e37b7971935d88ba80426c36af14b1e0b3ec1d9c860f44a4391771bc07f23"...
jdubois/homebrew-core
Formula/ghc.rb
Ruby
bsd-2-clause
4,374
# pylint:disable=line-too-long import logging from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool from ...calling...
angr/angr
angr/procedures/definitions/win32_aclui.py
Python
bsd-2-clause
1,451
require_relative 'model' Record.where(version: 10606).delete_all
panjia1983/channel_backward
benchmarks/needle_steering/06clear_records6.rb
Ruby
bsd-2-clause
65
# -*- coding: utf-8 -*- """ femagtools.plot ~~~~~~~~~~~~~~~ Creating plots """ import numpy as np import scipy.interpolate as ip import logging try: import matplotlib import matplotlib.pyplot as plt import matplotlib.cm as cm from mpl_toolkits.mplot3d import Axes3D matplotlibversion...
SEMAFORInformatik/femagtools
femagtools/plot.py
Python
bsd-2-clause
54,354
import {Component, NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; @Component({ selector: 'application', template: `<div>Hello!</div>` }) export class BasicInlineComponent {} @NgModule({ imports: [BrowserModule], declarations: [BasicInlineComponent], bootstrap: [Bas...
clbond/angular-ssr
source/test/fixtures/application-basic-inline.ts
TypeScript
bsd-2-clause
377
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function) from . import _wrap_numbers, Symbol, Number, Matrix def symbols(s): """ mimics sympy.symbols """ tup = tuple(map(Symbol, s.replace(',', ' ').split())) if len(tup) == 1: return tup[0] else: return...
bjodah/pysym
pysym/util.py
Python
bsd-2-clause
2,569
const maps = require('source-map-support'); maps.install({environment: 'node'});
clbond/angular-ssr
source/application/compiler/webpack/source-map.ts
TypeScript
bsd-2-clause
81
// Copyright (C) 2015 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-array.from es6id: 22.1.2.1 description: Value returned by mapping function (traversed via iterator) info: | [...] 2. If mapfn is undefined, let mapping be fal...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/Array/from/iter-map-fn-return.js
JavaScript
bsd-2-clause
1,769
package com.mithos.bfg.loop; import java.awt.event.KeyEvent; import java.awt.event.MouseEvent; import java.awt.event.MouseWheelEvent; /** * This class is an adapter for {@link OnEvent}. All methods do * nothing and return true, so you need only implement the methods * that you need to. * @author James McMahon * ...
James1345/bfg
src/com/mithos/bfg/loop/OnEventAdapter.java
Java
bsd-2-clause
821
using Esprima.Ast; namespace Jint.Runtime.Interpreter { /// <summary> /// Per Engine.Evalute() call context. /// </summary> internal sealed class EvaluationContext { public EvaluationContext(Engine engine, in Completion? resumedCompletion = null) { Engine = engine; ...
sebastienros/jint
Jint/Runtime/Interpreter/EvaluationContext.cs
C#
bsd-2-clause
780
log.enableAll(); (function(){ function animate() { requestAnimationFrame(animate); TWEEN.update(); } animate(); })(); var transform = getStyleProperty('transform'); var getStyle = ( function() { var getStyleFn = getComputedStyle ? function( elem ) { return getComputed...
wushuyi/panorama360
assets/js/functions_bak.js
JavaScript
bsd-2-clause
6,239
// Copyright (c) 2022, WNProject 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 "WNNetworking/inc/WNReliableNetworkTransportSocket.h" #include "WNNetworking/inc/WNReliableNetworkListenSocket.h" #include <netdb.h> #include...
WNProject/WNFramework
Overlays/Posix/Libraries/WNNetworking/src/WNReliableNetworkTransportSocket.cpp
C++
bsd-2-clause
3,381
var _ = require('lodash'); var requireAll = require('require-all'); function load(router, options) { if (_.isString(options)) options = {dirname: options}; return requireAll(_.defaults(options, { filter: /(.*Controller)\.js$/, recursive: true, resolve: function (Controller) { var c = new (...
vvv-v13/express-starter
library/load.js
JavaScript
bsd-2-clause
476
/* * Copyright (c) 2012, JInterval Project. * 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 o...
jinterval/jinterval
jinterval-ir/src/main/java/net/java/jinterval/ir/IRPredictor.java
Java
bsd-2-clause
10,164
/* * Copyright (c) 2016-2016, Roland Bock * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of co...
rbock/sqlpp11
tests/core/serialize/Where.cpp
C++
bsd-2-clause
3,294
#include <iostream> #include <string> #include <map> #include <unistd.h> #include <utility> #include <sstream> #include "./patricia-tree.hpp" int main(void) { std::cout << "Add new command!\n"; PatriciaTree<Node<std::string, StringKeySpec>> pt; std::string command = "command"; std::string key; ...
giovannicuriel/tinytools
src/c++/patricia-tree-demo.cpp
C++
bsd-2-clause
472
# Add your own choices here! fruit = ["apples", "oranges", "pears", "grapes", "blueberries"] lunch = ["pho", "timmies", "thai", "burgers", "buffet!", "indian", "montanas"] situations = {"fruit":fruit, "lunch":lunch}
rbracken/internbot
plugins/pick/choices.py
Python
bsd-2-clause
218
/* * Copyright (c) 2009-2010 jMonkeyEngine * 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...
chototsu/MikuMikuStudio
sdk/jme3-core/src/com/jme3/gde/core/properties/UserDataProperty.java
Java
bsd-2-clause
5,643
// Copyright (c) 2017 ASMlover. 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 ofconditions and...
ASMlover/study
python/minipy/main.cc
C++
bsd-2-clause
1,837
# OCaml does not preserve binary compatibility across compiler releases, # so when updating it you should ensure that all dependent packages are # also updated by incrementing their revisions. # # Specific packages to pay attention to include: # - camlp5 # - lablgtk # # Applications that really shouldn't break on a com...
Linuxbrew/homebrew-core
Formula/ocaml.rb
Ruby
bsd-2-clause
2,431
class Xonsh < Formula include Language::Python::Virtualenv desc "Python-ish, BASHwards-compatible shell language and command prompt" homepage "https://xon.sh/" url "https://github.com/xonsh/xonsh/archive/0.8.12.tar.gz" sha256 "7c51ce752f86e9eaae786a4886a6328ba66e16d91d2b7ba696baa6560a4de4ec" head "https://...
bcg62/homebrew-core
Formula/xonsh.rb
Ruby
bsd-2-clause
2,201
<?php namespace Bacharu\Models; use \Prajna\Objects\VIFMetrics as PrajnaVIFMetrics; class VIFMetrics extends PrajnaVIFMetrics { public function __construct(){} }
cameronjacobson/Bacharu
src/Bacharu/Models/VIFMetrics.php
PHP
bsd-2-clause
166
# Copyright (c) 2015-2018 by the parties listed in the AUTHORS file. # All rights reserved. Use of this source code is governed by # a BSD-style license that can be found in the LICENSE file. """ sim_det_noise.py implements the noise simulation operator, OpSimNoise. """ import numpy as np from ..op import Operator...
tskisner/pytoast
src/python/tod/sim_det_noise.py
Python
bsd-2-clause
6,740
(function(){ var slides = [ {title: 'Работы для отдела Клиентского сервиса и сапорта ФС\nТикетная админка, админка массовых сбоев', works: [ {img: 'i/works/ticket-admin.png', description: '<div class="presentation_mb10"><strong>Тикетная админка</strong></div>' + '<div class="presentation_mb10">Чер...
matraska23/m3-backbone-toolkit
demo_presentation/js/presentation.js
JavaScript
bsd-2-clause
22,354
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2013 ASMlover. 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 # ...
ASMlover/study
zeroMQ/python/push-pull/worker.py
Python
bsd-2-clause
1,961
class WireguardGo < Formula desc "Userspace Go implementation of WireGuard" homepage "https://www.wireguard.com/" url "https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-0.0.20200320.tar.xz" sha256 "c8262da949043976d092859843d3c0cdffe225ec6f1398ba119858b6c1b3552f" license "MIT" head "https://git.zx2c4...
maxim-belkin/homebrew-core
Formula/wireguard-go.rb
Ruby
bsd-2-clause
1,241
#ifndef SOBER_NETWORK_HTTP_EXTRA_SUCCESS_HANDLER_HPP_ #define SOBER_NETWORK_HTTP_EXTRA_SUCCESS_HANDLER_HPP_ // Copyright (c) 2014, Ruslan Baratov // All rights reserved. #include <functional> // std::function namespace sober { namespace network { namespace http { using ExtraSuccessHandler = std::function<void()>; ...
ruslo/sober
Source/sober/network/http/ExtraSuccessHandler.hpp
C++
bsd-2-clause
441
/* * Copyright (c) 2012 Tom Denley * This file incorporates work covered by the following copyright and * permission notice: * * Copyright (c) 2003-2008, Franz-Josef Elmer, All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the...
netmelody/neoclassycle
src/main/java/org/netmelody/neoclassycle/renderer/StrongComponentRenderer.java
Java
bsd-2-clause
1,856
from unittest import TestCase import pkg_resources from mock import patch from click import UsageError from click.testing import CliRunner class TestCli(TestCase): @patch('molo.core.cookiecutter.cookiecutter') def test_scaffold(self, mock_cookiecutter): from molo.core.scripts import cli pac...
praekelt/molo
molo/core/scripts/tests/test_cli.py
Python
bsd-2-clause
4,820
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ItzWarty.RAF { public class RAFFileListEntry { private byte[] directoryFileContent = null; private UInt32 offsetEntry = 0; private RAF raf = null; public RAFFileListEntry(RAF raf, by...
dargondevteam/raflib
RAFFileListEntry.cs
C#
bsd-2-clause
1,881
// Copyright (c) 2020 WNProject Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Intentionally left empty so that we can build a lib target for this library #include "hashing/inc/hash.h"
WNProject/WNFramework
Libraries/hashing/src/dummy.cpp
C++
bsd-2-clause
277
// // Copyright (c) 2015 CNRS // // This file is part of Pinocchio // Pinocchio 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 your option) any later versio...
aelkhour/pinocchio
src/spatial/se3.hpp
C++
bsd-2-clause
8,904
import numpy as np from scipy.sparse import csr_matrix class AliasArray(np.ndarray): """An ndarray with a mapping of values to user-friendly names -- see example This ndarray subclass enables comparing sub_id and hop_id arrays directly with their friendly string identifiers. The mapping parameter transla...
MAndelkovic/pybinding
pybinding/support/alias.py
Python
bsd-2-clause
5,869
package org.mastodon.tracking.mamut.trackmate.wizard; import org.mastodon.mamut.model.Link; import org.mastodon.mamut.model.Model; import org.mastodon.mamut.model.Spot; import org.mastodon.model.AbstractModelImporter; public class CreateLargeModelExample { private static final int N_STARTING_CELLS = 6; private sta...
TrNdy/mastodon-tracking
src/test/java/org/mastodon/tracking/mamut/trackmate/wizard/CreateLargeModelExample.java
Java
bsd-2-clause
4,524
<?php /** * Class for XML output * * PHP versions 5 and 7 * * @category PEAR * @package PEAR_PackageFileManager * @author Greg Beaver <cellog@php.net> * @copyright 2003-2015 The PEAR Group * @license New BSD, Revised * @link http://pear.php.net/package/PEAR_PackageFileManager * @since File a...
pear/PEAR_PackageFileManager
PEAR/PackageFileManager/XMLOutput.php
PHP
bsd-2-clause
6,592
// // ooSocket.c WJ112 // /* * Copyright (c) 2014, Walter de Jong * 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 noti...
walterdejong/oolib
src/Sock.cpp
C++
bsd-2-clause
8,549
// Copyright 2013 Yangqing Jia #include <algorithm> #include <cmath> #include <cfloat> #include <vector> #include "caffe/layer.hpp" #include "caffe/vision_layers.hpp" #include "caffe/util/math_functions.hpp" #include "caffe/util/io.hpp" #define C_ 1 using std::max; namespace caffe { const float ...
PeterPan1990/DSN
src/caffe/layers/loss_layer.cpp
C++
bsd-2-clause
10,973
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/profiles/profile.h" #include <string> #include "base/command_line.h" #include "base/compiler_specific.h" #include "base/fil...
Crystalnix/house-of-life-chromium
chrome/browser/profiles/profile.cc
C++
bsd-3-clause
24,938
/** * Layout Select UI * * @package zork * @subpackage form * @author Kristof Matos <kristof.matos@megaweb.hu> */ ( function ( global, $, js ) { "use strict"; if ( typeof js.layoutSelect !== "undefined" ) { return; } js.require( "jQuery.fn.vslider"); /** * Generates layout...
webriq/core
module/Paragraph/public/scripts/zork/layoutselect.js
JavaScript
bsd-3-clause
5,515
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author Bill */ public class BackRightAutonomous extends CommandBase { public BackRightAutonomous() { // Use requires() here to declare subsystem dependencies // eg. requ...
TeamSprocket/2013Robot
BackRightAutonomous.java
Java
bsd-3-clause
952
/** * Dialog to add a new visualization from any of your * existing tables. * */ cdb.admin.NewVisualizationDialogTableItem = cdb.core.View.extend({ events: { "click .remove" : "_onRemove" }, tagName: "li", className: "table", initialize: function() { _.bindAll(this, "_onRemove"); this.tem...
comilla/map
lib/assets/javascripts/cartodb/dashboard/visualizations/new_visualization_dialog.js
JavaScript
bsd-3-clause
8,143
// Copyright 2019 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 "third_party/blink/public/common/page/content_to_visible_time_reporter.h" #include <utility> #include "base/bind.h" #include "base/callback_hel...
nwjs/chromium.src
third_party/blink/common/page/content_to_visible_time_reporter.cc
C++
bsd-3-clause
9,156
#!/usr/bin/env python """ # Software License Agreement (BSD License) # # Copyright (c) 2012, University of California, Berkeley # All rights reserved. # Authors: Cameron Lee (cameronlee@berkeley.edu) and Dmitry Berenson ( berenson@eecs.berkeley.edu) # # Redistribution and use in source and binary forms, with or without...
WPI-ARC/lightning_ros
scripts/RR_action_server.py
Python
bsd-3-clause
22,385
package de.uni.freiburg.iig.telematik.sewol.accesscontrol.rbac.lattice.graphic; import org.apache.commons.collections15.Factory; import edu.uci.ics.jung.graph.Graph; import edu.uci.ics.jung.graph.SparseMultigraph; public class RoleGraphViewer { Graph<Integer, String> g; int nodeCount, edgeCount; Factory<Integer> ...
iig-uni-freiburg/SEWOL
src/de/uni/freiburg/iig/telematik/sewol/accesscontrol/rbac/lattice/graphic/RoleGraphViewer.java
Java
bsd-3-clause
874
/** * @author */ imports("Controls.Composite.Carousel"); using("System.Fx.Marquee"); var Carousel = Control.extend({ onChange: function (e) { var ul = this.find('.x-carousel-header'), t; if (t = ul.first(e.from)) t.removeClass('x-carousel-header-selected'); if(t = ul.first(e.to)) ...
jplusui/jplusui-en
src/Controls/Composite/assets/scripts/Carousel.js
JavaScript
bsd-3-clause
994
#!/usr/bin/env python from django.core.management import setup_environ import settings setup_environ(settings) import socket from trivia.models import * irc = socket.socket(socket.AF_INET, socket.SOCK_STREAM) irc.connect((settings.IRC_SERVER, settings.IRC_PORT)) def send(msg): irc.send(msg + "\r\n") print "{SE...
relrod/pib
bot.py
Python
bsd-3-clause
1,205
/// <reference path="../../src/CaseModel.ts" /> /// <reference path="../../src/CaseViewer.ts" /> /// <reference path="../../src/PlugInManager.ts" /> class AnnotationPlugIn extends AssureIt.PlugInSet { constructor(public plugInManager: AssureIt.PlugInManager) { super(plugInManager); this.HTMLRenderPlugIn = new An...
assureit/AssureIt
plugins/Annotation/Annotation.ts
TypeScript
bsd-3-clause
1,118