code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
using System.Reflection;
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: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")... | solr-express/solr-express | sample/SimpleUse.Net46WithSimpleInjector/Properties/AssemblyInfo.cs | C# | mit | 806 |
package org.lff.plugin.dupfinder;
import org.lff.plugin.dupfinder.vo.SourceVO;
import javax.swing.table.AbstractTableModel;
import java.util.*;
/**
* @author Feifei Liu
* @datetime Jul 10 2017 13:54
*/
public class DuplicatesTableModel extends AbstractTableModel {
static final String[] NAMES = new String[]{"... | lff0305/duplicateClassFinder | src/org/lff/plugin/dupfinder/DuplicatesTableModel.java | Java | mit | 1,932 |
using OmniConf.Core.Interfaces;
namespace OmniConf.Web
{
public class SiteSettings : ISiteSettings
{
public int SiteConferenceId { get; set; }
}
}
| ardalis/OmniConf | src/OmniConf.Web/SiteSettings.cs | C# | mit | 171 |
// Simple JavaScript Templating
// Heavily based on: John Resig - http://ejohn.org/blog/javascript-micro-templating/
var argName = 'data';
function getFuncBody(str) {
return argName+"="+argName+"||{};var p=[];p.push('"
+ str
.replace(/[\r\t\n]/g, " ")
.split("<%").join("\t")
.replace(/((^|%>)[^\t]*)'... | theakman2/node-modules-mtmpl | lib/index.js | JavaScript | mit | 756 |
<?php
/**
* Created by PhpStorm.
* Author: Misha Serenkov
* Email: mi.serenkov@gmail.com
* Date: 30.11.2016 11:39
*/
namespace miserenkov\sms\client;
use miserenkov\sms\exceptions\BalanceException;
use miserenkov\sms\exceptions\Exception;
use miserenkov\sms\exceptions\SendException;
use miserenkov\sms\exceptions... | miserenkov/yii2-sms | src/client/SoapClient.php | PHP | mit | 8,357 |
/*
Edison is designed to be simpler and more performant unit/integration testing framework.
Copyright (c) 2015, Matthew Kelly (Badgerati)
Company: Cadaeic Studios
License: MIT (see LICENSE for details)
*/
using System;
namespace Edison.Engine.Core.Exceptions
{
public class ParseException : Exception
{
... | Badgerati/Edison | Edison.Engine/Core/Exceptions/ParseException.cs | C# | mit | 406 |
module Bondora
VERSION = "0.2.0"
end
| cschritt/bondora | lib/bondora/version.rb | Ruby | mit | 39 |
<?php
namespace MN\PlayerBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http://symfony.c... | mark-newman/footy | src/MN/PlayerBundle/DependencyInjection/Configuration.php | PHP | mit | 873 |
#ifndef __tcode_byte_buffer_h__
#define __tcode_byte_buffer_h__
#include <tcode/block.hpp>
namespace tcode {
/*!
@class byte_buffer
@brief memory block Á¶ÀÛ °ü·Ã ÀÎÅÍÆäÀ̽º
@author tk
@detail ¸î¸î ÀÎÅÍÆäÀ̽º ( rd_ptr / wr_ptr / etc ) µîÀº ACE message_block µî¿¡¼ ÂüÁ¶\n
³»°¡ »ç¿ëÇÏ±â ÆíÇϵµ·Ï Á¤¸®ÇÑ class\n
³»... | aoziczero/tcode | include/tcode/byte_buffer.hpp | C++ | mit | 2,754 |
<?php
namespace FromSelect\ServiceProvider;
use FromSelect\Controller\ControllerDecorator;
use FromSelect\DecoratingCallableResolver;
use FromSelect\FromSelect;
class RouteServiceProvider implements ServiceProviderInterface
{
/**
* Provides routes for application.
*
* @param FromSelect $app
*... | Albert221/FromSelect | src/ServiceProvider/RouteServiceProvider.php | PHP | mit | 671 |
<main>
<div class="container1">
<div id="liste" class="row z-depth-1" style="margin-bottom: 80px">
<div class="col s12">
<h2 class="header">Liste des OPR <a href="#importer" class="modal-trigger waves-effect waves-light btn blue">Importer</a> </h2>
<div class="row... | raoultahin/aropa | application/views/liste_opr.php | PHP | mit | 6,593 |
using Medallion.Threading.Internal;
using Medallion.Threading.Redis.RedLock;
using StackExchange.Redis;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Medallion.Threading.Redis.Primitives
{
internal class RedisMutexPrimitive : IRedLock... | madelson/DistributedLock | DistributedLock.Redis/Primitives/RedisMutexPrimitive.cs | C# | mit | 2,369 |
<?php
/*
* This file is part of the Behat Gherkin.
* (c) Konstantin Kudryashov <ever.zet@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Behat\Gherkin\Node;
/**
* Represents Gherkin Scenario.
*
* @author K... | Behat/Gherkin | src/Behat/Gherkin/Node/ScenarioNode.php | PHP | mit | 2,730 |
#include "../gc/GC.h"
#include "../misc/Debug.h"
#include "../misc/NativeMethod.h"
#include "../misc/Option.h"
#include "../misc/Utils.h"
#include "../runtime/JavaClass.h"
#include "../runtime/JavaHeap.hpp"
#include "../runtime/MethodArea.h"
#include "../runtime/RuntimeEnv.h"
#include "YVM.h"
YVM::ExecutorThreadPool Y... | racaljk/yvm | src/vm/YVM.cpp | C++ | mit | 4,611 |
'use strict';
var nodeSassImport = require('../');
var test = require('tape');
var sass = require('node-sass');
test('base:function:test', function (t) {
t.ok(typeof nodeSassImport === 'function');
t.end();
});
test('base:importer:test', function (t) {
sass.render({
file: 'test/fixtures/main.scss',
imp... | anarh/node-sass-import | test/index.js | JavaScript | mit | 830 |
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using PholioVisualisation.DataConstruction;
using PholioVisualisation.DataSorting;
using PholioVisualisation.PholioObjects;
namespace PholioVisualisation.DataConstructionTest
{
[TestClass]
publi... | PublicHealthEngland/fingertips-open | PholioVisualisationWS/DataConstructionTest/ParentChildAreaRelationshipBuilderTest.cs | C# | mit | 2,757 |
package rbfs.server;
import java.net.Socket;
import java.util.List;
import com.google.gson.*;
/**
* A thread that handles an incoming connection and responds to the embedded request.
* @author James Hoak
* @version 1.0
*/
final class ConnectionHandler implements Runnable {
// TODO null check, idiot
// TOD... | jhoak/RBFS | src/rbfs/server/ConnectionHandler.java | Java | mit | 3,453 |
"use strict";
const assert = require("assert");
const Message = require("../lib/vehicle-message");
describe("vehicle-message", () => {
it("get MQTT packet and return VehicleMessage data model", () => {
const msg = Message.from({
topic: "vehicle/foo",
payload: new Buffer(JSON.stringify({
time... | esmusssein/SNU-grad-proj | broker/test/vehicle-message.js | JavaScript | mit | 1,804 |
'use strict';
// http://stackoverflow.com/a/365853
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.toRad = toRad;
exports.getShortestDistance = getShortestDistance;
exports.getLonguestDistance = getLonguestDistance;
exports.getLonguestDistanceFromCoordinates = getLonguestDistanceFromCoordinat... | alexjab/node-simple-eta | lib/distances.js | JavaScript | mit | 1,850 |
namespace NwaDg.Web.Areas.HelpPage.ModelDescriptions
{
public class CollectionModelDescription : ModelDescription
{
public ModelDescription ElementDescription { get; set; }
}
} | nwadg/nwadg-website | NwaDg.Web/Areas/HelpPage/ModelDescriptions/CollectionModelDescription.cs | C# | mit | 196 |
module Memorandom
module Plugins
class URLParams < PluginTemplate
@description = "This plugin looks for interesting URL parameters and POST data"
@confidence = 0.50
# Scan takes a buffer and an offset of where this buffer starts in the source
def scan(buffer, source_offset)
buffer.scan(
/[%a-z0-9_\... | kn0/memorandom | lib/memorandom/plugins/url_params.rb | Ruby | mit | 679 |
import re
import struct
from traitlets import Bytes, Unicode, TraitError
# reference to https://stackoverflow.com/a/385597/1338797
float_re = r'''
(?:
[-+]? # optional sign
(?:
(?: \d* \. \d+ ) # .1 .12 .123 etc 9.1 etc 98.1 etc.
|
(?: \d+ \.? ) # 1. 12. 123. etc 1 12 123 etc.
)... | K3D-tools/K3D-jupyter | k3d/validation/stl.py | Python | mit | 1,932 |
<?php
/**
* This file is part of Gush package.
*
* (c) 2013-2014 Luis Cordova <cordoval@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Gush\Tests\Helper;
use Gush\Helper\EditorHelper;
/**
* @author Luis Cordova <cordova... | cordoval/gush-core | tests/Helper/EditorHelperTest.php | PHP | mit | 1,623 |
#ifndef LOCI_CollectionLocus
#define LOCI_CollectionLocus
#include "../core/Locus.hpp"
#include <vector>
class CollectionLocus : public Locus {
private:
protected:
std::vector<boost::any> population;
CollectionLocus();
CollectionLocus(std::vector<boost::any> population);
void setPopulation(std::vector<boost::... | NGTOne/libHierGA | include/loci/CollectionLocus.hpp | C++ | mit | 833 |
$(function() {
var background = chrome.extension.getBackgroundPage();
var defaultOptions = background.defaultOptions;
var options = {};
function createFrames() {
var frames = options.frames.split('\n');
$('.js-frame').remove();
for (var i = 0; i < frames.length; i++) {
var src = frames[i];
... | laurentguilbert/overseer | js/frames.js | JavaScript | mit | 1,827 |
<div class="white-area-content">
<div class="db-header clearfix">
<div class="page-header-title"> <span class="glyphicon glyphicon-user"></span> <?php echo lang("ctn_1") ?></div>
<div class="db-header-extra">
</div>
</div>
<ol class="breadcrumb">
<li><a href="<?php echo site_url("backend/admin") ?>"><?php e... | dodeagung/KLGH | application/views/admin/email_templates.php | PHP | mit | 1,032 |
class AddInfoFieldsToPhoto < ActiveRecord::Migration
def change
add_column :photos, :year, :string
add_column :photos, :place, :string
add_column :photos, :people, :text
end
end
| macool/antano | db/migrate/20140530001952_add_info_fields_to_photo.rb | Ruby | mit | 194 |
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: {
node: '12',
},
},
],
'@babel/preset-react',
],
};
| dannegm/danielgarcia | .babelrc.js | JavaScript | mit | 236 |
/*
* Module dependencies
*/
var conf = module.exports = require('nconf');
/* Last fallback : environment variables */
conf.env().argv();
/* Dev fallback : config.json */
conf.file(__dirname + '/../config.json');
/* Default values */
conf.defaults({
title: 'Meishengo',
debug: false,
port: 8000,
host: '... | dawicorti/meishengo | lib/conf.js | JavaScript | mit | 372 |
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... | frogocomics/SpongeAPI | src/main/java/org/spongepowered/api/item/inventory/entity/HumanInventory.java | Java | mit | 1,889 |
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015-2018 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Sphinx configuration."""
from __future__ import print_function
import os
# -- G... | inveniosoftware/invenio-search-ui | docs/conf.py | Python | mit | 10,173 |
#!/usr/bin/ruby
# file: xml-to-haml.rb
require 'rexml/document'
class XMLtoHAML
include REXML
def initialize(s)
doc = Document.new(s)
@haml = xml_to_haml(doc)
end
def to_s
@haml
end
def xml_to_haml(nodex, indent ='')
buffer = nodex.elements.map do |node|
attributex = ' '
... | jrobertson/xml-to-haml | lib/xml-to-haml.rb | Ruby | mit | 832 |
<?php
namespace AppBundle\Service\Crud;
use AppBundle\Service\Crud\Exception\EntityNotFound;
/**
* @author Alexandr Sibov<cyberdelia1987@gmail.com>
*/
interface DeleteInterface
{
/**
* Remove an entity
*
* @param mixed $identity
*
* @throws EntityNotFound
*/
public function del... | Cyberdelia1987/symfony-test | src/AppBundle/Service/Crud/DeleteInterface.php | PHP | mit | 337 |
<?php
namespace CarBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\HttpFoundation\Request;
... | aRastini/symfonyExample | src/CarBundle/Controller/DefaultController.php | PHP | mit | 1,759 |
/**
* Author: Carter
*/
#include <iostream>
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
using namespace std;
int main(int argc, char** argv) {
if (argc != 2) {
cout << "Incorrect number of arguments\nUsage: run.out output_file.png" << endl;
return 1;
}
const int width = 1920... | clccmh/RayTracingInOneWeekend | Ch1/src/create.cpp | C++ | mit | 921 |
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'image_zoomer'
| vdtejeda/Image_Zoomer | spec/spec_helper.rb | Ruby | mit | 82 |
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("Cl... | mkpetrov/Programming-Fundamentals-SoftUni-Jan2017 | Objects and Simple Classes/Closest Two Points/Properties/AssemblyInfo.cs | C# | mit | 1,412 |
module.exports = {
mixins: [__dirname],
fragmentsFile: '<rootDir>/fragmentTypes.json',
graphqlMockServerPath: '/graphql',
configSchema: {
fragmentsFile: {
type: 'string',
absolutePath: true,
},
graphqlSchemaFile: {
type: 'string',
absolutePath: true,
},
graphqlMockSch... | xing/hops | packages/apollo-mock-server/preset.js | JavaScript | mit | 493 |
package org.jinstagram.auth.model;
public class Constants {
public static final String INSTAGRAM_OAUTH_URL_BASE = "https://api.instagram.com/oauth";
public static final String ACCESS_TOKEN_ENDPOINT = INSTAGRAM_OAUTH_URL_BASE + "/access_token";
public static final String AUTHORIZE_URL = INSTAGRAM_OAUTH_URL_BASE... | thesocialstation/jInstagram | src/main/java/org/jinstagram/auth/model/Constants.java | Java | mit | 470 |
# -*- coding: utf-8 -*-
"""
Send many mails
===============
Send mail to students. The script consider two columns from
one spreadsheets. The first one is about the receivers,
the second one about the customized message for each of them.
"""
#########################################
# logging et import
import os
impo... | sdpython/ensae_teaching_cs | _doc/examples/automation/send_mails.py | Python | mit | 3,434 |
package org.mce.teknoservice.security;
import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler;
import org.springframework.stereotype.Component;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletReq... | MarcoCeccarini/teknoservice | src/main/java/org/mce/teknoservice/security/AjaxAuthenticationSuccessHandler.java | Java | mit | 881 |
from __future__ import unicode_literals
from django import template
from django.utils.html import mark_safe
from .. import conf
from ..models import Icon
register = template.Library()
@register.simple_tag
def svg_icons_icon(name, **kwargs):
filters = {'name__iexact': name}
value = ''
if kwargs.get('gr... | rouxcode/django-svg-icons | svg_icons/templatetags/svg_icons_tags.py | Python | mit | 1,258 |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace SoftJail.Data.Models
{
public class Mail
{
[Key]
[Required]
public int Id { get; set; }
[Required]
public string Description { get; set; }
... | Steffkn/SoftUni | 04.CSharpDB/02.EntityFrameworkCore/00.Exams/SoftJail/SoftJail/Data/Models/Mail.cs | C# | mit | 614 |
package com.passwordLib;
import android.content.Context;
import android.os.AsyncTask;
import com.jcraft.jsch.Channel;
import com.jcraft.jsch.ChannelSftp;
import com.jcraft.jsch.JSch;
import com.jcraft.jsch.JSchException;
import com.jcraft.jsch.Session;
import com.jcraft.jsch.SftpException;
public class SendPasswordT... | aarongolliver/SmartPass | src/com/passwordLib/SendPasswordTask.java | Java | mit | 1,660 |
class ValidateAddReminderDayOfMonthAndDeadlineDayOfMonth < ActiveRecord::Migration[6.1]
def change
validate_check_constraint :partner_groups, name: "deadline_day_of_month_check"
validate_check_constraint :partner_groups, name: "reminder_day_of_month_check"
validate_check_constraint :partner_groups, name: ... | rubyforgood/diaper | db/migrate/20220103232639_validate_add_reminder_day_of_month_and_deadline_day_of_month.rb | Ruby | mit | 386 |
import {
CHOOSE_MEMORY,
LOAD_PHOTO_ERROR,
LOAD_PHOTO_SUCCESS,
} from './constants';
export function chooseMemory({ id, index }) {
return {
type: CHOOSE_MEMORY,
id,
index,
};
}
export function photoLoadSuccess({
host,
gallery,
setCurrentMemory,
album,
id,
photoLink,
}) {
return {
... | danactive/history | ui/app/containers/App/actions.js | JavaScript | mit | 556 |
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp> // for 'map_list_of()'
#include <boost/foreach.hpp>
#include "checkpoints.h"
#include "m... | wrapperproject/wrapper | src/checkpoints.cpp | C++ | mit | 5,010 |
function saveUser({state, input}) {
state.set(['user', 'user'], input.user);
state.set(['session', 'jwt'], input.jwt);
}
export default saveUser;
| testpackbin/testpackbin | app/modules/home/actions/saveUser.js | JavaScript | mit | 151 |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zm-2 5.79V18h-3.52L12 20.48 9.52 18H6v-3.52L3.52 12 6 9.52V6h3.52L12 3.52 14.48 ... | kybarg/material-ui | packages/material-ui-icons/src/Brightness7Outlined.js | JavaScript | mit | 593 |
'use strict';
// Listens for the app launching then creates the window
chrome.app.runtime.onLaunched.addListener(function() {
var width = 600;
var height = 400;
chrome.app.window.create('index.html', {
id: 'main',
bounds: {
width: width,
height: height,
... | yogiekurniawan/JayaMekar-ChromeApp | app/scripts/main.js | JavaScript | mit | 454 |
var lint = require('mocha-eslint');
var paths = [
'src',
];
var options = {
// Note: we saw timeouts with the 2000ms mocha timeout setting,
// thus raised to 5000ms for eslint
timeout: 5000, // Defaults to the global mocha `timeout` option
};
// Run the tests
lint(paths, options); | iulia0103/taste-of-code | linter.js | JavaScript | mit | 293 |
<?php
/**
* @package dynamic-parameter-bundle
*/
namespace Jihel\Plugin\DynamicParameterBundle\HttpKernel;
use Jihel\Plugin\DynamicParameterBundle\DependencyInjection\Dumper\CustomContainerDumper;
use Symfony\Component\Config\ConfigCache;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Compo... | Jihell/dynamic-parameter-bundle | src/HttpKernel/Kernel.php | PHP | mit | 4,046 |
// The MIT License (MIT)
//
// Copyright (c) Andrew Armstrong/FacticiusVir 2020
//
// 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 r... | FacticiusVir/SharpVk | src/SharpVk/AllocationCallbacks.gen.cs | C# | mit | 4,718 |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Urals Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "wallet_ismine.h"
#include "key.h"
#include "keystore.h"
#include "script... | JohnMnemonick/UralsCoin | src/wallet/wallet_ismine.cpp | C++ | mit | 2,907 |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Identity_service {
private $ci;
public function __construct()
{
// to load ci instance
$this->ci =& get_instance();
}
public function set($User)
{
if(isset($User['id']) && isset($User['role']))
{
$this->ci->session->set_user... | trisetiobr/labscheduler | application/libraries/services/Identity_service.php | PHP | mit | 799 |
<?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2016, British Columbia Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softw... | zirajmohammed/ICHESS | index.php | PHP | mit | 10,294 |
using System;
namespace Agiil.Domain
{
public interface IIndictesSuccess
{
bool IsSuccess { get; }
}
}
| csf-dev/agiil | Agiil.Domain/IIndictesSuccess.cs | C# | mit | 116 |
var express = require('express');
var router = express.Router();
var fs = require('fs');
var instasync = require('instasync');
var helpers = instasync.helpers;
var queries = helpers.queries;
//set Content type
router.use(function(req,res,next){
res.header("Content-Type", "text/html");
res.header("X-Frame-Options","D... | Mewte/InstaSync | web/routes/rooms.js | JavaScript | mit | 1,039 |
<?php
namespace ORM\MainBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* GdConfigurations
*
* @ORM\Table(name="gd_configurations")
* @ORM\Entity
*/
class GdConfigurations
{
/**
* @var integer
*
* @ORM\Column(name="configuration_id", type="integer", nullable=false)
* @ORM\Id
* @... | Barbar76/ExpTech-PHP | src/ORM/MainBundle/Entity/GdConfigurations.php | PHP | mit | 4,351 |
#ifndef AWTIMETABLE_HPP
#define AWTIMETABLE_HPP
#include <string>
#include <vector>
#include <SFML/Graphics/Font.hpp>
namespace sf
{
class RenderWindow;
}
namespace aw
{
namespace priv
{
struct Player
{
std::string name;
float time;
sf::Color color;
Player() : Player("", 0, sf::Color::White)
... | AlexAUT/Kroniax_Cpp | include/modules/game/timeTable.hpp | C++ | mit | 1,196 |
package ordering;
import com.google.common.collect.Lists;
import com.google.common.collect.Ordering;
import org.junit.Before;
import org.junit.Test;
import java.util.Collections;
import java.util.List;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
public class OrderingExamples {
... | alexrios/guava-labs | src/test/java/ordering/OrderingExamples.java | Java | mit | 2,760 |
DEBUG = False
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', # Or path to database file i... | anler/django-paginator-ext | tests/settings.py | Python | mit | 5,356 |
/**
* body-checker
* A simple tool to protect your API against bad request parameters
*
* @param {Object} body request body
* @param {Object} options configuration parmaters
* @param {Function} cb callback function
*
*/
var check = require('check-types');
module.exports = function(body, options, cb) ... | luceracloud/body-checker | index.js | JavaScript | mit | 1,461 |
using System.Linq;
namespace Powercards.Core.Cards
{
[CardInfo(CardSet.Intrigue, 5, true)]
public class Upgrade : CardBase, IActionCard
{
#region methods
public void Play(TurnContext context)
{
context.ActivePlayer.DrawCards(1, context);
context.RemainingAct... | whence/powerlife | csharp/Core/Cards/Upgrade.cs | C# | mit | 2,052 |
require 'spec_helper'
describe Chouette::Exporter, :type => :model do
subject { Chouette::Exporter.new("test") }
describe "#export" do
let(:chouette_command) { double :run! => true }
before(:each) do
allow(subject).to receive_messages :chouette_command => chouette_command
end
it "should ... | afimb/ninoxe | spec/models/chouette/exporter_spec.rb | Ruby | mit | 739 |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ServiceFabric::V6_2_0_9
module Models
#
# Describes how the scaling should be performed
#
class ScalingPolicyDescription
... | Azure/azure-sdk-for-ruby | data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/models/scaling_policy_description.rb | Ruby | mit | 2,007 |
/// <reference path="0-bosun.ts" />
bosunApp.directive('tsResults', function() {
return {
templateUrl: '/partials/results.html',
link: (scope: any, elem, attrs) => {
scope.isSeries = v => {
return typeof (v) === 'object';
};
},
};
});
bosunApp.di... | seekingalpha/bosun | cmd/bosun/web/static/js/directives.ts | TypeScript | mit | 41,222 |
require "rdg/analysis/propagater"
module RDG
module Control
class Case < Analysis::Propagater
register_analyser :case
def prepare
@expression, *@consequences = nodes
end
def internal_flow_edges
nodes.each_cons(2).to_a
end
def start_node
@expression
... | mutiny/rdg | lib/rdg/control/case.rb | Ruby | mit | 400 |
import * as React from "react";
import * as ReactDOM from "react-dom";
import Start from "./awesome-sec-audit.tsx";
// Dedicating a file to this basic call allows us to import all major modules
// into test suites.
const item = document.getElementById("content");
if (item == null) {
console.log("Render container ... | technion/awesome-sec-audit | assets/awesome-sec-audit-run.tsx | TypeScript | mit | 402 |
'use strict';
/* Services */
angular.module('nhsApp.services', [])
.config(function($httpProvider){
delete $httpProvider.defaults.headers.common['X-Requested-With'];
})
.factory('nhsApiService', function($http) {
var nhsAPI = {};
nhsAPI.getLetters = function() {
return $http({
metho... | denniskenny/Nhs-Choices-Angular | app/js/services.js | JavaScript | mit | 1,529 |
require 'test_helper'
class UsersControllerTest < ActionController::TestCase
def setup
@user = users(:dave)
end
test 'should get new' do
get :new
assert_response :success
end
test 'should redirect update_user_filters when not logged in' do
patch :update_user_filters, params: { play_types: [... | steve-mcclellan/j-scorer | test/controllers/users_controller_test.rb | Ruby | mit | 1,478 |
<?php
namespace Analatica\ForfaitBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class DefaultController extends Controller
{
public function indexAction($name)
{
return $this->render('AnalaticaForfaitBundle:Default:index.html.twig', array('name' => $name));
}
}
| portalsway2/AnalaticaV2 | src/Analatica/ForfaitBundle/Controller/DefaultController.php | PHP | mit | 317 |
import * as decimal from 'break_infinity.js';
declare global {
interface Decimal {
cos(): Decimal
lessThanOrEqualTo(other: decimal.Decimal): boolean
lessThan(other: decimal.Decimal): boolean
greaterThan(other: decimal.Decimal): boolean
greaterThanOrEqualTo(other: decimal.Decimal): boolean
}
}... | scorzy/IdleAnt | src/index.d.ts | TypeScript | mit | 321 |
export { default } from 'ember-disqus/components/disqus-comment-count'; | sir-dunxalot/ember-disqus | app/components/disqus-comment-count.js | JavaScript | mit | 71 |
import re, sys, os
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = __file__
sys.exit(run())
| commitmachine/pg-hoffserver | pghoffserver/gunicorn_python.py | Python | mit | 131 |
package org.nkjmlab.twitter.util;
import java.io.File;
import java.io.FileReader;
import java.util.List;
import org.nkjmlab.twitter.conf.TwitterConfig;
import org.nkjmlab.util.io.FileUtils;
import org.nkjmlab.util.json.JsonUtils;
import net.arnx.jsonic.JSON;
import net.arnx.jsonic.JSONException;
import twitter4j.Sta... | nkjmlab/TweetAnalyzerCore | src/main/java/org/nkjmlab/twitter/util/TwitterFactory.java | Java | mit | 1,771 |
/* @flow */
require('./sharedMocks');
jest.mock('glob', () => ({
sync: jest.fn(() => ['path/to/main/entry.js']),
}));
jest.mock('fs-extra');
// $FlowIgnore
const entries = require('entries.json');
const buildEntries = require('../buildEntries');
const defaultGSConfig = require('../../defaults/glueStickConfig');
con... | TrueCar/gluestick | packages/gluestick/src/config/webpack/__tests__/buildEntries.test.js | JavaScript | mit | 2,533 |
/**
* Created by peter on 9/19/16.
*/
// ==UserScript==
// @name Super Rookie
// @namespace http://v.numag.net/grease/
// @description locate new posts on piratebay
// @include https://thepiratebay.org/top/*
// ==/UserScript==
(function () {
function $x() {
var x='';
... | motord/elbowgrease | grease/superrookie.user.js | JavaScript | mit | 2,103 |
/* @flow */
const babelJest = require('babel-jest');
module.exports = babelJest.createTransformer({
presets: [
[
'env',
{
targets: {
ie: 11,
edge: 14,
firefox: 45,
chrome: 49,
safari: 10,
node: '6.11',
},
modules: 'co... | boldr/boldr-ui | internal/jest/transform.js | JavaScript | mit | 489 |
import { name, autoService } from 'knifecycle';
import type { LogService } from 'common-services';
import type { JsonValue } from 'type-fest';
export type APMService<T = string> = (type: T, data: JsonValue) => void;
export default name('apm', autoService(initAPM));
const noop = () => undefined;
/**
* Application m... | nfroidure/whook | packages/whook-http-transaction/src/services/apm.ts | TypeScript | mit | 806 |
//******************************************************************************************************
// Serialization.cs - Gbtc
//
// Copyright © 2012, Grid Protection Alliance. All Rights Reserved.
//
// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See
// t... | rmc00/gsf | Source/Libraries/GSF.Core/Serialization.cs | C# | mit | 30,963 |
/**
* Created by gkarak on 28/7/2016.
*/
'use strict';
var yeoman = require('yeoman-generator');
var chalk = require('chalk');
var lodash = require('lodash');
var prompts = require('../../services/prompts');
var buildContext = require('../../services/build-context');
var pathNames = require('../../services/path-names... | Wtower/generator-makrina | generators/model/index.js | JavaScript | mit | 2,151 |
<?php
$color = strip_tags(htmlspecialchars($_POST['color']));
$age = strip_tags(htmlspecialchars($_POST['age']));
$industry = strip_tags(htmlspecialchars($_POST['industry']));
$message = strip_tags(htmlspecialchars($_POST['message']));
$to = 'christina.ccicolor@gmail.com';
$email_subject = "Feedback From Fundamental C... | KarismaSoni/CCI-Rewrite | app/bin/fundamental_contact.php | PHP | mit | 785 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Name: Ion Auth
*
* Version: 2.5.2
*
* Author: Ben Edmunds
* ben.edmunds@gmail.com
* @benedmunds
*
* Added Awesomeness: Phil Sturgeon
*
* Location: http://github.com/benedmunds/CodeIgniter-Ion-Auth
*
* Created: 10.01.2009
*
* ... | dbmeister/codeigniter3_hmvc_ion_auth | application/modules/auth/config/ion_auth.php | PHP | mit | 8,490 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using PlaylistSharpLib;
namespace PlaylistSharpTest.Unit
{
[TestFixture]
public class SerialTest
{
[Test]
public void Playlist_Avec3Elem_XPSF()
... | aloisdg/PlaylistSharp | PlaylistSharpTest.Unit/SerialTest.cs | C# | mit | 9,302 |
package com.maxifier.guice.mbean;
import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inject.Module;
import org.mockito.Mockito;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;
import org.testng.annotations.Test;
import javax.managem... | maxifier/x-guice | guice-mbean/src/test/java/com/maxifier/guice/mbean/DoubleStartTest.java | Java | mit | 2,347 |
using System;
using System.Collections.Generic;
using System.IO;
namespace Yu_Gi_Oh.Save_File
{
public class Stat_Save : Save_Data_Chunk
{
private const int NumberOfSaveStats = 43;
public Stat_Save()
{
Stats = new Dictionary<StatSaveType, long>();
}
... | Arefu/Wolf | Yu-Gi-Oh/Save File/Stat_Save.cs | C# | mit | 1,779 |
using System.Reflection;
[assembly: AssemblyVersion("1.3.6")]
[assembly: AssemblyFileVersion("1.3.6")]
[assembly: AssemblyInformationalVersion("1.3.6")]
| rbouallou/Zebus | src/SharedVersionInfo.cs | C# | mit | 157 |
module ApiHelper
private
def authenticate!(client = @client || :spy)
client = shipit_api_clients(client) if client.is_a?(Symbol)
@client ||= client
request.headers['Authorization'] = "Basic #{Base64.encode64(client.authentication_token)}"
end
end
| perobertson/shipit-engine | test/helpers/api_helper.rb | Ruby | mit | 266 |
<?php
/* @WebProfiler/Profiler/toolbar_js.html.twig */
class __TwigTemplate_6fb18f7e22ead7a1441adb0d4a6862fe4242ea7db82b2678bdfd08825c836861 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = a... | ProgrammeurAlpha/symfonyDemo | app/cache/dev/twig/7/f/7f05cc4652ffdaba5085bcba2a5647af8ca31a7b143c0d2fc3447f282b11e28f.php | PHP | mit | 10,693 |
# coding: utf-8
module Contentr
class HeadlineParagraph < Paragraph
COLORS = { 'Schwarz' => :black, 'Grau' => :grey, 'Blau' => :blue}
LEVELS = {
'Hauptüberschrift' => 1,
'Unterüberschrift Ebene 2' => 2,
'Unterüberschrift Ebene 3' => 3
}
field :headline, type: :string
field :colo... | metaminded/contentr-default-paragraphs | app/models/contentr/headline_paragraph.rb | Ruby | mit | 548 |
<?php
$config['google_api'] = array(
'url'=>'https://maps.googleapis.com/maps/api/place/nearbysearch/json',
'key'=>'AIzaSyCvWvb2h-QdQJJrUd8n7gIrpEDWmv-TCxk',
'zillow_building_lat_lon'=>'47.607849,-122.338108',
'default_search_radius'=>1610
); | jcow/lunch-recommender | application/config/google_api.php | PHP | mit | 248 |
require_relative 'spec_helper'
describe "Spring" do
before(:each) do
set_java_version(app.directory, jdk_version)
end
["1.6", "1.7", "1.8"].each do |version|
context "on jdk-#{version}" do
let(:jdk_version) { version }
context "spring-boot-webapp-runner" do
let(:app) { Hatchet::Runn... | vbansal22/paas_devbox | spec/spring_spec.rb | Ruby | mit | 1,948 |
package com.jakub.ajamarks.controllers;
import com.jakub.ajamarks.entities.Classroom;
import com.jakub.ajamarks.entities.Mark;
import com.jakub.ajamarks.entities.Student;
import com.jakub.ajamarks.services.showdataservices.StudentService;
import org.junit.Before;
import org.junit.Test;
import org.springframework.http.... | ajakuba/AJAmarks | AJAmarksWeb/src/test/java/com/jakub/ajamarks/controllers/StudentControllerTest.java | Java | mit | 13,384 |
using System;
using System.Collections.Generic;
using System.Threading;
using System.Timers;
using Timer = System.Timers.Timer;
namespace Peace.Message_Queue
{
public interface IMessageQueue
{
void Load(IEnumerable<QueueMessage> messages);
void Enqueue(QueueMessage message);
QueueMessa... | Khadron/Peace | Peace/Message Queue/MQ.cs | C# | mit | 6,652 |
<?php
/**
*
* Selector lists.
*
*/
namespace CssCrush;
class SelectorList extends Iterator
{
public function __construct($selectorString, Rule $rule)
{
parent::__construct();
$selectorString = trim(Util::stripCommentTokens($selectorString));
foreach (Util::splitDelimList($selector... | peteboere/css-crush | lib/CssCrush/SelectorList.php | PHP | mit | 4,370 |
(function ($) {
var theForm;
var theBox;
var theTypeTarget;
var settings;
$.fn.tagbox = function(options) {
var defaults = {
typeTargetNameAndId : "type_target",
tagInputsArrayName : "tag_list",
includeExampleTag : true
};
settings = $.... | tompave/tagbox | scripts/tagbox.js | JavaScript | mit | 5,917 |
package com.github.neunkasulle.chronocommand.model;
import com.github.neunkasulle.chronocommand.control.UeberTest;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by Janze on 28.02.2016.
*
*/
public class CategoryTest extends UeberTest {
@Test
public void testSetName() throws Exce... | neunkasulle/ChronoCommand | code/src/test/java/com/github/neunkasulle/chronocommand/model/CategoryTest.java | Java | mit | 891 |
'use strict';
var _interopRequireDefault = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };
var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } };
exports.__esModule = true;
var _co... | AMGTestOrg/templating | dist/commonjs/bindable-property.js | JavaScript | mit | 7,942 |
namespace CohesionAndCoupling
{
using System;
public class UtilsExamples
{
public static void Main()
{
Console.WriteLine(FileUtils.GetFileExtension("example"));
Console.WriteLine(FileUtils.GetFileExtension("example.pdf"));
Console.WriteLine(FileUtils.Get... | danisio/HQC-HighQualityCode-Homeworks | 07.HighQualityClasses/Task3.CohesionAndCoupling/UtilsExamples.cs | C# | mit | 1,380 |