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
// // Triple Play - utilities for use in PlayN-based games // Copyright (c) 2011-2014, Three Rings Design, Inc. - All rights reserved. // http://github.com/threerings/tripleplay/blob/master/LICENSE package tripleplay.platform; import cli.MonoTouch.CoreAnimation.CAShapeLayer; import cli.MonoTouch.CoreGraphics.CGPath; ...
tomfisher/tripleplay
ios/src/main/java/tripleplay/platform/IOSUIOverlay.java
Java
bsd-3-clause
2,336
<?php namespace backend\modules\admin\controllers; use yii\web\Controller; /** * Default controller for the `admin` module */ class DefaultController extends Controller { /** * Renders the index view for the module * @return string */ public function actionIndex() { ...
jithinazryah/emperror
backend/modules/admin/controllers/DefaultController.php
PHP
bsd-3-clause
390
/*L * Copyright RTI International * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/webgenome/LICENSE.txt for details. */ package org.rti.webgenome.client; /** * Generates <code>ExperimentDTO</code> objects for testing. * @author dhall * */ public class ExperimentD...
NCIP/webgenome
tags/WEBGENOME_R3.2_6MAR2009_BUILD1/java/core/src/org/rti/webgenome/client/ExperimentDTOGenerator.java
Java
bsd-3-clause
1,419
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 20...
dushmis/Oracle-Cloud
PaaS_SaaS_Accelerator_RESTFulFacade/XJC_Beans/src/com/oracle/xmlns/apps/cdm/foundation/parties/locationservice/applicationmodule/types/UpdateLocation.java
Java
bsd-3-clause
2,082
"""django-cms-redirects""" VERSION = (1, 0, 6) __version__ = "1.0.6"
vovanbo/djangocms-redirects
cms_redirects/__init__.py
Python
bsd-3-clause
69
// 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 "chrome/browser/task_manager/guest_information.h" #include "base/strings/string16.h" #include "chrome/browser/chrome_notification_types.h" #incl...
7kbird/chrome
chrome/browser/task_manager/guest_information.cc
C++
bsd-3-clause
4,136
#!/usr/bin/env python import gtk import Editor def main(filenames=[]): """ start the editor, with a new empty document or load all *filenames* as tabs returns the tab object """ Editor.register_stock_icons() editor = Editor.EditorWindow() tabs = map(editor.load_document, filenames) ...
carloscanova/python-odml
odml/gui/__main__.py
Python
bsd-3-clause
845
#include "density.h" #include <algorithm> #include <cassert> #include <cmath> #include <cstddef> #include <cstdio> #include <iostream> #include "blas_interface.h" #include "compress.h" void distribute_matrix(const int mat_dim, const int block_length, const bool use_gradi...
bast/xcint
src/density/density.cpp
C++
bsd-3-clause
42,641
// Copyright 2015 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/lib/ui/window/window.h" #include "flutter/lib/ui/compositing/scene.h" #include "flutter/lib/ui/ui_dart_state.h" #include "flutter/lib/u...
krisgiesing/sky_engine
lib/ui/window/window.cc
C++
bsd-3-clause
10,895
<?php /* CalendarServer example This server features CalDAV support */ // settings date_default_timezone_set('Canada/Eastern'); // If you want to run the SabreDAV server in a custom location (using mod_rewrite for instance) // You can override the baseUri here. // $baseUri = '/'; /* Database */ $pdo = new PDO('s...
DeepDiver1975/sabre-dav
examples/calendarserver.php
PHP
bsd-3-clause
1,682
<?php /** * Logo helper */ class Zend_View_Helper_Logo extends Zend_View_Helper_Abstract { public $view; public function setView(Zend_View_Interface $view) { $this->view = $view; } public function logo($data = array()) { $isp = Shineisp_Registry::get('ISP'); if (! empty ( $isp->logo )) { if (file_exi...
tanerkuc/shineisp
application/modules/default/views/helpers/Logo.php
PHP
bsd-3-clause
588
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace Centro\Model\Data; use Zend\InputFilter\InputFilter; use Zend\InputFilter\InputFilterAwareInterface; use Zend\Input...
tavoot/cysdusac
module/Centro/src/Centro/Model/Data/Item.php
PHP
bsd-3-clause
5,949
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806_char_snprintf_53d.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806.label.xml Template File: sources-sink-53d.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: In...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s04/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806_char_snprintf_53d.cpp
C++
bsd-3-clause
1,666
# Merge stimuli information from spike2 mat file into Kwik file import h5py as h5 import tables import os import numpy as np import argparse import glob try: import simplejson as json except ImportError: import json from klusta_pipeline.dataio import load_recordings, save_info, load_digmark, load_stim_info from klu...
gentnerlab/klusta-pipeline
klusta_pipeline/merge_stim_kwik.py
Python
bsd-3-clause
7,008
#include "studiopaletteviewer.h" #include "palettesscanpopup.h" #include "toonz/studiopalettecmd.h" #include "toonzqt/menubarcommand.h" #include "floatingpanelcommand.h" #include "toonzqt/gutil.h" #include "toonz/tpalettehandle.h" #include "toonz/txshlevelhandle.h" #include "toonzqt/paletteviewer.h" #include "toonzut...
JosefMeixner/opentoonz
toonz/sources/toonz/studiopaletteviewer.cpp
C++
bsd-3-clause
31,411
""" Module for abstract serializer/unserializer base classes. """ try: from cStringIO import StringIO except ImportError: from StringIO import StringIO from django.db import models from django.utils.encoding import smart_str, smart_unicode class SerializationError(Exception): """Something bad happened dur...
diofeher/django-nfa
django/core/serializers/base.py
Python
bsd-3-clause
5,533
<?php namespace Rcm\Factory; use Rcm\Service\ResponseHandler; use Zend\Mvc\ResponseSender\HttpResponseSender; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; /** * Service Factory for the Container Manager * * Factory for the Container Manager. * * @category Reliv * ...
innaDa/Rcm
src/Factory/ResponseHandlerFactory.php
PHP
bsd-3-clause
1,430
/* * Copyright (c) 2013 - 2016 Stefan Muller Arisona, Simon Schubiger * Copyright (c) 2013 - 2016 FHNW & ETH Zurich * All rights reserved. * * Contributions by: Filip Schramka, Samuel von Stachelski * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided tha...
arisona/ether
ether-core/src/main/java/ch/fhnw/util/ClassUtilities.java
Java
bsd-3-clause
19,598
from django.urls import include, path, register_converter from django.urls.converters import StringConverter from django.contrib import admin from django.contrib.auth import logout from django.views.generic import RedirectView, TemplateView from pontoon.teams.views import team class LocaleConverter(StringConverter):...
mathjazz/pontoon
pontoon/urls.py
Python
bsd-3-clause
2,791
// clang-format off CppKeySet { 10, keyNew (PREFIX "primes", KEY_META, "array", "#3", KEY_END), keyNew (PREFIX "primes/#0", KEY_VALUE, "two", KEY_END), keyNew (PREFIX "primes/#1", KEY_VALUE, "three", KEY_END), keyNew (PREFIX "primes/#2", KEY_VALUE, "five", KEY_END), keyNew (PREFIX "primes/#3",...
BernhardDenner/libelektra
src/plugins/yanlr/yanlr/map-list-plain_scalars.hpp
C++
bsd-3-clause
365
<?php /** * author : forecho <caizhenghai@gmail.com> * createTime : 15/4/19 下午3:20 * description: */ namespace common\services; use common\models\Post; use common\models\PostComment; use common\models\User; use common\models\UserInfo; use DevGroup\TagDependencyHelper\NamingHelper; use frontend\modules\topic\m...
upliu/getyii
common/services/UserService.php
PHP
bsd-3-clause
6,118
/** * Copyright (c) 2013-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...
chicoxyzzy/fbjs
packages/fbjs/src/core/TouchEventUtils.js
JavaScript
bsd-3-clause
1,271
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__char_console_printf_72a.cpp Label Definition File: CWE134_Uncontrolled_Format_String.label.xml Template File: sources-sinks-72a.tmpl.cpp */ /* * @description * CWE: 134 Uncontrolled Format String * BadSource: console Read input ...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE134_Uncontrolled_Format_String/s01/CWE134_Uncontrolled_Format_String__char_console_printf_72a.cpp
C++
bsd-3-clause
5,028
<?php /** * Payment object representing a cheque payment. * * @package payment */ class ChequePayment extends Payment { /** * Process the Cheque payment method */ function processPayment($data, $form) { $this->Status = 'Pending'; $this->Message = '<p class="warningMessage">' . _t('ChequePayment.MESSAG...
bartoszrychlicki/MainBrain.pl
payment/code/ChequePayment/ChequePayment.php
PHP
bsd-3-clause
1,059
from django.conf.urls.defaults import * from corehq.apps.adm.dispatcher import ADMAdminInterfaceDispatcher, ADMSectionDispatcher from corehq.apps.adm.views import ADMAdminCRUDFormView adm_admin_interface_urls = patterns('corehq.apps.adm.views', url(r'^$', 'default_adm_admin', name="default_adm_admin_interface"), ...
gmimano/commcaretest
corehq/apps/adm/urls.py
Python
bsd-3-clause
691
// Copyright 2020 The Crashpad 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 ...
youtube/cobalt
third_party/crashpad/util/file/output_stream_file_writer.cc
C++
bsd-3-clause
1,982
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE36_Absolute_Path_Traversal__char_connect_socket_ofstream_73a.cpp Label Definition File: CWE36_Absolute_Path_Traversal.label.xml Template File: sources-sink-73a.tmpl.cpp */ /* * @description * CWE: 36 Absolute Path Traversal * BadSource: connect_socket Read dat...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE36_Absolute_Path_Traversal/s01/CWE36_Absolute_Path_Traversal__char_connect_socket_ofstream_73a.cpp
C++
bsd-3-clause
5,444
/* * Copyright (C) 2010-2012 The Async HBase Authors. All rights reserved. * This file is part of Async HBase. * * 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...
manolama/asynchbase
src/MultiColumnAtomicIncrementRequest.java
Java
bsd-3-clause
11,947
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE197_Numeric_Truncation_Error__int_connect_socket_to_short_74a.cpp Label Definition File: CWE197_Numeric_Truncation_Error__int.label.xml Template File: sources-sink-74a.tmpl.cpp */ /* * @description * CWE: 197 Numeric Truncation Error * BadSource: connect_socke...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE197_Numeric_Truncation_Error/s01/CWE197_Numeric_Truncation_Error__int_connect_socket_to_short_74a.cpp
C++
bsd-3-clause
4,835
<?php namespace ZF\Apigility\Doctrine\Server\Query\Provider; use DoctrineModule\Persistence\ObjectManagerAwareInterface; use Zend\Paginator\Adapter\AdapterInterface; use Zend\ServiceManager\AbstractPluginManager; use ZF\Rest\ResourceEvent; interface QueryProviderInterface extends ObjectManagerAwareInterface { /*...
alunys/ApigilityAngularTest
vendor/zfcampus/zf-apigility-doctrine/src/Server/Query/Provider/QueryProviderInterface.php
PHP
bsd-3-clause
1,172
#include <cloudcv.hpp> #include <framework/marshal/marshal.hpp> #include <framework/marshal/node_object_builder.hpp> #include <framework/Job.hpp> #include <framework/NanCheck.hpp> #include <framework/Logger.h> #include "framework/ImageSource.hpp" #include "CameraCalibrationAlgorithm.hpp" using namespace v8;...
MalcolmD/CloudCVPlusDetection
src/modules/cameraCalibration/CameraCalibrationBinding.cpp
C++
bsd-3-clause
10,211
/* * $Id$ */ /* Copyright (c) 2000-2002 Board of Trustees of Leland Stanford Jr. University, all rights reserved. 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...
lockss/lockss-daemon
test/src/org/lockss/mbf/MockMemoryBoundFunctionVote.java
Java
bsd-3-clause
5,392
(function ($) { 'use strict'; var dw, dh, rw, rh, lx, ly; var defaults = { // The text to display within the notice box while loading the zoom image. loadingNotice: 'Loading image', // The text to display within the notice box if an error occurs when loading the zoom image. ...
201528013359030/basic_pai
views/js/easyzoom.js
JavaScript
bsd-3-clause
8,461
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # Adapted from portage/getbinpkg.py -- Portage binary-package helper functions # Copyright 2003-2004 Gentoo Foundation # Distributed under the terms ...
bpsinc-native/src_third_party_chromite
lib/binpkg.py
Python
bsd-3-clause
12,642
// Copyright 2015 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 "config.h" #include "modules/permissions/PermissionsCallback.h" #include "bindings/core/v8/ScriptPromiseResolver.h" #include "modules/permission...
Workday/OpenFrame
third_party/WebKit/Source/modules/permissions/PermissionsCallback.cpp
C++
bsd-3-clause
1,871
<?php /** * This file is part of the Nette Framework (https://nette.org) * Copyright (c) 2004 David Grudl (https://davidgrudl.com) */ namespace Nette\DI; use Nette; /** * Definition used by ContainerBuilder. */ class ServiceDefinition extends Nette\Object { /** @var string|NULL class or interface name */ p...
kivi8/ars-poetica
vendor/nette/di/src/DI/ServiceDefinition.php
PHP
bsd-3-clause
4,863
#!/usr/bin/env python from setuptools import * setup( name='dataflow', version='0.1.1', description='a dataflow library for python', author='Tim Cuthbertson', author_email='tim3d.junk+dataflow@gmail.com', url='http://github.com/gfxmonk/py-dataflow/tree', packages=find_packages(exclude=["test"]), long_descri...
gfxmonk/py-dataflow
setup.py
Python
bsd-3-clause
694
#ifndef NT2_INCLUDE_FUNCTIONS_SCALAR_STORE_HPP_INCLUDED #define NT2_INCLUDE_FUNCTIONS_SCALAR_STORE_HPP_INCLUDED #include <nt2/memory/include/functions/scalar/store.hpp> #endif
hainm/pythran
third_party/nt2/include/functions/scalar/store.hpp
C++
bsd-3-clause
178
using System; using System.Collections; namespace Platform.Xml.Serialization { /// <summary> /// Maintains state required to perform serialization. /// </summary> public sealed class SerializationContext { private readonly IList stack = new ArrayList(); public SerializationParameters Parameters { g...
mwillebrands/Platform
src/Platform.Xml.Serialization/SerializationContext.cs
C#
bsd-3-clause
3,632
using System; using System.Net; namespace LumiSoft.Net.Dns.Client { /// <summary> /// A record class. /// </summary> [Serializable] public class DNS_rr_A : DNS_rr_base { private IPAddress m_IP = null; /// <summary> /// Default constructor. /// </summary> /// <param name="ip">IP addres...
Klaudit/inbox2_desktop
ThirdParty/Src/Lumisoft.Net/DNS/Client/DNS_rr_A.cs
C#
bsd-3-clause
1,419
package ch.hevs.aislab.magpie.event; import org.apache.commons.lang3.StringUtils; import java.util.ArrayList; import java.util.List; import alice.tuprolog.Term; import ch.hevs.aislab.magpie.environment.Services; public class LogicTupleEvent extends MagpieEvent { private String logicRepresentation; public Lo...
aislab-hevs/magpie
MAGPIE/library/src/main/java/ch/hevs/aislab/magpie/event/LogicTupleEvent.java
Java
bsd-3-clause
3,019
/*********************************************************************************************************************** ** ** Copyright (c) 2011, 2014 ETH Zurich ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the ** following c...
patrick-luethi/Envision
ModelBase/src/test_nodes/PositionExtension.cpp
C++
bsd-3-clause
2,073
/* * Copyright (c) 2009-2015, United States Government, as represented by the Secretary of Health and Human Services. * 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 ...
beiyuxinke/CONNECT
Product/Production/Adapters/General/CONNECTDirectConfig/src/main/java/gov/hhs/fha/nhinc/directconfig/service/jaxws/DisassociatePolicyGroupFromDomains.java
Java
bsd-3-clause
4,210
//---------------------------------------------------------------------------- // Anti-Grain Geometry - Version 2.4 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) // // Permission to copy, use, modify, sell and distribute this software // is granted provided this copyright notice appears i...
tommy-u/enable
kiva/agg/agg-24/src/agg_vcgen_stroke.cpp
C++
bsd-3-clause
7,176
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Orchard.Themes; using Orchard.UI.Admin; using Orchard.Data; using ESchool.Models; using Orchard.ContentManagement; using Orchard; using Orchard.Localization; using Orchard.DisplayManagement; using Orchard.U...
prakasha/Orchard1.4
Modules/ESchool/Controllers/Frontend/CourseController.cs
C#
bsd-3-clause
1,352
// Copyright (c) MOSA Project. Licensed under the New BSD License. using Mosa.Compiler.Framework; namespace Mosa.Platform.x86.Instructions { /// <summary> /// Intermediate representation of the arithmetic shift right instruction. /// </summary> public sealed class Sar : X86Instruction { #region Data Members ...
modulexcite/MOSA-Project
Source/Mosa.Platform.x86/Instructions/Sar.cs
C#
bsd-3-clause
1,628
<?php namespace test\g; class e { }
theosyspe/levent_01
vendor/ZF2/bin/test/g/e.php
PHP
bsd-3-clause
35
/* * Copyright (c) 2016, The OpenThread Authors. * 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 ...
openthread/openthread
src/core/net/ip6.cpp
C++
bsd-3-clause
45,337
// 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 "components/omnibox/browser/autocomplete_match.h" #include <algorithm> #include "base/check_op.h" #include "base/cxx17_backports.h" #include "b...
nwjs/chromium.src
components/omnibox/browser/autocomplete_match.cc
C++
bsd-3-clause
58,314
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
stonebig/bokeh
bokeh/command/subcommands/tests/test_secret.py
Python
bsd-3-clause
2,391
/** * @file IdealSolidSolnPhase.cpp Implementation file for an ideal solid * solution model with incompressible thermodynamics (see \ref * thermoprops and \link Cantera::IdealSolidSolnPhase * IdealSolidSolnPhase\endlink). */ /* * Copyright 2006 Sandia Corporation. Under the terms of Contract * DE...
Heathckliff/cantera
src/thermo/IdealSolidSolnPhase.cpp
C++
bsd-3-clause
17,406
/* Copyright (c) 2012-2013, Arvid Norberg 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 conditions and ...
mirror/libtorrent
src/torrent_peer.cpp
C++
bsd-3-clause
7,842
/* Copyright 2016 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, ...
jnewland/kops
vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/1.5/kubernetes/typed/core/v1/doc.go
GO
apache-2.0
921
'use strict'; describe('onDisconnect', function() { var fireproof; beforeEach(function() { fireproof = new Fireproof(firebase); }); describe('#set', function() { it('promises to set the ref to the specified value on disconnect', function() { return fireproof .child('odSet') .on...
airdrummingfool/fireproof
test/spec/lib/on-disconnect.js
JavaScript
isc
2,784
using System.Linq.Expressions; namespace AutoMapper.Mappers { using System.Linq; using System.Reflection; using Configuration; public class ImplicitConversionOperatorMapper : IObjectMapExpression { public object Map(ResolutionContext context) { var implicitO...
jbogard/AutoMapper
src/AutoMapper/Mappers/ImplicitConversionOperatorMapper.cs
C#
mit
1,677
<?php namespace ZEDx\Console\Commands\Module; use File; use Illuminate\Console\Command; use Modules; use ZEDx\Console\Commands\Module\Generators\FileAlreadyExistException; use ZEDx\Console\Commands\Module\Generators\FileGenerator; abstract class GeneratorCommand extends Command { /** * The name of 'name' ar...
zorx/core
src/Console/Commands/Module/GeneratorCommand.php
PHP
mit
2,135
package de.danoeh.antennapod.preferences; import android.app.Activity; import android.app.AlertDialog; import android.app.TimePickerDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.res.Resources; import android.net.wifi.WifiConfigurat...
richq/AntennaPod
app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java
Java
mit
31,136
<?php namespace TDN\DocumentBundle\Entity; use Doctrine\ORM\Mapping as ORM; use TDN\ImageBundle\Entity\Image; /** * TDN\DocumentBundle\Entity\Slider */ class Slider { /** * @var string $pitch */ private $pitch; /** * @var integer $ordre */ private $ordre; /** * @var i...
HamzaBendidane/tdnold
src/TDN/DocumentBundle/Entity/backup 2/Slider.php
PHP
mit
4,670
typedef int sampleInt; class C { void f(); }; void hoge() { sampleInt a = 10; C c; c.f(); }
jovial/nim-libclang
examples/tokenize/samples/sample2.cc
C++
mit
101
var Orbit = requireModule("orbit"); // Globalize loader properties for use by other Orbit packages Orbit.__define__ = define; Orbit.__requireModule__ = requireModule; Orbit.__require__ = require; Orbit.__requirejs__ = requirejs; window.Orbit = Orbit;
opsb/orbit-firebase
build-support/globalize-orbit.js
JavaScript
mit
253
require 'test_helper' describe 'Directives' do describe '#directives' do describe 'non value directives' do it 'accepts public symbol' do subject = Lotus::Action::Cache::Directives.new(:public) subject.values.size.must_equal(1) end it 'accepts private symbol' do subject...
weppos/hanami-controller
test/unit/cache/directives_test.rb
Ruby
mit
3,932
<?php $context = 'prod-hal-api-app'; require dirname(dirname(__DIR__)) . '/bootstrap/bootstrap.php';
ryo88c/ChatWorkNotify
var/www/index.php
PHP
mit
102
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|09 Feb 2017 03:34:58 -0000 vti_extenderversion:SR|6.0.2.8161 vti_backlinkinfo:VX|astro_site/mobile.html astro_site/mobile2.html
akarys92/astro_site
vendor/scrollreveal/_vti_cnf/scrollreveal.min.js
JavaScript
mit
176
// This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. // Project-level suppressions either have no target or are given // a specific target and scoped to a namespace, type, member, etc. // // To add a suppression to this file, right-click the message in the /...
Pvlerick/AutoFixture
Src/AutoFakeItEasy/GlobalSuppressions.cs
C#
mit
805
#include "Binding_pch.h" using namespace gl; namespace glbinding { Function<void, GLboolean> Binding::EdgeFlag("glEdgeFlag"); Function<void, GLsizei> Binding::EdgeFlagFormatNV("glEdgeFlagFormatNV"); Function<void, GLsizei, const void *> Binding::EdgeFlagPointer("glEdgeFlagPointer"); Function<void, GLsizei, GLsiz...
hpicgs/glbinding
source/glbinding/source/Binding_objects_e.cpp
C++
mit
4,797
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2011 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person obta...
bhlzlx/ogre
Components/Terrain/src/OgreTerrain.cpp
C++
mit
145,401
using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.ApplicationModel.Resources; namespace Microsoft.HockeyApp { public class LocalizedStrings { private static ResourceWrapper _localizedResources = null...
dkackman/HockeySDK-Windows
Src/Kit.WP81/Universal/LocalizedStrings.cs
C#
mit
2,406
<?php /* * WellCommerce Open-Source E-Commerce Platform * * This file is part of the WellCommerce package. * * (c) Adam Piotrowski <adam@wellcommerce.org> * * For the full copyright and license information, * please view the LICENSE file that was distributed with this source code. */ namespace WellCommerce\Bu...
diversantvlz/WellCommerce
src/WellCommerce/Bundle/AppBundle/Controller/Admin/ClientController.php
PHP
mit
2,342
'use strict'; module.exports = function copyto(grunt) { // Load task grunt.loadNpmTasks('grunt-copy-to'); // Options return { build: { files: [{ cwd: 'src', src: ['**/*.json'], dest: '.dist/' },{ cwd: 'src...
samsel/Gander
tasks/copyto.js
JavaScript
mit
436
/* define(['iframeResizerContent'], function() { describe('ParentIFrame methods: ', function() { var id = 'parentIFrame'; var log = LOG; it('Get ID of iFrame is same as iFrame', function() { mockInitFromParent(id,log); expect(window.parentIFrame.getId()).toBe(id); closeChild(); }); it('call met...
tlan16/sushi-co
web/protected/controls/iframeResizer/doc/spec/parentIFrameMethodsSpec.js
JavaScript
mit
1,024
package appeng.api.me.util; /** * Pretty much just a place holder right now * */ public interface ICraftRequest { }
ExtraCells/ExtraCells1
src/api/java/appeng/api/me/util/ICraftRequest.java
Java
mit
121
<?php namespace Lib\Services; /** * Internal utility component * * @depends service session * @depends service profiler */ class Util extends \Base\Service { protected $messages = []; protected $memory = [ 'start' => 0, 'end' => 0 ]; protected $time = [ 'start' => 0, '...
iGusev/phalcon-boilerplate
app/library/Services/Util.php
PHP
mit
3,314
require 'rubygems' module YARD module Templates::Helpers # Helper methods for loading and managing markup types. module MarkupHelper class << self # Clears the markup provider cache information. Mainly used for testing. # @return [void] def clear_markup_cache self.mark...
sourcegraph/srclib-ruby
yard/lib/yard/templates/helpers/markup_helper.rb
Ruby
mit
6,420
/** * Copyright (c) 2015-2016 Angelo ZERR. * 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 available at * http://www.eclipse.org/legal/epl-v10.html * * Contributor...
angelozerr/typescript.java
eclipse/jsdt/ts.eclipse.ide.jsdt.ui/src/ts/eclipse/ide/jsdt/internal/ui/ITypeScriptThemeConstants.java
Java
mit
1,914
import * as React from 'react'; import { BsPrefixComponent } from './helpers'; declare class ModalTitle< As extends React.ReactType = 'div' > extends BsPrefixComponent<As> {} export default ModalTitle;
glenjamin/react-bootstrap
types/components/ModalTitle.d.ts
TypeScript
mit
207
<?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...
githubmoros/myclinicsoft
vendor/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Deployments.php
PHP
mit
14,180
import expect from 'expect'; import isFunction from '../../../src/validation/validators/isFunction'; describe('validators', () => { describe('toFunction', () => { it('should return infoObject if requested', () => { expect(isFunction(null, true)) .toEqual({ t...
vgno/roc-config
test/validation/validators/isFunction.js
JavaScript
mit
1,209
using DomainModel.DTO; using DomainModel.Enum; using System; using System.Collections.Generic; using System.Net; using System.Net.Sockets; using System.Threading.Tasks; using System.Web.Http; namespace PingerAPI.Controllers { public class TaskController : ApiController { [HttpPost] public asyn...
Anvesh-Reddy/Pinger
PingerAPI/PingerAPI/Controllers/TaskController.cs
C#
mit
2,814
/*! * NETEYE Activity Indicator jQuery Plugin * * Copyright (c) 2010 NETEYE GmbH * Licensed under the MIT license * * Author: Felix Gnass [fgnass at neteye dot de] * Version: 1.0.0 */ /** * Plugin that renders a customisable activity indicator (spinner) using SVG or VML. */ (function($) { $.fn.activity = ...
MSylvia/feeds
Website/js/jquery.activity-indicator-1.0.1.js
JavaScript
mit
6,993
/* jshint browser:true */ /* global define, google */ define(['underscore', 'backbone', 'oro/translator'], function(_, Backbone, __) { 'use strict'; var $ = Backbone.$; /** * @export oro/mapservice/googlemaps * @class oro.mapservice.Googlemaps * @extends Backbone.View */ return...
minhnguyen-balance/oro_platform
web/bundles/oroaddress/js/mapservice/googlemaps.js
JavaScript
mit
5,828
// Type definitions for temp 0.9 // Project: https://github.com/bruce/node-temp // Definitions by: Daniel Rosenwasser <https://github.com/DanielRosenwasser> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference types="node" /> import * as fs from "fs"; declare namespace temp { interface...
georgemarshall/DefinitelyTyped
types/temp/index.d.ts
TypeScript
mit
1,426
/* * Copyright 2009 ZXing 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 o...
okfn/product-browser-android
src/org/okfn/pod/IntentIntegrator.java
Java
mit
16,341
/* global Dubtrack */ const modal = require('../utils/modal.js'); var isActiveTab = true; window.onfocus = function () { isActiveTab = true; }; window.onblur = function () { isActiveTab = false; }; var onDenyDismiss = function() { modal.create({ title: 'Desktop Notifications', content: "You have dism...
coryshaw1/DubPlus
src/js/utils/notify.js
JavaScript
mit
2,082
pageflow.VideoPlayer.bufferUnderrunWaiting = function(player) { var originalPause = player.pause; player.pause = function() { cancelWaiting(); originalPause.apply(this, arguments); }; function pauseAndPreloadOnUnderrun() { if (bufferUnderrun()) { pauseAndPreload(); } } function buff...
tf/pageflow-dependabot-test
app/assets/javascripts/pageflow/video_player/buffer_underrun_waiting.js
JavaScript
mit
1,736
using MonoGame.Extended.Sprites; using Xunit; namespace MonoGame.Extended.Entities.Tests { public class ComponentManagerTests { [Fact] public void GetMapperForType() { var componentManager = new ComponentManager(); var transformMapper = componentManager.GetMappe...
craftworkgames/MonoGame.Extended
src/cs/Tests/MonoGame.Extended.Entities.Tests/ComponentManagerTests.cs
C#
mit
1,586
# User Instructions # # Write a function 'sub1' that, given a # string, embeds that string in # the string: # "I think X is a perfectly normal thing to do in public." # where X is replaced by the given # string. # given_string = "I think %s is a perfectly normal thing to do in public." def sub1(s): return gi...
KellyChan/python-examples
web/gae/python/b_words_replaced.py
Python
mit
581
# Cookbook Name:: shared # Recipe:: _hosts - run on base node - copies and sets permissions on host file # # Copyright (c) 2015 Charles T Betz, All Rights Reserved. # Recipe for all nodes within Calavera # from files directory #ssh and network setup # from files directory file_map = { "calaverahosts" => "/home/vag...
svrc-pivotal/Calavera
cookbooks/base/recipes/_hosts.rb
Ruby
mit
881
define([ 'extensions/collections/collection' ], function (Collection) { return Collection.extend({ initialize: function (models, options) { if(options !== undefined){ options.flattenEverything = false; } return Collection.prototype.initialize.apply(this, arguments); }, parse:...
alphagov/spotlight
app/common/collections/grouped_timeseries.js
JavaScript
mit
2,654
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
ryantheleach/SpongeCommon
src/main/java/org/spongepowered/common/command/SpongeCommandManager.java
Java
mit
13,967
from .downloader_base import DownloaderBase from ... import logger log = logger.get(__name__) import traceback import subprocess import shutil from ... import settings class ExternalDownloader(DownloaderBase): """Abstract Base class for downloading through an external utility""" program = None args = []...
Colorsublime/Colorsublime-Plugin
colorsublime/http/downloaders/external.py
Python
mit
843
/** * \file register_loader_saver_odgi.cpp * Defines IO for a PackedGraph from stream files. */ #include <arpa/inet.h> #include <vg/io/registry.hpp> #include "register_loader_saver_odgi.hpp" #include "handle.hpp" #include "bdsg/odgi.hpp" namespace vg { namespace io { using namespace std; using namespace vg::io;...
ekg/vg
src/io/register_loader_saver_odgi.cpp
C++
mit
1,329
<?php class __USE_STATIC_ACCESS__Filter { /***********************************************************************************/ /* FILTER LIBRARY */ /***********************************************************************************/ /* Yazar: Ozan UYKUN <ozanbote@wi...
erdidoqan/znframework
System/Libraries/Helpers/Filter.php
PHP
mit
3,266
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Media; namespace VirtualCollection.VirtualCollection { public class VirtualizingWrapPanel : Virtualizi...
tipunch74/MaterialDesignInXamlToolkit
paket-files/samueldjack/VirtualCollection/VirtualCollection/VirtualCollection/VirtualizingWrapPanel.cs
C#
mit
15,915
using Foundation; using UIKit; namespace XamarinSimulatedSensors.iOS { // The UIApplicationDelegate for the application. This class is responsible for launching the // User Interface of the application, as well as listening (and optionally responding) to application events from iOS. [Register ("AppDelegate")] pub...
MSOpenTech/connectthedots
Devices/DirectlyConnectedDevices/XamarinSimulatedSensors/XamarinSimulatedSensors/XamarinSimulatedSensors.iOS/AppDelegate.cs
C#
mit
2,158
package math.geometry; interface Shape { double calcArea(); }
joaopedronardari/COO-EACHUSP
Listas/Lista 1/4/src/math/geometry/Shape.java
Java
mit
63
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Runtime.InteropServices; internal static partial class Interop { internal static partial class Sys { [DllImport(Libraries.Sy...
josguil/corefx
src/Common/src/Interop/Unix/System.Native/Interop.GetPeerName.cs
C#
mit
495
package com.ibanheiz.model; public class Erdinger extends Cerveja { @Override public void info() { System.out.println("Sou uma breja alemã boa e modinha"); } }
MarcosToledo/java-design-patterns
FactoryMethod/src/com/ibanheiz/model/Erdinger.java
Java
mit
169
using System; using System.Collections.Generic; using System.Threading.Tasks; using AllReady.Areas.Admin.Features.Itineraries; using AllReady.Features.Notifications; using AllReady.Models; using MediatR; using Microsoft.AspNetCore.Mvc.Rendering; using Moq; using Xunit; namespace AllReady.UnitTest.Areas.Admin.Features...
mheggeseth/allReady
AllReadyApp/Web-App/AllReady.UnitTest/Areas/Admin/Features/Itineraries/AddTeamMemberCommandHandlerAsyncTests.cs
C#
mit
4,697
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using Windows.UI.Xaml; using Windows.UI.Xaml.Data; namespace Microsoft.HockeyApp.Tools { /// <summary> /// xaml converter boolean to visibility ...
bitstadium/HockeySDK-Windows
Src/Kit.WP81/Universal/Tools/BooleanToVisibilityConverter.cs
C#
mit
2,258
import { isUndefined, isObject } from '../utils/isType'; $(() => { // url for the api we will be querying let url = ''; // key/value lookup for standards const descriptions = {}; // cleaned up structure of the API results const minTree = {}; // keeps track of how many waiting api-requests still need to ...
DigitalCurationCentre/roadmap
app/javascript/src/answers/rdaMetadata.js
JavaScript
mit
16,053