repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
UITools/saleor
saleor/order/__init__.py
8246
from enum import Enum from django.conf import settings from django.utils.translation import npgettext_lazy, pgettext_lazy from django_prices.templatetags import prices_i18n from prices import Money class OrderStatus: DRAFT = 'draft' UNFULFILLED = 'unfulfilled' PARTIALLY_FULFILLED = 'partially fulfilled' ...
bsd-3-clause
tsl143/addons-server
src/olympia/devhub/templates/devhub/base_impala.html
1015
{% extends "impala/base.html" %} {% if addon %} {% set editable_body_class = "no-edit" if not check_addon_ownership(request, addon, dev=True) %} {% endif %} {% block bodyclass %}developer-hub gutter {{ editable_body_class }}{% endblock %} {% block bodyattrs %} {% if addon %}data-default-locale="{{ addon.default_loc...
bsd-3-clause
rescrv/Replicant
replicant-benchmark.cc
7712
// Copyright (c) 2015, Robert Escriva // 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 c...
bsd-3-clause
Clinical-Genomics/scout
tests/load/test_load_transcripts.py
707
from pprint import pprint as pp from scout.load.transcript import load_transcripts def test_load_transcripts(adapter, gene_bulk, transcripts_handle): # GIVEN a empty database assert sum(1 for i in adapter.all_genes()) == 0 assert sum(1 for i in adapter.transcripts()) == 0 # WHEN inserting a number o...
bsd-3-clause
praekelt/helpdesk
casepro/orgs_ext/tests.py
382
from __future__ import absolute_import, unicode_literals from django.core.urlresolvers import reverse from casepro.test import BaseCasesTest class OrgExtCRUDLTest(BaseCasesTest): def test_home(self): url = reverse('orgs_ext.org_home') self.login(self.admin) response = self.url_get('unic...
bsd-3-clause
jeking3/web-interface
public/uts/shaketable/shaketable.js
37584
/** * Shake Table web interface. * * @author Michael Diponio <michael.diponio@uts.edu.au> * @author Jesse Charlton <jesse.charlton@uts.edu.au> * @date 1/6/2013 */ /* ============================================================================ * == Shake Table. ...
bsd-3-clause
VulcanRobotics/Vector
doc/edu/wpi/first/wpilibj/class-use/Servo.html
6455
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_29) on Wed Jan 01 17:07:30 EST 2014 --> <TITLE> Uses of Class edu.wpi.first.wpilibj.Servo (2013 FRC Java API) </TITLE> <META NAME="date" CO...
bsd-3-clause
Aerotenna/Firmware
src/lib/FlightTasks/tasks/Failsafe/FlightTaskFailsafe.hpp
2259
/**************************************************************************** * * Copyright (c) 2018 PX4 Development Team. 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. Redistri...
bsd-3-clause
cjh1/Xdmf2
vtk/vtkSILBuilder.h
2271
/*========================================================================= Program: Visualization Toolkit Module: vtkSILBuilder.h Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is d...
bsd-3-clause
Jakegogo/concurrent
concur/src-transfer/transfer/test/TestType.java
867
package transfer.test; import transfer.TypeReference; import java.util.Map; /** * Created by Jake on 2015/3/7. */ public class TestType { public static void main(String[] args) { System.out.println(new TypeReference<Entity>(){}.getType() == new TypeReference<Entity>(){}.getType()); System.o...
bsd-3-clause
forste/haReFork
tools/base/AST/HsTypePretty.hs
1125
--- Pretty printing for the T functor ------------------------------------------ module HsTypePretty where import HsTypeStruct --import HsIdent import PrettySymbols(rarrow,forall') import PrettyPrint import PrettyUtil instance (Printable i,Printable t,PrintableApp t t) => Printable (TI i t) where ppi (HsTyFun a ...
bsd-3-clause
Crystalnix/house-of-life-chromium
printing/printing_context_mac.h
2849
// 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. #ifndef PRINTING_PRINTING_CONTEXT_MAC_H_ #define PRINTING_PRINTING_CONTEXT_MAC_H_ #include <string> #include "base/memory/scoped_nsobject.h" #includ...
bsd-3-clause
benkaraban/anima-games-engine
Sources/Modules/Renderer/SM2/FreeFormRenderer.cpp
13312
/* * Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider, * Jérémie Comarmond, Didier Colin. * 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 ...
bsd-3-clause
OpenChemistry/mongochem
mongochem/gui/quickquerywidget.h
1312
/****************************************************************************** This source file is part of the MongoChem project. Copyright 2011 Kitware, Inc. This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing, software distr...
bsd-3-clause
ResearchSoftwareInstitute/MyHPOM
myhpom/views/verification.py
2927
from smtplib import SMTPException from django.conf import settings from django.core.mail import send_mail from django.views.decorators.http import require_GET from django.shortcuts import redirect from django.template.loader import render_to_string from django.contrib.auth.decorators import login_required from django.c...
bsd-3-clause
nonego/ldb
qq/testwrite.cpp
761
#include <leveldb/db.h> #include <string> #include <iostream> using namespace std; using namespace leveldb; int main( int argc, char* argv[]) { DB* db; Options options; options.create_if_missing = true; if( argc < 2 ) return 0; char delim; if( argc == 3 ) delim = argv[2][0];...
bsd-3-clause
czpython/django-cms
docs/conf.py
8185
# -*- coding: utf-8 -*- # # django cms documentation build configuration file, created by # sphinx-quickstart on Tue Sep 15 10:47:03 2009. # # This file is execfile()d with the current directory set to its containing # dir. # # Note that not all possible configuration values are present in this # autogenerated file. # ...
bsd-3-clause
micktaiwan/scpm
app/controllers/workloads_controller.rb
41083
require 'rubygems' require 'google_chart' # http://badpopcorn.com/blog/2008/09/08/rails-google-charts-gchartrb/ class WorkloadsController < ApplicationController layout 'pdc' def index person_id = params[:person_id] project_ids = params[:project_ids] iterations_ids = params[:iterations_ids] ...
bsd-3-clause
danielbarter/personal_website_code
CALGO/sorting/sort_test.c
3896
/* system includes */ #include <stdio.h> #include <stdlib.h> #include <time.h> #include <limits.h> /* source includes */ #include "insertion_merge_sort_unboxed.c" #include "insertion_merge_sort.c" void test_sort ( void (*sort_pointer) (list *l), int array_test_size, int max_size); void test_sort_unboxed ( void (*sor...
bsd-3-clause
ovh-ux/ovh-ui-kit
packages/apps/workshop/stories/design-system/components/button-native-primary.stories.js
3190
import { select } from '@storybook/addon-knobs'; import readme from '@ovh-ux/ui-kit.button/README.md'; const state = { label: 'State', options: { Normal: '', Disabled: 'disabled', }, default: '', }; export default { title: 'Design System/Components/Buttons/Native/Primary', parameters: { note...
bsd-3-clause
stormi/tsunami
src/secondaires/magie/sorts.py
3125
# -*-coding:Utf-8 -* # Copyright (c) 2010 DAVY Guillaume # 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
NovaeWorkshop/Nova
app/templates/server/config/environment/production.js
465
/// <reference path="../../server.d.ts" /> 'use strict'; module.exports = { ip: process.env.IP || undefined, server: { url: 'http://www.<%= appname %>.com' }<% if (filters.backend === 'mongo') { %>, mongo: { uri: 'mongodb://localhost/<%= slugName %>' }<% } %>, facebook: { ...
bsd-3-clause
nikolasco/project_euler
023.cpp
793
#include <iostream> #include <vector> using namespace std; typedef unsigned long long int ull; int main() { static const ull MAX = 28123; ull sum = 0; vector<ull> abu; vector<bool> is_abu(MAX+1); for(ull i = 1; i <= MAX; i++) { ull sum_d = 0; for(ull j = 1; j < i; j++) { ...
bsd-3-clause
VitaliyProdan/hr
backend/views/site/index.php
7390
<?php /* @var $this yii\web\View */ /* @var $lastPosts */ /* @var $featured */ /* @var $drafts */ use yii\helpers\Url; use yii\helpers\Html; $this->title = 'Головна'; ?> <div class="site-index"> <h1 class="by-center">Адмін панель</h1> <hr /> <div class="body-content"> <div class="row"> ...
bsd-3-clause
hpdcj/PCJ
src/main/java/org/pcj/internal/message/scatter/ScatterStates.java
8076
/* * Copyright (c) 2011-2021, PCJ Library, Marek Nowicki * All rights reserved. * * Licensed under New BSD License (3-clause license). * * See the file "LICENSE" for the full license governing this code. */ package org.pcj.internal.message.scatter; import java.nio.channels.SocketChannel; import java.util.Arrays...
bsd-3-clause
michaelbausor/gax-php
src/Page.php
9056
<?php /* * Copyright 2016 Google LLC * 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
aliclark/libquic
src/quux/server/chlo_extractor.cc
5344
// Copyright (c) 2016 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 "quux/server/chlo_extractor.h" #include "net/quic/crypto/crypto_framer.h" #include "net/quic/crypto/crypto_handshake_message.h" #include "ne...
bsd-3-clause
cezarsa/tsuru
provision/pool/pool_test.go
19932
// Copyright 2015 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 pool import ( "sort" "testing" "github.com/tsuru/config" "github.com/tsuru/tsuru/auth" "github.com/tsuru/tsuru/db" "github.com/tsuru/tsuru/db/dbt...
bsd-3-clause
mtitinger/phabos
apps/svc/tsb_switch_es1.c
16306
/* * Copyright (c) 2015 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: * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and...
bsd-3-clause
rust-lang/rust-bindgen
tests/expectations/tests/issue-662-cannot-find-T-in-this-scope.rs
1396
#![allow( dead_code, non_snake_case, non_camel_case_types, non_upper_case_globals )] #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct RefPtr<T> { pub a: T, pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>, } impl<T> Default for RefPtr<T> { fn default() -> Self { ...
bsd-3-clause
babelsberg/babelsberg-r
tests/modules/ffi/test_ffi.py
2305
from tests.modules.ffi.base import BaseFFITest from rpython.rtyper.lltypesystem import rffi # Most of the stuff is still very vague. # This is because lots of the constants had to be set to something in order to # run some specs but the specs weren't about them. class TestTypeDefs(BaseFFITest): def test_it_is_kin...
bsd-3-clause
jonathanihm/freeCodeCamp
curriculum/challenges/english/03-front-end-libraries/redux/use-middleware-to-handle-asynchronous-actions.english.md
5673
--- id: 5a24c314108439a4d4036156 title: Use Middleware to Handle Asynchronous Actions challengeType: 6 isHidden: false isRequired: false forumTopicId: 301451 --- ## Description <section id='description'> So far these challenges have avoided discussing asynchronous actions, but they are an unavoidable part of web devel...
bsd-3-clause
datasift/storyplayer
src/php/Storyplayer/SPv3/Modules/Types/FromArray.php
3138
<?php /** * Copyright (c) 2011-present Mediasift Ltd * 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...
bsd-3-clause
Codewaves/Highlight.java
src/main/java/com/codewaves/codehighlight/languages/BashLanguage.java
3376
package com.codewaves.codehighlight.languages; import com.codewaves.codehighlight.core.Keyword; import com.codewaves.codehighlight.core.Language; import com.codewaves.codehighlight.core.Mode; /** * Created by Sergej Kravcenko on 5/17/2017. * Copyright (c) 2017 Sergej Kravcenko */ public class BashLanguage impleme...
bsd-3-clause
419989658/conciseCMS
backend/models/ImageUpload.php
1127
<?php /** * User: sometimes * Date: 2016/10/1 * Time: 23:47 */ namespace backend\models; use yii\base\Model; use yii\helpers\FileHelper; class ImageUpload extends Model { //private $imageFile; public $imageFile; public function rules() { return [ [['imageFile'], 'file', 'ski...
bsd-3-clause
verzeilberg/boodschappen
module/Grocery/src/Grocery/Service/productImageServiceInterface.php
673
<?php namespace Grocery\Service; interface productImageServiceInterface { /** * Should return a set of all blog posts that we can iterate over. Single entries of the array are supposed to be * implementing \Blog\Model\PostInterface * * @return array|PostInterface[] */ pub...
bsd-3-clause
krytarowski/lumina
src-qt5/core/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp
8788
#include "DesktopViewPlugin.h" #include <QFileInfo> #include <QDir> #include <QClipboard> #include <QMimeData> #include <QImageReader> #include <LuminaXDG.h> #include "LSession.h" DesktopViewPlugin::DesktopViewPlugin(QWidget* parent, QString ID) : LDPlugin(parent, ID){ this->setLayout( new QVBoxLayout()); thi...
bsd-3-clause
zepheira/exhibit
src/webapp/examples/italian-soccer/tutorial.html
10880
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:css="http://macVmlSchemaUri" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta name=Title content=""> <met...
bsd-3-clause
programacionav/Proyecto2015
modules/admcapacitaciones/admcapacitacionesModule.php
300
<?php namespace app\modules\admcapacitaciones; class admcapacitacionesModule extends \yii\base\Module { public $controllerNamespace = 'app\modules\admcapacitaciones\controllers'; public function init() { parent::init(); // custom initialization code goes here } }
bsd-3-clause
smartdevicelink/sdl_core
src/components/transport_manager/test/include/transport_manager/bt/mock_bluetooth_transport_adapter.h
2405
/* * Copyright (c) 2019, Ford Motor Company * 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 condit...
bsd-3-clause
FernandoMauricio/portal-senac
modules/aux_planejamento/views/cadastros/materialconsumo/view.php
1077
<?php use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model app\modules\aux_planejamento\models\cadastros\Materialconsumo */ $this->title = $model->matcon_cod; $this->params['breadcrumbs'][] = ['label' => 'Materialconsumos', 'url' => ['index']]; $this->params['breadcrumbs'][]...
bsd-3-clause
lz1988/stourwebcms
questions/ask.php
2695
<?php require_once(dirname(__FILE__)."/../include/common.inc.php"); function GetChannel() { global $dsql; $str = "分类:<select name=\"typeid\"><option value=''>--请选择--</option>"; $sql = "select * from #@__nav where pid='0' and isopen='1' and webid='0' and typeid != '10'"; $row = $dsql->getAll($sql); foreach($row AS...
bsd-3-clause
brosner/django-sqlalchemy
tests/query/test_contains.py
1486
from django_sqlalchemy.test import * from apps.blog.models import Category class TestContains(object): def setup(self): Category.__table__.insert().execute({'name': 'Python'}, {'name': 'PHP'}, {'name': 'Ruby'}, {'name': 'Smalltalk'}, {'name': 'CSharp'}, {'name': 'Modula'}, {'name'...
bsd-3-clause
syrexby/repostni
frontend/views/layouts/_advert.php
1439
<?php if (!isset($border)) { $border = false; } if (!isset($button)) { $button = false; } ?> <div class="container best-projects"> <div class="row"> <a href="/advert/create" class="create-best-project"> Реклама по<br/> доступной цене </a> </div> <div ...
bsd-3-clause
Andabekov/TheSuitProject
sql/clothstatustable.sql
1089
CREATE TABLE clothstatustable ( id INT PRIMARY KEY NOT NULL, status_name VARCHAR(200) NOT NULL ); CREATE UNIQUE INDEX unique_id ON clothstatustable (id); INSERT INTO pidzhak.clothstatustable (id, status_name) VALUES (1, 'В обработке'); INSERT INTO pidzhak.clothstatustable (id, status_name) VALUES (2, 'На свер...
bsd-3-clause
esgiprojetninja/ninjaPokedex
public/js/lib/pokedex/actions/pokeSearchTypes.js
374
export const SET_SEARCHED_POKEMONS = "SET_SEARCHED_POKEMONS"; export const SET_SEARCHED_QUERY = "SET_SEARCHED_QUERY"; export const SET_SEARCHED_TYPE = "SET_SEARCHED_TYPE"; export const RESET_SEARCHED_PARAMS = "RESET_SEARCHED_PARAMS"; export const RESET_SEARCHED_POKEMONS = "RESET_SEARCHED_POKEMONS"; export const REMOVE_...
bsd-3-clause
Gaia-Interactive/gaia_core_php
lib/gaia/shortcircuit/resolver.php
4536
<?php namespace Gaia\ShortCircuit; /** * A utility class designed to convert names into file paths for actions and views. */ class Resolver implements Iface\Resolver { protected $appdir = ''; const param_match = '#\\\\\(([a-z0-9_\-]+)\\\\\)#iu'; protected $urls = array(); public function __construct(...
bsd-3-clause
mandrewcito/EOpenCV
scriptExamples/gaussianFilter.py
826
''' script @ mandrewcito ''' import cv2 import numpy as np import sys def callback(x): x = cv2.getTrackbarPos('Kernel X','image') y = cv2.getTrackbarPos('Kernel Y','image') sigma = cv2.getTrackbarPos('sigma/100','image') img =cv2.GaussianBlur(imgOrig,(x,y),sigma/100.0) cv2.imshow('image',img) # Get the to...
bsd-3-clause
eandbsoftware/phpbms
modules/bms/report/lineitems_totals.php
18530
<?php /* $Rev: 373 $ | $LastChangedBy: nate $ $LastChangedDate: 2008-01-04 12:54:39 -0700 (Fri, 04 Jan 2008) $ +-------------------------------------------------------------------------+ | Copyright (c) 2004 - 2007, Kreotek LLC | | All rights reserved. ...
bsd-3-clause
wukchung/Home-development
documentation/api/core/db_Test_PHPUnit_ControllerTestCase.html
204934
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Zend Framework API Documentation</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta><link rel="stylesheet" href="css/black-tie/jquery-ui-1.8.2.custom.css" type="text/css"></link><link rel="stylesheet" href="css/jquery.treeview.css" ty...
bsd-3-clause
praekelt/vumi-go
go/base/static/js/test/components/actions.test.js
6932
describe("go.components.actions", function() { var actions = go.components.actions; var Model = go.components.models.Model; var testHelpers = go.testHelpers, assertRequest = testHelpers.rpc.assertRequest, response = testHelpers.rpc.response, noElExists = testHelpers.noElExists, oneElExis...
bsd-3-clause
ekoontz/pgjdbc
org/postgresql/jdbc2/AbstractJdbc2Statement.java
126655
/*------------------------------------------------------------------------- * * Copyright (c) 2004-2014, PostgreSQL Global Development Group * * *------------------------------------------------------------------------- */ package org.postgresql.jdbc2; import java.io.*; import java.lang.reflect.InvocationTargetExcept...
bsd-3-clause
maxsnew/TAPL
SimplyTyped/Lambda/Implementation/Grammar.hs
5507
module Grammar where import Control.Applicative ((<$>), (<*>)) import Control.Arrow ((***)) import Control.Monad.Reader (Reader, ask, local, runReader) import Data.List (elemIndex) import Data.Maybe (fromJust) import Data.Set as Set (Set, empty, singleton, toList, union, unions) import Test.QuickCheck (Arbitrar...
bsd-3-clause
wirepair/netcode
client.go
11175
package netcode import ( "log" "net" "time" ) const CLIENT_MAX_RECEIVE_PACKETS = 64 const PACKET_SEND_RATE = 10.0 const NUM_DISCONNECT_PACKETS = 10 // number of disconnect packets the client/server should send when disconnecting type Context struct { WritePacketKey []byte ReadPacketKey []byte } type ClientSta...
bsd-3-clause
ichuang/sympy
sympy/core/decorators.py
3543
""" SymPy core decorators. The purpose of this module is to expose decorators without any other dependencies, so that they can be easily imported anywhere in sympy/core. """ from functools import wraps from sympify import SympifyError, sympify def deprecated(func): """This is a decorator which can be used to mar...
bsd-3-clause
denisenkom/django
django/db/migrations/operations/__init__.py
170
from .models import CreateModel, DeleteModel, AlterModelTable, AlterUniqueTogether, AlterIndexTogether from .fields import AddField, RemoveField, AlterField, RenameField
bsd-3-clause
RuslanKozin/yii2-int.mag
controllers/AppController.php
472
<?php namespace app\controllers; use yii\web\Controller; class AppController extends Controller { protected function setMeta( $title = null, $keywords = null, $description = null ) { //Устанавливаем мета-теги $this->view->title = $title; $this->view->registerMetaTag(['name' => 'keywords', ...
bsd-3-clause
candhill/scry
functions.php
10408
<?php // // Scry - Simple PHP Photo Album // Copyright 2004 James Byers <jbyers@users.sf.net> // http://scry.org // // Scry is distributed under a BSD License. See LICENSE for details. // // $Id: functions.php,v 1.18 2004/11/29 00:42:56 jbyers Exp $ // // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!...
bsd-3-clause
brilliantorg/django-components
example/example/templates/example/step_1/attendance_page.html
598
{% extends "base.html" %} {% block content %} {% comment %} The surrounding div id follows a specific formula so it can be automatically updated on ajax requests: `cmp_<component_name>_id` {% endcomment %} <div class="cmp" id="cmp_step_1_attendance_entry_id"> {% comment %} ...
bsd-3-clause
junsanity06/Sentinel
src/Roles/IlluminateRoleRepository.php
1637
<?php /** * Part of the Sentinel package. * * NOTICE OF LICENSE * * Licensed under the 3-clause BSD License. * * This source file is subject to the 3-clause BSD License that is * bundled with this package in the LICENSE file. * * @package Sentinel * @version 2.0.4 * @author Cartalyst LLC * @lice...
bsd-3-clause
liujiasheng/kuaidishu
public/js/adminCommon.js
1995
function showMessage(object, message){ if(message == null) message=""; object.text(message); } function getEmptyResultHtml(){ flushEmptyResultHtml(); var html = '<div class="emptyMsg text-center" class="text-center">列表为空</div>'; return html; } function flushEmptyResultHtml(){ $(".emptyMsg").re...
bsd-3-clause
nocoolnicksleft/TurboControl
TurboControl/Win32.cs
2229
using System; using System.Drawing; using System.Runtime.InteropServices; namespace TurboControl { /// <summary> /// Summary description for Win32. /// </summary> public class Win32 { [DllImport("gdi32.dll", EntryPoint="BitBlt")] public static extern int BitBlt (IntPtr hDestC, int x, int y, int nWidth, in...
bsd-3-clause
Hgjj/CharViewer
js/src/main/scala/unof/cv/utils/Algebra.scala
2302
package unof.cv.utils import scala.scalajs.js import unof.cv.base.JSVec object Algebra { implicit def diVec(dd: (Double, Int)): DDVector = new DDVector(dd._1, dd._2) implicit def idVec(dd: (Int, Double)): DDVector = new DDVector(dd._1, dd._2) implicit def iiVec(dd: (Int, Int)): DDVector = new DDVector(dd._1, d...
bsd-3-clause
kfwalkow/sheetkram
src/main/scala/sheetkram/model/CellVector.scala
499
package sheetkram.model trait CellVector { def cells : IndexedSeq[ Cell ] protected def doEnsure( idx : Int ) : IndexedSeq[ Cell ] = { if ( idx >= cells.size ) cells ++ IndexedSeq.fill( idx - cells.size + 1 )( EmptyCell() ) else cells } protected def doUpdateCell( idx : Int, cell : Cell ...
bsd-3-clause
nikai3d/ce-challenges
moderate/reverse_groups.lua
366
function div(a, b) return math.floor(a/b) end for line in io.lines(arg[1]) do local sep, a = line:find(";"), {} for i in line:sub(1, sep):gmatch("%d+") do a[#a + 1] = i end local l = tonumber(line:sub(sep+1)) for c = l, #a, l do for i = 1, div(l, 2) do a[c+1-i], a[c-l+i] = a[c-l+i], a[c+1-i] ...
bsd-3-clause
epri-dev/PT2
Documents/javadoc/org/epri/pt2/controller/ContentDataController.html
17904
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_20) on Sat Oct 20 16:08:43 CDT 2012 --> <TITLE> ContentDataController </TITLE> <META NAME="date" CONTENT="2012-10-20"> <LINK REL ="stylesheet" TYPE...
bsd-3-clause
keybase/client
go/service/gpg.go
1584
// Copyright 2015 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. package service import ( keybase1 "github.com/keybase/client/go/protocol/keybase1" "github.com/keybase/go-framed-msgpack-rpc/rpc" "golang.org/x/net/context" ) type RemoteGPGUI struct { session...
bsd-3-clause
nwjs/chromium.src
chrome/android/junit/src/org/chromium/chrome/browser/browserservices/digitalgoods/DigitalGoodsConverterTest.java
13661
// Copyright 2020 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. package org.chromium.chrome.browser.browserservices.digitalgoods; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assert...
bsd-3-clause
NifTK/MITK
Modules/Core/src/Rendering/mitkOverlay.cpp
9744
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
bsd-3-clause
cpmech/gosl
ode/methods.go
1549
// Copyright 2016 The Gosl 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 ode import ( "github.com/cpmech/gosl/chk" "github.com/cpmech/gosl/la" ) // rkmethod defines the required functions of Runge-Kutta method type rkme...
bsd-3-clause
blockoperation/boxnope
src/utils.hpp
308
// Copyright (c) 2016-2017, blockoperation. All rights reserved. // boxnope is distributed under the terms of the BSD license. // See LICENSE for details. #ifndef BOXNOPE_UTILS_HPP #define BOXNOPE_UTILS_HPP #define QS(s) QString(s) #define QSL(s) QStringLiteral(s) #define QL1S(s) QLatin1String(s) #endif
bsd-3-clause
flipactual/react
src/isomorphic/classic/types/__tests__/ReactPropTypes-test.js
37790
/** * Copyright 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. * * @emails react...
bsd-3-clause
mrapitis/sdl_android
sdl_android_lib/src/com/smartdevicelink/protocol/ProtocolFrameHeader.java
4083
package com.smartdevicelink.protocol; import com.smartdevicelink.protocol.enums.FrameType; import com.smartdevicelink.protocol.enums.SessionType; import com.smartdevicelink.util.BitConverter; public class ProtocolFrameHeader { private byte version = 1; private boolean compressed = false; private FrameType...
bsd-3-clause
timcera/tsgettoolbox
src/tsgettoolbox/ulmo/ncdc/ghcn_daily/core.py
9898
# -*- coding: utf-8 -*- """ ulmo.ncdc.ghcn_daily.core ~~~~~~~~~~~~~~~~~~~~~~~~~ This module provides direct access to `National Climatic Data Center`_ `Global Historical Climate Network - Daily`_ dataset. .. _National Climatic Data Center: http://www.ncdc.noaa.gov .. _Global Historical Climat...
bsd-3-clause
FatturaElettronicaPA/FatturaElettronicaPA
Test/Ordinaria/FatturaElettronicaBodyValidator.cs
4718
using System.Linq; using FatturaElettronica.Ordinaria.FatturaElettronicaBody; using FatturaElettronica.Ordinaria.FatturaElettronicaBody.DatiBeniServizi; using FatturaElettronica.Ordinaria.FatturaElettronicaBody.DatiGenerali; using FatturaElettronica.Common; using FluentValidation.TestHelper; using Tests; using Microso...
bsd-3-clause
GaloisInc/hacrypto
src/C/FELICS/common/msp/src/printf.c
15191
/****************************************************************************** * * msp430 printf function compatible with mspdebug simulator * Originally for mspgcc libc, only modificatin was to inline vuprintf * inside printf * ******************************************************************************/ #...
bsd-3-clause
MarginC/kame
openbsd/sys/scsi/atapi_cd.h
4714
/* $OpenBSD: atapi_cd.h,v 1.1 1999/07/20 06:21:59 csapuntz Exp $ */ /* $NetBSD: atapi_cd.h,v 1.9 1998/07/13 16:50:56 thorpej Exp $ */ /* * Copyright (c) 1996 Manuel Bouyer. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the f...
bsd-3-clause
foxostro/GutsyStormCocoa
GutsyStorm/GSVectorUtils.h
445
// // GSVectorUtils.h // GutsyStorm // // Created by Andrew Fox on 3/18/12. // Copyright © 2012-2016 Andrew Fox. All rights reserved. // #import <simd/vector.h> NSUInteger vector_hash(vector_float3 v); static inline vector_float3 vector_make(float x, float y, float z) { return (vector_float3){x, y, z}; } st...
bsd-3-clause
hostkerala/yii2-test
backend/controllers/CategoriesController.php
3237
<?php namespace backend\controllers; use Yii; use common\models\Categories; use common\models\CategoriesSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * Created By Roopan v v <yiioverflow@gmail.com> * Date : 24-04-2015 * Time :3:00 PM * CategoriesController imp...
bsd-3-clause
loopCM/chromium
content/browser/gpu/gpu_data_manager_impl.cc
7341
// Copyright (c) 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 "content/browser/gpu/gpu_data_manager_impl.h" #include "content/browser/gpu/gpu_data_manager_impl_private.h" namespace content { // static...
bsd-3-clause
INCF/lib9ML
test/unittests/abstraction_test/dynamics_test.py
37676
import unittest from sympy import sympify from nineml.abstraction import ( Dynamics, AnalogSendPort, Alias, AnalogReceivePort, AnalogReducePort, Regime, On, OutputEvent, EventReceivePort, Constant, StateVariable, Parameter, OnCondition, OnEvent, Trigger) import nineml.units as un from nineml.exceptions ...
bsd-3-clause
kkurzhal/space-shooter
Assets/Scripts/DestroyByContact.cs
1125
using UnityEngine; using System.Collections; public class DestroyByContact : MonoBehaviour { public GameObject explosion; public GameObject playerExplosion; public int scoreValue; private GameController gameController; void Start() { GameObject gameControllerObject = GameObject.FindWi...
bsd-3-clause
Caleydo/caleydo
org.caleydo.data.importer/src/org/caleydo/data/importer/tcga/FirehoseProvider.java
19060
/******************************************************************************* * Caleydo - Visualization for Molecular Biology - http://caleydo.org * Copyright (c) The Caleydo Team. All rights reserved. * Licensed under the new BSD license, available at http://caleydo.org/license *********************************...
bsd-3-clause
e1528532/libelektra
src/tools/qt-gui/qml/TooltipCreator.js
1067
.pragma library var tooltip = null function create(name, value, meta, defaultMargins, x, y, parent) { var component = Qt.createComponent("ToolTip.qml") var properties = {} properties.name = name properties.value = value properties.meta = meta properties.defaultMargins = defaultMargins properties.parentWidth...
bsd-3-clause
NServiceKit/NServiceKit.OrmLite
src/NServiceKit.OrmLite.MySql.Tests/DateTimeColumnTest.cs
3031
using System; using System.Collections.Generic; using System.Linq; using System.Text; using NUnit.Framework; using NServiceKit.DataAnnotations; using NServiceKit.DesignPatterns.Model; namespace NServiceKit.OrmLite.MySql.Tests { /// <summary>A date time column test.</summary> [TestFixture] public class Dat...
bsd-3-clause
stan-dev/math
test/unit/math/opencl/rev/double_exponential_lpdf_test.cpp
6853
#ifdef STAN_OPENCL #include <stan/math/opencl/rev.hpp> #include <stan/math.hpp> #include <gtest/gtest.h> #include <test/unit/math/opencl/util.hpp> #include <vector> TEST(ProbDistributionsDoubleExponential, error_checking) { int N = 3; Eigen::VectorXd y(N); y << -0.3, 0.8, 1.5; Eigen::VectorXd y_size(N - 1); ...
bsd-3-clause
dharple/detox
bin/generate-builtin.sh
526
#!/usr/bin/env bash # # Generate src/builtin_table.c # PROJECT_ROOT=$(dirname "$(dirname "$(realpath "$0")")") cd "$PROJECT_ROOT" || exit SRCDIR=$PROJECT_ROOT/src GENERATE=$SRCDIR/generate-builtin-table if [ ! -x "$GENERATE" ] ; then echo "please build $GENERATE first" exit 1 fi cp "$SRCDIR"/builtin_table.c.in "$...
bsd-3-clause
nordsoftware/yii2-account
tests/codeception/acceptance/02-LoginCept.php
235
<?php $I = new AcceptanceTester\AccountSteps($scenario); $I->wantTo('log in using an existing account and see the result'); $I->amOnPage(\LoginPage::$URL); $I->login('demo', 'demo1234'); $I->dontSee('Incorrect username or password.');
bsd-3-clause
ARCCN/hcprobe
src/Network/Openflow/Ethernet/IPv4.hs
1878
{-# LANGUAGE BangPatterns #-} module Network.Openflow.Ethernet.IPv4 (IPv4Flag(..), IPv4(..), putIPv4Pkt) where import Network.Openflow.Ethernet.Types import Network.Openflow.Misc import Data.Word -- import qualified Data.ByteString as BS import qualified Data.ByteString.Unsafe as BS import Network.Openflow.StrictPut ...
bsd-3-clause
jneslen/matrix42
application/logs/2012/05/21.php
7013
<?php defined('SYSPATH') or die('No direct script access.'); ?> 2012-05-21 08:47:09 --- ERROR: HTTP_Exception_404 [ 404 ]: Unable to find a route to match the URI: favicon.ico ~ SYSPATH/classes/kohana/request.php [ 1126 ] 2012-05-21 08:47:09 --- STRACE: HTTP_Exception_404 [ 404 ]: Unable to find a route to match the U...
bsd-3-clause
Junaid-Farid/staylance-new
frontend/views/travellerslanguages/update.php
3419
<div class="container"> <?php use yii\helpers\Html; use yii\helpers\Url; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model app\models\TravellerPhoto */ $this->title = Yii::t('app', 'Update Traveller Languages'); ?> <div class="traveller-photo-create"> <d...
bsd-3-clause
jeremyclifton/sitecore-testing-automator
Data/TestAutomator/TestResult.cs
1373
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; using System.Xml.XPath; namespace JeremyClifton.Data.TestAutomator { public class TestResult { private XElement _data; public XElement Data { get { return _data; } ...
bsd-3-clause
mistermarco/swat
stanford.database.php
7278
<?php /** * StanfordDatabase is an extension of MySQLi intended to assist developers in creating secure database-enabled applications * * Copyright 2008,2009 Board of Trustees, Leland Stanford Jr. University * See LICENSE for licensing terms. * */ class StanfordDatabase extends MySQLi { const VERS...
bsd-3-clause
FbN/Zend-Framework-Namespaced-
Zend/Dojo/View/Helper/ContentPane.php
2024
<?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
Ashoat/squadcal
native/media/ffmpeg.js
4898
// @flow import { RNFFmpeg, RNFFprobe, RNFFmpegConfig } from 'react-native-ffmpeg'; import { getHasMultipleFramesProbeCommand } from 'lib/media/video-utils'; import type { Dimensions, FFmpegStatistics, VideoInfo, } from 'lib/types/media-types'; const maxSimultaneousCalls = { process: 1, probe: 1, }; type ...
bsd-3-clause
v-joy/v-joy
views/authitemchild/update.php
640
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model app\models\AuthItemChild */ $this->title = Yii::t('app', '更新: ', [ 'modelClass' => 'Auth Item Child', ]) . ' ' . $model->parent; $this->params['breadcrumbs'][] = ['label' => '权限关系', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['la...
bsd-3-clause
lipsia-fmri/lipsia
src/lib_viaio/znzlib.c
7892
/** \file znzlib.c \brief Low level i/o interface to compressed and noncompressed files. Written by Mark Jenkinson, FMRIB This library provides an interface to both compressed (gzip/zlib) and uncompressed (normal) file IO. The functions are written to have the same interface as the standard file IO functi...
bsd-3-clause
wooster/django-topsoil
tests/test_provider/testapp/models.py
430
from django.db import models class Place(models.Model): name = models.CharField(max_length=128) url = models.URLField(max_length=256, verify_exists=False) date = models.DateTimeField(auto_now_add=True) class Meta(object): topsoil_exclude = ['date'] def get_absolute_url(self): ...
bsd-3-clause
wnoc-drexel/gem5-stable
src/doxygen/html/rob__impl_8hh-source.html
60497
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>gem5: cpu/o3/rob_impl.hh Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </hea...
bsd-3-clause
iiman/mytardis
tardis/tardis_portal/templates/tardis_portal/ajax/dataset_metadata.html
1952
{% load url from future %} {% load capture %} {% if has_write_permissions and not dataset.immutable %} <div class="pull-right"> <a title="Add" href="{% url 'tardis.tardis_portal.views.add_dataset_par' dataset.id %}" class="add-metadata btn btn-primary btn-mini" data-toggle_selector="#dataset_metadata_...
bsd-3-clause