repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
mspnp/data-pipeline | src/Implementation/Dispatcher/Dispatcher.Tests/MockMessageHandlerResolver.cs | 1098 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Practices.DataPipeline.Dispatcher.Tests
{
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Micros... | mit |
dionyziz/endofcodes | database/migration/20131208144508_imagename_to_name.php | 146 | <?php
Migration::dropField( 'images', 'imagename' );
Migration::addField( 'images', 'name', 'text COLLATE utf8_unicode_ci NOT NULL' );
?>
| mit |
mcliment/DefinitelyTyped | types/carbon__icons-react/lib/not-sent--filled/16.d.ts | 228 | import * as React from "react";
import { CarbonIconProps } from "../../";
declare const NotSentFilled16: React.ForwardRefExoticComponent<
CarbonIconProps & React.RefAttributes<SVGSVGElement>
>;
export default NotSentFilled16;
| mit |
LightningNetwork/lnd | pool/worker_test.go | 8520 | package pool_test
import (
"bytes"
crand "crypto/rand"
"fmt"
"io"
"math/rand"
"testing"
"time"
"github.com/lightningnetwork/lnd/buffer"
"github.com/lightningnetwork/lnd/pool"
)
type workerPoolTest struct {
name string
newPool func() interface{}
numWorkers int
}
// TestConcreteWorkerPools assert... | mit |
Chuxel/taco-team-build | samples/grunt/gruntfile.js | 1923 | /*
Copyright (c) Microsoft. All rights reserved.
Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
module.exports = function(grunt) {
grunt.loadNpmTasks("grunt-typescript");
grunt.initConfig({
typescript: {
base: {
s... | mit |
TiWinDeTea/TSiD | src/client/percentageDisplay.cpp | 2731 | #include "c_percentageDisplay.hpp"
void approxDisplay( unsigned int numb ){
if( numb >= (1024*1024) ){
std::cout << std::setw( 4 ) << static_cast<int>(numb / (1024*1024)) << " MiB";
} else if( numb >= 1024 ){
std::cout << std::setw( 4 ) << static_cast<int>(numb / 1024) << " KiB";
} else std::cout << " " << ... | mit |
stof/PHP-CS-Fixer | Symfony/CS/Tests/Fixer/Contrib/OrderedUseFixerTest.php | 9042 | <?php
/*
* This file is part of the PHP CS utility.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Symfony\CS\Tests\Fixer\Contrib;
use Symfony\CS\Tests\Fixer\AbstractFixerTestBase;
clas... | mit |
ReemHA/unknottheplot | graphicsproject/include/glm/core/type_mat4x2.hpp | 6220 | ///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2010 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2006-10-01
// Updated : 20... | mit |
m4ce/telegraf | plugins/inputs/rabbitmq/rabbitmq.go | 24872 | package rabbitmq
import (
"encoding/json"
"fmt"
"net/http"
"strconv"
"sync"
"time"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/filter"
"github.com/influxdata/telegraf/internal"
"github.com/influxdata/telegraf/plugins/common/tls"
"github.com/influxdata/telegraf/plugins/inputs"
)
// Def... | mit |
mattjdev/sumosurvey | routes/options.js | 1041 | var Router = require('express').Router;
var auth = require('../utils/auth');
var Option = require('../models').Option;
var router = new Router();
router
.delete('/:option_id', auth.isAuthenticated, function (req, res) {
Option.destroy({
where: { id: req.params.option_id }
}).then(function (affectedR... | mit |
cosnics/cosnics | src/Chamilo/Core/Repository/Display/Action/Component/ContentObjectUpdaterComponent.php | 2929 | <?php
namespace Chamilo\Core\Repository\Display\Action\Component;
use Chamilo\Core\Repository\Display\Action\Manager;
use Chamilo\Core\Repository\Form\ContentObjectForm;
use Chamilo\Core\Repository\Storage\DataClass\ContentObject;
use Chamilo\Core\Repository\Workspace\PersonalWorkspace;
use Chamilo\Libraries\Architect... | mit |
sysbmTemp/sysbmTemp.github.io | public/src/js/bm_baHack.js | 747 | /**
* Created by sam on 15-4-13.
*
* a plugin to hack :after and :before element in ie8-
*/
+function($){
var appendBeforeAfter = function($el){
if(document.querySelector || !$el.length) return;
// TODO: 虽然是给IE6、7 的hack,不一定识别before、after 这两个元素哦,如果没效果,就修改下,使用div ,并修改css
var $before = $('<before>');
... | mit |
FransBouma/RawDataAccessBencher | NH/DAL/Model/EntityClasses/SalesTaxRate.cs | 3298 | //------------------------------------------------------------------------------
// <auto-generated>This code was generated by LLBLGen Pro v4.2.</auto-generated>
//------------------------------------------------------------------------------
using System;
using System.ComponentModel;
using System.Collections.Generic;... | mit |
jasonroman/nba-api | src/Params/Stats/PointDiffParam.php | 403 | <?php declare(strict_types = 1);
namespace JasonRoman\NbaApi\Params\Stats;
/**
* Point Differential. Value is X points or less, not the exact point differential.
*/
class PointDiffParam extends AbstractStatsParam
{
const MIN = 1;
const MAX = 5;
/**
* {@inheritdoc}
* @return int
*/
pu... | mit |
cosnics/cosnics | src/Chamilo/Core/Repository/ContentObject/Evaluation/Display/Ajax/Component/LoadEntitiesComponent.php | 4611 | <?php
namespace Chamilo\Core\Repository\ContentObject\Evaluation\Display\Ajax\Component;
use Chamilo\Core\Repository\ContentObject\Evaluation\Display\Ajax\Manager;
use Chamilo\Core\Repository\ContentObject\Evaluation\Display\Service\Entity\EvaluationEntityRetrieveProperties;
use Chamilo\Core\Repository\ContentObject\... | mit |
jintoppy/react-training | step9-redux/app/js/constants/app-constants.js | 140 | export default {
ADD_ITEM: 'ADD_ITEM',
REMOVE_ITEM: 'REMOVE_ITEM',
INCREASE_ITEM: 'INCREASE_ITEM',
DECREASE_ITEM: 'DECREASE_ITEM',
} | mit |
Bubblesphere/ay-discord-bot | helper.py | 1382 | """ Helper functions """
CHANNEL_DICT = {
'league-of-legends': '363801664785874944',
'rocket-leauge': '363801757509353474',
'chilling-boys': '363863510096281611',
'afk-boys': '363817899997134848'
}
async def get_user_voice_channel(ctx):
author = ctx.message.author
voice_channel = author.voice... | mit |
bfelbo/DeepMoji | examples/score_texts_emojis.py | 2426 | # -*- coding: utf-8 -*-
""" Use DeepMoji to score texts for emoji distribution.
The resulting emoji ids (0-63) correspond to the mapping
in emoji_overview.png file at the root of the DeepMoji repo.
Writes the result to a csv file.
"""
from __future__ import print_function, division
import example_helper
import json
... | mit |
urandu/jsonview | lib/jsonview.js | 6213 | /**
* @author Benjamin Hollis
*
* This component provides a stream converter that can translate from JSON to HTML.
*/
const { Class } = require("sdk/core/heritage");
const { Unknown } = require("sdk/platform/xpcom");
const { Cc, Ci } = require("chrome");
const { JSONFormatter } = require("./jsonformatter");
// Thi... | mit |
chriscasola/angular-smarter-models | src/model-instance.ts | 1215 | /// <reference path="../typings/tsd.d.ts"/>
/// <reference path="./module.ts"/>
/// <reference path="./model-wrapper.ts"/>
module AngularSmarterModels {
export interface ModelInstanceConfig {
rawModel: any,
modelPath: string,
modelDataRetriever: ModelDataRetriever,
listPath: string,
idField: stri... | mit |
visor-vu/chariot | DSML/src/xtext/ThirdParty/org.eclipse.orbit.mongodb/source-bundle/com/mongodb/MongoURI.java | 7494 | // MongoURI.java
package com.mongodb;
import java.net.*;
import java.util.*;
import java.util.logging.*;
/**
* Represents a URI which can be used to create a Mongo instance.
* The URI describes the hosts to be used and options.
*/
public class MongoURI {
public static final String MONGODB_PREFIX = "mongodb:/... | mit |
flavioheleno/idos-sdk-php | src/idOS/Endpoint/Company/Settings.php | 1176 | <?php
declare(strict_types = 1);
namespace idOS\Endpoint\Company;
/**
* Settings Class Endpoint.
*/
class Settings extends AbstractCompanyEndpoint {
/**
* Lists all settings from the given company.
*
* @param array $filter
*
* @return array Response
*/
public function listAll(... | mit |
PeopleAdmin/qtrix | demo/jobs.rb | 552 | class BaseJob
##
# Performs a job by sleeping for a time and
# incrementing the count of times performed
# in redis (key is the job class name)
def self.perform(sleep_time=0)
sleep(sleep_time)
Resque.redis.incr class_name
end
private
def self.redis
@redis ||= Redis.new
end
def self.cla... | mit |
SvenFrankson/SvenFrankson.github.io | BabylonDemoWeb/scripts/EditorPreview.js | 1366 | var EditorPreview = (function () {
function EditorPreview(canvasElement) {
EditorPreview.Instance = this;
this._canvas = document.getElementById(canvasElement);
this._engine = new BABYLON.Engine(this._canvas, true);
}
EditorPreview.prototype.getCanvas = function () {
return t... | mit |
foxreymann/jobeet | src/Ens/JobeetBundle/DataFixtures/ORM/LoadCategoryData.php | 1158 | <?php
namespace Ens\JobeetBundle\DataFixtures\ORM;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use Ens\JobeetBundle\Entity\Category;
class LoadCategoryData extends AbstractFixture implements OrderedFixtureI... | mit |
pkt-zer0/ui-router | src/state.js | 60672 | /**
* @ngdoc object
* @name ui.router.state.$stateProvider
*
* @requires ui.router.router.$urlRouterProvider
* @requires ui.router.util.$urlMatcherFactoryProvider
*
* @description
* The new `$stateProvider` works similar to Angular's v1 router, but it focuses purely
* on state.
*
* A state corresponds to a "... | mit |
janpaul123/jsdares | app/jsmm-applet/jsmm/jsmm.tree.js | 3403 | /*jshint node:true*/
"use strict";
module.exports = function(jsmm) {
jsmm.Tree = function() { return this.init.apply(this, arguments); };
jsmm.Tree.prototype = {
init: function(code, options) {
this.options = options || {};
this.genIds = {base: 1, functions: 1};
this.nodes = [];
this.nodesByType = { P... | mit |
pulpobot/C-SFML-html5-animation | ch14-06-multi-segment-reach/src/main.cpp | 2558 | #include <iostream>
#include <cmath>
#include "SFML\Graphics.hpp"
#include "Segment.h"
sf::Vector2f Reach(Segment &segment, const float xPos, const float yPos) {
float dx = xPos - segment.GetX(),
dy = yPos - segment.GetY();
segment.SetRotation(std::atan2(dy, dx) * 180 / M_PI);
float w = segme... | mit |
CslaGenFork/CslaGenFork | tags/Rules sample v.1.0.0.0/CslaGenFork.Rules-4.1.0/Business Rules/Range.cs | 5488 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Range.cs" company="Marimer LLC">
// Copyright (c) Marimer LLC. All rights reserved. Website: http://www.lhotka.net/cslanet
// </copyright>
// <summary>
// Business rule f... | mit |
flintwork/pep8-naming | testsuite/N816_py37.py | 198 | # python_version >= '3.7'
#: Okay
async with expr as Γ:
pass
#: N816
async with expr as γΓ:
pass
#: Okay
async for Γ1 in iterator:
pass
#: N816
async for γΓ1 in iterator:
pass
| mit |
goulash/errs | multiple.go | 1225 | // Copyright (c) 2016, Ben Morgan. All rights reserved.
// Use of this source code is governed by an MIT license
// that can be found in the LICENSE file.
package errs
import (
"fmt"
"strings"
)
// Collector collects multiple errors and returns a MultipleError
// if any of the errors are non-nil.
type Collector st... | mit |
Microsoft/ApplicationInsights-dotnet | WEB/Src/Web/Web.Tests/WebTestTelemetryInitializerTest.cs | 5918 | namespace Microsoft.ApplicationInsights.Web
{
using System.Collections.Generic;
using System.Diagnostics;
using System.Web;
using Microsoft.ApplicationInsights.Common;
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Web.Helpers;
using Microsoft.VisualS... | mit |
h0x91b/redis-v8 | redis/deps/v8/test/cctest/test-date.cc | 6339 | // Copyright 2012 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... | mit |
OneMoreCheckin/mobile-app | dependencies/spitfire/master/burnscars/es5.shim.unsafe-min.js | 3548 | 'use strict';(function(f){typeof define=="function"?define(f):typeof YUI=="function"?YUI.add("es5-sham",f):f()})(function(){function f(a){try{return Object.defineProperty(a,"sentinel",{}),"sentinel"in a}catch(b){}}var e=Function.prototype.call,g=Object.prototype,h=e.bind(g.hasOwnProperty),n,o,j,k,i;if(i=h(g,"__defineGe... | mit |
enclose-io/compiler | lts/deps/npm/test/tap/update-symlink.js | 2346 | 'use strict'
const path = require('path')
const test = require('tap').test
const mr = require('npm-registry-mock')
const Tacks = require('tacks')
const File = Tacks.File
const Symlink = Tacks.Symlink
const Dir = Tacks.Dir
const common = require('../common-tap.js')
const basedir = common.pkg
const testdir = path.join(b... | mit |
robsiera/Dnn.Platform | DNN Platform/Library/ExtensionPoints/SafeDirectoryCatalog.cs | 2698 | #region Copyright
//
// DotNetNuke® - https://www.dnnsoftware.com
// Copyright (c) 2002-2018
// by DotNetNuke Corporation
//
// 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 restri... | mit |
lukestephenson/positivebid | db/migrate/20121217224541_update_lot_states.rb | 213 | class UpdateLotStates < ActiveRecord::Migration
def up
Lot.where(:state => 'forsale').update_all(:state => 'open')
end
def down
Lot.where(:state => 'open').update_all(:state => 'forsale')
end
end
| mit |
yogeshsaroya/new-cdnjs | ajax/libs/codemirror/3.16.0/mode/verilog/verilog.min.js | 129 | version https://git-lfs.github.com/spec/v1
oid sha256:afa9f2fb52cecb86f7ff8033770674f902ee05513dc824e72905fb42b59380db
size 3693
| mit |
Djamy/platform | src/Oro/Bundle/UIBundle/Resources/public/js/widget/block-widget.js | 5392 | define(['underscore', 'backbone', 'oroui/js/widget/abstract-widget'
], function(_, Backbone, AbstractWidget) {
'use strict';
var $ = Backbone.$;
/**
* @export oro/block-widget
* @class oro.BlockWidget
* @extends oroui.widget.AbstractWidget
*/
return AbstractWidget.extend({
... | mit |
funkring/gs5 | app/helpers/phone_books_helper.rb | 28 | module PhoneBooksHelper
end
| mit |
ModelN/grunt-blanket-mocha | phantomjs/bridge.js | 3319 | /*
* Is injected into the spec runner file
* Copyright (c) 2012 Kelly Miyashiro
* Copyright (c) 2012 "Cowboy" Ben Alman
* Licensed under the MIT license.
* http://benalman.com/about/license/
*/
/*global mocha:true, alert:true, window:true */
(function() {
var MOCHA_EVENTS = [
'start',
'test',
'te... | mit |
dfh/form | doc/form_templates/radio.html.php | 821 | <div <?= $this->error ? ' class="error"' : ''; ?>>
<label id="label-<?= $this->id; ?>" for="input-<?= $this->id; ?>"><?= $this->label; ?></label>
<?php if ( $this->help_msg ): ?>
<span class="help"><?= $this->help_msg; ?></span>
<?php endif; ?>
<?= $this->error ? '<div class="error-w">' : ''; ?>
<ul>
<?php $i = 0; ... | mit |
marsoln/temptation | web/components/Toast.js | 308 | import React from 'react'
import styles from './Toast.scss'
export default ({ className, message, show }) => (
<div
className={[
styles.container,
'animated',
'fadeIn',
].concat(className).join(' ')}
style={{ display: show ? 'block' : 'none' }}
>
{message}
</div>
)
| mit |
cbratschi/aminogfx-gl | demos/projection/slave.js | 2483 | 'use strict';
console.log('I am the slave. :(');
const amino = require('../../main.js');
const gfx = new amino.AminoGfx();
gfx.start(function (err) {
if (err) {
console.log('Start failed: ' + err.message);
return;
}
const root = this.createGroup();
this.w(400);
this.h(400);
... | mit |
adamivora/graphql-dotnetcore | src/GraphQLCore/Validation/Rules/UniqueFragmentNamesVisitor.cs | 1376 | namespace GraphQLCore.Validation.Rules
{
using Exceptions;
using Language.AST;
using System.Collections.Generic;
using System.Linq;
using Type;
public class UniqueFragmentNamesVisitor : ValidationASTVisitor
{
private Dictionary<string, GraphQLName> knownFragmentNames = new Dictiona... | mit |
zhaopei0418/maintain | src/main/java/online/zhaopei/myproject/service/ecssent/impl/DeliveryHeadServiceImpl.java | 792 | package online.zhaopei.myproject.service.ecssent.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import online.zhaopei.myproject.domain.ecssent.DeliveryHead;
import online.zhaopei.myproject.mapper.ecssent.DeliveryHeadMapper;
i... | mit |
bitovi/canjs | demos/technology-overview/mock-url.js | 2089 | import { Component, DefineMap, stache } from "can";
const style = document.createElement("style");
style.innerHTML = `
mock-url {display: block;}
mock-url .location {
display: flex;
margin-bottom: 20px;
}
mock-url .url {
display: inline-block;
border: solid 1px;
padding: 2px;
flex-grow: 1;
}
m... | mit |
AlexandrSafonov/saiSelect | js/forIE.js | 1681 | jQuery(document).ready(function($){
(function setPlaceHolders(){
var input = $("input, textarea"); // get all text fields
var cls = "placeholdr"; // set name of the class
if (input) { // if fields found
for (var i=0; i < input.length; i++) {
var t = ... | mit |
TheOpenCloudEngine/metaworks | metaworks-dwr/core/impl/main/java/org/directwebremoting/servlet/ExceptionHandler.java | 2877 | /*
* Copyright 2005 Joe Walker
*
* 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 i... | mit |
GlukKazan/GlukKazan.github.io | arrange/scripts/fangqi-extension.js | 4455 | (function() {
var koMode = false;
var checkVersion = Dagaz.Model.checkVersion;
Dagaz.Model.checkVersion = function(design, name, value) {
if (name == "fangqi-extension") {
if (value == "ko") koMode = true;
} else {
checkVersion(design, name, value);
}
}
var incForm = function(board, pl... | mit |
airyland/vux | .eslintrc.js | 761 | module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: 'standard',
globals: {'expect': true, 'it': true, 'describe': true, 'ga': true, 'window': true, 'document': true... | mit |
sllethe/material2 | src/material-examples/autocomplete-overview/autocomplete-overview-example.ts | 1589 | import {Component} from '@angular/core';
import {FormControl} from '@angular/forms';
import 'rxjs/add/operator/startWith';
import 'rxjs/add/operator/map';
/**
* @title Basic autocomplete
*/
@Component({
selector: 'autocomplete-overview-example',
templateUrl: 'autocomplete-overview-example.html',
})
export class... | mit |
silliemunkie/typoBlog | app/models/article.rb | 15599 | require 'uri'
require 'net/http'
class Article < Content
include TypoGuid
content_fields :body, :extended
has_many :pings, :dependent => :destroy, :order => "created_at ASC"
has_many :comments, :dependent => :destroy, :order => "created_at ASC" do
# Get only ham or presumed_ham comments
def ... | mit |
facelessuser/sublime-markdown-popups | st3/mdpopups/pygments/styles/vim.py | 1962 | # -*- coding: utf-8 -*-
"""
pygments.styles.vim
~~~~~~~~~~~~~~~~~~~
A highlighting style for Pygments, inspired by vim.
:copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from ..style import Style
from ..token import Keyword, Name, Comme... | mit |
Lafeng/deblocus | glog/glog_test.go | 11522 | // Go support for leveled logs, analogous to https://code.google.com/p/google-glog/
//
// Copyright 2013 Google Inc. 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
/... | mit |
theseushu/funong-web | app/modules/common/filesUpload/item/index.js | 317 | import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { selector, actions } from 'api/uploadFile/ducks';
import Component from './item';
export default connect(
(state) => ({ uploadStates: selector(state) }),
(dispatch) => bindActionCreators(actions, dispatch),
)(Component);
| mit |
Nahrae/easy_pie_chart | lib/easy_as_pie.rb | 92 | require 'easy_as_pie/view_helper'
require 'easy_as_pie/engine' if defined?(::Rails::Engine)
| mit |
labpp/fapesc | app/cache/dev/annotations/Fapesc-TutorialBundle-Entity-Projeto$municipio.cache.php | 281 | <?php return unserialize('a:1:{i:0;O:27:"Doctrine\\ORM\\Mapping\\Column":10:{s:4:"type";s:7:"integer";s:6:"length";N;s:9:"precision";i:0;s:5:"scale";i:0;s:6:"unique";b:0;s:8:"nullable";b:0;s:4:"name";s:9:"municipio";s:7:"options";a:0:{}s:16:"columnDefinition";N;s:5:"value";N;}}'); | mit |
inowas/inowas_api | src/Inowas/Soilmodel/Model/Event/SoilmodelDescriptionWasChanged.php | 1695 | <?php
declare(strict_types=1);
namespace Inowas\Soilmodel\Model\Event;
use Inowas\Common\Id\UserId;
use Inowas\Common\Soilmodel\SoilmodelDescription;
use Inowas\Common\Soilmodel\SoilmodelId;
use Prooph\EventSourcing\AggregateChanged;
class SoilmodelDescriptionWasChanged extends AggregateChanged
{
/** @var \In... | mit |
amarzavery/AutoRest | src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/operations/header.js | 203666 | /*
* 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 |
rpepato/NRefactoryCUBuilder | src/NRefactoryCUBuilder.Tests/SolutionFixtures/CompositeSolution/FirstProject/Properties/AssemblyInfo.cs | 1400 | 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("Fi... | mit |
redarrowlabs/Argo | src/RedArrow.Argo.Fody.Shared/ModelPropertyWeaver.cs | 5666 | using System.Diagnostics;
using Mono.Cecil;
using Mono.Cecil.Cil;
namespace RedArrow.Argo
{
public partial class ModuleWeaver
{
private void AddResourceIdentifierProperty(ModelWeavingContext context)
{
context.ResourcePropDef = AddAutoProperty("__argo__generated_Resource", context)... | mit |
oscherler/DMS | src/DMS/Filter/Rules/HtmlEntities.php | 634 | <?php
namespace DMS\Filter\Rules;
/**
* Html Entities Filter
*
* @package DMS
* @subpackage Filter
*
* @Annotation
*/
class HtmlEntities extends Rule
{
/**
* Flags
*
* @var int
*/
public $flags = ENT_COMPAT;
/**
* Encoding to be used
*
* @var string
*/
pu... | mit |
mcliment/DefinitelyTyped | types/carbon__icons-react/es/letter--Zz/20.d.ts | 218 | import * as React from "react";
import { CarbonIconProps } from "../../";
declare const LetterZz20: React.ForwardRefExoticComponent<
CarbonIconProps & React.RefAttributes<SVGSVGElement>
>;
export default LetterZz20;
| mit |
dewuem/orthology_and_selection | calculate-lrt.py | 797 | #!/usr/bin/python2
import sys
from scipy.stats import chisqprob
# Daniel Elsner
# calculates the likelihood ratio test
with open(sys.argv[1], "r") as fileA:
fcontent = list(fileA)
fileA.close()
switch = False
mem_0 = 0
df_0 = 0
mem_1 = 0
df_1 = 0
df = 0
p_value = 0
for lineA in fcontent:
if switch ==... | mit |
airgames/vuforia-gamekit-integration | Gamekit/Engine/Loaders/Blender2/gkTextureLoader.cpp | 2554 | /*
-------------------------------------------------------------------------------
This file is part of OgreKit.
http://gamekit.googlecode.com/
Copyright (c) 2006-2010 Charlie C.
Contributor(s): none yet.
-------------------------------------------------------------------------------
This software i... | mit |
gammasoft71/Switch | tests/Switch.Core.UnitTests/Switch/ReferenceUT.cpp | 3452 | #include <Switch/Ref.hpp>
#include <Switch/System/String.hpp>
#include <gtest/gtest.h>
using namespace System;
namespace {
TEST(ReferenceTest, SetNullToPointer) {
ref<int> ptr;
ASSERT_TRUE(ptr == null);
ASSERT_THROW(ptr(), std::exception);
ASSERT_THROW(ptr.ToObject(), std::exception);
ASSERT_THR... | mit |
nlsdfnbch/btfxwss | btfxwss/__init__.py | 37 | from btfxwss.client import BtfxWss
| mit |
thinkingmedia/readme-plus | src/services/code-climate.js | 1139 | //var fs = require('fs');
//var logger = require('winston');
//
//exports.create = function(options)
//{
// var plugin = function(options)
// {
// this.name = 'codeclimate';
// this.valid = true;
//
// this.write = function(root, services)
// {
// // check if the token exists in the travis file
// var travis = ... | mit |
RuzmanovDev/Telerik-Academy-Season-2016-2017 | Modul-II/01.High-Quality-Code/04.Design-Patterns/DIi.NET_SourceCode/AntiPatterns/AntiPatterns/DirectControl/Factory/StaticFactory/Complex/ProductRepositoryFactory.cs | 1211 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
namespace Ploeh.Samples.DI.AntiPatterns.DirectControl.Factory.StaticFactory.Complex
{
public static class ProductRepositoryFactory
{
public static ProductRepository Create()
{
... | mit |
amervitz/xRM-Portals-Community-Edition | Framework/Adxstudio.Xrm/Web/Mvc/Liquid/EventScheduleDrop.cs | 1446 | /*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for license information.
*/
using System;
using Adxstudio.Xrm.Cms;
using Adxstudio.Xrm.Events;
namespace Adxstudio.Xrm.Web.Mvc.Liquid
{
public class EventScheduleDrop : EntityDrop
{
... | mit |
jderr-mx/code-corps-ember | app/components/project-settings-form.js | 1090 | import Component from '@ember/component';
import { inject as service } from '@ember/service';
import { set, get } from '@ember/object';
export default Component.extend({
classNames: ['project-settings-form', 'settings-form'],
flashMessages: service(),
loadingBar: service(),
uploadDone(cloudinaryPublicId) {
... | mit |
kmcginnes/Highway.Data | Highway/test/Highway.Data.EntityFramework.Tests/Repositories/Given_A_Generic_Repository.cs | 5106 | using System.Collections.Generic;
using System.Linq;
using Castle.MicroKernel.Registration;
using Castle.Windsor;
using Common.Logging;
using Common.Logging.Simple;
using FluentAssertions;
using Highway.Data.EntityFramework.Tests.Mapping;
using Highway.Data.EntityFramework.Tests.Properties;
using Highway.Data.EntityFr... | mit |
uplevel-technology/material-ui-next | es/Table/TablePagination.d.ts | 1015 | import * as React from 'react';
import { StandardProps } from '..';
import { TableCellProps, TableCellClassKey } from './TableCell.d'
export interface LabelDisplayedRowsArgs {
from: number;
to: number;
count: number;
page: number;
}
export interface TablePaginationProps extends StandardProps<
TableCellProps... | mit |
popcodeorg/popcode | src/util/normalizeError.js | 2816 | import i18next from 'i18next';
import assign from 'lodash-es/assign';
import get from 'lodash-es/get';
import isEmpty from 'lodash-es/isEmpty';
import keys from 'lodash-es/keys';
import bowser from '../services/bowser';
const normalizers = {
Chrome: {
TypeError: message => {
let match;
match = /^(\... | mit |
ArcanisCz/angular-requirejs-seed | core/loader/filter.js | 179 | define([
"core/loader/loaderGeneral"
], function (loader) {
return {
load: loader.load.bind(this, "filter"),
pluginBuilder: loader.pluginBuilder
};
}); | mit |
yaakoviyun/azure-sdk-for-net | src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IVersions.cs | 10907 | // <auto-generated>
// 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
// re... | mit |
Guighost/Guighost.github.io | farmtest/plugins/cordova-plugin-market/src/android/Market.java | 3098 | package com.xmartlabs.cordova.market;
import org.apache.cordova.CordovaWebView;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CordovaInterface;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.... | mit |
Rohansi/Mond | Mond/Compiler/Parselets/Statements/ForParselet.cs | 1919 | using System.Collections.Generic;
using Mond.Compiler.Expressions;
using Mond.Compiler.Expressions.Statements;
namespace Mond.Compiler.Parselets.Statements
{
class ForParselet : IStatementParselet
{
public Expression Parse(Parser parser, Token token, out bool trailingSemicolon)
{
t... | mit |
yiji/Dnn.Platform | DNN Platform/Tests/DotNetNuke.Tests.Core/Controllers/Host/HostControllerTest.cs | 15925 | #region Copyright
//
// DotNetNuke® - http://www.dotnetnuke.com
// Copyright (c) 2002-2016
// by DotNetNuke Corporation
//
// 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 restrict... | mit |
tnemis/staging-server | teachers/views/teacher_test_views.py | 6548 | from django.views.generic import View
from teachers.models import Teacher_detail,Teacher_test,test_master,Months,completed_table
from teachers.forms import Teacher_testform
from schoolnew.models import Basicinfo
from django.shortcuts import *
from django.contrib import messages
from django.db import *
from datetime imp... | mit |
navalev/azure-sdk-for-java | sdk/mediaservices/mgmt-v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/JpgImage.java | 1496 | /**
* 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.
*/
package com.microsoft.azure.management.mediaservices.v2018_06_01_preview;
import java.u... | mit |
JonnyBGod/RealityConnect-Hackathon | server/lib/utils.js | 1022 | /*
* Internal utilities for models
*/
var crypto = require('crypto');
var assert = require('assert');
/**
* Get the model class
* @param {Function} cls The sub class
* @param {Function} base The base class
* @returns {Function} The resolved class
*/
function getModel(cls, base) {
if (!cls) {
return base;
... | mit |
ozeta/VisualFiParser | VisualFiParser/obj/Debug/Window1.g.i.cs | 10109 | #pragma checksum "..\..\Window1.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "0C9679B621FDB8920AE46662DAB4512A"
//------------------------------------------------------------------------------
// <auto-generated>
// Il codice è stato generato da uno strumento.
// Versione runtime:4.0.30319.42000
//
// Le... | mit |
iceslab/OrienteeringToolWPF | GecoSI.Net/Properties/AssemblyInfo.cs | 1520 | //
// Copyright (c) 2013-2014 Simon Denier & Yannis Guedel
//
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.
... | mit |
kevinohara80/nforce-metadata | examples/delete-metadata.js | 728 | var nforce = require('nforce');
var _ = require('lodash');
require('../')(nforce);
var org = nforce.createConnection({
clientId: '3MVG9rFJvQRVOvk5nd6A4swCyck.4BFLnjFuASqNZmmxzpQSFWSTe6lWQxtF3L5soyVLfjV3yBKkjcePAsPzi',
clientSecret: '9154137956044345875',
redirectUri: 'http://localhost:3000/oauth/_callback'... | mit |
kreta/SimpleApiDocBundle | spec/Kreta/SimpleApiDocBundle/Annotation/ApiDocSpec.php | 865 | <?php
/*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace spec\Kreta\SimpleApiDocB... | mit |
miniter/SSH.NET | src/Renci.SshNet/Common/DerData.cs | 10601 | using System;
using System.Collections.Generic;
namespace Renci.SshNet.Common
{
/// <summary>
/// Base class for DER encoded data.
/// </summary>
public class DerData
{
private const byte Constructed = 0x20;
private const byte Boolean = 0x01;
private const byte Integer = 0... | mit |
agrc/bb-econ | scripts/tests/__init__.py | 27 | __author__ = 'agrc-arcgis'
| mit |
volkert/soundcloud-player | web/app/player_directive.js | 1133 | angular.module('forecast-player')
.directive('player', function ($interval) {
return {
restrict: 'A',
link: function (scope, elm) {
var audio = elm.find('audio'),
timeInterval = null,
pauseTime = null;
scope.$on('player:play', function (... | mit |
fabiensebban/magento | dev/tests/functional/tests/app/Mage/Adminhtml/Test/Block/Sales/Order/View/Items/Product.php | 1193 | <?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... | mit |
charlesbjohnson/cracking_the_coding_interview | test/ctci/chapter_seven/test_seven.rb | 441 | require 'config_test'
module CTCI::ChapterSeven
class TestSeven < Minitest::Test
include Seven
def test_returns_kth_number_with_three_five_and_seven_prime_factors_only
[1, 3, 5, 7, 9, 15, 21, 25, 27, 35, 45, 49, 63].each_with_index do |e, i|
assert_equal e, kth_number_with_prime_factors(i)
... | mit |
Dermah/pulsar | src/pulses/slider.js | 1198 | var Drawing = function (p5, pulse) {
var defaults = {
totalFrames: 15,
slideFrames: 5,
// out of 255
r: 255,
g: 255,
b: 255,
a: 255
}
p5.pulsar.merge(defaults, pulse);
defaults.framesLeft = defaults.totalFrames;
this.pulse = defaults;
};
Drawing.prototype.draw = function (p) ... | mit |
explodingnuggets/Roguelike | windows-build/src/ButtonList.cpp | 2303 | #include <ButtonList.hpp>
ButtonList::ButtonList():
m_actualIndex(0){}
void ButtonList::setOutline(sf::Texture& texture){
sf::Vector2u textureSize = texture.getSize();
m_outlineSprite.setTexture(texture);
m_outlineSprite.setOrigin(textureSize.x/2, textureSize.y/2);
}
void ButtonList::addButton(sf::RenderWindow... | mit |
geffzhang/equeue | src/EQueue/Utils/AsyncLock.cs | 4384 | using System;
using System.Threading;
using System.Threading.Tasks;
namespace EQueue.Utils
{
public class AsyncLock
{
private object _reentrancy = new object();
private int _reentrances = 0;
//We are using this SemaphoreSlim like a posix condition variable
//we only want to wak... | mit |
edoren/STP | include/STP/Core/Properties.hpp | 2874 | ////////////////////////////////////////////////////////////
//
// The MIT License (MIT)
//
// STP - SFML TMX Parser
// Copyright (c) 2013-2014 Manuel Sabogal
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to de... | mit |
rd-switchboard/Browser | applications/registry/data_source/views/chart_report.php | 3159 | <?php
/**
* @author Minh Duc Nguyen <minh.nguyen@ands.org.au>
*/
?>
<?php $this->load->view('header');?>
<input type="hidden" value="<?php echo $ds->id;?>" id="data_source_id"/>
<div id="content" style="margin-left:0px">
<div class="content-header">
<h1><?php echo $ds->title;?></h1>
<ul class="nav nav-pills">... | mit |
yiji/Dnn.Platform | DNN Platform/Library/Entities/Content/Workflow/Exceptions/WorkflowDoesNotExistException.cs | 1586 | #region Copyright
//
// DotNetNuke® - http://www.dotnetnuke.com
// Copyright (c) 2002-2016
// by DotNetNuke Corporation
//
// 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 restrict... | mit |
you21979/NBitcoin | NBitcoin.BouncyCastle/crypto/digests/Sha512tDigest.cs | 5473 | using System;
using NBitcoin.BouncyCastle.Crypto.Utilities;
using NBitcoin.BouncyCastle.Utilities;
namespace NBitcoin.BouncyCastle.Crypto.Digests
{
/**
* FIPS 180-4 implementation of SHA-512/t
*/
public class Sha512tDigest
: LongDigest
{
private const ulong A5 = 0xa... | mit |
cdnjs/cdnjs | ajax/libs/foundation/6.6.1/js/plugins/foundation.util.mediaQuery.js | 19526 | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("./foundation.core"), require("jquery"));
else if(typeof define === 'function' && define.amd)
define(["./foundation.core", "jquery"], factory);
else if(typeof... | mit |