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
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace NuGet.ShimV3 { internal class ShimWebResponse : WebResponse { private Stream _stream; private Uri _uri; private string _conte...
pratikkagda/nuget
src/ShimV3/ShimWebResponse.cs
C#
apache-2.0
1,832
<?php /** * Copyright (c) 2014 ScientiaMobile, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * *...
ahoken/phptest
src/zend_test/library/wurfl-php/WURFL/Handlers/PhilipsHandler.php
PHP
apache-2.0
1,093
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
kkirsche/elasticsearch
src/main/java/org/elasticsearch/search/lookup/DocLookup.java
Java
apache-2.0
4,815
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // 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.apa...
devigned/azure-powershell
src/Common/Commands.Common.Authentication/Authentication/ManagedServiceTokenInfo.cs
C#
apache-2.0
1,848
# Copyright (c) 2021 PaddlePaddle 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 ap...
luotao1/Paddle
python/paddle/fluid/tests/unittests/test_backward_infer_var_data_type_shape.py
Python
apache-2.0
1,432
// HOM.cpp: implementation of the CHOM class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "HOM.h" #include "occRasterizer.h" #include "../GameFont.h" float psOSSR = .001f; void __stdcall CHOM::MT_RENDER() { MT.Enter (); if (MT_frame_rendered!=Device....
OLR-xray/XRay-NEW
XRay/xr_3da/xrRender_R2/HOM.cpp
C++
apache-2.0
11,180
<?php /** * This file is part of the OpenPNE package. * (c) OpenPNE Project (http://www.openpne.jp/) * * For the full copyright and license information, please view the LICENSE * file and the NOTICE file that were distributed with this source code. */ /** * opUtilHelper provides basic utility helper functions....
tejima/OP3PKG
lib/helper/opUtilHelper.php
PHP
apache-2.0
27,373
// Copyright 2010 Google 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 in writ...
rcari/google-api-cpp-client
service_apis/youtube/google/youtube_api/channel_section_localization.cc
C++
apache-2.0
1,934
// Copyright (C) 2010 The Android Open Source Project // // 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 ...
MerritCR/merrit
gerrit-server/src/main/java/com/google/gerrit/server/query/change/RegexRefPredicate.java
Java
apache-2.0
1,627
// Python Tools for Visual Studio // Copyright(c) Microsoft Corporation // 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 //...
DinoV/PTVS
Python/Product/PythonTools/PythonConstants.cs
C#
apache-2.0
7,462
/* * Copyright (C) 2016 Jared Rummler <jared.rummler@gmail.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 require...
jrummyapps/BusyBox
app/src/free/java/com/jrummy/busybox/installer/activities/MainActivity.java
Java
apache-2.0
14,942
/* Copyright 2016 Fixstars Corporation 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, softwa...
fixstars-jp/libSGM
sample/reprojection/stereosgm_reprojection.cpp
C++
apache-2.0
8,104
<?php /* * Copyright 2014 Google 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 t...
googleapis/google-api-php-client-services
src/CloudDeploy/SerialPipeline.php
PHP
apache-2.0
1,176
package org.opengis.cite.iso19139.util; import java.io.File; import java.io.IOException; import java.net.URI; import java.net.URL; import java.util.HashSet; import java.util.Set; import java.util.logging.Level; import javax.xml.XMLConstants; import javax.xml.namespace.QName; import javax.xml.stream.XMLEventReader; im...
opengeospatial/ets-19139
src/main/java/org/opengis/cite/iso19139/util/ValidationUtils.java
Java
apache-2.0
5,493
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using System.Collections.Specialized; namespace System.Web.WebPages { internal class UrlRewriterHelper { // internal for tests internal const string UrlWasRewri...
Terminator-Aaron/Katana
aspnetwebsrc/System.Web.WebPages/Utils/UrlRewriterHelper.cs
C#
apache-2.0
2,946
/* * Copyright 2009 Mike Cumings * * 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...
igniterealtime/jbosh
src/main/java/org/igniterealtime/jbosh/BodyParserXmlPull.java
Java
apache-2.0
6,391
package org.carlspring.strongbox.storage.repository; /** * @author mtodorov */ public enum RepositoryLayoutEnum { MAVEN_1("Maven 1"), // Unsupported MAVEN_2("Maven 2"), IVY("Ivy"), // Unsupported RPM("RPM"), // Unsupported YUM("YUM"), // Unsupported NUGET_HIE...
AlexOreshkevich/strongbox
strongbox-storage/strongbox-storage-api/src/main/java/org/carlspring/strongbox/storage/repository/RepositoryLayoutEnum.java
Java
apache-2.0
627
var MSG = { title: "Codi", blocks: "Blocs", linkTooltip: "Desa i enllaça als blocs.", runTooltip: "Executa el programa definit pels blocs de l'àrea de treball.", badCode: "Error de programa:\n %1", timeout: "S'ha superat el nombre màxim d'iteracions d'execució.", trashTooltip: "Descarta tots els blocs.", ...
rachel-fenichel/blockly
demos/code/msg/ca.js
JavaScript
apache-2.0
1,052
/* * Copyright 2015 herd contributors * * 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 ...
kusid/herd
herd-code/herd-core/src/test/java/org/finra/herd/core/HerdFileUtilsTest.java
Java
apache-2.0
6,570
/* * (c) Copyright 2019 Palantir Technologies Inc. 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 ...
palantir/atlasdb
atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/lock/LockResource.java
Java
apache-2.0
1,330
/* $Id: RobotsManager.java 988245 2010-08-23 18:39:35Z kwright $ */ /** * 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 u...
buddhikaDilhan/GSoC_buddhika
connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/RobotsManager.java
Java
apache-2.0
30,130
/** * Copyright (C) 2012 Vaadin Ltd * * This program is available under Commercial Vaadin Add-On License 3.0 * (CVALv3). * * See the file licensing.txt distributed with this software for more * information about licensing. * * You should have received a copy of the license along with this program. * If not, s...
bpupadhyaya/dashboard-demo-1
src/main/java/com/vaadin/testbench/elements/LegacyWindowElement.java
Java
apache-2.0
557
package sql_connect_database; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.Date; import manage_incomeoutlay.IncomeOutlay; import manage_incomeoutlay.NomalTypeOfUser; import manage_incomeoutlay.TypeOfUse; im...
CE-KMITL-CLOUD-2014/Money-Movement
ROOT/src/sql_connect_database/SQL_SelectIncomeOutlay.java
Java
artistic-2.0
6,249
i = 40 - 3 for j in range(3, 12, 2): print(j) i = i + 1 print(i)
almarklein/wasmfun
simplepy/example1.py
Python
bsd-2-clause
74
class Tag < Formula desc "Manipulate and query tags on macOS files" homepage "https://github.com/jdberry/tag/" url "https://github.com/jdberry/tag/archive/v0.10.tar.gz" sha256 "5ab057d3e3f0dbb5c3be3970ffd90f69af4cb6201c18c1cbaa23ef367e5b071e" license "MIT" revision 1 head "https://github.com/jdberry/tag.g...
mbcoguno/homebrew-core
Formula/tag.rb
Ruby
bsd-2-clause
1,407
// Copyright ©2005, 2006 Freescale Semiconductor, Inc. // Please see the License for the specific language governing rights and // limitations under the License. // =========================================================================== // MEModelMenuBar.cpp © 1996-97 Metrowerks Inc. All rights reserved. // =====...
mctully/tntbasic
third_party/PowerPlant/constructor/Constructor_Pro/Constructor/Source files/CO- Core/Editors/Menus/MEModelMenuBar.cpp
C++
bsd-2-clause
4,013
#include "master.hpp" namespace factor { code_heap::code_heap(cell size) { if(size > ((u64)1 << (sizeof(cell) * 8 - 6))) fatal_error("Heap too large",size); seg = new segment(align_page(size),true); if(!seg) fatal_error("Out of memory in code_heap constructor",size); cell start = seg->start + seh_area_size; al...
cataska/factor
vm/code_heap.cpp
C++
bsd-2-clause
5,956
# Copyright 2010-2014 Wincent Colaiuta. 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...
nendre/command-t
spec/command-t/scanner/file_scanner/ruby_file_scanner_spec.rb
Ruby
bsd-2-clause
2,934
<?php class MockFrapi_Controller_Api extends Frapi_Controller_Api { public function __construct() {} }
rogeriopradoj/frapi-without-vhost
tests/mock/MockFrapi/Controller/Api.php
PHP
bsd-2-clause
107
#include "catch.hpp" #include "variant.hpp" #include "variant_io.hpp" #include <string> struct some_visitor { int var_; some_visitor(int init) : var_(init) {} int operator()(int val) const { return var_ + val; } int operator()(double val) const { return var_ + ...
beemogmbh/osrm-backend
third_party/variant/test/t/unary_visitor.cpp
C++
bsd-2-clause
3,628
using LightBDD.Framework; using LightBDD.Framework.Extensibility; namespace LightBDD.Fixie2 { /// <summary> /// Base class for feature tests with Fixie framework. /// It offers <see cref="Runner"/> property allowing to execute scenarios belonging to the feature class. /// </summary> [FeatureFixtur...
Suremaker/LightBDD
src/LightBDD.Fixie2/FeatureFixture.cs
C#
bsd-2-clause
841
/* 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...
kc284/xenadmin
XenModel/Actions/DelegatedAsyncAction.cs
C#
bsd-2-clause
2,997
package org.mozartoz.truffle.nodes.builtins; import static org.mozartoz.truffle.nodes.builtins.Builtin.ALL; import org.mozartoz.truffle.nodes.OzNode; import org.mozartoz.truffle.runtime.OzVar; import org.mozartoz.truffle.runtime.PropertyRegistry; import com.oracle.truffle.api.dsl.GenerateNodeFactory; import com.orac...
eregon/mozart-graal
vm/src/org/mozartoz/truffle/nodes/builtins/PropertyBuiltins.java
Java
bsd-2-clause
2,012
# doc-export: Icons2 """ This example demonstrates the use of icons in Flexx. When run as a script, Icons1 is used, passing icon and title to the application. In the examples section of the docs, Icons2 is used, which sets icon and title in the init(). Click "open in new tab" to see the effect. """ import os imp...
zoofIO/flexx
flexxamples/howtos/icons.py
Python
bsd-2-clause
1,647
#!/usr/bin/env python # -*- coding: utf-8 -*- from apiclient import errors from base import GDBase import logging logger = logging.getLogger() logger.setLevel(logging.ERROR) from pprint import pprint from auth import GDAuth permission_resource_properties = { "role": ["owner", "reader", "writer"], "type": ["...
tienfuc/gdcmdtools
gdcmdtools/perm.py
Python
bsd-2-clause
3,399
(function($) { $.fn.extend({ 'events': function() { return this.filter('.event'); }, 'highlight': function() { return this.events() .removeClass('dimmed') .addClass('highlighted'); }, 'dim': function() { retu...
leriomaggio/pycon_site
p3/static/p7/javascripts/schedule.js
JavaScript
bsd-2-clause
28,339
/* 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,...
xenserver/xenadmin
XenAdmin/Dialogs/Network/CertificateChangedDialog.cs
C#
bsd-2-clause
3,087
/* * Alert Message * (C) 2004-2006,2011 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/tls_alert.h> #include <botan/exceptn.h> namespace Botan { namespace TLS { Alert::Alert(const secure_vector<uint8_t>& buf) { if(buf.size() != 2) throw Decoding_Er...
Rohde-Schwarz-Cybersecurity/botan
src/lib/tls/tls_alert.cpp
C++
bsd-2-clause
3,464
package com.atlassian.jira.plugins.dvcs.webwork; import com.atlassian.jira.compatibility.util.ApplicationUserUtil; import com.atlassian.jira.issue.Issue; import com.atlassian.jira.user.ApplicationUser; import com.atlassian.plugin.PluginParseException; import com.atlassian.plugin.web.Condition; import java.uti...
markphip/testing
jira-dvcs-connector-plugin/src/main/java/com/atlassian/jira/plugins/dvcs/webwork/DvcsPanelCondition.java
Java
bsd-2-clause
1,011
from functools import partial from collections import deque from llvmlite import ir from numba.core.datamodel.registry import register_default from numba.core import types, cgutils from numba.np import numpy_support class DataModel(object): """ DataModel describe how a FE type is represented in the LLVM IR ...
IntelLabs/numba
numba/core/datamodel/models.py
Python
bsd-2-clause
44,245
/** * Close Changeset * http://wiki.openstreetmap.org/wiki/API_v0.6#Close:_PUT_.2Fapi.2F0.6.2Fchangeset.2F.23id.2Fclose */ module.exports = function (req, res, api, params, next) { var parts = params.id.split(':') var version = parts.length === 2 ? parts[1] : null api.closeChangeset(parts[0], version, functio...
digidem/osm-p2p-server
routes/changeset_close.js
JavaScript
bsd-2-clause
590
/* 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...
kc284/xenadmin
XenAdmin/Diagnostics/Checks/DiskSpaceForBatchUpdatesCheck.cs
C#
bsd-2-clause
5,462
using System; using System.Linq; using LightBDD.Core.Metadata; using LightBDD.Core.Notification; using LightBDD.Core.Results; namespace LightBDD.Framework.Notification.Implementation { internal class ParallelProgressNotifier : IScenarioProgressNotifier, IFeatureProgressNotifier { private readonly Progr...
Suremaker/LightBDD
src/LightBDD.Framework/Notification/Implementation/ParallelProgressNotifier.cs
C#
bsd-2-clause
2,532
/* json2.js 2013-05-26 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. See http://www.JSON.org/js.html This code should be minified before deployment. See http://javascript.crockford.com/jsmin.html USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM S...
chop-dbhi/cilantro
src/js/json2.js
JavaScript
bsd-2-clause
17,548
/*! * OS.js - JavaScript Operating System * * Copyright (c) 2011-2015, Anders Evenrud <andersevenrud@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 o...
nelug/OS.js-v2
src/javascript/dialogs/font.js
JavaScript
bsd-2-clause
7,099
// Copyright ©2019 The Gonum Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package testblas import ( "fmt" "math/cmplx" "testing" "golang.org/x/exp/rand" "gonum.org/v1/gonum/blas" ) type Zhemmer interface { Zhemm(side bla...
gonum/gonum
blas/testblas/zhemm.go
GO
bsd-3-clause
4,172
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "vm/v8_snapshot_writer.h" #include "vm/dart.h" #include "vm/os.h" namespace dart { const V8...
dart-lang/sdk
runtime/vm/v8_snapshot_writer.cc
C++
bsd-3-clause
14,028
/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ package net.sourceforge.pmd.cpd; import net.sourceforge.pmd.PMD; import java.util.Comparator; import java.util.Iterator; import java.util.Set; import java.util.TreeSet; public class Match implements Comparable<Match> { priva...
pscadiz/pmd-4.2.6-gds
src/net/sourceforge/pmd/cpd/Match.java
Java
bsd-3-clause
3,478
require 'spec_helper' describe Spree::Promotion::Rules::OneUsePerUser do let(:rule) { described_class.new } describe '#eligible?(order)' do subject { rule.eligible?(order) } let(:order) { double Spree::Order, user: user } let(:user) { double Spree::LegacyUser } let(:promotion) { stub_model Spree::...
Mayvenn/spree
core/spec/models/spree/promotion/rules/one_use_per_user_spec.rb
Ruby
bsd-3-clause
862
<?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...
Techlightenment/zf2
library/Zend/Pdf/Action/Trans.php
PHP
bsd-3-clause
1,177
// Copyright 2016 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 "flutter/flow/texture_image.h" #include "flutter/flow/open_gl.h" #include "flutter/glue/trace_event.h" #include "third_party/skia/include/gpu/gl...
mpcomplete/engine
flow/texture_image_gles2.cc
C++
bsd-3-clause
7,038
/* * Tangram * Copyright 2009 Baidu Inc. All rights reserved. */ ///import baidu.array; ///import baidu.array.indexOf; /** * 判断一个数组中是否包含给定元素 * @name baidu.array.contains * @function * @grammar baidu.array.contains(source, obj) * @param {Array} source 需要判断的数组. * @param {Any} obj 要查找的元素. * @return {boolean} 判...
BaiduFE/Tangram-base
src/baidu/array/contains.js
JavaScript
bsd-3-clause
511
/** * Copyright (c) 2014, Regents of the University of California * 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...
ctsidev/SecureWise
wise/src/edu/ucla/wise/admin/XsltViewServlet.java
Java
bsd-3-clause
5,893
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ MAST Utils ========== Miscellaneous functions used throughout the MAST module. """ import numpy as np import requests import json from urllib import parse import astropy.coordinates as coord from ..version import version from ..exceptions import Re...
imbasimba/astroquery
astroquery/mast/utils.py
Python
bsd-3-clause
5,016
# Generated by Django 2.2.5 on 2020-08-03 10:37 import django.core.files.storage from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import uuid class Migration(migrations.Migration): dependencies = [ ('jobs', '0002_dataprovider_attribute_class'), ...
venicegeo/eventkit-cloud
eventkit_cloud/tasks/migrations/0006_auto_20200803_1037.py
Python
bsd-3-clause
3,280
package org.petuum.jbosen.common.msg; public class MsgType { public static final int CLIENT_CONNECT = 0; public static final int SERVER_CONNECT = 1; public static final int ROW_REQUEST = 2; public static final int ROW_REQUEST_REPLY = 3; public static final int SERVER_ROW_REQUEST_REPLY = 4; publ...
codeaudit/jbosen
jbosen/src/main/java/org/petuum/jbosen/common/msg/MsgType.java
Java
bsd-3-clause
973
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. // // --------------------------------------------------------------------------- // // This file was generated by the CEF translato...
hernad/CEF3
libcef_dll/cpptoc/domnode_cpptoc.cc
C++
bsd-3-clause
13,205
require 'spec_helper' describe String do describe '#binary?' do context 'when the content is' do context 'binary' do it 'returns true' do "\ff\ff\ff".binary?.should be_true end end context 'text' do it 'returns false' do 'test'.binary?.should be_fals...
firebitsbr/raptor-io
spec/raptor-io/ruby/string_spec.rb
Ruby
bsd-3-clause
363
<?php declare(strict_types=1); namespace Sabre\CalDAV\Subscriptions; use Sabre\DAV\PropPatch; use Sabre\DAV\Xml\Property\Href; class SubscriptionTest extends \PHPUnit\Framework\TestCase { protected $backend; public function getSub($override = []) { $caldavBackend = new \Sabre\CalDAV\Backend\Moc...
PVince81/sabre-dav
tests/Sabre/CalDAV/Subscriptions/SubscriptionTest.php
PHP
bsd-3-clause
3,610
#ifndef PYTHONIC_BUILTIN_TRUE_HPP #define PYTHONIC_BUILTIN_TRUE_HPP #include "pythonic/include/builtins/True.hpp" #endif
pombredanne/pythran
pythran/pythonic/builtins/True.hpp
C++
bsd-3-clause
123
import numpy as np from numpy import diag, inf from numpy import copy, dot from numpy.linalg import norm class ExceededMaxIterationsError(Exception): def __init__(self, msg, matrix=[], iteration=[], ds=[]): self.msg = msg self.matrix = matrix self.iteration = iteration s...
mikecroucher/nearest_correlation
nearest_correlation.py
Python
bsd-3-clause
4,572
package org.basex.gui.dialog; import static org.basex.core.Text.*; import java.awt.*; import java.awt.event.*; import org.basex.gui.*; import org.basex.gui.GUIConstants.Msg; import org.basex.gui.layout.*; import org.basex.util.*; /** * URL dialog. * * @author BaseX Team 2005-16, BSD License * @author Christian ...
drmacro/basex
basex-core/src/main/java/org/basex/gui/dialog/DialogInstallURL.java
Java
bsd-3-clause
1,896
#!/usr/bin/env python from tools.load import LoadMatrix lm=LoadMatrix() traindat = lm.load_numbers('../data/fm_train_real.dat') testdat = lm.load_numbers('../data/fm_test_real.dat') parameter_list = [[traindat,testdat,1.1],[traindat,testdat,1.2]] def kernel_sparse_gaussian (fm_train_real=traindat,fm_test_real=testdat...
shogun-toolbox/shogun
examples/undocumented/python/kernel_sparse_gaussian.py
Python
bsd-3-clause
824
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
NifTK/MITK
Modules/SceneSerialization/src/mitkGeometryDataSerializer.cpp
C++
bsd-3-clause
1,794
<?php include "util.inc"; $state = isset($_GET['state']) ? $_GET['state'] : "schema"; switch($state) { case "schema": if (isset($_SESSION['schema'])) { unlink($_SESSION['schema']['path']); } $_SESSION = array(); if (isset($_COOKIE[session_name()])) { setcookie(session_name(), '', time()-...
fresskarma/tinyos-1.x
contrib/nucleus/tools/php/nucleus/del.php
PHP
bsd-3-clause
528
/* * Copyright (c) Contributors, http://aurora-sim.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * 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 mus...
NanaYngvarrdottir/Software-Testing
VirtualReality/Framework/DatabaseInterfaces/IGroupsServiceConnector.cs
C#
bsd-3-clause
6,596
# $Id: __init__.py 5618 2008-07-28 08:37:32Z strank $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ This package contains Docutils Writer modules. """ __docformat__ = 'reStructuredText' import os.path import docutils from docutils import languages, C...
spreeker/democracygame
external_apps/docutils-snapshot/docutils/writers/__init__.py
Python
bsd-3-clause
4,258
import numpy as np import paths import pyregion from astropy import coordinates from astropy import units as u from astropy import table from astropy.table import Table,Column import latex_info from latex_info import latexdict, exp_to_tex, format_float tbl = Table.read(paths.tpath('PPV_H2CO_Temperature.ipac'), format=...
adamginsburg/APEX_CMZ_H2CO
analysis/texify_dendro_table.py
Python
bsd-3-clause
3,226
/* * Copyright (c) 2014, Apptentive, Inc. All Rights Reserved. * Please refer to the LICENSE file for the terms and conditions * under which redistribution and use of this file is permitted. */ package com.apptentive.android.sdk.module.messagecenter.view; import android.content.Context; import android.view.View; ...
apptentive/apptentive-trigger-io
forge-workspace/modules/apptentive/inspector/an-inspector/ForgeModule/src/com/apptentive/android/sdk/module/messagecenter/view/MessageAdapter.java
Java
bsd-3-clause
1,371
using System.Collections.Generic; using System.Runtime.Serialization; using Funq; using ServiceStack.Common; using ServiceStack.Common.Web; using ServiceStack.DataAnnotations; using ServiceStack.OrmLite; using ServiceStack.Razor; using ServiceStack.ServiceHost; using ServiceStack.ServiceInterface; using Serv...
meebey/ServiceStack
tests/RazorRockstars.Console.Files/AppHost.cs
C#
bsd-3-clause
4,881
/* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.bgfx; import javax.annotation.*; import java.nio.*; import org.lwjgl.system.*; import static org.lwjgl.system.MemoryUtil.*; /** * GPU info. * * <h3>Layout</h3...
LWJGL-CI/lwjgl3
modules/lwjgl/bgfx/src/generated/java/org/lwjgl/bgfx/BGFXCapsGPU.java
Java
bsd-3-clause
5,587
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build darwin dragonfly freebsd linux netbsd openbsd // DNS client: see RFC 1035. // Has to be linked into package net for Dial. // TODO(rsc): // Check per...
TomHoenderdos/go-sunos
src/pkg/net/dnsclient_unix.go
GO
bsd-3-clause
8,117
<?php return array ( 'Search' => 'Cerca', );
LeonidLyalin/vova
common/humhub/protected/humhub/modules/search/messages/it/base.php
PHP
bsd-3-clause
47
<?php namespace Contract\Service; interface ContractManager { /** * Initiate sebuah kontrak. * * @param unknown $datas */ public function initiateContract($datas); }
zakyalvan/eproc-ext
module/Contract/src/Contract/Service/ContractManager.php
PHP
bsd-3-clause
177
dw.derive.variable = function(x) { var variable = dw.derive.expression(); variable.transform = function(values, table) { var result = table[x].copy(); return result; } return variable; }
uwdata/profiler
wrangler/src/transform/derive/variable.js
JavaScript
bsd-3-clause
197
#!/usr/bin/env ruby # -*- mode: ruby; coding: utf-8-unix -*- require 'test/unit' require 'opencv' require File.expand_path(File.dirname(__FILE__)) + '/helper' include OpenCV # Tests for OpenCV::CvChain class TestCvChain < OpenCVTestCase def test_APPROX_OPTION assert_equal(:approx_simple, CvChain::APPROX_CHAIN_...
ryanfb/ruby-opencv
test/test_cvchain.rb
Ruby
bsd-3-clause
1,989
/* * RandomConditional_test.cpp * * Copyright (c) 2015, Norman Alan Oursland * All rights reserved. */ #include "cognitoware/math/data/Vector.h" #include "cognitoware/math/probability/RandomConditional.h" #include "cognitoware/math/probability/RandomDistribution.h" #include "gtest/gtest.h" using cognitoware::m...
ashfaqfarooqui/robotics
cognitoware/math/probability/RandomConditional_test.cpp
C++
bsd-3-clause
695
package org.usfirst.frc369.Robot2017Code.commands; import org.usfirst.frc369.Robot2017Code.Robot; import edu.wpi.first.wpilibj.command.Command; /** * */ public class highGearShift extends Command { public highGearShift() { // Use requires() here to declare subsystem dependencies // eg. requires...
Krudeboy51/Robot2017Code
src/org/usfirst/frc369/Robot2017Code/commands/highGearShift.java
Java
bsd-3-clause
1,005
<?php /** * Search Work Factory * * PHP version 5 * * Copyright (c) Falvey Library 2017. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * as published by the Free Software Foundation. * * This program is distributed i...
SravanthiVillanova/Learn_Bibliography
src/VuBib/Action/WorkType/SearchOptionFactory.php
PHP
bsd-3-clause
2,231
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
htc2u/react-native
Libraries/Inspector/InspectorUtils.js
JavaScript
bsd-3-clause
1,329
<?php class CestTest extends Codeception\TestCase\Test { /** * @group core */ public function testFilename() { $cest = \Codeception\Util\Stub::make('\Codeception\TestCase\Cest', array( 'getTestClass' => new \Codeception\Util\Locator(), 'getTestMethod' => 'c...
slivas/hoz
vendor/codeception/codeception/tests/unit/Codeception/CestTest.php
PHP
bsd-3-clause
436
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Windows; using System.Windows.Data; using System.Windows.Media; using Nitra.Runtime.Reflection; namespace Nitra.Visualizer { public class ReflectionStructColorConverter : IValue...
JetBrains/Nitra
Nitra.Visualizer.Old/Rendering/ReflectionStructColorConverter.cs
C#
bsd-3-clause
1,303
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Threading.Tasks.Dataflow; using VW; using VW.Serializer; namespace Experimentation { public sta...
eisber/mwt-ds
Experimentation/OfflineTrainer.cs
C#
bsd-3-clause
8,502
#include "signalhandler.h" #include "signaldata.h" #include "signaldescription.h" #include <lcm/lcm-cpp.hpp> SignalHandler::SignalHandler(const SignalDescription* signalDescription, QObject* parent) : LCMSubscriber(parent) { mDescription = *signalDescription; mSignalData = new SignalData(); } SignalHandler::~S...
openhumanoids/signal-scope
src/signal_scope/signalhandler.cpp
C++
bsd-3-clause
1,734
#!/usr/bin/python # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. import idlnode import idlparser import logging.config import sys import unittest class...
dartino/dart-sdk
tools/dom/scripts/idlnode_test.py
Python
bsd-3-clause
14,699
/* Copyright (C) 2005-2011 Fabio Riccardi */ package com.lightcrafts.ui.editor; import com.lightcrafts.app.ComboFrame; import com.lightcrafts.ui.LightZoneSkin; import static com.lightcrafts.ui.editor.Locale.LOCALE; import com.lightcrafts.ui.toolkit.PaneTitle; import javax.swing.*; import javax.swing.event.ListSelect...
MarinnaCole/LightZone
lightcrafts/src/com/lightcrafts/ui/editor/DocUndoHistory.java
Java
bsd-3-clause
5,625
#!/usr/bin/env python """Microbenchmark for function call overhead. This measures simple function calls that are not methods, do not use varargs or kwargs, and do not use tuple unpacking. """ # Python imports #import optparse import time # Local imports import util def foo(a, b, c, d): # 20 calls bar(a, b...
kikocorreoso/brython
www/benchmarks/performance/bm_call_simple.py
Python
bsd-3-clause
3,712
namespace Rhino.DSL { using System; using Boo.Lang.Compiler.Ast; using Module=Boo.Lang.Compiler.Ast.Module; /// <summary> /// Takes all the code that exists in a module's global section and put it in a specificied /// method of a class. Allow easy handling of the Anonymous Base Class pa...
brumschlag/rhino-tools
rhino-dsl/Rhino.DSL/ImplicitBaseClassCompilerStep.cs
C#
bsd-3-clause
2,848
from __future__ import print_function ## ## See COPYING file distributed along with the ncanda-data-integration package ## for the copyright and license terms ## # Mail-related stuff from builtins import str from builtins import object import smtplib import time import json from email.mime.multipart import MIMEMul...
sibis-platform/sibispy
sibis_email.py
Python
bsd-3-clause
9,495
""" ============================= Straight line Hough transform ============================= The Hough transform in its simplest form is a method to detect straight lines. In the following example, we construct an image with a line intersection. We then use the `Hough transform <http://en.wikipedia.org/wiki/Hough_t...
rjeli/scikit-image
doc/examples/edges/plot_line_hough_transform.py
Python
bsd-3-clause
4,764
#pragma once #include <samchon/API.hpp> #include <samchon/protocol/ClientDriver.hpp> #include <samchon/protocol/WebCommunicator.hpp> namespace samchon { namespace protocol { class WebServer; /** * A communicator with remote web-client. * * The {@link WebClientDriver} class is a type of {@link WebCommunicator...
betterwaysystems/packer
cpp/src/samchon/protocol/WebClientDriver.hpp
C++
bsd-3-clause
2,932
class TransferSpreeOrdersSignifydScoreData < ActiveRecord::Migration disable_ddl_transaction! def up Spree::Order.connection.execute(<<-SQL) insert into spree_signifyd_order_scores (order_id, score, created_at, updated_at) select o.id, o.signifyd_score, '#{Time.now.to_s(:db)}', '#{Time.now.to_s(:db...
jordan-brough/solidus_signifyd
db/migrate/20150206193231_transfer_spree_orders_signifyd_score_data.rb
Ruby
bsd-3-clause
624
/* * Copyright (c) 2004-2022, University of Oslo * 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 cond...
dhis2/dhis2-core
dhis-2/dhis-api/src/main/java/org/hisp/dhis/feedback/ErrorCode.java
Java
bsd-3-clause
24,795
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """The spm module provides basic functions for interfacing with matlab and spm to access spm tools. Change directory to provide relative paths for doctests >>> import os >>...
mick-d/nipype
nipype/interfaces/spm/model.py
Python
bsd-3-clause
45,177
/* * Copyright (C) 2010, British Broadcasting Corporation * All Rights Reserved. * * Author: Philip de Nier * * 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...
kierank/bmxlib-bmx
src/essence_parser/VC3EssenceParser.cpp
C++
bsd-3-clause
6,934
// ********************************************************************** // // Copyright (c) 2001 // IONA Technologies, Inc. // Waltham, MA, USA // // All Rights Reserved // // ********************************************************************** #include "JTC/JTC.h" #include <stdlib.h> #include <assert.h> #ifdef ...
wayfinder/Wayfinder-CppCore-v2
cpp/Targets/CommonLib/POSIX/src/JTC/Tests/JTCTestTryLock.cpp
C++
bsd-3-clause
1,940
from django.core.management.base import BaseCommand def module_to_dict(module, omittable=lambda k: k.startswith('_') or not k.isupper()): """Convert a module namespace to a Python dictionary.""" return {k: repr(getattr(module, k)) for k in dir(module) if not omittable(k)} class Command(BaseCommand): hel...
theo-l/django
django/core/management/commands/diffsettings.py
Python
bsd-3-clause
3,370
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model common\models\Tag */ $this->title = Yii::t('app', 'Update {modelClass}: ', [ 'modelClass' => 'Tag', ]) . ' ' . $model->name; $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Tags'), 'url' => ['index']]; $this->params['breadcrumbs...
hdushku/npai
frontend/views/tag/update.php
PHP
bsd-3-clause
606
/* * Software License Agreement (BSD License) * * Copyright (c) 2010, Willow Garage, 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 mu...
ros-gbp/pcl-fuerte-release_defunct
filters/include/pcl/filters/impl/passthrough.hpp
C++
bsd-3-clause
8,506
/* * Copyright (C) 2008-2011, Gostai S.A.S. * * This software is provided "as is" without warranty of any kind, * either expressed or implied, including but not limited to the * implied warranties of fitness for a particular purpose. * * See the LICENSE file for more information. */ /// \file libuco/urbi-main....
urbiforge/urbi
sdk-remote/src/libuco/urbi-main.cc
C++
bsd-3-clause
1,282