repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
shamrath/Axis2-Samples
web-services/jaxws/jaxws-client/src/main/java/org/apache/axis2/sample/jaxws/client/TestJAXWSService.java
2061
/* * Copyright 2004,2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
apache-2.0
destiny1020/hranalyzer
src/main/java/com/destiny1020/hranalyzer/domain/org/OrganizationBase.java
1419
package com.destiny1020.hranalyzer.domain.org; import javax.persistence.Column; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Inheritance; import javax.persistence.InheritanceType; import javax...
apache-2.0
nesfit/NetfoxDetective
Common/Core/BaseTypes/Views/CollectionUserControlBase.cs
3166
// Copyright (c) 2017 Jan Pluskal // //Licensed under the Apache License, Version 2.0 (the "License"); //you may not use this file except in compliance with the License. //You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // //Unless required by applicable law or agreed to in ...
apache-2.0
angry-tony/Portus-20170827
app/assets/javascripts/modules/namespaces/index.js
314
import './pages/index'; import NamespacesShowPage from './pages/show'; const NAMESPACES_SHOW_ROUTE = 'namespaces/show'; $(() => { const $body = $('body'); const route = $body.data('route'); if (route === NAMESPACES_SHOW_ROUTE) { // eslint-disable-next-line new NamespacesShowPage($body); } });
apache-2.0
s1-platform/s1
s1-mongodb/src/java/org/s1/mongodb/log/MongoDBLogStorage.java
2550
/* * Copyright 2014 Grigory Pykhov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
apache-2.0
eSDK/esdk_uc_plugin_ucservice
source/UCService/UCRegManager.cpp
17569
#include "StdAfx.h" #include "UCRegManager.h" #include "UCConfigMgr.h" #include "UCContactMgr.h" //lint -e1762 //lint -e1788 ClientSignInNotifyCB UCRegManager::OnClientSignInNotifyCB = NULL; StatusChangedCB UCRegManager::OnStatusChangedCB = NULL; UCRegManager::UCRegManager(void):m_pUCClient(NULL),m_pSelf(NULL),m_pSub...
apache-2.0
Minecor/Java-homework
homework/top/mineor/three/MainClass.java
1443
package top.mineor.three; import java.io.*; import java.net.URL; import java.net.URLConnection; import java.util.Scanner; /** * Created by mineor on 2016/12/20. */ public class MainClass { public static void main(String[] args){ //Scanner input = new Scanner(System.in); String urlAddress = "http...
apache-2.0
chef/chef-server
oc-chef-pedant/spec/api/knife/data_bag/create_spec.rb
1771
# Copyright: Copyright (c) Chef Software, Inc. # License: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
apache-2.0
howepeng/isis
core/metamodel/src/main/java/org/apache/isis/core/metamodel/spec/ObjectSpecification.java
13311
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
apache-2.0
mtransitapps/ca-maritime-bus-parser
src/main/java/org/mtransit/parser/ca_maritime_bus/MaritimeBusAgencyTools.java
8875
package org.mtransit.parser.ca_maritime_bus; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.commons.lang3.StringUtils; import org.mtransit.parser.CleanUtils; import org.mtransit.pa...
apache-2.0
appbakers/automon_example
jamonapi/jamon/src/test/java/com/jamonapi/MonitorCompositeTest.java
8045
package com.jamonapi; import com.jamonapi.utils.Misc; import com.jamonapi.utils.SerializationUtils; import org.junit.After; import org.junit.Before; import org.junit.Test; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.util.Arrays; import java.util.Collection; import static or...
apache-2.0
ajaykiet2/htdocs
application/views/website/includes/widgets/custom_menu.php
564
<div class="widget"> <div class="widget-title"> <h2>Custom Menu</h2> </div><!-- /.widget-title --> <div class="widget-content"> <ul class="menu"> <li><a href="#">Properties</a></li> <li><a href="#">Features</a></li> <li><a href="#">Agents</a></li> ...
apache-2.0
LordAkkarin/netty-msgpack
src/main/java/org/evilco/netty/msgpack/registry/AbstractMessageRegistry.java
2639
/* * Copyright 2014 Johannes Donath <johannesd@evil-co.com> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
apache-2.0
masoud-bahrami/Chakad.Pipeline4Monolith
Chakad/Pipeline/Core/Query/ChakadListQueryResult.cs
792
using Chakad.Pipeline.Core.Internal; using System; using System.Collections; using System.Collections.Generic; namespace Chakad.Pipeline.Core.Query { public class ChakadQueryResult<T> : QueryResult, IBusinessQueryResult { public ChakadQueryResult() { CorrelationId = CorrelationIdCo...
apache-2.0
JuniorChristian/IDEA2.0
Resources/Help.js
2418
function HelpWindow(title) { var win = Ti.UI.createWindow({ backgroundColor: 'white', title:'Help' }); function addRow(obj) { var row = Ti.UI.createTableViewRow({ height:Ti.UI.SIZE, layout: 'horizontal', }); var view = Ti.UI.createView({ bottom: 10, height: Ti.UI.SIZE, layout: ...
apache-2.0
serilog/serilog-sinks-email
test/Serilog.Sinks.Email.Tests/UseCultureAttribute.cs
3747
using System; using System.Globalization; using System.Reflection; using System.Threading; using Xunit.Sdk; namespace Serilog.Sinks.Email.Tests { // This class courtesy of the xUnit samples at https://github.com/xunit/samples.xunit/blob/main/UseCulture/UseCultureAttribute.cs /// <summary> /// Apply this a...
apache-2.0
aftenkap/jutility-math
src/main/java/org/jutility/math/geometry/Rectangle4.java
7542
package org.jutility.math.geometry; //@formatter:off /* * #%L * * jutility-math * * * %% * Copyright (C) 2013 - 2014 jutility.org * * * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Licens...
apache-2.0
celigo/netsuite-service-manager-dotnet
ServiceManager/SuiteTalk/CouponCodeSearch.cs
873
//~ Generated by SearchRecordTemplate.tt #pragma warning disable 1591 using System; namespace com.celigo.net.ServiceManager.SuiteTalk { public partial class CouponCodeSearchBasic : ISearchBasic { } public partial class CouponCodeSearch : ISearchRecord { /// <summary> /// Gets the basic search cri...
apache-2.0
davidzchen/bazel
src/test/java/com/google/devtools/build/lib/skyframe/packages/AbstractPackageLoaderTest.java
11477
// Copyright 2017 The Bazel Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
apache-2.0
qudh1/focusture
frame/src/main/java/cn/hybris/util/ListUtil.java
770
package cn.hybris.util; import java.util.ArrayList; import java.util.List; /** * 根据指定长度分割list */ public class ListUtil { public static <T> List<List<T>> splitList(List<T> list, int pageSize) { int listSize = list.size(); int page = (listSize + (pageSize - 1)) / pageSize; List<List<T>> list...
apache-2.0
firejack-open/Firejack-Platform
core/src/main/java/net/firejack/platform/core/model/registry/IUrlPathContainer.java
1082
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
apache-2.0
aam-at/tensorflow
tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/legalize_to_linalg.cc
41163
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
apache-2.0
sinlov/JavaFactory
TestForm/src/main/java/com/sinlov/my/test/collection/datestringset/DescendingDateString.java
686
package com.sinlov.my.test.collection.datestringset; import java.util.Comparator; /** * <pre> * sinlov * * /\__/\ * /` '\ * ≈≈≈ 0 0 ≈≈≈ Hello world! * \ -- / * / \ * / \ * | | * \ || || / * \_oo__oo_/≡≡≡≡≡≡≡≡o * * </pre> * Created by sinlov on 17...
apache-2.0
Datenheld/Bulldog
bulldog.board.raspberrypi/src/main/java/org/bulldog/raspberrypi/gpio/PwmFrequencyCalculator.java
875
package org.bulldog.raspberrypi.gpio; public class PwmFrequencyCalculator { private static final double CLOCK_FREQUENCY = 19200000.0; public static int calculateDivisorRegister(double targetFrequency) { int minDivF = 1024; int currentDivreg = 0; for (int i = 1; i < 4096; i++) { boolean error = false; ...
apache-2.0
firejack-open/Firejack-Platform
platform/src/main/webapp/js/net/firejack/platform/console/documentation/manager/DocumentationTreePanel.js
6653
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
apache-2.0
shiver-me-timbers/smt-retrying-parent
smt-retrying-test/smt-retrying-aspect-integration/smt-retrying-aspect-test-executions/src/main/java/shiver/me/timbers/retrying/factory/MapLookupFactory.java
1430
/* * Copyright 2016 Karl Bennett * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
apache-2.0
Snadde/infotainment
apps/headunit/src/se/chalmers/pd/headunit/Action.java
757
package se.chalmers.pd.headunit; /** * This class contains the available actions that can be performed and sent * by the application. They are; * * <b>action</b> * Not a specific action itself. Used to populate the action key. * * <b>exists</b> * Used when a device asks the head unit if an application is * in...
apache-2.0
marek-kulon/hangman-game
src/test/java/hangman/util/AccessMonitorExecuteTimeoutTest.java
3524
package hangman.util; import edu.umd.cs.mtc.MultithreadedTestCase; import edu.umd.cs.mtc.TestFramework; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.concurrent.TimeoutException; import static java.util.concurrent.TimeUnit.MILLISECONDS; /** * Test {@link AccessMon...
apache-2.0
imAArtist/simIr
Data/singleFile/code_85.cpp
510
int hIndex(vector<int>& citations) { if (citations.empty()) return 0; vector<int> count(citations.size()+1, 0); // record 0-size for (int i = 0; i < citations.size(); ++i) { count[citations[i] < count.size() ? citations[i] : count.size() - 1]++; } ...
artistic-2.0
midniteio/npm
lib/run-script.js
5399
module.exports = runScript var lifecycle = require('./utils/lifecycle.js') var npm = require('./npm.js') var path = require('path') var readJson = require('read-package-json') var log = require('npmlog') var chain = require('slide').chain runScript.usage = 'npm run-script <command> [-- <args>...]' + ...
artistic-2.0
muggy8/Music-Matrix-Composer
mmc/services/getPublicSongById.php
1276
<?php //$uName = addcslashes($_POST["name"], "W"); //$sessionID = addcslashes($_POST["sessionID"], "W"); $DBID = addcslashes($_POST["inDBSongID"], "W"); $returnStuff = "{"; include "../../configs/sqlConnect.php"; /*$sql="select username, userID, sessionID from users where username = '$uNam...
artistic-2.0
douhao4648/Test
src/concurrency/chapter7_customization/recipe3_thread_factory/task/MyTask.java
507
package concurrency.chapter7_customization.recipe3_thread_factory.task; import java.util.concurrent.TimeUnit; /** * Task to be executed in the MyThread threads */ public class MyTask implements Runnable { /** * Main method of the Thread. Sleeps the thread during two seconds */ @Over...
artistic-2.0
toulezu/play
Dubbo/testConsumer/src/test/java/com/test/service/consumer/AppTest.java
653
package com.test.service.consumer; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ publi...
artistic-2.0
Xparcel/Xparcel-Project
php/gplus_lib/vendor/google/apiclient/src/Google/Service/Classroom.php
52961
<?php /* * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software ...
artistic-2.0
douhao4648/Test
src/concurrency/chapter1_thread_manage/recipe7_daemon/core/Main.java
1118
package concurrency.chapter1_thread_manage.recipe7_daemon.core; import concurrency.chapter1_thread_manage.recipe7_daemon.event.Event; import concurrency.chapter1_thread_manage.recipe7_daemon.task.CleanerTask; import concurrency.chapter1_thread_manage.recipe7_daemon.task.WriterTask; import java.util.ArrayDeque...
artistic-2.0
WildElf/BeginningCSharp
StringManipulation/StringManipulation/Program.cs
832
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { // read in csv string Console.Write("Enter name and percent (name,percent): "); string csv...
artistic-2.0
WizGeek/SafetyHarborRobotics
TurtleBots/Arduino/Development/ArduBlock/ardublock/src/main/java/com/ardublock/translator/block/dfrobot/lcdkeypad.java
1121
package com.ardublock.translator.block.dfrobot; import com.ardublock.translator.Translator; import com.ardublock.translator.block.TranslatorBlock; import com.ardublock.translator.block.exception.SocketNullException; import com.ardublock.translator.block.exception.SubroutineNotDeclaredException; public class lcdkeypad...
artistic-2.0
jahidhsn002/PMS
application/models/md_meta.php
921
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class md_meta extends CI_Model { public $id; public $name; public $value; public function __construct(){ parent::__construct(); } public function INFO(){ $query = $this->db->get('meta'); return $query->r...
artistic-2.0
ASMlover/study
cplusplus/lvmpp/token.cc
2731
// 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...
bsd-2-clause
bmatsuo/gonew
templates/templates.go
2821
// Copyright 2012, Bryan Matsuo. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The templating system for gonew (v2). package templates /* Filename: templates.go * Author: Bryan Matsuo <bryan.matsuo [at] gmail.com> * Created...
bsd-2-clause
PopCap/GameIdea
Engine/Source/Programs/IOS/DeploymentServer/Properties/AssemblyInfo.cs
263
/** * Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. */ using System.Reflection; [assembly: AssemblyTitle("DeploymentServer")] [assembly: AssemblyDescription("Deploys packaged applications to iOS devices")] [assembly: AssemblyConfiguration("")]
bsd-2-clause
mfikes/homebrew-core
Formula/stella.rb
1607
class Stella < Formula desc "Atari 2600 VCS emulator" homepage "https://stella-emu.github.io/" url "https://github.com/stella-emu/stella/releases/download/6.0.2/stella-6.0.2-src.tar.xz" sha256 "bcbd82294f97d00457fdb727e9b08ff73b685dc7f77704cea1eceb58d8967387" head "https://github.com/stella-emu/stella.git" ...
bsd-2-clause
ChrisRx/cpkt
cpkt/protocols/ip.py
3821
from .. import Packet, types, Field IP_PROTO_IP = 0 IP_PROTO_TCP = 6 IP_PROTO_UDP = 17 IP_PROTO_HOPOPTS = 0 IP_PROTO_ROUTING = 43 IP_PROTO_FRAGMENT = 44 IP_PROTO_AH = 51 IP_PROTO_ESP = 50 IP_PROTO_DSTOPTS = 60 class IP(Packet): v_hl = Field(types.UnsignedChar...
bsd-2-clause
adamaveray/blight
blight/src/Interfaces/Models/Author.php
1340
<?php namespace Blight\Interfaces\Models; interface Author { /** * @param \Blight\Interfaces\Blog $blog * @param array $data * * $data = array( * 'name' => '', // Required * 'email' => '', * 'url' => '' * ) * * @throws \InvalidArgumentException The data is missing the name */ public ...
bsd-2-clause
ProductLayer/ProductLayer-SDK-for-Android
ply-android-common/src/main/java/com/productlayer/android/common/handler/HasPLYAndroidHolder.java
1626
/* * Copyright (c) 2015, ProductLayer GmbH All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, this * list of condit...
bsd-2-clause
eslint/espree
tests/fixtures/ecma-version/6/regexUFlag/regex-u-extended-escape.result.js
5116
import conditionalRegex from "../../../../lib/conditional-regex-value.js"; export default { "type": "Program", "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 41 } }, "range": [ 0, ...
bsd-2-clause
ToQoz/goimps
importable_test.go
5571
package main import ( "bytes" "go/build" "os" "path/filepath" "runtime" "strings" "testing" ) func TestisBuildable(t *testing.T) { var bc string var o string var a string // --- Should match --- o = "darwin" a = "arm64" bc = "cgo" if !isBuildable(o, a, bc) { t.Errorf("%s should match to GOOS:%s GOA...
bsd-2-clause
malob/homebrew-cask
Casks/thetimemachinemechanic.rb
1215
cask "thetimemachinemechanic" do version "1.19,2021.09" sha256 "aa41043dd8bff576c27173859ed55766fad947d17f28938f10aa8fc764cfb16c" url "https://eclecticlightdotcom.files.wordpress.com/#{version.csv.second.major}/#{version.csv.second.minor}/t2m2#{version.csv.first.no_dots}.zip", verified: "eclecticlightdotco...
bsd-2-clause
dmilios/U-check
learningFromFormulae/src/priors/GaussianPrior.java
514
package priors; public final class GaussianPrior extends Prior { final private double mu; final private double s2; /** Normal distribution with mean 'mu' and variance 's2' */ public GaussianPrior(double mu, double s2) { super(); this.mu = mu; this.s2 = s2; } @Override public double logProbability(final...
bsd-2-clause
btccom/copernicus
msg/AddressMessage.go
2863
package msg import ( "fmt" "github.com/btccom/copernicus/network" "github.com/btccom/copernicus/protocol" "github.com/btccom/copernicus/utils" "github.com/pkg/errors" "io" ) const ( MaxAddressesCount = 1024 MaxVarIntPayload = 9 MaxUserAgentLen = 256 ) type AddressMessage struct { Message AddressList []...
bsd-2-clause
ingydotnet/cdent-py
cdent/emitter/coffee.py
816
"""\ CoffeeScript code emitter for C'Dent """ from __future__ import absolute_import from cdent.emitter import Emitter as Base class Emitter(Base): LANGUAGE_ID = 'coffee' BLOCK_COMMENT_PREFIX = '' def emit_includecdent(self, includecdent): self.writeln('use CDent::Run;') def emit_class(sel...
bsd-2-clause
manslogic/first
src/main/java/com/ths/first/gzip/GZipServletOutputStream.java
1293
package com.ths.first.gzip; import java.io.IOException; import java.io.OutputStream; import java.util.zip.GZIPOutputStream; import javax.servlet.ServletOutputStream; import javax.servlet.WriteListener; public class GZipServletOutputStream extends ServletOutputStream { private GZIPOutputStream gzipOutputStream =...
bsd-2-clause
fraxachun/koala-framework
tests/Kwc/News/PagesModel.php
475
<?php class Kwc_News_PagesModel extends Kwc_Root_Category_GeneratorModel { public function __construct() { $config['proxyModel'] = new Kwf_Model_FnF(array( 'data' => array( array('id'=>2100, 'pos'=>1, 'visible'=>true, 'name'=>'NewsBar', 'filename' => 'newsbar1', ...
bsd-2-clause
Pushjet/Pushjet-Android
gradle/wrapper/dists/gradle-1.12-all/4ff8jj5a73a7zgj5nnzv1ubq0/gradle-1.12/src/language-base/org/gradle/language/base/internal/BinaryNamingSchemeBuilder.java
942
/* * Copyright 2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
bsd-2-clause
khchine5/book
lino_book/projects/crl/fixtures/hs2lino.py
11938
# -*- coding: UTF-8 -*- # Copyright 2011-2013 Luc Saffre # This file is part of the Lino project. # Lino 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 op...
bsd-2-clause
sebastienros/jint
Jint.Tests.Test262/test/annexB/language/eval-code/indirect/global-if-stmt-else-decl-eval-global-block-scoping.js
2006
// This file was procedurally generated from the following sources: // - src/annex-b-fns/eval-global-block-scoping.case // - src/annex-b-fns/eval-global/indirect-if-stmt-else-decl.template /*--- description: A block-scoped binding is created (IfStatement with a declaration in the second statement position in eval code)...
bsd-2-clause
ninjahoahong/homebrew-cask
Casks/yate.rb
417
cask 'yate' do version '3.16.2.1' sha256 '461512039ac4f6b09313e089233c7bc4e74cfec983fb9d28bc816ccee4f74def' url 'https://2manyrobots.com/Updates/Yate/Yate.zip', using: :post appcast 'https://2manyrobots.com/Updates/Yate/appcast.xml', checkpoint: '43c4eba17acc3a5f8bd6150fe7029d6e19fb073b379664b5...
bsd-2-clause
rohitgirdhar-cmu-experimental/caffe-3dnormal_joint_past
tools/test_net_3dnormal_joint_img.cpp
4057
// 输出分割的结果 /*#include <cuda_runtime.h>*/ #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/highgui/highgui_c.h> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/opencv.hpp> /*#include <cv.h> #include <highgui.h> #include <cxcore.h>*/ #include <cstring> #include <cstdl...
bsd-2-clause
r12f/PSPlus
PSPlus.Windows/Interop/Kernel32/Kernel32APIs.cs
739
using System; using System.Runtime.InteropServices; namespace PSPlus.Windows.Interop.Kernel32 { public static unsafe class Kernel32APIs { [DllImport("kernel32.dll", SetLastError = true, CallingConvention = CallingConvention.Winapi)] [return: MarshalAs(UnmanagedType.Bool)] public static...
bsd-2-clause
Sparkier/inviwo
modules/opencl/src/buffer/bufferclbase.cpp
1839
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2014-2019 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
bsd-2-clause
akehrer/Motome
Motome/config.py
2330
# Import the future from __future__ import unicode_literals VERSION = '0.2.3' # Import standard library modules import logging import os import sys # Import Qt modules from PySide.QtGui import QColor PLATFORM = sys.platform LOG_LEVEL = logging.DEBUG ################################################### # Moto...
bsd-2-clause
csuft/CnBlogsClient
Network/XmlParser.cpp
4167
#include "XmlParser.h" XmlParser::XmlParser(void) { // nothing to do } XmlParser::~XmlParser(void) { // nothing to do } /* * 1. __EVENTTARGET * 2. __EVENTARGUMENT * 3. __VIEWSTATE * 4. __EVENTVALIDATION * 模拟登陆时需要上述四个字段构造URL,因此在这里解析出来并返回 */ map<string, string> XmlParser::getLoginParams(const char* fileNam...
bsd-2-clause
dmather/comp-5590
Our Project/geneticV1/geneticV1_opencl.cpp
21985
// Genetic Algorithm Draft 1 // using // Core Wars Draft 3 // December 2014 // Charley Hepler // Changes from Core Wars Draft 3 // Added functions: // clear_cw // load_cw // run_cw -- added a parameter just 'cause I was curious about output // ...
bsd-2-clause
paxswill/evesrp
src/evesrp/views/divisions.py
14237
from __future__ import absolute_import from flask import url_for, render_template, redirect, abort, flash, request,\ Blueprint, current_app from flask_babel import gettext, lazy_gettext from flask_login import login_required, fresh_login_required, current_user from flask_wtf import Form import six from six.move...
bsd-2-clause
wycats/protobuf
src/protobuf/lib.rs
476
#[link(name = "protobuf", vers = "0.1.0")]; #[crate_type = "lib"]; #[feature(globs)]; #[feature(managed_boxes)]; #[desc = "protobuf implementation for rust"]; #[license = "BSD"]; #[author = "Stepan Koltsov"]; pub use core::*; mod core; pub mod descriptor; pub mod codegen; pub mod rt; mod misc; mod zigzag; mod hex; ...
bsd-2-clause
Linuxbrew/homebrew-core
Formula/fastme.rb
1590
class Fastme < Formula desc "Accurate and fast distance-based phylogeny inference program" homepage "http://www.atgc-montpellier.fr/fastme/" url "https://gite.lirmm.fr/atgc/FastME/raw/v2.1.6.1/tarball/fastme-2.1.6.1.tar.gz" sha256 "ac05853bc246ccb3d88b8bc075709a82cfe096331b0f4682b639f37df2b30974" revision OS....
bsd-2-clause
dreamsxin/ultimatepp
uppsrc/Geom/linsolv.cpp
2779
#include "Geom.h" NAMESPACE_UPP LinearSolver::LinearSolver(int count, double tolerance) : rows(count) , col1(count + 1) , tolerance(tolerance) { ASSERT(tolerance >= 0); matrix.SetCount(count * (count + 1), 0); left_rows.SetCount(rows); left_cols.SetCount(rows); for(int i = 0; i < rows; i++) left_rows[i] = left...
bsd-2-clause
Linuxbrew/homebrew-core
Formula/hfstospell.rb
1573
class Hfstospell < Formula desc "Helsinki Finite-State Technology ospell" homepage "https://hfst.github.io/" url "https://github.com/hfst/hfst-ospell/releases/download/v0.5.2/hfst-ospell-0.5.2.tar.bz2" sha256 "ab9ccf3c2165c0efd8dd514e0bf9116e86a8a079d712c0ed6c2fabf0052e9aa4" license "Apache-2.0" revision 2 ...
bsd-2-clause
mDibyo/berkeley-scheduler
client/ts/angular/timePicker.directive.ts
2315
import angular = require('angular'); import BaseCtrl = require('./_base.controller'); import Time = require('../models/time'); import SchedulingOptionsService from "./schedulingOptions.service"; interface timePickerDirectiveScope extends angular.IScope { applyClass?: string; model: Time; label?: string; timeO...
bsd-2-clause
dmurph/protobee
core-tests/src/main/java/org/protobee/compatability/ProtocolModuleFilterTests.java
4443
package org.protobee.compatability; import static org.junit.Assert.assertEquals; import static org.mockito.Mockito.mock; import java.util.Map; import java.util.Set; import org.junit.Test; import org.protobee.compatability.CompatabilityHeader; import org.protobee.compatability.Headers; import org.protobee....
bsd-2-clause
tidepool-org/platform
data/types/dosingdecision/test/insulin_on_board.go
888
package test import ( dataTypesDosingDecision "github.com/tidepool-org/platform/data/types/dosingdecision" "github.com/tidepool-org/platform/pointer" "github.com/tidepool-org/platform/test" ) func RandomInsulinOnBoard() *dataTypesDosingDecision.InsulinOnBoard { datum := dataTypesDosingDecision.NewInsulinOnBoard()...
bsd-2-clause
ericmorand/twing
test/tests/integration/fixtures/tags/use/inheritance.ts
824
import TestBase from "../../../TestBase"; export default class extends TestBase { getDescription() { return '"use" tag'; } getTemplates() { return { 'ancestor.twig': ` {% block container %} <div class="container">{{ block('sub_container') }}</div> {% endblock %} {% block s...
bsd-2-clause
stelfrich/imagej-ops
src/test/java/net/imagej/ops/logic/AndConditionTest.java
2589
/* * #%L * ImageJ software for multidimensional image processing and analysis. * %% * Copyright (C) 2014 - 2016 Board of Regents of the University of * Wisconsin-Madison, University of Konstanz and Brian Northan. * %% * Redistribution and use in source and binary forms, with or without * modification, are permi...
bsd-2-clause
bobmagicii/atlantis
core/Atlantis/Struct/PopularPost.php
297
<?php namespace Atlantis\Struct; use \Atlantis as Atlantis; class PopularPost { public Atlantis\Prototype\BlogPost $Post; public int $Views = 0; public function __Construct(Atlantis\Prototype\BlogPost $Post, Int $Views) { $this->Post = $Post; $this->Views = $Views; return; } }
bsd-2-clause
Norad-Eduapp4syria/Norad-Eduapp4syria
finalApprovedVersion/Antura/EA4S_Antura_U3D/Assets/_games/_common/_scripts/UIGadgets/RadialGadget.cs
1833
// Author: Daniele Giardini - http://www.demigiant.com // Created: 2016/11/09 using DG.Tweening; using UnityEngine; using UnityEngine.UI; namespace EA4S { public class RadialGadget : MonoBehaviour { public Image Radial; public bool IsPulsing { get; private set; } Tween pulseTween; ...
bsd-2-clause
zhester/hzpy
modules/dbschema.py
7294
#!/usr/bin/env python ############################################################################## # # dbschema.py # # Abstracts representation of a database's structure. Allows modules to # define entire schemas in a compact representation, and then build the # appropriate queries to create, synchronize, backup, an...
bsd-2-clause
Submanifold/psalm
SubdivisionAlgorithms/DooSabin.cpp
13863
/*! * @file DooSabin.cpp * @brief Implementation of Doo and Sabin's subdivision scheme */ #include "DooSabin.h" namespace psalm { /*! * Sets default attributes for the Doo-Sabin algorithm. */ DooSabin::DooSabin() { weight_function = weights_doo_sabin; } /*! * Sets weights for the Doo-Sabin scheme. * * @param new_...
bsd-2-clause
rogerapras/laravel-repository
src/Torann/LaravelRepository/AbstractValidator.php
2136
<?php namespace Torann\LaravelRepository; use Illuminate\Validation\Factory; abstract class AbstractValidator { /** * The Validator instance * * @var \Illuminate\Validation\Factory */ protected $validator; /** * Inject the Validator instance * * @param \...
bsd-2-clause
rsling/cow
src/de/BerkeleyTopoCOW/edu/berkeley/nlp/ling/StateSet.java
6443
package edu.berkeley.nlp.ling; import java.text.NumberFormat; import edu.berkeley.nlp.math.DoubleArrays; import edu.berkeley.nlp.util.Numberer; import edu.berkeley.nlp.util.ScalingTools; /** * Represent parsetrees, with each node consisting of a label and a list of children. * The score tables are not al...
bsd-2-clause
insionng/yougam
libraries/pingcap/tidb/optimizer/typeinferer_test.go
8207
// Copyright 2015 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
bsd-2-clause
jslee02/conan-dart
console_bridge/0.2.7/conanfile.py
1799
from conans import ConanFile, CMake from conans.tools import download, unzip import os class ConsoleBridgeConan(ConanFile): name = "console_bridge" version = "0.2.7" settings = "os", "compiler", "build_type", "arch" options = {"shared": [True, False]} default_options = "shared=True" exports = "...
bsd-2-clause
handroll/handroll
handroll/composers/atom.py
3486
# Copyright (c) 2017, Matt Layman import io import json import os from werkzeug.contrib.atom import AtomFeed from werkzeug.contrib.atom import FeedEntry from handroll import date, logger from handroll.composers import Composer from handroll.exceptions import AbortError from handroll.i18n import _ class AtomCompose...
bsd-2-clause
mirumee/google-measurement-protocol
tests/test_event.py
666
from prices import Money, TaxedMoney from google_measurement_protocol import event def test_required_params(): generator = event('category', 'action') assert list(generator) == [{'t': 'event', 'ec': 'category', 'ea': 'action'}] def test_optional_params(): generator = event('category', 'action', label='...
bsd-2-clause
shodimaggio/SaivDr
appendix/torch_nsolt/nsoltLayerExceptions.py
819
class InvalidDirection(Exception): def __init__(self,msg): super().__init__(self,msg) class InvalidTargetChannels(Exception): def __init__(self,msg): super().__init__(self,msg) class InvalidMode(Exception): def __init__(self,msg): super().__init__(self,msg) class InvalidMus(Exc...
bsd-2-clause
anushreejangid/csmpe-main
csmpe/core_plugins/csm_install_operations/exr/commit.py
5046
# ============================================================================= # # Copyright (c) 2016, Cisco Systems # 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 ...
bsd-2-clause
chop-dbhi/django-dicom-models
dicom_models/core/models/data/radiology.py
2178
# Copyright (c) 2012, The Children's Hospital of Philadelphia # 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 l...
bsd-2-clause
Arez0101/That-s-A-Big-Furnace
src/main/java/net/arez0101/tabf/init/ItemInit.java
1973
package net.arez0101.tabf.init; import net.arez0101.tabf.TABF; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.fml.common.registry.GameRegist...
bsd-2-clause
safarijv/sbo-sphinx
sbo_sphinx/conf.py
14039
# -*- coding: utf-8 -*- # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. """ Common Sphinx configuration for most Safari projects. To use in a project-specific ``conf.py...
bsd-2-clause
zhester/hzphp
DOM/DOMRenderer.php
21310
<?php /***************************************************************************** DOM Document Rendering ====================== Provides convenience methods for working with documents that need to be sent to the client. The intent is to allow a server-side templating mechanism to build documents from empty HTML/X...
bsd-2-clause
marchpig/Dexter
project/dexter-core/src/java/com/samsung/sec/dexter/core/util/EmptyDexterClient.java
6488
/** * Copyright (c) 2016 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 copyright notice, this * li...
bsd-2-clause
andrejbauer/fakebook
fakebook.py
13411
#!/usr/bin/env python3 import sqlite3 import bottle import hashlib # računanje MD5 kriptografski hash za gesla from datetime import datetime ###################################################################### # Konfiguracija # Vklopi debug, da se bodo predloge same osvežile in da bomo dobivali # lepa sporočila o ...
bsd-2-clause
hughperkins/gpu-experiments
gpuexperiments/volkov_mm.py
8363
# Note that this will erase your nvidia cache, ~/.nv/ComputeCache This may or may not be an undesirable side-effect for you. For example, cutorch will take 1-2 minutes or so to start after this cache has been emptied. """ This software contains source code provided by NVIDIA Corporation. """ from __future__ import ...
bsd-2-clause
fluffyfreak/bgfx
3rdparty/spirv-tools/source/opt/local_single_block_elim_pass.cpp
9316
// Copyright (c) 2017 The Khronos Group Inc. // Copyright (c) 2017 Valve Corporation // Copyright (c) 2017 LunarG Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www...
bsd-2-clause
littledan/Factor
vm/math.cpp
12428
#include "master.hpp" namespace factor { void factor_vm::primitive_bignum_to_fixnum() { ctx->replace(tag_fixnum(bignum_to_fixnum(untag<bignum>(ctx->peek())))); } void factor_vm::primitive_float_to_fixnum() { ctx->replace(tag_fixnum(float_to_fixnum(ctx->peek()))); } /* Division can only overflow when we are dividi...
bsd-2-clause
mmoening/agg-sharp
examples/GCodeVisualizer/Renderer/RenderFeatures/RenderFeatureBase.cs
7833
/* 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 followi...
bsd-2-clause
ahbeng/homebrew-fonts
Casks/font-cherry-swash.rb
355
class FontCherrySwash < Cask url 'https://github.com/w0ng/googlefontdirectory/trunk/fonts/cherryswash', :using => :svn, :revision => '50', :trust_cert => true homepage 'http://www.google.com/fonts/specimen/Cherry%20Swash' version '1.001' sha256 :no_check font 'CherrySwash-Bold.ttf' ...
bsd-2-clause
ReflectionBrowser/ReflectionBrowser
lib/RBExtensionsTemplateTable.php
783
<?php final class RBExtensionsTemplateTable extends RBDataTemplateTable { use RBDataTemplateTableListSorter; protected function sourceData() { return get_loaded_extensions(); } protected function emptyTableText() { return 'no extensions'; } protected function rowTupleForData($mixKey, $mixValue, ...
bsd-2-clause
kkuhrman/AblePolecat
core/AccessControl/Agent.php
1322
<?php /** * @file polecat/core/AccessControl/Agent.php * @brief The access control 'subject'; for example, a user. * * Intended to follow interface specified by W3C but does not provide public access to * properties (get/set methods provided). * * @see http://www.w3.org/TR/url/#url * * @author Kar...
bsd-2-clause
wolffaxn/homebrew-core
Formula/libxml2.rb
3117
class Libxml2 < Formula desc "GNOME XML library" homepage "http://xmlsoft.org/" url "http://xmlsoft.org/sources/libxml2-2.9.9.tar.gz" mirror "https://ftp.osuosl.org/pub/blfs/conglomeration/libxml2/libxml2-2.9.9.tar.gz" sha256 "94fb70890143e3c6549f265cee93ec064c80a84c42ad0f23e85ee1fd6540a871" revision 2 b...
bsd-2-clause
alerque/homebrew-fonts
Casks/font-manrope.rb
294
cask "font-manrope" do version :latest sha256 :no_check url "https://github.com/google/fonts/raw/master/ofl/manrope/Manrope%5Bwght%5D.ttf", verified: "github.com/google/fonts/" name "Manrope" homepage "https://fonts.google.com/specimen/Manrope" font "Manrope[wght].ttf" end
bsd-2-clause