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) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause **********************************************...
ghisvail/arrayfire
src/api/cpp/features.cpp
C++
bsd-3-clause
2,405
package org.javasimon.jdbcx4; import java.sql.SQLException; import javax.sql.StatementEventListener; import javax.sql.XAConnection; import javax.transaction.xa.XAResource; /** * Simon implementation of <code>XAConnection</code>, needed for * Simon XADataSource implementation. * <p/> * All method invokes its real ...
karouani/javasimon
jdbc41/src/main/java/org/javasimon/jdbcx4/SimonXAConnection.java
Java
bsd-3-clause
1,312
// Copyright 2014 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 "tools/gn/parse_tree.h" #include <stdint.h> #include <utility> #include "testing/gtest/include/gtest/gtest.h" #include "tools/gn/input_file.h" ...
js0701/chromium-crosswalk
tools/gn/parse_tree_unittest.cc
C++
bsd-3-clause
7,635
// 2005-04-26 Paolo Carlini <pcarlini@suse.de> // Copyright (C) 2005 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free Software Found...
shaotuanchen/sunflower_exp
tools/source/gcc-4.2.4/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/16.cc
C++
bsd-3-clause
5,193
<?php /** * Copyright 2011-2017 Anthon Pang. 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 requir...
rainlike/justshop
vendor/instaclick/php-webdriver/test/Test/WebDriver/ExceptionTest.php
PHP
mit
1,534
# Quantify coverage require "codeclimate-test-reporter" CodeClimate::TestReporter.start # load the library require 'koala' # Support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } # set up our testing environment # load testing data and (if needed) create test users or validate real us...
sancopanco/koala
spec/spec_helper.rb
Ruby
mit
436
import { Component, Input } from '@angular/core'; import { AllReadyEvent } from "../../pages/events/events"; import { NavController } from "ionic-angular"; import { EventDetailsPage } from "../../pages/eventdetails/eventdetails"; import { DateFilterPipe } from "../../pipes/datefilter/datefilter"; @Component({ select...
stevejgordon/allReady
AllReadyApp/Mobile-App/src/components/event-card/event-card.ts
TypeScript
mit
897
version https://git-lfs.github.com/spec/v1 oid sha256:d57f539203e9219f4c43532d12ca16d51ce822bf08d658cabd06aa84fc61dda2 size 661
yogeshsaroya/new-cdnjs
ajax/libs/dojo/1.5.4/cldr/nls/sv/number.js
JavaScript
mit
128
// CodeContracts // // Copyright (c) Microsoft Corporation // // All rights reserved. // // MIT License // // 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 Software without restriction, including wit...
Microsoft/CodeContracts
Microsoft.Research/Contracts/MsCorlib/Sources/System.Runtime.Remoting.Channels.BaseChannelSinkWithProperties.cs
C#
mit
2,271
using System; using System.Diagnostics; using System.Net; using System.Web; using Umbraco.Core; using Umbraco.Core.Logging; namespace umbraco.presentation { /// <summary> /// Makes a call to /umbraco/ping.aspx which is used to keep the web app alive /// </summary> public class keepAliveService { ...
Shazwazza/Umbraco-CMS
src/Umbraco.Web/umbraco.presentation/keepAliveService.cs
C#
mit
909
// CodeContracts // // Copyright (c) Microsoft Corporation // // All rights reserved. // // MIT License // // 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 Software without restriction, including wit...
Microsoft/CodeContracts
Microsoft.Research/Contracts/System/Sources/System.Net.NetworkInformation.IPv4InterfaceProperties.cs
C#
mit
2,729
'use strict'; var Promise = require('../../lib/ext/promise'); var conf = require('ember-cli-internal-test-helpers/lib/helpers/conf'); var ember = require('../helpers/ember'); var fs = require('fs-extra'); var outputFile = Promise.denodeify(fs.outputFile); var path ...
lazybensch/ember-cli
tests/acceptance/generate-test.js
JavaScript
mit
16,507
import Ember from 'ember'; import { module, test } from 'qunit'; import Confirmation from 'ember-validations/validators/local/confirmation'; import Mixin from 'ember-validations/mixin'; import buildContainer from '../../../helpers/build-container'; var model, Model, options, validator; var get = Ember.get; var set = E...
meszike123/ember-validations
tests/unit/validators/local/confirmation-test.js
JavaScript
mit
2,746
<?php namespace Oro\Bundle\IntegrationBundle\Exception; interface IntegrationException { }
MarkThink/OROCRM
vendor/oro/platform/src/Oro/Bundle/IntegrationBundle/Exception/IntegrationException.php
PHP
mit
93
<?php namespace Sirius\Validation\Rule; class RequiredWhen extends Required { const OPTION_ITEM = 'item'; const OPTION_RULE = 'rule'; const OPTION_RULE_OPTIONS = 'rule_options'; protected static $defaultMessageTemplate = 'This field is required'; public function getItemRule() { /* @va...
frisbeesport/frisbeesport.nl
vendor/siriusphp/validation/src/Rule/RequiredWhen.php
PHP
mit
2,149
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sylius\Bundle\PromotionBundle\Form\Type; use Sylius\Bundle\PromotionBundle\Form\EventListen...
Ejobs/Sylius
src/Sylius/Bundle/PromotionBundle/Form/Type/ActionType.php
PHP
mit
1,453
'use strict'; const existsSync = require('exists-sync'); const path = require('path'); const LiveReloadServer = require('./server/livereload-server'); const ExpressServer = require('./server/express-server'); const RSVP = require('rsvp'); const Task = require('../models/task'); const Watcher = require('../models/watch...
gabz75/ember-cli-deploy-redis-publish
node_modules/ember-cli/lib/tasks/serve.js
JavaScript
mit
2,076
<?php /** * @package Joomla.Platform * @subpackage String * * @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; use Joomla\Uri\UriHelper; JLoader::register('id...
demis-palma/joomla-cms
libraries/joomla/string/punycode.php
PHP
gpl-2.0
5,195
<?php /** * File containing the URLAliasCreate parser class. * * @copyright Copyright (C) eZ Systems AS. All rights reserved. * @license For full copyright and license information view LICENSE file distributed with this source code. * * @version //autogentag// */ namespace eZ\Publish\Core\REST\Server\Input\Pars...
flovntp/BikeTutorialWebsite
vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/REST/Server/Input/Parser/URLAliasCreate.php
PHP
gpl-2.0
2,782
__version_info__ = (0, 6, 1) __version__ = '.'.join(map(str, __version_info__))
NeuPhysics/NumSolTUn
docs/_themes/alabaster/_version.py
Python
gpl-2.0
80
<?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Form\Form; extract($displayData); /** * Layout vari...
brianteeman/joomla-cms
layouts/joomla/form/field/subform/default.php
PHP
gpl-2.0
1,390
package org.ezsystems.solr.handler.ezfind; // ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ## // SOFTWARE NAME: eZ Find // SOFTWARE RELEASE: 2.0.x // COPYRIGHT NOTICE: Copyright (C) 1999-2012 eZ Systems AS // SOFTWARE LICENSE: GNU General Public License v2.0 // NOTICE: > // This program is free software; you can ...
medbenhenda/migration-ez5
ezpublish_legacy/extension/ezfind/java/src/ezfind/src/main/java/org/ezsystems/solr/handler/ezfind/eZFindRequestHandler.java
Java
gpl-2.0
9,623
class AddIncludeTl0InDigestsToUserOptions < ActiveRecord::Migration[4.2] def change add_column :user_options, :include_tl0_in_digests, :boolean, default: false end end
gfvcastro/discourse
db/migrate/20160317201955_add_include_tl0_in_digests_to_user_options.rb
Ruby
gpl-2.0
176
<?php /** * @file * Contains \Drupal\Console\Command\Generate\PluginTypeYamlCommand. */ namespace Drupal\Console\Command\Generate; use Drupal\Console\Generator\PluginTypeYamlGenerator; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Consol...
sgrichards/BrightonDrupal
vendor/drupal/console/src/Command/Generate/PluginTypeYamlCommand.php
PHP
gpl-2.0
3,969
<?php use Action_Scheduler\WP_CLI\Migration_Command; use Action_Scheduler\Migration\Controller; /** * Class ActionScheduler * @codeCoverageIgnore */ abstract class ActionScheduler { private static $plugin_file = ''; /** @var ActionScheduler_ActionFactory */ private static $factory = NULL; /** @var bool */ pri...
rasken2003/fuga-it-business
wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler.php
PHP
gpl-2.0
8,752
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle ...
evltuma/moodle
mod/quiz/report/overview/report.php
PHP
gpl-3.0
28,104
import { ElementRef, EventEmitter, NgZone, Renderer } from '@angular/core'; import { Config } from '../../config/config'; import { Ion } from '../ion'; import { Platform } from '../../platform/platform'; import { SlideContainer, SlideElement, SlideTouchEvents, SlideTouches, SlideZoom } from './swiper/swiper-interfaces'...
chitranshi21/home_service_ionic
node_modules/ionic-angular/umd/components/slides/slides.d.ts
TypeScript
gpl-3.0
18,338
<?php /** * interface/therapy_groups/therapy_groups_controllers/participants_controller.php contains the participants controller for therapy groups. * * This is the controller for the groups' participant view. * * Copyright (C) 2016 Shachar Zilbershlag <shaharzi@matrix.co.il> * Copyright (C) 2016 Amiel Elboim <a...
vaibhavgupta3110/openemr
interface/therapy_groups/therapy_groups_controllers/participants_controller.php
PHP
gpl-3.0
5,277
// { dg-do compile } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as publish...
selmentdev/selment-toolchain
source/gcc-latest/libstdc++-v3/testsuite/special_functions/11_ellint_1/compile_2.cc
C++
gpl-3.0
1,160
package terraform import ( "log" "github.com/hashicorp/terraform/dag" "github.com/hashicorp/terraform/tfdiags" ) // NodePlannableResource represents a resource that is "plannable": // it is ready to be planned in order to create a diff. type NodePlannableResource struct { *NodeAbstractResource // ForceCreateBe...
hashicorp/terraform-provider-template
vendor/github.com/hashicorp/terraform/terraform/node_resource_plan.go
GO
mpl-2.0
4,536
/** * Copyright © 2002 Instituto Superior Técnico * * This file is part of FenixEdu Academic. * * FenixEdu Academic 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...
jcarvalho/fenixedu-academic
src/main/java/org/fenixedu/academic/domain/reports/GraduationReportFile.java
Java
lgpl-3.0
5,943
/** * */ package org.sword.wechat4j; import javax.servlet.http.HttpServletRequest; /** * @author ChengNing * @date 2014年12月7日 */ public class Wechat extends WechatSupport{ public Wechat(HttpServletRequest request) { super(request); } @Override protected void onText() { // TODO Auto-generated method ...
liwanwei/wechat4j
test/org/sword/wechat4j/Wechat.java
Java
apache-2.0
2,327
/* Copyright (c) 2011 Eli Grey, http://eligrey.com This file is based on: https://github.com/eligrey/FileSaver.js/blob/master/FileSaver.js , licensed under X11/MIT. See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md This file is part of SwitchySharp. SwitchySharp is free software: you can redist...
FrankLiu/nscrapy
plugin/SwitchySharp/assets/libs/FileSaver.js
JavaScript
apache-2.0
9,450
/* * Copyright 2019 Red Hat, Inc. and/or its affiliates. * * 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 a...
droolsjbpm/drools
kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TRelation.java
Java
apache-2.0
1,338
// +build linux package main import ( "os" "path/filepath" "strings" "syscall" "github.com/docker/docker/integration-cli/checker" "github.com/docker/docker/pkg/mount" icmd "github.com/docker/docker/pkg/testutil/cmd" "github.com/go-check/check" ) // TestDaemonRestartWithPluginEnabled tests state restore for ...
jgsqware/clairctl
vendor/github.com/docker/docker/integration-cli/docker_cli_daemon_plugins_test.go
GO
apache-2.0
8,839
from lib.mmonit import MmonitBaseAction class MmonitGetUptimeHost(MmonitBaseAction): def run(self, host_id, uptime_range=0, datefrom=0, dateto=0): self.login() if datefrom != 0 and uptime_range != 12: raise Exception("If datefrom is set, range should be 12") data = {"id": host...
meirwah/st2contrib
packs/mmonit/actions/get_uptime_host.py
Python
apache-2.0
604
/** * Licensed to Apereo under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Apereo licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in ...
ASU-Capstone/uPortal-Forked
uportal-war/src/main/java/org/jasig/portal/rest/SubscribableTabsRESTController.java
Java
apache-2.0
8,245
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.util.text; import com.intellij.openapi.util.text.CharSequenceWithStringHash; import com.intellij.openapi.util.text.Strings; import org.jetbrains.annotations....
siosio/intellij-community
platform/util/strings/src/com/intellij/util/text/CharArrayCharSequence.java
Java
apache-2.0
2,636
module Api class TenantsController < BaseController INVALID_TENANT_ATTRS = %w(id href ancestry).freeze include Subcollections::Tags include Subcollections::Quotas def create_resource(_type, _id, data) bad_attrs = data_includes_invalid_attrs(data) if bad_attrs.present? raise BadRe...
fbladilo/manageiq
app/controllers/api/tenants_controller.rb
Ruby
apache-2.0
1,268
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.psi.impl.source.xml; import com.intellij.lang.html.HTMLLanguage; import com.intellij.lang.xhtml.XHTMLLanguage; import com.intellij.openapi.fileTypes.FileType...
smmribeiro/intellij-community
xml/xml-psi-impl/src/com/intellij/psi/impl/source/xml/XmlFileImpl.java
Java
apache-2.0
3,408
package fs import ( "io/ioutil" "os" "path/filepath" "testing" ) const ( cgroupFile = "cgroup.file" floatValue = 2048.0 floatString = "2048" ) func TestGetCgroupParamsFloat64(t *testing.T) { // Setup tempdir. tempDir, err := ioutil.TempDir("", "cgroup_utils_test") if err != nil { t.Fatal(err) } defer...
cgwalters/docker
pkg/libcontainer/cgroups/fs/utils_test.go
GO
apache-2.0
1,418
/* Copyright 2017 The Kubernetes 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 applicable law or agreed to in writing, ...
Miciah/origin
vendor/k8s.io/kubernetes/test/integration/scheduler/priorities_test.go
GO
apache-2.0
13,219
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates. * * 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 app...
romartin/kie-wb-common
kie-wb-common-stunner/kie-wb-common-stunner-core/kie-wb-common-stunner-processors/src/main/java/org/kie/workbench/common/stunner/core/processors/ProcessingEntity.java
Java
apache-2.0
1,066
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.history.integration; import com.intellij.history.LocalHistoryAction; import com.intellij.openapi.util.NlsContexts; public class LocalHistoryActionImpl impl...
siosio/intellij-community
platform/lvcs-impl/src/com/intellij/history/integration/LocalHistoryActionImpl.java
Java
apache-2.0
743
/* * Licensed to Metamarkets Group Inc. (Metamarkets) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Metamarkets licenses this file * to you under the Apache License, Version 2.0 (the * "License"); yo...
tubemogul/druid
server/src/test/java/io/druid/query/lookup/LookupIntrospectionResourceImplTest.java
Java
apache-2.0
4,150
/* * Copyright 2000-2015 JetBrains s.r.o. * * 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 agre...
jwren/intellij-community
python/python-psi-impl/src/com/jetbrains/python/documentation/docstrings/DocStringUpdater.java
Java
apache-2.0
5,669
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.tasks.jira.jql; import com.intellij.lang.ASTNode; import com.intellij.lang.ParserDefinition; import com.intellij.lang.PsiParser; import com.intellij.lexer.Le...
smmribeiro/intellij-community
plugins/tasks/tasks-core/jira/src/com/intellij/tasks/jira/jql/JqlParserDefinition.java
Java
apache-2.0
1,904
// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.psi.scope; import com.intellij.openapi.util.Key; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.HashM...
siosio/intellij-community
platform/core-impl/src/com/intellij/psi/scope/ProcessorWithHints.java
Java
apache-2.0
758
<?php class ezcWebdavLockPluginClientTestAssertions074 { public function assertCollectionNotCreated( ezcWebdavMemoryBackend $backend ) { PHPUnit_Framework_Assert::assertFalse( $backend->nodeExists( '/collection/newresource' ) ); } } return new ezcWebdavLockPluginClientTestAsser...
Melody/Webdav
tests/lock_plugin/074_put_parent_locked_other_failure_assertions.php
PHP
apache-2.0
336
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.jps.devkit.threadingModelHelper; import org.jetbrains.annotations.NotNull; import org.jetbrains.jps.incremental.BuilderService; import org.jetbrains.jps.inc...
jwren/intellij-community
plugins/devkit/jps-plugin/src/org/jetbrains/jps/devkit/threadingModelHelper/TMHBuilderService.java
Java
apache-2.0
632
#!/usr/bin/env python # # Copyright (c) 2016 Intel Corporation. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of works must retain the original copyright notice, this # list of conditions and t...
ibelem/crosswalk-test-suite
apptools/apptools-manifest-tests/comm.py
Python
bsd-3-clause
8,359
########################################################################## # # Copyright (c) 2011, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistribu...
lento/cortex
test/IECore/DataConvertOpTest.py
Python
bsd-3-clause
3,033
/** * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ package org.dspace.app.webui.jsptag; import javax.servlet.jsp.JspException; import javax.servlet.jsp.t...
jamie-dryad/dryad-repo
dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/SidebarTag.java
Java
bsd-3-clause
1,080
<?php /** * Base static class for performing query and update operations on the 'plugin_data' table. * * * * @package propel.generator.datawrapper.om */ abstract class BasePluginDataPeer { /** the default database name for this class */ const DATABASE_NAME = 'datawrapper'; /** the table name for t...
kendrick-k/datawrapper
lib/core/build/classes/datawrapper/om/BasePluginDataPeer.php
PHP
mit
40,214
<?php use Illuminate\Database\Seeder; use Illuminate\Database\Eloquent\Model; use App\Models\Role, App\Models\User, App\Models\Contact, App\Models\Post, App\Models\Tag, App\Models\PostTag, App\Models\Comment; use App\Services\LoremIpsumGenerator; class DatabaseSeeder extends Seeder { /** * Run the database seeds....
sdlyhu/laravel5-example
database/seeds/DatabaseSeeder.php
PHP
mit
9,256
(function(__global) { var isWorker = typeof window == 'undefined' && typeof self != 'undefined' && typeof importScripts != 'undefined'; var isBrowser = typeof window != 'undefined' && typeof document != 'undefined'; var isWindows = typeof process != 'undefined' && typeof process.platform != 'undefined' && !!proc...
ApprecieOpenSource/Apprecie
public/a/node_modules/es6-module-loader/src/wrapper-start.js
JavaScript
mit
2,575
import { Animation } from '../animations/animation'; import { isPresent } from '../util/util'; import { PageTransition } from './page-transition'; const /** @type {?} */ DURATION = 500; const /** @type {?} */ EASING = 'cubic-bezier(0.36,0.66,0.04,1)'; const /** @type {?} */ OPACITY = 'opacity'; const /** @type {?} */ T...
ortroyaner/GithubFinder
node_modules/ionic-angular/es2015/transitions/transition-ios.js
JavaScript
mit
8,705
// <copyright file="SparseMatrix.cs" company="Math.NET"> // Math.NET Numerics, part of the Math.NET Project // http://numerics.mathdotnet.com // http://github.com/mathnet/mathnet-numerics // http://mathnetnumerics.codeplex.com // // Copyright (c) 2009-2013 Math.NET // // Permission is hereby granted, free of charge, t...
grovesNL/mathnet-numerics
src/Numerics/LinearAlgebra/Double/SparseMatrix.cs
C#
mit
60,299
using System; using System.Reflection; class Program { static void PrintFieldValues (FieldInfo[] fields, object obj) { foreach (FieldInfo field in fields) { // not printing field names because automatic property backing field names differ between .NET and JSIL Console.WriteLine(fie...
TukekeSoft/JSIL
Tests/ReflectionTestCases/FieldGetValue.cs
C#
mit
2,066
'use strict'; var gulp = tars.packages.gulp; var cache = tars.packages.cache; var plumber = tars.packages.plumber; var notifier = tars.helpers.notifier; var browserSync = tars.packages.browserSync; var staticFolderName = tars.config.fs.staticFolderName; /** * Move fonts-files to dev directory */ module.exports = f...
mik639/TZA
tars/tasks/other/move-fonts.js
JavaScript
mit
923
# require 'analytic/response_analytic' module AssignmentTeamAnalytic #======= general ==========# def num_participants self.participants.count end def num_reviews self.responses.count end #========== score ========# def average_review_score if self.num_reviews == 0 return 0 else ...
akshayjain114/expertiza
expertiza-master/app/models/analytic/assignment_team_analytic.rb
Ruby
mit
2,250
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Autofac.Builder; using Autofac.Core.Registration; using Autofac.Core.Lifetime; using Autofac.Core.Activators.Reflection; using Autofac.Core; using System.Reflection; using Autofac.Core.Activators.ProvidedInstance; namespace Au...
oconics/Autofac
test/Autofac.Test/Factory.cs
C#
mit
3,512
/****************************************************************************** * * * * Copyright (C) 1997-2015 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby * granted. No representat...
chintal/doxygen
src/define.cpp
C++
gpl-2.0
1,325
<?php namespace Drupal\jsonapi\JsonApiResource; use Drupal\Component\Utility\NestedArray; use Drupal\Core\Cache\CacheableMetadata; use Drupal\Core\Field\EntityReferenceFieldItemListInterface; use Drupal\Core\Url; use Drupal\jsonapi\JsonApiSpec; use Drupal\jsonapi\ResourceType\ResourceType; use Drupal\jsonapi\Routing\...
maskedjellybean/tee-prop
web/core/modules/jsonapi/src/JsonApiResource/Relationship.php
PHP
gpl-2.0
9,807
/*___Generated_by_IDEA___*/ package com.facebook.android; /* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */ public final class R { }
TharinduKetipe/easywish
libraries/facebook/gen/com/facebook/android/R.java
Java
gpl-2.0
176
#!/usr/bin/env python """Execute the tests for the razers3 program. The golden test outputs are generated by the script generate_outputs.sh. You have to give the root paths to the source and the binaries as arguments to the program. These are the paths to the directory that contains the 'projects' directory. Usage:...
rrahn/jst_bench
include/seqan/apps/razers3/tests/run_tests.py
Python
gpl-3.0
16,681
t = db.capped1; t.drop(); db.createCollection("capped1" , {capped:true, size:1024 }); v = t.validate(); assert( v.valid , "A : " + tojson( v ) ); // SERVER-485 t.save( { x : 1 } ) assert( t.validate().valid , "B" )
barakav/robomongo
src/third-party/mongodb/jstests/capped1.js
JavaScript
gpl-3.0
220
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle ...
michael-milette/moodle
repository/nextcloud/tests/lib_test.php
PHP
gpl-3.0
41,264
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: POGOProtos/Data/PokemonData.proto #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using sc...
zzdragonjaizz/RocketBot
src/POGOProtos/Data/PokemonData.cs
C#
gpl-3.0
33,667
// Copyright 2013 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 <sys/socket.h> #include "base/bind.h" #include "base/files/file_path.h" #include "base/path_service.h" #include "base/posix/eintr_wrapper.h" #in...
michaelforfxhelp/fxhelprepo
third_party/chromium/ipc/unix_domain_socket_util_unittest.cc
C++
mpl-2.0
5,234
// --------------------------------------------------------------------- // // Copyright (C) 2004 - 2014 by the deal.II authors // // This file is part of the deal.II library. // // The deal.II library is free software; you can use it, redistribute // it, and/or modify it under the terms of the GNU Lesser General // Pu...
johntfoster/dealii
tests/bits/complex_vector_24.cc
C++
lgpl-2.1
2,443
/* * Copyright 2015-present Open Networking Laboratory * * 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...
donNewtonAlpha/onos
core/api/src/test/java/org/onosproject/ui/topo/NodeBadgeTest.java
Java
apache-2.0
3,410
/* * Copyright 2000-2014 JetBrains s.r.o. * * 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 agre...
ThiagoGarciaAlves/intellij-community
python/src/com/jetbrains/python/codeInsight/imports/ImportCandidateHolder.java
Java
apache-2.0
7,544
/* * #%L * Native ARchive plugin for Maven * %% * Copyright (C) 2002 - 2014 NAR Maven Plugin developers. * %% * 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.or...
dugilos/nar-maven-plugin
src/main/java/com/github/maven_nar/cpptasks/types/ConditionalPath.java
Java
apache-2.0
2,393
/* * 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...
gingerwizard/elasticsearch
client/rest-high-level/src/test/java/org/elasticsearch/client/ml/dataframe/evaluation/regression/MeanSquaredErrorMetricResultTests.java
Java
apache-2.0
1,999
module MiqReport::Generator::Html def build_html_rows(clickable_rows = false) tz = get_time_zone(Time.zone.name) if Time.zone html_rows = [] group_counter = 0 row = 0 self.rpt_options ||= {} self.col_formats ||= [] # Backward compat - create empty array for formats group_...
mfeifer/manageiq
app/models/miq_report/generator/html.rb
Ruby
apache-2.0
8,450
/** * Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com> */ package com.typesafe.config.impl; import java.io.File; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.LinkedList; import java.util.L...
fpringvaldsen/config
config/src/main/java/com/typesafe/config/impl/ConfigParser.java
Java
apache-2.0
19,298
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 4.3.2 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2010, EllisLab, Inc. * @license http://codei...
prashants/webzash-v1-defunct
system/codeigniter/CodeIgniter.php
PHP
apache-2.0
7,665
// Copyright 2015 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flags: --allow-natives-syntax --harmony-do-expressions function f(x) { switch (x) { case 1: return "one"; case 2: return "two"; case d...
macchina-io/macchina.io
platform/JS/V8/v8/test/mjsunit/regress/regress-osr-in-case-label.js
JavaScript
apache-2.0
502
/* * 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 may ...
tdiesler/camel
core/camel-core/src/test/java/org/apache/camel/component/language/LanguageScriptInHeaderRouteTakePrecedenceTest.java
Java
apache-2.0
2,063
/******************************************************************************* * Copyright (c) 2009 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is a...
nwnpallewela/developer-studio
jaggery/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/preferences/AbstractPreferencesPropagator.java
Java
apache-2.0
3,408
/* * Copyright 2009-2010 WSO2, Inc. (http://wso2.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 applica...
nwnpallewela/developer-studio
data-services/plugins/org.wso2.developerstudio.eclipse.ds.editor/src/org/wso2/developerstudio/eclipse/ds/presentation/custom/CustomAdapterFactoryContentProvider.java
Java
apache-2.0
1,569
/* * Copyright 2016-present Open Networking Laboratory * * 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 appli...
donNewtonAlpha/onos
apps/cpman/app/src/main/java/org/onosproject/cpman/cli/ResourceNameCompleter.java
Java
apache-2.0
3,366
/* * Copyright 2014-present Open Networking Laboratory * * 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 appli...
donNewtonAlpha/onos
core/api/src/main/java/org/onosproject/net/provider/AbstractProvider.java
Java
apache-2.0
1,074
package com.thinkaurelius.titan.graphdb.types.system; import com.thinkaurelius.titan.graphdb.internal.InternalVertexLabel; import org.apache.tinkerpop.gremlin.structure.Vertex; /** * @author Matthias Broecheler (me@matthiasb.com) */ public class BaseVertexLabel extends EmptyVertex implements InternalVertexLabel { ...
CYPP/titan
titan-core/src/main/java/com/thinkaurelius/titan/graphdb/types/system/BaseVertexLabel.java
Java
apache-2.0
987
/*1*/ try /*2*/ { /*3*/ /*4*/ throw /*5*/ "no" /*6*/; /*7*/} /*8*/ catch /*9*/ ( /*10*/ e /*11*/ ) /*12*/ { /*13*/ /*14*/} /*15*/ finally /*16*/ { /*17*/ /*18*/} /*19*/
basarat/TypeScript
tests/cases/compiler/tryStatementInternalComments.ts
TypeScript
apache-2.0
180
package com.vaadin.tests.components.grid; import java.util.ArrayList; import java.util.List; import com.vaadin.data.ValueProvider; import com.vaadin.server.VaadinRequest; import com.vaadin.tests.components.AbstractTestUIWithLog; import com.vaadin.ui.Button; import com.vaadin.ui.Grid; import com.vaadin.ui.HorizontalLa...
Darsstar/framework
uitest/src/main/java/com/vaadin/tests/components/grid/MoveGridAndAddRow.java
Java
apache-2.0
1,491
<?php /** * Tests for MediaWiki api.php?action=edit. * * @author Daniel Kinzler * * @group API * @group Database * @group medium */ class ApiEditPageTest extends ApiTestCase { public function setUp() { global $wgExtraNamespaces, $wgNamespaceContentModels, $wgContentHandlers, $wgContLang; parent::setUp()...
BRL-CAD/web
wiki/tests/phpunit/includes/api/ApiEditPageTest.php
PHP
bsd-2-clause
13,254
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'OrderAndItemCharges.code' db.alter_column(u'shipping_o...
jinnykoo/christmas
src/oscar/apps/shipping/south_migrations/0006_auto__chg_field_orderanditemcharges_code__chg_field_weightbased_code.py
Python
bsd-3-clause
5,032
import imghdr import json import logging from django.conf import settings from django.db.models import Q from django.http import (HttpResponse, HttpResponseRedirect, HttpResponseBadRequest, Http404) from django.shortcuts import get_object_or_404, render from django.views.decorators.clickjackin...
orvi2014/kitsune
kitsune/gallery/views.py
Python
bsd-3-clause
9,805
// Squarified Treemaps by Mark Bruls, Kees Huizing, and Jarke J. van Wijk // Modified to support a target aspect ratio by Jeff Heer d3.layout.treemap = function() { var hierarchy = d3.layout.hierarchy(), round = Math.round, size = [1, 1], // width, height padding = null, pad = d3_layout_treema...
zziuni/d3
src/layout/treemap.js
JavaScript
bsd-3-clause
6,511
#!/usr/bin/env python # # Copyright 2006, Google 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 list...
paoloach/zdomus
zigbee_lib/googletest/googletest/test/gtest_xml_test_utils.py
Python
gpl-2.0
8,876
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Buffers; namespace System.Text.Json { public ref partial struct Utf8JsonWriter { /// ...
ptoonen/corefx
src/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteValues.Double.cs
C#
mit
1,839
// Type definitions for non-npm package @ember/component 3.0 // Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Fcomponent // Definitions by: Mike North <https://github.com/mike-north> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 /// <reference types="jquery"...
borisyankov/DefinitelyTyped
types/ember__component/index.d.ts
TypeScript
mit
4,009
# Copyright 2016 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 applica...
jjas0nn/solvem
tensorflow/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/export_strategy.py
Python
mit
1,195
version https://git-lfs.github.com/spec/v1 oid sha256:cdaff690080dec73e2f9044eb89e1426fd2645ea6d8b253cd51cd992717b8a06 size 1772
yogeshsaroya/new-cdnjs
ajax/libs/codemirror/5.1.0/mode/shell/test.js
JavaScript
mit
129
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Diagnostics; using System.IO; namespace System.Net.NetworkInformation { internal class LinuxIPGlob...
shimingsg/corefx
src/System.Net.NetworkInformation/src/System/Net/NetworkInformation/LinuxIPGlobalStatistics.cs
C#
mit
4,754
package com.wirelesspienetwork.overview.views; import android.animation.ValueAnimator; import android.graphics.Rect; import android.view.View; import android.view.ViewPropertyAnimator; import android.view.animation.Interpolator; /* The transform state for a task view */ public class OverviewCardTransform { publi...
ppamorim/StackOverView
lib/src/main/java/com/wirelesspienetwork/overview/views/OverviewCardTransform.java
Java
mit
3,895
#!/usr/bin/env python import sys import re from helpers import * PROGRAM_USAGE = """ SeqAn script to replace invalid identifiers (previously collected) in the SeqAn codebase. USAGE: replace_identifiers.py BASE_PATH [REPLACEMENTS] BASE_PATH is the root path of all the folders to be searched. REPLACEMENTS is a file ...
bkahlert/seqan-research
raw/workshop13/workshop2013-data-20130926/trunk/misc/renaming/replace_identifiers.py
Python
mit
2,256
/* This file was generated by SableCC (http://www.sablecc.org/). */ package wolf.node; import wolf.analysis.*; @SuppressWarnings("nls") public final class TStringBody extends Token { public TStringBody(String text) { setText(text); } public TStringBody(String text, int line, int pos) { ...
dittma75/compiler-design
wolf_compiler/wolf/src/wolf/node/TStringBody.java
Java
mit
616