repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
dushmis/Oracle-Cloud
PaaS_SaaS_Accelerator_RESTFulFacade/XJC_Beans/src/com/oracle/xmlns/apps/sales/opptymgmt/opportunities/opportunityservice/types/FindOpportunityAsyncResponse.java
2470
// // 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...
bsd-3-clause
RDFLib/rdflib
test/test_issue084.py
4877
from codecs import getreader from io import BytesIO, StringIO from rdflib import URIRef, Literal from rdflib.graph import Graph rdf = """@prefix skos: <http://www.w3.org/2004/02/skos/core#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix : <http://www.test.org/#> . :world rdf:type skos:Concept...
bsd-3-clause
ickStream/ickstream-java-common
ickprotocol/content/src/main/java/com/ickstream/protocol/service/content/GetNextDynamicPlaylistTracksRequest.java
3004
/* * Copyright (c) 2013-2014, ickStream GmbH * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, this list ...
bsd-3-clause
GoBelieveIO/voip_android
asynctcp/src/androidTest/java/com/beetle/asynctcp/ApplicationTest.java
350
package com.beetle.asynctcp; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { sup...
bsd-3-clause
gonum/gonum
lapack/testlapack/dgesvd.go
12975
// Copyright ©2015 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 testlapack import ( "fmt" "math" "sort" "testing" "golang.org/x/exp/rand" "gonum.org/v1/gonum/blas" "gonum.org/v1/gonum/blas/blas64" "gon...
bsd-3-clause
espadrine/opera
chromium/src/third_party/WebKit/Source/core/html/ButtonInputType.cpp
2104
/* * Copyright (C) 2010 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 of conditio...
bsd-3-clause
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE36_Absolute_Path_Traversal/s01/CWE36_Absolute_Path_Traversal__char_console_ofstream_64b.cpp
1815
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE36_Absolute_Path_Traversal__char_console_ofstream_64b.cpp Label Definition File: CWE36_Absolute_Path_Traversal.label.xml Template File: sources-sink-64b.tmpl.cpp */ /* * @description * CWE: 36 Absolute Path Traversal * BadSource: console Read input from the co...
bsd-3-clause
hellhovnd/dentexchange
dentexchange/apps/search/views.py
2012
# -*- coding:utf-8 -*- from django.views.generic.base import TemplateView, View from django.views.generic.list import MultipleObjectMixin from braces import views from .tasks import EmployeeSearchResultsTask, EmployerSearchResultsTask from .forms import SearchForm, SearchFiltersForm from . import constants class Se...
bsd-3-clause
leighpauls/k2cro4
chrome/common/time_format.cc
13473
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/common/time_format.h" #include <vector> #include "base/lazy_instance.h" #include "base/logging.h" #include "base/memory/scoped_ptr....
bsd-3-clause
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE415_Double_Free/s01/CWE415_Double_Free__new_delete_array_int_82_goodG2B.cpp
942
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE415_Double_Free__new_delete_array_int_82_goodG2B.cpp Label Definition File: CWE415_Double_Free__new_delete_array.label.xml Template File: sources-sinks-82_goodG2B.tmpl.cpp */ /* * @description * CWE: 415 Double Free * BadSource: Allocate data using new and De...
bsd-3-clause
emilsjolander/css-layout
src/csharp/Facebook.CSSLayout/MeasureOutput.cs
829
/** * Copyright (c) 2014, 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. */ namespace Facebook...
bsd-3-clause
notnoop/java-apns
src/test/java/com/notnoop/apns/internal/ApnsConnectionTest.java
3697
/* * Copyright 2009, Mahmood Ali. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list o...
bsd-3-clause
delkyd/Oracle-Cloud
PaaS-SaaS_HealthCareApp/DoctorPatientCRMExtension/HealthCare/HealthCareWSProxyClient/src/com/oracle/ptsdemo/healthcare/wsclient/osc/salesparty/generated/GetDfltObjAttrHints.java
2175
package com.oracle.ptsdemo.healthcare.wsclient.osc.salesparty.generated; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p...
bsd-3-clause
peterayeni/rapidsms-clickatell
rclickatell/admin.py
847
from django.contrib import admin from rclickatell.models import Message, MessageStatus class MessageAdmin(admin.ModelAdmin): list_display = ('id', 'date', 'connection', 'api_message_id', 'body') ordering = ('-date',) list_filter = ('date',) admin.site.register(Message, MessageAdmin) class MessageStatu...
bsd-3-clause
mikesavegnago/blog
module/Main/Module.php
1057
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD Lic...
bsd-3-clause
patrickianwilson/vijava-contrib
src/main/java/com/vmware/vim25/UplinkPortVlanUntrunkedEvent.java
1857
/*================================================================================ Copyright (c) 2013 Steve Jin. 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 re...
bsd-3-clause
zakki/openhsp
package/win32/android/gameplay/src/lua/lua_Container.cpp
182045
#include "Base.h" #include "ScriptController.h" #include "lua_Container.h" #include "AbsoluteLayout.h" #include "Animation.h" #include "AnimationTarget.h" #include "Base.h" #include "Button.h" #include "CheckBox.h" #include "Container.h" #include "Control.h" #include "FlowLayout.h" #include "Game.h" #inclu...
bsd-3-clause
debsankha/networkx
setup.py
4877
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Setup script for networkx You can install networkx with python setup.py install """ from glob import glob import os import sys if os.path.exists('MANIFEST'): os.remove('MANIFEST') from setuptools import setup if sys.argv[-1] == 'setup.py': print("To install,...
bsd-3-clause
guilhermebr/tsuru
app/migrate/migrate.go
3343
// Copyright 2017 tsuru 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 migrate import ( "encoding/json" "fmt" "sort" "github.com/globalsign/mgo/bson" "github.com/tsuru/tsuru/app" "github.com/tsuru/tsuru/app/bind" "g...
bsd-3-clause
cheminfo/openchemlib-js
src/com/actelion/research/gwt/chemlib/com/actelion/research/share/gui/editor/actions/ZoomRotateAction.java
3718
/* * Copyright (c) 1997 - 2016 * Actelion Pharmaceuticals Ltd. * Gewerbestrasse 16 * CH-4123 Allschwil, Switzerland * * 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 sour...
bsd-3-clause
datachand/lithium
tests/cases/security/HashTest.php
4619
<?php /** * li₃: the most RAD framework for PHP (http://li3.me) * * Copyright 2015, Union of RAD. All rights reserved. This source * code is distributed under the terms of the BSD 3-Clause License. * The full license text can be found in the LICENSE.txt file. */ namespace lithium\tests\cases\security; use lithi...
bsd-3-clause
bdh1011/cupeye
venv/lib/python2.7/site-packages/sqlalchemy/ext/declarative/api.py
22707
# ext/declarative/api.py # Copyright (C) 2005-2015 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Public API functions and helpers for declarative.""" from ...schema impor...
bsd-3-clause
TreeBASE/treebase
treebase-core/src/main/java/org/cipres/treebase/util/FlatFileReader.java
3604
package org.cipres.treebase.util; import java.io.IOException; import java.io.Reader; import java.util.Iterator; import java.util.NoSuchElementException; public class FlatFileReader<RecordType> implements Iterable<RecordType> { Reader source; String lineTerminator = "\n"; StringBuilder buf = new StringBuilder(""); ...
bsd-3-clause
davidcox/freetype-py
examples/shader.py
5370
#!/usr/bin/env python # -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (C) 2009-2010 Nicolas P. Rougier # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as part of this software. # -------------...
bsd-3-clause
ut-osa/laminar
jikesrvm-3.0.0/MMTk/src/org/mmtk/utility/alloc/DumpLinearScan.java
987
/* * This file is part of the Jikes RVM project (http://jikesrvm.org). * * This file is licensed to You under the Common Public License (CPL); * You may not use this file except in compliance with the License. You * may obtain a copy of the License at * * http://www.opensource.org/licenses/cpl1.0.php *...
bsd-3-clause
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s01/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193_char_ncpy_53a.cpp
2454
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193_char_ncpy_53a.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193.label.xml Template File: sources-sink-53a.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Alloca...
bsd-3-clause
crosswalk-project/blink-crosswalk
LayoutTests/http/tests/serviceworker/webexposed/resources/global-interface-listing-worker.js
1557
/* Adopted from LayoutTests/webexposed/resources/global-interface-listing.js */ var globals = []; function is_constructor(property_name) { var descriptor = Object.getOwnPropertyDescriptor(this, property_name); if (descriptor.value === undefined || descriptor.value.prototype === undefined) { return false...
bsd-3-clause
PattiMetz/idoweddings
web/js/ckeditor/plugins/htmlbuttons/plugin.js
5695
/** * @file HTML Buttons plugin for CKEditor * Copyright (C) 2012 Alfonso Martínez de Lizarrondo * A simple plugin to help create custom buttons to insert HTML blocks * Version 1.1 - 1.3 Modified by Eric Arnol-Martin (http://eamster.tk) * Added in Version 1.1: New HTML inserts work properly when selecting element...
bsd-3-clause
Just-D/chromium-1
third_party/polymer/v1_0/components-chromium/iron-collapse/iron-collapse-extracted.js
2732
Polymer({ is: 'iron-collapse', properties: { /** * If true, the orientation is horizontal; otherwise is vertical. * * @attribute horizontal */ horizontal: { type: Boolean, value: false, observer: '_horizontalChanged' }, /** ...
bsd-3-clause
espadrine/opera
chromium/src/third_party/WebKit/Source/core/svg/SVGAnimateColorElement.cpp
2068
/* * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> * Copyright (C) 2007 Eric Seidel <eric@webkit.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * Licen...
bsd-3-clause
cloderic/SmartAlarmClock
src/server/stateVar.py
122
speedFactor = 0 #For demonstration purposes currentTime = 0.0 #For demonstration purposes t_instance = None agentId = -1
bsd-3-clause
silverstripe-labs/silverstripe-payment_dpshosted
thirdparty/PxAccess.php
6112
<?php /** * @package payment_dpshosted * @see http://civicrm.org */ class PxAccess { var $Mac_Key, $Des_Key; var $PxAccess_Url; var $PxAccess_Userid; function PxAccess($Url, $UserId, $Des_Key, $Mac_Key){ error_reporting(E_ERROR); $this->Mac_Key = pack("H*",$Mac_Key); $this->Des_Key = pack("H*", $Des_Key); ...
bsd-3-clause
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE23_Relative_Path_Traversal/s04/CWE23_Relative_Path_Traversal__wchar_t_file_ifstream_45.cpp
3698
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE23_Relative_Path_Traversal__wchar_t_file_ifstream_45.cpp Label Definition File: CWE23_Relative_Path_Traversal.label.xml Template File: sources-sink-45.tmpl.cpp */ /* * @description * CWE: 23 Relative Path Traversal * BadSource: file Read input from a file * ...
bsd-3-clause
nacl-webkit/chrome_deps
chrome/browser/tab_contents/render_view_context_menu_browsertest.cc
4860
// Copyright (c) 2012 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 <string> #include "base/memory/scoped_ptr.h" #include "base/string16.h" #include "base/utf_string_conversions.h" #include "chrome/app/chrome...
bsd-3-clause
manti-by/POD
app/bearing/parser.py
1056
import logging from bearing.constants import BearingSource from bearing.parsers.fractional import FractionalBearingParser from bearing.parsers.rolling import RollingBearingParser from bearing.parsers.swivel import SwivelBearingParser logger = logging.getLogger() class BearingParser(object): map = { Bea...
bsd-3-clause
cedadev/ndg_xacml
ndg/xacml/core/functions/v2/__init__.py
363
"""NDG XACML package for XACML version 2.0 match functions NERC DataGrid """ __author__ = "P J Kershaw" __date__ = "26/03/10" __copyright__ = "(C) 2010 Science and Technology Facilities Council" __contact__ = "Philip.Kershaw@stfc.ac.uk" __license__ = "BSD - see LICENSE file in top-level directory" __contact__ = "Phili...
bsd-3-clause
XQ-quadrant/gwx
frontend/views/room/create.php
407
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model common\models\Room */ $this->title = 'Create Room'; $this->params['breadcrumbs'][] = ['label' => 'Rooms', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="room-create"> <h1><?= Html::encode($this->title) ...
bsd-3-clause
snowyu/cocoxml
original/cpp/coco/BitArray.cpp
3676
/*------------------------------------------------------------------------- Compiler Generator Coco/R, Copyright (c) 1990, 2004 Hanspeter Moessenboeck, University of Linz extended by M. Loeberbauer & A. Woess, Univ. of Linz ported to C++ by Csaba Balazs, University of Szeged with improvements by Pat Terry, Rhodes Unive...
bsd-3-clause
id144/dx11-vvvv
Nodes/VVVV.DX11.Nodes.Assimp/AssimpMaterialNode.cs
3964
using System; using System.Collections.Generic; using System.Linq; using System.Text; using VVVV.PluginInterfaces.V2; using AssimpNet; using SlimDX; using VVVV.Utils.VColor; namespace VVVV.DX11.Nodes.AssetImport { [PluginInfo(Name = "Material", Category = "Assimp", Author = "vux,flateric")] public class Assim...
bsd-3-clause
Tietoarkisto/metka
metka/src/main/java/fi/uta/fsd/metka/mvc/services/ExpertSearchService.java
3634
/************************************************************************************** * Copyright (c) 2013-2015, Finnish Social Science Data Archive/University of Tampere * * * * All rights reserved. ...
bsd-3-clause
luminousfennell/jgs
GradualConstraints/InstrumentationSupport/src/test/java/de/unifreiburg/cs/proglang/jgs/examples/AnalysisResults3.scala
5220
package de.unifreiburg.cs.proglang.jgs.examples import de.unifreiburg.cs.proglang.jgs.typing.ExampleTypes.{Dynamic, Public} import de.unifreiburg.cs.proglang.jgs.instrumentation._ import soot.{Local, SootMethod} import soot.jimple.Stmt /** * Artifical results for ExampleTests2 * @tparam Level Level may be static,...
bsd-3-clause
jacky-young/crosswalk-test-suite
misc/webappmanu-linux-tests/webapp/resources/org.webapps.ismartbook/src/app/plugins/book/singlePage/view.js
5391
define(function(require,exports,module){ var PluginBase = require('pkg!pluginBase'); var config = require('pkg!config'); var Tpl = require('text!./page.tpl'); var Unit = require('../unit'); var Handlebars = require('handlebars'); var pageTpl = Handlebars.compile(Tpl); var Model = require('./model'); va...
bsd-3-clause
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE758_Undefined_Behavior/CWE758_Undefined_Behavior__struct_pointer_new_use_02.cpp
3344
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE758_Undefined_Behavior__struct_pointer_new_use_02.cpp Label Definition File: CWE758_Undefined_Behavior.new.label.xml Template File: point-flaw-02.tmpl.cpp */ /* * @description * CWE: 758 Undefined Behavior * Sinks: new_use * GoodSink: Initialize then use ...
bsd-3-clause
sjsafranek/go-mapnik
tileserver/mapnik/mapnik_c_api.cpp
6617
#include <mapnik/version.hpp> #include <mapnik/map.hpp> #include <mapnik/color.hpp> #include <mapnik/image_util.hpp> #include <mapnik/agg_renderer.hpp> #include <mapnik/load_map.hpp> #include <mapnik/datasource_cache.hpp> #include <mapnik/projection.hpp> #include <mapnik/font_engine_freetype.hpp> #if MAPNIK_VERSION >=...
bsd-3-clause
hainm/pythran
third_party/nt2/include/functions/simd/hilb.hpp
170
#ifndef NT2_INCLUDE_FUNCTIONS_SIMD_HILB_HPP_INCLUDED #define NT2_INCLUDE_FUNCTIONS_SIMD_HILB_HPP_INCLUDED #include <nt2/gallery/include/functions/simd/hilb.hpp> #endif
bsd-3-clause
leiferikb/bitpop-private
content/browser/web_contents/navigation_controller_impl_unittest.cc
126806
// Copyright (c) 2012 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 "base/basictypes.h" #include "base/bind.h" #include "base/file_util.h" #include "base/memory/scoped_ptr.h" #include "base/path_service.h" #in...
bsd-3-clause
cpunsola/kiosko
tests/ZendTest/ModuleManager/TestAsset/ListenerTestModule/src/Foo/Bar.php
635
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace ...
bsd-3-clause
youtube/cobalt
third_party/llvm-project/lldb/packages/Python/lldbsuite/test/functionalities/darwin_log/filter/regex/activity-chain/TestDarwinLogFilterRegexActivityChain.py
5219
""" Test basic DarwinLog functionality provided by the StructuredDataDarwinLog plugin. These tests are currently only supported when running against Darwin targets. """ from __future__ import print_function import lldb import os import re from lldbsuite.test import decorators from lldbsuite.test import lldbtest fro...
bsd-3-clause
brookslyrette/draft-js
src/component/handlers/edit/editOnBlur.js
1467
/** * 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...
bsd-3-clause
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s05/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806_wchar_t_ncpy_74b.cpp
1756
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806_wchar_t_ncpy_74b.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806.label.xml Template File: sources-sink-74b.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Ini...
bsd-3-clause
mrgloom/arrayfire
src/backend/cuda/Array.cpp
9333
/******************************************************* * 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 **********************************************...
bsd-3-clause
elpd/coop
library/Zend/Tool/Project/Context/Zf/AbstractClassFile.php
2837
<?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 ...
mit
priyavadan/origen
spec/componentable/parent_spec.rb
23206
RSpec.shared_examples :componentable_parent_spec do module ComponentableSpec class AddTest attr_reader :opts def initialize(options = {}) @opts = options end end module ComponentableParentInitTest class InitWithModel include Origen::Model include...
mit
ajanson/SCIRun
src/Interface/Modules/Render/ES/CoreBootstrap.cc
7090
#include <cstdint> #include <entity-system/EmptySystem.hpp> #include <es-systems/SystemCore.hpp> #include <glm/gtc/matrix_transform.hpp> #include <es-fs/Filesystem.hpp> #include <es-fs/fscomp/StaticFS.hpp> #include <es-acorn/Acorn.hpp> #include <es-general/comp/StaticObjRefID.hpp> #include <es-general/comp/StaticCamer...
mit
sayan801/twilio-php
Rest/Api/V2010/Account/Recording/AddOnResultList.php
4785
<?php /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ namespace Twilio\Rest\Api\V2010\Account\Recording; use Twilio\ListResource; use Twilio\Values; use Twilio\Version; class AddOnResultList extends ListResource { /** * Construct the AddOnResultL...
mit
JustStone/ESRedis
src/main/java/redis/clients/johm/collections/RedisArray.java
5367
package redis.clients.johm.collections; import java.lang.reflect.Array; import java.lang.reflect.Field; import redis.clients.johm.Indexed; import redis.clients.johm.JOhm; import redis.clients.johm.JOhmUtils; import redis.clients.johm.Nest; import redis.clients.johm.JOhmUtils.Convertor; import redis.clients.johm.JOhmU...
mit
karataliu/RESTier
src/Shared/EnumerableExtensions.cs
732
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. namespace System.Collections { internal static class EnumerableExtensions { public static object SingleOrDefault(this IEnumerable enumerable) ...
mit
goddamnhippie/ahoy
lib/ahoy/stores/base_store.rb
1991
module Ahoy module Stores class BaseStore def initialize(options) @options = options end def track_visit(options) end def track_event(name, properties, options) end def visit end def authenticate(user) @user = user if visit and vis...
mit
almadaocta/lordbike-production
errors/includes/src/Zend_Gdata_YouTube_PlaylistListFeed.php
2130
<?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 th...
mit
electron/electron
spec/fixtures/module/preload-error-exception.js
33
throw new Error('Hello World!');
mit
ddaspit/libpalaso
SIL.Windows.Forms/Properties/AssemblyInfo.cs
894
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("SIL...
mit
tf/pageflow-dependabot-test
node_package/src/collections/__spec__/createItemsSelector-spec.js
1533
import createItemsSelector from '../createItemsSelector'; import {expect} from 'support/chai'; describe('createItemsSelector', () => { describe('creates selector that', () => { it('can look up item collection', () => { const state = { posts: { 4: {id: 4, title: 'Minor news'}, 5...
mit
wking/swc-amy
workshops/migrations/0038_auto_20150809_0534.py
783
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('workshops', '0037_auto_20150728_0227'), ] operations = [ migrations.AlterField( model_name='event', ...
mit
constabulary/gb
cmd/gb-vendor/fetch.go
6559
package main import ( "flag" "fmt" "net/url" "path/filepath" "runtime" "sort" "go/build" "github.com/constabulary/gb" "github.com/constabulary/gb/cmd" "github.com/constabulary/gb/internal/fileutils" "github.com/constabulary/gb/internal/vendor" "github.com/pkg/errors" ) var ( // gb vendor fetch command ...
mit
QuaintShanty/DiscordBot
node_modules/discord.js/src/client/actions/GuildRoleUpdate.js
1054
const Action = require('./Action'); const Constants = require('../../util/Constants'); const cloneObject = require('../../util/CloneObject'); class GuildRoleUpdateAction extends Action { handle(data) { const client = this.client; const guild = client.guilds.get(data.guild_id); if (guild) { const r...
mit
jdrider/rhodes
platform/bb/RubyVM/src/com/rho/net/AsyncHttp.java
14711
/*------------------------------------------------------------------------ * (The MIT License) * * Copyright (c) 2008-2011 Rhomobile, Inc. * * 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 ...
mit
steven-st-james/mapping-slc
modules/users/server/controllers/users/users.profile.server.controller.js
3388
'use strict'; /** * Module dependencies */ var _ = require('lodash'), fs = require('fs'), path = require('path'), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')), mongoose = require('mongoose'), config = require(path.resolve('./config/config')), User = m...
mit
atpham256/azure-sdk-for-net
src/SDKs/Network/Management.Network/Generated/AvailableEndpointServicesOperations.cs
18266
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespac...
mit
MarcelGerber/CodeMirror
src/measurement/position_measurement.js
28671
import { buildLineContent, LineView } from "../line/line_data" import { clipPos, Pos } from "../line/pos" import { collapsedSpanAtEnd, heightAtLine, lineIsHidden, visualLine } from "../line/spans" import { getLine, lineAtHeight, lineNo, updateLineHeight } from "../line/utils_line" import { bidiOther, getBidiPartAt, get...
mit
dbolkensteyn/sonar-msbuild-runner
SonarQube.TeamBuild.PreProcessor/Roslyn/Model/AdditionalFile.cs
1126
//----------------------------------------------------------------------- // <copyright file="AdditionalFile.cs" company="SonarSource SA and Microsoft Corporation"> // Copyright (c) SonarSource SA and Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project roo...
mit
SnceGroup/snce-website
web/share/translations/untranslated/translation.ts
950345
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0"> <context> <name>contentstructuremenu/show_content_structure</name> <message> <source>Node ID: %node_id Visibility: %visibility</source> <translation type="unfinished"></translation> </message> </context> <context> <n...
mit
hcliu/mamiya
lib/mamiya/cli/client.rb
14195
require 'mamiya/cli' require 'net/http' require 'net/https' require 'rack/utils' require 'uri' require 'json' require 'thor' require 'mamiya/util/label_matcher' module Mamiya class CLI < Thor class Client < Thor class_option :master, aliases: '-u', type: :string, default: 'http://localhost:7761/' c...
mit
manekinekko/angular2-dependencies-graph
src/modules/cli/test/src/soundcloud-ngrx/src/tracklists/reducers/tracklists-reducer.spec.ts
2863
import { Map } from 'immutable'; import { SearchActions } from '../../search/search-actions'; import { TracklistRecord } from '../models/tracklist'; import { TracklistActions } from '../tracklist-actions'; import { tracklistsReducer } from './tracklists-reducer'; describe('tracklists', () => { describe('tracklistsR...
mit
g-vidal/mraa
tests/mock/general_checks.py
528
#!/usr/bin/env python # Author: Costin Constantin <costin.c.constantin@intel.com> # Copyright (c) 2015 Intel Corporation. # # Contributors: Alex Tereschenko <alext.mkrs@gmail.com> # # SPDX-License-Identifier: MIT import mraa as m import unittest as u class GeneralChecks(u.TestCase): def test_mraa_version(self): ...
mit
saurabhbhatia/signal-wiki
vendor/plugins/rspec-rails/lib/spec/rails/version.rb
770
module Spec module Rails module VERSION #:nodoc: BUILD_TIME_UTC = 20080418033155 end end end # Verify that the plugin has the same revision as RSpec if Spec::Rails::VERSION::BUILD_TIME_UTC != Spec::VERSION::BUILD_TIME_UTC raise <<-EOF ###################################################...
mit
tagalpha/library
app/code/core/Mage/Eav/Model/Mysql4/Form/Type.php
1193
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
mit
brucevsked/vskeddemolist
vskeddemos/projects/ocr/lingyunocr/sdk/hcicloud_sdk_3.9.7.18580_ocr_win32_java/sdk/Java/doc/DevGuide/html/hci_dev_sys_api.js
626
var hci_dev_sys_api = [ [ "系统模块", "hci_sys_intro_page.html", [ [ "1. 初始化/终止", "hci_sys_intro_page.html#hci_sys_init", null ], [ "2. 获取授权文件", "hci_sys_intro_page.html#hci_sys_check_auth", null ], [ "3. 更新授权文件", "hci_sys_intro_page.html#hci_sys_update_auth", null ], [ "4. 检查本地资源文件更新", "hci_sys...
mit
flavour/eden
static/scripts/S3/s3.ui.roles.min.js
12455
/* 2018-2021 (c) Sahana Software Foundation @license MIT requires jQuery 1.9.1+ requires jQuery UI 1.10 widget factory */ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var g=0;return function(){return g<a.length?{done:!1,value:a[g++]}:{done:!0}}};$jscomp.arrayIterator=function(a){r...
mit
Moccine/global-service-plus.com
web/libariries/bootstrap/node_modules/grunt-legacy-util/node_modules/lodash/tap.js
706
/** * This method invokes `interceptor` and returns `value`. The interceptor * is invoked with one argument; (value). The purpose of this method is to * "tap into" a method chain in order to modify intermediate results. * * @static * @memberOf _ * @category Seq * @param {*} value The value to provide to...
mit
rubygem/website
gems/ruby/2.2.0/gems/jwt-1.2.1/lib/jwt.rb
4861
# # JSON Web Token implementation # # Should be up to date with the latest spec: # http://self-issued.info/docs/draft-jones-json-web-token-06.html require "base64" require "openssl" require "jwt/json" module JWT class DecodeError < StandardError; end class ExpiredSignature < StandardError; end extend JWT::Json ...
mit
elvisgs/sped2db
migrations/fiscal/v010/081_create_table_reg_c177.rb
323
Sequel.migration do change do create_table :reg_c177 do column :id, Integer, primary_key: true column :id_pai, Integer, index: true, null: false column :cod_selo_ipi, String, size: 6 column :qt_selo_ipi, String, size: 12 column :cnpj_pai, String, size: 14, index: true end end e...
mit
ChrononGit/hackthis.co.uk
html/files/js/chat.js
9880
$(function() { if (socket && false) { var username = $('body').attr('data-username'); var key = $('body').attr('data-key'); /* CHAT */ var chat_topic = 'Global chat'; var chat_names = {}; var connected = false, reconnect = false; function connect...
mit
alexkolar/home-assistant
homeassistant/components/alarm_control_panel/__init__.py
2797
""" homeassistant.components.alarm_control_panel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Component to interface with a alarm control panel. """ import logging from homeassistant.helpers.entity import Entity from homeassistant.helpers.entity_component import EntityComponent from homeassistant.components import verisure from hom...
mit
stanleygomes/stanleygomes.github.io
projects/stanley-projects/lab/coalatec/lab/filmes/incphp/funcoes.php
3630
<?php //verificar se precisa de ... no final da string function limitartexto($valor,$tam){ $valortam=strlen($valor); if($valortam>$tam){ $valor=substr($valor,0,$tam)."..."; } return $valor.$ret; } //gerar valor aleatorio para alguma string function aleatorio(){ $string=md5(time().mt_rand(1,1000000)); ...
mit
tcew/OCCA
scripts/occaInfo.cpp
102
#include "occa.hpp" int main(int argc, char **argv){ occa::printAvailableDevices(); return 0; }
mit
GProulx/tweetsharp
src/TweetSharp/TwitterDateTime.cs
9099
using System; using System.Collections.Generic; using System.ComponentModel; using System.Globalization; using System.Runtime.Serialization; using System.Threading; #if WINRT using System.Reflection; #endif #if Smartphone using TweetSharp.Core.Attributes; #endif #if SILVERLIGHT using System.Reflection; #endif names...
mit
bullmastiffo/Contour
Tests/Contour.Common.Tests/ExpiresSpecs.cs
6575
namespace Contour.Common.Tests { using System; using FluentAssertions; using Contour.Caching; using NUnit.Framework; /// <summary> /// The expires specs. /// </summary> // ReSharper disable InconsistentNaming public class ExpiresSpecs { /// <summary> ...
mit
puneetkumar712/reactnativeTest
src/screens/auth/components/registerComponent.android.js
959
import React, { ProgressBarAndroid, StyleSheet, Text, TouchableNativeFeedback, View } from 'react-native'; import commonStyles from './registerComponentStyles'; const styles = StyleSheet.create(commonStyles); const RegisterComponent = ({ onRegister, isRegistering, buttonText }) => { const onPressRegister = () => o...
mit
fengari-lua/fengari
test/ldblib.test.js
8497
"use strict"; const lua = require('../src/lua.js'); const lauxlib = require('../src/lauxlib.js'); const lualib = require('../src/lualib.js'); const {to_luastring} = require("../src/fengaricore.js"); test('debug.sethook', () => { let L = lauxlib.luaL_newstate(); if (!L) throw Error("failed to create lua state"...
mit
LiveZenLK/CeygateWEBbuilder
themes/pro/footer.php
2942
<!-- Inner Container end --> </div></div> <!-- Footer --> <footer> <div class="container"> <? $footer = new Block('be-theme-pro-footer'); ?> <? $footer->html('{elements}');?> <? $footer->set_global(true);?> <? $footer->set_resizable(false);?> <? $footer->add_css_class("row");?> <? $blo...
mit
PhearZero/phear-scanner
bin/nmap-openshift/nselib/ipOps.lua
26044
--- -- Utility functions for manipulating and comparing IP addresses. -- -- @copyright Same as Nmap--See https://nmap.org/book/man-legal.html local bin = require "bin" local bit = require "bit" local stdnse = require "stdnse" local string = require "string" local table = require "table" local type = type local ipa...
mit
NekR/webpack
test/helpers/LogTestPlugin.js
933
module.exports = class LogTestPlugin { constructor(noTraced) { this.noTraced = noTraced; } apply(compiler) { const logSome = logger => { logger.group("Group"); if (!this.noTraced) { logger.error("Error"); logger.warn("Warning"); } logger.info("Info"); logger.log("Log"); logger.debug("De...
mit
osbridge/openconferenceware
spec/factories/proposal_factory.rb
1714
# Return a proposal for the +event+, using it's session_types, tracks and # rooms. Accepts an optional +opts+ which is passed to the :proposal factory. # # Example: # event = create :populated_event # proposal = proposal_for_event(event) # proposal2 = proposal_for_event(event, user: (create :user)) def proposal_f...
mit
srikanthk16/snistaf
privatemessages/api/load_private_messages.php
1370
<?php /** * Load PM API page for the private message system * * Tested with PHP version 5 * * @author Bryson Shepard <lilfade@fadedgaming.co> * @author Project Manager: Alex Weissman * @copyright 2014 UserFrosting * @version 0.1 * @link http://www.userfrosting.com/ * @link http://www.g...
mit
Talesoft/tale-jade-smvc
app/Helpers/Data.php
1411
<?php namespace Helpers; /* * data Helper - common data lookup methods * * @author David Carr - dave@daveismyname.com - http://daveismyname.com * @version 1.0 * @date March 28, 2015 * @date May 18 2015 */ class Data { /** * print_r call wrapped in pre tags * @param string or array $data */ ...
mit
mikeseven/Halide
test/correctness/realize_over_shifted_domain.cpp
795
#include <Halide.h> #include <stdio.h> using namespace Halide; int main(int argc, char **argv) { Image<int> input(100, 50, "input"); // This image represents the range [100, 199]*[50, 99] input.set_min(100, 50); input(100, 50) = 123; input(198, 99) = 234; Func f; Var x, y; f(x, y) =...
mit
elboletaire/cakephp
tests/TestCase/ORM/EntityTest.php
44403
<?php /** * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyrig...
mit
smithab/azure-sdk-for-node
lib/services/batch/lib/models/computeNodeAddUserOptions.js
2118
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ ...
mit
diversantvlz/WellCommerce
src/WellCommerce/Component/Form/Validator/FormValidator.php
1657
<?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\Co...
mit
shiminasai/ciat_plataforma
monitoreo/monitoreo/utils/test.py
1260
import grafos from pygooglechart import StackedHorizontalBarChart, StackedVerticalBarChart, GroupedHorizontalBarChart, GroupedVerticalBarChart def run(): data = [[100,200,150,120],[120, 90, 80, 40]] legends = ['mujeres', 'hombres'] message = 'titulo ejemplo' axis = ['1990', '1991', '1992', '1993'] ...
mit