repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
who/symfony | tests/Symfony/Tests/Component/Form/Extension/Core/Type/FieldTypeTest.php | 6503 | <?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 Symfony\Tests\Component\Form\Extension\Core\Type;
require_once __DIR__ ... | mit |
Karasiq/scalajs-highcharts | src/main/scala/com/highmaps/config/PlotOptionsAreaStatesHoverMarkerStatesHover.scala | 6323 | /**
* Automatically generated file. Please do not edit.
* @author Highcharts Config Generator by Karasiq
* @see [[http://api.highcharts.com/highmaps]]
*/
package com.highmaps.config
import scalajs.js, js.`|`
import com.highcharts.CleanJsObject
import com.highcharts.HighchartsUtils._
/**
* @note JavaScript n... | mit |
mnichols/ankh | lib/registrations.js | 3469 | 'use strict';
var DependencyGraph = require('./dependency-graph')
var warn = console.warn.bind(console)
,error = console.error.bind(console)
,debug = console.log.bind(console)
;
module.exports = Registrations
function assert(pred, msg) {
if(pred){
return
}
throw new Error(msg)
}
//simply... | mit |
marvinhagemeister/kiki | src/config/utils.js | 1507 | const path = require('path');
const chalk = require('chalk');
const emitter = require('../emitter');
function resolveApp(relativePath) {
return path.resolve(relativePath);
}
function logMissingSection(name) {
console.log(chalk.red(name + ' src or dest path not specified'));
console.log();
console.log(chalk.di... | mit |
crowdtap/oauth2 | lib/oauth2/strategy/web_server.rb | 1674 | require 'multi_json'
module OAuth2
module Strategy
class WebServer < Base
def authorize_params(options = {}) #:nodoc:
super(options).merge('type' => 'web_server')
end
# Retrieve an access token given the specified validation code.
# Note that you must also provide a <tt>:redirect... | mit |
rodrigo2000/googleTransitUI | resources/js/plugins/visualize/jquery.visualize.js | 25781 | /**
* --------------------------------------------------------------------
* jQuery-Plugin "visualize"
* by Scott Jehl, scott@filamentgroup.com
* http://www.filamentgroup.com
* Copyright (c) 2009 Filament Group
* Dual licensed under the MIT (filamentgroup.com/examples/mit-license.txt) and GPL (filamentgrou... | mit |
dantin/leetcode-solutions | java/PathSumIII.java | 1268 | public class PathSumIII {
public int pathSum(TreeNode root, int sum) {
if (root == null) return 0;
return dfs(root, sum) + pathSum(root.left, sum) + pathSum(root.right, sum);
}
private int dfs(TreeNode root, int sum) {
if (root == null) return 0;
int res = 0;
if(sum... | mit |
jbfp/SavannahGame | src/SavannahGame.Forms/Properties/Settings.Designer.cs | 1075 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34014
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | mit |
WarHub/wham | src/WarHub.ArmouryModel.Source/ContainerEntryBaseCore.cs | 909 | using System.Collections.Immutable;
using System.Xml.Serialization;
namespace WarHub.ArmouryModel.Source
{
[WhamNodeCore]
public abstract partial record ContainerEntryBaseCore : EntryBaseCore
{
[XmlArray("constraints")]
public ImmutableArray<ConstraintCore> Constraints { get; init; } = Imm... | mit |
smolyakoff/conreign | src/Conreign.Client.SignalR/Proxies/PlayerProxy.cs | 3419 | using System;
using System.Threading.Tasks;
using Conreign.Client.Contracts.Messages;
using Conreign.Contracts.Gameplay;
using Conreign.Contracts.Gameplay.Data;
namespace Conreign.Client.SignalR.Proxies
{
internal class PlayerProxy : IPlayer
{
private readonly SignalRSender _context;
private re... | mit |
lgollut/material-ui | packages/material-ui-icons/src/DonutSmallRounded.js | 487 | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M11 3.18v17.64c0 .64-.59 1.12-1.21.98C5.32 20.8 2 16.79 2 12s3.32-8.8 7.79-9.8c.62-.14 1.21.34 1.21.98zm2.03 0v6.81c0 .55.45 1 1 1h6.79c.64 0 1.12-.59.98-1.22-.85-3.76-3.8-6.72-7.55-7.57-.63-.14-... | mit |
sars/appetini-front | src/helpers/ordersDateHelper.js | 277 | import moment from 'moment';
export const getParsedDate = (date) => {
return new Date(JSON.parse(date));
};
export const getParams = (location) => {
if (location.query.date) {
return {eq_date: location.query.date};
}
return {gt_date: moment().utc().format()};
};
| mit |
stateless-systems/fundry | lib/rack/test/app.rb | 1728 | require 'rack'
require 'thin'
require 'timeout'
module Rack
module Test
class App
# Shane's attempt to run a Rack app server instance in the same process as the a 'work' block. Came about because
# you can't see an unsaved DB transaction inside the Rack app if it happens in another process.
#
... | mit |
ambicaster/jquery-ui-stateholdable | jquery.ui.stateholdable.js | 6939 | (function($){
$.widget('customui.stateholdable', {
options: {
initialState: null,
persistent: true,
usingBrowserHistory: true,
extendingTop: true
},
_create: function() {
this.prepared = {},
this.state = [null],
this.top = null;
this.option(this.options);
var self = this;
this.... | mit |
jefmsmit/gdshowsdb | lib/gdshowsdb/db/migrations/009_import_shows.rb | 859 | require 'yaml'
require 'securerandom'
require 'gdshowsdb'
class ImportShows < ActiveRecord::Migration[5.0]
include Gdshowsdb
def up
(1965..1995).each do |year|
create_shows(year)
create_sets(year)
create_songs(year)
end
end
def down
Song.delete_all
ShowSet.delete_all
Show.delete_all
end
... | mit |
GW2Treasures/gw2api | src/V2/Endpoint/Story/StoryEndpoint.php | 664 | <?php
namespace GW2Treasures\GW2Api\V2\Endpoint\Story;
use GW2Treasures\GW2Api\V2\Bulk\BulkEndpoint;
use GW2Treasures\GW2Api\V2\Bulk\IBulkEndpoint;
use GW2Treasures\GW2Api\V2\Endpoint;
use GW2Treasures\GW2Api\V2\Localization\ILocalizedEndpoint;
use GW2Treasures\GW2Api\V2\Localization\LocalizedEndpoint;
class Story... | mit |
JakubLukas/LumixEngine | src/renderer/renderer.cpp | 32675 | #include "renderer.h"
#include "engine/array.h"
#include "engine/command_line_parser.h"
#include "engine/crc32.h"
#include "engine/debug.h"
#include "engine/engine.h"
#include "engine/log.h"
#include "engine/atomic.h"
#include "engine/job_system.h"
#include "engine/sync.h"
#include "engine/thread.h"
#include "engine/o... | mit |
virtualstaticvoid/human_faktor | test/integration/tenant/employee_mailer_test.rb | 376 | require 'test_helper'
module Tenant
class EmployeeMailerTest < ActionDispatch::IntegrationTest
fixtures :all
test "should perform work" do
employee = employees(:employee)
EmployeeMailer.new(employee.id).perform()
# TODO: assert that an email was sent
assert !ActionMail... | mit |
dillonhafer/Floor-Product-CMS | config/initializers/devise.rb | 12593 | require "omniauth-facebook"
# Use this hook to configure devise mailer, warden hooks and so forth.
# Many of these configuration options can be set straight in your model.
Devise.setup do |config|
# ==> Mailer Configuration
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will ... | mit |
uq-eresearch/dataspace | data-registry-webapp/src/main/webapp/js/solr/core/AbstractFacetWidget.js | 9595 | // $Id$
/**
* Baseclass for all facet widgets.
*
* @class AbstractFacetWidget
* @augments AjaxSolr.AbstractWidget
*/
AjaxSolr.AbstractFacetWidget = AjaxSolr.AbstractWidget.extend(
/** @lends AjaxSolr.AbstractFacetWidget.prototype */
{
/**
* The field to facet on.
*
* @field
... | mit |
gzulian/inacap_mype | application/controllers/Consejero.php | 10356 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Consejero extends CI_Controller {
public function __construct() {
parent::__construct();
if($this->session->userdata('logged_in')){
$this->layout->setLayout('MasterPage',false);
$this->load->model('Asiste... | mit |
sourabh4559/girvi-account | src/girvi-account/public/core/scripts/managedViewBase.js | 242 | import Backbone from 'backbone';
class ManagedViewBase extends Backbone.View {
constructor(options) {
super(options);
this.manage = true;
}
manage() {
return true;
}
}
export
default ManagedViewBase; | mit |
mattlewis92/angular2-bootstrap-confirm | projects/angular-confirmation-popover/src/test.ts | 935 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone';
import 'zone.js/dist/zone-testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting,
} from '@angular/platform-browse... | mit |
Azure/azure-sdk-for-ruby | management/azure_mgmt_reservations/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/applied_scope_type.rb | 382 | # encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Reservations::Mgmt::V2018_06_01_preview
module Models
#
# Defines values for AppliedScopeType
#
module AppliedScopeType
... | mit |
schmurfy/eetee | lib/eetee/reporters/console.rb | 3005 | # encoding: utf-8
require 'term/ansicolor'
module EEtee
module Reporters
##
# Advanced text output designed to be used in an open
# console.
#
class Console < Reporter
Color = Term::ANSIColor
def around_context(ctx, &block)
puts "" if @indent == 0
# iputs... | mit |
robotex82/ecm_cms | spec/routing/page_spec.rb | 556 | require 'spec_helper'
describe "routing to pages" do
it "routes /foo to ecm/cms/page#respond" do
expect(:get => "/en/foo").to route_to(
:i18n_locale => "en",
:controller => "ecm/cms/page",
:action => "respond",
:page => "foo"
)
end
it "routes a deeply nested page to ecm/cms/page#... | mit |
jirutka/gitlabhq | app/controllers/import/manifest_controller.rb | 2373 | class Import::ManifestController < Import::BaseController
before_action :whitelist_query_limiting, only: [:create]
before_action :verify_import_enabled
before_action :ensure_import_vars, only: [:create, :status]
def new
end
def status
@already_added_projects = find_already_added_projects
already_a... | mit |
Baasic/baasic-sdk-angularjs | src/value-set/services/valueSetService.js | 7555 | /**
* @module baasicValueSetService
* @description Baasic Value Set Service provides an easy way to consume Baasic Value Set REST end-points.
*/
(function (angular, module, undefined) {
"use strict";
module.service("baasicValueSetService", ["baasicApp",
function (baasicApps) {
var baasicApp = baasicA... | mit |
garfix/nli-go | lib/parse/Chart.go | 3337 | package parse
import (
"nli-go/lib/mentalese"
)
type chart struct {
rootCategory string
rootVariables []string
words []string
states [][]chartState
advanced map[string][][]chartState
completed map[string][][]chartState
}
func NewChart(words []string, rootCategory string, rootVariables... | mit |
stas-vilchik/bdd-ml | data/4782.js | 39 | expect(getType(true)).toBe("boolean");
| mit |
adtac/commento | api/smtp_email_notification.go | 1998 | package main
import (
"bytes"
"fmt"
ht "html/template"
"net/smtp"
"os"
tt "text/template"
)
type emailNotificationPlugs struct {
Origin string
Kind string
UnsubscribeSecretHex string
Domain string
Path string
CommentHex string
Commente... | mit |
webmonger/Screenmedia.JazzHands | src/Screenmedia.JazzHands.Droid/ColorAnimation.cs | 2050 | using System;
using Android.Views;
using System.Linq;
using Android.Graphics;
using Screenmedia.JazzHands.Core;
namespace Screenmedia.JazzHands.Droid
{
public class ColorAnimation : Animation
{
protected View View;
public ColorAnimation (View view) : base()
{
View = view;
}
public override void Ani... | mit |
switch-education/pxt | pxtlib/emitter/assembler.ts | 48258 | /* tslint:disable:no-conditional-assignment */
// TODO: add a macro facility to make 8-bit assembly easier?
namespace ts.pxtc.assembler {
export let debug = false
export interface InlineError {
scope: string;
message: string;
line: string;
lineNo: number;
coremsg: stri... | mit |
tyh24647/Miami1984 | Assets/UFPS/Base/Scripts/Core/Motion/vp_Perlin.cs | 16021 | /////////////////////////////////////////////////////////////////////////////////
//
// vp_Perlin.cs
//
// description: this is a modified version of the perlin noise class from
// the official Unity 'Procedural Examples' at the following URL:
// http://unity3d.com/support/resources/example-projects/proce... | mit |
webpay/slack-anywhere | server.hpp | 800 | #ifndef _SERVER_H_
#define _SERVER_H_
#include <boost/network/include/http/server.hpp>
#include <string>
#include "env.hpp"
class server : public boost::enable_shared_from_this<server> {
public:
explicit server(const env& env) : env_(env) {}
void run();
private:
static const int n_workers = 12;
const en... | mit |
przemczan/puszek-server-admin | src/Puszek/PuszekAdmin/AdminBundle/Resources/public/js/puszek/plugin/angular/lib/PuszekLogger.js | 316 | angular.module('puszek')
.factory('PuszekLogger', function PuszekLoggerFactory($log) {
return {
log: function() {
var args = [].slice.call(arguments);
args.unshift('Puszek:');
return $log.log.apply($log, args);
}
};
});
| mit |
arcanoz/child-2.0 | src/init.cpp | 45156 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "txdb.h"
#include "walletdb.h"
#include "bitcoinrpc.h"
#include "net.h"
#... | mit |
Metazion/MetazionClient | Classes/Net/PacketHandlerGC.hpp | 489 | #ifndef _CLIENT_PACKETHANDLERGC_HPP_
#define _CLIENT_PACKETHANDLERGC_HPP_
#include "Net/Sockets.hpp"
class PacketHandlerGC {
public:
PacketHandlerGC() {}
~PacketHandlerGC() {}
public:
void Handle(int command, const void* data, int length);
private:
void HandleConnected(const void* data, int length... | mit |
matchboxmobile/bluetooth-win10-client-plugin | example/HRMonitor/HRMonitor/HeartRateMonitor/HeartRate/BleDeviceInformationService.cs | 3934 | /******************************************************************************
The MIT License (MIT)
Copyright (c) 2016 Matchbox Mobile Limited <info@matchboxmobile.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), ... | mit |
St4inl3ss/ticketbeast | app/Concert.php | 1705 | <?php
namespace App;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
/**
* Class Concert
*
* @method static Builder published()
* @property-read Carbon date
* @property-read int ticket_price
*
* @pa... | mit |
xiaost/jsonport | errors.go | 434 | package jsonport
import "errors"
var (
errArrayIndex = errors.New("not array index")
errMemberName = errors.New("not member name")
errLen = errors.New("not supported Len()")
errKeyType = errors.New("key type err")
errJSONEOF = errors.New("JSON: unexpect EOF")
errArrayEOF = errors.New("ARRAY: unexp... | mit |
jan-molak/jenkins-build-monitor-plugin | build-monitor-acceptance/src/main/java/net/serenitybdd/screenplay/jenkins/targets/Setting.java | 844 | package net.serenitybdd.screenplay.jenkins.targets;
import net.serenitybdd.screenplay.targets.Target;
import static java.lang.String.format;
public class Setting {
public static Target defining(String name) {
return Target.the(format("the '%s' field", name))
.locatedBy(lastElementMatchi... | mit |
scidash/sciunit | sciunit/unit_test/active.py | 588 | """
All active unit tests for SciUnit. This module is the default target of
for testing in `__main__.py`. Modify this file if you want to add or remove
tests located in other modules.
"""
from .backend_tests import *
from .base_tests import *
from .command_line_tests import *
from .config_tests import *
from .converte... | mit |
telmanagababov/js-patterns-examples | command/src/action/SortAction.js | 254 | function SortAction(ticketsPanel, sortType) {
this.ticketsPanel = ticketsPanel;
this.sortType = sortType;
}
SortAction.prototype = Object.create(IAction.prototype);
SortAction.prototype.execute = function() {
this.ticketsPanel.sort(this.sortType);
}; | mit |
tienvx/mbt-bundle | src/Resources/translations/validators.en.php | 974 | <?php
return [
'mbt' => [
'model' => [
'places_invalid' => 'Places are invalid.',
'missing_start_transition' => 'Missing start transition.',
'too_many_start_transitions' => 'There must be only one start transition.',
'missing_to_places' => 'You must select at... | mit |
JaySon-Huang/misc | leetoj/226.py | 568 | # Invert Binary Tree
# https://leetcode.com/problems/invert-binary-tree/
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def invertTree(self, root):
"""
... | mit |
goliatone/gcollection | examples/main.js | 8253 | /*global define:true requirejs:true*/
/* jshint strict: false */
requirejs.config({
paths: {
'jquery': 'jquery/jquery',
'gpub': 'gpub/gpub',
'extend': 'gextend/extend',
'gcollection': 'gcollection'
}
});
define(['gcollection', 'gpub', 'jquery'], function(GCollection, GPub, $) {
... | mit |
codefoundries/UniversalRelayBoilerplate | deployment/units/rb-example-translaticiarum-webapp/routeAppFrameTranslaticiarum.js | 1550 | "use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
var _reactCodeSplitting = _interopRequireDefault(require("react-code-splitting"));
var _reactRelay = require("react-relay");
var _react = _interopRequireDefault(require("react"));
var _Route = _interopRequireDefault(re... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/howler/1.1.23/howler.min.js | 130 | version https://git-lfs.github.com/spec/v1
oid sha256:60c41affc17a88924434e09a10a6216b11fe4ed338d51bb6d656ed6421ce3936
size 11839
| mit |
CslaGenFork/CslaGenFork | tags/V4-0-1/Solutions/DBSchemaInfo/MsSql/SqlCatalog.cs | 7124 | using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using DBSchemaInfo.Base;
using System.Collections;
namespace DBSchemaInfo.MsSql
{
public class SqlCatalog : Base.InformationSchemaCatalogBase
{
public SqlCatalog(string cnStri... | mit |
ygzheng9/PITools | app/helpers/level_types_helper.rb | 28 | module LevelTypesHelper
end
| mit |
mscoccimarro/aero-app | relation_schema_gen/js/insert-tuple.js | 6416 | var select = document.querySelector('.rel-schema');
var keyFK;
var fkMap = {};
xm_gen.ajax.query({file: 'fetch-schema.php'}, showSchema);
function showSchema(data) {
data = JSON.parse(data);
// TODO: remove log
console.log(data);
data.forEach(function (el) {
var option = document.createElemen... | mit |
semplon/GeniXCMS | inc/lib/Control.class.php | 7215 | <?php
defined('GX_LIB') or die('Direct Access Not Allowed!');
/**
* GeniXCMS - Content Management System.
*
* PHP Based Content Management System and Framework
*
* @since 0.0.1 build date 20141006
*
* @version 1.1.11
*
* @link https://github.com/semplon/GeniXCMS
*
*
* @author Puguh Wijayanto <metalgenix@g... | mit |
adamaoc/life-and-gears | header.php | 1824 | <!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' :'; } ?> <?php bloginfo('name'); ?> - <?php bloginfo('description'); ?></title>
<link href="//www.google-anal... | mit |
cuckata23/wurfl-data | data/lifetab_e7316_ver1.php | 414 | <?php
return array (
'id' => 'lifetab_e7316_ver1',
'fallback' => 'generic_android_ver4_2',
'capabilities' =>
array (
'is_tablet' => 'true',
'model_name' => 'Lifetab E7316',
'brand_name' => 'Medion',
'can_assign_phone_number' => 'false',
'physical_screen_height' => '154',
'physical_scree... | mit |
TheGigabots/gigabots-dashboard | src/components/Designer.js | 5849 | import React from "react";
import PropTypes from "prop-types";
import 'codemirror/mode/javascript/javascript';
import 'codemirror/lib/codemirror.css';
import 'codemirror/theme/material.css';
import Blockly from 'node-blockly/browser';
import {reactLocalStorage} from 'reactjs-localstorage';
import toolboxXML from './../... | mit |
euangoddard/django-ab | src/ab/templatetags/ab.py | 2132 | from django.template.base import Library
from django.template.base import Node
from django.template.base import TemplateSyntaxError
from django.template.base import Variable
from ab import VARIANT_A
from ab import VARIANT_B
from ab.models import ABTest
register = Library()
@register.tag
def run_ab_test(parser, to... | mit |
AlexeyEvlampiev/Nature | tests/XUnitTest.Nature/Chemkin/Thermo/ThermoCollection_Parse_Should.cs | 315 | namespace Nature.Chemkin.Thermo
{
using Xunit;
public class ThermoCollection_Parse_Should
{
[Fact]
public void Work()
{
var collection = ThermoCollection.Parse(ThermoCollectionsResource.thermo30);
Assert.Equal(collection.Count, 53);
}
}
}
| mit |
elect86/jogl-samples | jogl-samples/src/tests/gl_330/Gl_330_texture_integer_rgb10a2ui.java | 7585 | /*
* 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.
*/
package tests.gl_330;
import com.jogamp.opengl.GL;
import static com.jogamp.opengl.GL2ES3.*;
import com.jogamp.opengl.GL3;
i... | mit |
cluckd/cluckd | src/qt/locale/bitcoin_es.ts | 142544 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="es" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<source>About darkestdimecoin Core</source>
<translation>Acerca de darkestdimecoin Core</translation>
</message>
<message>
<source><b>darkestdimecoin Core</b&... | mit |
wahajashfaq/keryana | application/views/admin/add_side_banners.php | 9110 | <?php include('admin_header.php'); ?>
<body>
<div id="wrapper">
<?php include('admin_navbar.php') ?>
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
Side Banners
</... | mit |
fvovan/CM | library/CM/Service/Manager.php | 8498 | <?php
class CM_Service_Manager extends CM_Class_Abstract {
/** @var array */
private $_serviceConfigList = array();
/** @var array */
private $_serviceInstanceList = array();
/** @var CM_Service_Manager */
protected static $instance;
/**
* @param string $serviceName
* @return ... | mit |
sealTLV/SmsAuthService | complete/src/main/java/com/digi/config/app/RandomKeyConfig.java | 401 | package com.digi.config.app;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@Configuration
@ConfigurationProperties(prefix = "app.random")
@Data
public class RandomKeyConfig {
private Integer size;
private ... | mit |
mhevery/angular | packages/common/locales/global/vai-Latn.js | 1582 | /**
* @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
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glo... | mit |
abricos/abricos-mod-payments | src/js/model.js | 1122 | var Component = new Brick.Component();
Component.requires = {
mod: [
{name: 'sys', files: ['appModel.js']}
]
};
Component.entryPoint = function(NS){
var Y = Brick.YUI,
SYS = Brick.mod.sys;
NS.Request = Y.Base.create('request', SYS.AppModel, [], {
structureName: 'Request'
});... | mit |
ASxa86/AGE | src/math/GLM.cpp | 226 | #include <azule/math/GLM.h>
void glm::to_json(nlohmann::json& j, const glm::vec2& x)
{
j["x"] = x.x;
j["y"] = x.y;
}
void glm::from_json(const nlohmann::json& j, glm::vec2& x)
{
j["x"].get_to(x.x);
j["y"].get_to(x.y);
}
| mit |
deadbok/ann-flappy-bird-pygame | genetic.py | 968 | '''
@since: 14/08/2015
@author: oblivion
'''
import pickle
class FloatGenome(object):
'''
Genome created of floats.
'''
def __init__(self, genome, fitness, name="Joshua"):
'''
Create a genome from an array.
:param size: Size
'''
self.genome = genome
sel... | mit |
Kubinyete/phpgallery | templates/perfil.php | 1619 | <main>
<article>
<section>
<div class="perfil-container <?php if ($itens["usr_usuario"]->estaOnline()): echo " perfil-container-online"; endif; ?>" style="background-image: url('<?= $itens["usr_usuario"]->getImagemFundoUrl(); ?>');">
<div class="overlay">
<?php if ($itens["usr_logado"] !== null && $itens... | mit |
jamf/AppConfigSpecCreator | assets/js/views/modal/errors.js | 1343 | //views/modal/errors
define([
"jquery", "underscore", "backbone", "bootstrap", "helper/pubsub",
"text!templates/modal/errors.html"
], function ($, _, Backbone, Bootstrap, PubSub, ErrorsModalTemplate) {
return Backbone.View.extend({
template: _.template(ErrorsModalTemplate),
initialize: function () {
this.re... | mit |
tzurbaev/laravel-forge-api | src/Recipes/Commands/RecipeCommand.php | 478 | <?php
namespace Laravel\Forge\Recipes\Commands;
use Laravel\Forge\Recipes\Recipe;
use Laravel\Forge\Commands\ResourceCommand;
abstract class RecipeCommand extends ResourceCommand
{
/**
* Resource path.
*
* @return string
*/
public function resourcePath()
{
return 'recipes';
... | mit |
AndriusBil/material-ui | docs/src/pages/demos/stepper/TextMobileStepper.js | 2081 | /* eslint-disable flowtype/require-valid-file-annotation */
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import MobileStepper from 'material-ui/MobileStepper';
import Paper from 'material-ui/Paper';
import Typography from 'material-ui/Typography';
impo... | mit |
hoppjs/hopp | packages/hopp/src/utils/fn.js | 566 | /**
* @file src/utils/fn.js
* @license MIT
* @copyright 2017 10244872 Canada Inc.
*/
/**
* Makes async functions deterministic.
*/
export default fn => {
const cache = Object.create(null)
return process.env.RECACHE === 'true' ? fn : async function () {
const last = arguments[arguments.length - 1]
le... | mit |
fengzhike/acm_engine | apps/login/webapi.js | 287 | /**
* webapi.js 封装app所需的所有web请求
* 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app
*/
import { fetch } from 'mk-utils'
export default {
user: {
login: (option) => fetch.post('/v1/user/login', option)
}
}
| mit |
dfernandezm/tv-crawler-scala | src/main/scala/com/morenware/tvcrawler/HelloActor.scala | 1734 | package com.morenware.tvcrawler
import akka.actor.{Actor, ActorSystem, Props}
import net.ruippeixotog.scalascraper.browser.JsoupBrowser
import net.ruippeixotog.scalascraper.dsl.DSL._
import net.ruippeixotog.scalascraper.dsl.DSL.Extract._
import net.ruippeixotog.scalascraper.dsl.DSL.Parse._
import net.ruippeixotog.scal... | mit |
caktoy/penjadwalan_karyawan | application/views/index.php | 10125 | <!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<title>Penjadwalan Teknisi - <?php echo $judul; ?></title>
<meta name="description" content="overview & stats" />
<meta name="viewport" content="width=device-width, initial-s... | mit |
junxianyong/fluffy-parakeet | hello-world.php | 143 | <?php
$this_array = ['I am test 1', 'This is test 2', 'That is test 3'];
foreach($this_array as $fruit) {
echo '<p>' . $fruit . '</p>';
} | mit |
uditalias/swamp-dashboard | app/scripts/iostream/app.js | 2715 | 'use strict';
$(function() {
var $stream = $('.io-container pre');
var $filesList = $('.aside-content ul');
var $selectedFile = $('.selected-file');
var $themeSwitch = $('.theme-switch');
var THEME_COOKIE_NAME = 'iostreamtheme';
function _onStreamerData(data) {
$stream.text($stream.tex... | mit |
vnglst/converter | partials/sharedhead.php | 544 | <meta charset="utf-8">
<link rel="stylesheet" href="css/app.css" />
<link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700,900,400italic|Droid+Serif:400,700,400italic" media="screen" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/boot... | mit |
ringwraith/Marxcoin-master | src/checkpoints.cpp | 6030 | // Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp> // for 'map_list_of()'
#include <boost/foreach.hpp>
#include "checkpoints.h"
#include "m... | mit |
pataquets/namecoin-core | test/functional/interface_bitcoin_cli.py | 14116 | #!/usr/bin/env python3
# Copyright (c) 2017-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test bitcoin-cli"""
from decimal import Decimal
from test_framework.test_framework import BitcoinTestF... | mit |
jdonenine/disney-parks-calendar | dist/model/park.js | 3251 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ParkEnum;
(function (ParkEnum) {
ParkEnum[ParkEnum["MAGIC_KINGDOM"] = 0] = "MAGIC_KINGDOM";
ParkEnum[ParkEnum["EPCOT_FUTURE_WORLD"] = 1] = "EPCOT_FUTURE_WORLD";
ParkEnum[ParkEnum["EPCOT_WORLD_SHOWCASE"] = 2] = "EPCOT_WORLD_SHOW... | mit |
harishuideveloper/My-India-Redux | src/components/Filter/index.js | 53 | import Filter from './Filter'
export default Filter
| mit |
TEAM4456/MechCadets2016 | src/org/usfirst/frc/team4456/robot/autonomous/AutoSequence.java | 361 | package org.usfirst.frc.team4456.robot.autonomous;
public interface AutoSequence
{
/**
* This method should get called in the initial autonomous stage.
* runs initial autonomous code
*/
public void runInit();
/**
* This method should get called in the periodc autonomous stage.
* runs periodic autonomous... | mit |
para-cms/para | app/models/para/library/file.rb | 1502 | module Para
module Library
class File < ActiveRecord::Base
if defined?(ActiveStorage)
has_one_attached :attachment
# Return attachment.path or attachment.url depending on the storage
# backend, allowing 'openuri' and 'roo' libraries to load easily the
# file at the right pat... | mit |
Malkovski/Telerik | High-QualityCode/Homework/High-QualityClasses/Abstraction/Abstraction/Rectangle.cs | 1627 | namespace Abstraction
{
using System;
internal class Rectangle : Figure
{
public Rectangle()
: base(0, 0)
{
}
internal Rectangle(double width, double height)
: base(width, height)
{
}
internal double Width
{
... | mit |
bndw/pick | safe/account.go | 2282 | package safe
import (
"fmt"
"sort"
"time"
)
type Account struct {
Username string `json:"username"`
Password string `json:"password"`
CreatedOn int64 `json:"createdOn"`
ModifiedOn int64 `json:"modifiedOn"`
History accountHistory `json:"history,omitempty"`
}
func (acc... | mit |
z2s8/erettsegit | test_erettsegit.py | 1186 | import os
import unittest
from erettsegit import argparse, yearify, monthify, levelify
from erettsegit import MessageType, message_for
class TestErettsegit(unittest.TestCase):
def test_yearify_raises_out_of_bounds_years(self):
with self.assertRaises(argparse.ArgumentTypeError):
yearify(2003)
... | mit |
kf6kjg/chattel | Source/Chattel/ChattelReader.cs | 9043 | // ChattelReader.cs
//
// Author:
// Ricky Curtice <ricky@rwcproductions.com>
//
// Copyright (c) 2016 Richard Curtice
//
// 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 res... | mit |
myabc/refinerycms | public/javascripts/refinery/admin.js | 34410 | var shiftHeld = false;
$(document).ready(function(){
init_interface();
init_flash_messages();
init_delete_confirmations();
init_sortable_menu();
init_submit_continue();
init_modal_dialogs();
init_tooltips();
});
init_interface = function() {
if (parent && parent.document.location.href != document.locat... | mit |
andersinno/cmsplugin-carousel-ai | cmsplugin_carousel_ai/migrations/0003_slide_description.py | 482 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cmsplugin_carousel_ai', '0002_add_call_to_action_label_for_slides'),
]
operations = [
migrations.AddField(
model... | mit |
devxkh/FrankE | Editor/VEX/PCL/Properties/AssemblyInfo.cs | 1121 | using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über folgende
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet si... | mit |
meditativeape/wikiracer | impl/bfs.go | 3694 | package impl
import (
"github.com/meditativeape/wikiracer/util"
"runtime"
"sync"
)
var numCrawlersPerLevel int = runtime.NumCPU() * 10
func FindPath(startUrl string, endUrl string) (*[]string, *map[string]string) {
articleToParent := make(map[string]string)
emptyPath := make([]string, 0)
// Make sure both sta... | mit |
LaravelRUS/SleepingOwlAdmin | src/Traits/ElementTaggable.php | 386 | <?php
namespace SleepingOwl\Admin\Traits;
trait ElementTaggable
{
/**
* @var bool
*/
protected $taggable = false;
/**
* @return bool
*/
public function isTaggable()
{
return $this->taggable;
}
/**
* @return $this
*/
public function taggable()
... | mit |
jenningsm42/vulpan | vulpan/LoadResourceTask.cpp | 750 | #include "include/Engine.h"
#include "include/LoadResourceTask.h"
#include "include/Logger.h"
namespace vlp {
LoadResourceTask::LoadResourceTask(std::string&& path) :
m_path(std::move(path)) {
}
void LoadResourceTask::run(Engine& engine) {
auto loader = engine.getResourceLoader();
auto data = loader.readFile... | mit |
zhangqiang110/my4j | pms/src/main/java/com/swfarm/biz/magento/bo/magentoapi/ComplexFilterArray.java | 1889 | package com.swfarm.biz.magento.bo.magentoapi;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>
* Java class for complexFilterArray complex type.
*
... | mit |
pr-snas/mural-de-recados | config/initializers/inflections.rb | 633 | # Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format
# (all these examples are active by default):
# ActiveSupport::Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, '\1en'
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person', ... | mit |
URMC/i2b2_redi | java/src/main/java/edu/rochester/urmc/i2b2/SQLQueryJob.java | 18211 | /**
* Copyright 2015 , University of Rochester Medical Center
*
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR CO... | mit |
jburgui/proyecto2.0 | src/proyecto/backendBundle/Entity/Fragmento.php | 5010 | <?php
namespace proyecto\backendBundle\Entity;
/**
* Entidad Fragmento
* @author Javier Burguillo Sánchez
*/
class Fragmento
{
/**
* @var integer
*/
private $id;
/**
* @var string
*/
private $nombre;
/**
* @var boolean
*/
private $primeraLetra;
/**
... | mit |
kimochka/hispalia-cms | application/logs/log-2015-01-02.php | 87868 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
DEBUG - 2015-01-02 21:14:59 --> Config Class Initialized
DEBUG - 2015-01-02 21:14:59 --> Hooks Class Initialized
DEBUG - 2015-01-02 21:14:59 --> Utf8 Class Initialized
DEBUG - 2015-01-02 21:14:59 --> UTF-8 Support Enabled
DEBUG - 2015-01-02... | mit |
sparkychildcharlie/FoxieBot | chat-plugins/bot.js | 6866 | 'use strict';
exports.commands = {
eval: function(target, room, user) {
if (!user.isDev() || !target) return false;
let battle;
if (room && room.battle) {
battle = room.battle;
}
try {
let result = eval(target.trim());
this.send("<< " + JSO... | mit |