repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
bem/jsd | lib/jsdoc.js | 8452 | var Tags = require('./tags'),
parser = require('./parser'),
inherit = require('inherit');
/**
* API
* @param {Array} plugins
* @returns {Function}
*/
module.exports = function(plugins) {
var jsdoc = new JSDoc(plugins);
return function(str) {
return jsdoc.parse(str);
};
};
var JSDoc = in... | mit |
Gendoria/command-queue | src/Gendoria/CommandQueue/Tests/Console/Command/RunWorkerCommandTest.php | 2669 | <?php
namespace Gendoria\CommandQueue\Tests\Console\Command;
use Gendoria\CommandQueue\Console\Command\RunWorkerCommand;
use Gendoria\CommandQueue\Worker\WorkerRunnerInterface;
use Gendoria\CommandQueue\Worker\WorkerRunnerManager;
use PHPUnit_Framework_TestCase;
use Symfony\Component\Console\Application;
use Symfony\... | mit |
skerit/alchemy | lib/class/error.js | 613 | /**
* The Error class
*
* @constructor
*
* @author Jelle De Loecker <jelle@elevenways.be>
* @since 1.1.0
* @version 1.1.0
*/
const AlchemyError = Function.inherits('Develry.Error', 'Alchemy.Error', function Error(message) {
Error.super.call(this, message);
});
/**
* Return string interpretation of th... | mit |
pebble/pypkjs | pypkjs/timeline/colours.py | 1992 | from __future__ import absolute_import
__author__ = 'katharine'
PEBBLE_COLOURS = {
"black": 0b11000000,
"oxfordblue": 0b11000001,
"dukeblue": 0b11000010,
"blue": 0b11000011,
"darkgreen": 0b11000100,
"midnightgreen": 0b11000101,
"cobaltblue": 0b11000110,
"bluemoon": 0b11000111,
"isla... | mit |
blindpenguin/orangelime | templates/page-full.php | 798 | <?php
/*
Template Name: Full Width
*/
get_header(); ?>
<?php get_template_part( 'parts/featured-image' ); ?>
<div class="row main-content">
<div class="small-12 large-12 columns" role="main">
<?php /* Start loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<article <?php post_class() ?> id="post-<?php th... | mit |
mahendrahirpara/Organization-Architecture | Organization/Hotel720.Platform.Infrastructure/Data/IUnitOfWork.cs | 198 | using System;
namespace Hotel720.Platform.Infrastructure.Data
{
public interface IUnitOfWork : IDisposable
{
void BeginTransaction();
void Commit();
void Rollback();
}
}
| mit |
DaanVanYperen/arktrail | core/src/net/mostlyoriginal/game/system/ui/RouteSystem.java | 4455 | package net.mostlyoriginal.game.system.ui;
import com.artemis.Aspect;
import com.artemis.ComponentMapper;
import com.artemis.Entity;
import com.artemis.annotations.Wire;
import com.artemis.managers.GroupManager;
import com.artemis.managers.TagManager;
import com.artemis.systems.EntityProcessingSystem;
import com.artem... | mit |
bheftye/CEEACCE | CEEACCE/src/gui/interfazdeusuario/CentradorDeVistas.java | 753 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package gui.interfazdeusuario;
import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JFrame;
/**
*
* @author brentheftye
*/
public class CentradorDeVistas {
private static CentradorDeVistas cent... | mit |
aliencube/yarm | src/Yarm.Functions/ResponseMessages.Designer.cs | 4414 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | mit |
kenyonduan/amazon-mws | src/main/java/com/amazonservices/mws/finances/model/ListFinancialEventGroupsResult.java | 5368 | /*******************************************************************************
* Copyright 2009-2017 Amazon Services. All Rights Reserved.
* 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 Licens... | mit |
rbobin/play-json-match | src/main/scala/com/github/rbobin/playjsonmatch/Patterns.scala | 3765 | package com.github.rbobin.playjsonmatch
import com.github.rbobin.playjsonmatch.Errors._
import com.github.rbobin.playjsonmatch.processors._
import com.github.rbobin.playjsonmatch.utils.StringUtils._
import com.github.rbobin.playjsonmatch.utils.{JsMatchException, StringUtils}
import play.api.libs.json.JsValue
import s... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/analytics.js/2.3.18/analytics.js | 131 | version https://git-lfs.github.com/spec/v1
oid sha256:53c26f265964f25566839044d419ac436f49139940501973d6277ef458987a75
size 361085
| mit |
SimoNonnis/Gliffaes | single-offer.php | 1893 | <?php
/*
Template Name Posts: Single Offer
*/
?>
<?php get_header(); ?>
<div <?php post_class('clearfix'); ?> >
<div id="content-inner" role="main">
<section class="page-content page-sidebar sidebar-content clearfix">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="page-sid... | mit |
atsaki/lockgate | lg/lg.go | 1043 | package main
import (
"os"
"github.com/atsaki/lockgate"
"github.com/atsaki/lockgate/cli"
"github.com/atsaki/lockgate/command"
)
var (
app = cli.Application{
Name: "lg",
Help: "CLI for CloudStack",
Version: "0.0.1",
Flags: []cli.Flag{
cli.Flag{
Name: "profile",
Short: 'P',
Help: "P... | mit |
g0rdan/g0rdan.MvvmCross.Plugins | source/Droid/g0rdan.MvvmCross.Plugin.DiskInfo.Droid/Resources/Resource.designer.cs | 1319 | #pragma warning disable 1591
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code ... | mit |
raltamirano/rant | Rant.Core/ScriptExecutionContexts/DefaultScriptExecutionContext.cs | 848 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Rant.Common;
using System.Collections;
namespace Rant.Core.ScriptExecutionContexts
{
/// <summary>
/// Default script execution context. This script execution context is automatically initializated with a cop... | mit |
38elements/feedhoos | feedhoos/finder/views/registered.py | 1905 | # coding: utf-8
import json
from django.http import HttpResponse
import feedparser
from feedhoos.finder.forms.feed import FeedForm
from feedhoos.finder.models.feed import FeedModel
from feedhoos.reader.models.bookmark import BookmarkModel
import datetime
import time
def execute(request):
feedform = FeedForm(reque... | mit |
maurer/tiamat | samples/Juliet/testcases/CWE78_OS_Command_Injection/s02/CWE78_OS_Command_Injection__char_environment_execl_83a.cpp | 2119 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_environment_execl_83a.cpp
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-83a.tmpl.cpp
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: environment Read input from an... | mit |
jmahmood/pytbar | setup.py | 482 | #!/usr/bin/env python
__author__ = 'jawaad'
from distutils.core import setup
setup(name='pytbar',
version='0.300',
description='Library that converts the Japanese Post Office\'s CSV files into a python class. These are '
'thereafter added to a database.',
author='Jawaad Mahmood',
... | mit |
Mastodonic/youtube-player | src/js/helpers.js | 788 | export default {
getEl(selector) {
return document.querySelectorAll(selector);
},
/**
* Mobile & Tablet Detection
* @return {Boolean}
*/
isMobile: {
Android() {
return navigator.userAgent.match(/Android/i);
},
BlackBerry() {
return ... | mit |
adam-boduch/coyote | app/Services/Media/Filters/Logo.php | 204 | <?php
namespace Coyote\Services\Media\Filters;
class Logo extends Thumbnail
{
/**
* @var int
*/
protected $width = 140;
/**
* @var int
*/
protected $height = 140;
}
| mit |
rekyyang/ArtificalLiverCloud | node_modules/material-ui/TimePicker/ClockNumber.js | 5143 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... | mit |
sousic/kr.huny | src/main/java/kr/huny/controller/tools/ToolsUserController.java | 1235 | package kr.huny.controller.tools;
import kr.huny.model.db.User;
import kr.huny.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframewor... | mit |
tjmehta/primus-graphql | __browser_tests__/fixtures/mem-db.js | 913 | var EventEmitter = require('events').EventEmitter
var debug = require('debug')('primus-graphql:fixtures:mem-db')
var listenAll = require('listen-all')
var nextUserId = 0
var db = module.exports = {}
db.users = []
db.ee = new EventEmitter()
listenAll(db.ee, function () {
debug('db event', arguments)
})
db.createUs... | mit |
OpenSprites/OpenSprites | public_html/assets/js/spectrum/spectrum.js | 78981 | // Spectrum Colorpicker v1.7.0
// https://github.com/bgrins/spectrum
// Author: Brian Grinstead
// License: MIT
(function (factory) {
"use strict";
if (typeof define === 'function' && define.amd) { // AMD
define(['jquery'], factory);
}
else if (typeof exports == "object" && typeof module == "o... | mit |
EdwardEisenhart/Project_Euler | Problem005/Python/Problem005.py | 738 | from pip._vendor.requests.packages.urllib3.connectionpool import xrange
# Solution to ProjectEuler problem 005 from ProjectEuler.net.
# Calculates the smallest number that is evenly divisible
# by all of the numbers from 1 to 20.
# Created By: Edward Eisenhart
# Created On: Apr-06-2015
# Contact: EdwardEisenhart@Edwar... | mit |
smartquant/SharpQuant.QuantStudio | SharpQuant.QuantStudio/Startup/SplashScreen.cs | 5431 |
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;
namespace QuantStudio.Startup
{
public interface ISplashScreen
{
void SetProgressText(string text);
void CloseThis();
}
public class SplashScreen : Form, ISplashScreen
... | mit |
albsierra/instituto | src/IES2Mares/TutoresBundle/Admin/MateriaAdmin.php | 1491 | <?php
/**
* Created by PhpStorm.
* User: alberto
* Date: 2/02/15
* Time: 20:40
*/
namespace IES2Mares\TutoresBundle\Admin;
use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Form\FormMapper;
class MateriaAdmin ex... | mit |
clarat-org/claradmin | app/concepts/target_audience_filters_offer/create.rb | 549 | # frozen_string_literal: true
class TargetAudienceFiltersOffer::Create < Trailblazer::Operation
step Model(::TargetAudienceFiltersOffer, :new)
step Policy::Pundit(PermissivePolicy, :create?)
step Contract::Build(constant: TargetAudienceFiltersOffer::Contracts::Create)
step Contract::Validate()
step Wrap(::L... | mit |
developerdevice/Vourto | Vourto/vendor/__class/Prop.class.php | 136 | <?php
class Prop
{
static function exec($type, $escope, callable $onsuccess = null){
return new Fn($type, $escope, $onsuccess);
}
} | mit |
se-panfilov/jsvat | lib/es6/lib/countries/czechRepublic.js | 2796 | export const czechRepublic = {
name: 'Czech Republic',
codes: ['CZ', 'CZE', '203'],
calcFn: (vat) => {
const { rules } = czechRepublic;
const { multipliers, additional, lookup } = rules;
if (!additional)
return false;
return (isLegalEntities(vat, multipliers.commo... | mit |
RaoHai/crowdwriting | public/javascripts/storage.js | 4552 | // Setup an empty localStorage or upgrade an existing one
define([
"underscore"
], function(_) {
// Create the file system if not exist
if (localStorage["file.list"] === undefined) {
localStorage["file.list"] = ";";
}
var fileIndexList = _.compact(localStorage["file.list"].split(";"));
// localStorage versi... | mit |
shunobaka/Interapp | Source/Web/Interapp.Web/ViewModels/Account/ForgotViewModel.cs | 239 | namespace Interapp.Web.ViewModels.Account
{
using System.ComponentModel.DataAnnotations;
public class ForgotViewModel
{
[Required]
[Display(Name = "Email")]
public string Email { get; set; }
}
}
| mit |
argentumproject/electrum-arg | plugins/hw_wallet/plugin.py | 2096 | #!/usr/bin/env python2
# -*- mode: python -*-
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2016 The Electrum developers
#
# 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... | mit |
newscloud/n2 | db/migrate/20110916233249_add_profile_image_to_user_profiles.rb | 213 | class AddProfileImageToUserProfiles < ActiveRecord::Migration
def self.up
add_column :user_profiles, :profile_image, :string
end
def self.down
remove_column :user_profiles, :profile_image
end
end
| mit |
brocc0li/Google-Maps-mySQL-PHP-javascript | map.php | 2609 | <?php
include "dbconnect.php";
$sql = "SELECT id, lat, lng, info, address FROM maps";
if ($result = $conn->query($sql)) {
// output data of each row
while($row = $result->fetch_assoc()) {
$lat = $row['lat'];
$lng = $row['lng'];
$info = ... | mit |
TateMedia/pagediff | lib/phantom.js | 10183 | "use strict";
var fs = require('fs');
var system = require('system');
var args = system.args;
var cmd = args[1];
var url = args[2];
var size = [1024, 768];
var verbose = false;
var directories = {
'before' : fs.workingDirectory,
'after' : fs.workingDirectory,
'output' : fs.workingDirec... | mit |
denislevin/webapp-dashboard | app/database/migrations/2015_05_26_072053_area_manager_initialization.php | 2479 | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AreaManagerInitialization extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$role = new \Role ();
$role -> name = 'area-manager';
$role -> save... | mit |
PowerDMS/Owin.Scim | source/_tests/Owin.Scim.Tests/Integration/Groups/Retrieve/when_retrieving_a_group.cs | 1049 | namespace Owin.Scim.Tests.Integration.Groups.Retrieve
{
using System.Net;
using System.Net.Http;
using Machine.Specifications;
using Model.Groups;
using v2.Model;
public class when_retrieving_a_group : using_existing_user_and_group
{
Because of = () =>
{
Respo... | mit |
KristianOellegaard/django-filer | tests/project/settings.py | 752 | #-*- coding: utf-8 -*-
import os
DEBUG = True
PACKAGE_ROOT = os.path.abspath( os.path.join(os.path.dirname(__file__), '../') )
PROJECT_ROOT = os.path.join(PACKAGE_ROOT, 'project')
TMP_ROOT = os.path.abspath( os.path.join(PACKAGE_ROOT, 'tmp') )
DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = os.path.join(TMP_ROOT,'filer_tes... | mit |
gr-jialeiwang/fuelphp_dev | fuel/app/modules/admin/config/routes.php | 83 | <?php
return array(
'_root_' => 'admin/index/index', // The default route
);
| mit |
wmira/react-icons-kit | src/md/ic_text_rotate_up_outline.js | 351 | export const ic_text_rotate_up_outline = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M18 4l-3 3h2v13h2V7h2l-3-3zm-6.2 11.5v-5l2.2-.9V7.5L3 12.25v1.5l11 4.75v-2.1l-2.2-.9zM4.98 13L10 11.13v3.... | mit |
rocachien/neptune-map-finder | src/components/common/table/table-component.js | 3287 | "use strict";
import React, {Component, PropTypes} from "react";
export default class TableComponent extends Component {
renderRow(item, rowIndex) {
const {style, rowStyle, onClick} = this.props;
if (item && item.length>0) {
return (<tr key={rowIndex} style={rowStyle}>
... | mit |
ymyang/node-startup | socket.js | 1333 | /**
* Created by yang on 2015/6/22.
*/
var server = require('http').createServer();
var io = require('socket.io')(server);
var pub = require('redis').createClient(6379, '192.168.1.54');
var sub = require('redis').createClient(6379, '192.168.1.54');
var pchannel = 'channel.user.';
var cacheSockets = {};
io.on('conne... | mit |
biow0lf/eve_online | spec/eve_online/esi/models/moon_spec.rb | 1994 | # frozen_string_literal: true
require "spec_helper"
describe EveOnline::ESI::Models::Moon do
let(:options) { double }
subject { described_class.new(options) }
it { should be_a(EveOnline::ESI::Models::Base) }
describe "#initialize" do
its(:options) { should eq(options) }
end
describe "#as_json" do
... | mit |
richardszalay/helix-publishing-targets | src/tasks/RichardSzalay.Helix.Publishing.Tasks/MergeXmlTransforms.cs | 1566 | using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
using System;
using System.IO;
using System.Linq;
using System.Xml;
namespace RichardSzalay.Helix.Publishing.Tasks
{
public class MergeXmlTransforms : Task
{
[Required]
public ITaskItem[] Transforms { get; set; }
[Requi... | mit |
adnanaziz/epicode | java/src/main/java/com/epi/NormalizedPathnamesTest.java | 2574 | package com.epi;
// @pg_import:4
import com.epi.utils.AbstractTestOptions;
import com.epi.utils.AbstractTestStream;
import com.epi.utils.JsonTestOptions;
import com.epi.utils.TestType;
// @pg_ignore:1
import static com.epi.NormalizedPathnames.shortestEquivalentPath;
public class NormalizedPathnamesTest {
// @pg_ign... | mit |
Python-Tools/pmfp | pmfp/new/utils.py | 2472 | """new模块的通用工具."""
import json
from string import Template
from pathlib import Path
from typing import Dict, Any
from pmfp.const import (
JS_ENV_PATH
)
def template_2_file(path: Path,**kwargs):
"""将模板转换为项目中的文件.
Args:
project_name (str): 项目名
path (Path): 模板文件复制到项目中的地址
"""
if (".py" ... | mit |
thisismyjam/jam-image-filter | jam_image_filter/leaves.py | 948 | import os
import sys
import math
import Image
import ImageOps
import util
import colorsys
import random
def leaves(image):
image = image.convert('RGB')
colours = util.get_dominant_colours(image, 8)
light, dark = [colours[i] for i in random.sample(range(len(colours)), 2)]
layer = Image.open(os.path.dir... | mit |
naoa/activerecord-mysql-comment | lib/activerecord-mysql-comment/active_record/schema_dumper.rb | 1306 | require 'active_record/schema_dumper'
module ActiveRecord
module Mysql
module Comment
module SchemaDumper
private
def table(table, stream)
@types = @types.merge(@connection.options_for_column_spec(table))
super(table, stream)
ensure
@types = @connection... | mit |
Condors/TunisiaMall | vendor/jms/serializer/src/JMS/Serializer/EventDispatcher/LazyEventDispatcher.php | 1560 | <?php
/*
* Copyright 2013 Johannes M. Schmitt <schmittjoh@gmail.com>
*
* 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
*
... | mit |
hiroyuki-seki/hryky-codebase | lib/window/src/window_module.cpp | 2665 | /**
@file window_module.cpp
@brief manages window module.
@author HRYKY
@version $Id: window_module.cpp 375 2014-07-29 04:27:53Z hryky.private@gmail.com $
*/
#include "precompiled.h"
#include "hryky/sdl/sdl_video.h"
#include "hryky/window/window_module.h"
#include "hryky/log/log_defin... | mit |
Orangeyness/RuRu | src/ruru/events/EventService.cpp | 109 | #include "ruru/events/EventService.h"
using namespace RuRu;
EventDelegateHandle_t EventService::NextId = 0;
| mit |
Daynos/node_project | app/routes/index.js | 409 | var express = require('express');
var router = express.Router();
// middleware to use for all requests
router.use(function(req, res, next) {
// console.log('Log test (/routes/index.js)');
next(); // make sure we go to the next routes and don't stop here
});
/* GET home page. */
router.get('/', function(req, r... | mit |
madgik/exareme | Exareme-Docker/src/exareme/exareme-tools/madis/src/functions/row/datasets.py | 564 | # coding: utf-8
import functions
def datasets(*args):
if args[0] == "0":
raise functions.OperatorError("DATASET", "Dataset does not exist")
else:
return 1
datasets.registered = True
if not ('.' in __name__):
"""
This is needed to be able to test the function, put it at the end of ev... | mit |
youxidou/game-php-sdk | src/Support/Str.php | 4194 | <?php namespace Yxd\Game\Support;
use Yxd\Game\Core\Exceptions\RuntimeException;
class Str
{
/**
* The cache of snake-cased words.
*
* @var array
*/
protected static $snakeCache = [];
/**
* The cache of camel-cased words.
*
* @var array
*/
protected static $cam... | mit |
sergeche/grunt-frontend | tasks/lib/utils.js | 4313 | var fs = require('fs');
var path = require('path');
var crypto = require('crypto');
var crc32 = require('./crc32');
var _ = require('underscore');
var filter = require('./hash-filter');
function padNumber(num) {
return (num < 10 ? '0' : '') + num;
}
function FileInfo(file, options) {
this._path = file;
this.absPat... | mit |
TyrfingX/TyrLib | legacy/TyrLib2/src/com/tyrlib2/math/IMatrixImpl.java | 1116 | package com.tyrlib2.math;
public interface IMatrixImpl {
public void setIdentityM(float[] m, int offset);
public void scaleM(float[] m, int offset, float scaleX, float scaleY, float scaleZ);
public void multiplyMM(float[] result, int offsetResult, float[] lhs, int offsetLeft, float[] rhs, int offsetRight);
p... | mit |
JHKennedy4/nqr-client | jspm_packages/npm/core-js@1.2.5/client/core.min.js | 93082 | /* */
"format cjs";
(function(process) {
!function(b, c, a) {
"use strict";
!function(b) {
function __webpack_require__(c) {
if (a[c])
return a[c].exports;
var d = a[c] = {
exports: {},
id: c,
loaded: !1
};
return b[c].call(d.expor... | mit |
ashnewport/elasticsearch | kibana-5.0.2-linux-x86_64/src/core_plugins/timelion/public/directives/fullscreen/fullscreen.js | 548 | var _ = require('lodash');
var $ = require('jquery');
require('angularSortableView');
require('plugins/timelion/directives/chart/chart');
require('plugins/timelion/directives/timelion_grid');
var app = require('ui/modules').get('apps/timelion', ['angular-sortable-view']);
var html = require('./fullscreen.html');
app... | mit |
SuvanL/delet | node_modules/komada/functions/runMessageMonitors.js | 287 | module.exports = (client, msg) => {
client.messageMonitors.forEach((monit) => {
if (monit.conf.enabled) {
if (monit.conf.ignoreBots && msg.author.bot) return;
if (monit.conf.ignoreSelf && client.user === msg.author) return;
monit.run(client, msg);
}
});
};
| mit |
arivera12/cbooks | templates/purity_iii/tpls/blocks/mainbody/one-sidebar-right.php | 897 | <?php
/**
* @package T3 Blank
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Mainbody 2 columns: content - sidebar
*/
?>
<div id="t3-mainbody" class="col-xs-12 ... | mit |
edwardmeng/wheatech.ServiceModel | src/Windsor/ServiceBridge.Windsor.Interception/Properties/AssemblyInfo.cs | 172 | using System.Reflection;
[assembly: AssemblyTitle("ServiceBridge.Windsor.Interception")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
| mit |
Assembly-WebCrew/contentful-web | src/app/content-blocks/block-news/block-news.component.spec.ts | 1022 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { BlockNewsComponent } from './block-news.component';
import { ContentfulService } from '../../core/contentful.service';
import { RouterTestingModule } from '@angular/router/testing';
describe('BlockNewsComponent', () => {
let componen... | mit |
npmcomponent/nbubna-Eventi | src/declare.js | 4091 | _.parsers.unshift([/=>(\w+)$/, function(event, handler, alias) {
handler.alias = alias;
if (handler !== event) {
handler.data = handler.data || [];
handler.data.push(alias);
}
}]);
if (document) {
_.init = function init() {
var nodes = document.querySelectorAll('[data-eventi]');
... | mit |
zedoul/AnomalyDetection | temp/data_loader.py | 616 | # -*- coding: utf-8 -*-
"""
http://www.astroml.org/sklearn_tutorial/dimensionality_reduction.html
"""
print (__doc__)
import cPickle as pickle
import nslkdd.preprocessing as preprocessing
if __name__ == '__main__':
import time
start = time.time()
datasize = 1000
print "preprocessing data..."
df, ... | mit |
mingyuchoo/mg-react | client/components/layout/Aside.js | 241 | import React, { Component, PropTypes } from 'react'
class Aside extends Component {
constructor(props) {
super(props)
}
render() {
return (
<aside>
<h3>Aside</h3>
</aside>
)
}
}
export default Aside
| mit |
ksakuntanak/buffohero_cms | fuel/app/views/help/index.php | 2597 | <?php if (count($helps)){ ?>
<table class="table table-striped">
<thead>
<tr>
<th>ID</th>
<th>หัวข้อช่วยเหลือ</th>
<th>หมวดหมู่</th>
<th>วันที่เขียน</th>
<th>สถานะ</th>
<th> </th>
</t... | mit |
travco/postcss-secmodify | index.js | 3744 | 'use strict';
var postcss = require('postcss');
// /*DEBUG*/ var appendout = require('fs').appendFileSync;
module.exports = postcss.plugin('postcss-secmodify', function secModify(SMI) {
return function(css, result) {
//Nothing to replace with? Bug out!
if (!SMI.hasOwnProperty('rString')) {
result.wa... | mit |
rodislav/Mister_JavaBean_Lessons | src/junior/calculator/App.java | 1924 | package junior.calculator;
public class App {
// let's create a application that behaves like a real one
// let's see what parts do we have in real app
// 1. the app itself (App.java)
// 2. display of the result or messages
// 3. the input or the keypad
// 4. the calculation unit, that does the calc... | mit |
wbyoung/yahoo-finance-stream | test/stream_tests.js | 8579 | 'use strict';
var _ = require('lodash');
var chai = require('chai');
var expect = chai.expect;
var util = require('util');
var Stream = require('..');
var sinon = require('sinon');
chai.use(require('sinon-chai'));
// fake endpoint app
var app = require('./fakes/endpoint'), server;
var port = 23493;
var endpoint = uti... | mit |
Remuv/corto_connectors | mongo/driver/cxx/mongocxx/src/options/update.cpp | 1416 | // Copyright 2014 MongoDB Inc.
//
// 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 applicable law or agreed to in wri... | mit |
mustaphakd/brazza-ville | source/brzframe/package.js | 79 | enyo.depends(
"parts",
//"scriptloader.js",
"externlibs",
"brazzaApp.js"
); | mit |
jdt/ambushift | Build/Puppet/dev/modules/composer/lib/puppet/parser/functions/create_config_hash.rb | 1291 | def create_hash(value, user, ensure_entry, entry, home_dir)
hash = {
:user => user,
:ensure => ensure_entry,
:entry => entry
}
unless value.nil?
hash[:value] = value
end
unless home_dir.empty?
hash[:custom_home_dir] = home_dir
end
hash
end
module Puppet::Parser::Functions
newf... | mit |
dpenkova/Simple-Project-Management | SimpleProjectManagement/SPM.Web/Controllers/AccountController.cs | 17355 | namespace SPM.Web.Controllers
{
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using SPM.Models;
using SPM.Web.ViewModels.Account;
... | mit |
NetOfficeFw/NetOffice | Source/PowerPoint/DispatchInterfaces/FileDialogExtension.cs | 5084 | using System;
using NetRuntimeSystem = System;
using System.ComponentModel;
using NetOffice.Attributes;
namespace NetOffice.PowerPointApi
{
/// <summary>
/// DispatchInterface FileDialogExtension
/// SupportByVersion PowerPoint, 9
/// </summary>
[SupportByVersion("PowerPoint", 9)]
[EntityType(EntityType.IsDisp... | mit |
wccrawford/LD27 | Assets/Scripts/LockCursor.cs | 342 | using UnityEngine;
using System.Collections;
public class LockCursor : MonoBehaviour {
void Start() {
Screen.lockCursor = true;
}
// Update is called once per frame
void Update () {
if(Input.GetKeyDown("escape")) {
Screen.lockCursor = false;
}
if(Input.GetMouseButtonDown(0)) {
Screen.lockCurs... | mit |
java-hz/datacollector | src/in/foobars/datacollector/helpers/SharedPreferenceHelper.java | 3201 | package in.foobars.datacollector.helpers;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Created by harsh on 27/10/17.
*/
public class SharedPreferenceHelper {
private final static String PREF_FILE = "IGNITE";
/**
* Set a string shared preference
*
* @param ... | mit |
minhjemmesiden/Wakfusharp | Utilities/Crypto/RSA.cs | 4726 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
using System.IO;
namespace WakSharp.Utilities.Crypto
{
public class RSA
{
public class RSAProvider
{
private RSACryptoServiceProvider _rsa { get; set; }
... | mit |
lafayette/JBTT | application/app/tracker/util/bbcode/codes/H6.java | 315 | package tracker.util.bbcode.codes;
import tracker.util.bbcode.AbstractCode;
public class H6 extends AbstractCode {
public String[] getTagNames() {
return new String[] { "h6" };
}
public String getOpenTagHtml(String attribute) {
return "<h6>";
}
public String getCloseTagHtml() {
return "</h6>";
}
}
| mit |
akkirilov/SoftUniProject | 07_OOP_Advanced/08_EnumerationsAndAnnotations_ex/src/p10_InfernoInfinity/entities/WeaponBase.java | 3133 | package p10_InfernoInfinity.entities;
import p10_InfernoInfinity.enums.Gem;
public abstract class WeaponBase implements Weapon, Comparable<Weapon> {
private String name;
private int minDamage;
private int maxDamage;
private int numberOfSockets;
private Gem[] gems;
private int strengthBonus;
private int agili... | mit |
NERDDISCO/VisionLord | src/reducers/app.js | 786 | import {
UPDATE_PAGE,
UPDATE_OFFLINE,
OPEN_SNACKBAR,
CLOSE_SNACKBAR,
UPDATE_DRAWER_STATE
} from '../actions/app.js'
const app = (state = {drawerOpened: false}, action) => {
switch (action.type) {
case UPDATE_PAGE:
return {
...state,
page: action.page,
entityId: action.enti... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/xlsx/0.7.9/xlsx.js | 131 | version https://git-lfs.github.com/spec/v1
oid sha256:34301ad983ebd397d86268a18727b768142d019126e2af62a6e9293823180b4e
size 197717
| mit |
gabornemeth/StravaSharp | src/Samples/Sample.Core/ViewModels/MainViewModel.cs | 1998 | using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using StravaSharp;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Threading.Tasks;
namespace Sample.ViewModels
{
public class MainViewModel : ViewModelBase
{
... | mit |
josetonyp/erems | spec/spec_helper.rb | 611 | require 'simplecov'
require 'pry'
module SimpleCov::Configuration
def clean_filters
@filters = []
end
end
SimpleCov.configure do
clean_filters
load_adapter 'test_frameworks'
end
ENV["COVERAGE"] && SimpleCov.start do
add_filter "/.rvm/"
end
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib... | mit |
sebastianjonasson/svdfeed | webroot/test.php | 711 | <?php
/*
*
* Include config
*/
require __DIR__.'/config.php';
/*
*
* Initialize frontcontroller intances
*/
$di = new \Anax\DI\CDIFactoryDefault();
$app = new \Anax\Kernel\CAnax($di);
/*
*
* Theme configuration
*/
$app->theme->configure(ANAX_APP_PATH . 'config/theme.php');
/*
*
* Main route
*/
$ap... | mit |
ganlanshu0211/captcha | src/Handlers/SetHandler.php | 1749 | <?php
/**
* This file is part of Notadd.
*
* @author TwilRoad <269044570@qq.com>
* @copyright (c) 2017, iBenchu.org
* @datetime 2017-02-23 19:45
*/
namespace Notadd\Captcha\Handlers;
use Illuminate\Container\Container;
use Notadd\Foundation\Passport\Abstracts\SetHandler as AbstractSetHandler;
use Notadd\Foundati... | mit |
sarunint/angular | packages/compiler-cli/ngcc/test/rendering/renderer_spec.ts | 20881 | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import MagicString from 'magic-string';
import * as ts from 'typescript';
import {fromObject, generateMapFileComment,... | mit |
Jheysoon/lcis | application/views/audit/account_list.php | 7087 | <div class="col-md-3"></div>
<div class="col-md-9 body-container">
<div class="panel p-body">
<div class="panel-heading search">
<div class="col-md-6">
<h4>List of Accounts</h4>
</div>
</div>
<div class="form-group">
<div class="panel-body">
<div class="col-md-4">
<form class="fo... | mit |
giskou/Optimization | src/libs/functions/cooling/CoolingSchedule.java | 202 | /**
*
*/
package libs.functions.cooling;
import java.util.LinkedList;
import libs.Point;
/**
* @author iskoulis
*
*/
public interface CoolingSchedule {
public double U(LinkedList<Point> z);
}
| mit |
RectorPHP/Rector | vendor/symfony/http-foundation/File/Exception/FileException.php | 486 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RectorPrefix20210615\Symfony\Component\HttpFoundation\File\Exception;
/*... | mit |
nicroto/restr | test/restr-loader-test.js | 2516 | var ExpressAppMock = function() {};
ExpressAppMock.prototype = {
map: {},
post: function(route, callback) { this.mapRoute("post", route, callback); },
get: function(route, callback) { this.mapRoute("get", route, callback); },
put: function(route, callback) { this.mapRoute("put", route, callback); },
delete: funct... | mit |
berryma4/diirt | pvmanager/datasource-formula/src/test/java/org/diirt/datasource/formula/vtable/VTableFunctionSetTest.java | 12677 | /**
* Copyright (C) 2010-14 diirt developers. See COPYRIGHT.TXT
* All rights reserved. Use is subject to license terms. See LICENSE.TXT
*/
package org.diirt.datasource.formula.vtable;
import java.util.Arrays;
import org.diirt.datasource.formula.FormulaFunctionSet;
import org.diirt.datasource.formula.FunctionTester;... | mit |
caseyscarborough/brewerydb-api | src/main/java/com/brewerydb/api/request/ingredient/IngredientRequest.java | 204 | package com.brewerydb.api.request.ingredient;
public class IngredientRequest {
public static GetIngredientsRequest.Builder getIngredients() {
return GetIngredientsRequest.builder();
}
}
| mit |
activecollab/authentication | src/Authorizer/RequestAware/RequestAware.php | 901 | <?php
/*
* This file is part of the Active Collab Authentication project.
*
* (c) A51 doo <info@activecollab.com>. All rights reserved.
*/
namespace ActiveCollab\Authentication\Authorizer\RequestAware;
use ActiveCollab\Authentication\Authorizer\RequestProcessor\RequestProcessorInterface;
/**
* @package ActiveC... | mit |
senlinzhan/soke | src/EventLoop.hpp | 1092 | #ifndef EVENTLOOP_H
#define EVENTLOOP_H
#include "Epoll.hpp"
#include <queue>
#include <memory>
#include <thread>
#include <vector>
#include <unordered_map>
#include <unordered_set>
namespace soke
{
class Channel;
class EventLoop
{
public:
using Task = std::function<void ()>;
... | mit |
phisiart/C-Compiler | Parser/Expressions.cs | 16153 | using System.Collections.Immutable;
using AST;
using static Parsing.ParserCombinator;
using Attribute = AST.Attribute;
namespace Parsing {
public partial class CParsers {
public static NamedParser<Expr>
Expression { get; } = Parser.Create<Expr>("expression");
public static NamedParser... | mit |
BookFrank/CodePlay | codeplay-design-pattern/src/main/java/com/tazine/design/strategy/YellowDuck.java | 403 | package com.tazine.design.strategy;
import com.tazine.design.strategy.family.FlyingWithWings;
/**
* 大黄鸭
*
* @author frank
* @date 2018/01/15
*/
public class YellowDuck extends Duck {
public YellowDuck() {
super();
super.setFlyingStrategy(new FlyingWithWings());
}
@Override
prote... | mit |
nicholasyang/MeleeStats | app/src/main/java/com/nicholasyang/meleestats/NemesisOverallFragment.java | 4145 | package com.nicholasyang.meleestats;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.content.ContextCompat;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.wid... | mit |
stuliveshere/SeismicProcessing2015 | prac2_student_working/02.0_brute_vels.py | 780 | import toolbox
import numpy as np
import pylab
data, params = toolbox.initialise('prepro.su')
cdps = np.unique(data['cdp'])
#recreate original velocity field
vels = {}
vels[753]= (2456.0, 0.153), (2772.1, 0.413), (3003.2, 0.612), (3076.1, 0.704), (3270.7, 1.056), (3367.9, 1.668), (3538.2, 2.204), (3671.9, 3.566), (3... | mit |