repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
HashTagDotNet/WCF-Membership-Provider | __TestProjects/HashTag.ApplicationServices.Tests Project/TestUtils.cs | 10070 | /**
/// ScrimpNet.Core Library
/// Copyright © 2005-2011
///
/// This module is Copyright © 2005-2011 Steve Powell
/// All rights reserved.
///
/// This library is free software; you can redistribute it and/or
/// modify it under the terms of the Microsoft Public License (Ms-PL)
///
/// This library is distributed in... | mit |
kayac/Gunfish | ltsv_formatter_test.go | 825 | package gunfish_test
import (
"bytes"
"errors"
"testing"
gunfish "github.com/kayac/Gunfish"
"github.com/sirupsen/logrus"
)
func TestQuoting(t *testing.T) {
tf := &gunfish.LtsvFormatter{}
checkQuoting := func(q bool, value interface{}) {
b, _ := tf.Format(logrus.WithField("test", value))
idx := bytes.Inde... | mit |
lukhnos/objclucene | include/org/apache/lucene/analysis/tokenattributes/OffsetAttribute.h | 2779 | //
// Generated by the J2ObjC translator. DO NOT EDIT!
// source: ./core/src/java/org/apache/lucene/analysis/tokenattributes/OffsetAttribute.java
//
#include "J2ObjC_header.h"
#pragma push_macro("INCLUDE_ALL_OrgApacheLuceneAnalysisTokenattributesOffsetAttribute")
#ifdef RESTRICT_OrgApacheLuceneAnalysisTokenattribu... | mit |
Mirmik/gxx | tests/HIDE/datagramm_receiver/main.cpp | 515 | #include <gxx/inet/dgramm.h>
#include <gxx/print.h>
int main() {
gxx::inet::udp_socket udp_sock(gxx::inet::localhost, 11001);
//gxx::inet::rdm_socket rdm_sock(gxx::inet::localhost, 11002);
char buf[128];
gxx::inet::netaddr inaddr;
size_t ret;
while(1) {
ret = udp_sock.recvfrom(buf, 128, &inaddr);
gxx::fpr... | mit |
nitrado/Nitrapi-Java | src/main/java/net/nitrado/api/Nitrapi.java | 15532 | package net.nitrado.api;
import com.google.gson.*;
import com.google.gson.reflect.TypeToken;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonToken;
import com.google.gson.stream.JsonWriter;
import net.nitrado.api.common.Value;
import net.nitrado.api.common.exceptions.NitrapiErrorException;
... | mit |
Biart95/appleseed | src/appleseed/renderer/modeling/object/proceduralobject.h | 2831 |
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2017-2018 Francois Beaune, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any person o... | mit |
walkdianzi/DashengHook | WeChat-Headers/GetHardDeviceOperTicketResult.h | 565 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "WXPBGeneratedMessage.h"
@class HardDevice, NSString;
@interface GetHardDeviceOperTicketResult : WXPBGeneratedMessage
{
}
+ (void)initialize;
// Remaining properties
@pr... | mit |
devjones/sharenow | webclient/json.uncompressed.js | 24532 | (function() {
/**
@const
@type {boolean}
*/
var WEB = true;
;
var SubDoc, clone, depath, exports, isArray, json, pathEquals, text, traverse;
var __slice = Array.prototype.slice;
exports = window['sharejs'];
if (typeof WEB !== "undefined" && WEB !== null) {
text = exports.types.text;
} else {
t... | mit |
Frontmatter/brooklinebooksmith | _books/a-wrinkle-in-time.md | 235 | ---
title: A Wrinkle in Time
written_by: "Madeleine L'Engle"
available: 'May 1st, 2007'
isbn: '9780312367541'
binding: Paperback
link_to_buy_page:
image_path: 'https://images.booksense.com/images/541/367/9780312367541.jpg'
link:
---
| mit |
cirquit/Personal-Repository | Haskell/Playground/AdventOfCode/advent-coding/src/Day05.hs | 1709 | {-# LANGUAGE ViewPatterns #-}
module Day05 where
import Data.Map as M
-- Part 1
contains3Vowels :: String -> Bool
contains3Vowels = go 0
where go :: Int -> String -> Bool
go 3 _ = True
go _ [] = False
go n (x:xs)
| x `elem` vowels = go (n+1) xs
| otherwise = go n... | mit |
cros79/nodesperiments | app.js | 77 | var mod = require('mod').init({name: 'Cros'});
console.log(mod.getName()); | mit |
ef4/ember-sass-bootstrap | ember-cli-build.js | 644 | /* eslint-env node */
'use strict';
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
module.exports = function(defaults) {
let app = new EmberAddon(defaults, {
bootstrap: {
// This is used in our own tests to show that only selected plugins are present.
plugins: ['collapse', 'transi... | mit |
xiweicheng/tms | src/main/java/com/lhjz/portal/util/FormatUtil.java | 980 | package com.lhjz.portal.util;
import java.io.StringWriter;
import java.util.Map;
import freemarker.template.Configuration;
import freemarker.template.Template;
public final class FormatUtil {
private static final String EMPTY_STRING = "";
private FormatUtil() {
}
public static String format(String tpl, Map<St... | mit |
stephenzsy/octopus | dolphin/app/document/index/articles-index.ts | 1683 | ///<reference path="../../../scripts/typings/q/Q.d.ts"/>
import moment = require('moment');
import Q = require('q');
import ArticleSource = require('../../models/article-source');
import ArticlesIndexDocument = require('./articles-index-document');
import Article = require('../article');
module ArticlesIndex {
e... | mit |
jpush/jmessage-api-csharp-client | Test/UserTest.cs | 7941 | using Jiguang.JMessage.User;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Net;
namespace Test
{
[TestClass]
public class UserTest
{
// Admin Test Start
public static UserInfo Adm... | mit |
Azure/azure-sdk-for-go | services/network/mgmt/2018-01-01/network/routefilterrules.go | 20510 | package network
// 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 |
ermia-db/ermia | benchmarks/egen/AddressTable.cpp | 13288 | /*
* Legal Notice
*
* This document and associated source code (the "Work") is a part of a
* benchmark specification maintained by the TPC.
*
* The TPC reserves all right, title, and interest to the Work as provided
* under U.S. and international laws, including without limitation all patent
* and trademark rig... | mit |
kiloe/ui | src/icons/PermIdentityIcon.js | 512 | import React from 'react';
import Icon from '../Icon';
export default class PermIdentityIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 11.8c2.32 0 4.2 1.88 4.2 4.2s-1.88 4.2-4.2 4.2-4.2-1.88-4.2-4.2 1.88-4.2 4.2-4.2m0 18c5.95 0 12.2... | mit |
reekoheek/bono-jobs | src/ROH/Jobs/Provider/JobProvider.php | 337 | <?php
namespace ROH\Jobs\Provider;
use \ROH\Jobs\Jobs;
class JobProvider extends \Bono\Provider\Provider
{
public function initialize()
{
$app = $this->app;
if (empty($this->options)) {
$this->options = array();
}
Jobs::init($this->options);
// do someth... | mit |
dekiakbar/siakad | routes/web.php | 5031 | <?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... | mit |
paimonsoror/RX8Club.com-Forum-Application | src/com/normalexception/app/rx8club/fragment/pm/PrivateMessageViewFragment.java | 10076 | package com.normalexception.app.rx8club.fragment.pm;
/************************************************************************
* NormalException.net Software, and other contributors
* http://www.normalexception.net
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this softwar... | mit |
apotema/qbwc_requests | lib/qbwc_requests/item_non_inventory/v07/add.rb | 280 | module QbwcRequests
module ItemNonInventory
module V07
class Add < QbwcRequests::Base
field :name
field :is_active
field :pricetype
ref_to :parent, 1000
validates :name, presence: true
end
end
end
end
| mit |
NCrashed/hjass | src/library/Language/Jass/Semantic/Callable.hs | 1822 | module Language.Jass.Semantic.Callable(
-- | Utilities to operate with function and natives
Callable(..),
getCallableName,
getCallablePos,
getCallableConstness,
getCallableParameters,
getCallableReturnType,
isNativeFunction
) where
import Language.Jass.Parser.AST
-- | Holds function or native
data ... | mit |
calvinfarias/IC2015-2 | BOOST/boost_1_61_0/libs/log/doc/html/boost/log/expressions/tag/smessage.html | 5135 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Struct smessage</title>
<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="../../../../index.html... | mit |
Gillespie59/eslint | tests/lib/ignored-paths.js | 30040 | /**
* @fileoverview Tests for IgnoredPaths object.
* @author Jonathan Rajavuori
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const assert = require("chai").assert,
... | mit |
olav/pacbot | spec/cases/assets/js_helper.html | 30 | <%= assets("js", "helper") %>
| mit |
linkeddata/ldphp | www/inc/401.php | 649 | <?php
/* 401.php
* application HTTP 401 page
*/
defined('HEADER') || include_once('header.php');
?>
<div class="cleft left error">
You must login to access this URL
</div>
<div class="cleft left info">
If you just installed a new SSL certificate, try <a target="_blank" href="http://code.google.com/p/chromium/issues... | mit |
uni-rs/uni.rs | src/hal/xen/arch/x86/callbacks.rs | 1507 | //! Set callbacks necessary to the hypervisor to perform upcalls
use hal::xen::defs::Ulong;
use hal::xen::hypercall::HypercallKind;
pub type CallbackType = unsafe extern "C" fn() -> ();
#[cfg(target_arch = "x86")]
pub unsafe fn set_callbacks(hypervisor_callback_cs: u16,
hypervisor_callbac... | mit |
huangliangjun/vessel | vendor/k8s.io/kubernetes/pkg/volume/azure_file/azure_file.go | 7889 | /*
Copyright 2016 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | mit |
glennhickey/hal | assemblyHub/snakeTrack.py | 1869 | #!/usr/bin/env python3
#Copyright (C) 2013 by Ngan Nguyen
# Copyright (C) 2012-2019 by UCSC Computational Genomics Lab
#
#Released under the MIT license, see LICENSE.txt
"""Snake tracks
"""
from optparse import OptionGroup
import re
def addSnakeOptions(parser):
group = parser.add_argument_group("SNAKE TRACKS", "... | mit |
evz/bird-migration-flow-visualization | viz/2/ne-us/index.html | 6483 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bird migration flow visualization</title>
<meta name="author" content="LifeWatch INBO">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="../styles/favicon... | mit |
ProjectFacet/facet | project/editorial/migrations/0065_auto_20171202_2022.py | 402 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('editorial', '0064_auto_20171202_2016'),
]
operations = [
migrations.RenameField(
model_name='assignment',
... | mit |
paintdream/PaintsNow | Source/Utility/LeavesFlute/Config.h | 757 | // Config.h
// PaintDream (paintdream@paintdream.com)
// 2016-1-1
//
#pragma once
#include "../../Core/PaintsNow.h"
#include "../../Core/Interface/IType.h"
#include "../../Core/Interface/IDevice.h"
#include "../../Core/Template/TProxy.h"
#include <string>
#include <map>
#include <list>
namespace PaintsNow {
class Co... | mit |
cmsc127-2017/twitter-clone | views/landing.html | 3038 | {% extends '_base.html' %}
{% block title %}Twitter Clone. It's what's happening.{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="static/stylesheets/components/forms.css">
<link rel="stylesheet" href="static/stylesheets/pages/landing.css">
{% endblock %}
{% block contents %}
{% include... | mit |
overblog/GraphQLBundle | src/Annotation/Relay/Edge.php | 606 | <?php
declare(strict_types=1);
namespace Overblog\GraphQLBundle\Annotation\Relay;
use Attribute;
use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor;
use Overblog\GraphQLBundle\Annotation\Annotation;
use Overblog\GraphQLBundle\Annotation\Type;
/**
* Annotation for GraphQL connection edge.
*
* @An... | mit |
TDubClark/GtkSharpExtensions | GtkSharpExtensions/Automotive/Automobile.cs | 571 | using System;
using System.Collections.Generic;
namespace GtkSharpExtensions.Automotive
{
/// <summary>
/// Stores information about an Automobile Type
/// </summary>
public class Automobile
{
public Manufacturer Make { get; set; }
public AutoModel Model { get; set; }
public int Year { get; set; }
pub... | mit |
webbers/dongle.net | src/Dongle/System/IO/Ftp/FtpFileInfo.cs | 3281 | using System;
using System.IO;
using System.Net;
namespace Dongle.System.IO.Ftp
{
public class FtpFileInfo
{
private readonly string _fileName;
private readonly NetworkCredential _networkCredential;
public FtpFileInfo(string fileName, NetworkCredential networkCredential)
{
... | mit |
bewuethr/stroustrup_ppp | chapter19/chapter19_ex03.cpp | 3000 | // Chapter 19, exercise 03: template class Pair to hold pair of values of any
// type; use to implement symbol table like the one used in calculator (§7.8)
#include "../lib_files/std_lib_facilities.h"
// -----------------------------------------------------------------------------
template<class T, class U> struct P... | mit |
mcnamarabrian/phabulo.github.io | README.md | 36 | # phabulo.github.io
blog.phabulo.us
| mit |
waiterio/api | test/unit/common/databaseHelpers/testGetOrderByQuery.js | 1362 | const Helpers = require('../../../../common/databaseHelpers.js');
const Assert = require('chai').assert;
module.exports = function() {
it('return default query part with no parameter', function() {
Assert.equal(Helpers.getOrderByQuery(), ' ORDER BY id ASC');
});
it('return correct query part with single ascendin... | mit |
ma321c/SS-panel_V4 | app/Controllers/Api/Admin/NodeController.php | 2300 | <?php
namespace App\Controllers\Api\Admin;
use Slim\Http\Request;
use Slim\Http\Response;
use App\Models\Node;
use App\Models\TrafficLog;
use App\Controllers\BaseController;
class NodeController extends BaseController
{
public function index(Request $req, Response $res, $args)
{
$pageNum = 1;
... | mit |
locriani/magmawiki | app/controllers/revisions_controller.rb | 574 | class RevisionsController < ApplicationController
before_filter :load_article
def new
@revision = @article.revisions.new
@revision.body = @article.current_revision.body
end
def create
@revision = @article.revisions.create(revision_params)
if @revision.persisted?
redirect_to article_path... | mit |
pushbullet/engineer | vendor/google.golang.org/genproto/googleapis/ads/googleads/v1/enums/asset_type.pb.go | 5428 | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/enums/asset_type.proto
package enums
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors if they are not oth... | mit |
zytfo/smartPaymentsModule | src/app/modules/apostille/manage/message/apostilleMessage.html | 15064 | <div class="apostilleMessage">
<div class="container-fluid main">
<div class="row">
<div class="col-sm-8">
<h2>{{ 'APOSTILLE_MESSAGE_TITLE' | translate }}</h2>
</div>
</div>
<div class="row">
<div class="col-lg-6 col-md-12">
<div class="panel-heading">
<div cl... | mit |
JianqiaoWang/cosx.org | content/post/2011-03-04-statistics-in-chinese-song-poem-1.md | 7565 | ---
title: 统计词话(一)
date: '2011-03-04T22:05:29+00:00'
author: 邱怡轩
categories:
- 数据分析
- 数据挖掘与机器学习
tags:
- 分词
- 宋词
- 文本挖掘
- 词频
- 频率
slug: statistics-in-chinese-song-poem-1
forum_id: 418833
---

不知道这个标题是否有足够的吸引力把你骗进来。如果你认为统计是一个到处充满了期望方差分布回归随机多元和概率的东西,那么……... | mit |
PhilipYordanov/Software-University-CSharp-Fundamentals-track | CSharpAdvance/Stacks and Queues/05. Calculate Sequence with Queue/Properties/AssemblyInfo.cs | 1437 | 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("05.... | mit |
distantcam/Costura | Tests/PureDotNetAssemblyTests.cs | 4751 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Xml.Linq;
using ApprovalTests.Reporters;
using Mono.Cecil;
using NUnit.Framework;
[TestFixture]
[UseReporter(typeof(VisualStudioReporter))]
public class PureDotNetAssembl... | mit |
rafamvc/Refinery-Banner | vendor/bundler_gems/doc/bundler-0.9.6/rdoc/classes/Thor/Shell/Basic.src/M000035.html | 5019 | <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>print_table (Thor::Shell::Basic)</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
... | mit |
rwaldron/vektor | example/public/js/visualizer.js | 52295 | // -----------------------------------------------------------
// visualizer.js - main code for visualizing hands
// Created by Raquel Vélez
//
// 30 Dec 2011 - Reviewing code for submission. For future
// development: fix bugs, implement inverse kinematic model
// for single-point drag of each finger (more human-like
... | mit |
jclc/tiralabra-compression | project-docs/määrittelydokumentti.md | 1228 | # Määrittelydokumentti
## Yleiskuva
Tiralabra-Compression toteuttaa Lempel-Ziv-Welch -algoritmin enkooderina sekä dekooderina.
Toteutetulla ohjelmalla voi tiivistää minkä tahansa tiedoston 12- tai 16-bittisillä koodiavaimilla. LZWalgoritmi
on hyvin suosittu kompressioalgoritmi ja se ei edellytä erillistä koodiavainta... | mit |
Alberto19/nuflow-web | public/config/config.js | 298 | (function () {
'use strict';
angular
.module('app')
.factory('config', config);
function config() {
return {
baseApiUrl: "http://localhost:3000/api"
// baseApiUrl: "https://nuflow.herokuapp.com/api"
};
}
})();
| mit |
JordanForeman/ABCSS | css/screen.css | 8235 | /* Fonts */
@import url('http://fonts.googleapis.com/css?family=Raleway:400,300,600,700|Lobster');
@font-face {
font-family: 'Citizen Slab';
src: url('fonts/citizen_slab.otf') format("opentype");
}
/* Site Presets */
html, body
{
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helveti... | mit |
dyatlov-a/WebBlocks | src/WebBlocks.Types/DataContracts/ISortable.cs | 121 | namespace WebBlocks.Types.DataContracts
{
public interface ISortable
{
int SortOrder { get; }
}
}
| mit |
mtrempoltsev/msu_cpp_autumn_2017 | homework/Kulagin/03/src/calc.cpp | 2738 | #ifndef CALC_CPP
#define CALC_CPP
#include "../include/calc.hpp"
std::unordered_map<std::string, double> Calculator::constants;
int Calculator::get_prim(char*& expr) {
skip_spaces(expr);
bool is_negative = false;
switch (*expr) {
case '+': {
expr++;
break;
}
case '-': {
is_negative = true;
expr++;... | mit |
deafhhs/adapt | clients/migrations/0011_client_napis_id.py | 425 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('clients', '0010_auto_20151024_2343'),
]
operations = [
migrations.AddField(
model_name='client',
nam... | mit |
cowthan/Ayo2022 | Ayo/app-talker/src/main/java/com/zebdar/tom/DropdownListView.java | 8410 | package com.zebdar.tom;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.AbsListView.OnScrollL... | mit |
KlishGroup/prose-pogs | pogs/A/ADEGAHX/GOMC/index.md | 1877 | ---
layout: page
title: Gold Orb Music Conference
date: 2016-05-24
author: Victoria Parker
tags: weekly links, java
status: published
summary: Proin vehicula ex dignissim ipsum tincidunt, eu pellentesque turpis finibus.
banner: images/banner/meeting-01.jpg
booking:
startDate: 12/13/2016
endDate: 12/14/2016
ctyhoc... | mit |
stefanw/froide | froide/foirequest/widgets.py | 1895 | from django import forms
from django_filters.widgets import RangeWidget
class DropDownFilterWidget(forms.widgets.ChoiceWidget):
template_name = 'foirequest/widgets/dropdown_filter.html'
def __init__(self, *args, **kwargs):
self.get_url = kwargs.pop('get_url', None)
super().__init__(*args, **... | mit |
KlishGroup/prose-pogs | pogs/S/SEAEDHX/RIER/index.md | 1445 | ---
layout: page
title: Ready Industries Executive Retreat
date: 2016-05-24
author: Karen Vang
tags: weekly links, java
status: published
summary: Suspendisse ac urna eget augue ullamcorper feugiat vitae ac enim.
banner: images/banner/leisure-04.jpg
booking:
startDate: 10/28/2016
endDate: 10/29/2016
ctyhocn: SEAE... | mit |
aredotna/case | ios/node_modules/cli-ux/lib/action/spinners.js | 8949 | "use strict";
module.exports = {
hexagon: {
interval: 400,
frames: ['⬡', '⬢'],
},
dots: {
interval: 80,
frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'],
},
dots2: {
interval: 80,
frames: ['⣾', '⣽', '⣻', '⢿', '⡿', '⣟', '⣯', '⣷'],
},
d... | mit |
gulijian/joingu | gulj-app-admin-biz/src/main/java/com/gulj/app/admin/config/AdminBizConfig.java | 952 | package com.gulj.app.admin.config;
import com.gulj.entity.common.bo.JoinAnnotationBeanNameGenerator;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.P... | mit |
xeleniumz/zte-libraries-php | Kernel/Snmp/Olt.php | 1896 | <?php
namespace Kernel\Snmp;
use Kernel\Interfaces\OltInterface;
/**
* @ This class work with only zte olt
* @author Xeleniumz Fx
* @version 1.1
* @date 2/3/2017
* */
class Olt implements OltInterface
{
private $olt_name = '1.3.6.1.2.1.1.5.0';
private $snmp_get_octet = '1.3.6.1.2.1.2.2.1.1';
private $gpon_nam... | mit |
graingert/alembic | alembic/runtime/environment.py | 35396 | from ..operations import Operations
from .migration import MigrationContext
from .. import util
class EnvironmentContext(util.ModuleClsProxy):
"""A configurational facade made available in an ``env.py`` script.
The :class:`.EnvironmentContext` acts as a *facade* to the more
nuts-and-bolts objects of :cl... | mit |
mjcurry/LinkStor | directory.php | 53 | <?php
echo "This feature is under construction";
?> | mit |
amacal/leak | sources/Leak.Listener/PeerListenerHandshake.cs | 402 | using Leak.Common;
namespace Leak.Listener
{
public class PeerListenerHandshake
{
private readonly Handshake handshake;
public PeerListenerHandshake(Handshake handshake)
{
this.handshake = handshake;
}
public bool HasExtensions
{
get { ... | mit |
Marri/glowfic | spec/controllers/characters_controller_spec.rb | 56627 | RSpec.describe CharactersController do
include ActiveJob::TestHelper
describe "GET index" do
let(:user) { create(:user) }
it "requires login without an id" do
get :index
expect(response).to redirect_to(root_url)
expect(flash[:error]).to eq("You must be logged in to view that page.")
... | mit |
atanasiuswau/furai | index.php | 706 | <?php get_template_part('templates/page', 'header'); ?>
<?php if (!have_posts()) : ?>
<div data-alert class="alert-box warning">
<?php _e('Sorry, no results were found.', 'roots'); ?>
</div>
<?php get_search_form(); ?>
<?php endif; ?>
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part('te... | mit |
Picturepark/Picturepark.SDK.TypeScript | docs/picturepark-sdk-v1-widgets/api/interfaces/screen.html | 10675 | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Screen | picturepark-sdk-v1-widgets API</title>
<meta name="description" content="Documentation for picturepark-sdk-v1-widgets API">
<meta name="viewport" content="width=device-wi... | mit |
lencinhaus/ubersafe | app/packages/sjcl/package.js | 254 | Package.describe({
summary: "Stanford Javascript Crypto Library with public key cryptography support"
});
Package.on_use(function (api, where) {
api.export('sjcl', 'client');
api.add_files('sjcl.js', 'client', {
bare: true
});
});
| mit |
crocos/CrocosSecurityBundle | Security/AuthLogic/AuthLogicInterface.php | 632 | <?php
namespace Crocos\SecurityBundle\Security\AuthLogic;
/**
* AuthLogicInterface.
*
* @author Katsuhiro Ogawa <ogawa@crocos.co.jp>
*/
interface AuthLogicInterface
{
/**
* Set authentication domain.
*/
public function setDomain($domain);
/**
* Log in.
*
* @param user $user
... | mit |
dcaba/wemeet | lib/we_meet/activity_category.rb | 322 | module WeMeet
class ActivityCategory
attr_accessor :name
def initialize(name)
@name = name.capitalize
end
def similar_to?(other)
return (@name.downcase.include? other.downcase or other.downcase.include? @name.downcase)
end
def ==(other)
return @name.downcase == other.name.downcase
end
end
en... | mit |
bezelga/tod | lib/tod/tasks_repository/in_memory.rb | 342 | module Tod
module TasksRepository
class InMemory
def initialize
@tasks = {}
@id = 0
end
def persist(task)
@id += 1
task.id = @id
tasks[@id] = task
task
end
def count
tasks.length
end
private
attr_reader :ta... | mit |
adrianschmidt/measure-stick | README.md | 357 | measure-stick
=============
A simple bookmarklet for measuring pixels on a webpage
Save as a bookmark in your browser. Click the bookmarklet to add the
measure-stick to the page.
The orange square can be moved with the arrow keys, or be dragged
around. Resize by holding alt and using the arrow keys. Press shift to
m... | mit |
Oukhay/smjetsetmag | app/cache/dev/twig/90/59/c36d2d4ecdaa941ebef449cf6897e5465f46e03b305a1a47f53905e11533.php | 3171 | <?php
/* TwigBundle:Exception:trace.txt.twig */
class __TwigTemplate_9059c36d2d4ecdaa941ebef449cf6897e5465f46e03b305a1a47f53905e11533 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | mit |
senshuu/Inquirer.js | test/specs/prompts/expand.js | 3372 | var expect = require('chai').expect;
var _ = require('lodash');
var ReadlineStub = require('../../helpers/readline');
var fixtures = require('../../helpers/fixtures');
var Expand = require('../../../lib/prompts/expand');
describe('`expand` prompt', function () {
beforeEach(function () {
this.fixture = _.clone(f... | mit |
rehanift/engine.js | spec/end-to-end/errors_spec.js | 4732 | var engine = require("../../engine").engine;
var task;
var factories = require("../spec_helper").component_factories;
describe("error scenarios", function(){
beforeEach(function(){
waits(500);
runs(function(){
this.identifier = "error" + Math.floor(Math.random() * 100000);
this.intake = factori... | mit |
MaddTheSane/executor | src/qRegular.cpp | 4494 | /* Copyright 1986, 1989, 1990 by Abacus Research and
* Development, Inc. All rights reserved.
*/
#if !defined (OMIT_RCSID_STRINGS)
char ROMlib_rcsid_qRegular[] =
"$Id: qRegular.c 63 2004-12-24 18:19:43Z ctm $";
#endif
/* Forward declarations in QuickDraw.h (DO NOT DELETE THIS LINE) */
#include "rsys/common.h... | mit |
demurgos/kryo | packages/kryo/README.md | 56 | # Kryo
Runtime types for validation and serialization.
| mit |
Lentil1016/LTB | v1.1/LentilToolbox/TextBox.cs | 2271 | using System;
using System.Windows.Forms;
using System.Text.RegularExpressions;
namespace LentilToolbox
{
//-------------------派生文本框类----------------------
//修改后不会影响dB和dd的参数
public class TextBoxInt: TextBox
{
public TextBoxInt()
{
}
private int value = 0;
publi... | mit |
M3kH/tire-bouchon | node_modules/grunt-react/node_modules/react-tools/build/modules/ReactInputSelection.js | 4502 | /**
* Copyright 2013 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | mit |
mhbu50/frappe | frappe/core/utils.py | 2081 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
import frappe
def get_parent_doc(doc):
"""Returns document of `reference_doctype`, `reference_doctype`"""
if not hasattr(doc, "parent_doc"):
if doc.reference_doctype and doc.reference_name:
doc.parent_doc = fra... | mit |
AdrianApostolov/TelerikAcademy | Homeworks/C#2/MethodsHomework/01.SayHello/SayHello.cs | 497 | /*
Problem 1. Say Hello
Write a method that asks the user for his name and prints “Hello, <name>”
Write a program to test this method.
Example:
input output
Peter Hello, Peter!
*/
using System;
class SayHello
{
static void PrintHello(string name)
{
Console.WriteLine("Hello, {0}!", name);
... | mit |
kuhlenh/port-to-core | Reports/tw/twolayeredgui.winforms.1.0.0/TwoLayeredGUI.WinForms-Net35.html | 204634 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | mit |
severinh/lunr.de.js | test/stemmer_test.js | 492 | // Copied from the lunr.js test suite
var stemmingFixture = { "läufer": "lauf" };
test('should stem words correctly', function () {
Object.keys(stemmingFixture).forEach(function (testWord) {
var expected = stemmingFixture[testWord];
equal(lunr.de.stemmer(testWord), expected);
});
});
test('should be reg... | mit |
sekys/ivis | project/doc/nio/mapping/package-use.html | 7123 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_21) on Fri May 03 11:00:28 CEST 2013 -->
<TITLE>
Uses of Package nio.mapping
</TITLE>
<META NAME="date" CONTENT="2013-05-03">
<LINK REL ="styleshee... | mit |
ignaciocases/hermeneumatics | node_modules/scala-node/main/target/streams/compile/externalDependencyClasspath/$global/package-js/extracted-jars/scalajs-library_2.10-0.4.0.jar--29fb2f8b/scala/collection/IterableProxyLike$class.js | 4164 | ScalaJS.impls.scala_collection_IterableProxyLike$class__iterator__Lscala_collection_IterableProxyLike__Lscala_collection_Iterator = (function($$this) {
return ScalaJS.as.scala_collection_IterableLike($$this.self__Lscala_collection_Traversable()).iterator__Lscala_collection_Iterator()
});
ScalaJS.impls.scala_collectio... | mit |
GoC-Spending/data-corporations | html/234567163063.html | 42216 |
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open... | mit |
fhelwanger/bayesjs-editor | src/components/EditNodeCptModal/index.test.js | 7502 | import React from 'react';
import { render, fireEvent } from '@testing-library/react';
import { getComponentTestId } from 'utils/test-utils';
import { head } from 'ramda';
import Modal from 'react-modal';
import * as nodeValidation from 'validations/node';
import * as eventUtils from 'utils/event';
import EditNodeCptMo... | mit |
TheoremCrypto/TheoremCoin | src/qt/locale/bitcoin_nb.ts | 120368 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="nb" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About TheoremCoin</source>
<translation>Om TheoremCoin</translation>
</message>
<message>
<lo... | mit |
ilancoulon/familyWeb | src/minipipo1/BlogBundle/Form/CommentType.php | 1893 | <?php
namespace minipipo1\BlogBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
class CommentType extends AbstractType
{
/**
* @var \minipipo1\UserBundle\Entity\User $current_user
*/
private $current_user;
public function __construct(\min... | mit |
dethi/troma | src/Game/Troma/Troma/Game/GameClient.cs | 11170 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Lidgren.Network;
using ClientServerExtension;
using System.ComponentModel;
namespace Troma
{
public class GameClient
{
#region Constants
private const string APP_NAME = "... | mit |
diegomtnezglez/android.first.contact.SplashScreenDemo | README.md | 1235 | # Android SplashScreenDemo
This sample code project for tutorial in http://androidprimercontacto.blogspot.com.es/2016/01/splash-screen-android.html, from blog http://androidprimercontacto.blogspot.com.es
A simple Android Studio project with a Splash Screen demo.
Project creation steps:
- Create a new project with a... | mit |
bryhardt/grcpool | classes/core/Controller.php | 3916 | <?php
abstract class Controller {
public $view;
public $input;
private $_uri;
private $_errors;
private $_success;
private $_renderView;
private $_name;
const VALIDATION_NUMBER = 1;
const VALIDATION_ALPHANUM = 2;
public function __construct() {
$this->view = new stdClass();
$this->input = new stdC... | mit |
tonikarttunen/tonikarttunen-com | src/decorators/withViewport.js | 1757 | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react/addons'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from '../../node_modules/react/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, ... | mit |
sybis/nodectl | lib/nodectl/version.rb | 43 | module Nodectl
VERSION = "0.2.5.dev"
end
| mit |
liaojinxing/liaojinxing.github.io | _site/iOS优秀开源代码/index.html | 3769 | <!DOCTYPE html>
<html>
<head>
<!-- meta information -->
<meta charset="utf-8">
<meta name="description"
content="- [AFNetworking]: 说起iOS,说起开源,不得不提[Mattt Thompson], 一个神一样的男人。Github上star数最多的Objective-C项目AFNetworking就出自他手下。- [Shimmer..." >
<meta name="author" content="liaojinxing">
<!-- Enable responsiveness... | mit |
wshca/Modelling_ClimateChange_Forest_CPP | converter.cpp | 1540 | #include <iostream>
#include <iomanip>
#include <stdlib.h>
using namespace std;
void c_to_f(void);
void f_to_c(void);
int main(void)
{
int choice;
char again;
do
{
system("CLS");
cout<<setw(10)<<" "<< "What conversion would you like to make?\n";// menu
cout<<setw(20)<<" "<< "1. Celsius to Fahrenhei\n\n";
/... | mit |
AdrianV/Framework7 | packages/react/components/accordion-content.js | 1003 | import React from 'react';
import Utils from '../utils/utils';
import Mixins from '../utils/mixins';
import __reactComponentSlots from '../runtime-helpers/react-component-slots.js';
import __reactComponentSetProps from '../runtime-helpers/react-component-set-props.js';
class F7AccordionContent extends React.Component ... | mit |
nivbend/memoir | quotes/migrations/0002_mentions.py | 885 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-08-16 21:29
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependen... | mit |
cscotta/miso-java | jetty/javadoc/org/mortbay/xml/class-use/XmlParser.Node.html | 30190 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_21) on Tue Nov 17 15:15:29 EST 2009 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
Uses of Class org.mortbay.xml.Xml... | mit |