repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
homeworkprod/byceps | byceps/services/authentication/service.py | 1863 | """
byceps.services.authentication.service
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2021 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
from typing import Optional
from ...typing import UserID
from ..user import service as user_service
from ..user.transfer.models impo... | bsd-3-clause |
jfranciscomn/elecciones | views/gama-vehiculo/create.php | 495 | <?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\GamaVehiculo */
$this->title = 'Agregar Nueva Linea';
$this->params['breadcrumbs'][] = ['label' => 'Linea del Vehiculo', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="gama-vehiculo-create">
... | bsd-3-clause |
msf-oca-his/dhis2-core | dhis-2/dhis-services/dhis-service-tracker/src/test/java/org/hisp/dhis/tracker/bundle/ReportSummaryIntegrationTest.java | 21131 | /*
* 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 |
phretor/django-academic | academic/apps/projects/middleware.py | 496 | from django.http import HttpResponseRedirect
from academic.projects.models import Project
class ProjectRedirectMiddleware(object):
def process_view(self, request, view_func, view_args, view_kwargs):
if 'slug' in view_kwargs:
try:
object = Project.objects.get(slug=view_kwargs['s... | bsd-3-clause |
janalis/doctrineviz | test/Graphviz/VertexTest.php | 2381 | <?php
/*
* This file is part of the doctrineviz package
*
* Copyright (c) 2017 Pierre Hennequart
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Feel free to edit as you please, and have fun.
*
* @author Pierre Hennequart <pie... | bsd-3-clause |
xin3liang/platform_external_chromium_org_third_party_WebKit | Source/core/html/ime/InputMethodContext.cpp | 5739 | /*
* 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... | bsd-3-clause |
timopulkkinen/BubbleFish | net/base/multi_threaded_cert_verifier.cc | 19233 | // 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/base/multi_threaded_cert_verifier.h"
#include <algorithm>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/compile... | bsd-3-clause |
Cocotteseb/Krypton | Source/Krypton Components/ComponentFactory.Krypton.Ribbon/View Draw/ViewDrawRibbonAppMenu.cs | 3492 | // *****************************************************************************
//
// © Component Factory Pty Ltd 2012. All rights reserved.
// The software and associated documentation supplied hereunder are the
// proprietary information of Component Factory Pty Ltd, 17/267 Nepean Hwy,
// Seaford, Vic 319... | bsd-3-clause |
asamgir/openspecimen | www/app/modules/administrative/form/module.js | 856 |
angular.module('os.administrative.form',
[
'os.administrative.form.list',
'os.administrative.form.addedit',
'os.administrative.form.formctxts'
])
.config(function($stateProvider) {
$stateProvider
.state('form-list', {
url: '/forms',
templateUrl: 'modules/administrative/for... | bsd-3-clause |
praxisnetau/silverware | src/Folders/TemplateFolder.php | 2651 | <?php
/**
* This file is part of SilverWare.
*
* PHP version >=5.6.0
*
* For full copyright and license information, please view the
* LICENSE.md file that was distributed with this source code.
*
* @package SilverWare\Folders
* @author Colin Tucker <colin@praxis.net.au>
* @copyright 2017 Praxis Interactive
... | bsd-3-clause |
sysdevbol/entidad | application/classes/model/paises.php | 188 | <?php
defined('SYSPATH') or die ('no tiene acceso');
//descripcion del modelo productos
class Model_Paises extends ORM{
protected $_table_names_plural = false;
}
?>
| bsd-3-clause |
statiagov/gesmew | backend/spec/features/admin/configuration/tax_rates_spec.rb | 508 | require 'spec_helper'
describe "Tax Rates", type: :feature, js: true do
stub_authorization!
let!(:tax_rate) { create(:tax_rate, calculator: stub_model(Gesmew::Calculator)) }
# Regression test for #1422
it "can create a new tax rate" do
visit gesmew.admin_path
click_link "Configuration"
click_link... | bsd-3-clause |
GCRC/nunaliit | nunaliit2-js/src/main/js/nunaliit2/n2.history.js | 24796 | /*
Copyright (c) 2012, Geomatics and Cartographic Research Centre, Carleton
University
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... | bsd-3-clause |
mikest/geode | geode/geometry/Bezier.cpp | 15380 | #include "Bezier.h"
#include <geode/vector/Matrix4x4.h>
#include <geode/vector/Matrix.h>
#include <geode/utility/stl.h>
#include <geode/python/Class.h>
#include <geode/python/stl.h>
#include <geode/geometry/polygon.h>
#include <iostream>
namespace geode {
using std::cout;
using std::endl;
template<> GEODE_DEFINE_TYPE... | bsd-3-clause |
N3X15/MiddleCraft | src-interface/net/minecraft/server/NoiseGenerator.java | 235 | // AUTOMATICALLY GENERATED BY MIDDLECRAFT
/* Allows plugins to access server functions without needing to link the actual server Jar. */
package net.minecraft.server;
public abstract class NoiseGenerator {
// FIELDS
// METHODS
}
| bsd-3-clause |
wolfspyre/go-collectd | cdtime/cdtime_test.go | 2116 | package cdtime // import "collectd.org/cdtime"
import (
"testing"
"time"
)
// TestConversion converts a time.Time to a cdtime.Time and back, expecting the
// original time.Time back.
func TestConversion(t *testing.T) {
cases := []string{
"2009-02-04T21:00:57-08:00",
"2009-02-04T21:00:57.1-08:00",
"2009-02-04... | isc |
RangerMauve/lignum | examples/exampleStringBuilder.js | 466 | "use strict";
var path = require("path");
var fs = require("fs");
var stringBuilder = require("../lib/stringBuilder");
var treeify = require("../lib/treeify");
var tokenize = require("../lib/tokenize");
var templateName = path.join(__dirname, "./example.html");
var template = fs.readFileSync(templateName, "utf8");
var... | isc |
damienmortini/dlib | node_modules/jsdoc/lib/jsdoc/readme.js | 553 | /**
* Make the contents of a README file available to include in the output.
* @module jsdoc/readme
*/
const env = require('jsdoc/env');
const fs = require('jsdoc/fs');
const markdown = require('jsdoc/util/markdown');
/**
* Represents a README file.
*/
class ReadMe {
/**
* @param {string} path - The file... | isc |
LukasBombach/new-type-js | src/utilities/environment.js | 211 | 'use strict';
export default class Environment {
/**
* Is the user's computer a Macintosh computer
* @type {boolean}
*/
static get mac() { return navigator.appVersion.indexOf('Mac') !== -1; };
}
| mit |
s4san/WSN | Simulation/src/base/package-info.java | 55 | /**
*
*/
/**
* @author welcome
*
*/
package base; | mit |
tzanetos/graphs | graphs/libs/ubigraph/UbiGraph-alpha-0.2.4-Linux64-Ubuntu-8.04/examples/Java/examples/JavaCC/JavaParser.java | 216784 | /* Generated By:JJTree&JavaCC: Do not edit this line. JavaParser.java */
import java.io.*;
/**
* Grammar to parse Java version 1.5
* @author Sreenivasa Viswanadha - Simplified and enhanced for 1.5
*/
public class JavaParser/*@bgen(jjtree)*/implements JavaParserTreeConstants, JavaParserConstants {/*@bgen(jjtree)*/
... | mit |
whizark/php-patterns | src/Whizark/DesignPatterns/GoF/Creational/FactoryMethod/CreatorInterface.php | 395 | <?php
namespace Whizark\DesignPatterns\GoF\Creational\FactoryMethod;
use Whizark\DesignPatterns\GoF\Creational\FactoryMethod\ProductInterface;
/**
* Interface CreatorInterface
* @package Whizark\DesignPatterns\GoF\Creational\FactoryMethod
*/
interface CreatorInterface
{
/**
* A Factory Method.
*
... | mit |
YaniLozanov/Software-University | Java Script/01. JS Fundamentals/Exam 11.05.2016/01. Medenka Wars.js | 1484 | function medenkaWars(input) {
let whiteDamage = 0, darkDamage = 0;
let whiteNormalAttacks = [];
let darkNormalAttacks = [];
for(let line of input){
let tokens = line.split(' ').filter(t => t != "");
let damage = Number(tokens[0]) * 60;
let attacker = tokens[1];
if(attac... | mit |
jakedetels/easy-bdd | lib/browser/utils/each-series.js | 469 | import RSVP from 'RSVP';
export default function eachSeries (arr, iterator) {
var completed = 0;
return new RSVP.Promise(function(resolve, reject) {
iterate();
function iterate() {
if (completed >= arr.length) {
resolve();
return;
}
iterator(arr[completed], function... | mit |
thestranger/propertycrowd | config/initializers/devise.rb | 9839 | # Use this hook to configure devise mailer, warden hooks and so forth.
# Many of these configuration options can be set straight in your model.
Devise.setup do |config|
config.warden do |manager|
manager.failure_app = CustomFailure
end
# ==> Mailer Configuration
# Configure the e-mail address which will be ... | mit |
RalfEggert/phpmagazin.console | module/Application/template_map.php | 377 | <?php
// Generated by ZF2's ./bin/templatemap_generator.php
return array(
'application/index/index' =>
__DIR__ . '/view/application/index/index.phtml',
'error/index' => __DIR__ . '/view/error/index.phtml',
'error/404' => __DIR__ . '/view/error/404.phtml',
'layout/layout... | mit |
jaredthirsk/Core | src/LionFire.Utility.Legacy/BugReporter/IBugReporter.cs | 986 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Threading;
using System.Text;
using System.Threading.Tasks;
namespace LionFire.Applications
{
public interface IBugReporter
{
bool IsEnabled { get; set; }
#if !UNITY
/// <summary>
/// Return true ... | mit |
exercism/xgo | exercises/yacht/.meta/gen.go | 1008 | package main
import (
"log"
"text/template"
"../../../gen"
)
func main() {
t, err := template.New("").Parse(tmpl)
if err != nil {
log.Fatal(err)
}
var j js
if err := gen.Gen("yacht", &j, t); err != nil {
log.Fatal(err)
}
}
// The JSON structure we expect to be able to unmarshal into
type js struct {
E... | mit |
tmcgee/cmv-wab-widgets | wab/2.13/widgets/DistanceAndDirection/setting/nls/fi/strings.js | 612 | define({
"feedbackStyleLabel": "Etäisyyden ja suunnan palautteen tyyli",
"showTabLabel": "Näytä välilehti",
"feedbackShapeLabel": "Palautteen muoto",
"lineColorLabel": "Viivan väri",
"lineWidthLabel": "Viivan leveys",
"feedbackLabel": "Palautteen tunnusteksti",
"textColorLabel": "Tekstin väri",
"textSiz... | mit |
chhe/livestreamer-twitch-gui | src/test/tests/services/notification/badge.js | 1939 | import { module, test } from "qunit";
import { buildOwner, runDestroy } from "test-utils";
import { set } from "@ember/object";
import { run } from "@ember/runloop";
import Service from "@ember/service";
import notificationServiceBadgeMixinInjector
from "inject-loader?nwjs/Window!services/notification/badge";
modul... | mit |
ungdev/integration-UTT | database/migrations/2019_07_04_150341_AddPushTokenTable.php | 771 | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddPushTokenTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('devices', functi... | mit |
metno/satistjenesten | docs/conf.py | 10619 | # -*- coding: utf-8 -*-
#
# satistjenesten documentation build configuration file, created by
# sphinx-quickstart on Thu Nov 13 10:58:40 2014.
#
# 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... | mit |
rick/larry | app/controllers/hosts_controller.rb | 761 | class HostsController < ApplicationController
resources_controller_for :host
before_filter :extract_format_from_hostname, :only => [ :configuration ]
def configuration
@host = Host.find_by_name!(params[:name])
respond_to do |format|
format.html { redirect_to host_url(@host) }
format.pp ... | mit |
stephaneAG/PengPod700 | QtEsrc/qt-everywhere-opensource-src-4.8.5/examples/graphicsview/anchorlayout/main.cpp | 5510 | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of th... | mit |
carlosrubio/TimeWatcher | tasks/test.js | 475 | 'use strict';
module.exports = function (grunt) {
grunt.registerTask('testserver', [
'clean:server',
'concurrent:server',
'autoprefixer',
'connect:test'
]);
grunt.registerTask('test', [
'karma:unit',
'testserver',
'karma:e2e'
]);
grunt.regi... | mit |
Moccine/global-service-plus.com | web/libariries/bootstrap/node_modules/grunt-legacy-log-utils/node_modules/lodash/isPlainObject.js | 1860 | var isHostObject = require('./_isHostObject'),
isObjectLike = require('./isObjectLike');
/** `Object#toString` result references. */
var objectTag = '[object Object]';
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to resolve the decompiled source of functions. ... | mit |
icaynia/SoundKi | pracler/src/main/java/com/icaynia/pracler/Fragment/HomeFragment.java | 4457 | package com.icaynia.pracler.Fragment;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view... | mit |
xtina-starr/reaction | src/Components/Publishing/RelatedArticles/Canvas/__tests__/RelatedArticlesCanvas.test.tsx | 2421 | import { mockTracking } from "Artsy/Analytics"
import { RelatedCanvas } from "Components/Publishing/Fixtures/Components"
import { mount } from "enzyme"
import "jest-styled-components"
import React from "react"
import renderer from "react-test-renderer"
import Waypoint from "react-waypoint"
import { RelatedArticleCanvas... | mit |
acornea/meta-intel-iot-security | meta-security-smack/lib/oeqa/runtime/files/notroot.py | 898 | #!/usr/bin/env python
#
# Script used for running executables with custom labels, as well as custom uid/gid
# Process label is changed by writing to /proc/self/attr/curent
#
# Script expects user id and group id to exist, and be the same.
#
# From adduser manual:
# """By default, each user in Debian GNU/Linux is g... | mit |
ScottKolo/UFSMC-Web | db/collection_data/matrices/Sandia/oscil_dcop_55.rb | 1219 | {
matrix_id: '1166',
name: 'oscil_dcop_55',
group: 'Sandia',
description: 'Sandia/oscil_dcop_55 circuit simulation matrix. Sandia National Lab.',
author: 'R. Hoekstra',
editor: 'T. Davis',
date: '2003',
kind: 'subsequent circuit simulation problem',
problem_2D_or_3D: '0',
num_row... | mit |
KonH/UDBase | Extensions/OneLine/OneLine/Example/Details/Scripts/ExpandableExample.cs | 561 | using System;
using UnityEngine;
using OneLine;
namespace OneLine.Examples {
[CreateAssetMenu(menuName = "OneLine/ExpandableExample")]
public class ExpandableExample : ScriptableObject {
[SerializeField, Expandable]
private UnityEngine.Object withoutOneLine;
[SerializeField, OneLine]
private TwoFiel... | mit |
nrc/rustc-perf | collector/benchmarks/cranelift-codegen/cranelift-codegen/src/legalizer/mod.rs | 14098 | //! Legalize instructions.
//!
//! A legal instruction is one that can be mapped directly to a machine code instruction for the
//! target ISA. The `legalize_function()` function takes as input any function and transforms it
//! into an equivalent function using only legal instructions.
//!
//! The characteristics of l... | mit |
types/npm-ramda | tests/endsWith.ts | 323 | import * as R from '../ramda/dist/index';
declare const string: string;
declare const boolean_array: boolean[];
// @dts-jest:pass:snap
R.endsWith(string);
// @dts-jest:pass:snap
R.endsWith(string, string);
// @dts-jest:pass:snap
R.endsWith(boolean_array);
// @dts-jest:pass:snap
R.endsWith(boolean_array, boolean_array... | mit |
oliviertassinari/material-ui | packages/mui-icons-material/lib/esm/DonutSmallRounded.js | 524 | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M11 3.18v17.64c0 .64-.59 1.12-1.21.98C5.32 20.8 2 16.79 2 12s3.32-8.8 7.79-9.8c.62-.14 1.21.34 1.21.98zm2.03 0v6.81c0 .55.45 1 1 1h6.79c.64 0 1.12-.59.98-1.... | mit |
mauriciozaffari/mongoid_search | spec/spec_helper.rb | 835 | require 'simplecov'
SimpleCov.start
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'mongoid'
require 'database_cleaner'
require 'fast_stemmer'
require 'yaml'
require 'mongoid_search'
require 'mongoid-compatibility'
Mongoid.configure do |config|
... | mit |
dotJEM/angular-lessons | src/assets/lib/bower/dotjem-angular-routing/build/src/state/stateRules.d.ts | 236 | /// <reference path="../refs.d.ts" />
declare class StateRules {
private static nameValidation;
private static targetValidation;
static validateName(name: string): void;
static validateTarget(target: string): boolean;
}
| mit |
jamescallmebrent/gold-record | test/cases/associations/habtm_uuid_to_uuid_association_test.rb | 487 | require 'cases/helper'
require 'models/artist'
require 'models/fan'
class HabtmUuidToUuidAssociationTest < ActiveRecord::TestCase
fixtures :artists
fixtures :fans
def test_association_find
artist = artists(:beatles)
fans = artist.fans
assert_equal 8, fans.size
fans.each do |fans|
assert fa... | mit |
cahein/oui5lib | examples/FormPage/fragment/HelpButton.fragment.js | 399 | sap.ui.jsfragment("oum.fragment.HelpButton", {
createContent: function () {
const btn = new sap.m.Button({
icon : "sap-icon://sys-help",
tooltip : "{i18n>help.tooltip}",
press: function() {
const router = oui5lib.util.getComponentRouter();
... | mit |
box-project/amend | src/tests/KevinGH/Amend/Tests/CommandTest.php | 4019 | <?php
/* This file is part of Amend.
*
* (c) 2012 Kevin Herrera
*
* For the full copyright and license information, please
* view the LICENSE file that was distributed with this
* source code.
*/
namespace KevinGH\Amend\Tests;
use KevinGH\Amend\Command;
use KevinGH\Amend\Helper;
use Herrera\Box\Box;
use Herre... | mit |
timsvoice/great_green_sources | core/lexicon/ru/system_info.inc.php | 3597 | <?php
/**
* System Info Russian lexicon topic
*
* @language ru
* @package modx
* @subpackage lexicon
*/
$_lang['database_charset'] = 'Кодировка базы данных';
$_lang['database_name'] = 'Имя базы данных';
$_lang['database_server'] = 'Сервер базы данных';
$_lang['database_tables'] = 'Таблицы базы данных';
$_lang['da... | mit |
oliviertassinari/material-ui | packages/mui-icons-material/lib/ArrowDropUpTwoTone.js | 490 | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | mit |
JimmyBlastoff/unbroken | src/qt/locale/bitcoin_de.ts | 120305 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="de" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Bitcoin</source>
<translation>Über Bitcoin</translation>
</messa... | mit |
braz/mojito-helloworld | node_modules/mojito/node_modules/yui/axis-numeric/axis-numeric-debug.js | 5535 | YUI.add('axis-numeric', function (Y, NAME) {
/**
* Provides functionality for drawing a numeric axis for use with a chart.
*
* @module charts
* @submodule axis-numeric
*/
Y_Lang = Y.Lang;
/**
* NumericAxis draws a numeric axis.
*
* @class NumericAxis
* @constructor
* @extends Axis
* @uses NumericImpl
* @pa... | mit |
olszak94/DevAAC | DevAAC/Models/Account.php | 4378 | <?php
/**
* DevAAC
*
* Automatic Account Creator by developers.pl for TFS 1.0
*
*
* LICENSE: 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 limit... | mit |
sigaind/cupon | vendor/sonata-project/admin-bundle/Sonata/AdminBundle/Security/Handler/AclSecurityHandler.php | 8472 | <?php
/*
* This file is part of the Sonata project.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\AdminBundle\Security\Handler;
use Symfony\Component\Se... | mit |
timrobinson/NPackage | src/UnitTests/Properties/AssemblyInfo.cs | 1394 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Un... | mit |
ld-test/gimlet-cocktail | gimlet/logger.lua | 499 | local ft
ft = function(t)
return os.date("%F %T", t)
end
local Logger
Logger = function(log)
return function(p)
local start = p.utils.now()
log:write(string.format("%s - Started %s %s\n", ft(start), p.request.method, p.request.url_path))
p = coroutine.yield()
return log:write(string.format("%s - Com... | mit |
jeremyrussell/ionic | js/angular/controller/sideMenuController.js | 12690 | IonicModule
.controller('$ionicSideMenus', [
'$scope',
'$attrs',
'$ionicSideMenuDelegate',
'$ionicPlatform',
'$ionicBody',
'$ionicHistory',
'$ionicScrollDelegate',
function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody, $ionicHistory, $ionicScrollDelegate) {
var self = this;
var r... | mit |
fichter/libpbrpc | src/pbrpc/ControllerRPC.hh | 1150 | #ifndef __ControllerRPC_HH_INCLUDED_
#define __ControllerRPC_HH_INCLUDED_
#include <string>
#include <google/protobuf/service.h>
#include <pbrpc.pb.h>
namespace pbrpc {
using ::std::string;
using ::google::protobuf::RpcController;
using ::google::protobuf::Closure;
using ::pbrpc::Error;
class ControllerRPC : publi... | mit |
anhstudios/swganh | data/scripts/templates/object/mobile/shared_purbole_elder.py | 434 | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Creature()
result.template = "object/mobile/shared_purbole_elder.iff"
result.attribute_template_id = 9
result.st... | mit |
DimitriMikadze/laravel-angular-cms | gulpfile.js | 1518 | var elixir = require('laravel-elixir');
require('laravel-elixir-ng-annotate');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining s... | mit |
gree/flare-tools | lib/flare/test/cluster.rb | 4212 | # -*- coding: utf-8; -*-
# Authors:: Kiyoshi Ikehara <kiyoshi.ikehara@gree.net>
# Copyright:: Copyright (C) GREE, Inc. 2011.
# License:: MIT-style
require 'uri'
require 'flare/tools'
require 'flare/test/daemon'
require 'flare/test/node'
#
module Flare
module Test
# == Description
#
class Cluster
... | mit |
hpautonomy/jsWhatever | src/js/repeater.js | 1799 | /*
* Copyright 2013-2017 Hewlett Packard Enterprise Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
/**
* @module js-whatever/js/repeater
*/
define([
'underscore'
], function(_) {
'use strict';
/**
* ... | mit |
lammas/frak-1.x | src/scene/components/PerspectiveCamera.js | 2928 | /** Camera component providing perspective projection */
var PerspectiveCamera=CameraComponent.extend({
init: function(fov, aspect, near, far) {
if(!fov) fov=45.0;
if(!near) near=0.3;
if(!far) far=1000.0;
if(!aspect) aspect=4/3;
this.fov=fov;
this.aspect=aspect;
this.near=near;
this.far=far;
// Vie... | mit |
georghinkel/ttc2017smartGrids | solutions/eMoflon/rgse.ttc17.metamodels.src/src/gluemodel/CIM/IEC61970/Informative/InfAssets/impl/InfAssetsPackageImpl.java | 131866 | /**
*/
package gluemodel.CIM.IEC61970.Informative.InfAssets.impl;
import gluemodel.CIM.CIMPackage;
import gluemodel.CIM.IEC61968.AssetModels.AssetModelsPackage;
import gluemodel.CIM.IEC61968.AssetModels.impl.AssetModelsPackageImpl;
import gluemodel.CIM.IEC61968.Assets.AssetsPackage;
import gluemodel.CIM.IEC61968.... | mit |
sergejey/majordomo | modules/terminals/terminals.class.php | 14254 | <?php
/**
* Terminals
*
* Terminals
*
* @package MajorDoMo
* @author Serge Dzheigalo <jey@tut.by> http://smartliving.ru/
* @version 0.3
*/
//
//
class terminals extends module
{
/**
* terminals
*
* Module class constructor
*
* @access private
*/
function __construct()
{... | mit |
jackmagic313/azure-sdk-for-net | sdk/keyvault/Azure.Security.KeyVault.Keys/src/KeyVaultPipeline.cs | 356 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using Azure.Core.Pipeline;
namespace Azure.Security.KeyVault
{
internal partial class KeyVaultPipeline
{
public KeyVaultPipeline(ClientDiagnostics clientDiagnostics)
{
Diagnostics = cli... | mit |
facelessuser/sublime-markdown-popups | st3/mdpopups/pygments/lexers/iolang.py | 1890 | # -*- coding: utf-8 -*-
"""
pygments.lexers.iolang
~~~~~~~~~~~~~~~~~~~~~~
Lexers for the Io language.
:copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from ..lexer import RegexLexer
from ..token import Text, Comment, Operator, Keyword,... | mit |
cryogen/gameteki | server/game/cards/06.4-TRW/SerAxellFlorent.js | 927 | const DrawCard = require('../../drawcard.js');
class SerAxellFlorent extends DrawCard {
setupCardAbilities(ability) {
this.reaction({
when: {
afterChallenge: ({challenge}) => challenge.winner === this.controller && challenge.isParticipating(this)
},
cost:... | mit |
Injac/IoTHelpers | IoTHelpers/I2c/Devices/Adxl345Accelerometer.cs | 5606 | using IoTHelpers.Helpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Windows.Devices.I2c;
namespace IoTHelpers.I2c.Devices
{
public struct Acceleration
{
public double X { get; internal set; }
... | mit |
Jigsaw-Code/go-tun2socks | core/handler.go | 762 | package core
import (
"net"
)
// TCPConnHandler handles TCP connections comming from TUN.
type TCPConnHandler interface {
// Handle handles the conn for target.
Handle(conn net.Conn, target *net.TCPAddr) error
}
// UDPConnHandler handles UDP connections comming from TUN.
type UDPConnHandler interface {
// Connec... | mit |
gemini-testing/gemini | test/unit/browser/existing-browser.js | 1658 | 'use strict';
const _ = require('lodash');
const wd = require('wd');
const Promise = require('bluebird');
const ExistingBrowser = require('lib/browser/existing-browser');
describe('browser/existing-browser', () => {
const sandbox = sinon.sandbox.create();
let wdRemote;
const mkExistingBrowser = (opts) ... | mit |
Muktaranibiswas/ftflo2_laravel | resources/views/ecommerce_page/main-content/overview.blade.php | 16098 | <div class="col-md-6">
<!-- Begin: life time stats -->
<div class="portlet light">
<div class="portlet-title">
<div class="caption">
<i class="icon-bar-chart font-green-sharp"></i>
<span class="caption-subject font-green-sharp bold uppercase">Overview</span>
<span clas... | mit |
nicholasgriffintn/Accelerated-Mobile-Pages | templates/design-manager/design-3/single.php | 1142 | <?php global $redux_builder_amp; ?>
<!doctype html>
<html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
<head>
<meta charset="utf-8">
<link rel="dns-prefetch" href="https://cdn.ampproject.org">
<?php do_action( 'amp_post_template_head', $this ); ?>
<style amp... | mit |
rbkloss/BealNetwork-DCC | server/main.cc | 318 | #include <cstdio>
#ifndef __linux__
#include "stdafx.h"
#endif
#include "TP3Server.h"
int main(int argc, char*argv[]) {
if (argc < 2) {
argv[1] = (char*) "27015";
/*printf("Usage:%s port\n", argv[0]);
return 0;*/
}
TP3Server server(argv[1]);
printf("Server: Server Started\n");
server.run();
return 0;
} | mit |
plumer/codana | tomcat_files/8.0.0/TesterDigestAuthenticatorPerformance.java | 8884 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... | mit |
yads/netrunnerdb | src/AppBundle/Command/CreateClientCommand.php | 2520 | <?php
namespace AppBundle\Command;
use AppBundle\Entity\Client;
use FOS\OAuthServerBundle\Entity\ClientManager;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\Ou... | mit |
KattMingMing/vscode | src/vs/editor/common/model/model.ts | 3875 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | mit |
CracKerMe/sh-job | src/components/mobile/toast/index.js | 1217 | /**
* Created by 于士博 on 2017/7/25.
* QQ: 491387425
* weChat: 491387425
* 组件 toast的 js代码
*
*/
import Vue from 'vue'
// 创建toast实例
const ToastConstructor = Vue.extend(require('./toast.vue'))
// 移除DOM的方法
let removeDom = event => {
event.target.parentNode.removeChild(event.target)
}
// 给子实例的原型添加关闭的方法 本质上是移除DOM节点
ToastCons... | mit |
arkency/rails_event_store | contrib/ruby_event_store-rom/lib/ruby_event_store/rom/event_repository.rb | 3228 | # frozen_string_literal: true
module RubyEventStore
module ROM
class EventRepository
def initialize(rom:, serializer:)
@serializer = serializer
@events = Repositories::Events.new(rom)
@stream_entries = Repositories::StreamEntries.new(rom)
@unit_of_work = UnitOf... | mit |
insionng/makross | i18n/conf/i18ntest.go | 646 | package main
import (
"fmt"
"github.com/insionng/macross"
"github.com/macross-contrib/i18n"
)
func main() {
m := macross.Classic()
m.Use(i18n.I18n(i18n.Options{
Directory: "locale",
DefaultLang: "zh-CN",
Langs: []string{"en-US", "zh-CN"},
Names: []string{"English", "简体中文"},
Redirect: t... | mit |
UselessToucan/osu | osu.Game/Rulesets/Mods/ModPerfect.cs | 1090 | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics;
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Scoring;
name... | mit |
RabadanLab/Pegasus | resources/hsqldb-2.2.7/hsqldb/src/org/hsqldb/test/TestTextTable.java | 19659 | /* Copyright (c) 2001-2011, The HSQL Development Group
* 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... | mit |
hpi-swt2/workshop-portal | app/assets/javascripts/emails.js | 1410 | // Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.
jQuery(function() {
$('#send-emails-clipboard').click(function () {
var recipients = $('#email_recipients')
if(recipients.val().length > 0) {
... | mit |
asrar7787/Test-Frontools | node_modules/caniuse-lite/data/features/webvtt.js | 808 | module.exports={A:{A:{"1":"B A","2":"J C G E TB"},B:{"1":"D X g H L"},C:{"2":"3 RB F I J C G E B A D X g H L M N O P Q R S PB OB","66":"T U V W t Y Z","129":"1 2 a b c d e f K h i j k l m n o p q v w x y z s r"},D:{"1":"1 2 7 9 N O P Q R S T U V W t Y Z a b c d e f K h i j k l m n o p q v w x y z s r DB SB AB BB","2":"... | mit |
Acbentle/terrain474 | src/org/sunflow/system/Memory.java | 507 | package org.sunflow.system;
public final class Memory {
public static final String sizeof(int[] array) {
return bytesToString(array == null ? 0 : 4 * array.length);
}
public static final String bytesToString(long bytes) {
if (bytes < 1024)
return String.format("%db... | mit |
jeffmiller00/FantasyDraft | test/controllers/positions_controller_test.rb | 1075 | require 'test_helper'
class PositionsControllerTest < ActionController::TestCase
setup do
@position = positions(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:positions)
end
test "should get new" do
get :new
assert_response :success
... | mit |
navalev/azure-sdk-for-java | sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/implementation/CbsAuthorizationType.java | 1014 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.core.amqp.implementation;
import com.azure.core.amqp.ClaimsBasedSecurityNode;
/**
* An enumeration of supported authorization methods with the {@link ClaimsBasedSecurityNode}.
*/
public enum CbsAuthori... | mit |
peppelakappa/clipocket | shell.py | 2584 | '''
The MIT License (MIT)
Copyright (c) 2014 PeppeLaKappa
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
t... | mit |
brucewar/poem | Infrastructure/BackEnd/node_modules/oss-client/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDNotation.js | 1688 | // Generated by CoffeeScript 1.6.1
(function() {
var XMLDTDNotation, _;
_ = require('underscore');
module.exports = XMLDTDNotation = (function() {
function XMLDTDNotation(parent, name, value) {
this.stringify = parent.stringify;
if (name == null) {
throw new Error("Missing no... | mit |
gonshi/boombox.js | Gruntfile.js | 2762 | (function () {
var project = {
name: 'boombox.js'
};
module.exports = function (grunt) {
// enviroment
project.dir = grunt.file.findup('../' + project.name);
grunt.log.ok('[environment] project name:', project.name);
grunt.log.ok('[environment] project directory:',... | mit |
nelsonsilva/ShareJS | webclient/ace.js | 3424 | (function() {
var Range, applyToShareJS;
Range = require("ace/range").Range;
applyToShareJS = function(editorDoc, delta, doc) {
var getStartOffsetPosition, pos, text;
getStartOffsetPosition = function(range) {
var i, line, lines, offset, _len;
lines = editorDoc.getLines(0, range.start.row);
... | mit |
flupzor/bijgeschaafd | news/es.py | 1784 | from elasticsearch import Elasticsearch, helpers
class ESObjectList(object):
"""
Very simple wrapper around elastic search and django models
which creates a object list of django orm objects, which
have been found using elastic search.
This object list can then be used as input for the django pag... | mit |
CodeSequence/sanmyaku | gulp/tasks/default.js | 151 | 'use strict';
var config = require('../config');
var gulp = require('gulp');
gulp.task('default', [config.defaultgulp], function() {
}); | mit |
egovernment/eregistrations-demo | node_modules/dbjs/_setup/notify/on-value-turn.js | 3373 | 'use strict';
var notifyMultiple = require('./item')
, notifyProperty = require('./property')
, hasOwnProperty = Object.prototype.hasOwnProperty
, notifyDesc, notifyDescDescendants, notifyItem
, notifyItemDescendants, notifyTurnedProperty, notifyTurnedItem;
notifyDescDescendants = function (obj, desc, nu, ol... | mit |
egovernment/eregistrations-demo | node_modules/observable-array/test/is-observable-array.js | 584 | 'use strict';
var ee = require('event-emitter')
, ObservableValue = require('observable-value')
, ObservableArray = require('../create')(Array);
module.exports = function (t, a) {
var x = {};
a(t(), false, "Undefined");
a(t(null), false, "Null");
a(t('raz'), false, "String");
a(t({}), false, "Ob... | mit |
anhstudios/swganh | data/scripts/templates/object/draft_schematic/space/booster/shared_booster_mk5.py | 454 | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Intangible()
result.template = "object/draft_schematic/space/booster/shared_booster_mk5.iff"
result.attribute_tem... | mit |
christopher-henderson/Go | src/strings/builder_test.go | 6086 | // Copyright 2017 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.
package strings_test
import (
"bytes"
"runtime"
. "strings"
"testing"
)
func check(t *testing.T, b *Builder, want string) {
t.Helper()
got := b.String()... | mit |
klimser/model | library/Model/Cluster/Schema/Table/Link/OneToOne.php | 90 | <?php
namespace Model\Cluster\Schema\Table\Link;
class OneToOne extends AbstractLink
{}
| mit |
tpruvot/fullcalendar | src/common/Grid.events.js | 28430 |
/* Event-rendering and event-interaction methods for the abstract Grid class
----------------------------------------------------------------------------------------------------------------------*/
Grid.mixin({
mousedOverSeg: null, // the segment object the user's mouse is over. null if over nothing
isDraggingSeg:... | mit |