repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
arkenthera/CryEngineModifications | Code/GameSDK/GameDll/ProceduralCollectibleSystem.cpp | 5200 | /*************************************************************************
Copyright (C) 2015 Alperen Gezer
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at yo... | mit |
SingularInversions/FaceGenBaseLibrary | source/LibFgWin/FgGuiWinTabs.cpp | 8375 | //
// Coypright (c) 2022 Singular Inversions Inc. (facegen.com)
// Use, modification and distribution is subject to the MIT License,
// see accompanying file LICENSE.txt or facegen.com/base_library_license.txt
//
//
// Win32 has no way to dynamically change the background color of specific tabs (ie currently sele... | mit |
jenspapenhagen/miniORM | datamodel/datamanager/GenericEntityManager.php | 8835 | <?php
include_once (dirname(__FILE__)."/../datamodel/ConnectionProvider.php");
include_once (dirname(__FILE__)."/../datamodel/Constants.php");
include_once (dirname(__FILE__)."/../datamodel/Updater.php");
include_once (dirname(__FILE__)."/../datamodel/entity/GenericEntity.php");
include_once (dirname(__FILE__)."/.... | mit |
thaim/ansible | lib/ansible/modules/cloud/google/gcp_bigquery_dataset_info.py | 12799 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017 Google
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# ----------------------------------------------------------------------------
#
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
#
... | mit |
iporaitech/react-to-mdl | src/dataTable/DataTable.js | 697 | import React, { PropTypes } from 'react';
import classNames from 'classnames';
const DataTable = (props) => {
const { className, selectable, shadow, children, ...otherProps } = props;
const classes = classNames('mdl-data-table mdl-js-data-table', {
'mdl-data-table--selectable': selectable,
[`mdl-shadow--${... | mit |
integratedfordevelopers/integrated-channel-bundle | Model/ConfigRepository.php | 2429 | <?php
/*
* This file is part of the Integrated package.
*
* (c) e-Active B.V. <integrated@e-active.nl>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Integrated\Bundle\ChannelBundle\Model;
use Doctrine\ORM\EntityRepos... | mit |
bryanvu/lnd | lnwire/lnwire_test.go | 4347 | package lnwire
import (
"encoding/hex"
"net"
"github.com/roasbeef/btcd/btcec"
"github.com/roasbeef/btcd/chaincfg/chainhash"
"github.com/roasbeef/btcd/txscript"
"github.com/roasbeef/btcd/wire"
)
// Common variables and functions for the message tests
var (
revHash = [32]byte{
0xb7, 0x94, 0x38, 0x5f, 0x2d, ... | mit |
moonCrawler/ipl-logistik.de | typo3conf/ext/powermail/Classes/Domain/Service/FinisherService.php | 7303 | <?php
namespace In2code\Powermail\Domain\Service;
use In2code\Powermail\Domain\Model\Mail;
use In2code\Powermail\Finisher\AbstractFinisher;
use In2code\Powermail\Utility\StringUtility;
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
/***************************************************************
* Copy... | mit |
vindvaki/zonotope.js | src/geom3.js | 1686 |
//
// 3 dimensional geometry
//
var Geom3 = {
equals: function(p, q) {
return p.x == q.x && p.y == q.y && p.z == q.z;
},
norm: function(p) {
return Math.sqrt(p.x*p.x + p.y*p.y + p.z*p.z);
},
add: function(p, q) {
return {
x: p.x + q.x,
y: p.y + q.y,
z: p.z + q.z
};
},
... | mit |
ordinary-developer/book_pragmatic_unit_testing_in_java_8_with_junit_j_langr | my_code/chapter_1_BUILDING_YOUR_FIRST_JUNIT_TEST/ScoreCollection.java | 343 | import java.util.*;
public class ScoreCollection {
private List<Scoreable> scores = new ArrayList<>();
public void add(Scoreable scoreable) {
scores.add(scoreable);
}
public int arithmeticMean() {
int total = scores.stream().mapToInt(Scoreable::getScore).sum();
return total / ... | mit |
ata/kkn | protected/extensions/giix/generators/crud/templates/default/_view.php | 804 | <?php
/**
* The following variables are available in this template:
* - $this: the CrudCode object
*/
?>
<div class="view">
<?php
echo "\t<b><?php echo CHtml::encode(\$data->getAttributeLabel('{$this->tableSchema->primaryKey}')); ?>:</b>\n";
echo "\t<?php echo CHtml::link(CHtml::encode(\$data->{$this->tableSchema->... | mit |
jcupitt/ruby-vips | lib/vips/operationcomplexget.rb | 222 | module Vips
# The type of complex projection operation to perform on an image. See
# {Image#complexget}.
#
# * ':real' get real part
# * ':imag' get imaginary part
class OperationComplexget < Symbol
end
end
| mit |
IvanGrigorov/OOP | Extensions-Methods-Delegates-Lambda-LINQ/ExtractMarks/Properties/AssemblyInfo.cs | 1400 | 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("Ex... | mit |
nvillemin/MinesweeperWithTwitch | MinesweeperWithTwitch/Assets/Scripts/Global/GlobalManager.cs | 1635 | using System.Collections.Generic;
using UnityEngine;
namespace Global {
// Static class used to store global variables
public static class GlobalManager {
// TwitchIRC, must be kept between scenes
public static TwitchIRC twitch;
// Text colors for the number of mines nearby
pu... | mit |
gitlapse/gitlapse.rb | gitrepotest/lola/hack2.rb | 20 | # todo hackor lazez
| mit |
devicehive/devicehive-.net | src/Device/Examples/BinaryClient/Properties/AssemblyInfo.cs | 1424 | 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("Bi... | mit |
xavmer9/FixMyCH | constants.js | 196 | angular.module('citizen-engagement')
.constant('apiUrl', '@apiUrl@')
.constant('mapboxSecret', '@mapboxSecret@')
.constant('qimgUrl', '@qimgUrl@')
.constant('qimgSecret', '@qimgSecret@')
; | mit |
sithcoin-/sithcoin | src/main.cpp | 131097 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2012 Litecoin Developers
// Copyright (c) 2013 Sithcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license... | mit |
manito17711/system_stat | system_stat/network.cpp | 830 | #include "network.hpp"
#define LOAD_TEST_SERVERS
Network::Network()
{
#ifdef LOAD_TEST_SERVERS
// 6 testing servers..
for (int i = 140; i < 146; ++i)
{
std::string s = "192.168.194." + std::to_string(i);
addServer(s, 13651);
}
std::cout << "6 testing servers imported.\n";
#endif
}... | mit |
awakenweb/Iridium-components-eventdispatcher | tests/units/Event/Event.php | 2088 | <?php
namespace Iridium\Components\EventDispatcher\tests\units\Event;
require_once __DIR__ . '/../../../vendor/autoload.php';
use atoum ,
\Iridium\Components\EventDispatcher\Event\Event as IrEvent;
/**
* Description of Event
*
* @author Mathieu
*/
class Event extends atoum
{
public function testCreate(... | mit |
dayler/SimpleJsfSample | src/com/dayler/jsf/sample/started/domain/Card.java | 884 | /**
*
*/
package com.dayler.jsf.sample.started.domain;
import java.util.Random;
/**
* @author ariel
*
*/
public class Card {
private int left;
private int right;
private int result = 0;
public Card() {
Random random = new Random();
int i = 0;
int j = 0;
do {
i = random.nextInt(10);
} while (i... | mit |
rvsiqueira/client | app/containers/AcquisitionPage/jsonBuilder.js | 1932 | export function user(data, name) {
const telephone = data.get('telephone').split(')');
const userDetails = JSON.parse(sessionStorage.getItem('userDetails'));
return {
completeName: name,
password: data.get('password'),
cpf: (data.get('cpf')).replace(/\D*/g, ''),
emailAddress: userDetails.data.user... | mit |
floooh/oryol-tools | src/oryol-conv3d/AssimpLoader.cc | 3386 | //------------------------------------------------------------------------------
// AssimpLoader.cc
//------------------------------------------------------------------------------
#include "AssimpLoader.h"
#include "ExportUtil/Log.h"
#include "assimp/scene.h"
#include "assimp/postprocess.h"
using namespace OryolTool... | mit |
shafiqabs/bdeducations | src/Setting/Bundle/ContentBundle/Entity/Page.php | 8110 | <?php
namespace Setting\Bundle\ContentBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Page
*
* @ORM\Table(name="page")
* @ORM\Entity(repositoryClass="Setting\Bundle\ContentBundle\Entity\PageRepos... | mit |
tchatel/JDEV2015-T7A04 | js/app-filters.js | 52 | "use strict";
angular.module('app-filters', [])
;
| mit |
neontribe/gbptm | src/components/Media.js | 330 | import { createMedia } from '@artsy/fresnel';
import theme from '../theme';
const { MediaContextProvider, Media } = createMedia({
breakpoints: {
sm: 0,
md: parseInt(theme.breakpoints[0]),
lg: parseInt(theme.breakpoints[1]),
xl: parseInt(theme.breakpoints[2]),
},
});
export { MediaContextProvider,... | mit |
xcambar/aura | lib/platform.js | 3243 | define(function() {
// The bind method is used for callbacks.
//
// * (bind)[https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Function/bind]
// * (You don't need to use $.proxy)[http://www.aaron-powell.com/javascript/you-dont-need-jquery-proxy]
if (typeof Function.prototype.bind !=... | mit |
bkzl/vue-fraction-grid | vue-fraction-grid.js | 588 | import Container from './components/Container'
import Grid from './components/Grid'
import GridItem from './components/GridItem'
import defaults from './utils/defaults'
const VueFractionGrid = {
install (Vue, options) {
const config = Object.assign(defaults, options)
Vue.component(Container.name, { extends:... | mit |
thespacedoctor/fundamentals | fundamentals/tests/test_cl_utils.py | 1367 | from __future__ import print_function
from builtins import str
import os
import unittest
import shutil
import yaml
from fundamentals.utKit import utKit
from fundamentals import tools
from os.path import expanduser
from docopt import docopt
from fundamentals import cl_utils
doc = cl_utils.__doc__
home = expanduser("~")
... | mit |
ianharmon/visualizer | js/vizFlyout.js | 1483 | /*******************************************************************************
* bars flying from center
*/
function VizFlyout(variant) {
this.dampen = false;
this.hasVariants = true;
this.variants = [[2], [3]];
this.vary(variant);
this.distances = [];
for (var i = 0; i < bandCount; i++) {
this.dista... | mit |
Skarabaeus/PhotoYear | app/helpers/photo_style_helper.rb | 1694 | module PhotoStyleHelper
def get_form_fields(style)
html = StringIO.new
style.instance_variables.each do |var|
html << '<fieldset>'
html << '<legend>' << style.instance_variable_get(var).selector << '</legend>'
html << get_css_fields(style.instance_variable_get(var).selector, style.instance_variable_ge... | mit |
GreatMindsRobotics/DemoGames | Pong/Pong/Pong/Pong/Sprites/Paddle.cs | 2021 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FontEffectsLib.SpriteTypes;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
namespace Pong.Sprites
{
public class Paddle : GameSprite
{
public Keys Up... | mit |
alecw/picard | src/test/java/picard/sam/SamErrorMetric/ReadBaseStratificationTest.java | 36650 | package picard.sam.SamErrorMetric;
import htsjdk.samtools.*;
import htsjdk.samtools.reference.SamLocusAndReferenceIterator.SAMLocusAndReference;
import htsjdk.samtools.util.SamLocusIterator;
import org.testng.Assert;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider;
import org.test... | mit |
gatsbyjs/gatsby | packages/gatsby/src/schema/__tests__/kitchen-sink.js | 8858 | // @flow
const { SchemaComposer } = require(`graphql-compose`)
const {
graphql,
GraphQLSchema,
GraphQLNonNull,
GraphQLList,
GraphQLObjectType,
getNamedType,
} = require(`graphql`)
const { store } = require(`../../redux`)
const { actions } = require(`../../redux/actions`)
const { build } = require(`../index... | mit |
Egg4/egg-framework | src/Controller/Generic.php | 1790 | <?php
namespace Egg\Controller;
class Generic extends AbstractController
{
protected $container;
protected $resource;
protected $repository;
public function __construct(array $settings = [])
{
parent::__construct(array_merge([
'container' => null,
'resource' => nu... | mit |
loren-osborn/php-mem-managed | tests/Internals/ProxyClassFactoryTest.php | 5727 | <?php
namespace LinuxDr\MemManaged\Tests\Internals;
use DateTime;
use ReflectionClass;
use PHPUnit_Framework_TestCase;
use LinuxDr\MemManaged\Internals\ProxyClassFactory;
final class ProxyClassFactoryTest_TestFinalClass
{
}
interface ProxyClassFactoryTest_TestInterface
{
public function foo();
}
interface Proxy... | mit |
wrutra/instant_messenger | include/tcp_session.hpp | 1814 | #ifndef TCP_SESSION_HPP
#define TCP_SESSION_HPP
#include <deque>
#include <memory>
#include <boost/asio.hpp>
#include "session_handler.hpp"
#include "message_handler.hpp"
#include "message.hpp"
using tcp = boost::asio::ip::tcp;
// class manages single tcp connection and provides methods for han... | mit |
bkon/aws-as-code | lib/aws_as_code/dsl/ec2_instances.rb | 547 | # frozen_string_literal: true
EC2_INSTANCE_CLASSES = %w(
c3.2xlarge
c3.4xlarge
c3.8xlarge
c3.large
c3.xlarge
c4.2xlarge
c4.4xlarge
c4.8xlarge
c4.large
c4.xlarge
d2.2xlarge
d2.4xlarge
d2.xlarge
d3.8xlarge
g2.2xlarge
g2.8xlarge
i2.2xlarge
i2.4xlarge
i2.8xlarge
i2.xlarge
m3.2xlar... | mit |
nickjbenson/Platforming | Assets/Plugins/RealtimeCSG/Editor/Scripts/EditorWindows/ExportedModelEditor.cs | 3392 | using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using InternalRealtimeCSG;
using UnityEngine.SceneManagement;
namespace RealtimeCSG
{
#if !DEMO
[CustomEditor(typeof(CSGModelExported))]
[CanEditMultipleObjects]
[System.Reflection.Obfuscation(Exclude = true)]
internal sealed clas... | mit |
egeis/CSC-505-Graphics | src/main/java/com/graphics/shapes/Line.java | 2507 | package main.java.com.graphics.shapes;
import java.awt.Color;
import main.java.com.graphics.shapes.utils.GraphicsObject;
import main.java.com.graphics.shapes.utils.Point;
/**
*
* @author Richard Coan
*/
public class Line extends GraphicsObject {
public Line(Point start, Point end)
{
//Distance... | mit |
M0dz145/Kiwapp | app/src/main/java/chevalierx/kiwapp/controllers/ModalEvenementController.java | 25472 | package chevalierx.kiwapp.controllers;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.*;
import chevalierx.kiwapp.activities.MainActivity;
import chevalierx.kiwapp.R;
import chevalierx.kiwapp.models.DAO.DossierClientDAO;
impo... | mit |
dolanmiu/docx | src/file/values.ts | 9012 | // Runtime checks and cleanup for value types in the spec that aren't easily expressed through our type system.
// These will help us to prevent silent failures and corrupted documents.
//
// Most of the rest of the types not defined here are either aliases of existing types or enumerations.
// Enumerations should prob... | mit |
MTASZTAKI/ApertusVR | plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/deps/v8/src/heap/scavenger.cc | 7064 | // Copyright 2015 the V8 project 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 "src/heap/scavenger.h"
#include "src/heap/barrier.h"
#include "src/heap/heap-inl.h"
#include "src/heap/mark-compact-inl.h"
#include "src/heap/... | mit |
error454/ShiVa-Proof-Of-Concept | random/Resources/Scripts/RandomNumber_State_Random_onEnter.lua | 688 | --------------------------------------------------------------------------------
-- State............ : Random
-- Author........... :
-- Description...... :
--------------------------------------------------------------------------------
----------------------------------------------------------------------------... | mit |
jon-chen/ThingsOfInternet | ThingsOfInternet/Commands/SetAwayStatusCommand.cs | 1471 | using System;
using System.Threading.Tasks;
using ThingsOfInternet.Models;
using ThingsOfInternet.ViewModels;
using Unity = Microsoft.Practices.Unity;
using ThingsOfInternet.Services;
namespace ThingsOfInternet.Commands
{
public class SetAwayStatusCommand : SparkCoreConfigureCommand
{
[Unity.Dependenc... | mit |
spacedoc/spacedoc | packages/spacedoc/test/build.js | 1264 | const {expect} = require('chai');
const {Spacedoc} = require('..');
const mockVinyl = require('./util/mock-vinyl');
const TEST_FILE = mockVinyl('test/fixtures/example.md');
const TEST_FILE_ALT = mockVinyl('test/fixtures/example-alt-layout.md');
describe('Spacedoc.build()', () => {
it('builds an HTML file from the d... | mit |
daleholborow/iayos.flashcardapi | backend/iayos.flashcardapi.DomainModel/Infrastructure/IModelHasGuid.cs | 382 | using System;
namespace iayos.flashcardapi.DomainModel.Infrastructure
{
/// <summary>
/// Will have a globally unique identifier
/// </summary>
public interface IModelHasGuid
{
/// <summary>
/// Property to store globally unique id (TODO: SHOULD be generated as a sequential GUID to ensure it doesnt blow up ... | mit |
neofob/sile | languages/tr.lua | 5293 | -- Quotes may be part of a word in Turkish
SILE.nodeMakers.tr = SILE.nodeMakers.unicode {
isWordType = { cm = true, qu = true },
}
SILE.hyphenator.languages["tr"] = {}
SILE.hyphenator.languages["tr"].patterns =
{
"2a1",
"2â1",
"2e1",
"2ı1",
"2i1",
"2î1",
"2o1",
"2ö1",
"2u1",
"2ü1",
"2û1",
-- allow hyphen either s... | mit |
mapbox/mapbox-sdk-py | tests/test_directions.py | 9042 | from cachecontrol.cache import DictCache
import mapbox
import pytest
import responses
points = [{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [
-87.33787536621092,
36.539156961321574]}}, {
"type": "Feature",
"properties... | mit |
havencruise/emberjam | conf/settings_override/default/other.py | 31 | USE_THOUSAND_SEPARATOR = True
| mit |
nguyenrm/HauntedCastle | HauntedCastle1.java/src/HauntedCastle.java | 5094 | import java.util.Scanner;
public class HauntedCastle {
public static void main(String[] args) {
// verify eclipse
System.out.println("Welcome to the Haunted Castle");
// create a scanner object
Scanner input = new Scanner(System.in);
// Start the project
System.out.println("Tai, Mai, and Sey are in ... | mit |
rusty1s/koa2-rest-api | server/db/index.js | 1530 | 'use strict';
import mongoose from 'mongoose';
import { localClient, adminUser } from './config';
import Client from '../models/client';
import User from '../models/user';
export function connectDatabase(uri) {
return new Promise((resolve, reject) => {
mongoose.connection
.on('error', error => reject(erro... | mit |
bennybi/yii2-cza-base | vendor/assets/jstree/TreeAsset.php | 674 | <?php
/**
* refer to arogachev\tree\assets\TreeAsset
*/
namespace cza\base\vendor\assets\jstree;
use yii\web\AssetBundle;
class TreeAsset extends AssetBundle {
/**
* @inheritdoc
*/
public $sourcePath = '@cza/base/vendor/assets/jstree/src';
/**
* @inheritdoc
*/
public $publish... | mit |
Rudolfking/TreatLookaheadMatcher | hu.bme.mit.inf.TreatEngine/src/hu/bme/mit/inf/treatengine/MyFeatureListeners.java | 30120 | package hu.bme.mit.inf.treatengine;
import hu.bme.mit.inf.lookaheadmatcher.LookaheadMatcherInterface;
import hu.bme.mit.inf.lookaheadmatcher.impl.AheadStructure;
import hu.bme.mit.inf.lookaheadmatcher.impl.AxisConstraint;
import hu.bme.mit.inf.lookaheadmatcher.impl.LookaheadMatching;
import hu.bme.mit.inf.lookah... | mit |
amironov73/ManagedIrbis | Source/Classic/Libs/ManagedIrbis/Source/Systematization/UdkException.cs | 1428 | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/* UdkException.cs -- исключение, возникающее при работе с УДК
* Ars Magna project, http://arsmagna.ru
* ---------------------------------------------------... | mit |
joeyfromspace/hdtracks-backend-keystone | models/ShoppingCartItem.js | 1006 | var keystone = require('keystone'),
Types = keystone.Field.Types;
/**
* ShoppingCartItem Model
*/
var ShoppingCartItem = new keystone.List('ShoppingCartItem', {
track: true,
defaultSort: '-updatedAt'
});
/**
* ShoppingCartItem Schema
*/
ShoppingCartItem.add({
product: { type: Types.Relationship, ref: 'Prod... | mit |
jclif/serinette | lib/serinette/utils.rb | 115 | require_relative 'utils/file_name'
require_relative 'utils/sox_wrapper'
module Serinette
module Utils
end
end
| mit |
danliris/dl-models | src/production/finishing-printing/kanban-validator.js | 2367 | require("should");
// var validateProductionOrder = require('../../sales/production-order-validator');
// var validateProductionOrderDetail = require('../../sales/production-order-detail-validator');
// var validateCart = require('./cart-validator');
// var validateInstruction = require('../../master/instruction-valida... | mit |
enettolima/magento-training | magento2ce/app/code/Magento/SalesRule/view/frontend/web/js/action/cancel-coupon.js | 1931 | /**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* Customer store credit(balance) application
*/
/*global define,alert*/
define(
[
'jquery',
'Magento_Checkout/js/model/quote',
'Magento_Checkout/js/model/resource-url-manager',
'M... | mit |
HoistRnD/azure-web-server | test/testSetup.js | 150 | /*jshint sub:true*/
'use strict';
process.env['NODE_ENV'] = 'test';
var chai = require('chai');
chai.use(require('chai-as-promised'));
chai.should();
| mit |
monicajimenez/weas | resources/views/request/modal_rfc_request_reference.blade.php | 2271 | <div id="modal_rfc_request_reference" class="modal">
<div class="modal-content">
<h5>Reference Number (RFC):</h5>
<select id="rfc_request_reference">
<option value="" disabled selected>Choose your option</option>
@foreach($granted_request_types as $request_type)
<option value="... | mit |
InteractiveIntelligence/HackathonIVRExamples | DotNetIvr/DotNetIvrService/Actions/PlayActionResponse.cs | 321 | using System.Runtime.Serialization;
namespace ININ.Alliances.DotNetIvr.Actions
{
[DataContract]
public class PlayActionResponse : ActionResponse
{
[DataMember] public string action {get { return "play"; } set{}}
[DataMember]
public string message { get; set; }
}
} | mit |
DebOM/DebOM.github.io | js/init-particles.js | 2525 | particlesJS('particles',
{
"particles": {
"number": {
"value": 50,
"density": {
"enable": true,
"value_area": 800
}
},
"color": {
"value": "#ffffff"
},
"shape": {
"type": "circle",
"stroke": {
... | mit |
cubeme/ssharp | Tests/Diagnostics/FaultEffects/Invalid/non-public nested.cs | 2074 | // The MIT License (MIT)
//
// Copyright (c) 2014-2016, Institute for Software & Systems Engineering
//
// 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 wi... | mit |
cloudmodel/cloudmodel | spec/dummy/config/application.rb | 2085 | require_relative "boot"
require "rails"
# Pick the frameworks you want:
require "active_model/railtie"
require "active_job/railtie"
# require "active_record/railtie"
# require "active_storage/engine"
require "action_controller/railtie"
require "action_mailer/railtie"
# require "action_mailbox/engine"
# require "action... | mit |
BAM-X/Flask-seed | app/config.py | 406 | import os
class LocalConfig(object):
ENV = 'local'
DATABASE_URI = 'file:app.db'
DEBUG = True
class TestConfig(object):
ENV = 'test'
DATABASE_URI = 'file::memory:?cache=shared'
DEBUG = True
CONFIGS = {
'local': LocalConfig,
'test': TestConfig,
}
def get_config(env):
return CONF... | mit |
ftrader-bitcoinabc/bitcoin-abc | test/functional/interface_bitcoin_cli.py | 4596 | #!/usr/bin/env python3
# Copyright (c) 2017-2019 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test bitcoin-cli"""
from test_framework.test_framework import BitcoinTestFramework
from test_framework.... | mit |
blueskyfish/bicycle-manager-android | bicycle-manager/src/main/java/de/blueskyfish/bicycle/battery/BatteryListFragment.java | 8893 | /*
* The MIT License (MIT)
* Copyright (c) 2017 BlueSkyFish
*
* bicycle-manager-android - https://github.com/blueskyfish/bicycle-manager-android.git
*/
package de.blueskyfish.bicycle.battery;
import android.content.DialogInterface;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.... | mit |
saturnflyer/casting | lib/casting/method_consolidator.rb | 477 | module Casting
module MethodConsolidator
def methods(all=true)
(super + delegated_methods(all)).uniq
end
def public_methods(include_super=true)
(super + delegated_public_methods(include_super)).uniq
end
def protected_methods(include_super=true)
(super + delegated_protected_meth... | mit |
jbranchaud/rails-routes-math | spec/requests/division_routes_spec.rb | 959 | require 'rails_helper'
RSpec.describe "DivisionRoutes", :type => :request do
it "should divide the two values" do
visit "/3/by/3"
expect(page).to have_content("1")
end
it "should divide a positive and negative value" do
visit "/4/by/-2"
expect(page).to have_content("-2")
visit "/-4/by/2"
... | mit |
tangyiyang/v3quick-classic | quick/lib/lua_bindings/auto/api/Hide.lua | 780 |
--------------------------------
-- @module Hide
-- @extend ActionInstant
-- @parent_module cc
--------------------------------
-- Allocates and initializes the action
-- @function [parent=#Hide] create
-- @param self
-- @return Hide#Hide ret (return value: cc.Hide)
--------------------------------
--
--... | mit |
FnTm/location-sharing | app/models/user_friendship.rb | 1525 | class UserFriendship < ActiveRecord::Base
belongs_to :user
belongs_to :friend, class_name: "User", foreign_key: "friend_id"
belongs_to :invited_friend, class_name: "User", foreign_key: "friend_id"
belongs_to :inviting_friend, class_name: "User", foreign_key: "friend_id"
validates_presence_of :friend_id, :us... | mit |
lwhitlock/grow-tracker | src/js/SelectFields/SelectField.js | 27855 | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import { findDOMNode } from 'react-dom';
import deprecated from 'react-prop-types/lib/deprecated';
import isRequiredForA11y from 'react-prop-types/lib/isRequiredForA11y';
import { UP, DOWN, ESC, ENTER, SPACE,... | mit |
fujiy/FujiyNotepad | src/FujiyNotepad.UI/Model/TextSearcher.cs | 4815 | using System;
using System.Collections.Generic;
using System.IO;
using System.IO.MemoryMappedFiles;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace FujiyNotepad.UI.Model
{
public class TextSearcher
{
long searchSize = 1024 * 1024;
private r... | mit |
eaymerich/blaster | src/TexturedSquare.cpp | 1413 | #include <cstdlib>
#include <iostream>
#include "TexturedSquare.h"
#include "ShaderUtil.h"
using std::cerr;
using std::endl;
GLfloat TexturedSquare::vertices[] = {
// Front face
-0.5f, 0.5f, 0.0f,
-0.5f, -0.5f, 0.0f,
0.5f, 0.5f, 0.0f,
0.5f, 0.5f, 0.0f,
-0.5f, -0.5f, 0.0f,
0.5f,... | mit |
leantony/laravel_settings | src/models/SettingObserver.php | 461 | <?php
namespace Leantony\Settings\Models;
use Leantony\Settings\SettingsHelper;
class SettingObserver
{
/**
* Listen to the Settings updated event.
*
* @param Settings $setting
* @return void
*/
public function updated(Settings $setting)
{
$instance = app('settings');
... | mit |
diggcoin/diggcoin | src/compat/strnlen.cpp | 512 | // Copyright (c) 2009-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include "config/diggcoin-config.h"
#endif
#include <cstring>
#if HAVE_DECL_STRNLEN == 0
size_t ... | mit |
jvilaplana/langtonsant | javascript/langtonsant.js | 5127 | var canvasWidth = 800;
var canvasHeight = 400;
var blockSize = 10;
var currentStep = 0;
var antPos = [canvasWidth / blockSize / 2, canvasHeight / blockSize / 2];
var antDir = 0;
var speed = 1000;
var running = false;
function grid(w, h, totalW, totalH){
var $this = this;
this.blockW = w || blockSize;
this.block... | mit |
mcfedr/youtubelivestreamsbundle | src/Mcfedr/YouTube/LiveStreamsBundle/DependencyInjection/GuzzleClientFactory.php | 680 | <?php
/**
* Created by mcfedr on 07/09/2016 22:27
*/
namespace Mcfedr\YouTube\LiveStreamsBundle\DependencyInjection;
use GuzzleHttp\Client;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Middleware;
use GuzzleHttp\Psr7\Uri;
use Psr\Http\Message\RequestInterface;
class GuzzleClientFactory
{
public static function ... | mit |
sejoung/spring-boot-data-jpa-sample | src/main/java/kr/co/killers/sample/controller/WelComeController.java | 1786 | /*
* Copyright 2012-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | mit |
innogames/gitlabhq | spec/requests/api/graphql/mutations/merge_requests/accept_spec.rb | 1273 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'accepting a merge request', :request_store do
include GraphqlHelpers
let_it_be(:current_user) { create(:user) }
let_it_be(:project) { create(:project, :public, :repository) }
let!(:merge_request) { create(:merge_request, source_project: proj... | mit |
tarquasso/softroboticfish6 | fish/pi/ros/catkin_ws/src/rosserial/devel/share/gennodejs/ros/rosserial_arduino/srv/Test.js | 2430 | // Auto-generated. Do not edit!
// (in-package rosserial_arduino.srv)
"use strict";
let _serializer = require('../base_serialize.js');
let _deserializer = require('../base_deserialize.js');
let _finder = require('../find.js');
//-----------------------------------------------------------
//----------------------... | mit |
Pigeoncraft/Aurora | Project-Aurora/Profiles/Overwatch/OverwatchProfileManager.cs | 1699 | using Aurora.Profiles.Aurora_Wrapper;
using Aurora.Settings;
using Newtonsoft.Json;
using System;
using System.IO;
using System.Text;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Media.Imaging;
namespace Aurora.Profiles.Overwatch
{
public class OverwatchProfileManager : ProfileM... | mit |
devshorts/htf-viewer | src/config.ts | 1051 | ///<reference path='../_all.d.ts'/>
///<reference path='../d.ts/vendor/node.d.ts'/>
///<reference path='../d.ts/vendor/colors.d.ts'/>
///<reference path='../d.ts/interfaces.d.ts'/>
var fs = require("fs");
var path = require("path");
var _ = require("underscore")._;
var colors = require('colors');
expo... | mit |
Nicolas-Constanty/UnityTools | Assets/UnityTools/Collections/NotifyCollectionChangedEventArgs.cs | 4379 | using System;
using System.Collections;
using System.Collections.Generic;
// ReSharper disable once CheckNamespace
namespace UnityTools.Collections
{
public enum NotifyCollectionChangedAction
{
Add,
Move,
Remove,
Replace,
Reset
}
public class NotifyCollectionCh... | mit |
dayupu/acme | cqjz/src/main/java/com/manage/base/exception/ActTaskNotFoundException.java | 470 | package com.manage.base.exception;
/**
* Created by bert on 2017/10/4.
*/
public class ActTaskNotFoundException extends RuntimeException {
public ActTaskNotFoundException() {
}
public ActTaskNotFoundException(String message) {
super(message);
}
public ActTaskNotFoundException(String me... | mit |
runelk/NB_URN_Client_Java | src/main/java/no/clarino/pid/nb/urn/wsdl/InsufficientRightsException.java | 1407 |
package no.clarino.pid.nb.urn.wsdl;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for InsufficientRightsException complex type.
*
* <p>The following schema fragment specifies the expected content co... | mit |
UsualDeveloper/AssemblyPropertiesViewer | Core/AssemblyPropertiesViewer.Core.Logger/Properties/AssemblyInfo.cs | 1409 | using System.Reflection;
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("AssemblyPropertiesViewer.Core.Logger")]
[... | mit |
robotex82/itsf_fund_reports | spec/models/itsf/fund_reports/flex_query_spec.rb | 2675 | require 'spec_helper'
module ITSF::FundReports
describe FlexQuery do
describe '#daily_pending' do
before do
@daily_recurrence = FactoryGirl.create(:itsf_fund_reports_flex_query_recurrence, :name => 'daily')
@weekly_recurrence = FactoryGirl.create(:itsf_fund_reports_flex_query_recurrence, :n... | mit |
kasperisager/hemingway | bench/sift.cpp | 3381 | // Copyright (c) 2016 Kasper Kronborg Isager and Radosław Niemczyk.
#include <vector>
#include <iostream>
#include <fstream>
#include <hayai/hayai.hpp>
#include <hayai/hayai_posix_main.cpp>
#include <hemingway/vector.hpp>
#include <hemingway/table.hpp>
using namespace lsh;
std::vector<vector> parse(std::string path) ... | mit |
curtsheller/BootstrapFourPresenter | src/Pagination/BootstrapFourPresenter.php | 3851 | <?php
namespace CurtSheller\Pagination;
use Illuminate\Pagination\BootstrapThreePresenter;
/*
Based on an article at: http://laravelista.com/laravel-custom-pagination-presenter/
The render() method accepts an Illuminate\Contracts\Pagination\Presenter instance. You can create a custom class that implements ... | mit |
toksaitov/scenario | lib/scenario/objects/rubik.rb | 14648 | # Scenario is a Ruby domain-specific language for graphics.
# Copyright (C) 2010 Dmitrii Toksaitov
#
# This file is part of Scenario.
#
# Released under the MIT License.
module Scenario
class Rubik < Generic
Block = Struct.new(:color, :texture)
SIDES = {0 => [[:x, :y], [ 0, 0, -1]],
... | mit |
eickegao/XamariniOSDemo | FirstXamariniOSDemo/FirstXamariniOSDemo/AppDelegate.cs | 1441 | using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace FirstXamariniOSDemo
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optiona... | mit |
Cartman34/MyCraftManager | libs/entitydescriptor/TypeDescriptor.php | 2722 | <?php
abstract class TypeDescriptor {
protected $name;
protected $writable;
protected $nullable;
// public function __construct() {
// }
/**
* Get the type name
* @return string the type name
*/
public function getName() {
return $this->name;
}
/**
* Get true if field is writable
* @return b... | mit |
okfde/inkubator | config/routes.rb | 2172 | OkfIncubator::Application.routes.draw do
resources :ideas do
get :edit_votes_finance
post :update_votes_finance
get :edit_finance
post :update_finance
get :edit_mentor
post :update_mentor
get 'votes' => 'ideas#edit_votes'
post :update_votes
resources :comments
end
devise_for ... | mit |
imazen/CppSharp | src/Generator/Generators/CSharp/CSharpMarshal.cs | 23832 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CppSharp.AST;
using CppSharp.AST.Extensions;
using CppSharp.Types;
using Type = CppSharp.AST.Type;
namespace CppSharp.Generators.CSharp
{
public enum CSharpMarshalKind
{
Unknown,
NativeField
}
... | mit |
chadyred/fiscalite | src/Fiscalite/GestionFiscaliteBundle/Admin/ArticleCommuneAdmin.php | 1530 | <?php
// src/Acme/DemoBundle/Admin/PostAdmin.php
namespace Fiscalite\GestionFiscaliteBundle\Admin;
use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Form\FormMapper;
class ArticleCommuneAdmin extends Admin
{
// F... | mit |
oliversalzburg/cbc-kitten-scientists | packages/userscript/source/ui/TimeControlSettingsUi.ts | 44877 | import {
CycleIndices,
TimeControlBuildSettingsItem,
TimeControlSettings,
} from "../options/TimeControlSettings";
import { objectEntries } from "../tools/Entries";
import { ucfirst } from "../tools/Format";
import { isNil, Maybe, mustExist } from "../tools/Maybe";
import { Resource, Season } from "../types";
imp... | mit |
lob/lob-java | src/main/java/com/lob/exception/AuthenticationException.java | 261 | package com.lob.exception;
public class AuthenticationException extends LobException {
private static final long serialVersionUID = 1L;
public AuthenticationException(String message, Integer statusCode) {
super(message, statusCode);
}
}
| mit |
wei0831/fileorganizer | setup.py | 1529 | #!/usr/bin/env python
""" setup.py
"""
from setuptools import setup, find_packages
import fileorganizer
setup(
name="fileorganizer",
version=fileorganizer.VERSION,
packages=find_packages(),
include_package_data=True,
install_requires=['click>=6.0', 'yapf>=0.17', 'PyYAML'],
entry_points={
... | mit |