repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
yatmingyatming/LogisticRegressionSGDMapReduce | display_stats.py | 264 | #!/usr/bin/env python
import sys, json
from confusionmatrix import ConfusionMatrix as CM
def main():
for line in sys.stdin:
cm = json.loads(line)
print CM(cm["TP"], cm["FP"], cm["FN"], cm["TN"])
if __name__ == '__main__':
main()
| mit |
zyprosoft/GJCFAudioManager | README.md | 19 | # GJCFAudioManager
| mit |
jgaltidor/VarJ | analyzed_libs/jdk1.6.0_06_src/java/nio/ByteBufferAsDoubleBufferB.java | 2856 | /*
* @(#)ByteBufferAs-X-Buffer.java 1.18 05/11/17
*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
// -- This file was mechanically generated: Do not edit! -- //
package java.nio;
class ByteBufferAsDoubleBufferB // ... | mit |
nin-jin/mol | tiler/tiler.view.css | 284 | [mol_tiler] {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
padding: .5rem;
}
[mol_tiler_group] {
display: flex;
flex-wrap: wrap;
flex: 2 1 auto;
align-items: stretch;
}
[mol_tiler_item] {
flex: 1 1 auto;
margin: .5rem;
align-items: stretch;
display: flex;
}
| mit |
alexsalesdev/fiori-blossoms-ui-web-angular-2 | public/app/service/config.ts | 138 | import { Injectable } from 'angular2/core';
@Injectable()
export class Config {
SERVER_URL:string = "http://128.199.158.79:9000/";
}
| mit |
zoocasa/activerecord-postgresql-extensions | test/geometry_tests_legacy_postgis.rb | 12763 |
class GeometryTests < PostgreSQLExtensionsTestCase
def test_create_geometry
Mig.create_table(:foo) do |t|
t.geometry :the_geom, :srid => 4326
end
expected = []
expected << strip_heredoc(<<-SQL)
CREATE TABLE "foo" (
"id" serial primary key,
"the_geom" geometry,
CO... | mit |
suzumura-ss/frank_afc_proxy | lib/frank_afc_proxy/version.rb | 45 | module FrankAfcProxy
VERSION = "0.0.1"
end
| mit |
unisonweb/platform | unison-src/transcripts-using-base/codeops.md | 4295 |
Test for code serialization operations.
```ucm:hide
.> builtins.merge
.> cd builtin
```
Define a function, serialize it, then deserialize it back to an actual
function. Also ask for its dependencies for display later.
```unison
save : a -> Bytes
save x = Value.serialize (Value.value x)
load : Bytes ->{io2.IO, Thro... | mit |
Gattermeier/MorphModal | shared/css/component.css | 5556 | /* Morph Button: Default Styles */
.morph-button {
position: relative;
display: block;
margin: 0 auto;
}
.morph-button > button {
position: relative;
padding: 0 1em;
background: white;
border: 1px solid #0AAD41;
color: #0AAD41;
letter-spacing: 1px;
font-weight: 700;
overflow: hidden;
}
.morph-button.op... | mit |
techjacker/abstract-factory | docs/index.html | 3983 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>abstract-factory</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
<link rel="stylesheet" href="./assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="./assets/... | mit |
vaster/RestReminder | RestReminderApp/RestReminderApp/js/commands/command.js | 2545 | /// <reference path="//Microsoft.WinJS.1.0/js/base.js" />
/// <reference path="../model/event.js" />
(function () {
var initAppBarGlobalCommands = function () {
var eventsButton = document.getElementById("navigate-onClick-to-events");
eventsButton.addEventListener("click", function () {
... | mit |
alecslupu/sfshop | plugins/sfsProductPlugin/modules/brand/templates/_filterList.php | 1333 | <?php if (count($brands) > 0): ?>
<?php if ($sf_request->hasParameter('is_search')): ?>
<?php $action = '@product_search' ?>
<?php else: ?>
<?php $action = '@product_list' ?>
<?php endif; ?>
<?php if ($sf_request->hasParameter('path')): ?>
<?php $path = '?path=' . $sf_r... | mit |
Sy4z/The-Excellent-Adventure | src/tile/Box.java | 193 | package tile;
import java.net.URL;
public class Box extends Tile {
public Box(URL url, char key) {
// TODO Auto-generated constructor stub
super(url, key);
this.canMove = false;
}
}
| mit |
dlwire/coffeescript-barebones | javascripts/pf.js | 331 | // Generated by CoffeeScript 1.7.1
(function() {
var pf, pfr;
pf = function(n) {
return pfr(n, 2, []);
};
pfr = function(n, d, f) {
if (n < 2) {
return f;
}
if (n % d === 0) {
return [d].concat(pfr(n / d, d, f));
}
return pfr(n, d + 1, f);
};
module.exports = pf;
}).c... | mit |
TJRoger/node-dota2-spectator | README.md | 2715 | # Node Dota2 Spectator
[](https://www.npmjs.com/package/node-dota2-spectator "View this project on NPM")
[](https://travis-ci.org/tjroger/node-dota2-spectator)
[
## About
`IMBenchmark` is a lightweight helper class that benchmarks a block of code and gives you an average time of how long that block of code takes to execute. It's very important to note that premature optimization can be a fool's game, and may lead you down a lot of paths that d... | mit |
marko126/symfony-nastava | src/AppBundle/Controller/SecurityController.php | 612 | <?php
namespace AppBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
class SecurityController extends Controller
{
public function loginAction(Request $request)
{
$authUtils = $this->get('security.authentication_utils');
... | mit |
rodrigopivi/iOSBabylon | README.md | 372 | iOSBabylon
===============================
Starter project for running BabylonJS WebGL engine using iOS and WKWebView.
This is still a "hacky" work in progress solution to include the source files
instead of using a webserver.
PD: Use iPhone6+ simulator, it gets better framerates than the others at the simulator, act... | mit |
atayahmet/database-active-record-class | README.md | 12753 | Database active record
===================
> **Available fields:**
> - This library completly is written for composer package
> - This will works with vendor autoload
> - Codeigniter active record class interface used
> - These library use simple and fast of
Let's start!
----
[- Database Configuration](#database-c... | mit |
skelliam/sdpbot | spec/dokken_iteration_3_spec.rb | 5352 | require File.dirname(__FILE__) + '/spec_helper'
module SDP
describe "Dokken iteration 3" do
before(:all) do
@iteration = Iteration.new(3, "Dokken", Date.parse('01/21/2008'), Date.parse('01/25/2008'))
s = <<EOQ
http://bugzilla.songbirdnest.com/buglist.cgi?quicksearch=632%2C754%2C2025%2C3370%2C3600%2C3... | mit |
reedcwilson/programming-fundamentals | lessons/2/README.md | 4576 | # Lesson 2
This directory contains all of the files related to lesson #2. My lesson plan
(2_plan.md) and the file we created together in class (2.py) are found here. I
have also created a review of what we talked about in class that should be
easier to read. You can review the homework by accessing the homework direct... | mit |
edandersen/Edsoft.Hypermedia | tests/Edsoft.Hypermedia.Tests/Serializers/JsonSerializerTests.cs | 4991 | using System;
using Edsoft.Hypermedia.Serializers;
using Newtonsoft.Json.Linq;
using NUnit.Framework;
using Ploeh.AutoFixture;
using Rhino.Mocks;
namespace Edsoft.Hypermedia.Tests.Serializers
{
public class JsonSerializerTests : TestWithFixture
{
private JsonSerializer sut;
private Func<IRepre... | mit |
heycait/twitter | app/controllers/tweets_controller.rb | 371 | class TweetsController < ApplicationController
def create
# Planned on rendering json for line 6 to Ajax a new post back onto the page
# But this single-app feature wouldn't grab new tweets. Having it live update
# through streaming would take care of this, otherwise, just refresh page
client.update(p... | mit |
opengbu/gbuonline | application/config/autoload.php | 3814 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| AUTO-LOADER
| -------------------------------------------------------------------
| This file specifies which systems should be loaded by default.
|
| In order to keep the fr... | mit |
bkahlert/seqan-research | raw/pmsb13/pmsb13-data-20130530/sources/caivjx2geotu92t0/2013-04-09T16-09-03.492+0200/sandbox/my_sandbox/apps/firstSteps1/firstSteps1.cpp | 1740 | #include <iostream>
#include <seqan/file.h>
#include <seqan/sequence.h>
#include <seqan/score.h>
template <typename TText, typename TPattern>
int computeLocalScore(TText const &subText, TPattern const &pattern)
{
int localScore = 0;
for (unsigned i = 0; i < seqan::length(pattern); ++i)
if (su... | mit |
buckhx/denv | denvlib/info.go | 1538 | package denvlib
import (
"encoding/json"
"io/ioutil"
"os"
git "github.com/buckhx/gitlib"
"github.com/buckhx/pathutil"
)
/*
DenvInfo is a mechanism for handling state of the denv environment.
It flushed it's contents to disk and reads from a given location
*/
type DenvInfo struct {
Current *Denv
Path ... | mit |
YoungAlliance/YoungAlliance.github.io | _drafts/2015-10-19-interview-ARiemer.md | 6025 | ---
breadcrumb: "true"
tags: null
published: true
---
##Interview with Angelika Riemer, M.D., Ph.D.
**Date:** 23.05.2013.
**Location:** Heidelberg, Germany
##Short Bio
Angelika Riemer holds an M.D. and a Ph.D. in molecular biology. She was trained as an immunologist as well as a dermatologist and spent ... | mit |
foscomputerservices/fosrest | Pod/Classes/Public/FOSPullStaticTablesOperation.h | 1535 | //
// FOSPullStaticTablesOperation.h
// FOSRest
//
// Created by David Hunt on 4/23/13.
//
// The MIT License (MIT)
//
// Copyright (c) 2015 FOS Services, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software")... | mit |
tvaliasek/cookie-notice | wp-plugin-src/css/cookie-notice-admin.min.css | 190 | .eucn_input{width:100%;max-width:800px}.eucn_input.eucn_textarea{min-height:250px}span[data-status="0"]{color:red}span[data-status="1"]{color:green}
/*# sourceMappingURL=admin.min.css.map */ | mit |
enneite/swagger-bundle | Tests/Creator/ApiControllerCreatorTest.php | 23086 | <?php
/**
* Created by JetBrains PhpStorm.
* User: etienne.lejariel
* Date: 03/07/15
* Time: 09:46
* To change this template use File | Settings | File Templates.
*/
namespace Enneite\SwaggerBundle\Tests\Creator;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Enneite\SwaggerBundle\Creator\ApiControll... | mit |
bekk/bekkboard | GUI/tasks/config.js | 1991 | var notify = require('gulp-notify'),
path = require('path');
var c = exports;
c.all = allFiles;
c.target = targetFolder;
c.TARGET_FOLDER = "./dist";
// fonts
c.FOLDER_FONTS = './node_modules/font-awesome/fonts/*';
c.TARGET_FOLDER_FONTS = 'fonts';
// images
c.FOLDER_IMAGES = './resources/images/*... | mit |
artemsky/ng-snotify | projects/ng-snotify/src/lib/components/snotify/snotify.component.ts | 3726 | import { Component, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
import { SnotifyService } from '../../services/snotify.service';
import { SnotifyToast } from '../../models/snotify-toast.model';
import { Subscription } from 'rxjs';
import { SnotifyNotifications } from '../../interfaces/snotify-notificat... | mit |
jjcollinge/AzureBot | AzureBot.UnitTests/Tests/ValidationTest.cs | 2999 | using AzureBot.Services.Impl;
using AzureBot.Services.Interfaces;
using AzureBot.UnitTests.Mocks;
using Microsoft.Bot.Connector;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AzureBot.Un... | mit |
LisLo/ArTEMiS | src/main/webapp/app/entities/question/question-delete-dialog.html | 1126 | <form name="deleteForm" ng-submit="vm.confirmDelete(vm.question.id)">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"
ng-click="vm.clear()">×</button>
<h4 class="modal-title" data-translate="entity.delete.title">Confirm del... | mit |
egovernment/eregistrations-demo | node_modules/dom-ext/test/document/#/normalize.js | 876 | 'use strict';
var isArray = Array.isArray;
module.exports = function (t, a) {
var el1, el2, el3, result, nodes, c1, c2;
if (typeof document === 'undefined') return;
el1 = document.createElement('p');
el2 = document.createElement('div');
result = t.call(document, el2, el1, 'Test', null);
a(isArray(result), tr... | mit |
digisfera/tu-examples | files/useref.html | 350 | <html>
<head>
<!-- build:css combined.css -->
<link href="css/a.css" rel="stylesheet">
<link href="css/b.css" rel="stylesheet">
<!-- endbuild -->
</head>
<body>
<!-- build:js combined2.min.js -->
<script type="text/javascript" src="js/s.js"></script>
<script type="text/javascript" src="js/t.js"></script>
<!-... | mit |
LEDS/X-data | Xdata/app_pessoa/migrations/0005_auto_20170817_1730.py | 559 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2017-08-17 20:30
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app_pessoa', '0004_auto_20170817_1727'),
]
operati... | mit |
guidance-guarantee-programme/tesco_planner | app/controllers/availabilities_controller.rb | 589 | class AvailabilitiesController < ApplicationController
before_action :authorise_booking_manager!
def show
@search = SlotSearch.new(search_params)
@slots = @search.results
end
private
def search_params
params
.fetch(:search, {})
.permit(:date, :room, :available)
.merge(
... | mit |
PearCoding/PearRay | src/base/config/Build.cpp | 4753 | #include "Build.h"
#include "Profiler.h"
#include "config/Git.h"
#include "config/Version.h"
#include <sstream>
#include <vector>
//OS
#if defined(PR_OS_LINUX)
#define PR_OS_NAME "Linux"
#elif defined(PR_OS_WINDOWS_32)
#define PR_OS_NAME "Microsoft Windows 32 Bit"
#elif defined(PR_OS_WINDOWS_64)
#define PR_OS_NAME "M... | mit |
0372/blog | blog/front/models/Contact_model.php | 327 | <?php
class Contact_model extends CI_Model
{
function insert($arr = ''){
if(empty($arr)) return ;
$sql = "insert into contact (name,email,message,ceatetime,ip) VALUES ('{$arr['name']}','{$arr['email']}','{$arr['message']}','".date('Y-m-d H:i:s')."','{$arr['ip']}')";
$this->db->query($sql);
... | mit |
HiddenJester/iOS7Colors | README.md | 2031 | # iOS7Colors
[](https://cocoapods.org)
[](https://github.com/Carthage/Carthage)
iOS7Colors is a simple category on UICo... | mit |
yasnis/ofxDraggableMarker | src/ofxDraggableMarker.h | 1421 | //
// ofxDraggableMarker.h
// ofApp
//
// Created by X006819_nishimura on 2015/04/28.
//
//
#ifndef __ofApp__ofxDraggableMarker__
#define __ofApp__ofxDraggableMarker__
#include "ofMain.h"
class ofxDraggableMarker : public ofVec2f {
protected:
bool isPress = false;
bool isHover = false;
private:
ofVec2f offset... | mit |
aldaypinheiro/maternidade-core | src/br/edu/fjn/maternidade/application/impl/SecretarioApplicationImpl.java | 1940 | package br.edu.fjn.maternidade.application.impl;
import java.util.List;
import br.edu.fjn.maternidade.application.SecretarioApplication;
import br.edu.fjn.maternidade.domain.secretario.Secretario;
import br.edu.fjn.maternidade.domain.secretario.SecretarioRepository;
import br.edu.fjn.maternidade.domain.usuario.Usuari... | mit |
rajendrauppal/concurrent-hash-map | README.md | 178 | # Concurrent Hash Map
A concurrent hash map implementation in C++.
## Compile
```
$ cd tests
$ g++ -I ../include/ -std=c++14 -pthread test_map.cpp
```
## Run
```
$ ./a.out
```
| mit |
tiberiusuciu/rpg-io | app/styles/TerminalInput.css | 429 | :local(.terminalInputSignature) {
color: white;
display: inline-block;
}
:local(.terminalInputField) {
overflow: hidden;
display: inline-block;
flex: auto;
}
:local(.terminalInputText) {
background-color: black;
color: white;
width: 100%;
border: 0px;
padding: 0px;
padding-left: 10px;
caret-color: white;
... | mit |
chwebb1/InsecureGetLoginFormPHP | logout.php | 413 | <?php
session_start(); // declare that sessions are being used
session_unset(); // unset sessions
session_destroy(); // now destory them and remove them from the users browser
header('Location: http://thewebbster.info/get/loginForm.php?logout=yes');... | mit |
netguru/people | config/deploy.rb | 532 | lock '3.4.0'
set :application, "people"
set :repo_url, "git://github.com/netguru/people.git"
set :deploy_to, ENV['DEPLOY_PATH']
set :docker_links, %w(postgres_ambassador:postgres)
set :docker_additional_options, -> { "--env-file #{shared_path}/.env" }
set :docker_apparmor_profile, "docker-ptrace"
namespace :docker ... | mit |
ALFminecraft/migro | migro/main.py | 4923 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import re
import uuid
from . import utils
from .exceptions import (RevisionNotFound, RevisionAlreadyExists,
NoRevisionsFound, GoingTooFar, AlreadyHere)
def init(directory: str):
print('Creating directory', directory)
os.mkdir(... | mit |
RusDavies/moose-inventory | spec/lib/moose_inventory/cli/host_addgroup_spec.rb | 8359 | require 'spec_helper'
# TODO: the usual respond_to? method doesn't seem to work on Thor objects.
# Why not? For now, we'll check against instance_methods.
RSpec.describe Moose::Inventory::Cli::Host do
before(:all) do
# Set up the configuration object
@mockarg_parts = {
config: File.join(spec_root, 'c... | mit |
gabrieldev525/me | js/script-jquery.js | 1335 | $(function() {
//switch the menu style in a area of site
$(window).on("scroll", function() {
var black_opacity = $("#top-session");
var projetos = $("#projetos");
var contatos = $("#contato");
var offsetblack_opacity = black_opacity.offset();
var offsetprojetos = projetos.offset();
var offsetcontatos = ... | mit |
lds-ulbra-torres/projeto-slave | application/views/users/CreateUserView.php | 1898 | <script type="text/javascript">
$(document).ready(function(){
$("#new-user").submit(function(e){
e.preventDefault();
if($("input[name=user_confirm_password]").val() != $("input[name=user_password]").val()){
$("input[name=user_password]").css("border-bottom", "1px solid red");
$("input[name=user_confir... | mit |
mrogach2350/rpgLoot | collections/items.js | 1589 | Items = new Mongo.Collection('items');
Items.allow({
insert: function(userId, doc) {
return !!userId;
},
update: function(userId, doc) {
return !!userId;
},
remove: function(userId, doc) {
return !!userId;
}
});
ItemSchema = new SimpleSchema({
name: {
type: String,
label: "Item Name"... | mit |
krypton97/HandleGraphQL | handler.go | 4325 | package handler
import (
"encoding/json"
"io/ioutil"
"net/http"
"net/url"
"strings"
"github.com/playlyfe/go-graphql"
"golang.org/x/net/context"
)
//Shortcuts for the Content-Type header
const (
ContentTypeJSON = "application/json"
ContentTypeGraphQL = "application/graphql"
ContentTypeForm... | mit |
claudiocalautti/prism-slider | js/slideshow3.js | 5466 | /**
* The slideshow controller.
* Get settings and initialise PrismSlider for each layer,
* add controls and events, then call slideTo method on click.
* @return {Object} The set of public methods.
*/
var slideshow = (function(window, undefined) {
'use strict';
/**
* Enum navigation classes, attributes a... | mit |
plow-technologies/ghcjs-dom | src/GHCJS/DOM/JSFFI/Generated/SVGTests.hs | 2990 | {-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.SVGTests
(js_hasExtension, hasExtension, js_getRequiredFeatures,
getRequiredFeatures, js_getRequiredExtensions,
getRequiredExtensions, js_getSystemLanguage, getSystemLanguage,
SVGTes... | mit |
robertreith/phase-0 | week-7/variables-objects.js | 1472 | // JavaScript Variables and Objects
// I paired by myself on this challenge.
// __________________________________________
// Write your code below.
var secretNumber = 7
var password = 'just open the door'
var allowedIn = false
var members = ['John', 'Joe', 'Mike', 'Mary']
// ______________________________________... | mit |
mahrsi/mahrsi.github.io | dataviz/rgph2014/rgph2014.js | 3263 | // Chargement des données (en queuing pour plus de rapidité)
queue(1)
.defer(d3.json, "/dataviz/rgph2014/tunisiageo.json")
.defer(d3.csv, "/dataviz/rgph2014/rgph2014.csv")
.awaitAll(function(error, results){
var topology = results[0]
var governorates = topojson.feature(topology, topology.objects... | mit |
MichaelKingGong/MKWaterLayout | MKWaterLayoutDemo/MKWaterLayoutDemo/AppDelegate.h | 293 | //
// AppDelegate.h
// MKWaterLayoutDemo
//
// Created by wangqinggong on 15/4/1.
// Copyright (c) 2015年 Michael King. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
| mit |
BlueRidgeLabs/kimball | app/helpers/people_helper.rb | 541 | # frozen_string_literal: true
module PeopleHelper
def private_information(info, name: false)
if name
session[:privacy_mode] ? info.initials : info.full_name
else
session[:privacy_mode] ? 'hidden' : info
end
end
alias pii private_information
def address_fields_to_sentence(person)
pe... | mit |
willhs/dotfiles | zsh/aliases.zsh | 657 | alias reload!='. ~/.zshrc'
alias p="cd $PROJECTS"
alias h="cd ~"
alias d="cd ~/dotfiles"
alias g="git"
alias v="vim"
# ssh into vuw server
# for auto-password entry
# 1) ssh-keygen -t rsa -b 2048
# a) specify file to save key to
# b) use blank passphrase
# 2) ssh-copy-id id@server
alias ssh-vuw="ssh hardwiwill@bar... | mit |
hlynn93/basic_ims | app/containers/App.js | 385 | // @flow
import React, { Component } from 'react';
import type { Children } from 'react';
import { Sidebar } from '../components';
export default class App extends Component {
props: {
children: Children
};
render() {
return (
<div>
<Sidebar />
<div className="main-panel">
... | mit |
keen/explorer | src/components/BrowserPreview/components/DashboardsConnection/DashboardsConnection.styles.ts | 320 | import styled from 'styled-components';
import { colors } from '@keen.io/colors';
export const Wrapper = styled.div`
padding: 20px;
border-top: solid 1px ${colors.gray[300]};
`;
export const Container = styled.div`
display: flex;
gap: 20px;
`;
export const TitleContainer = styled.div`
min-width: 100px;
`;
| mit |
SlyMongoose/462Shootout | bzflag-2.4.2/include/bzfgl.h | 3198 | /* bzflag
* Copyright (c) 1993-2012 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRAN... | mit |
groestl/ductive | test-src/ductive/parse/SimpleCompleterTests.java | 9237 | /*
Copyright (c) 2014 code.fm
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, publish, distribute, s... | mit |
agartee/Brickweave | samples/2. BasicMessaging/src/BasicMessaging.Domain/Places/Commands/CreatePlace.cs | 303 | using BasicMessaging.Domain.Places.Models;
using Brickweave.Cqrs;
namespace BasicMessaging.Domain.Places.Commands
{
public class CreatePlace : ICommand<Place>
{
public CreatePlace(string name)
{
Name = name;
}
public string Name { get; }
}
}
| mit |
jeozey/XmppServerTester | xmpp-extensions/src/main/java/rocks/xmpp/extensions/muc/model/Actor.java | 1690 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014-2016 Christian Schudt
*
* 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... | mit |
LynnOwens/starlite | src/test/java/net/tofweb/starlite/CostBlockManagerTest.java | 1036 | package net.tofweb.starlite;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
public class CostBlockManagerTest {
private CellSpace space;
@Before
public void setup() {
space = n... | mit |
dormd/ng2-countries-trivia | src/app/modules/questions/index.ts | 65 | export * from './components';
export * from './questions.module'; | mit |
stivalet/PHP-Vulnerability-test-suite | XSS/CWE_79/safe/CWE_79__GET__CAST-cast_int_sort_of__Use_untrusted_data_script-window_SetInterval.php | 1289 | <!--
Safe sample
input : reads the field UserData from the variable $_GET
sanitize : cast via + = 0
File : unsafe, use of untrusted data in the function setInterval
-->
<!--Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, and distribute ... | mit |
tliang1/Java-Practice | Practice/Intro-To-Java-8th-Ed-Daniel-Y.-Liang/Chapter-11/Chapter11P06/doc/allclasses-noframe.html | 1327 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (10.0.2) on Fri Sep 07 21:40:41 PDT 2018 -->
<title>All Classes</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name... | mit |
Javier-Solis/admin-project | app/Validation/Rules/SubdivisionCode/SvSubdivisionCode.php | 1011 | <?php
/*
* This file is part of App/Validation.
*
* (c) Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
*
* For the full copyright and license information, please view the "LICENSE.md"
* file that was distributed with this source code.
*/
namespace App\Validation\Rules\SubdivisionCode;
use App\Validation\Ru... | mit |
Azure/azure-sdk-for-go | services/kusto/mgmt/2019-01-21/kusto/dataconnections.go | 27128 | package kusto
// 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 cause incorrect behavior and will be lost if the code is regenerated.
... | mit |
JRF-tw/sunshine.jrf.org.tw | spec/requests/parties/emails_controller_spec.rb | 1540 | require 'rails_helper'
RSpec.describe Parties::EmailsController, type: :request do
describe '#edit' do
before { signin_party }
subject! { get '/party/email/edit' }
it { expect(response).to be_success }
end
describe '#update' do
before { signin_party }
context 'success' do
subject { put... | mit |
sudorandom/softlayer-go-gen | types/gen_softlayer_container_product_order_monitoring_package.go | 18440 | package types
// DO NOT EDIT. THIS FILE WAS AUTOMATICALLY GENERATED
import (
types "github.com/sudorandom/softlayer-go/slapi/types"
)
// SoftLayer_Container_Product_Order_Monitoring_Package - This is the datatype that needs to be
// populated and sent to SoftLayer_Product_Order::placeOrder. This datatype has everyt... | mit |
andreaskoepf/matrixwalk | run_experiment.sh | 1697 | #!/bin/bash
# experiment 5: testing bigger LSTM network on 4096 2d and 3d matrix with pure random walk
th main.lua -w world_4096_3d.txt -model lstm -m model_4096_3d_lstm512_b200_l2 -l 2 -n 512 -seqlen 50 -batchsize 200 -maxiter 10000 -dropout 0 -maxnoturnsteps 1
th main.lua -w world_4096_2d.txt -model lstm -m model_40... | mit |
JKatzwinkel/settlers-remake | jsettlers.graphics/src/jsettlers/graphics/map/controls/original/panel/button/MaterialButton.java | 1533 | package jsettlers.graphics.map.controls.original.panel.button;
import jsettlers.common.images.EImageLinkType;
import jsettlers.common.images.OriginalImageLink;
import jsettlers.common.material.EMaterialType;
import jsettlers.graphics.action.Action;
import jsettlers.graphics.localization.Labels;
import jsettlers.graphi... | mit |
cloudfoundry-community/firehose-to-syslog | vendor/google.golang.org/genproto/googleapis/ads/googleads/v0/enums/frequency_cap_level.pb.go | 5878 | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v0/enums/frequency_cap_level.proto
package enums // import "google.golang.org/genproto/googleapis/ads/googleads/v0/enums"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppre... | mit |
akshaybabloo/CPP-Notes | 2_Basics/2_2_DefineVariables.cpp | 519 | //
// 2_2_DefineVariables.cpp
// CPP
//
// Created by akshay raj gollahalli on 2/02/16.
// Copyright © 2016 akshay raj gollahalli. All rights reserved.
//
#include <cstdio>
int main(int argc, char ** argv) {
int someNumber = 10;
/*
this can also be written as
int someNumber;
someNumber = 10;
*/
const int... | mit |
theteam/django-theteamcommon | src/theteamcommon/forms.py | 770 | from django import forms
from django.contrib.auth.forms import AuthenticationForm
from django.utils.translation import ugettext_lazy as _
class EmailAuthenticationForm(AuthenticationForm):
"""Email authentication Form
increase the size of the username field to fit long emails"""
# TODO: consider to change... | mit |
spujadas/exposure | templates/project-list.tpl.html | 381 | {#
This file is part of the Exposure package.
Copyright 2013 by Sébastien Pujadas
For the full copyright and licence information, please view the LICENCE
file that was distributed with this source code.
#}
{% extends session.user is defined?'page-left-nav.tpl.html':'page.tpl.html' %}
{% block content %}... | mit |
LastLeaf/datree | index.js | 180 | module.exports = {
Shape: require('./lib/shape'),
Node: require('./lib/node'),
Error: require('./lib/node_error'),
MemorySource: require('./lib/memory_source'),
};
| mit |
efrax/IMDER | app/cache/dev/twig/2d/97/4d2be07c528b56adfa6823dca8b997fac47403b46447cbcad246a9aa4057.php | 1239 | <?php
/* FOSUserBundle:Profile:show.html.twig */
class __TwigTemplate_2d974d2be07c528b56adfa6823dca8b997fac47403b46447cbcad246a9aa4057 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = $this->env->loadTemplate("FOSUserBundle... | mit |
hugman/hugman.github.io | README.md | 111 | # Hugman's Web Site
The page is based on **[Minimal Mistakes](http://mmistakes.github.io/minimal-mistakes)**
| mit |
bardius/the-web-dev-ninja-blog | src/BardisCMS/SkeletonBundle/Repository/SkeletonRepository.php | 12435 | <?php
/*
* Skeleton Bundle
* This file is part of the BardisCMS.
*
* (c) George Bardis <george@bardis.info>
*
*/
namespace BardisCMS\SkeletonBundle\Repository;
use Doctrine\ORM\EntityRepository;
class SkeletonRepository extends EntityRepository {
// Function to retrieve the pages of a category with pagin... | mit |
epikcraw/ggool | public/Windows 10 x64 (18362.476)/_PCAT_FIRMWARE_INFORMATION.html | 173 | <html><body>
<h4>Windows 10 x64 (18362.476)</h4><br>
<h2>_PCAT_FIRMWARE_INFORMATION</h2>
<font face="arial"> +0x000 PlaceHolder : Uint4B<br>
</font></body></html> | mit |
riberk/Rib.Deployer | Solution/Rib.Deployer.Steps.FileSystem.Tests/HasDestFsSettingsTests.cs | 636 | namespace Rib.Deployer.Steps.FileSystem
{
using System;
using NUnit.Framework;
[TestFixture]
public class HasDestFsSettingsTests
{
[Test]
public void HasDestFsSettingsNullTest() => Assert.Throws<ArgumentException>(() => new HasDestFsSettings("name", "src", null));
[Test]... | mit |
denkhaus/bitshares | types/vestingbalance_ffjson.go | 7613 | // Code generated by ffjson <https://github.com/pquerna/ffjson>. DO NOT EDIT.
// source: vestingbalance.go
package types
import (
"bytes"
"fmt"
fflib "github.com/pquerna/ffjson/fflib/v1"
)
// MarshalJSON marshal bytes to json - template
func (j *VestingBalance) MarshalJSON() ([]byte, error) {
var buf fflib.Buffe... | mit |
pact-foundation/pact_broker | lib/pact_broker/pacts/placeholder_pact.rb | 776 | require "pact_broker/domain/pact"
module PactBroker
module Pacts
class PlaceholderPact < PactBroker::Domain::Pact
def initialize
consumer = OpenStruct.new(name: "placeholder-consumer", labels: [OpenStruct.new(name: "placeholder-consumer-label")])
@provider = OpenStruct.new(name: "placeholde... | mit |
yuanziyuer/yuanzi-share | modules/components/style/content.css | 2807 | body{
margin: 0;
background: white;
position: relative;
height: 100vh;
text-align: center;
font-family: "Heiti SC";
}
.root {
}
.storyAudio {
controls: control;
}
#text {
text-align: left;
}
.strategyTitle {
padding-top: 30px;
margin-left: 40px;
margin-right: 40px;
text-align: center;
color... | mit |
Bottswana/ShadowUtility | README.md | 1278 | # Server 2012 Shadow Utility
This simple utility allows an administrator to easily control sessions and shadow users on a 2012 Terminal Server.
Since Microsoft has moved Shadow into Server Manager, only Administrators who have access to your whole environment (Brokers, Gateways, Session Hosts ect) can shadow users.
The... | mit |
vny1422/Asumu | application/controllers/Services.php | 17633 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
// This can be removed if you use __autoload() in config.php OR use Modular Extensions
require_once APPPATH . '/libraries/REST_Controller.php';
class Services extends REST_Controller
{
public function __construct()
{
parent::__construct();
$t... | mit |
jreese/euler | python/problem20.py | 101 | from discrete import *
f = factorial(100)
s = str(f)
print sum([int(s[i]) for i in range(len(s))])
| mit |
PaleoCrafter/Allomancy | src/main/java/de/mineformers/investiture/allomancy/network/SpeedBubbleUpdate.java | 875 | package de.mineformers.investiture.allomancy.network;
import de.mineformers.investiture.allomancy.impl.misting.temporal.SpeedBubble;
import de.mineformers.investiture.network.Message;
import net.minecraft.util.math.BlockPos;
import java.util.UUID;
/**
* Updates a metal extractor tile entity
*/
public class SpeedBu... | mit |
kimamula/typedoc-markdown-theme | examples/typedoc/interfaces/ts.textchangerange.md | 516 | # Interface TextChangeRange
## Index
### Properties
* [newLength](ts.textchangerange.md#newlength)
* [span](ts.textchangerange.md#span)
## Properties
### newLength: number
* Defined in [lib/typescript/tsc.d.ts:1706](https://github.com/kimamula/typedoc/blob/HEAD/src/lib/typescript/tsc.d.ts#L1706)
### span: [Text... | mit |
i3lome/failfial | src/qt/qvalidatedlineedit.cpp | 2162 | // Copyright (c) 2011-2013 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 "qvalidatedlineedit.h"
#include "vikingcoinaddressvalidator.h"
#include "guiconstants.h"
QValidatedLineEdit::QValid... | mit |
jpalves/ojAlgo | src/org/ojalgo/matrix/store/IdentityStore.java | 3940 | /*
* Copyright 1997-2015 Optimatika (www.optimatika.se)
*
* 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, mo... | mit |
nseckinoral/xomni-sdk-dotnet | src/XOMNI.SDK.Private/ApiAccess/Catalog/ItemPrice/BatchPrice.cs | 1322 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XOMNI.SDK.Core.ApiAccess;
using XOMNI.SDK.Core.Providers;
namespace XOMNI.SDK.Private.ApiAccess.Catalog.ItemPrice
{
internal class BatchPrice : ApiAccessBase
{
protected override s... | mit |
mathiasbynens/unicode-data | 8.0.0/scripts/Sora_Sompeng-code-points.js | 424 | // All code points in the `Sora_Sompeng` script as per Unicode v8.0.0:
[
0x110D0,
0x110D1,
0x110D2,
0x110D3,
0x110D4,
0x110D5,
0x110D6,
0x110D7,
0x110D8,
0x110D9,
0x110DA,
0x110DB,
0x110DC,
0x110DD,
0x110DE,
0x110DF,
0x110E0,
0x110E1,
0x110E2,
0x110E3,
0x110E4,
0x110E5,
0x110E6,
0x110E7,
0x110E... | mit |
pjtown/dusty-web-services | Dust/IServiceAspect.cs | 176 | using System;
namespace Dust
{
public interface IServiceAspect<TRequest, TResponse>
{
TResponse Process(TRequest request, Func<TRequest, TResponse> serviceOperation);
}
} | mit |