repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
extremeframework/extremeframework | shared/app_constant.php | 1729 | <?php
////////////////////////////////////////////////////////
// Do not edit this file. It is automatically generated
//________________(SYSTEM)____________________
// Default currency
define('DEFAULT_CURRENCY_SYMBOL', '$');
// Application name
define('CONFIG_APPLICATION_NAME', 'Extreme Framework');
// CSV separat... | mit |
olistik/sftp_downloader | spec/sftp_downloader_spec.rb | 210 | require 'spec_helper'
describe SftpDownloader do
it 'has a version number' do
expect(SftpDownloader::VERSION).not_to be nil
end
it 'does something useful' do
expect(false).to eq(true)
end
end
| mit |
Ruslan-Pantaev/MIDI_music_generator | src-programs/midi_chord_types.cpp | 9634 | #include <iostream>
#include <cassert>
#include <string>
#include <vector>
#include <unordered_map>
#include "midi_chord_types.h"
#include "midi_misc.h"
using namespace std;
MIDI_Chord::MIDI_Chord() : note(0), chords_vec( {} ) { }
unordered_map<string, vector<int>> MIDI_Chord::chord_master {
// DYADS
{ "_unison",... | mit |
platanus/hound | app/models/linter/haml.rb | 75 | module Linter
class Haml < Base
FILE_REGEXP = /.+\.haml\z/
end
end
| mit |
feedbin/feedbin | app/helpers/actions_helper.rb | 1261 | module ActionsHelper
def action_feed_names(action)
output = []
user = User.find(action.user_id)
feed_names = user.feeds.where(id: action.feed_ids).include_user_title.map { |feed|
feed.title
}
feed_names.sort!
output << feed_names.shift(2).join(", ")
if feed_names.present?
... | mit |
Postcard/figure-sdk-node | lib/resources/Events.js | 231 | 'use strict';
var FigureResource = require('../FigureResource');
var figureMethod = FigureResource.method;
module.exports = FigureResource.extend({
path: 'events',
includeBasic: ['create', 'get', 'getAll', 'edit', 'del']
}); | mit |
ARM-software/armnn | delegate/src/test/ActivationTestHelper.hpp | 5912 | //
// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include "TestUtils.hpp"
#include <armnn_delegate.hpp>
#include <flatbuffers/flatbuffers.h>
#include <tensorflow/lite/interpreter.h>
#include <tensorflow/lite/kernels/register.h>
#include <tensorflo... | mit |
Markonis/JCrypt | src/encryption/algorithm/blockMode/BlockMode.java | 3050 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package encryption.algorithm.blockMode;
import encryption.Configuration;
import encryption.algorithm.A51;
import encryption.algorithm.blockEncryptor.BlockEncryptor;
import encryption.algorithm.blockEncryptor.Tea;
import... | mit |
educoder/rollcall | config/initializers/session_store.rb | 410 | # Be sure to restart your server when you modify this file.
Rollcall::Application.config.session_store :cookie_store, :key => '_rollcall_session'
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "ra... | mit |
nectR-Tutoring/nectr | nectr/tutor/admin.py | 171 | from django.contrib import admin
# Register your models here.
from nectr.tutor.models import Tutor
@admin.register(Tutor)
class AuthorAdmin(admin.ModelAdmin):
pass
| mit |
williambai/beyond-webapp | demo/app/src/models/NotificationCollection.js | 163 | var Backbone = require('backbone');
var Notification = require('./Notification');
exports = module.exports = Backbone.Collection.extend({
model: Notification
}); | mit |
smellyriver/tankinspector | TankInspector/Design/RomanNumberService.cs | 481 | using System;
namespace Smellyriver.TankInspector.Design
{
internal static class RomanNumberService
{
private const string RomanNumbers = " ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ"; // remember to put a space before all the numbers
public static string GetRomanNumber(int number)
{
if (number < 1 || ... | mit |
CellarHQ/cellarhq.com | model/src/main/generated/com/cellarhq/generated/tables/daos/CellarDao.java | 16421 | /*
* This file is generated by jOOQ.
*/
package com.cellarhq.generated.tables.daos;
import com.cellarhq.generated.tables.Cellar;
import com.cellarhq.generated.tables.records.CellarRecord;
import java.time.LocalDateTime;
import java.util.List;
import javax.annotation.processing.Generated;
import org.jooq.Configur... | mit |
beni55/reactcss | lib/merge.js | 176 | "use strict";var merge=require("merge"),_=require("lodash");module.exports=function(e){return _.isObject(e)&&!_.isArray(e)?e:1===e.length?e[0]:merge.recursive.apply(void 0,e)}; | mit |
phazyy/futie | src/components/sidebar/SideBarItem.js | 1168 | import React, { Component, PropTypes } from 'react';
import { Link } from 'react-router';
class SideBarItem extends Component {
constructor(props) {
super(props);
this.state = { open: false };
this.handleClick = this.handleClick.bind(this);
}
handleClick() {
this.setState({ open: !this.state.op... | mit |
Contentify/Contentify | app/Modules/Events/Resources/Views/widget.blade.php | 273 | <div class="widget widget-events">
<ul class="list-unstyled">
@foreach ($events as $event)
<li>
<a href="{{ url('events/'.$event->id.'/'.$event->slug) }}">{{ $event->title }}</a>
</li>
@endforeach
</ul>
</div> | mit |
dreikanter/feeder | app/normalizers/smbc_normalizer.rb | 1112 | class SmbcNormalizer < BaseNormalizer
protected
def link
content.link
end
def published_at
content.pubDate
end
def text
[title, link].join(separator)
end
def attachments
[image_url, hidden_image_url].reject(&:blank?)
end
def comments
[description].reject(&:blank?)
end
p... | mit |
ucdavis/Commencement | Commencement.Mvc/Controllers/ViewModels/MoveMajorViewModel.cs | 1285 | using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using Commencement.Controllers.Services;
using Commencement.Core.Domain;
using UCDArch.Core.PersistanceSupport;
using UCDArch.Core.Utils;
namespace Commencement.Controllers.ViewModels
{
public class MoveMajorViewModel
... | mit |
wildDAlex/rus_bank_rails | lib/generators/rus_bank_rails_generator/templates/create_regions.rb | 249 | class CreateRegions < ActiveRecord::Migration
def change
create_table table_name, force: true do |t|
t.integer "reg_code"
t.string "cname"
t.timestamps
end
add_index table_name, :reg_code, :unique => true
end
end | mit |
fweber1/Annies-Ancestors | PhpGedView/modules/sitemap/languages/help_text.nl.php | 3033 | <?php
/**
* Dutch Language file for PhpGedView.
*
* phpGedView: Genealogy Viewer
* Copyright (C) 2002 to 2007 PGV Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundat... | mit |
jifeon/bnsf | blocks/controller-api/controller-api.node.js | 2338 | /**@module controller-api*/
modules.define('controller-api', [
'i-controller', 'vow'
], function (provide, IController, Vow) {
"use strict";
/**
* @class ControllerApi
* @extends IController
*/
provide(IController.decl(/**@lends ControllerApi.prototype*/{
/**
* @param {... | mit |
pd-nmoser/Conference | com.prodyna.pac.conference/com.prodyna.pac.conference.rest/com.prodyna.pac.conference.rest.beans/src/test/java/com/prodyna/pac/conference/rest/beans/RoomResourceTest.java | 4161 | /*
* The MIT License (MIT)
*
* Copyright (c) 2013 Nicolas Moser
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use... | mit |
Drathal/XpFlag | locales/esES.lua | 99 | local D, C, L = unpack(select(2, ...))
local _G = _G
if _G.GetLocale() ~= "esES" then return end
| mit |
hyj5320/adgo_1.01 | editor/smart_editor/js_src/fundamental/base/hp_SE2M_LineHeightWithLayerUI.js | 4638 | //{
/**
* @fileOverview This file contains Husky plugin that takes care of the operations related to changing the lineheight using layer
* @name hp_SE2M_LineHeightWithLayerUI.js
*/
nhn.husky.SE2M_LineHeightWithLayerUI = jindo.$Class({
name : "SE2M_LineHeightWithLayerUI",
$ON_MSG_APP_READY : function(){
this.oAp... | mit |
andlogic/hackerrank | ruby/greedy/grid-challenge.rb | 375 | t = gets.to_i
n = gets.to_i
answers = []
t.times do
order = true
n.times do
line = gets.chomp.split("").sort
for i in 0...n-1
if line[i] <= line[i+1]
order = false
break
end
end
if order == false
break
end
end
if order == false
answers.push("NO")
e... | mit |
Molinos/capistrano-db-tasks | lib/capistrano-db-tasks/version.rb | 49 | module CapistranoDbTasks
VERSION = "0.2.1"
end
| mit |
jeremytammik/RoomEditorApp | RoomEditorApp/CmdSubscribe.cs | 4329 | #region Namespaces
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Autodesk.Revit.ApplicationServices;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using Autodesk.Revit.UI.Events;
using DreamSeat;
#endregion
namespac... | mit |
skn9x/Anubis | src/anubis/runtime/traits/func/ARootSetSlot.java | 1055 | package anubis.runtime.traits.func;
import anubis.AnubisObject;
import anubis.SlotRef;
import anubis.except.ExceptionProvider;
import anubis.runtime.ABuiltinFunction._3;
import anubis.runtime.AString;
import anubis.runtime.Operator;
import anubis.runtime.Utils;
public class ARootSetSlot extends _3 {
publi... | mit |
j1v3/lakombi | src/LaKombi/ShopBundle/changecurrency.php | 1319 | <?php
/*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive ... | mit |
ForbesLindesay/acorn-globals | test/fixtures/export.js | 118 | export var foo = 'bar';
export function bar() {};
export let bing = 'baz';
export default baz;
foo();
bar();
bing();
| mit |
la-yumba/functional-csharp-code | LaYumba.Functional.Data/Bst.cs | 3439 | using System;
namespace LaYumba.Functional.Data.Bst
{
using System.Collections.Generic;
using static Tree;
public abstract class Tree<T> where T : IComparable<T>
{
public abstract R Match<R>(Func<R> Empty, Func<Tree<T>, T, Tree<T>, R> Node);
public abstract bool IsEmpty { get; }
public... | mit |
EnEff-BIM/EnEffBIM-Framework | SimModel_Python_API/simmodel_swig/Release/SimGeomSurface_BoundedSurface_CurveBoundedPlane.py | 11369 | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.7
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (2, 6, 0):
def swig_import_helper():
from os.path imp... | mit |
polcoinpl/polcoin | src/qt/qrcodedialog.cpp | 4343 | #include "qrcodedialog.h"
#include "ui_qrcodedialog.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include <QPixmap>
#if QT_VERSION < 0x050000
#include <QUrl>
#endif
#include <qrencode.h>
QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bo... | mit |
pragyarachur/zoinks-Water-Reporting-M2 | src/main/java/edu/gatech/oad/antlab/person/Person5.java | 1036 | package edu.gatech.oad.antlab.person;
/**
* A simple class for person 5
* returns their name and a
* modified string
*
* @author ntao6
* @version 1.1
*/
public class Person5 {
/** Holds the persons real name */
private String name;
/**
* The constructor, takes in the persons
* name
* @param pn... | mit |
ffmmjj/kairos-face-sdk-python | kairos_face/entities.py | 145 | class KairosFaceGallery:
def __init__(self, gallery_name, subject_ids):
self.name = gallery_name
self.subjects = subject_ids
| mit |
aaaustin10/Mars | mars/mips/instructions/syscalls/SyscallInputDialogString.java | 5220 | package mars.mips.instructions.syscalls;
import mars.util.*;
import mars.mips.hardware.*;
import mars.simulator.*;
import mars.*;
import javax.swing.JOptionPane;
/*
Copyright (c) 2003-2008, Pete Sanderson and Kenneth Vollmar
Developed by Pete Sanderson (psanderson@otterbein.edu)
and Kenneth Vollmar (kenvollmar@misso... | mit |
lwthatcher/Compass | test/angular/TestNgModel.java | 2909 | package angular;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import java.util.List;
/**
* Tests the ByAngularModel function.
*/
public class TestNgModel extends AngularTestPlan
{
@Test
public void test_findByModel_entryTextBox()
{
WebElement elem... | mit |
AlexLee-CN/weixin_api | src/com/shanli/weixin/mp/recv/UserMsg.java | 2909 | package com.shanli.weixin.mp.recv;
import com.google.gson.Gson;
import com.shanli.weixin.bean.BaseResp;
/**
* 微信消息基类
*
* @author alex
*
*/
public class UserMsg extends BaseResp {
private String openid;
private String appid;
private UserMsgTypeEnum type;
private String msgType;
private String toUserName;
p... | mit |
chk1/mensaparser | parser/mensen/parsers/parser_aasee_ring.js | 3067 | var ringparser = function(mensa) {
var parser = require('./parser');
var request = require('request');
// process the html data and find the data we are interested in
request(mensa.url, function(error, response, html) {
// moment library for date conversion
var moment = require("moment");
// cheerio library ... | mit |
erikzhouxin/CSharpSolution | NetSiteUtilities/AopApi/Response/ZhimaCreditWatchlistBriefGetResponse.cs | 875 | using System;
using System.Xml.Serialization;
namespace EZOper.NetSiteUtilities.AopApi
{
/// <summary>
/// ZhimaCreditWatchlistBriefGetResponse.
/// </summary>
public class ZhimaCreditWatchlistBriefGetResponse : AopResponse
{
/// <summary>
/// 唯一标示每一次接口调用
/// </summary>
... | mit |
goldsborough/capstone | source/capstone/element/Wall.java | 548 | package capstone.element;
import capstone.data.Representation;
import capstone.utility.Point;
/**
* A wall element. Just a way to get the concept into the type-system.
*/
public class Wall extends Element
{
/**
*
* Constructs a new wall from a Point and an Representation.
*
* @param point Th... | mit |
frostwire/frostwire-jlibtorrent | src/main/java/com/frostwire/jlibtorrent/swig/external_ip_alert.java | 1986 | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ------------------------------... | mit |
zutnop/telekom-workflow-engine | telekom-workflow-engine/src/main/java/ee/telekom/workflow/jmx/EngineMonitor.java | 1767 | package ee.telekom.workflow.jmx;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jmx.export.annotation.ManagedAttribute;
import org.springframework.jmx.export.annotation.ManagedResource;
import org.springframework.stereotype.Component;
import ee.telekom.workflow.executor.cons... | mit |
mbouclas/mcms-laravel-core | src/Exceptions/RoleNotFoundException.php | 201 | <?php
namespace IdeaSeven\Core\Exceptions;
class RoleNotFoundException extends \Exception
{
public function __construct($role)
{
$this->message = 'This is not a valid role';
}
} | mit |
WereDouglas/dukka | application/views/view-user.php | 11838 | <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta chars... | mit |
scen/ionlib | src/mem/vmt.cpp | 1215 | #include "vmt.h"
namespace ion
{
UINT vmt::countFuncs( void** vmt )
{
MEMORY_BASIC_INFORMATION mem;
int i = -1;
do { i++; VirtualQuery( vmt[i], &mem, sizeof(MEMORY_BASIC_INFORMATION) ); }
while( mem.Protect==PAGE_EXECUTE_READ || mem.Protect==PAGE_EXECUTE_READWRITE );
return i;
}
UINT vmt::countFuncs( vo... | mit |
Atticweb/node-js-connect4 | game_logic.js | 2567 | module.exports = {
games : {},
make_move : function(room, col, pid){
var board = this.games[room].board;
var move_made = false;
for(var i = board.length-1; i >= 0; i--){
if(board[i][col] == 0){
board[i][col] = pid;
move_made = true;
break;
}
}
return move_made;
},
check_for_win : functio... | mit |
InfoAgeTech/django-activities | tests/test_urls_activities.py | 3634 | from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from django_testing.testcases.auth import AuthenticatedUserTestCase
from django_testing.testcases.urls import UrlTestCaseMixin
from django_testing.user_utils import create_user
from activities.constants import Source
from activities.... | mit |
FruitClover/pixels | src/nodes/NetworkNode.cpp | 577 | #include "nodes/NetworkNode.h"
#include "network/NetworkProtocol.h"
NetworkNode::NetworkNode()
: SceneNode()
, m_pendingActions()
{
}
Category::Type_t NetworkNode::GetCategory() const
{
return Category::Network;
}
void NetworkNode::NotifyGameAction(GameActions::Type_t type, sf::Vector2f position)
{
m_pendingActio... | mit |
mjsalerno/StopLeak | test/leakysite/leakySite.js | 1207 | /*global $*/
var defaultUrl = 'https://mjsalerno.github.io';
var defaultData = 'scott, shane, michael, mike, paul';
function showResults(response) {
$('#results').html(response);
}
function leakFailed(xhr) {
if (xhr.responseText) {
showResults(xhr.responseText);
} else {
showResults('Proba... | mit |
sylsaint/cpp_learning | cpp-primer/ch12/pointer_del.cc | 167 | #include<iostream>
using namespace std;
int main()
{
int *p(new int(48));
auto q = p;
delete p;
p = nullptr;
cout << *q << endl;
return 0;
}
| mit |
radzikowski/alf | src/Alf/ShopBundle/Entity/Logs.php | 2697 | <?php
namespace Alf\ShopBundle\Entity;
/**
* Alf\ShopBundle\Entity\Logs
*
* @orm:Table(name="logs")
* @orm:Entity
*/
class Logs
{
/**
* @var integer $id
*
* @orm:Column(name="id", type="integer", nullable=false)
* @orm:Id
* @orm:GeneratedValue(strategy="IDENTITY")
*/
private... | mit |
fyodorvi/jspm-watch | test-project/client/app/app.component.js | 234 | import template from './app.html!text';
import './app.css!';
let appComponent = ()=>{
return {
template, // because we have a variable name template we can use the shorcut here
restrict: 'E'
};
};
export default appComponent;
| mit |
enggsumitkhattar/bom | application/libraries/Pdb.php | 10537 | <?php
class Pdb extends PDO {
private $error;
private $sql;
private $bind;
private $errorCallbackFunction;
private $errorMsgFormat;
public function __construct() {
$options = array(
PDO::ATTR_PERSISTENT => true,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
... | mit |
edouardpa/node-yeelight-bedside-lamp | test/models/lamp.js | 368 | 'use strict';
module.exports = function(sequelize, DataTypes) {
var Lamp = sequelize.define('Lamp', {
name: DataTypes.STRING,
address: DataTypes.STRING
}/*, {
classMethods: {
associate: function(models) {
// associations can be defined here
}
}
}*/);
Lamp.state = null;
... | mit |
formula123/WPF-Learning | MetroUI/Properties/AssemblyInfo.cs | 2373 | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated ... | mit |
w-y/ecma262-jison | src/bnf/NamedImports.js | 257 | module.exports = {
conditions: [''],
name: 'NamedImports',
rules: [
'{ }',
'{ ImportsList }',
'{ ImportsList , }',
],
handlers: [
'$$ = [];',
'$$ = $2;',
'$$ = $2;',
],
subRules: [
require('./ImportsList'),
],
};
| mit |
c58/onsenui-react | src/components/onsen/ons-navigator/lift-slide-animator.js | 4272 | /*
Copyright 2013-2015 ASIAL CORPORATION
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 wr... | mit |
superbe/Super_BE.Utilities | Super_BE.Utilities/Diagnostics/Errors.cs | 483 | using System.Collections.Generic;
namespace Super_BE.Utilities.Diagnostics
{
/// <summary>
/// Журнал ошибок.
/// </summary>
public class Errors
{
private readonly List<ErrorItem> _items;
public Errors()
{
_items = new List<ErrorItem>();
}
public Errors(List<ErrorItem> items)
{
_items = items... | mit |
jaredhanson/phantomjs-mocha | reporter.js | 774 | define(function() {
function Reporter(runner) {
var total = runner.total
, i = 1;
runner.on('start', function() {
send('start', { total: total });
});
runner.on('pass', function(test) {
send('pass', { i: i, title: test.fullTitle() })
});
runner.on('pending',... | mit |
goods/ember-goods | addon/models/payment.ts | 1406 | import DS from "ember-data";
import Order from "./order";
import ShopPaymentMethod from "./shop-payment-method";
export default class Payment extends DS.Model {
@DS.attr("number") amount!: number;
@DS.attr("string") token!: string;
@DS.attr("boolean", { defaultValue: true }) capture!: boolean;
@DS.attr("string... | mit |
jlglorences/jorge_prueba | src/Frontend/Core/Engine/Base/Widget.php | 7254 | <?php
namespace Frontend\Core\Engine\Base;
/*
* This file is part of Fork CMS.
*
* For the full copyright and license information, please view the license
* file that was distributed with this source code.
*/
use Symfony\Component\HttpKernel\KernelInterface;
use Frontend\Core\Engine\Header;
use Frontend\Core\En... | mit |
jacklam718/react-svg-iconx | webpack.config.js | 619 | const path = require('path');
module.exports = {
entry: path.join(__dirname, 'src'),
output: {
path: path.join(__dirname, 'dist'),
filename: '[name].js',
},
devtool: false,
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-l... | mit |
DmitrySibert/virtual-folder | VirtualFolderAdapter/HWdTech.DS Job1/Messages/TryOpenFileMessage.cs | 509 | using HWdTech.DS.v30;
using HWdTech.DS.v30.Messages;
using HWdTech.DS.v30.PropertyObjects;
namespace VirtualFolderAdapter.Messages
{
class TryOpenFileMessage
{
public static bool IsMeet(IMessage message)
{
return FileName.IsSet(message);
}
public static Field<string... | mit |
deslee/static-isomorphic-starter | src/stores/AppStore.js | 593 | import { createStore } from 'redux'
import actionTypes from '../constants/ActionTypes'
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
var initial = {
pageLoading: false
};
export var appStoreDispatcher = event => {
if (canUseDOM) {
AppStore.dispatch(event);
}
};
var AppStore = createStore((stat... | mit |
kenfly51/ps-react | config/webpack.config.prod.js | 15385 | 'use strict';
const autoprefixer = require('autoprefixer');
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const ManifestPlugin = require('webpack-manifest-plugin');
const Inte... | mit |
wubzz/knex | src/client.js | 9570 | import Promise from 'bluebird';
import * as helpers from './helpers';
import Raw from './raw';
import Runner from './runner';
import Formatter from './formatter';
import Transaction from './transaction';
import QueryBuilder from './query/builder';
import QueryCompiler from './query/compiler';
import SchemaBuilder fr... | mit |
coinstar/star | src/qt/locale/bitcoin_ca_ES.ts | 132611 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="ca_ES" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About StarCoin</source>
<translation>Sobre StarCoin</translation>
</message>
<message>
<lo... | mit |
ordinary-developer/book_java_the_complete_reference_9_ed_h_schildt | my_code/chapter_15_LAMBDA_EXPRESSIONS/11_method_references_to_instance_methods_1/MethodRefDemo2.java | 742 | interface StringFunc {
String func(String n);
}
class MyStringOps {
String strReverse(String str) {
String result = "";
int i;
for (i = str.length() - 1; i >= 0; i--) {
result += str.charAt(i);
}
return result;
}
}
class MethodRefDemo2 {
static Str... | mit |
cp-profiler/gecode-profiling | gecode/kernel/brancher-view.hpp | 6935 | /* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Christian Schulte <schulte@gecode.org>
*
* Copyright:
* Christian Schulte, 2012
*
* Last modified:
* $Date$ by $Author$
* $Revision$
*
* This file is part of Gecode, the generic constraint
* developme... | mit |
icyflash/ucloud-csharp-sdk | UCloudSDK/Models/UDB/UploadUDBParamGroupResponse.cs | 541 | namespace UCloudSDK.Models
{
/// <summary>
/// 导入udb配置
/// <para>
/// http://docs.ucloud.cn/api/udb/upload_udb_param_group.html
/// </para>
/// </summary>
public partial class UploadUDBParamGroupResponse : UResponse
{
/// <summary>
/// 响应动作
... | mit |
LordZoltan/docfx | test/Microsoft.DocAsCode.Build.Engine.Tests/PostProcessors/AppendStringPostProcessor.cs | 2502 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DocAsCode.Build.Engine.Tests
{
using System;
using System.Collections.Immutable;
using System.IO;
using System.Linq;
using Mic... | mit |
RanadeepPolavarapu/IRCd | anope/src/mail.cpp | 4715 | /*
*
* (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
*/
#include "services.h"
#include "mail.h"
#include "config.h"
Mail::Message::Messag... | mit |
ftsuda82/Curriculo | src/main/java/br/senac/tads/dsw/curriculo/AjaxServlet.java | 1556 | /*
* 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 br.senac.tads.dsw.curriculo;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Arrays;
import... | mit |
positive-js/mosaic | packages/mosaic-examples/mosaic/popover/index.ts | 1370 | import { A11yModule } from '@angular/cdk/a11y';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { McButtonModule } from '@ptsecurity/mosaic/button';
import { McCheckboxModule } from '@ptsecurity/mosaic/checkbox';
import { McF... | mit |
leviwilson/furter | spec/lib/furter/accessors/view_spec.rb | 1804 | require 'spec_helper'
describe Furter::Accessors::View do
let(:view) { Furter::Accessors::View.new(:label => 'id') }
let(:selector) { view.send(:selector) }
context 'locating views' do
it 'can be found by accessibility label' do
by_label = Furter::Accessors::View.new(:label => 'id')
by_label.sen... | mit |
dforel/Dcal | src/Dcal.js | 1129 | (function(){
var leftMove= function(v1,v2){
return Math.max(decimalLength(v1),decimalLength(v2));
}
var decimalLength=function(x) {
var temp = x.toString().split('.');
return (temp.length < 2) ? 1 : Math.pow(10, temp[1].length)
}
var isNumber=function(v){
if(typeof v !=='numb... | mit |
chrisjhoughton/tray-robot-test | lib/formatOutput.js | 397 | var _ = require('lodash');
module.exports = function (result) {
if (!_.isObject(result.position) || !_.isNumber(result.position.x) || !_.isNumber(result.position.y)) {
throw new Error('Invalid `result.position`');
}
if (!_.isNumber(result.cleaned)) {
throw new Error('Invalid `result.cleaned`');
}
r... | mit |
samphippen/srobotickets | config/routes.rb | 1960 | Srobotickets::Application.routes.draw do
get "home/make_ticket"
get "home/index"
match "/qrrender/:data" => "home#make_qr"
match "/maketicket" => "home#make_ticket"
root :to => "home#index"
# The priority is based upon order of creation:
# first created -> highest priority.
# Sample of regular ro... | mit |
dinghua/blog | vendor/koomai/wardrobe-themes/public/themes/bootstrap/index.blade.php | 217 | @extends(theme_view('layout'))
@section('title')
{{ site_title() }}
@stop
@section('content')
@foreach ($posts as $post)
@include(theme_view('inc.post'))
@endforeach
{{ $posts->links() }}
@stop
| mit |
latcoin/freespeech | src/bitcoind.cpp | 4317 | // 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 "init.h"
#include "bitcoinrpc.h"
#include <boost/algorithm/string/predica... | mit |
reiinakano/scikit-plot | scikitplot/estimators.py | 9921 | """
The :mod:`scikitplot.estimators` module includes plots built specifically for
scikit-learn estimator (classifier/regressor) instances e.g. Random Forest.
You can use your own estimators, but these plots assume specific properties
shared by scikit-learn estimators. The specific requirements are documented per
functi... | mit |
Solyony/test_copy | core/src/main/java/cyberwaste/kuzoff/core/command/impl/AddRow.java | 628 | package cyberwaste.kuzoff.core.command.impl;
import cyberwaste.kuzoff.core.IOManager;
import cyberwaste.kuzoff.core.command.Argument;
import cyberwaste.kuzoff.core.command.Command;
import cyberwaste.kuzoff.core.domain.Row;
public class AddRow extends Command {
@Argument(index = 0)
private String tableNam... | mit |
puras/mo-seed | mo-backend/mo-boot-seed/src/main/java/me/puras/mo/seed/moboot/error/package-info.java | 155 | /**
* @author <a href="mailto:he@puras.me">puras</a>
* @version $Revision 1.0 $
* Created On 2017-08-01 15:06
*/
package me.puras.mo.seed.moboot.error; | mit |
kalibao/magesko | kalibao/common/components/mail/MailFunction.php | 528 | <?php
/**
* @copyright Copyright (c) 2015 Kévin Walter <walkev13@gmail.com> - Kalibao
* @license https://github.com/kalibao/magesko/blob/master/LICENSE
*/
namespace kalibao\common\components\mail;
/**
* Class MailFunction
* @package kalibao\common\components\mail
* @version 1.0
* @author Kevin Walter <walkev13... | mit |
xabbuh/platform | src/Oro/Bundle/FilterBundle/Tests/Unit/Filter/DateFilterUtilityTest.php | 7109 | <?php
namespace Oro\Bundle\FilterBundle\Tests\Unit\Filter;
use Oro\Bundle\FilterBundle\Filter\DateFilterUtility;
use Oro\Bundle\FilterBundle\Form\Type\Filter\DateRangeFilterType;
use Oro\Bundle\FilterBundle\Provider\DateModifierInterface;
class DateFilterUtilityTest extends \PHPUnit_Framework_TestCase
{
/** @var... | mit |
onielmartinjr/test_angular2 | app/app.component.js | 1707 | System.register(['angular2/core'], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwn... | mit |
gitminingOrg/AirDevice | common/src/main/java/model/userdevice/Device.java | 129 | package model.userdevice;
/**
* Created by sunshine on 06/01/2018.
*/
public enum Device {
ANDROID, IPHONE, WEB_BROWSER
}
| mit |
orapow/x.rbt | doc/WeChat.NET-master/WeChat.NET-master/WeChat.NET/Properties/Settings.Designer.cs | 1067 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18444
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | mit |
fomojola/electron | atom/browser/api/atom_api_session.cc | 10089 | // Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/api/atom_api_session.h"
#include <string>
#include <vector>
#include "atom/browser/api/atom_api_cookies.h"
#include "atom/browser/atom_browser_context.h"
#incl... | mit |
Eldohub/internship-portal-laravel | app/Http/Controllers/UserController.php | 2605 | <?php
namespace App\Http\Controllers;
use App\Report;
use App\User;
use Auth;
use DB;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Facades\Validator;
class UserController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
... | mit |
robertmesserle/angular | modules/playground/src/hash_routing/index.ts | 1201 | import {Component, provide} from 'angular2/core';
import {bootstrap} from 'angular2/platform/browser';
import {RouteConfig, Route, ROUTER_PROVIDERS, ROUTER_DIRECTIVES} from 'angular2/router';
import {HashLocationStrategy, LocationStrategy} from 'angular2/platform/common';
@Component({selector: 'hello-cmp', template: ... | mit |
arcanoz/child-2.0 | src/qt/locale/bitcoin_el_GR.ts | 137861 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About child</source>
<translation>Σχετικά με το child</translation>
... | mit |
dechoD/Telerik-Homeworks | Module II Homeworks/Data Bases/JSON Parsing/ProcessJsonToHtml/ProcessJsonToHtml.cs | 6054 | namespace ProcessJsonToHtml
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Web.UI;
using Newtonsoft.Json;
using System.Xml.Linq;
using System.Web;
using Newtonsoft.Json.Linq;
class ProcessJsonToHtml
{... | mit |
rainyear/emoji-query | bin/emoji-query.js | 73 | #!/usr/bin/env node
var emoji = require('../index.js');
emoji.query();
| mit |
nwwatson/remedy | app/controllers/remedy/documents_controller.rb | 244 | require_dependency "remedy/application_controller"
module Remedy
class DocumentsController < ApplicationController
def show
end
def edit
end
def create
end
def update
end
def destroy
end
end
end
| mit |
MomentD/fanrenos | fanrenos/resources/views/admin/article/create.blade.php | 3693 | @extends('admin.layouts.base')
@section('title','添加文章')
@section('css')
<link href="{{asset('/assets/pickadate/themes/default.css')}}" rel="stylesheet">
<link href="{{asset('/assets/pickadate/themes/default.date.css')}}" rel="stylesheet">
<link href="{{asset('/assets/pickadate/themes/default.time.css')}}" ... | mit |
abique/mimosa | mimosa/fs/move.hh | 162 | #pragma once
#include <string>
namespace mimosa
{
namespace fs
{
bool moveFile(const std::string &src,
const std::string &dst);
}
}
| mit |
gharrma/lang | src/emit.cpp | 4733 | #include "emit.h"
#include <unordered_map>
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Verifier.h"
#include "ast.h"
#include "type.h"
#include "util.h"
#include "visit.h"
using namespace llvm;
llvm::Type* Emitter::GetLlvmType(const ::Type* type) {
... | mit |
gabrielprallon/SunProjectV2TheRiseOfTheTrueSun | SPV2TROTTS/Assets/Space Graphics Toolkit/Scripts/SgtStaticStar.cs | 653 | using UnityEngine;
[System.Serializable]
public class SgtStaticStar
{
// Temp instance used when generating the starfield
public static SgtStaticStar Temp = new SgtStaticStar();
[Tooltip("The coordinate index in the asteroid texture")]
public int Variant;
[Tooltip("Color tint of this star")]
public Color Col... | mit |