repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
sideci-sample/sideci-sample-twitter | spec/twitter/direct_message_spec.rb | 8639 | # coding: utf-8
require 'helper'
describe Twitter::DirectMessage do
before do
@old_stderr = $stderr
$stderr = StringIO.new
end
after do
$stderr = @old_stderr
end
describe '#==' do
it 'returns true when objects IDs are the same' do
direct_message = Twitter::DirectMessage.new(:id => 1, ... | mit |
DMDirc/Util | src/test/java/com/dmdirc/util/collections/ObservableListDecoratorTest.java | 4819 | /*
* Copyright (c) 2006-2017 DMDirc Developers
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge,... | mit |
jasonHooten/NightOwl | config/general.js | 323 | module.exports = {
'notifications' : {
enabled: false, //if disabled, no notifications will be sent
to: ['jason.hooten@gmail.com'], //default notification list if no alert_to is specified for host or url
postmark : {
from: 'jason.hooten@gmail.com',
api_key : 'your-postmark-key-here'
}
}
... | mit |
jarick/bx | src/BX/Validator/Collection/BooleanValidator.php | 2990 | <?php namespace BX\Validator\Collection;
class BooleanValidator extends BaseValidator
{
use \BX\String\StringTrait,
\BX\Translate\TranslateTrait;
/**
* @var mixed
*/
protected $true_value = 'Y';
/**
* @var mixed
*/
protected $false_value = 'N';
/**
* @var boolean
*/
protected $strict = false;
/**... | mit |
2She2/WebSevices | 07.Web-Services-Testing/BugTracker.Data/BugTrackerData.cs | 1397 | namespace BugTracker.Data
{
using System;
using System.Collections.Generic;
using BugTracker.Data.Contracts;
using BugTracker.Data.Repositories;
using BugTracker.Model;
public class BugTrackerData : IBugTrackerData
{
private readonly IBugTrackerDbContext context;
private ... | mit |
jilustrisimo/group-project-organizer | config/initializers/session_store.rb | 155 | # Be sure to restart your server when you modify this file.
Rails.application.config.session_store :cookie_store, key: '_group-project-organizer_session'
| mit |
Azure/azure-sdk-for-ruby | management/azure_mgmt_authorization/lib/profiles/v2018_03_01/authorization_v2018_03_01_profile_client.rb | 1399 | # encoding: utf-8
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
require 'profiles/v2018_03_01/authorization_module_definition'
require 'profiles/v2018_03_01/modules/authorization_profile_module'
module Azure::... | mit |
kevinkraft/RTS_3 | src/graphics/TextMaker.cpp | 891 | #include "SDL.h"
#include "SDL_image.h"
#include "SDL_ttf.h"
#include "TextMaker.h"
#include "logging.h"
TextMaker::TextMaker(std::string fontFile, SDL_Renderer *renderer, SDL_Window *window)
{
mRenderer = nullptr;
mWindow = nullptr;
mRenderer = renderer;
mWindow = window;
setFontFile(fontFile);
openFon... | mit |
bloomen/transwarp | docs/search/searchdata.js | 548 | var indexSectionsWithContent =
{
0: "abcdefghilmnprstuvw",
1: "abcdefilmnprstuvw",
2: "t",
3: "abcdefghilmnprstuvw",
4: "acnrw",
5: "rt",
6: "et",
7: "abcrw",
8: "t"
};
var indexSectionNames =
{
0: "all",
1: "classes",
2: "namespaces",
3: "functions",
4: "variables",
5: "typedefs",
6: "... | mit |
gleblebedev/asynccommand | src/WpfAsyncCommand.net40/AsyncCommandFactory.cs | 1692 | using System;
namespace WpfAsyncCommand
{
public static class AsyncCommandFactory
{
#region Public Methods and Operators
public static IAsyncCommand<T> Create<T>(Func<T> func)
{
return new AsyncCommand<T>((a) => func());
}
public static IAsyncCommand<T> Create<T>(Func<AsyncCallback, object, IAsyncRes... | mit |
solher/snakepit-seed | validators/sessions.go | 506 | package validators
import (
"github.com/Sirupsen/logrus"
"github.com/solher/snakepit"
"github.com/solher/snakepit-seed/models"
)
type (
Sessions struct {
snakepit.Validator
}
)
func NewSessions(l *logrus.Entry) *Sessions {
return &Sessions{
Validator: *snakepit.NewValidator(l),
}
}
func (v *Sessions) Out... | mit |
ConorOBrien-Foxx/Spacewar-KotH | bots/bot_SmartArrow.js | 2421 | function SmartArrow_setup(team) {
var botVars = {};
botVars['mpref'] = team + '_';
botVars['epref'] = team == 'red' ? 'blue_' : 'red_';
botVars['ecolor'] = team == 'red' ? 'blue' : 'red';
return botVars;
}
function SmartArrow_getActions(gameInfo, botVars) {
var actions = [];
var x... | mit |
cristianosoares/Sistema-Dotz | application/forms/Login.php | 675 | <?php
class Application_Form_Login extends Zend_Form
{
public function init()
{
$login = new Zend_Form_Element_Text('login');
$login->setLabel('USERNAME')
->setRequired(true)
->addFilter('StripTags')
->addFilter('StringTrim')
->addValidator('NotEmpty');
$senha = new Zend_Form_Elemen... | mit |
drorgl/node-alvision | src/opencv/features2d/BRISK.cc | 4143 | #include "BRISK.h"
namespace brisk_general_callback {
std::shared_ptr<overload_resolution> overload;
NAN_METHOD(callback) {
if (overload == nullptr) {
throw std::runtime_error("brisk_general_callback is empty");
}
return overload->execute("brisk", info);
}
}
Nan::Persistent<FunctionTemplate> B... | mit |
WsdlToPhp/PackageEws365 | src/ServiceType/EwsSend.php | 3879 | <?php
declare(strict_types=1);
namespace ServiceType;
use SoapFault;
use SoapClient\SoapClientBase;
/**
* This class stands for Send ServiceType
* @package Ews
* @subpackage Services
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class EwsSend extends SoapClientBase
{
/**
* Sets the ExchangeImpersonat... | mit |
iam1980/android-feedback | web/application/config/user_agents.php | 4747 | <?php if (! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| USER AGENT TYPES
| -------------------------------------------------------------------
| This file contains four arrays of user agent data. It is used by the
| User Agen... | mit |
farchanjo/webcron | src/main/java/br/eti/archanjo/webcron/quartz/listeners/impl/package-info.java | 54 | package br.eti.archanjo.webcron.quartz.listeners.impl; | mit |
PetarAIvanov/DocumentDBRepository | Azure.DocumentDBRepository/Azure.DocumentDBRepository/Partitioning/Util/DocumentClientHelper.cs | 15295 | namespace Azure.DocumentDBRepository.Partitioning
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Azure.Documents;
using Microsoft.Azure.Documents.Client;
using Microsoft.Azure.Documents.Linq;
usin... | mit |
GeethTharanga/TicTacToe | TicTacToe/UI/ConsoleUI.cs | 1319 | // Copyright (c) 2015 Geeth Tharanga
// Under the MIT licence - See licence.txt
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace TicTacToe.UI
{
public class ConsoleUI : IBasicUI
{
public event Event... | mit |
ttsuru/ecx | src/Ecx/EcBundle/Form/Type/CustomerReviewType.php | 2036 | <?php
namespace Ecx\EcBundle\Form\Type;
// Symfony
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
// Doctrine
use Doctrine\ORM\EntityRepository;
class CustomerReviewType extends AbstractType
{
public function buildForm(FormBuilder $builder, array $options)
{
$builder... | mit |
JonckheereM/Public | library/spoon/datagrid/source.php | 908 | <?php
/**
* Spoon Library
*
* This source file is part of the Spoon Library. More information,
* documentation and tutorials can be found @ http://www.spoon-library.com
*
* @package spoon
* @subpackage datagrid
*
*
* @author Davy Hellemans <davy@spoon-library.com>
* @author Tijs Verkoyen <tijs@spoon-lib... | mit |
sh0rtfuse/foodfinder | app/helpers/food_finders_helper.rb | 29 | module FoodFindersHelper
end
| mit |
ja-mes/experiments | Old/rent_app_accounts_test/config/initializers/devise.rb | 13225 | # 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|
# The secret key used by Devise. Devise uses this key to generate
# random tokens. Changing this key will render invalid all existing
# confirmat... | mit |
atbaker/account-verification-django | account_verification/forms.py | 300 | from django.contrib.auth.forms import UserCreationForm
from .models import User
class RegisterForm(UserCreationForm):
"""Form class for signing up new users"""
class Meta:
model = User
fields = ['first_name', 'last_name', 'email', 'password1', 'password2', 'phone_number']
| mit |
danniamar/AndroidClass | ViewApp/app/src/main/java/com/example/a64/viewapp/Fragments/WebFragment.java | 1065 | package com.example.a64.viewapp.Fragments;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import c... | mit |
CashStar/backbone-forms | src/editor.js | 4995 | /**
* Base editor (interface). To be extended, not used directly
*
* @param {Object} options
* @param {String} [options.id] Editor ID
* @param {Model} [options.model] Use instead of value, and use commit()
* @param {String} [options.key] The model attribute key. Required when using 'model'
*... | mit |
AdapTeach/code-exam | src/session/session.model.js | 820 | var mongoose = require('mongoose-q')(require('mongoose')),
Schema = mongoose.Schema;
var sessionSchema = new Schema({
name: {type: String, required: true},
creator: {type: String},
assessments: {type: [String], required: true},
students: {type: [Schema.ObjectId], ref: 'User'},
started: {type: B... | mit |
yetisno/RuleEngine | RuleEngineCore/src/test/java/org/yetiz/service/rulengine/core/condition/XORConditionGroupTest.java | 1765 | package org.yetiz.service.rulengine.core.condition;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.yetiz.service.rulengine.core.Intention;
import org.yetiz.service.rulengine.core.pattern.Pattern;
public class XORConditionGroupTest {
XORConditionGroup xorConditionGroup;
@Before
... | mit |
noisyneurons/nCore | bin/Proj3MixtureSelfOrgContextSuper.rb | 3305 | ### VERSION "nCore"
## ../nCore/bin/Proj3MixtureSelfOrgContextSuper.rb
# Specific Purpose for this experiment: Get SIMPLEST versions of self-org, context, AND combined with Supervised Learning, understood and "working."
# Purpose: Start of Project 7; project to split example set to learn sub-parts, and then combine ... | mit |
dopin/slack-silencer | mute.rb | 980 | #!/usr/bin/env ruby
require 'json'
require 'net/http'
require 'uri'
def get_channels(token:)
url = URI.parse "https://slack.com/api/channels.list?token=#{token}"
res = Net::HTTP.get url
json = JSON.parse res
end
def mute_channels_ids(token:, channels: [])
ch = get_channels token: token
ch_ids = {}
ch['ch... | mit |
robertlemke/flow-development-collection | TYPO3.Fluid/Tests/Functional/Form/Fixtures/Domain/Model/User.php | 1106 | <?php
namespace TYPO3\Fluid\Tests\Functional\Form\Fixtures\Domain\Model;
/* *
* This script belongs to the Flow framework. *
* *
* It is free soft... | mit |
mfine30/terminalboard-display | spec/app/components/application_spec.js | 525 | require('../spec_helper');
describe('Application', () => {
let PipelineList;
beforeEach(() => {
const Application = require('../../../app/components/application');
PipelineList = require('../../../app/components/pipeline_list');
spyOn(PipelineList.prototype, 'render').and.callThrough();
const conf... | mit |
ousttrue/ModelMotionIO | MMIO/Vector3.cs | 1233 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MMIO
{
public struct Vector2
{
public Single X;
public Single Y;
public Vector2(float x, float y)
{
X = x;
Y = ... | mit |
MaedaSaneyuki/7segmentTimer | 7segmentTimer/7segmentTimer/obj/Debug/android/src/md5d4dd78677dce656d5db26c85a3743ef3/WebViewRenderer.java | 2559 | package md5d4dd78677dce656d5db26c85a3743ef3;
public class WebViewRenderer
extends md5d4dd78677dce656d5db26c85a3743ef3.ViewRenderer_2
implements
mono.android.IGCUserPeer
{
/** @hide */
public static final String __md_methods;
static {
__md_methods =
"";
mono.android.Runtime.register ("Xamarin.Forms.Platf... | mit |
Mission3/migrations | Helpers/SharePoint/SPFieldHelper.cs | 4628 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Migrations;
using Microsoft.SharePoint;
using System.Collections.Specialized;
namespace GTMigrations.Helpers
{
public static class SPFieldHelper
{
public static void InsertFormulaFieldToList(string fieldName, s... | mit |
arsalansaad/sac | sponsors2017.php | 16028 | <html>
<head>
<title>Sponsors</title>
<link rel="icon" href="img/meet_14.png">
<link rel="stylesheet" href="css/materialize.min.css">
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="js/materialize.min.js"></script>
<meta name="viewport" content="width=... | mit |
Seondong/AGDISTIS | src/main/java/org/aksw/agdistis/webapp/RestletApplication.java | 550 | package org.aksw.agdistis.webapp;
import org.restlet.Application;
import org.restlet.Restlet;
import org.restlet.routing.Router;
public class RestletApplication extends Application {
/**
* Creates a root Restlet that will receive all incoming calls.
*/
@Override
public Restlet createInboundRoot() {
// Creat... | mit |
Strainy/react-native-http-server | android/src/main/java/com/strainy/RNHttpServer/RNHttpServerReactPackage.java | 1060 | package com.strainy.RNHttpServer;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.facebook.react.ReactPackage;
import com.strainy.RNHttpServer.RNHttpServerModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactA... | mit |
Zoddy/maze.js | maze.js | 2694 | 'use strict'
/**
* base function for creating a maze
*
* @param {number} sizeX count of rooms on the x axis
* @param {number} sizeY count of rooms on the y axis
*/
const maze = function (sizeX, sizeY) {
maze._directions = [{x: 0, y: -1}, {x: 1, y: 0}, {x: 0, y: 1}, {x: -1, y: 0}]
maze._links = {}
maze._path... | mit |
mrsu986/flammalge | src/Untan.java | 2373 | import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
//import twitter4j.StatusUpdate;
import twitter4j.Twitter;
import twitter4j.TwitterException;
import twitter4j.TwitterFactory;
import twitter4j.aut... | mit |
tanure/XFCalendar | Tanure.CalendarPOC/Models/CalendarModel.cs | 2694 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tanure.CalendarPOC.Models
{
public class CalendarModel
{
#region [ Constants ]
private const int MAX_WEEKS = 6;
private c... | mit |
ihasb33r/ef | web/js/maps.js | 2712 |
var addmap = function(id,lat, lng, ttl, name, phone) {
var latlng = new google.maps.LatLng(lat, lng);
directionsService = new google.maps.DirectionsService();
directionsDisplay = new google.maps.DirectionsRenderer();
var myOptions = {
zoom: 15,
center: latlng,
mapTypeId: google.... | mit |
nikhaldi/android-view-selector | src/robolectric2-test/test/com/nikhaldimann/viewselector/robolectric2/attributes/ViewAttributesTest.java | 590 | package com.nikhaldimann.viewselector.robolectric2.attributes;
import org.junit.runner.RunWith;
import com.nikhaldimann.viewselector.robolectric2.testutil.Robolectric2ViewFactory;
import com.nikhaldimann.viewselector.test.abstrakt.attributes.AbstractViewAttributesTest;
import com.nikhaldimann.viewselector.test.util.V... | mit |
homobel/makebird-node | test/projects/large/c551.js | 52 | //~ name c551
alert(c551);
//~ component c552.js
| mit |
ashelley/postcss-selector-parser | src/processor.js | 583 | 'use strict';
import tokenize from './tokenize';
import Root from './selectors/root';
import Parser from './parser';
export default class Processor {
constructor (func) {
this.func = func || function noop () {};
return this;
}
process (selectors) {
let input = new Parser({
... | mit |
scalation/fda | scalation_1.3/scalation_modeling/src/main/scala/scalation/analytics/fda/B_Spline.scala | 19682 |
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
/** @author John Miller, Michael Cotterell, Hao Peng, Dong-Yu Yu
* @version 1.2
* @date Thu Sep 22 21:45:58 EDT 2016
* @see LICENSE (MIT style license file).
*
* @see en.wikipedia.org/wiki/B-spline
* @see cran.r-... | mit |
Coding/Coding-Android | app/src/main/java/net/coding/program/common/ui/emoji/EmojiFragment.java | 8098 | package net.coding.program.common.ui.emoji;
import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.wi... | mit |
ChronosWS/material2 | src/lib/tabs/tab-label.ts | 757 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {Directive, TemplateRef, ViewContainerRef} from '@angular/core';
import {CdkPortal} from '@angular/cdk/portal'... | mit |
Zyst/learning-react | react-router-tutorial/modules/Repo.js | 175 | import React from 'react';
export default React.createClass({
render() {
return (
<div>
<h2>{this.props.params.repoName}</h2>
</div>
)
}
});
| mit |
sachinlala/SimplifyLearning | algorithms/src/test/java/com/sl/algorithms/search/pigeonhole/MNFinderTest.java | 4815 | package com.sl.algorithms.search.pigeonhole;
import com.sl.algorithms.core.interfaces.search.pigeonhole.MissingNumberFinder;
import org.junit.Assert;
import org.junit.Test;
public class MNFinderTest {
private MissingNumberFinder missingNumberFinder = new LinearTimeMNFinder();
@Test
public void testFindMissing... | mit |
dbernheisel/ruby_challenges | challenge_07_enumerable.rb | 1683 | require 'minitest/autorun'
require 'minitest/pride'
# Write a series of methods which use the .any, .all, .map, .select, .reject, and
# .reduce methods in Enumerable. Each of your methods should be one line.
# WRITE YOUR CODE HERE. In this challenge, names longer than 5 characters are
# considered long.
## LEAVE ... | mit |
marcjohnstonuw/bingo-gen | index.js | 2785 | const express = require('express');
const app = express();
const bookshelf = require('./server/Bookshelf');
const bodyParser = require('body-parser');
const jwt = require('express-jwt');
const jwksRsa = require('jwks-rsa');
const jwks = require('jwks-rsa');
const jwt_decode = require('jwt-decode');
// const cookieParse... | mit |
amitkaps/djembeviz | viz/remap/sketch.js | 2801 | // Visualise the frequency log domain using FFT
var mic
var song;
var analyzer;
// Array of amplitude values (-1 to +1) over Frequency.
var samples = [];
var currentSource = "mic";
// Create Bass Band and Slider variable
var bassBand = 10;
var bassSlider;
var maxBand;
var maxValue;
var bass;
function preload() {
... | mit |
pioug/trivia-reddit | src/constants.js | 131 | const DEFAULT_SUBREDDITS = [
"/r/askscience",
"/r/explainlikeimfive",
"/r/todayilearned",
];
export { DEFAULT_SUBREDDITS };
| mit |
hanswolff/dedilib.core | src/test/Test.DediLib/Collections/TestTimedDictionary.cs | 12827 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using DediLib.Collections;
using Xunit;
using System.Linq;
namespace Test.DediLib.Collections
{
public class TestTimedDictionary
{
[Fact]
public void Constructor_Defa... | mit |
leifos/tango_with_django_17 | tango_with_django_project_17/urls.py | 1014 | from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
from registration.backends.simple.views import RegistrationView
class MyRegistrationView(RegistrationView):
def get_success_url(selfself,request, user):
... | mit |
wagenet/broccoli_rails | spec/dummy/node_modules/broccoli-static-compiler/.gittags.rb | 630 | $tags_cache = {"4ea11aff647dba5bd2bb485b9e140a4094a71e5b"=>"4ea11aff647dba5bd2bb485b9e140a4094a71e5b", "dd61ea79c05ecee81f6e03a0ff33276b3b11ce21"=>"dd61ea79c05ecee81f6e03a0ff33276b3b11ce21", "dd51c7afc7840e0431b0d268942457686236babe"=>"dd51c7afc7840e0431b0d268942457686236babe", "ecdabdf1904c42b99ee6282afd9790d1531a6a73... | mit |
elsennov/android-ripple-background | library/src/main/java/com/skyfishjy/library/RippleBackground.java | 6505 | package com.skyfishjy.library;
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.util.AttributeSet;
import... | mit |
codingsince1985/UVa | 474/474.go | 520 | // UVa 474 - Heads / Tails Probability
package main
import (
"fmt"
"os"
)
func calc(n int) (float64, int) {
base, power := 5.0, 1
for i := 2; i <= n; i++ {
base *= 0.5
for base < 1 {
base *= 10
power++
}
}
return base, power
}
func main() {
in, _ := os.Open("474.in")
defer in.Close()
out, _ := ... | mit |
Domeee/chlycontainer | ChlyContainer/ChlyContainer/ChlyContainer.cs | 8987 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace ChlyContainer
{
/// <summary>
/// A lightweight dependency injection container.
/// </summary>
public class ChlyContainer : IDependencyContainer
{
/// <summary>
/// Store for registrations... | mit |
eanlain/calligraphy | lib/generators/calligraphy/install_generator.rb | 513 | # frozen_string_literal: true
require 'rails/generators/base'
module Calligraphy
module Generators
# Generator used to copy Calligraphy initializer over to your application.
class InstallGenerator < ::Rails::Generators::Base
source_root File.expand_path('../../templates', __FILE__)
desc 'Create... | mit |
vapkarian/soccer-analyzer | src/versions/v0.py | 187 | from src.models import ScibetMatch
from src.settings import match_cache
@match_cache
def prediction(match: ScibetMatch):
if not match.full_data:
return None
return True
| mit |
npruehs/slash-tournament | app/org/slashgames/tournament/tournaments/modelcontrollers/MatchModelController.java | 2299 | package org.slashgames.tournament.tournaments.modelcontrollers;
import java.util.List;
import org.slashgames.tournament.auth.modelcontrollers.UserModelController;
import org.slashgames.tournament.auth.models.User;
import org.slashgames.tournament.cms.formdata.MatchData;
import org.slashgames.tournament.tournaments.mo... | mit |
mahluz/hookyouup | application/modules/beranda/views/profile/header.php | 6652 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
... | mit |
eurofurence/ef-app_android | app/src/main/java/io/swagger/client/model/SendPrivateMessageRequest.java | 4081 | package io.swagger.client.model;
import io.swagger.annotations.*;
import com.google.gson.annotations.SerializedName;
@ApiModel(description = "")
public class SendPrivateMessageRequest {
@SerializedName("RecipientUid")
private String recipientUid = null;
@SerializedName("AuthorName")
private... | mit |
talantdev/talant-wallet | src/qt/transactionview.cpp | 15151 | #include "transactionview.h"
#include "transactionfilterproxy.h"
#include "transactionrecord.h"
#include "walletmodel.h"
#include "addresstablemodel.h"
#include "transactiontablemodel.h"
#include "talantunits.h"
#include "csvmodelwriter.h"
#include "transactiondescdialog.h"
#include "editaddressdialog.h"
#include "opt... | mit |
adzap/not_only_but_also | spec/not_only_but_also_spec.rb | 3151 | require 'spec_helper'
describe NotOnlyButAlso do
before do
Object.send(:remove_const, :Post) if Object.const_defined?(:Post)
Object.send(:remove_const, :Comment) if Object.const_defined?(:Comment)
ActiveSupport::Dependencies.loaded = []
Post.class_eval do
class << self
attr_accessor ... | mit |
esbencarlsen/vivego | src/vivego.MessageBroker.Host/MessageBrokerHub.cs | 2670 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;
using Microsoft.AspNetCore.SignalR;
using Microsoft.Net.Http.Headers;
using vivego.MessageBroker.Abstractions;
using vivego.MessageBroker.Client.Http;
namespace vivego.MessageBroker.Host;
publ... | mit |
spolyak/satori-site | routes/views/post.js | 1882 | var keystone = require('keystone');
var Post = keystone.list('Post');
PostComment = keystone.list('PostComment');
exports = module.exports = function(req, res) {
var view = new keystone.View(req, res),
locals = res.locals;
// Init locals
locals.section = 'blog';
locals.filters = {
post: req.params.post
... | mit |
Jrocam/UnidosEnSalud | src/app/interacciones/nogubernamentales/nogubernamentales.component.spec.ts | 705 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NogubernamentalesComponent } from './nogubernamentales.component';
describe('NogubernamentalesComponent', () => {
let component: NogubernamentalesComponent;
let fixture: ComponentFixture<NogubernamentalesComponent>;
beforeEach(a... | mit |
maveron58/indiana | positioning/links/collect/__init__.py | 110 | from .average import AverageRssis
from .permutations import Permutations
from .time_related import TimeRelated | mit |
azaika/OpenSiv3D | Siv3D/src/Siv3D/Console/SivConsole.cpp | 485 | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2018 Ryo Suzuki
// Copyright (c) 2016-2018 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/Console.hpp>
# include "../Si... | mit |
phpservicebus/core | src/Pipeline/Pipeline.php | 1389 | <?php
namespace PSB\Core\Pipeline;
class Pipeline implements PipelineInterface
{
/**
* @var PipelineStepInterface[]
*/
private $stepList;
/**
* @param PipelineStepInterface[] $stepList
*/
public function __construct(array $stepList)
{
$this->stepList = $stepList;
}... | mit |
Yipit/pyeqs | pyeqs/dsl/match_all.py | 257 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
class MatchAll(dict):
def __init__(self):
super(MatchAll, self).__init__()
self._build_dict()
def _build_dict(self):
self["match_all"] = {}
| mit |
jtjenkins/my-school | spec/views/students/show.html.erb_spec.rb | 275 | require 'spec_helper'
describe "students/show" do
before(:each) do
@student = assign(:student, stub_model(Student))
end
it "renders attributes in <p>" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
end
end
| mit |
Syafiqq/server-gardu-reporter | raw/assets/js/layout/auth/login/admin/auth_login_admin_common_layout.js | 4442 | /**
* This <server-gardu-reporter> project created by :
* Name : syafiq
* Date / Time : 28 June 2017, 11:03 PM.
* Email : syafiq.rezpector@gmail.com
* Github : syafiqq
*/
(function ($)
{
$(function ()
{
NProgress.configure({
showSpinner: false,
templa... | mit |
takzhanov/otus-java-2017-10-takzhanov-yury | hw09-myorm/src/main/java/io/github/takzhanov/umbrella/hw09/myorm/DataSetDaoMyOrmImpl.java | 3075 | package io.github.takzhanov.umbrella.hw09.myorm;
import io.github.takzhanov.umbrella.hw09.common.DataSetDao;
import io.github.takzhanov.umbrella.hw09.common.Executor;
import io.github.takzhanov.umbrella.hw09.domain.DataSet;
import io.github.takzhanov.umbrella.hw09.domain.UserDataSet;
import org.slf4j.Logger;
import or... | mit |
nagoring/jp-address | src/Nago/JpAddress/StreetData/6/6364.php | 255 | <?php return ['63640002' => '内町','63640009' => '及位','63640003' => '大沢','63640004' => '大滝','63640006' => '川ノ内','63640008' => '差首鍋','63640010' => '平岡','63640001' => '新町','63640007' => '木ノ下','63640005' => '釜淵',]; | mit |
philholden/Fireflies | install/app.js | 667 |
/**
* Module dependencies.
*/
var express = require('express')
, routes = require('./routes')
, http = require('http');
var app = express();
app.configure(function(){
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
app.use(express.favicon());
app.use(express.logger('dev'));
a... | mit |
kswoll/npeg | PEG/Proxies/Proxy.cs | 14751 | using System;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using PEG.Proxies.Extensions;
namespace PEG.Proxies
{
/// <summary>
/// Generates proxies for the following usage scenarios:<ul>
///
/// <li>Create a proxy on a base class where the proxy class should override virtu... | mit |
thesebas/opacclient | opacclient/libopac/src/test/java/de/geeksfactory/opacclient/apis/IOpacAccountTest.java | 1702 | package de.geeksfactory.opacclient.apis;
import org.json.JSONObject;
import org.jsoup.Jsoup;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import de.geeksfactory.opacclient.objects.LentIt... | mit |
Xal3ph/MultipleDatePickerX | Gruntfile.js | 3182 | /*global module:false*/
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean:{
build: {
src: ['dist/*.css', 'dist/*.js']
}
},
concat: {
options: {
separator: ';'
... | mit |
Sugarfooot/VeggyBot | Assets/Invector-3rdPersonController/Scripts/FootStep/vInstantiateStepMark.cs | 803 | using UnityEngine;
public class vInstantiateStepMark : MonoBehaviour
{
public GameObject stepMark;
public LayerMask stepLayer;
public float timeToDestroy = 5f;
void StepMark(Transform _transform)
{
RaycastHit hit;
if (Physics.Raycast(transform.position + new Vector3(0, 0.1f, 0), -... | mit |
lyhapp/ghost_zh | core/built/scripts/ghost-tests.js | 1318 | define("ghost/tests/test-helper",
["ember-cli/test-loader","ember/resolver","ember-mocha"],
function(__dependency1__, __dependency2__, __dependency3__) {
"use strict";
var TestLoader = __dependency1__["default"];
var Resolver = __dependency2__["default"];
var setResolver = __dependency3__.setReso... | mit |
Dyala/Test | app/scripts/app.js | 6128 | 'use strict';
/**
* @ngdoc overview
* @name sbAdminApp
* @description
* # sbAdminApp
*
* Main module of the application.
*/
angular
.module('sbAdminApp', [
'oc.lazyLoad',
'ui.router',
'ui.bootstrap',
'angular-loading-bar',
])
.config(['$stateProvider','$urlRouterProvider','$ocLazyLoadProvider',funct... | mit |
ekristen/node-phpjs | lib/stream/stream_is_local.js | 436 | module.exports = function stream_is_local (stream_or_url) {
// http://kevin.vanzonneveld.net
// + original by: Brett Zamir (http://brett-zamir.me)
// * example 1: stream_is_local('/etc');
// * returns 1: true
if (typeof stream_or_url === 'string') {
return ((/^(https?|ftps?|ssl|tls):/).test(str... | mit |
linde002/gstandaard-bundle | Model/GsCoderingGedifferentieerdeTarieven.php | 246 | <?php
namespace PharmaIntelligence\GstandaardBundle\Model;
use PharmaIntelligence\GstandaardBundle\Model\om\BaseGsCoderingGedifferentieerdeTarieven;
class GsCoderingGedifferentieerdeTarieven extends BaseGsCoderingGedifferentieerdeTarieven
{
}
| mit |
joaomoreno/vscode | src/vs/platform/url/node/urlService.ts | 1023 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | mit |
Brocco/angular-cli | tests/legacy-cli/e2e/tests/i18n/legacy.ts | 10578 | import * as express from 'express';
import { resolve } from 'path';
import { getGlobalVariable } from '../../utils/env';
import { appendToFile, copyFile, expectFileToExist, expectFileToMatch, replaceInFile, writeFile } from '../../utils/fs';
import { installPackage } from '../../utils/packages';
import { ng } from '../... | mit |
victor-gil-sepulveda/PhD-ANMPythonHelpers | calc_confs_mode_overlap.py | 3656 | '''
Created on 26/10/2015
@author: victor
'''
# one time script!
import os
from prody.proteins.pdbfile import parsePDB
from prody.dynamics.anm import ANM
import numpy
from anmichelpers.comparison.comparison import cumulative_overlap, overlap
from anmichelpers.tools.tools import norm
if __name__ == '__main__':
d... | mit |
nextmat/yui-rails | test/dummy/config/environments/test.rb | 1521 | Dummy::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for the test suit... | mit |
relimited/HearthSim | src/test/java/com/hearthsim/test/spell/TestHammerOfWrath.java | 4796 | package com.hearthsim.test.spell;
import com.hearthsim.card.Card;
import com.hearthsim.card.basic.spell.HammerOfWrath;
import com.hearthsim.card.minion.Minion;
import com.hearthsim.card.minion.MinionMock;
import com.hearthsim.exception.HSException;
import com.hearthsim.model.BoardModel;
import com.hearthsim.model.Play... | mit |
idxos/charadesagainstcivilizedsociety.com | app/config.js | 970 | 'use strict';
// Declare app level module which depends on filters, and services
angular.module('myApp.config', [])
// version of this seed app is compatible with angularFire 1.0.0
// see tags for other versions: https://github.com/firebase/angularFire-seed/tags
.constant('version', '1.0.0')
// where to redi... | mit |
stevenandrewcarter/exercism | python/pangram/pangram_test.py | 992 | # -*- coding: utf-8 -*-
import unittest
from pangram import is_pangram
class PangramTests(unittest.TestCase):
def test_empty_string(self):
self.assertFalse(is_pangram(''))
def test_valid_pangram(self):
self.assertTrue(
is_pangram('the quick brown fox jumps over the lazy dog'))
... | mit |
karim/adila | database/src/main/java/adila/db/ac70cv.java | 218 | // This file is automatically generated.
package adila.db;
/*
* Archos 70 Copper
*
* DEVICE: ac70cv
* MODEL: Archos 70 Copper
*/
final class ac70cv {
public static final String DATA = "Archos|70 Copper|";
}
| mit |
bitlek/bitlek | src/qt/locale/bitcoin_fi.ts | 112797 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="fi" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Bitlek</source>
<translation>Tietoa Bitlekista</translation>
</m... | mit |
xiguaaxigua/xiguaaxigua | fastblog/comment.php | 1186 | <?php
/**
* @package WordPress
* @subpackage Fast_Blog_Theme
* @since Fast Blog 1.0
*/
?>
<!-- Comment -->
<li id="comment-<?php comment_ID(); ?>" class="comment">
<div class="content level-<?php echo min($depth, 5); ?>">
<?php if (!$comment->comment_approved): ?>
<p><em><?php _e('Your comment is... | mit |
paralleltree/ProgressiveTweet | ProgressiveTweet/Properties/Resources.Designer.cs | 3712 | //------------------------------------------------------------------------------
// <auto-generated>
// このコードはツールによって生成されました。
// ランタイム バージョン:4.0.30319.34209
//
// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、
// コードが再生成されるときに損失したりします。
// </auto-generated>
//---------------------------------------------------------... | mit |
klibs/klibs_web | src/systemjs.config.js | 1638 | /**
* System configuration for Angular samples
* Adjust as necessary for your application needs.
*/
(function (global) {
System.config({
paths: {
// paths serve as alias
'npm:': 'node_modules/'
},
// map tells the System loader where to look for things
map: {
// our app is within ... | mit |
acropolium/Rest4Net | src/Rest4Net.BitLy/Responses/IValidDomain.cs | 164 | namespace Rest4Net.BitLy.Responses
{
public interface IValidDomain
{
string Domain { get; }
bool BitlyProDomain { get; }
}
}
| mit |