repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
ngageoint/geopackage-mapcache-android | mapcache/src/main/java/mil/nga/mapcache/load/LoadTilesTask.java | 11380 | package mil.nga.mapcache.load;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.Bitmap.CompressFormat;
import android.os.AsyncTask;
import android.os.PowerManager;
import mil.nga.geopackage.BoundingBox;
impo... | mit |
rCorvidae/OrionPI | src/bin/Updater/UpdaterTransmissionNegotiation.py | 5039 | import json
import os
class NegotiationResultInterface:
def set_passed_negotiation(self, boolean):
raise NotImplemented()
def results(self, *args, **kwargs):
raise NotImplemented()
def __bool__(self):
raise NotImplemented()
class TransmissionNegotiationInterface:
"""
Tr... | mit |
frctl/fractal | packages/nunjucks/src/extensions/view.js | 1281 | 'use strict';
const nunjucks = require('nunjucks');
module.exports = function (fractal) {
function ViewExtension() {
this.tags = ['view'];
this.parse = function (parser, nodes) {
var tok = parser.nextToken();
var args = parser.parseSignature(null, true);
parser... | mit |
paul-m/drupalci_testbot | tests/DrupalCI/Tests/Console/Command/Config/ConfigLoadCommandTest.php | 927 | <?php
namespace DrupalCI\Tests\Console\Command\Config;
use DrupalCI\Tests\Console\Command\CommandTestBase;
use Symfony\Component\Console\Tester\CommandTester;
use Symfony\Component\Filesystem\Exception\FileNotFoundException;
class ConfigLoadCommandTest extends CommandTestBase {
public function testLoad() {
$c... | mit |
alurin/orcinus | vendors/catch/include/catch.hpp | 414661 | /*
* Catch v1.8.2
* Generated: 2017-03-13 21:18:33.619572
* ----------------------------------------------------------
* This file has been merged from multiple headers. Please don't edit it directly
* Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved.
*
* Distributed under the Boost Software Lice... | mit |
bootlegrobot/awfuldotnet | AwfulNET.Phone/Common/EmptyContentControl/EmptyContentControl.cs | 3564 | using Microsoft.Phone.Controls;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
namespace AwfulNET.Common
{
[TemplateVisualState(... | mit |
smb564/UniConnect | src/main/webapp/app/blocks/config/uib-pager.config.js | 412 | (function () {
'use strict';
angular
.module('uniConnectApp')
.config(pagerConfig);
pagerConfig.$inject = ['uibPagerConfig', 'paginationConstants'];
function pagerConfig(uibPagerConfig, paginationConstants) {
uibPagerConfig.itemsPerPage = paginationConstants.itemsPerPage;
... | mit |
Domiii/UnityBoxes | Assets/Scripts/Enemies/EnemyManager.cs | 847 | using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class EnemyManager : MonoBehaviour {
public static EnemyManager Instance {
get;
private set;
}
EnemyManager() {
Instance = this;
}
public Text text;
public int FinishedEnemyCount {
get;
private set;
}
public int TotalEnemy... | mit |
tpopov94/Telerik-Academy-2016 | JavaScript UI & DOM/ExamPreparation/jQuery/scripts.js | 4220 | /* globals $ */
$.fn.gallery = function (columnsPerRow) {
"use strict";
columnsPerRow = columnsPerRow || 4;
// Current item
var $gallery = this;
var $selected = $gallery.children('.selected');
var $imageContainer = $gallery.find('.image-container');
var $galleryList = $gallery.children('.g... | mit |
doodlemeat/TMX-Parser | MapLayer.cpp | 413 | #include "MapLayer.hpp"
#include "SFML\Graphics\RenderTarget.hpp"
MapLayer::MapLayer(MapLayerType layerType)
: type(layerType),
visible(true)
{
}
MapLayer::~MapLayer()
{
}
const MapLayerType& MapLayer::getLayerType()
{
return type;
}
void MapLayer::draw(sf::RenderTarget& target, sf::RenderStates states) const
... | mit |
liamdev/mapsynth | src/ModelExporter.cpp | 1659 | #include "ModelExporter.hpp"
void ModelExporter::addBuilding(const Building& building){
buildings.push_back(building);
};
void ModelExporter::addPath(const Path& path){
paths.push_back(path);
};
void ModelExporter::exportModel(const std::string& filePath){
// Open output file.
std::ofstream modelFile(filePath.... | mit |
asafcarmel/sports_data_api | lib/sports_data_api/nba.rb | 2571 | module SportsDataApi
module Nba
class Exception < ::Exception
end
DIR = File.join(File.dirname(__FILE__), 'nba')
BASE_URL = 'http://api.sportsdatallc.org/nba-%{access_level}%{version}'
DEFAULT_VERSION = 3
SPORT = :nba
autoload :Team, File.join(DIR, 'team')
autoload :Teams, File.join... | mit |
mattwbarry/py_blackjack | blackjack.py | 6154 | from random import shuffle
y = 'y'
n = 'n'
class Blackjack():
def __init__(self, players=4):
self.deck = [
{ 'number': '2', 'suit': 'hearts', 'value': 2 },
{ 'number': '3', 'suit': 'hearts', 'value': 3 },
{ 'number': '4', 'suit': 'hearts', 'value': 4 },
{ 'number': '5', 'suit': 'hearts', 'value': 5 },... | mit |
risallaw/PBO1A | PBO1A/OperatorOverloading/Program.cs | 645 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// Pertemuan 06: Method/Operator Overloading
namespace OperatorOverloading
{
class Program
{
static void Main(string[] args)
{
PointReward p1 = new PointReward { Valu... | mit |
manoj-kumar1/WPF-2D-Editable-Grid | WpfGeneric2DGrid/WpfGeneric2DGrid/App.xaml.cs | 302 | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
namespace WpfGeneric2DGrid
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}
| mit |
Restuta/ember-cli | blueprints/model/index.js | 1913 | /*jshint node:true*/
var inflection = require('inflection');
var stringUtils = require('ember-cli-string-utils');
var EOL = require('os').EOL;
module.exports = {
description: 'Generates an ember-data model.',
anonymousOptions: [
'name',
'attr:type'
],
locals: function(options) {
var att... | mit |
bluetread/sniper | Sniper.Tests/CRUD/Create/Common/Milestones/CreateMilestoneTests.cs | 402 | using Sniper.Common;
using Sniper.TargetProcess.Routes;
using Xunit;
namespace Sniper.Tests.CRUD.Create.Common.Milestones
{
public class CreateMilestoneTests
{
[Fact]
public void CreateMilestoneThrowsError()
{
var client = CommonMethods.GetClientByRoute(TargetProcessRoutes.R... | mit |
invisiblecloud/invoice-capture-client | src/integration-test/java/com/invisiblecollector/IThrowingBuilder2.java | 210 | package com.invisiblecollector;
import com.invisiblecollector.exceptions.IcException;
public interface IThrowingBuilder2<ReturnT, Arg1T, Arg2T> {
ReturnT build(Arg1T arg1, Arg2T arg2) throws IcException;
}
| mit |
samrodriguez/sf_siresca | app/cache/dev/assetic/config/e/ee4b9595d100231e5ceea28cba0bbb5d.php | 69 | <?php
// UDSsirescaBundle:Usuario:index.html.twig
return array (
);
| mit |
NullVoxPopuli/aeonvera-ui | app/models/raffle.js | 511 | import Ember from 'ember';
import DS from 'ember-data';
export default DS.Model.extend({
name: DS.attr('string'),
numberOfPurchasedTickets: DS.attr('number'),
winner: DS.attr('string'),
winnerHasBeenChosen: DS.attr('boolean'),
/* client side property only that tells the server to
randomly choose a new w... | mit |
gevans/koi | classes/kohana/koi/unittest/testcase.php | 1462 | <?php defined('SYSPATH') or die('No direct script access.');
/**
* A version of the stock PHPUnit testcase that includes some extra helpers
* and default settings
*
* @package Koi
* @category Unit Testing
*/
abstract class Kohana_Koi_Unittest_TestCase extends Kohana_Unittest_TestCase {
protected $environment... | mit |
SiqiLu/MoeLib | MoeLib.Jinyinmao.Orleans/IJinyinmaoGrain.cs | 1021 | // ***********************************************************************
// Project : MoeLib
// File : IJinyinmaoGrain.cs
// Created : 2015-11-25 2:02 PM
//
// Last Modified By : Siqi Lu(lu.siqi@outlook.com)
// Last Modified On : 2015-11-25 2:03 PM
// *********************************... | mit |
bensu/date-math | test.js | 4018 | var assert = require('assert')
, dateMath = require('./index')
var date = new Date(
2014 /* year */
, 1 /* month */
, 18 /* day */
, 8 /* hour */
, 25 /* min */
, 30 /* sec */
, 5); /* ms */
console.log('---- Accessors ----------------------------')
//accessors
ass... | mit |
gjwajda/Computer-Graphics | Assignment6/part3.js | 6433 | var gl;
//Check if Render has been called
//This way it wont double call Render()
var is_called = 0;
//Field of View in degrees
var fovy = 45.0;
//Aspect Ratio
var aspectR;
//Eye for LookAt Function for Cube
var eye;
//At and Up for LookAt Function
var at = vec3(0.0, 0.0, 0.0);
var up = vec3(0.0, 0.0, -1.0);
var thet... | mit |
Ikuo89/4s | db/migrate/20170518155836_create_twitter_user_calendar_relations.rb | 591 | class CreateTwitterUserCalendarRelations < ActiveRecord::Migration[5.0]
def up
create_table :twitter_user_calendar_relations, id: false do |t|
t.column :id, 'BIGINT PRIMARY KEY AUTO_INCREMENT'
t.column :calendar_id, 'BIGINT', null: false
t.column :twitter_user_id, 'BIGINT', null: false
t.... | mit |
mucyomiller/goohs | database/migrations/2016_12_02_160204_create_vitalsigns_table.php | 1064 | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateVitalsignsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('vitalsigns',... | mit |
skip2/x509ls | x509ls/net/chain_fetcher.cc | 3056 | // X509LS
// Copyright 2013 Tom Harwood
#include "x509ls/net/chain_fetcher.h"
#include <assert.h>
#include <ctype.h>
namespace x509ls {
ChainFetcher::ChainFetcher(BaseObject* parent, TrustStore* trust_store,
const string& node,
const string& service,
DnsLookup::LookupType lookup_type,
size_t tls_meth... | mit |
13space/13space.github.io | node_modules/react-flip-move/src/typings.js | 1279 | // @flow
import type { Element } from 'react';
import type {
Styles,
Animation,
Presets,
AnimationProp,
ClientRect,
ElementShape,
ChildrenHook,
GetPosition,
VerticalAlignment,
FlipMoveDefaultProps,
Hooks,
DelegatedProps,
FlipMoveProps,
} from 'react-flip-move'; // eslint-disable-line import/ex... | mit |
WorldWindEarth/WWExplorerLib | src/views/LayersViewModel.js | 4427 | /*
* Copyright (c) 2016 Bruce Schubert <bruce@emxsys.com>.
* Released under the MIT License
* http://www.opensource.org/licenses/mit-license.php
*/
/**
* Layers content module
*
* @param {type} ko
* @param {type} $
* @returns {LayersViewModel}
*/
define(['knockout', 'jquery', 'jqueryui', 'model/Constants'],... | mit |
joergkrause/netrix | NetrixDemo/RibbonLib/Samples/CS/12-FontControl/Form1.cs | 9122 | using System;
using System.Drawing;
using System.Windows.Forms;
using RibbonLib;
using RibbonLib.Controls;
using RibbonLib.Controls.Events;
using RibbonLib.Interop;
using System.Diagnostics;
namespace _12_FontControl
{
public enum RibbonMarkupCommands : uint
{
cmdTabMain = 1001,
cmdGroupRic... | mit |
factcenter/inchworm | src/test/java/org/factcenter/fastgc/inchworm/DIV_KTest.java | 2645 | package org.factcenter.fastgc.inchworm;
import org.factcenter.fastgc.YaoGC.Circuit;
import org.factcenter.fastgc.YaoGC.CircuitGlobals;
import org.junit.Test;
import java.math.BigInteger;
import java.util.concurrent.Future;
import static org.junit.Assert.assertEquals;
public class DIV_KTest extends Generi... | mit |
olafjanssen/sitelensitelenrenderer | examples/tatoeba/pdfrender.js | 278 | "use strict";
var page = require('webpage').create();
page.open('http://localhost:8080/examples/tatoeba/tatoeba-book.html', function(status) {
console.log("Status: " + status);
if(status === "success") {
page.render('example.png');
}
phantom.exit();
});
| mit |
Rosita13/Daftar-Nilai | app/Http/Requests/Register/RegisterCreateRequest.php | 1398 | <?php
namespace App\Http\Requests\Register;
use App\Http\Requests\Request;
/**
* Class UserCreateRequest
*
* @package App\Http\Requests\User
*/
class RegisterCreateRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public func... | mit |
ASP-NET-MVC-Boilerplate/Framework | Source/Boxed.AspNetCore/ContentType.cs | 2787 | namespace Boxed.AspNetCore
{
/// <summary>
/// A list of internet media types, which are a standard identifier used on the Internet to indicate the type of
/// data that a file contains. Web browsers use them to determine how to display, output or handle files and search
/// engines use them to classify... | mit |
caspar/PhysicsLab | 11_Final/OscillationsOnAString.py | 984 | import numpy as np;
import matplotlib.pyplot as plot
import math;
from scipy.optimize import curve_fit
#http://www.physics.nyu.edu/pine/pymanual/html/chap8/chap8_fitting.html
data = "Amaxdata.csv";
# load csv
t_max, A_max, A_error = np.loadtxt(data, skiprows=0, unpack = True, delimiter=',');
# plot.errorbar(t_max, A... | mit |
mbryzek/commons | text/src/main/scala/Text.scala | 1002 | package com.bryzek.commons.text
// From https://github.com/mbryzek/apidoc/blob/6186612993a0c913cfd0b7a36417bda45281825e/lib/src/main/scala/Text.scala
object Text {
private val Ellipsis = "..."
/**
* if value is longer than maxLength characters, it wil be truncated
* to <= (maxLength-Ellipsis.length) charac... | mit |
orocrm/platform | src/Oro/Bundle/UserBundle/Mailer/Processor.php | 2649 | <?php
namespace Oro\Bundle\UserBundle\Mailer;
use Oro\Bundle\UserBundle\Entity\UserInterface;
/**
* Send notification template emails to user.
*/
class Processor
{
const TEMPLATE_USER_RESET_PASSWORD = 'user_reset_password';
const TEMPLATE_USER_RESET_PASSWORD_AS_ADMIN = 'user_reset_password_as_admi... | mit |
tiwakawa/fluent-plugin-df | test/plugin/test_in_df.rb | 902 | require 'helper'
class DfInputTest < Test::Unit::TestCase
def setup
Fluent::Test.setup
end
CONFIG = %[
option -k
interval 3
tag_prefix df
target_mounts /
replace_slash true
tag free_disk
rm_percent true
hostname false
]
def create_driver(... | mit |
NaamloosDT/ModCore | ModCore/Logic/EntityFramework/IEfCustomContext.cs | 164 | using ModCore.Entities;
namespace ModCore.Logic.EntityFramework
{
public interface IEfCustomContext
{
DatabaseProvider Provider { get; }
}
} | mit |
ouranoshong/symfony-front-end | src/AppBundle/Security/Exception/NoAuthCodeAuthenticationException.php | 566 | <?php
/**
* Created by PhpStorm.
* User: hong
* Date: 12/27/16
* Time: 9:54 AM
*/
namespace AppBundle\Security\Exception;
use Symfony\Component\Security\Core\Exception\AuthenticationException;
/**
* Thrown if the user *should* have an authorization code, but there is none.
*
* Usually, this is because the use... | mit |
asiboro/asiboro.github.io | vsdoc/toc--/t_1973.js | 148 | c['1973']=[['1974',"MasterBadgesPerson Property","topic_0000000000000689.html",0],['1975',"TotalRecords Property","topic_000000000000068A.html",0]]; | mit |
jameskbride/grocery-reminder | app/src/test/java/com/groceryreminder/services/BootBroadcastReceiverTest.java | 2637 | package com.groceryreminder.services;
import android.content.Intent;
import com.groceryreminder.BuildConfig;
import com.groceryreminder.RobolectricTestBase;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricGradleTestRunner;
import org.robolectric.Runt... | mit |
renatorp/WorkHoursControl | src/main/java/workhourscontrol/client/component/TabelaTotalizador.java | 6471 | package workhourscontrol.client.component;
import java.io.IOException;
import java.text.ParseException;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.function.ToDoubleFunction;
import java.util.stream.... | mit |
thefreebird777/StockMarketGame | src/main/java/app/api/impl/LeagueApiServiceImpl.java | 4724 | package app.api.impl;
import app.api.swagger.LeagueApiService;
import app.bo.RuntimeHandler;
import app.exceptions.APIException;
import org.hibernate.models.League;
import com.google.gson.Gson;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityContext;
import javax.validation.constraints.*;
import org.... | mit |
YotpoLtd/red_cross | lib/red_cross/logging.rb | 435 | require 'logger'
module RedCross
module Logging
def self.logger
@logger ||= RedCross::Configuration.logger || (defined?(Rails) ? Rails.logger : ::Logger.new(STDERR))
end
def log(level, message)
RedCross::Logging.logger.send(level.to_sym, message)
rescue => e... | mit |
rslnk/biguniverse | web/app/themes/clusteronetwo/widget-sidebar-posts--constellations-stories.php | 900 | <div id="curiosity-block">
<div class="head"><h1><strong>Рассказы о созвездиях<br /></strong>легенды, история, интересные факты</h1><div class="split"></div></div>
<?php query_posts('tag=rasskazy-o-sozvezdiyah&showposts=10'); ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
... | mit |
vergecurrency/VERGE | src/rpc/net.cpp | 32361 | // Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2018-2020 The Verge Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <rpc/server.h>
#include <chainparams.h>
#include <clientversio... | mit |
litichevskiydv/GfPolynoms | test/GfAlgorithms.Tests/TestCases/BiVariablePolynomial/DivideByXDegreeTestCase.cs | 289 | namespace AppliedAlgebra.GfAlgorithms.Tests.TestCases.BiVariablePolynomial
{
using BiVariablePolynomials;
public class DivideByXDegreeTestCase
{
public BiVariablePolynomial Polynomial { get; set; }
public BiVariablePolynomial Expected { get; set; }
}
} | mit |
winters-song/chinesecio | resources/js/libs/jquery/jquery.ezpz_hint.js | 1828 | // EZPZ Hint v1.1.1; Copyright (c) 2009 Mike Enriquez, http://theezpzway.com; Released under the MIT License
(function($){
$.fn.ezpz_hint = function(options){
var defaults = {
hintClass: 'ezpz-hint',
hintName: 'ezpz_hint_dummy_input'
};
var settings = $.extend(defaults, options);
return this.each(func... | mit |
jridgewell/babel | packages/babel-plugin-proposal-class-properties/test/fixtures/public/super-statement/output.js | 387 | var Foo = /*#__PURE__*/function (_Bar) {
"use strict";
babelHelpers.inherits(Foo, _Bar);
var _super = babelHelpers.createSuper(Foo);
function Foo() {
var _this;
babelHelpers.classCallCheck(this, Foo);
_this = _super.call(this);
babelHelpers.defineProperty(babelHelpers.assertThisInitialized(_... | mit |
xingda920813/SimpleRecyclerView | sample/src/main/java/com/xdandroid/sample/util/FragmentUtils.java | 1679 | package com.xdandroid.sample.util;
import android.support.v4.app.*;
import android.view.*;
@SuppressWarnings("RestrictedApi")
public class FragmentUtils {
public Fragment replace(FragmentManager fm, int flResId, Fragment getInstance) {
String fragmentName = getInstance.getClass().getSimpleName();
... | mit |
AkivaGreen/umasstransit.rodeo | app/controllers/circle_check_scores_controller.rb | 1278 | class CircleCheckScoresController < ApplicationController
before_action :find_score, only: :update
def create
deny_access && return unless current_user.has_role? :circle_check_scorer
score = CircleCheckScore.new score_params
if score.save
redirect_to circle_check_scores_path, notice: 'Score was s... | mit |
Richeir/RicheirUnitTesting | XUnitTestProject/XUnitTestProject/CSharpLanguage/Multithreading/MultithreadingStudy.cs | 1856 | using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
namespace XUnitTestProject.CSharpLanguage.Multithreading
{
public class MultithreadingStudy
{
public const int REPETITIONS = 1000;
public static void DoWork()
{
for (i... | mit |
julienmetivier/carreRouge | helper.py | 614 | import math
class Helper(object):
def getAngledPoint(angle,longueur,cx,cy):
x = (math.cos(angle)*longueur)+cx
y = (math.sin(angle)*longueur)+cy
return (x,y)
getAngledPoint = staticmethod(getAngledPoint)
def calcAngle(x1,y1,x2,y2):
dx = x2-x1
dy = y2-y1
... | mit |
tosy2015/springdemo | src/main/java/com/pigtimer/config/ConfigRedis.java | 4837 | package com.pigtimer.config;
import com.alibaba.fastjson.JSONObject;
import org.apache.commons.io.IOUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
imp... | mit |
Foxman13/OxfordDemo | VisionAPI/App.xaml.cs | 4213 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xam... | mit |
sundy39/xf | WebApp/Web.Components/CurrentUserIdentityGetter.cs | 961 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
//using System.Web;
namespace XData.Data.Components
{
public class CurrentUserIdentityGetter : ICurrentUserIdentityGetter
{
public KeyValuePair<string... | mit |
WorldBrain/WebMemex | src/backup-restore/background/utils.ts | 183 | import { CollectionDefinition } from '@worldbrain/storex/lib/types'
export function isExcludedFromBackup(collection: CollectionDefinition) {
return collection.backup === false
}
| mit |
FTC7393/EVLib | EVLib/src/main/java/ftc/evlib/hardware/control/TranslationControls.java | 11332 | package ftc.evlib.hardware.control;
import ftc.electronvolts.util.InputExtractor;
import ftc.electronvolts.util.Vector2D;
import ftc.electronvolts.util.units.Angle;
import ftc.evlib.hardware.sensors.DoubleLineSensor;
import ftc.evlib.hardware.sensors.LineSensorArray;
import ftc.evlib.vision.framegrabber.FrameGrabber;
... | mit |
billguy/devise_duo | app/assets/javascripts/Duo-Web-v1.js | 11293 | /*!
* jQuery postMessage - v0.5 - 9/11/2009
* http://benalman.com/projects/jquery-postmessage-plugin/
*
* Copyright (c) 2009 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
// Script: jQuery postMessage: Cross-domain scripting goodness
//
// *Version: 0... | mit |
e-travel/agnostic_backend | lib/agnostic_backend/elasticsearch/indexer.rb | 2008 | module AgnosticBackend
module Elasticsearch
class Indexer < AgnosticBackend::Indexer
include AgnosticBackend::Utilities
def publish(document)
client.send_request(:put,
path: "/#{index.index_name}/#{index.type}/#{document["id"]}",
body: d... | mit |
GW2Treasures/gw2treasures.com | web/app/models/IHasLink.php | 332 | <?php
interface IHasLink {
public function getUrl($lang = null);
public function getAdditionalLinkAttributes(array $defaults = []);
public function getDefaultLinkAttributes($icon, $lang, $href, $displayIcon);
public function link($icon = 16, $lang = null, $text = null, $anchor = null, $extraAttribut... | mit |
ilangal-amd/CodeXL | CodeXL/Components/GpuProfiling/Backend/Common/APIInfoManagerBase.cpp | 11876 | //==============================================================================
// Copyright (c) 2015 Advanced Micro Devices, Inc. All rights reserved.
/// \author AMD Developer Tools Team
/// \file
/// \brief This class manages pointers to each saved API object for
/// API tracing.
//==========================... | mit |
bds-inc/pizza.me | src/db/repos/branches.js | 641 | const sql = require('../sql').branches
module.exports = (rep, pgp) => {
return {
// Adds a new branch and returns the new id:
insert: values =>
rep.one(sql.insert_one, values, branch => branch.id),
// Returns all branch records:
all: () =>
rep.any(sql.select_all),
update: values =... | mit |
codingsince1985/UVa | 131/131.go | 3377 | // UVa 131 - The Psychic Poker Player
package main
import (
"bufio"
"fmt"
"io"
"os"
"sort"
"strings"
)
const cardNumber = 5
type card struct {
value int
suit byte
}
var (
valueMap = map[byte]int{'T': 10, 'J': 11, 'Q': 12, 'K': 13, 'A': 14}
hand, deck []card
highest int
bestHand string
)
func d... | mit |
lmadhavan/fotografix | Fotografix.Tests/StubCanvasResourceCreator.cs | 704 | using Microsoft.Graphics.Canvas;
using System;
namespace Fotografix
{
public sealed class StubCanvasResourceCreator : ICanvasResourceCreatorWithDpi
{
public float Dpi { get; set; } = 96;
public float ScalingFactor
{
get => Dpi / 96;
set => Dpi = value *... | mit |
hyperwd/hwcram | vpc/migrations/0024_auto_20170926_0027.py | 598 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-25 16:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('vpc', '0023_auto_20170926_0016'),
]
operations = [
migrations.AlterField(
... | mit |
Wedeto/Util | src/DI/Injector.php | 7578 | <?php
/*
This is part of Wedeto, The WEb DEvelopment TOolkit.
It is published under the MIT Open Source License.
Copyright 2018, Egbert van der Wal
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... | mit |
sglubos/SGSerialization | src/svk/sglubos/sgserialization/utils/UtilitySerializer.java | 18356 | /* The MIT License (MIT)
*
* Copyright (c) 2016 Ľubomír Hlavko
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, cop... | mit |
netaz/halide-excursions | samples/scheduling_sample.cpp | 7836 | #include <Halide.h>
#include <string>
#include "excursions.h"
#include "utils/utils.h"
#include "utils/clock.h"
using Halide::Image;
#include "utils/image_io.h"
class Separable2dConvolutionSched : public Scheduler {
public:
Separable2dConvolutionSched(size_t policy) : policy(policy) {}
virtual void schedule(H... | mit |
npomf/hephaestus | lib/struct/descriptorPoolSize.rb | 163 | module Vulkan
class VkDescriptorPoolSize < FFI::Struct
layout type: :VkDescriptorType,
descriptorCount: :uint32_t
end
end | mit |
mazelab/vpopqmail | forms/Validate/AvailableQuotas.php | 3973 | <?php
/**
* vpopqmail
*
* @license http://opensource.org/licenses/MIT MIT
*/
class MazelabVpopqmail_Form_Validate_AvailableQuotas extends Zend_Validate_Abstract
{
CONST INVALID_ACCOUNT_QUOTA = 'invalidAccountQuota';
CONST INVALID_CLIENTID = 'invalidClientId';
CONST REACHED_LIMIT = 'reachedLimit';
... | mit |
vlobanov/event_logger | spec/dummy/app/models/custom_event.rb | 75 | class CustomEvent < EventLogger::Event
field :song_name, type: String
end | mit |
hprose/hprose-php | src/Hprose/RPC/Core/Service.php | 5264 | <?php
/*--------------------------------------------------------*\
| |
| hprose |
| |
| Official WebSite: https://hprose.com |
| ... | mit |
ringcentral/ringcentral-js-widget | packages/ringcentral-widgets/containers/AlertContainer/AlertContainer.ts | 191 | import AnimationAlert from '../../components/AnimationAlert';
import { connectModule } from '../../lib/phoneContext';
export default connectModule((phone) => phone.alertUI)(AnimationAlert);
| mit |
Jmeyering/oddsengine | summary.go | 5193 | package oddsengine
import (
"math"
"strconv"
"strings"
)
// Summary is a type which represents the an averaged results of multiple
// conflicts.
type Summary struct {
// TotalSimulations The number of simulations that have been ran
TotalSimulations int `json:"totalSimulations"`
// AverageRounds The number of r... | mit |
ashish2py/django-fcm-android-ios | fcm/models.py | 4211 | from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.encoding import python_2_unicode_compatible
from .utils import notification_push
GCM_ERROR_MESSAGES = {'MissingRegistration': 'Check that the request contains a registration token',
'InvalidReg... | mit |
tobyclemson/msci-project | vendor/poi-3.6/src/scratchpad/src/org/apache/poi/hwpf/sprm/TableSprmUncompressor.java | 8752 | /* ====================================================================
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 Y... | mit |
dartajax/frontend | tests/integration/components/programyear-header-test.js | 3555 | import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | programyear header', function(hooks... | mit |
WesamMikhail/Arcane | src/Errors/HTTPExceptions/HTTPException_405.php | 582 | <?php
namespace Lorenum\Arcane\Errors\HTTPExceptions;
/**
* 405 Method Not Allowed
* A request was made of a resource using a request method not supported by that resource;
* for example, using GET on a form which requires data to be presented via POST, or using PUT on a read-only resource.
*
* @package Lorenum\A... | mit |
mattcav/famoweb | lib/connections.php | 445 | <?php
// post 2 numeri
function numeri_connection_types() {
p2p_register_connection_type( array(
'name' => 'post2numeri',
'from' => 'post',
'to' => 'numeri',
'reciprocal' => true,
'admin_box' => array(
'show' => 'any',
... | mit |
rinvex/cortex-foundation | src/DataTables/Adminarea/AccessareasDataTable.php | 2145 | <?php
declare(strict_types=1);
namespace Cortex\Foundation\DataTables\Adminarea;
use Cortex\Foundation\Models\Accessarea;
use Cortex\Foundation\DataTables\AbstractDataTable;
use Cortex\Foundation\Transformers\AccessareaTransformer;
class AccessareasDataTable extends AbstractDataTable
{
/**
* {@inheritdoc}
... | mit |
thelinmichael/spotify-web-api-java | src/test/java/com/wrapper/spotify/requests/data/albums/GetAlbumsTracksRequestTest.java | 2505 | package com.wrapper.spotify.requests.data.albums;
import com.wrapper.spotify.TestUtil;
import com.wrapper.spotify.exceptions.SpotifyWebApiException;
import com.wrapper.spotify.model_objects.specification.Paging;
import com.wrapper.spotify.model_objects.specification.TrackSimplified;
import com.wrapper.spotify.requests... | mit |
nestorrente/jitl-core | src/test/java/com/nestorrente/jitl/Html.java | 619 | package com.nestorrente.jitl;
import com.nestorrente.jitl.annotation.BaseClasspath;
import com.nestorrente.jitl.annotation.ClasspathTemplate;
import com.nestorrente.jitl.annotation.Encoding;
import com.nestorrente.jitl.annotation.param.ParamName;
import com.nestorrente.jitl.annotation.param.ParamNames;
@BaseClasspath... | mit |
hurricanepkt/DropboxRestAPI | src/DropboxRestAPI/Services/Business/Reports.cs | 3320 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 Itay Sagui
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use,... | mit |
vntarasov/openpilot | selfdrive/controls/lib/long_mpc.py | 4376 | import os
import math
import cereal.messaging as messaging
from selfdrive.swaglog import cloudlog
from common.realtime import sec_since_boot
from selfdrive.controls.lib.radar_helpers import _LEAD_ACCEL_TAU
from selfdrive.controls.lib.longitudinal_mpc import libmpc_py
from selfdrive.controls.lib.drive_helpers import MP... | mit |
marko-js/marko | packages/marko/test/vdom-create/fixtures/appendDocumentFragment-no-children/index.js | 248 | module.exports = function (helpers) {
var root = helpers.vdom.createElement("div", { class: "root" });
root.e("div", { class: "first-child" });
root.___appendDocumentFragment();
root.e("div", { class: "last-child" });
return root;
};
| mit |
Anastaszor/phpchecklib | libraries/kadm5.php | 13080 | <?php
/**
* The list of functions and classes used by the kadm5 library.
*
* @see https://secure.php.net/manual/en/book.kadm5.php
*/
return array(
'name' => 'kadm5',
'fullname' => 'Kerberos V',
'configure_option' => '--with-kadm5',
'available_since_php_version' => '5.0.0',
'deprecated_since_php_ve... | mit |
mcmakdonal/amarin-redemption | application/views/Popup_Program_info.php | 4271 | <!DOCTYPE html>
<html lang="en">
<head>
<!-- <title>Bootstrap Example</title>-->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<sc... | mit |
johnrobox/mano | js/common-script.js | 656 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
// Defined javascript base url
var url = 1;
var server_url = '';
switch (url) {
case 1:
server_url = ... | mit |
tung7/tung_doc | src/main/java/com/tung7/docsys/bean/vo/datatable/DataTable.java | 2407 | package com.tung7.docsys.bean.vo.datatable;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* datatable 1.10对应dto
*
* @author Tung
* @version 1.0
* @date 2017/5/3.
* @update
*/
public class DataTable<T> implements Seria... | mit |
ChrisDalley/datatravels | src/client/app/shared/header/header.guard.ts | 788 | import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, CanActivate, CanActivateChild, RouterStateSnapshot } from '@angular/router';
import { HeaderService } from '../../services/header.service';
@Injectable()
export class HeaderGuard implements CanActivate, CanActivateChild {
constructor(
... | mit |
mazinsw/nfe-api | src/NFe/Entity/Imposto/PIS/Aliquota.php | 3974 | <?php
/**
* MIT License
*
* Copyright (c) 2016 GrandChef Desenvolvimento de Sistemas LTDA
*
* @author Francimar Alves <mazinsw@gmail.com>
*
* 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 Sof... | mit |
jamestaylr/chef-spigot | attributes/essentials-antibuild.rb | 1631 |
# This section requires the EssentialsAntiBuild.jar to work.
# Disable various default physics and behaviors
# For more information, visit http://wiki.ess3.net/wiki/AntiBuild
# Should people with build: false in permissions be allowed to build?
# Set true to disable building for those people.
# Setting to false mean... | mit |
andregeuze/Sim-Telemetry-Suite | src/SimTelemetry.Receiver/Data/Track.cs | 338 | using System;
using System.Collections.Generic;
using System.Text;
namespace SimTelemetry.Receiver.Data
{
public class Track : IEntity
{
public int Id { get; set; }
public string Name { get; set; }
public float Distance { get; set; }
public IEnumerable<TrackPath> Path { get;... | mit |
zurb/tribute | test/karma.conf.js | 2734 | // Karma configuration
// http://karma-runner.github.io/0.12/config/configuration-file.html
// Generated on 2016-02-05 using
// generator-karma 1.0.1
process.env.CHROME_BIN = require("puppeteer").executablePath();
module.exports = function(config) {
"use strict";
config.set({
// enable / disable watching file... | mit |
Gray-Wind/vagrant-parallels | lib/vagrant-parallels/cap/nic_mac_addresses.rb | 372 | module VagrantPlugins
module Parallels
module Cap
module NicMacAddresses
# Reads the network interface card MAC addresses and returns them.
#
# @return [Hash<Integer, String>] Adapter => MAC address
def self.nic_mac_addresses(machine)
machine.provider.driver.read_ma... | mit |
mgathu1/groceryshopper | laravel/app/views/site/layouts/default.blade.php | 4845 | <!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Page Needs
================================================== -->
<meta charset="utf-8" />
<title>
@section('title')
Groceryshopper.ca: Find you groceries fast!!
@show
</title>
<meta name="viewport" content="width=1024">
... | mit |
gzulian/inacap_mype | application/models/Empresa_model.php | 17022 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Empresa_model extends CI_Model {
private $columns = array(
'emp_id'=>0,
'emp_rsocial'=>'',
'emp_rut'=>0,
'emp_dv'=>'',
'emp_com_id'=>0,
'emp_direccion'=>'',
'emp_estado'=>0,
'emp_diagnostico'=>'',
'emp_fantasia'=>'',
'emp_... | mit |
kcsl/immutability-benchmark | testcases/source/AGT/AGT177_ClassVariable_Parameter/src/testcase/AGT177_ClassVariable_Parameter.java | 549 | package testcase;
import annotations.READONLY;
public class AGT177_ClassVariable_Parameter {
@READONLY
public Test test = new Test();
public static void main(String[] args) {
new AGT177_ClassVariable_Parameter().foo();
}
public void foo(){
System.out.println(test);
test.bar(test);
System.out.println... | mit |