repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
tianbymy/cms | app/models/infodeploy/wordage.rb | 2400 | # -*- coding: utf-8 -*-
module Infodeploy
class Wordage
include Mongoid::Document
include Mongoid::Timestamps
field :title, :type => String
field :content, :type => String
field :author
field :keyword
field :overview
field :permission
field :deploy_type,:type => Integer
field :... | mit |
Avanet/CommunityEventsPlatform | Src/CommunityEvents.Api/Global.asax.cs | 586 | using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace CommunityEvents.Api
{
public class WebApiApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
... | mit |
goncalvesjoao/rest_my_case | spec/rest_my_case/context/base_spec.rb | 925 | require 'spec_helper'
describe RestMyCase::Context::Base do
describe '#values_at' do
let(:context) { described_class.new(one: 1, two: 2, three: 3) }
context "no params are used" do
it 'empty array should be returned' do
expect(context.values_at).to eq []
end
end
context "when a... | mit |
ktan2020/legacy-automation | win/Lib/site-packages/wx-3.0-msw/wx/py/tests/testall.py | 662 | #!/usr/bin/env python
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
__cvsid__ = "$Id$"
__revision__ = "$Revision$"[11:-2]
import unittest
import glob
import os
def suite():
"""Return a test suite containing all test cases in all test modules.
Searches the current directory for any ... | mit |
adrianomota/design-patterns | src/DesignPattern/Command.Core/Commands/NoCommand.cs | 168 | using Command.Core.Contract;
namespace Command.Core.Commands
{
public class NoCommand : ICommand
{
public void Execute()
{
}
}
} | mit |
stamhe/Honorcoin | src/qt/bitcoinstrings.cpp | 13148 | #include <QtGlobal>
// Automatically generated by extract_strings.py
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
static const char UNUSED *bitcoin_strings[] = {QT_TRANSLATE_NOOP("bitcoin-core", "To use the %s option"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"%s, you must set a rpcpa... | mit |
xiamidaxia/zz | utils/fontDetect.js | 3470 | /**
* 浏览器字体检测
* !!只支持支持 canvas 对象的浏览器
* !!默认字体的检测不可靠,可能返回错误结果
*
* @author by xuhaiqiang
* @date 2013-06-22
*
* 不同字体渲染出来的图形是不一样的
* 浏览器将依次使用指定的字体来渲染图像。当指定的字体不存在时,浏览器使用默认字体
* 如果指定的字体渲染出来后和默认(备用)字体一样,则可以认为指定的字体不存在
*
* 为了检测不同文字(中文/英文/...),需要多个实例
*
* var fontDetect = new FontDetect(opts)
* @para... | mit |
marciojrtorres/fds-2015-2 | rails/cobaia/app/models/usuario.rb | 296 | class Usuario < ActiveRecord::Base
has_many :compromissos
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
end
| mit |
petebacondarwin/dgeni-packages | jsdoc/tag-defs/license.js | 307 | var spdxLicenseList = require('spdx-license-list/spdx-full');
module.exports = function() {
return {
name: 'license',
transforms: function(doc, tagName, value) {
if (spdxLicenseList[value]) {
doc.licenseDescription = spdxLicenseList[value];
}
return value;
}
};
}; | mit |
NottingHack/hms2 | app/HMS/Entities/Gatekeeper/ZoneOccupant.php | 1177 | <?php
namespace HMS\Entities\Gatekeeper;
use Carbon\Carbon;
use HMS\Entities\User;
class ZoneOccupant
{
/**
* @var User
*/
protected $user;
/**
* @var Zone
*/
protected $zone;
/**
* @var Carbon
*/
protected $timeEntered;
/**
* @return User
*/
... | mit |
edgecase/spotbox | app/assets/javascripts/views/users.js | 965 | Spotbox.UsersView = Ember.View.extend({
templateName: "users",
classNames: ["users"],
itemView: Ember.View.extend({
classNameBindings: ["vote"],
iconView: Ember.View.extend({
tagName: "i",
classNameBindings: ["icon", "kind"],
setClassName: function() {
var user = this.getPath("pa... | mit |
little-dude/xi-tui | src/widgets/view/client.rs | 2509 | use futures::Future;
use tokio::spawn;
use xrl;
pub struct Client {
inner: xrl::Client,
view_id: xrl::ViewId,
}
impl Client {
pub fn new(client: xrl::Client, view_id: xrl::ViewId) -> Self {
Client {
inner: client,
view_id,
}
}
pub fn insert(&mut self, chara... | mit |
peercoin/peercoin | test/functional/test_framework/segwit_addr.py | 4237 | #!/usr/bin/env python3
# Copyright (c) 2017 Pieter Wuille
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Reference implementation for Bech32/Bech32m and segwit addresses."""
from enum import Enum
CHARSET = "qpzry9x8gf2tvdw0s3j... | mit |
PSkoczylas/Hotel | spec/rails_helper.rb | 1244 | # This file is copied to spec/ when you run 'rails generate rspec:install'
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
# Prevent database truncation if the environment is production
abort("The Rails environment is running in production mode!") if Rails.env.production?
requ... | mit |
bitcoin-solutions/multibit-hd | mbhd-swing/src/test/java/org/multibit/hd/ui/fest/requirements/trezor/create_wallet/CreateTrezorHardwareWalletColdStart_ro_RO_Requirements.java | 1121 | package org.multibit.hd.ui.fest.requirements.trezor.create_wallet;
import com.google.common.collect.Maps;
import org.fest.swing.fixture.FrameFixture;
import org.multibit.hd.testing.hardware_wallet_fixtures.HardwareWalletFixture;
import org.multibit.hd.ui.fest.use_cases.standard.welcome_select.WelcomeSelectLanguage_ro_... | mit |
tinaken-v/romancoin | src/qt/sendcoinsdialog.cpp | 17901 | #include "sendcoinsdialog.h"
#include "ui_sendcoinsdialog.h"
#include "init.h"
#include "walletmodel.h"
#include "addresstablemodel.h"
#include "addressbookpage.h"
#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "optionsmodel.h"
#include "sendcoinsentry.h"
#include "guiutil.h"
#include "askpassphrased... | mit |
fetus-hina/stat.ink | views/fest/view.php | 3864 | <?php
use app\components\widgets\AdWidget;
use app\components\widgets\SnsWidget;
use yii\helpers\Html;
use yii\helpers\Json;
use yii\web\View;
$title = "フェス「{$fest->name}」の各チーム勝率";
$this->title = implode(' | ', [
Yii::$app->name,
$title,
]);
$this->registerMetaTag(['name' => 'twitter:card', 'content' => 'summary'... | mit |
will-hart/game-off-2016 | Assets/Scripts/Systems/TacticalAiPlanningSystem.cs | 3435 | // /**
// * AiPlanner.cs
// * Will Hart
// * 20161103
// */
//#define AI_DEBUG
namespace GameGHJ.Systems
{
#region Dependencies
using System;
#if AI_DEBUG
using System.Linq;
#endif
using UnityEngine;
using GameGHJ.AI.Bundles;
using GameGHJ.AI.Core;
#endregion
public clas... | mit |
astropeak/aspk-code-base | python/aspk/text_test.py | 400 | import unittest
from text import *
class TextTest(unittest.TestCase):
def test__is_title(self):
s = 'This is a Title'
self.assertTrue(is_title(s))
s = 'this is a title'
self.assertFalse(is_title(s))
self.assertFalse(is_title('"Aaa"'))
if __name__ == '__main__':
suite = unittest.TestLoader().lo... | mit |
malasiot/maplite | src/renderer/collision_checker.hpp | 1606 | #ifndef __COLLISION_CHECKER_H__
#define __COLLISION_CHECKER_H__
#include <vector>
#include <cstdint>
struct Vector2 {
Vector2(): x(0), y(0) {}
Vector2(double x_, double y_): x(x_), y(y_) {}
friend Vector2 operator - ( const Vector2 &op1, const Vector2 &op2 ) {
return Vector2(op1.x - op2.x, op1.y... | mit |
jonestimd/finances | src/main/java/io/github/jonestimd/finance/domain/transaction/TransactionGroup.java | 4229 | // The MIT License (MIT)
//
// Copyright (c) 2021 Tim Jones
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy,... | mit |
thiar/dokumentasi_lfs | application/views/base/v_scripts_content.php | 479 | <script src="<?php echo base_url('public/semantic'); ?>/semantic.min.js"></script>
<script type="text/javascript" charset="utf8" src="<?php echo base_url('public/semantic/components'); ?>/dropdown.min.js"></script>
<?php if (isset($need_table) && $need_table){ ?>
<script type="text/javascript" charset="utf8" src="<?ph... | mit |
mskog/broad | app/graphql/mutations/base_mutation.rb | 190 | module Mutations
# This class is used as a parent for all mutations, and it is the place to have common utilities
class BaseMutation < GraphQL::Schema::Mutation
null false
end
end
| mit |
ukatama/nekotaku | src/browser/router.ts | 195 | import Vue from 'vue';
import VueRouter from 'vue-router';
import routes from './routes';
Vue.use(VueRouter);
export default new VueRouter({
mode: 'history',
base: __dirname,
routes,
});
| mit |
ivtpz/brancher | app/actions/linkedListActions.js | 894 | import { findNodeIndex } from '../utils/linkedListUtils';
const updateStructure = newState => {
return { type: 'UPDATE_LIST_STRUCTURE', newState };
};
const highlightNode = (nodeValue, nodeId) => (dispatch, getState) => {
const stateList = getState().linkedListData.present;
const searchProp = Number.isInteger(n... | mit |
AMVSoftware/Cake.Hosts | src/Cake.Hosts.Tests/TestsHostPathProvider.cs | 253 | using System.IO;
namespace Cake.Hosts.Tests
{
public class TestsHostPathProvider : IHostsPathProvider
{
public string GetHostsFilePath()
{
return Directory.GetCurrentDirectory() + @"\testHosts";
}
}
}
| mit |
HenryLoenwind/AgriCraft | src/main/java/com/InfinityRaider/AgriCraft/compatibility/pneumaticcraft/PneumaticCraftHelper.java | 2877 | package com.InfinityRaider.AgriCraft.compatibility.pneumaticcraft;
import com.InfinityRaider.AgriCraft.api.v1.BlockWithMeta;
import com.InfinityRaider.AgriCraft.compatibility.ModHelper;
import com.InfinityRaider.AgriCraft.farming.CropPlantHandler;
import com.InfinityRaider.AgriCraft.farming.GrowthRequirementHandler;
i... | mit |
AngleSharp/AngleSharp.Css | src/AngleSharp.Css/Values/Functions/CssCalcValue.cs | 1435 | namespace AngleSharp.Css.Values
{
using AngleSharp.Css.Dom;
using AngleSharp.Text;
using System;
/// <summary>
/// Represents a CSS calculated value.
/// </summary>
sealed class CssCalcValue : ICssRawValue, ICssFunctionValue
{
#region Fields
private readonly ICssValue _... | mit |
OrionNebula/jLacewing | src/net/lotrek/lacewing/server/ServerPacketActions.java | 1321 | package net.lotrek.lacewing.server;
import net.lotrek.lacewing.server.structure.ServerChannel;
import net.lotrek.lacewing.server.structure.ServerClient;
public interface ServerPacketActions
{
public boolean onConnectRequest(ServerClient client);
public String onSetNameRequest(ServerClient client, String newName);
... | mit |
steffen-foerster/mgh | src/ch/giesserei/view/stellplatz/StellplatzViewController.java | 1771 | package ch.giesserei.view.stellplatz;
import ch.giesserei.resource.AppRes;
import ch.giesserei.service.ServiceLocator;
import ch.giesserei.service.StellplatzService;
import ch.giesserei.view.AbstractViewController;
import com.google.inject.Inject;
import com.vaadin.ui.Component;
import com.vaadin.ui.Table;
... | mit |
edwise/java-pocs | springbootseries-integrationtests/src/main/java/com/edwise/springbootseries/integrationtests/Application.java | 336 | package com.edwise.springbootseries.integrationtests;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class,... | mit |
lzrgibson/ueaac | public/javascripts/ueaac.js | 171 | Ext.application({
name: 'Ueaac',
appFolder: 'javascripts/ueaac/app',
autoCreateViewport: true,
models: [],
stores: [],
controllers: []
}); | mit |
Bojo966/SoftUni-JS-Fundamentals | Strings-and-Regex/ends-with-give-substring.js | 111 | function endsWithSubstring(inputString, substring) {
console.log(String(inputString).endsWith(substring))
} | mit |
jeroeningen/acts_as_price | spec/advanced_tests/car_spec.rb | 1602 | require File.expand_path("../../spec_helper", __FILE__)
describe Car do
before(:each) do
@column_name = :price
@acts_as_price_model = stub_model(Car, :brand => "Ford", :cartype => "Stationwagon", :model => "Focus", :price => "23995,99")
end
context "return the price" do
it "should return the price i... | mit |
ovation22/PragmaticTDD | Pragmatic.TDD.Web/App_Start/AutofacConfig.cs | 1584 | using System.Data.Entity;
using System.Reflection;
using System.Web.Mvc;
using Autofac;
using Autofac.Integration.Mvc;
using Pragmatic.TDD.Models;
using Pragmatic.TDD.Repositories;
using Pragmatic.TDD.Repositories.Interfaces;
using Pragmatic.TDD.Services;
using Pragmatic.TDD.Services.Interfaces;
using Pragma... | mit |
docusign/docusign-java-client | src/main/java/com/docusign/esign/model/DisplayApplianceDocumentPage.java | 7578 | package com.docusign.esign.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* DisplayApplianceDocumentPage
*/
public class DisplayAp... | mit |
arhframe/arhframe | arhframe/Doctrine/ORM/Query/AST/NullComparisonExpression.php | 1652 | <?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS B... | mit |
ColorGenomics/clr | clr/__init__.py | 71 | # This is the main entry point for the tool.
from clr.main import main
| mit |
MrPhil/CatLikeCoding | CatLikeCoding-Mesh-Deformation/Assets/MeshDeformerInput.cs | 594 | using UnityEngine;
public class MeshDeformerInput : MonoBehaviour
{
public float force = 10f;
public float forceOffset = 0.1f;
void Update()
{
if (Input.GetMouseButton(0))
{
HandleInput();
}
}
void HandleInput()
{
Ray inputRay = Camera.main.ScreenPointToRay(Input.mousePosition);
RaycastHit hit... | mit |
Clavus/LD32 | game/words/S Words.lua | 139192 | return [[sab
sabadilla
sabaton
sabatons
sabbat
sabbatic
sabbatical
sabbatine
sabbatise
sabbatised
sabbatises
sabbatism
sabbatize
sabbatized
sabbatizes
sabbats
sabayon
sabayons
sabella
sabellas
saber
sabers
sabin
sabins
sabkha
sabkhas
sable
sabled
sables
sabling
sabot
sabotage
sabotaged
sabotages
sabotaging
saboteur
sab... | mit |
zeraien/django-url-framework | django_url_framework/flash.py | 2909 | from django.conf import settings
import hashlib
from django.utils.encoding import smart_text
from django.utils.safestring import mark_safe
class FlashMessage(object):
def __init__(self, message, is_error=False, kind='normal'):
self.message = smart_text(message, encoding="utf8")
self.is_error = is_e... | mit |
ebernerd/WaveLite | src/lib/apis/system.lua | 1697 |
--[[
system
string platform()
void copy(string text)
string paste()
]]
local util = require "src.lib.util"
local function newSystemAPI()
local system = {}
function system.open_url( url )
if type( url ) ~= "string" then return error( "expected string url, got " .. type( url ) ) end
return love.system.o... | mit |
JedWatson/happiness | test/api.js | 619 | var standard = require('../');
var test = require('tape');
test('api: lintFiles', function (t) {
t.plan(3);
standard.lintFiles([], { cwd: 'bin' }, function (err, result) {
t.error(err, 'no error while linting');
t.equal(typeof result, 'object', 'result is an object');
t.equal(result.errorCount, 0);
});
});
t... | mit |
kblin/rpi-temp-monitor | index.js | 90 | var hw = require('./hardware'),
server = require('./server');
hw.init(server.start);
| mit |
P87/bookie-odds | crawlers/skybet/match.js | 1083 | /**
* Get the source code for a live match and add it to our queue
*/
var projectConfig = require('../../config/project.json');
var skybetConfig = require('../../config/skybet.json');
var queueDriver = require('../../utils/queue/' + projectConfig.queueDriver);
var request = require('request');
var Match = {
cra... | mit |
TeamMapR/d-mapreduce | .eslintrc.js | 276 | module.exports = {
"extends": "airbnb-base",
"env": {
"node": true,
"jest": true,
},
"rules": {
"semi": 0,
"arrow-parens": 0,
"no-plusplus": 0,
"no-case-declarations": 0,
"consistent-return": 0,
},
}; | mit |
Azure/azure-sdk-for-python | sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/v2015_08_01/aio/_service_bus_management_client.py | 5096 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | mit |
alsiola/react-doc-props | src/docsToDefaults.js | 123 | import { mapToDefaults } from './utils';
export const docsToDefaults = (docs) => {
return mapToDefaults(docs.props);
} | mit |
russellgoldenberg/scrollama | index.js | 56 | import entry from "./src/entry";
export default entry;
| mit |
austinsand/journalist | imports/api/system_health_metrics/server/health_tracker.js | 1352 | import { check } from 'meteor/check';
import { SystemHealthMetrics } from '../system_health_metrics';
let debug = false;
export const HealthTracker = {
/**
* Clear out all existing health metrics
*/
init () {
console.log('HealthTracker.init');
SystemHealthMetrics.remove({});
},
... | mit |
bluemurder/ecc.net | MSDNExamples/ECDSA/Properties/AssemblyInfo.cs | 1386 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("EC... | mit |
anonymousthing/ListenMoeClient | Settings.cs | 7585 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Text;
namespace ListenMoeClient
{
enum Setting
{
//UI and form settings
LocationX,
LocationY,
TopMost,
SizeX,
SizeY,
FormOpacity,
... | mit |
montudor/django-oidc-user | django_oidc_user/timezones.py | 19355 | TIMEZONES = [
("Africa/Abidjan", "Abidjan"),
("Africa/Accra", "Accra"),
("Africa/Addis_Ababa", "Addis Ababa"),
("Africa/Algiers", "Algiers"),
("Africa/Asmara", "Asmara"),
("Africa/Asmera", "Asmera"),
("Africa/Bamako", "Bamako"),
("Africa/Bangui", "Bangui"),
("Africa/Banjul", "Banjul"),
("Africa/Bissau", "Biss... | mit |
Karasiq/scalajs-highcharts | src/main/scala/com/highmaps/config/SeriesBubbleStatesSelect.scala | 7443 | /**
* 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 |
plotly/plotly.py | packages/python/plotly/plotly/validators/layout/scene/annotation/_yanchor.py | 508 | import _plotly_utils.basevalidators
class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(
self, plotly_name="yanchor", parent_name="layout.scene.annotation", **kwargs
):
super(YanchorValidator, self).__init__(
plotly_name=plotly_name,
p... | mit |
viciious/go-tarantool | slave.go | 14521 | package tarantool
import (
"bufio"
"context"
"io"
"time"
"github.com/satori/go.uuid"
"github.com/viciious/go-tarantool/typeconv"
)
const (
procLUALastSnapVClock = "lastsnapvclock"
)
// PacketIterator is a wrapper around Slave provided iteration over new Packets functionality.
type PacketIterator interface {
... | mit |
drewet/gtk | src/widgets/css_provider.rs | 1837 | // Copyright 2013-2015, The Rust-GNOME Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <http://opensource.org/licenses/MIT>
use std::fmt::{self, Display, Formatter};
use ffi::{self, GtkCssProvider};
use glib::tran... | mit |
hypercharge/hypercharge-ruby | lib/hypercharge/concerns.rb | 1462 | # encoding: UTF-8
module Hypercharge
module Concerns # :nodoc:
module Enum # :nodoc:
# This module contains mixins for renums
#
module UpcaseName
def self.included(base)
base.extend ClassMethods
end
module ClassMethods
def with_name(name)
... | mit |
miscbrah/misccoin | src/qt/locale/bitcoin_zh_TW.ts | 113385 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_TW" version="2.0">
<defauMSCodec>UTF-8</defauMSCodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About MiscCoin</source>
<translation>關於莱特幣</translation>
</message>... | mit |
spiral/spiral | tests/Framework/Database/DescribeTest.php | 1920 | <?php
/**
* Spiral Framework.
*
* @license MIT
* @author Anton Titov (Wolfy-J)
*/
declare(strict_types=1);
namespace Spiral\Tests\Framework\Database;
use Spiral\Database\Database;
use Spiral\Database\Exception\DBALException;
use Spiral\Tests\Framework\ConsoleTest;
class DescribeTest extends ConsoleTest
{... | mit |
Leo-g/Flask-Scaffold | app/templates/static/node_modules/@angular/language-service/src/types.d.ts | 11395 | /**
* @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
*/
/// <amd-module name="@angular/language-service/src/types" />
import { CompileDirectiveMetadata, CompileMetadataResol... | mit |
vishnu4/WebpackMVC5 | WebpackMVC5App/App_Start/RouteConfig.cs | 584 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace WebpackMVC5App
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/... | mit |
yht-fand/cardone-platform-usercenter | consumer-bak/src/test/java/top/cardone/func/v1/usercenter/org/M0003FuncTest.java | 3229 | package top.cardone.func.v1.usercenter.org;
import com.google.common.base.Charsets;
import com.google.common.collect.Maps;
import com.google.gson.Gson;
import top.cardone.ConsumerApplication;
import lombok.extern.log4j.Log4j2;
import lombok.val;
import org.apache.commons.io.FileUtils;
import org.junit.Assert;
import o... | mit |
cs2103jan2016-w13-4j/main | src/main/java/jfdi/logic/commands/ListCommand.java | 2420 | // @@author A0130195M
package jfdi.logic.commands;
import jfdi.logic.events.ListDoneEvent;
import jfdi.logic.interfaces.Command;
import jfdi.storage.apis.TaskAttributes;
import java.util.ArrayList;
import java.util.stream.Collectors;
/**
* @author Liu Xinan
*/
public class ListCommand extends Command {
publi... | mit |
computist/onlineSnack | public/javascripts/directives/umDetailModal.js | 551 | (function () {
'use strict';
angular
.module('umDirectives', [])
.directive('umDetailModal', function() {
return {
restrict: 'E',
scope: {
show: '='
},
transclude: true,
link: function(scope, elemen... | mit |
Franky666/programmiersprachen-raytracer | external/boost_1_59_0/boost/test/test_tools.hpp | 2013 | // (C) Copyright Gennadiy Rozental 2001-2014.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
/// @file
/// @brief test tools comp... | mit |
lars-erik/Umbraco-CMS | src/Umbraco.Web/WebApi/MvcVersionCheck.cs | 250 | namespace Umbraco.Web.WebApi
{
internal class WebApiVersionCheck
{
public static System.Version WebApiVersion
{
get { return typeof(System.Web.Http.ApiController).Assembly.GetName().Version; }
}
}
}
| mit |
patillades/boardgame-timer | tests/reducers/playersTest.js | 6775 | import expect from 'expect';
import {
play,
tick,
pause,
resume,
addPlayer,
next,
changeName
} from 'state/actions';
import players, { initialState } from 'state/reducers/players';
describe('players reducer', function() {
const initialLength = initialState.ids.length;
it('should ha... | mit |
chaithu563/cisco_app | app/nested_view/nview.js | 2038 | 'use strict';
angular.module('myApp.nview', ['ui.router', 'ui.bootstrap'])
.config(['$stateProvider', function ($stateProvider) {
$stateProvider.state('nview', {
url: '/nview',
views: {
'': {
// url: '',
templateUrl: 'nested_view/nview.html',
... | mit |
olemstrom/simple-shop | app/Http/Controllers/Auth/AuthController.php | 1920 | <?php
namespace App\Http\Controllers\Auth;
use App\Admin;
use Validator;
use App\Http\Controllers\Controller;
use App\Cart;
use Illuminate\Foundation\Auth\ThrottlesLogins;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
class AuthController extends Controller
{
/*
|----------------------------... | mit |
dtecta/motion-toolkit | jointlimits/Types.hpp | 1500 | /* MoTo - Motion Toolkit
Copyright (c) 2016 Gino van den Bergen, DTECTA
Source published under the terms of the MIT License.
For details please see COPYING file or visit
http://opensource.org/licenses/MIT
*/
#ifndef IK_TYPES_HPP
#define IK_TYPES_HPP
#include <moto/Interval.hpp>
#include <moto/Vect... | mit |
LIN3S/WPSymfonyForm | spec/LIN3S/WPSymfonyForm/Action/MailerActionSpec.php | 917 | <?php
/*
* This file is part of the WPSymfonyForm plugin.
*
* Copyright (c) 2015-2016 LIN3S <info@lin3s.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace spec\LIN3S\WPSymfonyForm\Action;
use LIN3S\WPSymfonyForm\Acti... | mit |
uber/typed-request-client | test/typed-request-client.js | 22966 | 'use strict';
var test = require('tape');
var TypedRequestClient = require('../index.js');
var fakeStatsd = {
stats: [],
increment: function increment(key) {
this.stats.push({
type: 'increment',
key: key
});
},
timing: function timing(key, delta) {
this... | mit |
mtabini/chine | tests/test_fsm.js | 3560 | var Chine = require('../lib');
var expect = require('chai').expect;
describe('The finite-state machine system', function() {
it('should allow specifying a valid machine', function(done) {
var fsm = new Chine('initial');
fsm.state(function() {
this.name... | mit |
stivalet/PHP-Vulnerability-test-suite | Injection/CWE_91/safe/CWE_91__POST__func_FILTER-CLEANING-number_int_filter__ID_at-sprintf_%u_simple_quote.php | 1507 | <?php
/*
Safe sample
input : get the field UserData from the variable $_POST
Uses a number_int_filter via filter_var function
construction : use of sprintf via a %u with simple quote
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify... | mit |
youchan/gohra | samples/web/app/login.rb | 147 | require 'hyalite'
require 'menilite'
require_relative 'views/login_form'
Hyalite.render(Hyalite.create_element(LoginForm), $document[".content"])
| mit |
reimagined/resolve | templates/js/postcss/client/components/PostCSS.js | 268 | import React from 'react'
import styles from './PostCSS.css'
const PostCSS = () => (
<div className={styles.wrapper}>
<div className={styles.title}>
Hello World, this is my first component with postcss-modules!
</div>
</div>
)
export default PostCSS
| mit |
Ptomaine/nstd | include/external/agg/agg/src/ctrl/agg_bezier_ctrl.cpp | 11301 | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears i... | mit |
dowhle/jobs | src/pages/Vacancies/reducer.ts | 1164 | import { fromJS } from 'immutable';
import { pick } from 'ramda';
import Vacancy from 'models/Vacancy';
import {
LOAD_VACANCIES_PENDING, LOAD_VACANCIES_FULFILLED, LOAD_VACANCIES_REJECTED,
UPDATE_SEARCH_STRING,
} from './constants';
const initialModel = fromJS({
vacancies: [],
isLoading: true,
searchString: ... | mit |
lsdlab/awesome_coffice | coffice/views.py | 7718 | from django.shortcuts import render
from django.core import serializers
from django.http import JsonResponse
import urllib.parse
from random import randint
from coffice.models import Spot, Comment
from user.models import User
from rest_framework.decorators import api_view
from rest_framework.response import Response... | mit |
pgmemk/craigslist-search | main.js | 169 | // USAGE node main [city/www(for all cities)] [category] [start record] [hasPic]
var qc = require('./')
var argv = require('minimist')(process.argv.slice(2))
qc(argv)
| mit |
gochant/veronica | Gruntfile.js | 3738 |
'use strict';
module.exports = function (grunt) {
var path = require('path');
var banner = "/*!\n" +
" * Veronica v<%= pkg.version %>\n" +
" *\n" +
" * <%= pkg.homepage %>\n" +
" *\n" +
" * Copyright (c) <%= grunt.template.today('yyyy') %> <%= pkg.author.name %>\n" +
" * Released under the <%= _.pluck(p... | mit |
tarlepp/symfony-flex-backend | tests/Integration/Entity/LogRequestTest.php | 9691 | <?php
declare(strict_types = 1);
/**
* /tests/Integration/Entity/LogRequestTest.php
*
* @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>
*/
namespace App\Tests\Integration\Entity;
use App\Entity\ApiKey;
use App\Entity\LogRequest;
use App\Entity\User;
use App\Utils\Tests\PhpUnitUtil;
use App\Utils\Tests\Stri... | mit |
howardrya/AcademicCoin | src/test/test_bitcoin.cpp | 1756 | #define BOOST_TEST_MODULE Bitcoin Test Suite
#include <boost/test/unit_test.hpp>
#include <boost/filesystem.hpp>
#include "db.h"
#include "txdb.h"
#include "main.h"
#include "wallet.h"
#include "util.h"
CWallet* pwalletMain;
CClientUIInterface uiInterface;
extern bool fPrintToConsole;
extern void noui_connect();
st... | mit |
Zhanat1987/yii2basic | modules/catalog/views/comp-prep/_form.php | 1355 | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use app\assets\Select2Asset;
use app\widgets\CancelBtn;
/**
* @var yii\web\View $this
* @var app\modules\catalog\models\CompPrep $model
* @var yii\widgets\ActiveForm $form
*/
Select2Asset::register($this);
?>
<div class="comps-drugs-form">
<?php $form = ... | mit |
naokits/adminkun_viewer_old | Server/gaeo/html5lib/html5parser.py | 106815 | try:
frozenset
except NameError:
# Import from the sets module for python 2.3
from sets import Set as set
from sets import ImmutableSet as frozenset
try:
any
except:
# Implement 'any' for python 2.4 and previous
def any(iterable):
for element in iterable:
if element:
... | mit |
andrzej151/PSW | lab1/ASP.NET/Lista1/WebApplication8/WebApplication8/Site.Mobile.Master.designer.cs | 1771 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//-----------------------------------------... | mit |
Tape-Worm/Gorgon | Gorgon/Gorgon.Renderers/Gorgon2D/Services/_Interfaces/IGorgonTextureAtlasService.cs | 9802 | #region MIT
//
// Gorgon.
// Copyright (C) 2019 Michael Winsor
//
// 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 |
Kynarth/pyqtcli | pyqtcli/test/qrc.py | 2809 | import os
from lxml import etree
from functools import wraps
from pyqtcli.qrc import QRCFile
class GenerativeBase:
def _generate(self):
s = self.__class__.__new__(self.__class__)
s.__dict__ = self.__dict__.copy()
return s
def chain(func):
@wraps(func)
def decorator(self, *args,... | mit |
uppsaladatavetare/foobar-api | src/wallet/migrations/0011_auto_20170308_2258.py | 1410 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-08 22:58
from __future__ import unicode_literals
from decimal import Decimal
from django.db import migrations, models
import djmoney.models.fields
import enumfields.fields
import wallet.enums
import enum
class TrxType(enum.Enum):
FINALIZED = 0
P... | mit |
kennethlombardi/moai-graphics | engine/resources/userData/userData.lua | 462 | deserialize ({
{--Entry Number: {1}
["SHOW_TEMPLE"]="TRUE",
["BVAlgorithm"]="SphereCentroid",
["SHOW_BUNNY"]="FALSE",
["SHOW_LINE_GRID"]="TRUE",
["BVHAlgorithm"]="TopDown",
["SHOW_BSP_TREE"]="TRUE",
["MIN_FACES"]=300,
["SHOW_SPLIT_FACES"]="FALSE",
["highScore"]=145234.50653438,
["SHOW_DR... | mit |
signumsoftware/framework | Signum.React/JsonModelValidators/DefaultCollectionValidationStrategy.cs | 4540 | using Microsoft.AspNetCore.Mvc.ModelBinding;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
using System.Collections;
using System.Collections.Concurrent;
namespace Signum.React.JsonModelValidators;
/// <summary>
/// The default implementation of <see cref="IValidationStrategy"/> for a collection.
... | mit |
rmosolgo/react-rails-hot-loader | lib/react-rails-hot-loader.rb | 199 | require 'react-rails'
require 'hot_loader'
require 'hot_loader/asset_change_set'
require 'hot_loader/asset_path'
require 'hot_loader/server'
require 'hot_loader/railtie'
require 'hot_loader/version'
| mit |
hansacoin/hansacoin | src/qt/locale - Copy/bitcoin_bg.ts | 116940 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="bg" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About ShadowCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location lin... | mit |
MichaelGrafnetter/DSInternals | Src/Microsoft.Isam.Esent.Interop/BytesColumnValue.cs | 4757 | //-----------------------------------------------------------------------
// <copyright file="BytesColumnValue.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation.
// </copyright>
//-----------------------------------------------------------------------
namespace Microsoft.Isam.Esent.Intero... | mit |
active9/ooahh | ooahh/ooahhbuild.js | 1665 | var fs = require('fs'),
path = require('path'),
os = require('os');
module.exports = function(app,build,init,generate) {
app = path.resolve(app);
build = path.resolve(build);
console.log('Changing Into Directory:',app);
process.cwd(app);
console.log('Building In Directory:',build);
// Init
if (init)... | mit |
Chrutil/rtsequencer | rtsequencer/MidiSpy.cpp | 3180 | // Copyright (c) 2016 Christer Janson
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, publi... | mit |
kriss98/Softuni-Tech-Module-September-2017-Programming-Fundamentals | Programming-Fundamentals/09.Methods.-Debugging-And-Troubleshooting-Code/05.Temperature-Conversion/StartUp.cs | 454 | using System;
namespace _05.Temperature_Conversion
{
public class StartUp
{
public static void Main()
{
double fahrenheit = double.Parse(Console.ReadLine());
Console.WriteLine($"{ConvertToCelsius(fahrenheit):f2}");
}
public static double ConvertToCelsius... | mit |
mzikherman/metaphysics-1 | src/schema/v2/sale/__tests__/index.test.js | 16419 | /* eslint-disable promise/always-return */
import moment from "moment"
import _ from "lodash"
import { fill } from "lodash"
import { runQuery, runAuthenticatedQuery } from "schema/v2/test/utils"
import gql from "lib/gql"
describe("Sale type", () => {
const sale = {
id: "foo-foo",
_id: "123",
currency: "$... | mit |
genuinelucifer/CppSharp | tests/Common/Common.cpp | 9626 | #include "Common.h"
#include <string.h>
Foo::Foo()
{
auto p = new int[4];
for (int i = 0; i < 4; i++)
p[i] = i;
SomePointer = p;
SomePointerPointer = &SomePointer;
}
Foo::Foo(Private p)
{
}
const char* Foo::GetANSI()
{
return "ANSI";
}
void Foo::TakesTypedefedPtr(FooPtr date)
{
}
int Fo... | mit |