repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
safan-lab/safan | Safan/Handler/ConsoleHandler.php | 1129 | <?php
/**
* This file is part of the Safan package.
*
* (c) Harut Grigoryan <ceo@safanlab.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Safan\Handler;
use Safan\CliManager\CliManager;
class ConsoleHandler extend... | mit |
jshimko/react-time-ago | src/language-strings/gl.js | 475 | /* @flow */
import type {L10nsStrings} from '../formatters/buildFormatter'
// Galician
const strings: L10nsStrings = {
prefixAgo: 'hai',
prefixFromNow: 'dentro de',
suffixAgo: '',
suffixFromNow: '',
seconds: 'menos dun minuto',
minute: 'un minuto',
minutes: 'uns %d minutos',
hour: 'unha hora',
hours:... | mit |
shoerob/BumbleTales | Tools/CRCompiler/OutputPathHandler.cpp | 448 | #include "OutputPathHandler.h"
#include "CompilerImpl.h"
#include "boost/algorithm/string.hpp"
using namespace CR;
using namespace CR::Compiler;
using namespace boost;
OutputPathHandler::OutputPathHandler(void)
{
}
OutputPathHandler::~OutputPathHandler(void)
{
}
void OutputPathHandler::HandleAttribute(const std::ws... | mit |
facebook/watchman | watchman/test/RingBufferTest.cpp | 939 | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <folly/portability/GTest.h>
#include "watchman/RingBuffer.h"
using namespace watchman;
TEST(RingBufferTest, writes_ca... | mit |
nass59/SiteAir | app/cache/dev/annotations/b87055e8ac5549b34041b908d34f5ca5cd63d695.cache.php | 382 | <?php return unserialize('a:3:{i:0;O:26:"Doctrine\\ORM\\Mapping\\Table":5:{s:4:"name";s:9:"air_image";s:6:"schema";N;s:7:"indexes";N;s:17:"uniqueConstraints";N;s:7:"options";a:0:{}}i:1;O:27:"Doctrine\\ORM\\Mapping\\Entity":2:{s:15:"repositoryClass";s:37:"Air\\BlogBundle\\Entity\\ImageRepository";s:8:"readOnly";b:0;}i:2... | mit |
robdennis/ng-depthchart | tests/directiveSpec.js | 13499 | 'use strict';
describe('ng-depthchart', function() {
beforeEach(function() {
module('ng-depthchart');
});
var globalMatchers = {
matchesExpectedContent: function(expectedValuesByRowThenCell, table) {
table = table || this.actual;
var rows = table.find('tr');
... | mit |
mostofreddy/owncaptcha | examples/big.php | 859 | <?php
/**
* Big
*
* PHP version 5.4
*
* Copyright (c) 2014 Federico Lozada Mosto <mosto.federico@gmail.com>
* For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
*
* @category OwnCaptcha
* @package OwnCaptcha\Examples
* @author Federic... | mit |
slkasun/symfony2demo | src/Blog/ModelBundle/Entity/Comment.php | 2128 | <?php
namespace Blog\ModelBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Comment
*
* @ORM\Table()
* @ORM\Entity
*/
class Comment extends Timestampable
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
... | mit |
uar-dejan-susic/movie_star_km | spec/views/movies/edit.html.slim_spec.rb | 140 | require 'rails_helper'
RSpec.describe "movies/edit.html.slim", type: :view do
pending "add some examples to (or delete) #{__FILE__}"
end
| mit |
VeloCloud/website-ui | app/containers/ProjectDashboardPage/dynamicContainers/TestContainerA/index.js | 1301 | /*
*
* TestContainerA
*
*/
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { FormattedMessage } from 'react-intl';
import { Button } from 'react-bootstrap';
import { createStructuredSelector } from 'reselect';
import makeSelectTestContainerA from './selectors';
import messag... | mit |
drdaemos/department | MVCDepartment/App_Start/RouteConfig.cs | 582 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace MVCDepartment
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{... | mit |
rit-sse/node-api | models/membership.js | 2117 | import { DataTypes, Op } from 'sequelize';
import Moment from 'moment';
import { extendMoment } from 'moment-range';
import sequelize from '../config/sequelize';
import paginate from '../helpers/paginate';
import sorting from '../helpers/sorting';
const moment = extendMoment(Moment);
export default sequelize.define('... | mit |
scampersand/sonos-front | app/react-icons/fa/play.js | 399 | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaPlay extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m35.4 20.7l-29.6 16.5q-0.6 0.3-0.9 0t-0.4-0.8v-32.8q0-0.6 0.4-0.8t0.9 0l29.6 16... | mit |
AfricaChess/lichesshub | grandprix/migrations/0001_initial.py | 1791 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-28 04:09
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operation... | mit |
lanceguyatt/fronter | gulpfile.babel.js/tasks/styles.js | 1153 | import gulp from 'gulp'
import { resolve } from 'path'
import browserSync from 'browser-sync'
import plumber from 'gulp-plumber'
import postcss from 'gulp-postcss'
import sourcemaps from 'gulp-sourcemaps'
// import gulpStylelint from 'gulp-stylelint';
import cleanCSS from 'gulp-clean-css'
import gutil from 'gulp-util'
... | mit |
DreamHi/HiOneBrowser | src/modules/system/containers/RLogin.js | 393 | import { connect } from 'react-redux';
import { login } from '../actions/loginAction';
import Login from '../components/CLogin';
const mapStateToProps = (state) => {
return {};
};
const mapDispatchToProps = (dispatch) => {
return {
onLogin: (name, pass) => {
dispatch(login({ name, pass }));
},
};
... | mit |
philipbrown/signature-php | tests/Guards/CheckTimestampTest.php | 1379 | <?php namespace PhilipBrown\Signature\Tests\Guards;
use PhilipBrown\Signature\Guards\CheckTimestamp;
class CheckTimestampTest extends \PHPUnit_Framework_TestCase
{
/** @var CheckTokenKey */
private $guard;
public function setUp()
{
$this->guard = new CheckTimestamp;
}
/** @test */
... | mit |
pzli/blog-demo | settings.js | 91 | module.exports = {
cookieSecret: 'myBlog',
db: 'blog',
host: 'localhost',
port: 27017
} | mit |
tgsstdio/GLSLSyntaxAST---Irony-based-GLSL-parser | ReferenceCompiler/ParseHelper.cpp | 227639 | //
//Copyright (C) 2002-2005 3Dlabs Inc. Ltd.
//Copyright (C) 2012-2013 LunarG, Inc.
//
//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 ... | mit |
jf198932/platform | isriding.Web/Controllers/Chart/UserChartController.cs | 4018 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using Abp.Domain.Uow;
using Abp.Web.Models;
using isriding.School;
using isriding.User;
using isriding.Web.Extension.Fliter;
using isriding.Web.Models.Chart;
namespace isriding.Web.Controllers.Chart
{
public class UserChartCo... | mit |
wangjeaf/ckstyle-node | ckstyle/plugins/FED2DoNotSetStyleForTagOnly.js | 1183 | var base = require('../base');
var ERROR_LEVEL = base.ERROR_LEVEL;
var Class = base.Class;
var RuleSetChecker = base.RuleSetChecker;
var helper = require('./helper');
module.exports = global.FEDDoNotSetStyleForTagOnly = new Class(RuleSetChecker, function () {
this.__init__ = function (self) {
self.id ... | mit |
fschaefer/Probability.js | Probability.js | 1941 | /*
* Probability.js: Call JavaScript functions by probability.
*
* Copyright (c) 2012 Florian Schäfer (florian.schaefer@gmail.com)
* Released under MIT license.
*
* Version: 0.0.1
*
*/
(function (root, factory) {
if (typeof exports === 'object') {
module.exports = factory();
} else if (typeof d... | mit |
linde002/gstandaard-bundle | Model/GsOngewensteGroepenQuery.php | 213 | <?php
namespace PharmaIntelligence\GstandaardBundle\Model;
use PharmaIntelligence\GstandaardBundle\Model\om\BaseGsOngewensteGroepenQuery;
class GsOngewensteGroepenQuery extends BaseGsOngewensteGroepenQuery
{
}
| mit |
rmfisher/fx-animation-editor | src/main/java/animator/component/property/color/ColorEditorComponent.java | 3266 | package animator.component.property.color;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.control.Label;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Region;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import animator.component.property.color.picker.Col... | mit |
killvung/fb-front | src/app/mock-heroes.ts | 842 | import { Hero } from './hero';
export const HEROES: Hero[] = [
{ id: 11, name: 'Mr. Nsice' },
{ id: 12, name: 'Narco' },
{ id: 13, name: 'Bombasto' },
{ id: 14, name: 'Celeritas' },
{ id: 15, name: 'Magneta' },
{ id: 16, name: 'RubberMan' },
{ id: 17, name: 'Dynama' },
{ id: 18, name: 'Dr IQ' },
{ id... | mit |
uxcore/uxcore | lib/Splitter/style.js | 396 | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function get() {
return _style.default;
}
});
var _style = _interopRequireD... | mit |
ruby/rubyspec | library/socket/ancillarydata/cmsg_is_spec.rb | 1045 | require_relative '../spec_helper'
with_feature :ancillary_data do
describe 'Socket::AncillaryData#cmsg_is?' do
describe 'using :INET, :IP, :TTL as the family, level, and type' do
before do
@data = Socket::AncillaryData.new(:INET, :IP, :TTL, '')
end
it 'returns true when comparing with ... | mit |
jimmy-loyola/Chess | ChessApp/SquareView.cpp | 796 | #include "stdafx.h"
#include "SquareView.h"
SquareView::SquareView(Square* sqr)
: CRect()
{
square = sqr;
}
SquareView::~SquareView()
{
}
void SquareView::setRGB(Square::Color c)
{
switch (c)
{
case Square::BLACK:
colorRef = RGB_BLACK;
break;
case Square::WHITE:
colorRef = RGB_WHITE;
break;... | mit |
mattbalmer/mb-strings | dist/mb-strings.min.js | 584 | /*
* mb-strings v0.2.1
* Provides helper functions related to the String object.
* (c) 2014 Matt Balmer <matt@mattbalmer.com> http://mattbalmer.com
* License: MIT
*/
!function(){var a=function(a){var b=Array.prototype.slice.call(arguments,1);if("object"==typeof b[0]){var c=b[0];return a.replace(/{(.+?)}/g,functio... | mit |
bryanemanuel/Codetrotters | Day 8/users.js | 919 | var express = require('express');
var router = express.Router();
const {User} = require("../models");
/* GET users listing. */
router.get('/', function(req, res, next) {
User.findAll().then((users) => {
res.render("users_list", { data: users});
});
});
router.post('/create', function(req, res, next) {
cons... | mit |
guon/pole-mock | test/scripts/test_ajax.js | 523 | define(['ajax'], function(ajax) {
return function() {
module('Test Ajax');
asyncTest('ajax getJSON', function() {
ajax.getJSON('data/mock-config.json', function(response) {
ok(response, '使用AJAX获取json数据');
start();
});
});
asyn... | mit |
osorubeki-fujita/odpt_tokyo_metro | lib/tokyo_metro/required/all/factory/convert/customize/api/station_facility.rb | 110 | class TokyoMetro::Required::All::Factory::Convert::Customize::Api::StationFacility < TokyoMetro::Required
end
| mit |
atupal/oj | urioj/contests/36/b.cpp | 646 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
const int maxn = 1100;
int vis[maxn];
int a[maxn];
int b[maxn];
int m, k;
void solve() {
int cnt = 0;
int ans = 0;
memset(vis, 0, sizeof(vis));
for (int i = 0; i < k; ++ i) {
ans += a[ b[i] ];
if (!vis[b[i]]) {
vis[b[i]] = 1;
cnt+... | mit |
jagrutkosti/plagUI | src/main/webapp/app/blocks/config/uib-pagination.config.js | 631 | (function() {
'use strict';
angular
.module('plagUiApp')
.config(paginationConfig);
paginationConfig.$inject = ['uibPaginationConfig', 'paginationConstants'];
function paginationConfig(uibPaginationConfig, paginationConstants) {
uibPaginationConfig.itemsPerPage = paginationCon... | mit |
branscha/lib-scripty | src/test/java/branscha/scripty/spec/map/ArrayIndexMappingTest.java | 2299 | /* ******************************************************************************
* The MIT License
* Copyright (c) 2012 Bruno Ranschaert
* lib-scripty
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to dea... | mit |
sdmccoy/portfolio | src/lib/projects.js | 3457 | import * as devIcon from './dev-icons.js';
import musicMonkeyPhoto from '../../assets/project-photo-musicmonkey-medium.png';
import eSkatePhoto from '../../assets/project-photo-eskate-medium.png';
import yaketyakPhoto from '../../assets/project-photo-yaketyak-medium.png';
export const projects = [
{
name: 'Yaket... | mit |
php-coveralls/php-coveralls | tests/Bundle/CoverallsBundle/Api/JobsTest.php | 18332 | <?php
namespace PhpCoveralls\Tests\Bundle\CoverallsBundle\Api;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7;
use PhpCoveralls\Bundle\CoverallsBundle\Api\Jobs;
use PhpCoveralls\Bundle\CoverallsBundle\Collector\CiEnvVarsCollector;
use PhpCoveralls\Bundle\CoverallsBundle\Collector\CloverXmlCoverageCollector;
use PhpCovera... | mit |
ftomassetti/pyjslintwrapper | setup.py | 691 | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'A wrapper around JSLint, written in Python',
'author': 'Federico Tomassetti',
'url': 'https://github.com/ftomassetti/pyjslintwrapper',
'author_email': 'Federico Tomassetti',
've... | mit |
loresoft/FluentRest | src/FluentRest/HeaderBuilder.cs | 10971 | using System;
using System.Net.Http;
using System.Net.Http.Headers;
namespace FluentRest
{
/// <summary>
/// Fluent header builder
/// </summary>
public class HeaderBuilder : HeaderBuilder<HeaderBuilder>
{
/// <summary>
/// Initializes a new instance of the <see cref="HeaderBuilder"... | mit |
techalien/carpool | public/controllers/signup.js | 849 | angular.module('carpooler')
.controller('SignupCtrl', function($scope, $alert, $auth) {
$scope.signup = function() {
$auth.signup({
displayName: $scope.displayName,
email: $scope.email,
password: $scope.password,
phoneNum:$scope.phoneNum
}).catch(function(response) {
... | mit |
spapageo/ethmmyrss | src/main/java/com/spapageo/ethmmyrss/cli/RecreateTableCommand.java | 925 | package com.spapageo.ethmmyrss.cli;
import com.spapageo.ethmmyrss.ThmmyRssApplication;
import com.spapageo.ethmmyrss.ThmmyRssConfiguration;
import io.dropwizard.cli.EnvironmentCommand;
import io.dropwizard.setup.Environment;
import net.sourceforge.argparse4j.inf.Namespace;
public class RecreateTableCommand extends En... | mit |
studybreak/casio | lib/cql.js | 10784 | var _ = require('underscore')
// escape all single-quotes on strings...
function quote(s) {
if (typeof(s) === 'string') {
return "'" + s.replace(/'/g, "''") + "'";
} else if (s instanceof Array) {
return _.map(s, quote).join(', ');
}
return s;
}
var CQL = function(name){
this.nam... | mit |
eagletmt/procon | poj/2/2738.cc | 1027 | #include <cstdio>
#include <vector>
using namespace std;
int cache[1000][1000];
bool is_cached[1000][1000];
int solve(const vector<int>& v, int begin, int end)
{
if (begin > end) {
return 0;
} else if (is_cached[begin][end]) {
return cache[begin][end];
} else {
const int l = v[begin+1] >= v[end]
... | mit |
davidbarkhuizen/simagora | launcher.py | 1523 | import logging
from datetime import *
from time import clock
from decimal import Decimal
from simulator import Simulator
from strategy import Strategy
LOG_FILE_PATH = 'log/'
LOG_FILENAME = 'run_'
FORMAT = "%(message)s"
class Launcher(object):
def setup_logging(self):
t = datetime.now()
self.tstamp = '%d-... | mit |
IdleLands/AndroidFE | app/src/main/java/idle/land/app/logic/api/NotificationManager.java | 5644 | package idle.land.app.logic.api;
import android.app.Notification;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.media.RingtoneManager;
import android.os.Build;
import android.support.annotation.Nullable;
import android.support.v4.app.NotificationCompat;... | mit |
yangra/SoftUni | JavaFundamentals/JavaOOPBasic/EXAMS/exams/src/_12March2017Copy/entities/races/DragRace.java | 1638 | package _12March2017Copy.entities.races;
import _12March2017Copy.entities.cars.Car;
import _12March2017Copy.entities.races.Race;
import java.util.List;
import java.util.stream.Collectors;
public class DragRace extends Race {
public DragRace(int length, String route, int prizePool) {
super(length, route, ... | mit |
TheCamusean/DLRCev3 | scripts/Computer_vision_files/chessimages.py | 517 | #!/usr/bin/env python3
import cv2
import numpy as np
import sys
cap = cv2.VideoCapture(1)
flag=0
if len(sys.argv)>1:
number_of_photos=int(sys.argv[1])
else:
number_of_photos=10
image_name="Chessboard"
for i in range(number_of_photos):
while True:
ret,frame=cap.read()
cv2.imshow("camera",frame)
if cv2.waitK... | mit |
devp-eu/tmcms-core | src/Orm/AbstractEntity.php | 2100 | <?php
declare(strict_types=1);
namespace TMCms\Orm;
use TMCms\DB\SQL;
use TMCms\DB\SqlDao;
use TMCms\Strings\Converter;
/**
* Class AbstractEntity
* @package TMCms\Orm
*/
abstract class AbstractEntity
{
const CLASS_RELATION_NAME_ENTITY = 'Entity'; // Represents one object with possible state saved in DB
co... | mit |
Azure/azure-sdk-for-python | sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_07_01/operations/_network_interface_ip_configurations_operations.py | 9056 | # coding=utf-8
# --------------------------------------------------------------------------
# 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 ... | mit |
ralinc/ralin.net | db/schema.rb | 2361 | # This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# dat... | mit |
pikariop/todo | app/AppKernel.php | 1402 | <?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Sec... | mit |
bruz/bookshelf-delivery-example | spec/cli/features/add_book_spec.rb | 602 | require 'cli_features_helper'
describe 'POST /api/books' do
before do
BookRepository.clear
end
let(:book_title) { 'Confident Ruby' }
let(:book_author) { 'Avdi Grimm' }
it 'adds a new book' do
stdout, _stderr = cli_command('add', book_title, book_author)
stdout.must_match book_title
stdout.m... | mit |
AdenKejawen/erp | web/assets/app/store/Base.js | 157 | Ext.define("Com.GatotKaca.ERP.store.Base",{extend:"Ext.data.Store",autoLoad:false,autoSync:false,buffered:true,leadingBufferZone:LEADING,pageSize:PER_PAGE}); | mit |
fordham-css/ptp | make-keys.py | 293 | import os
print 'PIRATE TRADING PLATFORM uses the Robinhood retail investing service. Please enter your Robinhood credentials below.\n'
u = raw_input("Username: ")
p = raw_input("Password: ")
payload = "[['username','%s'],['password','%s']]" % (u,p)
os.system('echo "%s" > keys' % payload) | mit |
nlhkh/atomclinic | main.js | 1460 | 'use strict';
const app = require('app'); // Module to control application life.
const BrowserWindow = require('browser-window'); // Module to create native browser window.
// Report crashes to our server.
require('crash-reporter').start();
// Keep a global reference of the window object, if you don't, the window wi... | mit |
anilpank/javascriptninja | oops.js | 688 | /**
Some objects defined by browser include
Document
Window - Global Object is the browser window itself.
Element
Event
Node
Comment
Console
Core Objects are objects defined by and built into the Javascript language itself.
Math
Object
String
Boolean
Array
Date
Number
All other objects are defined by coder as needed... | mit |
Murillo/Hackerrank-Algorithms | Algorithms/Strings/strong-password.py | 925 | # Strong Password
# Developer: Murillo Grubler
# Link: https://www.hackerrank.com/challenges/strong-password/problem
# Time complexity: O(n)
def minimumNumber(n, password):
total = 0
at_least = 6
numbers = list([i for i in "0123456789"])
lower_case = list([i for i in "abcdefghijklmnopqrstuvwxyz"])
... | mit |
platinumazure/eslint | lib/rules/semi-spacing.js | 8785 | /**
* @fileoverview Validates spacing before and after semicolon
* @author Mathias Schreck
*/
"use strict";
const astUtils = require("./utils/ast-utils");
//------------------------------------------------------------------------------
// Rule Definition
//---------------------------------------------------------... | mit |
picarresursix/libcnf | include/solver.hpp | 1516 | /**
* @name solver.hpp
* @author Leo "picarresursix" Perrin <leoperrin@picarresursix.fr>
* @date Time-stamp: <2014-01-17 10:26:43 leo>
*
* @brief The header of the Solver class.
*/
#ifndef _CNF_SOLVER_H_
#define _CNF_SOLVER_H_
#include "libcnf.hpp"
namespace cnf {
/**
* A class providing an interface to use ... | mit |
unusualcrow/redead_reloaded | gamemode/vgui/vgui_classpicker.lua | 1617 | local PANEL = {}
function PANEL:Init()
--self:SetTitle( "" )
--self:ShowCloseButton( false )
self:ChooseParent()
self.Items = {}
for k, v in pairs({CLASS_SCOUT, CLASS_COMMANDO, CLASS_SPECIALIST, CLASS_ENGINEER}) do
local desc = GAMEMODE.ClassDescriptions[k] or "TEH"
local logo = GAMEMODE.ClassLogos[k] or "br... | mit |
china20/MPFUI | trunk/suicore/src/System/Windows/HierarchicalItem.cpp | 1486 |
#include <Framework/Controls/HierarchicalItem.h>
namespace suic
{
ImplementRTTIOfClass(HierarchicalItem, NotifyPropChanged)
HierarchicalItem::HierarchicalItem()
: _size(0)
, _flag(0)
, _children(NULL)
{
}
HierarchicalItem::~HierarchicalItem()
{
if (NULL != _children)
{
_children->unref(... | mit |
pospanet/MagicMirror | MirrorUI/Properties/AssemblyInfo.cs | 1073 | 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("Ma... | mit |
ircmaxell/PHP-Datastructures | src/Ardent/SortedMap.php | 4477 | <?php
namespace Ardent;
use Ardent\Exception\EmptyException,
Ardent\Exception\KeyException,
Ardent\Exception\TypeException,
Ardent\Iterator\SortedMapIterator;
class SortedMap implements Map {
use StructureCollection;
private $avl;
/**
* @var callable
*/
private $comparator;
... | mit |
Prick1/PBR | orthographic_camera.cpp | 1375 | #include "orthographic_camera.h"
OrthographicCamera::OrthographicCamera( void )
{}
OrthographicCamera::OrthographicCamera( const float min_x,
const float max_x,
const float min_y,
const float max_y,... | mit |
travis-ci/travis-core | spec/travis/services/find_caches_spec.rb | 2467 | require 'spec_helper'
describe Travis::Services::FindCaches do
include Support::ActiveRecord, Support::S3, Support::GCS
let(:user) { User.first || Factory(:user) }
let(:service) { described_class.new(user, params) }
let(:repo) { Factory(:repository, :owner_name => 'travis-ci', :name => 'travis-core') }
let(... | mit |
heems/go-ipfs | p2p/net/mock/interface.go | 3187 | // Package mocknet provides a mock net.Network to test with.
//
// - a Mocknet has many inet.Networks
// - a Mocknet has many Links
// - a Link joins two inet.Networks
// - inet.Conns and inet.Streams are created by inet.Networks
package mocknet
import (
ic "github.com/ipfs/go-ipfs/p2p/crypto"
host "github.com/ipfs/... | mit |
cmtj199337/zhiduoxing | src/api/api.js | 52 | let root = process.env.API_ROOT
export default root | mit |
markf78/dollarcoin | src/key.cpp | 19944 | // Copyright (c) 2009-2013 The Bitcoin developers
// Copyright (c) 2013-2014 The Dollarcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "key.h"
#include <openssl/bn.h>
#include <openssl/ecdsa.h>
#inc... | mit |
raoulvdberge/refinedstorage | src/main/java/com/refinedmods/refinedstorage/integration/jei/IngredientTracker.java | 4513 | package com.refinedmods.refinedstorage.integration.jei;
import com.refinedmods.refinedstorage.api.autocrafting.ICraftingPattern;
import com.refinedmods.refinedstorage.api.autocrafting.ICraftingPatternProvider;
import com.refinedmods.refinedstorage.api.util.IComparer;
import com.refinedmods.refinedstorage.apiimpl.API;
... | mit |
XanderDwyl/bjssystem | app/views/layouts/main.blade.php | 5589 | <!DOCTYPE html>
@yield( 'head_wrapper' )
<head>
<meta charset="utf-8">
<title>BJS MotoShop</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="We sell motorcycle parts while we modified to works for your needs.">
<meta name="author" content="BJS MotoShop... | mit |
muan/deploying-with-now | index.js | 299 | var http = require('http')
const server = http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'})
res.write(`Hi, this works.\nSecret ENV var: ${process.env.secret_env_var}`)
res.end()
})
server.listen(3000, function() {
console.log('Server started.')
})
| mit |
tivac/modular-css | jest.config.js | 842 | "use strict";
module.exports = {
clearMocks : true,
resetMocks : true,
restoreMocks : true,
notify : true,
coveragePathIgnorePatterns : [
"/node_modules/",
"/parsers/",
"/packages/test-utils/",
],
watchPathIgnorePatterns : [
"/output/",
"/... | mit |
Rediker-Software/doac | doac/exceptions/unsupported_response_type.py | 155 | from .base import UnsupportedResponseType
class ResponseTypeNotValid(UnsupportedResponseType):
reason = "The request type was malformed or invalid."
| mit |
twistedstream/FormsToTokenAccessAuthentication | src/Sample.Service/Controllers/HomeController.cs | 711 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace TS.FormsToTokenAccessAuthentication.Sample.Service.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
ViewBag.Message = "Modify t... | mit |
increments/circleci-coverage_reporter | lib/circleci/coverage_reporter/vcs/base.rb | 526 | module CircleCI
module CoverageReporter
module VCS
# @abstract Subclass and override {#create_comment} to implement a custom VCS client class.
class Base
# @param token [String]
def initialize(token)
@token = token
end
# @param body [String]
# @return... | mit |
jakubka/Huerate | Huerate.WebUI/Content/Scripts/KnockoutBindings.js | 1648 | /*
Huerate - Mobile System for Customer Feedback Collection
Master Thesis at BUT FIT (http://www.fit.vutbr.cz), 2013
Available at http://huerate.cz
Author: Bc. Jakub Kadlubiec, xkadlu00@stud.fit.vutbr.cz or jakub.kadlubiec@gmail.com
*/
ko.bindingHandlers.loadingWhen = {
init: function (element) {
... | mit |
kristiankime/web-education-games | test/com/artclod/mathml/MathMLDerivativeSpec.scala | 1931 | package com.artclod.mathml
import com.artclod.mathml.Match._
import org.junit.runner.RunWith
import org.specs2.runner.JUnitRunner
import org.specs2.mutable._
import com.artclod.mathml.scalar._
import org.junit.runner.RunWith
import org.specs2.runner.JUnitRunner
import scala.xml._
import play.api.test._
import play.api... | mit |
tonylukasavage/vm-titanium | Gruntfile.js | 513 | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
ti_run: {
all: {
files: {
'tmp/all/Resources': ['test/*', 'vm-titanium.js', '__context.js',
'node_modules/should/should.js', 'node_modules/ti-mocha/ti-mocha.js']
}
}
},
clean: {
src: ['tmp']
}
});
/... | mit |
abduld/clreflect | extern/llvm/tools/clang/test/SemaCXX/address-of-temporary.cpp | 503 | // RUN: %clang_cc1 -fsyntax-only -Wno-error=address-of-temporary -verify %s
struct X {
X();
X(int);
X(int, int);
};
void f0() { (void)&X(); } // expected-warning{{taking the address of a temporary object}}
void f1() { (void)&X(1); } // expected-warning{{taking the address of a temporary object}}
void f... | mit |
Lokukarawita/EpisodeInformer | EpisodeInformer.Data/DBEMainQuery.cs | 7799 | using EpisodeInformer.Data.Basics;
using EpisodeInformer.Data.Remoting;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.OleDb;
namespace EpisodeInformer.Data
{
public static class DBEMainQuery
{
public static List<DBEpisode> GetTodaysDownloads()
{
... | mit |
ravendb/ravendb-nodejs-client | src/Mapping/Json/Conventions/index.ts | 1331 | import { CONSTANTS } from "../../../Constants";
import { getIgnoreKeyCaseTransformKeysFromDocumentMetadata } from "../Docs";
import { CasingConvention } from "../../../Utility/ObjectUtil";
import {
ObjectKeyCaseTransformStreamOptionsBase,
ObjectKeyCaseTransformStreamOptions
} from "../Streams/ObjectKeyCas... | mit |
baccigalupi/unicycle | server.js | 329 | var buffet = require('buffet')(__dirname + '/site', {});
var port = process.env.PORT || 9000;
var http = require('http');
http.createServer(function (req, res) {
buffet(req, res, function next () {
buffet.notFound(req, res);
});
}).listen(port, function() {
console.log('static server running on port ' + po... | mit |
libocca/occa | src/occa/internal/lang/expr/primitiveNode.cpp | 1072 | #include <occa/internal/lang/expr/primitiveNode.hpp>
namespace occa {
namespace lang {
primitiveNode::primitiveNode(token_t *token_,
primitive value_) :
exprNode(token_),
value(value_) {}
primitiveNode::primitiveNode(const primitiveNode &node) :
exprNode(no... | mit |
wwdenis/wwa | samples/Marketplace/Marketplace.Web/app/models/StatusType.ts | 278 | // Copyright 2017 (c) [Denis Da Silva]. All rights reserved.
// See License.txt in the project root for license information.
/// <reference path="../_references.ts" />
module App.Models {
'use strict';
export class StatusType extends NamedModel {
}
}
| mit |
windbender/chpcadscraper | src/main/java/com/github/windbender/chpcadscraper/chpdata/Able.java | 191 | package com.github.windbender.chpcadscraper.chpdata;
import org.xml.sax.Attributes;
public interface Able {
void addChars(String chars);
void doAttributes(Attributes attributes);
}
| mit |
nix-rust/nix | test/sys/test_uio.rs | 8153 | use nix::sys::uio::*;
use nix::unistd::*;
use rand::{thread_rng, Rng};
use rand::distributions::Alphanumeric;
use std::{cmp, iter};
use std::fs::{OpenOptions};
use std::os::unix::io::AsRawFd;
#[cfg(not(target_os = "redox"))]
use tempfile::tempfile;
use tempfile::tempdir;
#[test]
fn test_writev() {
let mut to_writ... | mit |
gporte/GestAssoc | GestAssoc/GestAssoc.Model/Models/Mapping/VerificationMap.cs | 1292 | using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
namespace GestAssoc.Model.Models.Mapping
{
public class VerificationMap : EntityTypeConfiguration<Verification>
{
public VerificationMap()
{
// Primary Key
this.HasKey(t => t... | mit |
osorubeki-fujita/odpt_tokyo_metro | lib/tokyo_metro/factory/convert/patch/api/train_timetable/namboku_line_from_musashi_kosugi/info.rb | 206 | class TokyoMetro::Factory::Convert::Patch::Api::TrainTimetable::NambokuLineFromMusashiKosugi::Info < TokyoMetro::Factory::Convert::Common::Api::MetaClass::TrainInfos::NambokuLineFromMusashiKosugi::Info
end
| mit |
felix9064/python | Demo/fluent_python/poker_card.py | 1462 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# 流畅的Python 第一章示例程序1-1
# 生成一副扑克牌
from collections import namedtuple
from random import choice
# namedtuple可以生成一个带名字的tuple
Card = namedtuple('Card', ['rank', 'suit'])
class FrenchDeck:
# 生成扑克牌从2到A的序列
ranks = [str(n) for n in range(2, 11)] + list('JQKA')
# 生成... | mit |
Neeraj-nitd/ZapAnalyzer | src/main/java/com/zapstitch/analyzer/base/AppUser.java | 2391 | package com.zapstitch.analyzer.base;
import java.io.Serializable;
import org.apache.commons.lang.StringUtils;
import com.zapstitch.analyzer.utils.OauthUtils;
/**
* @author Neeraj Nayal
* neeraj.nayal.2008@gmail.com
*/
public class AppUser implements Serializable {
private static final long serialVersionUID = 1... | mit |
Venkatakrishnan/art-api | routers/users/users.js | 525 | import express from 'express';
import {error, log} from '../../shared/logger';
import fs from 'fs';
export default (jsonfilepath) =>{
const router = express.Router();
//reads from mock json file but has to be hooked upto database
//Index call
router.get("/", async (req,res,next)=>{
try{
... | mit |
twilio/twilio-csharp | src/Twilio/Rest/Trusthub/V1/SupportingDocumentTypeOptions.cs | 1841 | /// This code was generated by
/// \ / _ _ _| _ _
/// | (_)\/(_)(_|\/| |(/_ v1.0.0
/// / /
using System;
using System.Collections.Generic;
using Twilio.Base;
using Twilio.Converters;
namespace Twilio.Rest.Trusthub.V1
{
/// <summary>
/// Retrieve a list of all Supporting Document Types.
... | mit |
bnkr/lrcon | examples/rcon_deferred_authorisation.cpp | 1425 | try {
rcon::host h("127.0.0.1", "27015");
rcon::connection conn(h);
const char *pass = "password";
size_t retries = 3;
rcon::auth_command::auth_t auth_value = rcon::auth_command::error;
do {
rcon::auth_command returned(conn, pass, rcon::auth_command::nocheck);
auth_value = returned.auth();
if ... | mit |
lgollut/material-ui | packages/material-ui-icons/src/Looks6Rounded.js | 354 | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M11 15h2v-2h-2v2zm8-12H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 6h-3v2h2c1.1 0 2 .9 2 2v2c0 1.11-.9 2-2 2h-2c-1.1 0-2-.89-2-2V9c0-1.1.9-2 2-2h3c.55 0 1 .45 1 1s-.... | mit |
giang-pham/carousell-plus | karma-test-shim.js | 2699 | /*global jasmine, __karma__, window*/
(function () {
// Error.stackTraceLimit = Infinity;
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000;
// Cancel Karma's synchronous start,
// we call `__karma__.start()` later, once all the specs are loaded.
__karma__.loaded = function () { };
// SET THE RUNTIME APPLICATION ROOT HERE
va... | mit |
mcMickJuice/fun-with-asts | babel/expensive-operation-logging/src/does-not-use-expensive-operation.js | 227 | const request = require('./request')
module.exports = function iDoNothing() {
//just references expensiveOperation, doesn't call it
//therefore this won't be modified
request.expensiveOperation;
const name = 'mike';
} | mit |
Swegrock/Dynamic-Splitscreen | Assets/Scripts/SplitScreen.cs | 6073 | using UnityEngine;
using System;
using System.Collections;
public class SplitScreen : MonoBehaviour {
/*Reference both the transforms of the two players on screen.
Necessary to find out their current positions.*/
public Transform player1;
public Transform player2;
//The distance at which the splitsc... | mit |
Albeoris/Esthar | Esthar.Transform/Locations/Scripts/Bindings/AsmAbsoluteRequestBinding.cs | 1040 | namespace Esthar.Data.Transform
{
public sealed class AsmAbsoluteRequestBinding : AsmBinding
{
public readonly ushort TargetModuleIndex;
public readonly AsmValueSource TargetEventLabel;
public AsmAbsoluteRequestBinding(AsmSegment source, int sourceOffset, int targetModuleIndex, AsmValu... | mit |
tonygalmiche/is_plastigray | wizard/stock_transfer_details.py | 5997 | # -*- coding: utf-8 -*-
from openerp import models, fields, api
from openerp.tools.translate import _
from openerp.exceptions import Warning
import openerp.addons.decimal_precision as dp
import datetime
def _date_reception():
return datetime.date.today().strftime('%Y-%m-%d')
class stock_transfer_details(models... | mit |
PollubCafe/Project-X | src/main/web/systemjs.config.js | 1820 | /**
* System configuration for Angular samples
* Adjust as necessary for your application needs.
*/
(function (global) {
System.config({
paths: {
// paths serve as alias
},
// map tells the System loader where to look for things
map: {
// our app is within the app folder
app: 'app... | mit |