repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
lsimkins/laravel-zend-bundle
library/Zend/Controller/Plugin/ErrorHandler.php
9088
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
bsd-3-clause
uq-eresearch/gbr-cat
CRESIS/AJAX_APP/src/main/webapp/cresis/js/source/widgets/tree/TreeEditor.js
4615
/* * Ext JS Library 2.0.2 * Copyright(c) 2006-2008, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ /** * @class Ext.tree.TreeEditor * @extends Ext.Editor * Provides editor functionality for inline tree node editing. Any valid {@link Ext.form.Field} can be used * as the editor fi...
bsd-3-clause
mixman/djangodev
django/db/models/fields/files.py
15966
import datetime import os from django import forms from django.db.models.fields import Field from django.core.files.base import File from django.core.files.storage import default_storage from django.core.files.images import ImageFile from django.db.models import signals from django.utils.encoding import force_unicode,...
bsd-3-clause
psi4/DatenQM
qcfractal/storage_sockets/models/sql_base.py
5236
from qcelemental.util import msgpackext_dumps, msgpackext_loads from sqlalchemy import and_, inspect from sqlalchemy.dialects.postgresql import BYTEA from sqlalchemy.ext.associationproxy import ASSOCIATION_PROXY from sqlalchemy.ext.declarative import as_declarative from sqlalchemy.ext.hybrid import HYBRID_PROPERTY from...
bsd-3-clause
bingoyang/scala-otp
controlflow/src/test/scala/scala/actors/controlflow/AsyncFunctionSuite.scala
1860
package scala.actors.controlflow import org.testng.annotations.{Test, BeforeMethod} import org.scalatest.testng.TestNGSuite import org.scalatest.prop.Checkers import org.scalacheck.Arbitrary import org.scalacheck.Arbitrary._ import org.scalacheck.Gen import org.scalacheck.Prop._ import org.scalatest._ import scala.a...
bsd-3-clause
platformdotnet/Platform.VirtualFileSystem
src/Platform.VirtualFileSystem/Providers/Local/LocalFile.cs
12174
using System; using System.IO; using System.Linq; using System.Threading; namespace Platform.VirtualFileSystem.Providers.Local { /// <summary> /// Implementation of <see cref="IFile"/> for <see cref="LocalFileSystem"/>s. /// </summary> public class LocalFile : AbstractFile, INativePathService { ...
bsd-3-clause
samuel/kokki
kokki/cookbooks/nagios3/recipes/default.py
3935
from kokki import Package, Service, File, Template env.include_recipe("apache2") Package("nagios3") Service("nagios3", supports_status = True, supports_restart = True, supports_reload = True) # NRPE plugin Package("nagios-nrpe-plugin") ## File("/etc/nagios3/cgi.cfg", owner = "root", group = "...
bsd-3-clause
kelle/astropy
astropy/io/ascii/tests/test_ipac_definitions.py
4170
# Licensed under a 3-clause BSD style license - see LICENSE.rst # TEST_UNICODE_LITERALS import pytest from ..ui import read from ..ipac import Ipac, IpacFormatError, IpacFormatErrorDBMS from ....tests.helper import catch_warnings from ... import ascii from ....table import Table from ..core import masked from ....e...
bsd-3-clause
tomap/YUICompressor.NET
Code/Yahoo.Yui.Compressor.Tests/TestHelpers/BuildEngine.cs
1692
using System.Text; using Microsoft.Build.Framework; using NUnit.Framework; namespace Yahoo.Yui.Compressor.Tests.TestHelpers { public static class BuildEngine { public static bool ContainsError(IBuildEngine engine, string error) { return CheckForError(engine, error, true);...
bsd-3-clause
hlzz/dotfiles
graphics/VTK-7.0.0/ThirdParty/Twisted/twisted/words/xish/xmlstream.py
8787
# -*- test-case-name: twisted.words.test.test_xmlstream -*- # # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ XML Stream processing. An XML Stream is defined as a connection over which two XML documents are exchanged during the lifetime of the connection, one for each direction. T...
bsd-3-clause
RdeWilde/yii2
framework/yii/web/User.php
17129
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace yii\web; use Yii; use yii\base\Component; use yii\base\InvalidConfigException; /** * User is the class for the "user" application component that manages th...
bsd-3-clause
delkyd/Oracle-Cloud
PaaS-SaaS_DataSync/DataSync/Pharmacy/Pharmacy/src/com/oracle/pts/pharmacy/wsclient/PharmacyWSService.java
2857
package com.oracle.pts.pharmacy.wsclient; import java.io.File; import java.net.MalformedURLException; import java.net.URL; import java.util.logging.Level; import java.util.logging.Logger; import javax.xml.namespace.QName; import javax.xml.ws.Service; import javax.xml.ws.WebEndpoint; import javax.xml.ws.WebServiceCl...
bsd-3-clause
motobreath/UC-Merced-Template-V2
module/Admin/src/Admin/Controller/UsersController.php
2495
<?php namespace Admin\Controller; use Zend\Mvc\Controller\AbstractActionController; use Admin\Form; class UsersController extends AbstractActionController { /** * User Mapper (Table Gateway UserTable) * @var \Application\Model\UserTable */ private $userMapper; /** * Role Mapper (Tabl...
bsd-3-clause
ric2b/Vivaldi-browser
chromium/content/browser/background_sync/background_sync_metrics_unittest.cc
5570
// Copyright 2019 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/test/metrics/histogram_tester.h" #include "testing/gtest/include/gtest/gtest.h" #include "content/browser/background_sync/background_sync_...
bsd-3-clause
phcorp/doctrineviz
env/AppKernel.php
831
<?php use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\HttpKernel\Kernel; class AppKernel extends Kernel { public function registerBundles() { $bundles = [ new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\MonologBundle\MonologBu...
bsd-3-clause
chromium2014/src
chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer_unittest.cc
17698
// 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 "chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.h" #include <map> #include "base/bind.h" #include "base/callback.h" #incl...
bsd-3-clause
omco/geode
geode/mesh/module.cpp
521
//##################################################################### // Module mesh //##################################################################### #include <geode/python/wrap.h> using namespace geode; void wrap_mesh() { GEODE_WRAP(ids) GEODE_WRAP(polygon_mesh) GEODE_WRAP(segment_soup) GEODE_WRAP(tr...
bsd-3-clause
pombredanne/pythran
pythran/tests/euler/euler35.py
1138
#runas solve(1000000) # pythran export solve(int) def solve(a): """ The number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719, are themselves prime. There are thirteen such primes below 100: 2, 3, 5, 7, 11, 13, 17, 31, 37, 71, 73, 79, and 97. How many c...
bsd-3-clause
tomhughes/node-mapnik
test/image_view.test.js
10324
"use strict"; var mapnik = require('../'); var assert = require('assert'); var fs = require('fs'); describe('mapnik.ImageView ', function() { it('should throw with invalid usage', function() { // no 'new' keyword assert.throws(function() { mapnik.ImageView(1, 1); }); assert.throws(function...
bsd-3-clause
NCIP/webgenome
java/core/junit/org/rti/webgenome/util/CommandLineTableFormatterTester.java
1162
/*L * Copyright RTI International * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/webgenome/LICENSE.txt for details. */ /* $Source: /share/content/gforge/webcgh/webgenome/java/core/junit/org/rti/webgenome/util/CommandLineTableFormatterTester.java,v $ $Revision: 1.1 $ ...
bsd-3-clause
smthmlk/phoneypdf
pdf/filters/PDFFilters.py
27110
# Some code has been reused and modified from the original by Mathieu Fenniak: # Parameters management in Flate and LZW algorithms, asciiHexDecode and ascii85Decode # # Copyright (c) 2006, Mathieu Fenniak # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are p...
bsd-3-clause
Artemish/jodd
jodd-core/src/test/java/jodd/typeconverter/SqlTimestampConverterTest.java
2719
// Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved. package jodd.typeconverter; import jodd.datetime.JDateTime; import jodd.typeconverter.impl.SqlTimestampConverter; import org.junit.Test; import java.sql.Time; import java.sql.Timestamp; import java.util.Calendar; import java.util.Date;...
bsd-3-clause
eric-chau/Relational
library/Respect/Relational/Mapper.php
20006
<?php namespace Respect\Relational; use Exception; use PDO; use SplObjectStorage; use InvalidArgumentException; use PDOStatement; use PDOException; use stdClass; use Respect\Data\AbstractMapper; use Respect\Data\Collections\Collection; use Respect\Data\Collections as c; use Respect\Data\CollectionIterator; use Reflec...
bsd-3-clause
Phoenix1708/t2-server-jar-android-0.1
t2-server-jar-android-0.1-hyde/src/main/java/uk/org/taverna/server/client/connection/params/AbstractConnectionParams.java
2915
/* * Copyright (c) 2010, 2011 The University of Manchester, UK. * * 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 copyrig...
bsd-3-clause
qur/gopy
lib/float.go
1182
// Copyright 2011 Julian Phillips. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package py // #include "utils.h" import "C" import ( "fmt" "unsafe" ) type Float struct { AbstractObject NumberProtocol o C.PyFloatObject } // FloatT...
bsd-3-clause
Xyresic/Kaku
app/src/main/java/ca/fuwafuwa/kaku/XmlParsers/KanjiDict2/Kd2DTO/Kd2Radical.java
1036
package ca.fuwafuwa.kaku.XmlParsers.KanjiDict2.Kd2DTO; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; import java.io.IOException; import java.util.ArrayList; import java.util.List; import ca.fuwafuwa.kaku.XmlParsers.KanjiDict2.Kd2Consts; /** * Created by 0xbad1d3a5 on 12/1/2016....
bsd-3-clause
development2015/kds
backend/views/slru/sukarelawan/ss2_progwarga.php
1355
<?php use yii\helpers\Html; use yii\grid\GridView; use yii\helpers\Url; use miloschuman\highcharts\Highcharts; /* @var $this yii\web\View */ $this->title = 'Komuniti Development System'; ?> <br><br> <?php foreach ($model11 as $key => $value) { // store data in array $ya[] = (int)$value['ya']; // x axis must ...
bsd-3-clause
vadimtk/chrome4sdp
third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp
7117
// 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 "config.h" #include "core/editing/FrameSelection.h" #include "bindings/core/v8/ExceptionStatePlaceholder.h" #include "core/dom/Document.h" #incl...
bsd-3-clause
SonicLighter/yii2
console/migrations/m160711_110840_comments.php
932
<?php use yii\db\Migration; class m160711_110840_comments extends Migration { public function up() { $this->createTable('comments',[ 'id' => $this->primaryKey(), 'userId' => $this->integer()->notNull(), 'postId' => $this->integer()->notNull(), 'mess...
bsd-3-clause
luxiaohan/openxal-csns-luxh
apps/bricks/src/xal/app/bricks/TreeUtility.java
1682
// // TreeUtility.java // xal // // Created by Thomas Pelaia on 7/28/06. // Copyright 2006 Oak Ridge National Lab. All rights reserved. // package xal.app.bricks; import xal.extension.bricks.*; import javax.swing.*; import javax.swing.tree.*; import java.util.ArrayList; import java.util.List; /** utility for ...
bsd-3-clause
newscloud/bh
app/protected/components/Pocket.php
5377
<?php /** * php-Pocket * * A PHP library for interfacing with Pocket (getpocket.com) * * @package pocket-api-php * @author Dan Chen * @license MIT License */ class Pocket { /** * The maximum number of seconds to wait for the Pocket API to respond * * @var int */ const CURL_TIMEOUT = 15; /** * The num...
bsd-3-clause
fijj/pearl
backend/views/clients/form.php
970
<?php use yii\helpers\Html; use yii\helpers\Url; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ $this->title = $title; $this->params['breadcrumbs'][] = [ 'label' => 'Клиенты', 'url' => Url::to(['clients/index']), ]; if($action == "update"){ $this->params['breadcrumbs'][] = [ 'label' => ...
bsd-3-clause
8v060htwyc/whois
whois-update/src/main/java/net/ripe/db/whois/update/keycert/PgpSignedMessageUtil.java
3390
package net.ripe.db.whois.update.keycert; import org.bouncycastle.openpgp.PGPSignature; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; /** * Signed message util, mostly copied from BouncyCastle PGP tests. */ final class PgpSignedMessageUtil { private PgpSignedMess...
bsd-3-clause
bfjelds/iot-utilities-1
IotCoreAppDeployment/IoTCoreSdkProvider/SharedDependenciesProvider.cs
563
// Copyright (c) Microsoft. All rights reserved. using Microsoft.Iot.IotCoreAppProjectExtensibility; using System.Collections.Generic; namespace Microsoft.Iot.IoTCoreSdkProvider { public class SharedDependencyProvider : IDependencyProvider { public Dictionary<string, IDependency> GetSupportedDependenc...
bsd-3-clause
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE415_Double_Free/s02/CWE415_Double_Free__new_delete_int_32.cpp
3234
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE415_Double_Free__new_delete_int_32.cpp Label Definition File: CWE415_Double_Free__new_delete.label.xml Template File: sources-sinks-32.tmpl.cpp */ /* * @description * CWE: 415 Double Free * BadSource: Allocate data using new and Deallocae data using delete ...
bsd-3-clause
jason-simmons/sky_engine
shell/platform/android/platform_view_android.cc
14659
// Copyright 2013 The Flutter 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/shell/platform/android/platform_view_android.h" #include <memory> #include <utility> #include "flutter/fml/synchronization/waitable_eve...
bsd-3-clause
scheib/chromium
ui/views/controls/resize_area_unittest.cc
6860
// Copyright 2017 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 "ui/views/controls/resize_area.h" #include <memory> #include <utility> #include "base/bind.h" #include "build/build_config.h" #include "testing...
bsd-3-clause
chromium2014/src
components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats_unittest.cc
3071
// 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/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h" #include "base/memory/scoped_ptr.h" #include "net/base/request_prio...
bsd-3-clause
oogles/djem
djem/pagination.py
1398
from django.conf import settings from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator def get_page(number, object_list, per_page=None, **kwargs): """ Return the specified page, as a Django Page instance, from a Paginator constructed from the given object list and other keyword argument...
bsd-3-clause
rosskevin/relay
packages/react-relay/classic/store/__mocks__/RelayGarbageCollector.js
404
/** * 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. * * @format ...
bsd-3-clause
ajrichards/notebook
python/notes-np-in1d.py
180
#!/usr/bin/env python import sys import numpy as np a = np.arange(10) b = np.array([3,4,5]) mask1 = np.in1d(a,b) mask2 = np.in1d(b,a) print('mask1',mask1) print('mask2',mask2)
bsd-3-clause
ChromiumWebApps/chromium
chrome/browser/prefs/incognito_mode_prefs_unittest.cc
3264
// 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 "chrome/browser/prefs/incognito_mode_prefs.h" #include "chrome/common/pref_names.h" #include "chrome/test/base/testing_pref_service_syncable...
bsd-3-clause
snowballstem/snowball
go/stemwords/main.go
1237
//go:generate go run generate.go ../algorithms algorithms.go //go:generate gofmt -s -w algorithms.go package main import ( "bufio" "flag" "fmt" "log" "os" snowballRuntime "github.com/snowballstem/snowball/go" ) var language = flag.String("l", "", "language") var input = flag.String("i", "", "input file") var ...
bsd-3-clause
jkowalski/NLog
tests/NLog.UnitTests/Targets/MailTargetTests.cs
16283
// // Copyright (c) 2004-2011 Jaroslaw Kowalski <jaak@jkowalski.net> // // 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 co...
bsd-3-clause
msf-oca-his/dhis-core
dhis-2/dhis-support/dhis-support-hibernate/src/main/java/org/hisp/dhis/hibernate/jsonb/type/JsonBinaryPlainStringType.java
3698
package org.hisp.dhis.hibernate.jsonb.type; /* * Copyright (c) 2004-2017, University of Oslo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the...
bsd-3-clause
yungsters/relay
packages/relay-runtime/store/__tests__/__generated__/RelayReaderRequiredFieldsTest4Fragment.graphql.js
2089
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @generated SignedSource<<7a6a146b48959f8790b8922bde8d4195>> * @flow * @lightSyntaxTransform * @nogrep */ /* eslint-disable ...
bsd-3-clause
SonicLighter/yii2
frontend/views/posts/index.php
598
<?php /* @var $this yii\web\View */ use yii\helpers\Html; use yii\widgets\LinkPager; use yii\widgets\ListView; use yii\grid\GridView; use yii\bootstrap\ActiveForm; use yii\grid\ActionColumn; $this->title = 'Posts'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="site-about"> <h1><?= Html::encode($t...
bsd-3-clause
msf-oca-his/dhis2-core
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/userkeyjsonvalue/hibernate/HibernateUserKeyJsonValueStore.java
4514
/* * Copyright (c) 2004-2022, University of Oslo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this * list of cond...
bsd-3-clause
majestrate/i2pd
libi2pd/NetDb.hpp
6115
#ifndef NETDB_H__ #define NETDB_H__ // this file is called NetDb.hpp to resolve conflict with libc's netdb.h on case insensitive fs #include <inttypes.h> #include <set> #include <map> #include <list> #include <string> #include <thread> #include <mutex> #include "Base.h" #include "Gzip.h" #include "FS.h" #include "Queu...
bsd-3-clause
pbrunet/pythran
third_party/nt2/arithmetic/include/functions/scalar/idivfix.hpp
258
#ifndef NT2_ARITHMETIC_INCLUDE_FUNCTIONS_SCALAR_IDIVFIX_HPP_INCLUDED #define NT2_ARITHMETIC_INCLUDE_FUNCTIONS_SCALAR_IDIVFIX_HPP_INCLUDED #include <nt2/arithmetic/functions/idivfix.hpp> #include <boost/simd/arithmetic/functions/generic/idivfix.hpp> #endif
bsd-3-clause
NCIP/caaers
caAERS/software/web/src/test/java/gov/nih/nci/cabig/caaers/web/task/TaskControllerTest.java
1585
/******************************************************************************* * Copyright SemanticBits, Northwestern University and Akaza Research * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/caaers/LICENSE.txt for details. ******************************************...
bsd-3-clause
dram1008/tpk
public_html/1/libraries/plugins/export/ExportCodegen.class.php
12855
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Set of functions used to build NHibernate dumps of tables * * @package PhpMyAdmin-Export * @subpackage CodeGen */ if (!defined('PHPMYADMIN')) { exit; } /* Get the export interface */ require_once 'libraries/plugins/ExportPlugin.class.php'; /* Get the ta...
bsd-3-clause
CBIIT/caaers
caAERS/software/AntInstaller/src/org/tp23/antinstaller/renderer/swing/AIShortTextField.java
1898
/* * Copyright 2005 Paul Hinds * * 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 agree...
bsd-3-clause
wuzhc/WZCSHOP
frontend/views/member/index.php
15238
<?php use yii\helpers\Html; $this->title = '会员中心'; $this->params['breadcrumbs'][] = $this->title; ?> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-md-3"> <!-- Profile Image --> <div class="box box-primary"> <div class="box-body ...
bsd-3-clause
tmc/graphql
executor/doc.go
91
// Package executor produces results from a graphql Operation and Schema. package executor
isc
qinzuoyan/rDSN
src/tools/webstudio/app_package/static/js/dsn/dsn_types.js
5883
// // Autogenerated by Thrift Compiler (@PACKAGE_VERSION@) // // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING // error_code = function(args) { this.code = null; if (args) { if (args.code !== undefined && args.code !== null) { this.code = args.code; } } }; error_code.prototype =...
mit
chm-tm/nunit-gui
src/nunit-gui/Model/ITestModel.cs
4332
// *********************************************************************** // Copyright (c) 2016 Charlie Poole // // 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, incl...
mit
KonstantinShemyak/cytoscape.js
src/extensions/renderer/canvas/drawing-images.js
3276
'use strict'; var CRp = {}; CRp.safeDrawImage = function( context, img, ix, iy, iw, ih, x, y, w, h ){ var r = this; try { context.drawImage( img, ix, iy, iw, ih, x, y, w, h ); } catch(e){ r.data.canvasNeedsRedraw[r.NODE] = true; r.data.canvasNeedsRedraw[r.DRAG] = true; r.drawingImage = true; ...
mit
voodootikigod/node-serialport
packages/serialport/examples/open-event.js
472
/* eslint-disable node/no-missing-require */ // Open event example const SerialPort = require('serialport') const port = new SerialPort('/dev/tty-usbserial1') port.on('open', () => { console.log('Port Opened') }) port.write('main screen turn on', err => { if (err) { return console.log('Error: ', err.message)...
mit
Skywalker-11/spongycastle
core/src/main/java/org/spongycastle/asn1/misc/MiscObjectIdentifiers.java
4840
package org.spongycastle.asn1.misc; import org.spongycastle.asn1.ASN1ObjectIdentifier; public interface MiscObjectIdentifiers { // // Netscape // iso/itu(2) joint-assign(16) us(840) uscompany(1) netscape(113730) cert-extensions(1) } // /** Netscape cert extensions OID base: 2.16.840.1.113730...
mit
yiwen-luo/LeetCode
Python/expression-add-operators.py
2085
# Time: O(4^n) # Space: O(n) # # Given a string that contains only digits 0-9 # and a target value, return all possibilities # to add operators +, -, or * between the digits # so they evaluate to the target value. # # Examples: # "123", 6 -> ["1+2+3", "1*2*3"] # "232", 8 -> ["2*3+2", "2+3*2"] # "00", 0 -> ["0+0", ...
mit
ekg/vg
src/dinucleotide_machine.hpp
1415
/** * \file dinucleotide_machine.hpp * * Defines a nondeterministic finite automaton over dinucleotides * */ #ifndef VG_DINUCLEOTIDE_MACHINE_GRAPH_HPP_INCLUDED #define VG_DINUCLEOTIDE_MACHINE_GRAPH_HPP_INCLUDED #include <string> #include <limits> #include <cstdint> #include <iostream> namespace vg { using names...
mit
komalsukhani/deb-lombok.ast
src/main/lombok/ast/grammar/TypesParser.java
6062
/* * Copyright (C) 2010 The Project Lombok Authors. * * 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 without limitation the rights * to use, copy, modif...
mit
Azure/azure-sdk-for-go
services/preview/network/mgmt/2021-03-01-preview/network/servicetags.go
3996
package network // 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
luissancheza/sice
js/jqwidgets/demos/react/app/grid/customcolumneditor/app.js
8259
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; import JqxInput from '../../../jqwidgets-react/react_jqxinput.js'; import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js'; import JqxSlider from '../../../jqwidgets-rea...
mit
PhotoArtLife/Personal-Blog
project/demo/mall/includes/lib/alipaySDK/aop/request/AlipaySiteprobeShopPublicBindRequest.php
1504
<?php /** * ALIPAY API: alipay.siteprobe.shop.public.bind request * * @author auto create * @since 1.0, 2014-12-18 09:03:32 */ class AlipaySiteprobeShopPublicBindRequest { /** * 店铺Id **/ private $bizContent; private $apiParas = array(); private $terminalType; private $terminalInfo; private $prodCode; ...
mit
morizotter/web100
vendor/bundle/ruby/2.0.0/gems/rake-10.2.2/lib/rake/cpu_counter.rb
2502
require 'rbconfig' # TODO: replace with IO.popen using array-style arguments in Rake 11 require 'open3' module Rake # Based on a script at: # http://stackoverflow.com/questions/891537/ruby-detect-number-of-cpus-installed class CpuCounter # :nodoc: all def self.count new.count_with_default end ...
mit
Hammerspoon/hammerspoon
extensions/menubar/menubar.lua
1533
--- === hs.menubar === --- --- Create and manage menubar icons local menubar = require "hs.libmenubar" local imagemod = require("hs.image") local geometry = require "hs.geometry" local screen = require "hs.screen" require("hs.styledtext") -- protects tables of constants menubar.priorities = ls.makeConstantsTable(me...
mit
reorder/viacoin
src/qt/transactiondesc.cpp
13163
// Copyright (c) 2011-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "transactiondesc.h" #include "bitcoinunits.h" #include "guiutil.h" #include "paymentserver.h" #include "transaction...
mit
kontur-csharper/testing
cs/Challenge/Infrastructure/IncorrectImplementationAttribute.cs
130
using System; namespace Challenge.Infrastructure { public class IncorrectImplementationAttribute : Attribute { } }
mit
DevinLow/DevinLow.github.io
test/scripts/filters/index.js
341
'use strict'; describe('Filters', () => { require('./backtick_code_block'); require('./excerpt'); require('./external_link'); require('./i18n_locals'); require('./meta_generator'); require('./new_post_path'); require('./post_permalink'); require('./render_post'); require('./save_database'); require...
mit
samoatesgames/Ludumdare30
Unity/Assets/Photon Unity Networking/Demos/PUNGuide_M2H/_Tutorial 2/C#/Tutorial_2A3.cs
1474
using UnityEngine; using System.Collections; public class Tutorial_2A3 : Photon.MonoBehaviour { /* * Sending our movement via RPCs. This is bad habit though: * something as constant as movement should be transferred via * OnSerializePhotonView by observing a script. * */ ...
mit
quentinbernet/quentinbernet.github.io
node_modules/caniuse-lite/data/features/webgl2.js
960
module.exports={A:{A:{"2":"K D G E A B iB"},B:{"1":"AB","2":"2 C d J M H I"},C:{"1":"0 1 3 4 7 8 9 u v w x y z IB BB CB DB GB","2":"2 fB FB F N K D G E A B C d J M H I O P Q R S T ZB YB","194":"l m n","450":"6 U V W X Y Z a b c e f g h i j k","2242":"o L q r s t"},D:{"1":"0 1 3 4 7 8 9 z IB BB CB DB GB SB OB MB lB NB K...
mit
paulpv/robolectric
robolectric/src/test/java/org/robolectric/shadows/ShadowCursorAdapterTest.java
4864
package org.robolectric.shadows; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.view.View; import android.view.ViewGroup; import android.widget.CursorAdapter; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; ...
mit
maria-shahid-aspose/Aspose.Email-for-.NET
Examples/CSharp/Knowledge-Base/AsposeEmailOutlookSampleApp.Designer.cs
5891
namespace Aspose.Email.Examples.CSharp.Email.Knowledge.Base { partial class AsposeEmailOutlookSampleApp { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any reso...
mit
basarat/typescript-collections
src/lib/arrays.ts
6107
import * as util from './util'; /** * Returns the position of the first occurrence of the specified item * within the specified array.4 * @param {*} array the array in which to search the element. * @param {Object} item the element to search. * @param {function(Object,Object):boolean=} equalsFunction optional fun...
mit
laszpio/planner
lib/services/mailing_list.rb
1699
class MailingList SUBSCRIBED = 'subscribed'.freeze MEMBER_EXISTS = 'Member Exists'.freeze attr_reader :list_id def initialize(list_id) @list_id = list_id end def subscribe(email, first_name, last_name) return if disabled? begin client.lists(list_id).members .create(body: { ...
mit
alberskib/mockito
test/org/mockito/internal/util/reflection/GenericMetadataSupportTest.java
12230
/* * Copyright (c) 2007 Mockito contributors * This program is made available under the terms of the MIT License. */ package org.mockito.internal.util.reflection; import static org.fest.assertions.Assertions.assertThat; import static org.junit.Assert.fail; import static org.mockito.internal.util.reflection.GenericM...
mit
Im0rtality/coldbreeze-demo
src/Sylius/Bundle/FixturesBundle/DataFixtures/ORM/LoadProductOptionData.php
2078
<?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\FixturesBundle\DataFixtures\ORM; use Doctrine\Common\Persistence\ObjectManage...
mit
tectronics/crocodile-msrp
src/Status.js
1049
/* * Crocodile MSRP - http://code.google.com/p/crocodile-msrp/ * Copyright (c) 2012 Crocodile RCS Ltd * http://www.crocodile-rcs.com * Released under the MIT license - see LICENSE.TXT */ var CrocMSRP = (function(CrocMSRP) { /** @constant */ CrocMSRP.Status = { OK: 200, BAD_REQUEST: 400, UNAUTHORIZED: 401,...
mit
dspringate/experiment-two
js/main.js
2902
/* Jonathan Snook - MIT License - https://github.com/snookca/prepareTransition */ (function(a){a.fn.prepareTransition=function(){return this.each(function(){var b=a(this);b.one("TransitionEnd webkitTransitionEnd transitionend oTransitionEnd",function(){b.removeClass("is-transitioning")});var c=["transition-duration","-...
mit
n8many/MagicMirror
tests/e2e/modules_position_spec.js
1124
const helpers = require("./global-setup"); const describe = global.describe; const it = global.it; describe("Position of modules", function () { helpers.setupTimeout(this); var app = null; describe("Using helloworld", function () { after(function () { return helpers.stopApplication(app); }); before(fu...
mit
davalb/Sylius
src/Sylius/Bundle/PaymentBundle/spec/Form/Type/PaymentMethodTypeSpec.php
2225
<?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 spec\Sylius\Bundle\PaymentBundle\Form\Type; use PhpSpec\ObjectBehavior; use Prophecy\Argume...
mit
kwagyeman/openmv
scripts/examples/OpenMV/14-WiFi-Shield/scan.py
352
# Scan Example # # This example shows how to scan for networks with the WiFi shield. import time, network wlan = network.WINC() print("\nFirmware version:", wlan.fw_version()) while (True): scan_result = wlan.scan() for ap in scan_result: print("Channel:%d RSSI:%d Auth:%d BSSID:%s SSID:%s"%(ap)) ...
mit
nailsapp/site-components
application/config/config.php
105
<?php /* load the base config file from the package */ require NAILS_COMMON_PATH . 'config/config.php';
mit
martinbaillie/traefik
testhelpers/helpers.go
714
package testhelpers import ( "fmt" "io" "net/http" "net/url" ) // Intp returns a pointer to the given integer value. func Intp(i int) *int { return &i } // MustNewRequest creates a new http get request or panics if it can't func MustNewRequest(method, urlStr string, body io.Reader) *http.Request { request, err...
mit
danielkay/primeng
src/app/showcase/components/accordion/accordiondemo.ts
517
import {Component} from '@angular/core'; import {Message} from '../../../components/common/api'; @Component({ templateUrl: './accordiondemo.html' }) export class AccordionDemo { msgs: Message[]; onTabClose(event) { this.msgs = []; this.msgs.push({severity:'info', summary:'Tab Closed', det...
mit
yagweb/pythonnet
src/embed_tests/TestNamedArguments.cs
1333
using System; using NUnit.Framework; using Python.Runtime; namespace Python.EmbeddingTest { public class TestNamedArguments { [OneTimeSetUp] public void SetUp() { PythonEngine.Initialize(); } [OneTimeTearDown] public void Dispose() { ...
mit
UKForeignOffice/ETD-prototype-upload
node_modules/node-sass/lib/extensions.js
11161
/*! * node-sass: lib/extensions.js */ var eol = require('os').EOL, fs = require('fs'), pkg = require('../package.json'), mkdir = require('mkdirp'), path = require('path'), defaultBinaryPath = path.join(__dirname, '..', 'vendor'); /** * Get the human readable name of the Platform that is running * * @pa...
mit
pdeboer/wikilanguage
lib/jung2/jung-samples/src/main/java/edu/uci/ics/jung/samples/DrawnIconVertexDemo.java
7238
/* * Copyright (c) 2003, the JUNG Project and the Regents of the University of * California All rights reserved. * * This software is open-source under the BSD license; see either "license.txt" * or http://jung.sourceforge.net/license.txt for a description. * */ package edu.uci.ics.jung.samples; import java.a...
mit
Koderz/RuntimeMeshComponent
Source/RuntimeMeshComponent/Private/RuntimeMeshRendering.cpp
1451
// Copyright 2016-2020 TriAxis Games L.L.C. All Rights Reserved. #include "RuntimeMeshRendering.h" #include "RuntimeMeshComponentPlugin.h" #include "RuntimeMeshSectionProxy.h" FRuntimeMeshVertexBuffer::FRuntimeMeshVertexBuffer(bool bInIsDynamicBuffer, int32 DefaultVertexSize) : bIsDynamicBuffer(bInIsDynamicBuffer) ...
mit
lanice/gloperate
source/examples/globjects-painters/screenaligned/ScreenAligned.cpp
2366
#include "ScreenAligned.h" #include <random> #include <glbinding/gl/gl.h> #include <globjects/logging.h> #include <gloperate/painter/ViewportCapability.h> #include <gloperate/painter/TargetFramebufferCapability.h> using namespace gloperate; using namespace globjects; using namespace gl; ScreenAligned::ScreenAl...
mit
mfloresn90/AndroidStudioSources
Vuforia/app/src/main/java/com/vuforia/samples/SampleApplication/utils/LoadingDialogHandler.java
1507
/*=============================================================================== Copyright (c) 2016 PTC Inc. All Rights Reserved. Copyright (c) 2012-2014 Qualcomm Connected Experiences, Inc. All Rights Reserved. Vuforia is a trademark of PTC Inc., registered in the United States and other countries. ===============...
mit
Atvaark/Emurado
HaloOnline.Server.Model/Clan/ClanMember.cs
201
using HaloOnline.Server.Model.User; namespace HaloOnline.Server.Model.Clan { public class ClanMember { public UserId Id { get; set; } public int ClanRole { get; set; } } }
mit
dsm-sogeti-usa-llc/sogeti-academy
src/dotnet/src/Application/Topics/Queries/GetList/TopicViewModel.cs
200
namespace Sogeti.Academy.Application.Topics.Queries.GetList { public class TopicViewModel { public string Id { get; set; } public string Name { get; set; } public int Votes { get; set; } } }
mit
TomasVotruba/doctrine2
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1080Test.php
6345
<?php declare(strict_types=1); namespace Doctrine\Tests\ORM\Functional\Ticket; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Annotation as ORM; use Doctrine\Tests\OrmFunctionalTestCase; /** * @group DDC-1080 */ class DDC1080Test extends OrmFunctionalTestCase { public function testHydration...
mit
sapk-fork/gitea
vendor/github.com/go-redis/redis/v7/internal/pool/pool_sticky.go
1647
package pool import ( "context" "sync" ) type StickyConnPool struct { pool *ConnPool reusable bool cn *Conn closed bool mu sync.Mutex } var _ Pooler = (*StickyConnPool)(nil) func NewStickyConnPool(pool *ConnPool, reusable bool) *StickyConnPool { return &StickyConnPool{ pool: pool, reusa...
mit
quyen/my_rails_settings
test/settings_test.rb
4607
require 'test_helper' class SettingsTest < Test::Unit::TestCase setup_db def setup Settings.create(:var => 'test', :value => 'foo') Settings.create(:var => 'test2', :value => 'bar') end def teardown Settings.delete_all end def tests_defaults_false Settings.defaults[:foo] = false as...
mit
ermshiperete/GitVersion
src/GitVersion.Core/Configuration/Init/SetConfig/ConfigureBranches.cs
2566
using System; using System.Collections.Generic; using System.Linq; using GitVersion.Configuration.Init.Wizard; using GitVersion.Logging; using GitVersion.Model.Configuration; namespace GitVersion.Configuration.Init.SetConfig { public class ConfigureBranches : ConfigInitWizardStep { public ConfigureBran...
mit
zweidner/hubzero-cms
core/components/com_feedback/site/views/media/tmpl/display.php
2685
<?php /** * @package hubzero-cms * @copyright Copyright 2005-2019 HUBzero Foundation, LLC. * @license http://opensource.org/licenses/MIT MIT */ // No direct access defined('_HZEXEC_') or die(); $this->css() ->js('media.js'); ?> <form action="<?php echo Route::url('index.php?option=' . $this->option . '&co...
mit