repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
brino/larablog | resources/views/admin/article/edit.blade.php | 1196 | <?php
/**
* Created by PhpStorm.
* User: bmix
* Date: 5/18/16
* Time: 8:44 AM
*/
?>
@extends('layouts.app')
@section('title')
Edit Article
@stop
@section('heading')
<span class="icon is-medium"><i class="fa fa-pencil-square-o"></i></span> Edit Article
@can('update-article',$article)
<span ... | mit |
RaveNoX/ConsoleShell | src/ConsoleShell/Readline/Readline.cs | 36251 | #region Usings
using System;
using System.Collections;
using System.IO;
using System.Text;
#endregion
namespace ConsoleShell.Readline
{
internal class Readline
{
public Readline(ShellHistory history)
{
_history = history;
}
#region Fields ... | mit |
ASzot/Wumpus-XNA-Game-Engine | HTW Game Engine/BaseLogic/Editor/Forms/Object Editors/Game Play/SoundEffectEditorForm.Designer.cs | 7577 | namespace BaseLogic.Editor.Forms.Object_Editors
{
partial class SoundEffectEditorForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
... | mit |
gmarty/natural | lib/natural/trie/trie.js | 4780 | /*
Copyright (c) 2014 Ken Koch
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, copy, modify, merge, publish, distribute, sublic... | mit |
mwean/sublime_jump_along_indent | tests/helper.py | 897 | import sublime
from unittest import TestCase
class TestHelper(TestCase):
def setUp(self):
self.view = sublime.active_window().new_file()
self.view.settings().set("tab_size", 2)
def tearDown(self):
if self.view:
self.view.set_scratch(True)
self.view.window().run_command('close_file')
def... | mit |
jinxiaodan/credit-center-webpack | src/js/main.js | 877 | (function ($, window, document, undefined){
var tree = [{
text: 'Parent1',
nodes: [{
text: 'Child1',
nodes: [{
text: 'Grandchild1'
}, {
text: 'Grandchild2'
}]
}, {
text: 'Child2'
}]
}, {
text: 'Parent2'
}, {
text: 'Parent3'
}, {
text: 'Parent4'
}, {
text: 'Parent5'
}];
fun... | mit |
efuquen/coreutils | src/id/id.rs | 11913 | #![crate_name = "id"]
/*
* This file is part of the uutils coreutils package.
*
* (c) Alan Andrade <alan.andradec@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Synced with:
* http://ftp-archive.freebsd.org/mirror/... | mit |
windbender/wildlife-camera-machine | src/main/java/com/github/windbender/dao/EventDAO.java | 7106 | package com.github.windbender.dao;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.SQLQuery;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Property;
impor... | mit |
Numerico-Informatic-Systems-Pvt-Ltd/arnojobportal | src/JobPortal/FrontBundle/Entity/Users.php | 6389 | <?php
namespace JobPortal\FrontBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Users
*/
class Users
{
/**
* @var string
*/
private $name;
/**
* @var string
*/
private $email;
/**
* @var string
*/
private $phone;
/**
* @var string
*/
p... | mit |
js-diaz/sistrans | src/rfc/ListaContenedoraInfoZonaCategoriaProducto.java | 1001 | package rfc;
import java.util.ArrayList;
import java.util.List;
import org.codehaus.jackson.annotate.JsonProperty;
/**
* Clase usada para contener información.<br>
* @author jc161
*
*/
public class ListaContenedoraInfoZonaCategoriaProducto {
/**
* Información utilizada.
*/
@JsonProperty(value="informacion... | mit |
lunny/gitea | routers/repo/pull.go | 31204 | // Copyright 2018 The Gitea Authors.
// Copyright 2014 The Gogs Authors.
// All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package repo
import (
"container/list"
"fmt"
"io"
"net/url"
"path"
"strings"
"code.gitea.io/git"
"code.gitea... | mit |
ofer987/transit.tips | ttc_notices/app/models/event.rb | 540 | class Event < ActiveRecord::Base
# google_event_id, NVARCHAR, NOT NULL
# calendar_id, INTEGER, INDEX, FOREIGN KEY, NOT NULL
# ttc_closure_id, INTEGER, INDEX, FOREIGN KEY, NOT NULL
# name, NVARCHAR, NOT NULL
# description, TEXT, NOT NULL, DEFAULT: ''
belongs_to :calendar
belongs_to :ttc_closure, foreign_k... | mit |
zoowii/readerproxy | RP/src/RP/core/HttpSession.php | 354 | <?php
/**
* Created by PhpStorm.
* User: zoowii
* Date: 14-3-12
* Time: 上午12:18
*/
namespace RP\core;
class HttpSession
{
private static $sessionStarted = false;
public static function startSession()
{
if (!self::$sessionStarted) {
session_start();
self::$sessionStar... | mit |
Vitre/visy-admin-bundle | DependencyInjection/Core.php | 610 | <?php
namespace Visy\Visy\Admin\Bundle\DependencyInjection;
use Symfony\Component\HttpKernel\Event\FilterControllerEvent;
class Core {
protected $session;
protected $container;
public function __construct($container)
{
$this->container = $container;
}
public function onKernelContr... | mit |
ExpressenAB/exp-amqp-connection | examples/subscribe-tmpqueue.js | 714 | "use strict";
// Subscribe with temporary queue which will
// be deleted once the amqp connection is lost.
const init = require("..");
const amqpBehaviour = {
url: "amqp://localhost",
exchange: "my-excchange",
ack: "true"
};
const broker = init(amqpBehaviour);
broker.on("error", (err) => console.log(`AMQP Er... | mit |
dom96/BrokenBonez | BrokenBonez/app/src/main/java/com/dragonfruitstudios/brokenbonez/Game/Scenes/MenuScene.java | 1132 | package com.dragonfruitstudios.brokenbonez.Game.Scenes;
import android.view.MotionEvent;
import com.dragonfruitstudios.brokenbonez.AssetLoading.AssetLoader;
import com.dragonfruitstudios.brokenbonez.Game.GameView;
import com.dragonfruitstudios.brokenbonez.GameSceneManager;
import com.dragonfruitstudios.brokenbonez.Men... | mit |
Woorank/boilerpipe | app.js | 326 | var path = require('path');
var config = require('config');
var server = require(path.join(__dirname, 'src/server'));
var instance = server.createServer().listen(config.httpPort, function() {
'use strict';
var address = instance.address();
console.log('listening at http://%s:%s', address.address, address.port)... | mit |
WeHaveCookie/EnchantedForest | Classes/Actions/CommandMove.cpp | 2568 | #include "stdafx.h"
#include "CommandMove.h"
#include "Entity/Entity.h"
#include "Manager/Game/GameMgr.h"
#include "Manager/Entity/EntityMgr.h"
void CommandMove::init(Entity* ent, void* data)
{
Command::init(ent);
m_motion = *static_cast<Vector2*>(data);
free(data);
}
void CommandMove::execute()
{
Entity* entity ... | mit |
zegl/goriak | keys_in_index_test.go | 1606 | package goriak
import (
"testing"
)
func TestKeysInIndex(t *testing.T) {
type tt struct {
Val string
}
for _, key := range []string{"A", "B", "C", "D", "E", "F", "G"} {
_, err := Bucket("json", "default").SetJSON(tt{Val: key}).AddToIndex("indextest_bin", "AAAA").Key(key).Run(con())
if err != nil {
t.Err... | mit |
mysterycommand/Bearshirt | Assets/Anima2D/Scripts/Editor/TimeLine/ZoomableArea.cs | 24158 | using System;
using UnityEngine;
namespace Anima2D
{
[Serializable]
public class ZoomableArea
{
[Serializable]
public class Styles
{
public GUIStyle horizontalScrollbar;
public GUIStyle horizontalMinMaxScrollbarThumb;
public GUIStyle horizontalScrollbarLeftButton;
public GUIStyle ho... | mit |
selvasingh/azure-sdk-for-java | sdk/appservice/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/appservice/v2019_08_01/implementation/ServerfarmHybridConnectionImpl.java | 2946 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.appservice.v2019_08_01.implementation;
import co... | mit |
DSchana/Artemis-Engine | Artemis.Tests/Animation/AAMLTest.cs | 2311 | using Artemis.Engine;
using Artemis.Engine.Graphics.Animation;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
namespace Artemis.Tests.Animation
{
[Te... | mit |
pymalch/news | src/app/card/card.ts | 164 | export class Card {
id: number;
category: number;
agencies: any[];
keywords: string;
type: number;
theme: number;
refresh_time: number
} | mit |
stivalet/PHP-Vulnerability-test-suite | Injection/CWE_89/safe/CWE_89__unserialize__func_floatval__select_from_where-interpretation.php | 1542 | <?php
/*
Safe sample
input : Get a serialize string in POST and unserialize it
sanitize : use of floatval
construction : interpretation
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, and distribute this software and its document... | mit |
bacta/pre-cu | src/main/java/com/ocdsoft/bacta/swg/server/object/login/PopulationStatus.java | 661 | package com.ocdsoft.bacta.swg.server.object.login;
import com.ocdsoft.bacta.engine.buffer.ByteBufferWritable;
import lombok.Getter;
import java.nio.ByteBuffer;
/**
* Created by Kyle on 8/15/2014.
*/
public enum PopulationStatus implements ByteBufferWritable {
PS_LOWEST(0x0),
PS_very_light(0x0),
PS_lig... | mit |
alanszlosek/voxeling | src/lib/object-pool.js | 1838 | var pool = {};
// Don't really need to keep track of those I've allocated, do I?
var bytes = 0;
var mallocs = 0;
var news = 0;
var frees = 0;
var create = function(type, size) {
news++;
switch (type) {
case 'float32':
return new Float32Array(size);
case 'uint8':
return new Uint... | mit |
azu/ecmascript-version-detector | data/LogicalExpression/index.js | 134 | module.exports = {
"selector": "//LogicalExpression",
"version": "3",
"en": {
"name": "LogicalExpression"
}
}; | mit |
sharat543/sharat543.github.io | decibelVision/bower_components/prism/components/prism-d.js | 2705 | Prism.languages.d = Prism.languages.extend('clike', {
'string': [
// r"", x""
/\b[rx]"(\\.|[^\\"])*"[cwd]?/,
// q"[]", q"()", q"<>", q"{}"
/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/,
// q"IDENT
// ...
// IDENT"
/\bq"([_a-zA-Z][_a-zA-Z\d]*)(?:\r?\n|\r)[\s\S]*?(?:\r?\n|\r)\1"/,
// q"/... | mit |
jugglinmike/es6draft | src/test/scripts/suite/syntax/lexical/string_noctal_escape.js | 1648 | /*
* Copyright (c) 2012-2016 André Bargull
* Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
*
* <https://github.com/anba/es6draft>
*/
const {
assertSame
} = Assert;
// noctal
for (let i = 8; i <= 9; ++i) {
let n = i.toString(10);
assertSame(eval(`"\\${n}"`), n)... | mit |
victorsantoss/angular-grid | docs/angular-grid-sorting/index.php | 976 | <?php
$key = "Sorting";
$pageTitle = "AngularJS Angular Grid Sorting";
$pageDescription = "AngularJS Angular Grid Sorting";
$pageKeyboards = "AngularJS Angular Grid Sorting";
include '../documentation_header.php';
?>
<div>
<h2>Sorting</h2>
<h4>Enable Sorting</h4>
<p>
Turn sorting on for the grid... | mit |
luckyfishlab/foundry | examples/pipeline_example.rb | 1459 | $: << File.expand_path("./lib")
require 'resque'
require 'foundry'
require './examples/sleepyjob'
class CommitPhase < Foundry::QueuedPhase
def executePhase(context)
puts "Start commit phase."
puts "Commit -- #{context.class}:#{context} "
processor = Foundry::Processor.new(SleepyJob.new())
ret = pr... | mit |
vynci/laserx | src/client/app/app.routes.ts | 484 | import { Routes } from '@angular/router';
import { LoginRoutes } from './login/index';
import { DashboardRoutes } from './dashboard/index';
import { TermsAndConditionsRoutes } from './terms-and-conditions/index';
import { LoginComponent } from './login/index';
import { TermsAndConditionsComponent } from './terms-and-... | mit |
danielbeckmann/NFCBasics | NfcBasics/Properties/AssemblyInfo.cs | 1084 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Diese Attributwerte ändern, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: Assembly... | mit |
Promotion-System/jrpg | dominio/src/main/java/promotionSystem/razas/castas/undertale/Chara.java | 1268 | package promotionSystem.razas.castas.undertale;
import promotionSystem.Constantes;
import promotionSystem.razas.PersonajeDeUndertale;
public class Chara extends PersonajeDeUndertale{
public Chara(){
casta="Chara";
energia=Constantes.ENERGIA_CHARA;
energiaMaxima=Constantes.ENERGIA_MAXIMA_CHARA;
salu... | mit |
nicolaihenriksen/SimpleClipboardManager | SimpleClipboardManager/Properties/AssemblyInfo.cs | 1108 | 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("SimpleClipboardManager")]
[assembly: Assem... | mit |
seangeo/auth-hmac | lib/auth-hmac/version.rb | 138 | class AuthHMAC
module VERSION #:nodoc:
MAJOR = 1
MINOR = 1
TINY = 1
STRING = [MAJOR, MINOR, TINY].join('.')
end
end
| mit |
dnl-jst/ownsocial | application/controller/Admin.php | 719 | <?php
namespace Application\Controller;
use Core\Controller;
use Service\User;
class Admin extends Controller
{
public function init()
{
if ($this->_currentUser->getType() !== 'admin') {
$this->redirect('/');
return;
}
}
public function acceptUserAction()
{
$userId = $this->getRequest()->getPost('... | mit |
anvk/redux-portal-boilerplate | src/components/Followers/Followers.js | 1517 | import React, { Component, PropTypes } from 'react';
import LaddaButton from 'react-ladda';
import { UsersTable } from '../';
class Followers extends Component {
render() {
const { followers } = this.props;
return (
<div>
<div className="page-header">
<h1>Followers</h1>
</div... | mit |
cfmdobbie/HTML5-Gamepad-StreetView | math_utils.js | 186 | // Convert degrees to radians
function d2r(degrees) {
return degrees * (Math.PI / 180);
}
// Convert radians to degrees
function r2d(radians) {
return radians * (180 / Math.PI);
}
| mit |
rubiety/message_block | lib/message_block/helpers.rb | 2122 | module MessageBlock
module Helpers
def message_block(options = {})
options[:model_error_type] ||= :error
options[:flash_types] ||= [:notice, :back, :confirm, :error, :alert, :info, :warn].sort_by(&:to_s)
options[:on] ||= controller.controller_name.split('/').last.gsub(/\_controller$/, '').s... | mit |
mateidavid/hpptools | include/tpool.hpp | 5043 | /// @author Matei David, Ontario Institute for Cancer Research
/// @version 1.0
/// @date 2015
/// @copyright MIT Public License
///
/// A C++11 thread pool.
///
/// Inspired by:
/// http://stackoverflow.com/a/29742586/717706
#ifndef __TPOOL_HPP
#define __TPOOL_HPP
#include <iostream>
#include <thread>
#i... | mit |
dugooder/a-microservice | src/service.home/HomeNancyModule.cs | 794 | using Nancy;
using Ninject;
using Nancy.Responses;
namespace service.home
{
using lib.logging;
public class HomeNancyModule : NancyModule
{
readonly ILogProvider log;
[Inject]
public HomeNancyModule(ILogProvider log) : base("/")
{
this.log = log... | mit |
guibec/rpgcraft | unity/Assets/Scripts/Game/Inventory/Inventory.cs | 3025 | using System;
public class Inventory
{
private Inventory_Data m_inventoryData;
public Inventory_Data InventoryData
{
get
{
return m_inventoryData;
}
set
{
m_inventoryData = value;
OnChanged();
}
}
public readonly ... | mit |
stepchud/town_crier | test/dummy/app/helpers/start_helper.rb | 45 | module StartHelper
include SMSFuHelper
end
| mit |
brianseitel/ook | src/Ook/XmlParser.php | 4811 | <?php
namespace Ook;
class XMLParser {
/**
* The XML object that we will parse
* @var SimpleXMLElement
*/
private $xml = null;
/**
* The options passed into the parser.
* @var array
*/
private $options = [];
/**
* The namespace separator. Usually a colon.
... | mit |
nearspears/vue-nav | webpack.config.js | 1418 | var path = require('path')
var webpack = require('webpack')
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, './dist'),
publicPath: '/dist/',
filename: 'vue-nav.js'
},
module: {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader',
opt... | mit |
yurii-sychov/ci | application/core/MY_Model.php | 5092 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class MY_Model extends CI_Model {
/**
* [$order Sort fields. Example: name ASC or name DESC or name]
* @var string
*/
public $order = '';
/**
* [$table Name of the table]
* @var string
*/
public $table = '';
/**
* [$idTable Id... | mit |
zalando-nakadi/nakadi-producer-spring-boot-starter | nakadi-producer-spring-boot-starter/src/test/java/org/zalando/nakadiproducer/snapshots/SnapshotEventGeneratorAutoconfigurationIT.java | 1713 | package org.zalando.nakadiproducer.snapshots;
import static org.junit.Assert.fail;
import java.util.Collections;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
impor... | mit |
aswitalski/chromium-reactor | test/diff-calculate.test.js | 39227 | describe('Diff => calculate patches', () => {
const VirtualNode = Reactor.VirtualNode;
const ComponentTree = Reactor.ComponentTree;
const Diff = Reactor.Diff;
const Patch = Reactor.Patch;
const Component = Symbol.for('Component');
const Subcomponent = Symbol.for('Subcomponent');
const OtherComponent = S... | mit |
elminsterjimmy/PSN-API | PSN-API/src/main/java/com/elminster/retrieve/psn/service/IPSNApi.java | 1038 | package com.elminster.retrieve.psn.service;
import java.util.List;
import com.elminster.retrieve.psn.data.game.PSNGame;
import com.elminster.retrieve.psn.data.game.PSNTrophy;
import com.elminster.retrieve.psn.data.user.PSNUserGame;
import com.elminster.retrieve.psn.data.user.PSNUserProfile;
import com.elminster.retri... | mit |
arcstone/Credentials | src/Credentials.php | 2101 | <?php
/*
* This file is part of Laravel Credentials.
*
* (c) Graham Campbell <graham@mineuk.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace GrahamCampbell\Credentials;
use Cartalyst\Sentry\Sentry;
use McCool\Larav... | mit |
MahjongRepository/tenhou-python-bot | project/game/ai/defence/yaku_analyzer/yakuhai.py | 913 | from game.ai.defence.yaku_analyzer.yaku_analyzer import YakuAnalyzer
class YakuhaiAnalyzer(YakuAnalyzer):
id = "yakuhai"
def __init__(self, enemy):
self.enemy = enemy
def serialize(self):
return {"id": self.id}
def is_yaku_active(self):
return len(self._get_suitable_melds())... | mit |
kalibao/kalibao-framework | kalibao/backend/modules/cms/components/cmsImage/crud/Edit.php | 4436 | <?php
/**
* @copyright Copyright (c) 2015 Kévin Walter <walkev13@gmail.com> - Kalibao
* @license https://github.com/kalibao/kalibao-framework/blob/master/LICENSE
*/
namespace kalibao\backend\modules\cms\components\cmsImage\crud;
use Yii;
use yii\helpers\Url;
use kalibao\common\components\crud\SimpleValueField;
use... | mit |
akhilcjacob/Robot_2016_Ver2.0 | src/org/usfirst/frc/team2791/abstractSubsystems/AbstractShakerDriveTrain.java | 16726 | package org.usfirst.frc.team2791.abstractSubsystems;
import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.Encoder;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import org.usfirst.frc.team2791.overridenClasse... | mit |
chrkon/helix-toolkit | Source/HelixToolkit.SharpDX.Shared/Utilities/Octrees/RenderableBoundingOctree.cs | 10321 | using SharpDX;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
#if !NETFX_CORE
namespace HelixToolkit.Wpf.SharpDX
#else
#if CORE
namespace HelixToolkit.SharpDX.Core
#else
namespace HelixToolkit.UWP
#endif
#endif
{
namespace Utilities
{
using Model.Scene;
... | mit |
ethaMont/3days | src/reducer.js | 653 | import { combineReducers } from 'redux';
import { routerReducer } from 'react-router-redux';
// Reducers
import { authReducer } from 'modules/auth';
import { firebaseReducer } from 'modules/firebase';
import { notificationReducer } from 'modules/notification';
import { tripsReducer } from 'modules/trips';
import { tri... | mit |
mcamis/drive.vote.driver | scripts/start.js | 5316 | process.env.NODE_ENV = 'development';
var path = require('path');
var chalk = require('chalk');
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var execSync = require('child_process').execSync;
var opn = require('opn');
var detect = require('./utils/detectPort');
var prompt = re... | mit |
chamerling/dockerhub2slack | Gruntfile.js | 2714 | 'use strict';
module.exports = function(grunt) {
var packageJSON = grunt.file.readJSON('package.json');
var CI = grunt.option('ci');
grunt.initConfig({
pkg: packageJSON,
project: {
lib: 'server',
test: 'test',
dist: 'dist',
bin: 'bin',
data: 'data',
name: packageJS... | mit |
blcktqq/ng-ui | src/typings.d.ts | 131 | /* SystemJS module definition */
declare var module: NodeModule;
interface NodeModule {
id: string;
}
declare var easyrtc: any;
| mit |
bramr/tor-exits | src/Parser/BlutMagieParser.php | 864 | <?php
namespace BramR\TorExits\Parser;
use BramR\TorExits\IpList;
use Psr\Http\Message\StreamInterface;
/**
* Class BlutMagieParser
*/
class BlutMagieParser extends BaseParser
{
/**
* {@inheritdoc}
*/
public function parse(StreamInterface $data = null)
{
$ips = explode("\n", $this->ge... | mit |
hillinworks/echoisles | Client/app/+examples/examples.routes.ts | 1459 | import { Routes, RouterModule } from '@angular/router';
import { ExamplesComponent } from './examples.component';
const routes: Routes = [
{
path: '', component: ExamplesComponent, children: [
{ path: 'animationexamples', loadChildren: './animations/animations.module#AnimationsModule' }... | mit |
askl56/Challenges | Maths/Project Euler/05-Smallest-Multiple/solutions/askl56-lowest-common-multiple.rb | 65 | # Simplest way of doing it
(1..20).inject(:lcm)
# => 232792560
| mit |
danielgimenes/Sunshine | app/src/main/java/br/com/dgimenes/sunshine/DetailFragment.java | 9949 | /*
* Copyright (C) 2014 The Android Open Source Project
*
* 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 app... | mit |
jnunemaker/bin | lib/bin.rb | 86 | require 'active_support/cache/bin'
module Bin
Store = ActiveSupport::Cache::Bin
end | mit |
avalax/FitBuddy | src/main/java/de/avalax/fitbuddy/domain/model/finished_workout/BasicFinishedWorkout.java | 1968 | package de.avalax.fitbuddy.domain.model.finished_workout;
import java.util.List;
import de.avalax.fitbuddy.domain.model.finished_exercise.FinishedExercise;
import de.avalax.fitbuddy.domain.model.workout.WorkoutId;
public class BasicFinishedWorkout implements FinishedWorkout {
private FinishedWorkoutId finishedWo... | mit |
kambojajs/kamboja | packages/moringa/test/type-converter/models/models.ts | 439 | import { val, type } from "kamboja-foundation"
import { mongoose } from "../../../src"
@mongoose.shortid()
export class ShortModel {
@type("string")
name:string
}
export class DefaultIdModel{
@type("string")
name:string
}
export class ParentModel {
@type("string")
name:string
@type("Shor... | mit |
jglrxavpok/0xC1 | src/main/java/org/c1/client/gui/editor/ShipEditorComponent.java | 854 | package org.c1.client.gui.editor;
import org.c1.client.render.*;
import org.c1.maths.Vec2f;
import org.c1.utils.CardinalDirection;
public abstract class ShipEditorComponent {
private Vec2f pos;
protected Vec2f size;
public ShipEditorComponent(float x, float y) {
pos = new Vec2f(x,y);
... | mit |
ManuelRauber/ShortUrl | ShortUrl/Controllers/UrlController.cs | 1939 | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Caching;
using System.Web.Http;
using ShortUrl.Common;
using Microsoft.SqlServer.Server;
using ShortUrl.Model;
using ShortUrl.Services.Contracts;
namespace ShortUrl.... | mit |
dmemoing/app-fronted | app/js/components/version/version-directive.js | 198 | 'use strict';
angular.module('sher.version.version-directive', [])
.directive('appVersion', ['version', function(version) {
return function(scope, elm, attrs) {
elm.text(version);
};
}]);
| mit |
erykpiast/appetite | node_modules/express/node_modules/stylus/node_modules/cssom/node_modules/jake/lib/utils/index.js | 7851 | /*
* Jake JavaScript build tool
* Copyright 2112 Matthew Eernisse (mde@fleegix.org)
*
* 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-... | mit |
twinone/rubik-web | assets/vendor/cubejs/async.js | 2133 | // Generated by CoffeeScript 1.10.0
(function() {
var Cube, Extend, Include, key, value;
Cube = this.Cube || require('./cube');
Extend = {
asyncOK: !!window.Worker,
_asyncSetup: function(workerURI) {
if (this._worker) {
return;
}
this._worker = new window.Worker(workerURI);
... | mit |
crestonbunch/godata | count_parser.go | 234 | package godata
import (
"strconv"
)
func ParseCountString(count string) (*GoDataCountQuery, error) {
i, err := strconv.ParseBool(count)
if err != nil {
return nil, err
}
result := GoDataCountQuery(i)
return &result, nil
}
| mit |
davidezordan/MixedRealitySamples | Oculus Demo/Assets/Oculus/Platform/Scripts/MicrophoneInputNative.cs | 1355 | //This file is deprecated. Use the high level voip system instead:
// https://developer.oculus.com/documentation/platform/latest/concepts/dg-cc-voip/
#if OVR_PLATFORM_USE_MICROPHONE
using UnityEngine;
using System;
using System.Collections.Generic;
namespace Oculus.Platform
{
public class MicrophoneInputNative : I... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/tinymce/3.5.8/plugins/xhtmlxtras/js/acronym.min.js | 128 | version https://git-lfs.github.com/spec/v1
oid sha256:fb0c7bfaa3bc37b821fcb6a7307d169622894bafa5f508e9dc524e2108185848
size 281
| mit |
maxim-kuzmin/Makc2016 | Makc2016.Modules.AspNetIdentity/Operations/Account/ModuleAspNetIdentityOperationAccountHasBeenVerified.cs | 1112 | // MIT License. Copyright (c) 2016 Maxim Kuzmin. Contacts: https://github.com/maxim-kuzmin
// Author: Maxim Kuzmin
using Makc2016.Core.Execution.Operations.Async;
using Makc2016.Modules.AspNetIdentity.Managers;
using System;
using System.Threading.Tasks;
namespace Makc2016.Modules.AspNetIdentity.Operations.Account
... | mit |
DusanKasan/Knapsack | tests/scenarios/CallableFuctionNamesTest.php | 587 | <?php
namespace DusanKasan\Knapsack\Tests\Scenarios;
use DusanKasan\Knapsack\Collection;
use PHPUnit_Framework_TestCase;
class CallableFunctionNamesTest extends PHPUnit_Framework_TestCase
{
/**
* Example that it's possible to use callable function names as arguments.
*/
public function testIt()
... | mit |
Lemma1/MAC-POSTS | src/3rdparty/g3log/time.cpp | 2970 | /** ==========================================================================
* 2012 by KjellKod.cc. This is PUBLIC DOMAIN to use at your own risk and comes
* with no warranties. This code is yours to share, use and modify with no
* strings attached and no restrictions or obligations.
*
* For more information see g3l... | mit |
Tonodus/GlowSponge | src/main/java/net/glowstone/data/type/GlowProfession.java | 459 | package net.glowstone.data.type;
import net.glowstone.GlowCatalogType;
import org.spongepowered.api.data.type.Profession;
import org.spongepowered.api.text.translation.Translation;
public class GlowProfession extends GlowCatalogType implements Profession {
public GlowProfession(String id, String name, int numeri... | mit |
AsrOneSdk/azure-sdk-for-net | sdk/avs/Microsoft.Azure.Management.Avs/src/Generated/IAuthorizationsOperations.cs | 10369 | // <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// re... | mit |
McJty/XNet | src/main/java/mcjty/xnet/apiimpl/items/ItemChannelSettings.java | 23279 | package mcjty.xnet.apiimpl.items;
import com.google.gson.JsonObject;
import com.google.gson.JsonPrimitive;
import mcjty.lib.varia.WorldTools;
import mcjty.xnet.XNet;
import mcjty.xnet.api.channels.IChannelSettings;
import mcjty.xnet.api.channels.IConnectorSettings;
import mcjty.xnet.api.channels.IControllerContext;
im... | mit |
fanyingming/car-pooling-site | src/com/project/dao/UserDao.java | 5589 | package com.project.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.project.javabean.User;
import com.project.util.DBPoolUtil;
public class UserDao {
public boo... | mit |
jeremiebernard/suivi_alternants | src/AppBundle/Forms/Types/CourseManagerType.php | 985 | <?php
/**
* Created by PhpStorm.
* User: lp
* Date: 06/04/2017
* Time: 17:29
*/
namespace AppBundle\Forms\Types;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Constraints\Regex;
... | mit |
reneolivo/laptop-friendly | src/lib/decorators/index.js | 276 | export {default as Component} from './component';
export {default as State} from './state';
export {default as Service} from './service';
export {default as Inject} from './inject';
export {default as Attribute} from './attribute';
export {default as Filter} from './filter';
| mit |
hugomelo/ralsp | src/cake/app/plugins/burocrata/webroot/js/burocrata.js | 59940 |
/**
*
* Copyright 2010-2012, Preface Design LTDA (http://www.preface.com.br")
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2010-2011, Preface Design LTDA (http://www.preface.com.br)
* @license MIT License (http://www.op... | mit |
greatwolf/cryptofu | arbitrate.lua | 3687 | local tablex = require 'pl.tablex'
local isempty = function (t)
return not next (t)
end
local compute_arb = function (orderbook1, orderbook2)
--[[ arbitration algorithm
orderbook 1 orderbook 2
buy sell
0.02018989 0.00015972
... | mit |
Killiancorbel/Timvelo | src/TV/CoreBundle/Repository/ResultRepository.php | 239 | <?php
namespace TV\CoreBundle\Repository;
/**
* ResultRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ResultRepository extends \Doctrine\ORM\EntityRepository
{
}
| mit |
acolin/sailsify | lib/sailsify/version.rb | 40 | module Sailsify
VERSION = "0.0.2"
end
| mit |
tinkerspy/Automaton | src/Atm_encoder.hpp | 1063 | #pragma once
#include <Automaton.h>
class Atm_encoder : public Machine {
public:
enum { IDLE, UP, DOWN }; // STATES
enum { EVT_UP, EVT_DOWN, ELSE }; // EVENTS
Atm_encoder( void ) : Machine(){};
Atm_encoder& begin( int pin1, int pin2, int divider = 1 );
Atm_encoder& trace( Stream& stream );
Atm... | mit |
junwang1216/btgk-edms | edms-support/src/test/java/groovy/util/RandomCreditCardNumberGenerator.java | 5274 | package groovy.util;
import java.util.List;
import java.util.Stack;
import java.util.Vector;
/**
* Created by zhaotao on 2016/4/1.
*/
public class RandomCreditCardNumberGenerator {
public static final String[] VISA_PREFIX_LIST = new String[]{"4539", "4556", "4916", "4532", "4929", "40240071", "4485", "4716", "4... | mit |
kwotsin/TensorFlow-ENet | preprocessing.py | 1295 | import tensorflow as tf
def preprocess(image, annotation=None, height=360, width=480):
'''
Performs preprocessing for one set of image and annotation for feeding into network.
NO scaling of any sort will be done as per original paper.
INPUTS:
- image (Tensor): the image input 3D Tensor of shape [h... | mit |
torstenheinrich/lej-order-php | src/LejOrder/IdentityAccess/Domain/Model/Enablement.php | 77 | <?php
namespace LejOrder\IdentityAccess\Domain\Model;
class Enablement
{
}
| mit |
bbender/spark-js-sdk | packages/node_modules/@webex/plugin-phone/src/bool-to-status.js | 624 | /*!
* Copyright (c) 2015-2019 Cisco Systems, Inc. See LICENSE file.
*/
/**
* Helper for converting booleans into an sdp-style direction string
* @param {Boolean} sending
* @param {Boolean} receiving
* @private
* @returns {String}
*/
export default function boolToStatus(sending, receiving) {
if (sending && re... | mit |
Darrow87/phase-0 | week-5/group-research-methods/methods_spec.rb | 1044 | require_relative "my_solution"
# PERSON 4: DELETE MATCHING DATA
describe 'PERSON 4: my_array_deletion_method!' do
let(:i_want_pets) { ["I", "want", 3, "pets", "but", "only", "have", 2 ] }
it "deletes all words that contain an 'a'" do
expect(my_array_deletion_method!(i_want_pets, "a")).to eq ["I", 3, "pets", "... | mit |
fernandoPalaciosGit/PARTNERS | William/algoritmos/Vectorimpar17.java | 387 | package algoritmos�os_algoritmos;
public class Vectorimpar17 {
public static void main(String[] args) {
int[] numeros;
numeros = new int[100];
int num =1;
for (int i = 0; i <numeros.length; i++) {
numeros[i]= num ;
num++;
}
for(int i=numeros.length-1; i>=0; i--){
if((numeros[i]%2)!... | mit |
karim/adila | database/src/main/java/adila/db/gt2ds5830m_gt2ds5830m.java | 233 | // This file is automatically generated.
package adila.db;
/*
* Samsung Galaxy Ace
*
* DEVICE: GT-S5830M
* MODEL: GT-S5830M
*/
final class gt2ds5830m_gt2ds5830m {
public static final String DATA = "Samsung|Galaxy Ace|";
}
| mit |
thefex/Xamarin.FileExplorer | Xamarin.iOS.FileExplorer/Xamarin.iOS.FileExplorer/CustomViews/CollectionViewHeader.cs | 2235 | using System;
using System.IO;
using CoreGraphics;
using Foundation;
using UIKit;
using Xamarin.iOS.FileExplorer.ViewModels;
namespace Xamarin.iOS.FileExplorer.CustomViews
{
public sealed class CollectionViewHeader : UICollectionReusableView
{
private UISegmentedControl segmentedControl;
privat... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/lodash-compat/3.5.0/lodash.js | 131 | version https://git-lfs.github.com/spec/v1
oid sha256:5cce0c9efb8fc8416adbaea7125effa8f8f8c6c7a3c672c011f07f096b87f482
size 397251
| mit |
mstane/algorithms-in-java | src/main/java/org/sm/jdsa/tree/AvlNode.java | 320 | package org.sm.jdsa.tree;
public class AvlNode<E> {
E element;
AvlNode<E> left;
AvlNode<E> right;
int height;
AvlNode(E e) {
this(e, null, null, 0);
}
AvlNode(E e, AvlNode<E> left, AvlNode<E> right, int height) {
this.element = e;
this.left = left;
this.right = right;
this.height = height;
}
}
| mit |
h2non/bimg | version.go | 98 | package bimg
// Version represents the current package semantic version.
const Version = "1.1.6"
| mit |
wefine/reactjs-guide | react-redux-basic/src/component/User.js | 697 | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
const User = ({name}) => {
return (
<div>
<div className="row">
<div className="col-xs-12">
<h1>The User Page</h1>
</div>
</div>
... | mit |