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
package edu.wpi.first.wpilibj.templates.commands; import edu.wpi.first.wpilibj.command.CommandGroup; /** * * @author vignesh */ public class AutoCommandGroup extends CommandGroup { public AutoCommandGroup() { addParallel(new autoClawArmDownCommand()); addParallel(new CompressorCommand());...
viggy96/FRCteam3331_2014
src/edu/wpi/first/wpilibj/templates/commands/AutoCommandGroup.java
Java
bsd-3-clause
528
## # Contains all logic for gathering and displaying backtraces. class Backtrace include Enumerable attr_accessor :frames attr_accessor :top_context attr_accessor :first_color attr_accessor :kernel_color attr_accessor :eval_color def initialize @frames = [] @top_context = nil @first_color =...
chad/rubinius
kernel/delta/backtrace.rb
Ruby
bsd-3-clause
2,223
// Copyright (c) 2015 Mute Communications Ltd. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package mixcrypt import ( "bytes" "crypto/rand" "crypto/sha256" "testing" "github.com/agl/ed25519" "github.com/mutecomm/mute/mix/mixaddr" "github.com/mutecomm/...
JonathanLogan/mute
mix/mixcrypt/clientmix_test.go
GO
bsd-3-clause
9,542
#mixin to automate testing of Rest services per controller test require 'libxml' require 'pp' module RestTestCases SCHEMA_FILE_PATH = File.join(Rails.root, 'public', '2010', 'xml', 'rest', 'schema-v1.xsd') def test_index_rest_api_xml #to make sure something in the database is created object=rest_api_t...
aina1205/virtualliverf1
test/rest_test_cases.rb
Ruby
bsd-3-clause
1,407
// 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 "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" #include "base/basictypes.h" #include "base/files/scope...
patrickm/chromium.src
chrome/browser/password_manager/password_store_mac_unittest.cc
C++
bsd-3-clause
53,108
// 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/command_line.h" #include "base/message_loop.h" #include "base/run_loop.h" #include "base/time.h" #include "content/browser/gpu/gpu_data...
codenote/chromium-test
content/browser/gpu/gpu_data_manager_impl_unittest.cc
C++
bsd-3-clause
20,249
# Copyright (c) 2013,Vienna University of Technology, Department of Geodesy and Geoinformation # 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 a...
christophreimer/pytesmo
tests/test_ismn/test_readers.py
Python
bsd-3-clause
8,660
// 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 "ppapi/proxy/ppapi_command_buffer_proxy.h" #include "base/numerics/safe_conversions.h" #include "ppapi/proxy/ppapi_messages.h" #include "ppa...
Workday/OpenFrame
ppapi/proxy/ppapi_command_buffer_proxy.cc
C++
bsd-3-clause
10,421
var cdb = require('cartodb.js'); var $ = require('jquery'); var DatasetItem = require('./dataset_item_view'); var Utils = require('cdb.Utils'); var UploadConfig = require('../../../../background_importer/upload_config'); var pluralizeString = require('../../../../view_helpers/pluralize_string'); /** * Remote dataset...
raquel-ucl/cartodb
lib/assets/javascripts/cartodb/common/dialogs/create/listing/datasets/remote_dataset_item_view.js
JavaScript
bsd-3-clause
3,614
<?php namespace SanAuth\Model; use Zend\Authentication\Storage; class MyAuthStorage extends Storage\Session { public function setRememberMe($rememberMe = 0, $time = 1209600) { if ($rememberMe == 1) { $this->session->getManager()->rememberMe($time); } } public function for...
manguiatmarvin/osms
module/SanAuth/src/SanAuth/Model/MyAuthStorage.php
PHP
bsd-3-clause
1,233
<?php namespace bug_010498195; class True { }
manuelpichler/staticReflection
src/test/resources/files/regression/010498195/True.php
PHP
bsd-3-clause
50
package workflow import ( "github.com/go-gorp/gorp" "github.com/ovh/cds/sdk" ) // InsertAudit insert a workflow audit func InsertAudit(db gorp.SqlExecutor, a *sdk.AuditWorkflow) error { audit := auditWorkflow(*a) if err := db.Insert(&audit); err != nil { return sdk.WrapError(err, "Unable to insert audit") } ...
ovh/cds
engine/api/workflow/dao_audit.go
GO
bsd-3-clause
1,322
require 'test_helper' require 'v_object/i_tip/broker_tester' module Tilia module VObject class BrokerProcessReplyTest < ITip::BrokerTester def test_reply_no_original itip = <<ICS BEGIN:VCALENDAR VERSION:2.0 METHOD:REPLY BEGIN:VEVENT SEQUENCE:2 UID:foobar ATTENDEE;PARTSTAT=ACCEPTED:mailto:foo@exampl...
tilia/tilia-vobject
test/v_object/i_tip/broker_process_reply_test.rb
Ruby
bsd-3-clause
7,897
from django.core.exceptions import ImproperlyConfigured from django.core.urlresolvers import reverse from django.db import transaction from django.forms.models import inlineformset_factory, modelform_factory from django.forms.widgets import HiddenInput from django.shortcuts import get_object_or_404 from vanilla import ...
jAlpedrinha/DeclRY
declry/views.py
Python
bsd-3-clause
9,652
package de.plushnikov.intellij.plugin.processor.handler.singular; import com.intellij.psi.PsiAnnotation; import com.intellij.psi.PsiClass; import com.intellij.psi.PsiField; import com.intellij.psi.PsiMethod; import com.intellij.psi.PsiSubstitutor; import com.intellij.psi.PsiType; import com.intellij.psi.PsiVariable; i...
AlexejK/lombok-intellij-plugin
src/main/java/de/plushnikov/intellij/plugin/processor/handler/singular/EmptyBuilderElementHandler.java
Java
bsd-3-clause
1,477
using System; using RedGate.Shared.SQL; using RedGate.SQLCompare.Engine; namespace SyncDBNantTasks { public abstract class SyncDatabaseParmsBase { private DBConnectionInformation connection; public Database RegisteredDatabase { get; protected set; } public DBConnectionInformation Connecti...
tcabanski/SouthSideDevToys
SyncDBNantTasks/SyncDatabaseParmsBase.cs
C#
bsd-3-clause
637
using System.Data; using Orchard.ContentManagement.MetaData; using Orchard.Core.Contents.Extensions; using Orchard.Data.Migration; using Orchard.SEO.Services; namespace Orchard.SEO { public class Migrations : DataMigrationImpl { public int Create() { SchemaBuilder.CreateTable("MetaR...
dmitry-urenev/extended-orchard-cms-v10.1
src/Orchard.Web/Modules/Orchard.SEO/Migrations.cs
C#
bsd-3-clause
1,459
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.CreateModel( name='FanUser...
vivyly/fancastic_17
fancastic_17/fan/migrations/0001_initial.py
Python
bsd-3-clause
909
<?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. */ return array( 'service_manager' => array( 'invokables' => array( 'Blog\Service\PostServiceInterface'...
acericonia/zf2-blog
module/Blog/config/module.config.php
PHP
bsd-3-clause
1,534
/* * Copyright (c) 2015, Institute of Computer Engineering, University of Lübeck * 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...
iti-luebeck/SmachApp
app/src/main/java/de/uni_luebeck/iti/smachapp/app/TransitionProperty.java
Java
bsd-3-clause
6,939
<?php // autoload.php @generated by Composer require_once __DIR__ . '/composer' . '/autoload_real.php'; return ComposerAutoloaderInit29a195fdeafbaf46892c28c394475c18::getLoader();
sagargopale/zend-api-dev
vendor/autoload.php
PHP
bsd-3-clause
183
<?php namespace Database\Entity; use Doctrine\ORM\Mapping as ORM; /** * Purchases * * @ORM\Table(name="Purchases", indexes={@ORM\Index(name="fk_Purchases_Suppliers1_idx", columns={"supplier_id"})}) * @ORM\Entity */ class Purchases { /** * @var integer * * @ORM\Column(name="purchase_id", type=...
devhood/erp-blpi
module/Database/src/Entity/Purchases.php
PHP
bsd-3-clause
4,349
""" ===================================================== Analysis for project 29 ===================================================== :Author: Nick Ilott :Release: $Id$ :Date: |today| :Tags: Python """ # load modules from ruffus import * import CGAT.Experiment as E import logging as L import CGAT.Database as Data...
CGATOxford/proj029
Proj029Pipelines/pipeline_proj029.py
Python
bsd-3-clause
12,528
import os from time import sleep from cement.utils.test import TestApp from cement.utils.misc import init_defaults if 'REDIS_HOST' in os.environ.keys(): redis_host = os.environ['REDIS_HOST'] else: redis_host = 'localhost' defaults = init_defaults('cache.redis') defaults['cache.redis']['host'] = redis_host ...
datafolklabs/cement
tests/ext/test_ext_redis.py
Python
bsd-3-clause
1,437
/* * Copyright (c) 2012, 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 of so...
alameluchidambaram/CONNECT
Product/Production/Services/HIEMCore/src/main/java/gov/hhs/fha/nhinc/notify/adapter/proxy/HiemNotifyAdapterWebServiceProxySecured.java
Java
bsd-3-clause
6,017
// 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. // // Tests for WebSocketBasicStream. Note that we do not attempt to verify that // frame parsing itself functions correctly, as that is covered by the // ...
endlessm/chromium-browser
net/websockets/websocket_basic_stream_test.cc
C++
bsd-3-clause
39,587
#include <stdio.h> #include <iostream> #include <math.h> using namespace std; #define eps 1e-6 struct TPoint { double x, y; }; struct TLine { TPoint p1, p2; }; double max(double x, double y) { //±È½ÏÁ½¸öÊýµÄ´óС£¬·µ»Ø´óµÄÊý if(x > y) return x; else return y; } double ...
yubo/program
ds/计算几何模板/pku_1066_Treasure Hunt.cpp
C++
bsd-3-clause
3,649
<?php /* * recurrent homeworks * */ include "utils.php"; session_start(); //si no hay sesion iniciada if(!isset($_SESSION["usrUserName"]) ) { //retornar al index (login) header("location: ../../index.php"); exit(); } //verificar que viene el campo activity del form if(isset($_POST["cmb_activity"] )) { ...
suiGn/orgboat
cod/php/add_rectsk.php
PHP
bsd-3-clause
4,190
// sagebot.hpp - SageBot class definition // sage - A TeamPlanets bot written for MachineZone job application // // Copyright (c) 2015 Vadim Litvinov <vadim_litvinov@fastmail.com> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided tha...
merlin86/TeamPlanets
bots/sage0/sagebot.hpp
C++
bsd-3-clause
3,431
using System; using System.Configuration; using System.Diagnostics; using System.Text; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using org.ncore.Ioc; namespace _unittests.org.ncore.Ioc { /// <summary> /// Summary description for NewTests /// ...
jakefoster/ncore-ioc
src/_unittests.org.ncore.Ioc/NewTests.cs
C#
bsd-3-clause
6,200
// 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 <stack> #include <utility> #include "base/bind.h" #include "base/bind_helpers.h" #include "base/callback.h" #include "base/compiler_specific...
loopCM/chromium
webkit/appcache/appcache_url_request_job_unittest.cc
C++
bsd-3-clause
27,756
var a00494 = [ [ "calculate_nnz", "a00494.html#aca63ccfbd14352eade58fd2a2ec6b5e4", null ], [ "nnz_internal", "a00494.html#a710993cf2d56652448517817943ad10f", null ], [ "optimizeWildfire", "a00494.html#adc947c65dcf861c33a24399614c0791a", null ], [ "optimizeWildfire", "a00494.html#a33509e7a55b46fe677e682d...
devbharat/gtsam
doc/html/a00494.js
JavaScript
bsd-3-clause
523
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.camera.AxisCamera; import edu.wpi.first.wpilibj.image.BinaryImage; import edu.wpi.first.wpilibj.image.ColorImage; import edu.wpi.first.wpilibj.image....
erhs-53-hackers/Robo2012
src/edu/wpi/first/wpilibj/templates/ImageProcessing.java
Java
bsd-3-clause
7,992
<?php /** * Service repository class file * * @package ShnfuCarver * @subpackage Kernel\Service * @copyright 2012 Shnfu * @author Zhao Xianghu <xianghuzhao@gmail.com> * @license http://carver.shnfu.com/license.txt New BSD License */ namespace ShnfuCarver\Kernel\Service; /** * Service repositor...
shnfu/shnfucarver
library/ShnfuCarver/Kernel/Service/ServiceRepository.php
PHP
bsd-3-clause
1,772
// ***************************************************************************** // // Copyright (c) 2015, Southwest Research Institute® (SwRI®) // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met:...
evenator/mapviz
mapviz_plugins/src/laserscan_plugin.cpp
C++
bsd-3-clause
20,064
#!/usr/bin/env python import sys from hiclib import mapping, fragmentHiC from mirnylib import h5dict, genome import h5py basedir = sys.argv[1] genome_db = genome.Genome('%s/Data/Genome/mm9_fasta' % basedir, readChrms=['1'], chrmFileTemplate="%s.fa") temp = h5py.File('%s/Data/Timing/hiclib_data_norm.hdf5' % basedi...
bxlab/HiFive_Paper
Scripts/Timing/hiclib_heatmap.py
Python
bsd-3-clause
813
<div class="member_section"> <div class="login_home"> <a href="<?php echo Yii::app()->getHomeUrl(true); ?>"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/login_home_img.png" alt="" /></a> </div> <div class="login_arrow"> <a href="javascript:history.back()"><img src="<?php echo Yii::app()->theme->baseUr...
brahmajiayatas/getweiss
protected/views/profile/online.php
PHP
bsd-3-clause
1,760
<?php /** * Webino (http://webino.sk/) * * @link https://github.com/webino/WebinoDev/ for the canonical source repository * @copyright Copyright (c) 2014-2017 Webino, s. r. o. (http://webino.sk/) * @license BSD-3-Clause */ namespace WebinoDev; /** * WebinDev module tests */ class ModuleTest exten...
webino/WebinoDev
tests/WebinoDev/ModuleTest.php
PHP
bsd-3-clause
1,226
'use strict'; angular.module('app.controllers', []) .controller('HomeController', ['$scope','CountryFactory', function($scope, CountryFactory){ $scope.paisSeleccionado = []; CountryFactory.getAllCountries(); $scope.mostrarPaises = function(){ CountryFactory.getAllCountries(); var countries = CountryFactory.get...
UsuarioCristian/basic2015
api/assets/js/controllers/controllers.js
JavaScript
bsd-3-clause
450
/* * Copyright (C) 2013 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...
primiano/blink-gitcs
Source/web/WebRuntimeFeatures.cpp
C++
bsd-3-clause
8,907
// 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 "ash/shell.h" #include "ash/shell_window_ids.h" #include "ash/test/ash_test_base.h" #include "ash/test/shell_test_api.h" #include "ash/test/t...
ChromiumWebApps/chromium
ash/wm/window_manager_unittest.cc
C++
bsd-3-clause
31,970
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model app\models\issue */ $this->title = 'Update Issue: ' . ' ' . $model->id; $this->params['breadcrumbs'][] = ['label' => 'Issues', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];...
fahmihdyt/propensi
views/Issue/update.php
PHP
bsd-3-clause
550
<?php use app\core\helpers\Url; \app\assets\BootBoxAsset::register($this); ?> <style type="text/css"> #option-box { font-size:12px;} #option-box table tr{ margin-bottom:1em; border-bottom:1px dotted #e1e1e1; } #option-box table td { vertical-align:middle; padding:2px 0px 3px 3px; } #option-box table td sp...
cboy868/lion
modules/grave/views/admin/tomb/option.php
PHP
bsd-3-clause
10,602
/* * ----------------------------------------------------------------- * Programmer(s): Slaven Peles, Cody J. Balos @ LLNL * ----------------------------------------------------------------- * SUNDIALS Copyright Start * Copyright (c) 2002-2021, Lawrence Livermore National Security * and Southern Methodist Univers...
stan-dev/math
lib/sundials_6.0.0/src/nvector/hip/VectorKernels.hip.hpp
C++
bsd-3-clause
7,402
/* * DisplayObject by Grant Skinner. Dec 5, 2010 * Visit http://easeljs.com/ for documentation, updates and examples. * * * Copyright (c) 2010 Grant Skinner * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal...
PaulWoow/HTML5JUEGOGRAFICACION
Mini Valle PaJou/libs/easeljs/display/DisplayObject.js
JavaScript
bsd-3-clause
21,794
/* * 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. */ package org.ndexbio.cxio.core.interfaces; import java.io.InputStream; import org.ndexbio.model.cx.NiceCXNetwork; import org.ndexbio.mo...
ndexbio/ndex-object-model
src/main/java/org/ndexbio/cxio/core/interfaces/INiceCXNetworkReader.java
Java
bsd-3-clause
1,040
<?php use yii\helpers\Html; use yii\helpers\ArrayHelper; $this->title = Yii::t('app', 'Create Role'); $this->params['breadcrumbs'][] = ['label'=>Yii::t('app', 'Admin'), 'url'=>['index']]; $this->params['breadcrumbs'][] = ['label'=>Yii::t('app', 'Roles'), 'url'=>['roles/index']]; $this->params['breadcrumbs'][] = $thi...
magdielikari/HidroLab-Manager
backend/modules/admin/views/roles/create.php
PHP
bsd-3-clause
901
package transmission // Copyright 2015, JuanDeFu.ca. All rights reserved. // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. import ( "encoding/json" "fmt" "log" "strings" ) /* Method name torrent-add */ /* Either "filename" OR "metainfo" MUST be included. */ /*...
sabey/transmission
torrent_add.go
GO
bsd-3-clause
2,493
package main.data.core; public interface Function<A, B> { B apply(A a); }
nhibberd/search
src/main/data/core/Function.java
Java
bsd-3-clause
79
/* * 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. */ package com.team649.frc2014.subsystems; import com.team649.frc2014.RobotMap; import edu.wpi.first.wpilibj.SpeedController; import edu....
SaratogaMSET/649code2014
src/com/team649/frc2014/subsystems/ClawRollerSubsystem.java
Java
bsd-3-clause
1,047
module SpreeGridFaq class Engine < Rails::Engine engine_name 'spree_grid_faq' config.autoload_paths += %W(#{config.root}/lib) # use rspec for tests config.generators do |g| g.test_framework :rspec end def self.activate Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_d...
ehoch/spree_grid_faq
lib/spree_grid_faq/engine.rb
Ruby
bsd-3-clause
486
<?php return array ( 'Search' => 'Pesquisar', );
LeonidLyalin/vova
common/humhub/protected/humhub/modules/search/messages/pt/base.php
PHP
bsd-3-clause
51
// 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 "ash/common/system/ime/tray_ime_chromeos.h" #include <vector> #include "ash/common/session/session_state_delegate.h" #include "ash/common/s...
danakj/chromium
ash/common/system/ime/tray_ime_chromeos.cc
C++
bsd-3-clause
9,556
/** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors ma...
PolymerLabs/ristretto
src/reporter.ts
TypeScript
bsd-3-clause
2,969
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace yii\apidoc\helpers; use phpDocumentor\Reflection\DocBlock\Type\Collection; use yii\apidoc\models\MethodDoc; use yii\apidoc\models\TypeDoc; /** * Class ApiM...
Bladefidz/ocfa_yii
vendor/yiisoft/yii2-apidoc/helpers/ApiMarkdownTrait.php
PHP
bsd-3-clause
6,745
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must r...
ft-/arribasim-dev-extras
OpenSim/Framework/DOMap.cs
C#
bsd-3-clause
4,063
// Copyright 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 "cc/layers/picture_layer_impl.h" #include <algorithm> #include <cmath> #include <limits> #include <set> #include "base/time/time.h" #include "b...
SaschaMester/delicium
cc/layers/picture_layer_impl.cc
C++
bsd-3-clause
50,012
require 'spec_helper' describe 'OrderPreferencesBuilder' do # Factory order_with_line_items is incredibly slow.. let(:order) do order = create :order create_list :line_item, 2, order:order order.line_items.reload order.update! order end let!(:adjustment) { order.adjustments.create! label:...
devartis/Spree-Mercado-Pago-payment-method
spec/models/spree/mercado_pago/order_preferences_builder_spec.rb
Ruby
bsd-3-clause
2,062
#from django.conf import settings #settings.INSTALLED_APPS += ("mptt", "hvad", "galleries",)
marcopompili/django-market
django_market/__init__.py
Python
bsd-3-clause
94
package com.andymark.crosslink; import java.nio.ByteBuffer; import java.nio.ByteOrder; public class UpdateJaguarPacket implements Message { private short[] uiMode = new short[20]; private short[] uiSetVoltage = new short[20]; @Override public ByteBuffer getMessage() { for (int i = 16; i < 20; i++) { ui...
AndyMark/AMCrosslink-Java
src/com/andymark/crosslink/UpdateJaguarPacket.java
Java
bsd-3-clause
811
function installthis(id) { var answer = confirm('Are you sure ? '); if (answer){ //delete img... $.post(base_url+'/zfmodules/index/installmod/id/'+id, function(data){ window.location.reload(false); }); } } ...
samsonasik/zf_111_support_php532_with_modulewizard
public/themes/zend_prj/js/modules/modules.js
JavaScript
bsd-3-clause
751
from rdr_service.model.genomics import GenomicGCValidationMetrics, GenomicSetMember from rdr_service.tools.tool_libs.tool_base import cli_run, ToolBase tool_cmd = 'backfill-gvcf' tool_desc = 'Backfill the gVCF paths in genomic_gc_validation_metrics' class GVcfBackfillTool(ToolBase): def run(self): super(...
all-of-us/raw-data-repository
rdr_service/tools/tool_libs/backfill_gvcf_paths.py
Python
bsd-3-clause
2,248
// 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. // This clang plugin checks various invariants of the Blink garbage // collection infrastructure. // // Checks that are implemented: // [currently none] ...
ChromiumWebApps/chromium
tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp
C++
bsd-3-clause
2,082
using Shuttle.Core.Data; using Shuttle.Core.Infrastructure; namespace Shuttle.Scheduling { public class ScheduleQuery : IScheduleQuery { private readonly IDatabaseGateway _databaseGateway; private readonly IScheduleQueryFactory _queryFactory; public ScheduleQuery(IDatabaseGateway databaseGateway, IScheduleQue...
yonglehou/shuttle-scheduling
Shuttle.Scheduling/DataAccess/Queries/ScheduleQuery.cs
C#
bsd-3-clause
703
#!/usr/bin/python2 """Syncs to a given Cobalt build id. Syncs current gclient instance to a given build id, as generated by "build_id.py" and stored on carbon-airlock-95823. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import json im...
youtube/cobalt
cobalt/build/sync_to_build_id.py
Python
bsd-3-clause
6,399
package ca.carleton.gcrc.couch.command; import java.io.File; import java.io.FileInputStream; import java.io.InputStreamReader; import java.io.PrintStream; import java.io.StringWriter; import java.util.Calendar; import org.json.JSONObject; import org.json.JSONTokener; import ca.carleton.gcrc.couch.command.impl.FileSe...
GCRC/nunaliit
nunaliit2-couch-command/src/main/java/ca/carleton/gcrc/couch/command/CommandUpgrade.java
Java
bsd-3-clause
7,080
class LineItemController < ApplicationController end
voidstart/ror_depot_reboot_1
app/controllers/line_item_controller.rb
Ruby
bsd-3-clause
53
from models import * from django.db import connection import collections import time import calendar def GetCreditCardList(contactid): cards_list = [] orders = Orders.objects.all().filter(ocustomerid = contactid) cards_hash = {} for order in orders: if order.ocardno: if order.ocardno not in cards_h...
hughsons/saltwaterfish
classes_bkp_0621.py
Python
bsd-3-clause
19,445
# Copyright (c) 2017-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. # Download and build the da...
calee88/ParlAI
parlai/tasks/vqa_v2/build.py
Python
bsd-3-clause
2,271
class [scope]::RegistrationsController < Devise::RegistrationsController # before_action :configure_sign_up_params, only: [:create] # before_action :configure_account_update_params, only: [:update] # GET /resource/sign_up # def new # super # end # POST /resource # def create # super # end # GET...
danielsiebra/projeto_e_profissional
app/controllers/[scope]/registrations_controller.rb
Ruby
bsd-3-clause
1,404
--TEST-- radius_cvt_string() --INI-- display_errors=1 error_reporting=22527 --SKIPIF-- <?php if (!extension_loaded('radius')) echo 'SKIP: radius extension required'; ?> --FILE-- <?php var_dump(radius_cvt_string('127.0.0.1')); ?> --EXPECT-- string(9) "127.0.0.1"
LawnGnome/php-radius
tests/radius_cvt_string.phpt
PHP
bsd-3-clause
262
<?php namespace common\models\articles; use common\models\behaviors\HiddenBehavior; use common\models\scopes\ArticleScope; use common\models\traits\CacheTrait; use Yii; use yii\behaviors\TimestampBehavior; use yii\data\ActiveDataProvider; use yii\helpers\ArrayHelper; use yii\helpers\HtmlPurifier; use common\models\Us...
bereznev/yii2-blog
common/models/articles/Article.php
PHP
bsd-3-clause
5,780
from django.core.exceptions import ImproperlyConfigured from django.db.models import F, fields from django.db.models.functions import Cast, Coalesce from django.utils.translation import gettext_lazy as _ from .conf import get_default_language, get_fallback_chain, get_modeltrans_setting from .utils import ( Fallbac...
zostera/django-modeltrans
modeltrans/fields.py
Python
bsd-3-clause
12,105
package gengateway import ( "strings" "testing" "github.com/golang/protobuf/proto" protodescriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" "github.com/ilius/grpc-gateway/protoc-gen-grpc-gateway/descriptor" "github.com/ilius/grpc-gateway/protoc-gen-grpc-gateway/httprule" ) func crossLinkFixture(f ...
ilius/grpc-gateway
protoc-gen-grpc-gateway/gengateway/template_test.go
GO
bsd-3-clause
13,223
/* * Copyright (c) 2013 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the funct...
SteveXiSong/ECE757-SnoopingPredictions
src/mem/snoop_filter.cc
C++
bsd-3-clause
13,192
/* * $Id: GridAttributeDialog.java,v 1.2 2006/01/19 14:45:50 luca Exp $ * * This software is provided by NOAA for full, free and open release. It is * understood by the recipient/user that NOAA assumes no liability for any * errors contained in the code. Although this software is released without * conditions o...
luttero/Maud
src/gov/noaa/pmel/sgt/swing/prop/GridAttributeDialog.java
Java
bsd-3-clause
32,899
// 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 "net/proxy/proxy_service_v8.h" #include "base/logging.h" #include "base/thread_task_runner_handle.h" #include "base/threading/thread_checker...
Chilledheart/chromium
net/proxy/proxy_service_v8.cc
C++
bsd-3-clause
1,609
<?php /** * PradoBase class file. * * This is the file that establishes the PRADO component model * and error handling mechanism. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.pradosoft.com/ * @copyright Copyright &copy; 2005-2011 PradoSoft * @license http://www.pradosoft.com/license/ * @vers...
wiccano/WDEPRDO
framework/PradoBase.php
PHP
bsd-3-clause
19,078
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build !cgo,!windows,!plan9 android vita package user import ( "errors" "fmt" "os" "runtime" "strconv" ) func init() { groupImplemented = false } f...
codestation/go
src/os/user/lookup_stubs.go
GO
bsd-3-clause
1,709
package main import "fmt" import "time" type Ball struct{ hits int } func main() { table := make(chan *Ball) go player("ping", table) go player("pong", table) table <- new(Ball) // game on; toss the ball time.Sleep(1 * time.Second) <-table // game over; grab the ball panic("show the stack") } func player(n...
immortal/sandbox
go/goroutine/ping-pong/main.go
GO
bsd-3-clause
480
// // 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: 2011.0...
svoos/CorpusConverter
src/main/java/tigerxml/Head.java
Java
bsd-3-clause
3,131
package main // Single sender // Multiple receivers - round-robin // Durable // Delayed acknowledgment import ( "fmt" "time" "github.com/streadway/amqp" ) const ( broker = "amqp://localhost" queue1 = "gs3-queue" // Should queue persist beyond broker restart? durable = true // Should queue be deleted once ...
dterei/Scraps
amqp/gs3/recv.go
GO
bsd-3-clause
1,522
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import collections import itertools from contextlib import contextmanager...
sholsapp/cryptography
src/cryptography/hazmat/backends/openssl/backend.py
Python
bsd-3-clause
49,028
$(function(){ function openPanel(){ require(['panel']); $('#admin_link').hide(); } if($.cookie('grass_panel')){ openPanel(); } $('#admin_link').on('click', function(e){ e.preventDefault(); openPanel(); }); }); require.config({ baseUrl: 'media/scripts'...
grnrbt/grass
web/media/scripts/link.js
JavaScript
bsd-3-clause
781
<?php use yii\helpers\Html; use kartik\grid\GridView; use yii\widgets\ActiveForm; use yii\bootstrap\Modal; use yii\widgets\Pjax; /* @var $this yii\web\View */ /* @var $searchModel app\modules\fct\models\FctSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'ผู้ป่วยในระบบ FCT'; $this->param...
inamjung/fct
modules/fct/views/fct/indexcaseok.php
PHP
bsd-3-clause
8,182
/* * 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. */ package RobotCode2014.commands.manipulator; import RobotCode2014.commands.CommandBase; /** * * @author me */ public c...
HarkerRobo/robocode14
src/RobotCode2014/commands/manipulator/PitchAccelerationCommand.java
Java
bsd-3-clause
1,076
<?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; use Nette\Utils\Validators; use Nette\Utils\Strings; use Nette\PhpGenerator\Helpers as PhpHelpers; use ReflectionClass; /** * Basic container buil...
kivi8/ars-poetica
vendor/nette/di/src/DI/ContainerBuilder.php
PHP
bsd-3-clause
27,588
/** *============================================================================ * Copyright The Ohio State University Research Foundation, The University of Chicago - * Argonne National Laboratory, Emory University, SemanticBits LLC, and * Ekagra Software Technologies Ltd. * * Distributed under the OSI-approved B...
NCIP/cagrid-core
caGrid/projects/dorian/src/org/cagrid/gaards/dorian/federation/ReportUtils.java
Java
bsd-3-clause
9,870
//===--- SemaStmtAsm.cpp - Semantic Analysis for Asm Statements -----------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
endlessm/chromium-browser
third_party/llvm/clang/lib/Sema/SemaStmtAsm.cpp
C++
bsd-3-clause
36,063
/** * Copyright (c) 2009-2016, rultor.com * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: 1) Redistributions of source code must retain the above * copyright notice, this list of conditio...
dalifreire/rultor
src/test/java/com/rultor/spi/package-info.java
Java
bsd-3-clause
1,692
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/privacy/dlp/v2beta1/dlp.proto package com.google.privacy.dlp.v2beta1; /** * <pre> * Description of the information type (infoType). * </pre> * * Protobuf type {@code google.privacy.dlp.v2beta1.InfoTypeDescription} */ public final cla...
pongad/api-client-staging
generated/java/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/InfoTypeDescription.java
Java
bsd-3-clause
37,925
// 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 "media/filters/vpx_video_decoder.h" #include <stddef.h> #include <stdint.h> #include <algorithm> #include <string> #include <vector> #incl...
nwjs/chromium.src
media/filters/vpx_video_decoder.cc
C++
bsd-3-clause
21,197
"""Workflow for uploading many many many log files at once.""" from __future__ import absolute_import import os from os.path import isfile, getsize import logging import re import luigi import psycopg2 import pandas as pd # import sqlalchemy try: from .pylog_parse import LogFile except: from pylog_parse impor...
sethmenghi/pylog_parse
pylog_parse/workflow.py
Python
bsd-3-clause
4,335
namespace NHibernate.ZMQLogPublisher { using System.Collections.Concurrent; using System.Collections.Generic; using ZMQ; public class SocketManager { private readonly Context context; private ConcurrentDictionary<string, Socket> sockets; private object synclock = new obj...
seif/NHibernate.ZMQLogPublisher
src/NHibernate.ZMQLogPublisher/SocketManager.cs
C#
bsd-3-clause
1,545
//====================================================================== //----------------------------------------------------------------------- /** * @file syntax_tests.cpp * @brief syntax test * * @author t.shirayanagi * @par copyright * Copyright (C) 2013-2021, Takazumi Shirayanagi...
srz-zumix/iutest
test/syntax_tests.cpp
C++
bsd-3-clause
29,693
// 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 <memory> #include <vector> #include "base/bind.h" #include "base/bind_helpers.h" #include "base/callback.h" #include "base/macros.h" #include "b...
danakj/chromium
chrome/browser/services/gcm/gcm_profile_service_unittest.cc
C++
bsd-3-clause
8,567
/** * @decription mock file config * * 该文件实现路由的配置,在没有test准备好的情况下可以直接走这个mock数据 * key: 为要匹配的路由 * value: 为对应的参数配置 * method: get或者post,router的方法 * filename: 对应的mock文件 */ module.exports = { '/api/realtime': { method: "post", filename: "realtime.js" } };
changfuguo/vuejs-boilerplate
server/config/route.js
JavaScript
bsd-3-clause
383
// 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 "components/autofill_assistant/browser/selector.h" #include "base/macros.h" #include "components/autofill_assistant/browser/service.pb.h" #inclu...
endlessm/chromium-browser
components/autofill_assistant/browser/selector_unittest.cc
C++
bsd-3-clause
3,076
using System; using SevenDigital.Messaging.MessageReceiving; namespace SevenDigital.Messaging { /// <summary> /// A receiver node source that can produce competitive or co-operative consumers /// </summary> public interface IReceiver { /// <summary> /// Map handlers to a listener on a named endpoin...
i-e-b/SevenDigital.Messaging
src/SevenDigital.Messaging/IReceiver.cs
C#
bsd-3-clause
2,465
<?php namespace Base\Form\Hydrator; use Zend\Stdlib\Hydrator\HydratorInterface; use Base\Constants as C; class User implements HydratorInterface { public function extract($object) { $filter = function($value) { return !(($value === null) || ($value === '')); }; ...
fhsctv/ctv2base
module/Base/src/Base/Form/Hydrator/User.php
PHP
bsd-3-clause
1,947