repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
Arkni/date-validator | Gruntfile.js | 2114 | /*jshint node:true*/
module.exports = function( grunt ) {
"use strict";
var banner = "/*\n" +
" * Date Validator v<%= pkg.version %>\n" +
" *\n" +
" * <%= pkg.homepage %>\n" +
" *\n" +
" * Copyright (c) <%= grunt.template.today('yyyy') %> <%= pkg.author.name %>\n" +
" * Released under the <%= _.map(pkg.... | mit |
tkrebs/ep3-hs | module/Booking/src/Booking/Service/PayPalServiceFactory.php | 418 | <?php
namespace Booking\Service;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
class PayPalServiceFactory implements FactoryInterface
{
public function createService(ServiceLocatorInterface $sm)
{
return new PayPalService(
$sm->ge... | mit |
rynomad/subtle | src/node/digest.js | 404 | var forge = require("node-forge")
var subtleToForge = {
"SHA-256" : "sha256"
}
var digest = function digest(alg, data){
if (!subtleToForge[alg.name])
return Promise.reject("unsupported hashing algorithm")
else{
var md = forge.md[subtleToForge[alg.name]].create()
md.update(data.toString("binary"))
... | mit |
kzantow/blueocean-plugin | blueocean-pipeline-api-impl/src/test/java/io/jenkins/blueocean/rest/impl/pipeline/BranchContainerImplTest.java | 5615 | package io.jenkins.blueocean.rest.impl.pipeline;
import com.google.common.collect.ImmutableMap;
import hudson.model.User;
import jenkins.branch.BranchProperty;
import jenkins.branch.BranchSource;
import jenkins.branch.DefaultBranchPropertyStrategy;
import jenkins.plugins.git.GitSCMSource;
import jenkins.plugins.git.Gi... | mit |
Yndal/ArduPilot-SensorPlatform | PX4Firmware/src/lib/mathlib/math/Limits.hpp | 2862 | /****************************************************************************
*
* Copyright (c) 2013 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistri... | mit |
dachengxi/spring1.1.1_source | samples/petclinic/src/org/springframework/samples/petclinic/Vet.java | 1147 | package org.springframework.samples.petclinic;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.springframework.beans.support.MutableSortDefinition;
import org.springframework.beans.support.PropertyComparator;
/**
* Simple Ja... | mit |
colbylwilliams/Xamarin | iOS/HealthKit/GlucoseX/GlucoseX.iOS/ViewControllers/GlucoseDataPageViewController.designer.cs | 551 | // WARNING
//
// This file has been generated automatically by Xamarin Studio to store outlets and
// actions made in the UI designer. If it is removed, they will be lost.
// Manual changes to this file may not be handled correctly.
//
using Foundation;
using System.CodeDom.Compiler;
namespace GlucoseX.iOS
{
[Registe... | mit |
tazmanrising/IntiotgAngular | Plural/JohnPapaAng2/componentProject/typings.d.ts | 222 |
declare var componentHandler: any;
/*
Copyright 2016 JohnPapa.net, LLC. All Rights Reserved.
Use of this source code is governed by an MIT-style license that
can be found in the LICENSE file at http://bit.ly/l1cense
*/ | mit |
vmysla/salo.js | gulpfile.js | 1513 | 'use strict';
var gulp = require('gulp');
var karma = require('karma');
var rename = require('gulp-rename');
var concat = require('gulp-concat');
var insert = require('gulp-insert');
var closure = require('gulp-closure-compiler-service');
gulp.task('test', function(done) {
karma.server.sta... | mit |
spearsandshields/RecJ | Object/SplitAndAverage.java | 523 | public class SplitAndAverage
{
public static void main(String[] args) {
System.out.println("Enter String");
System.out.println(split(IO.readString()));
}
public static String split(String input)
{
int len = input.length();
char [] array = new char [len];
String result ="";
for(int i = 0; i< len; i ++)
... | mit |
scriptotek/mumapper | app/database/migrations/2014_03_31_092539_create_relationships_table.php | 1470 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
// use Jenssegers\Mongodb\Schema\Blueprint;
class CreateRelationshipsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('relationships', function(Bluep... | mit |
rabidaudio/roe | sample/server/config/initializers/devise.rb | 13009 | # Use this hook to configure devise mailer, warden hooks and so forth.
# Many of these configuration options can be set straight in your model.
Devise.setup do |config|
# The secret key used by Devise. Devise uses this key to generate
# random tokens. Changing this key will render invalid all existing
# confirmat... | mit |
Manifold0/salkehatchieB | SalkehatchieB/app/pdfs/questionnaire_pdf.rb | 6830 | class QuestionnairePdf < Prawn::Document
def initialize()
super(top_margin: 10)
end
def create_page(form)
@form = form
#stroke_horizontal_rule
top
move_down(5)
reminder
move_down(10)
info
move_down(5)
explanation
move_down(50)
gifts_and_graces
move_down(12)
... | mit |
jesykh/huuuge-game-jam-2016 | src/gameplay/commands.js | 977 | import { Status } from './status';
var MAX_COMMANDS_COUNT = 3;
export var Commands = {
_commands: [],
addCommand: function(commandName) {
if (this.hasFreeSlots()) {
this._commands.push(commandName);
}
},
popCommand: function() {
return this._commands.shift();
},
hasCommands: function() {... | mit |
viniciusferreira/skeleton | app/Http/Controllers/Front/HomeController.php | 246 | <?php
namespace App\Http\Controllers\Front;
class HomeController extends FrontController
{
/**
* Display home.
*
* @return Response
*/
public function index()
{
return view('front.scope.home');
}
}
| mit |
bjpop/offtarget | offtarget/merge_primer_coords.py | 1822 | #!/usr/bin/env python
import csv
from argparse import ArgumentParser
DESCRIPTION = 'Merge block coordinates with primer sequences'
def parse_args():
parser = ArgumentParser(description=DESCRIPTION)
parser.add_argument('--blocks', type=str, required=True,
help='Name of input block coords, in CSV forma... | mit |
maxim-kuzmin/Makc2017 | src/Makc2017.Modules.DummyOneToMany.Caching/Properties/AssemblyInfo.cs | 851 | 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: AssemblyConfigurat... | mit |
lorenzonicolas/MusicParser | musicParser/MetalArchivesAPI/DTOs/baseDTO.cs | 463 | namespace musicParser.MetalArchivesAPI
{
public class baseDTO
{
public string status { get; set; }
public int code { get; set; }
public string message { get; set; }
public string hash { get; set; }
public Donation donation { get; set; }
public class Do... | mit |
JCot/DiningPhilosopers | src/Fork.java | 730 | /**
* The fork class represents a fork for which a philsopher
* can acquire to eat. In other works the fork is a shared mutable
* object for the philsopher threads.
*
* @author Andrew Popovich (ajp7560@rit.edu)
*
*/
public class Fork implements IFork {
private boolean allocated = false;
/**
* Allows a p... | mit |
LunarLogic/gauguin | lib/gauguin/version.rb | 39 | module Gauguin
VERSION = "0.0.3"
end
| mit |
dmitrydwhite/mother-hubbard | app/scripts/controllers/mods.js | 1653 | 'use strict';
exports.create = function() {
var currentIngredeint = '';
var allIngredients = '';
var showOtherIngredients = function (obj) {
var tenRecipes = obj.matches;
tenRecipes.forEach(function (recipe) {
recipe.ingredients.forEach(function (item) {
$('<p>', {text: 'yes',
'... | mit |
shofujimoto/examples | until_201803/react/modern/router/src/RouterExample.js | 1013 | import React from 'react'
import {
BrowserRouter as Router,
Route,
Link
} from 'react-router-dom'
const RouterApp = () => (
<Router>
<div style={{margin: 20}}>
<Route exact path='/' component={Home} />
<Route path='/easy' component={EasyCourse} />
<Route path='/normal' component={NormalCo... | mit |
slorber/scalable-frontend-with-elm-or-redux | redux-operations-DrorT/ducks/randomGif.js | 1461 | import {INIT_REDUX_OPERATIONS} from 'redux-operations';
export const UPDATE_GIF = 'UPDATE_GIF'
export const NEW_GIF = 'NEW_GIF'
export function updateGif(topic, location, name) {
return {
type: UPDATE_GIF,
meta: {location, name},
payload: {topic}
}
}
export function newGif(imgUrl, location, name) {
... | mit |
vadimvoyevoda/WCF_Programming | WCF/Service_MyDiskInfo/Client_MyDiskInfo/Program.cs | 1126 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ServiceModel;
namespace Client_MyDiskInfo
{
[ServiceContract]
public interface IDiskInfo
{
[OperationContract]
string FreeSpace(string diskName);
[Opera... | mit |
allengaller/mazi-cms | web/doc/Resources/open/taobao/taobao-sdk-PHP-online_standard-20131210/top/request/UmpActivitiesListGetRequest.php | 810 | <?php
/**
* TOP API: taobao.ump.activities.list.get request
*
* @author auto create
* @since 1.0, 2013-12-10 16:57:25
*/
class UmpActivitiesListGetRequest
{
/**
* 营销活动id列表。
**/
private $ids;
private $apiParas = array();
public function setIds($ids)
{
$this->ids = $ids;
$this->apiParas["ids"] = $... | mit |
sljohn/drivus | src/js/helpers/axios.js | 150 | import axios from 'axios';
export default function axiosRequest(target, payload) {
return axios.post('/api/' + target, {
data: payload
});
}
| mit |
andreherberth/pockethold | pockethold/3rdparty/composer/src/Composer/Command/SuggestsCommand.php | 3497 | <?php
namespace Composer\Command;
use Composer\Repository\PlatformRepository;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class SuggestsCommand e... | mit |
Slynchy/March22-Unity | Assets/March22/Scripts/Main/UnityWrapper.cs | 2451 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class UnityWrapper
{
public static string LoadTextFileAsString(string _path)
{
var filePath = System.IO.Path.Combine(Application.streamingAssetsPath, _path + ".txt");
string temp = "";
try
{
... | mit |
rougin/slytherin | src/Routing/RouterInterface.php | 1280 | <?php
namespace Rougin\Slytherin\Routing;
/**
* Router Interface
*
* An interface for handling third party routers.
*
* @package Slytherin
* @author Rougin Gutib <rougingutib@gmail.com>
*/
interface RouterInterface
{
/**
* Adds a new raw route.
*
* @param string $httpMethod
* @p... | mit |
jayhorn/jayhorn | soottocfg/src/main/java/soottocfg/ast/Absyn/Return.java | 462 | package soottocfg.ast.Absyn; // Java Package generated by the BNF Converter.
public class Return extends JumpStm {
public Return() { }
public <R,A> R accept(soottocfg.ast.Absyn.JumpStm.Visitor<R,A> v, A arg) { return v.visit(this, arg); }
public boolean equals(Object o) {
if (this == o) return true;
if... | mit |
JerryDev/library | element-ui/2.13.2/lib/locale/lang/vi.js | 2958 | 'use strict';
exports.__esModule = true;
exports.default = {
el: {
colorpicker: {
confirm: 'OK',
clear: 'Xóa'
},
datepicker: {
now: 'Hiện tại',
today: 'Hôm nay',
cancel: 'Hủy',
clear: 'Xóa',
confirm: 'OK',
selectDate: 'Chọn ngày',
selectTime: 'Chọn gi... | mit |
thoroc/sf2-cookbook | src/Acme/ExcelBundle/AcmeExcelBundle.php | 126 | <?php
namespace Acme\ExcelBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class AcmeExcelBundle extends Bundle
{
}
| mit |
neilime/zf-twbs-helper-module | tests/TestSuite/Documentation/Components/ListGroup.php | 24533 | <?php
// Documentation test config file for "Components / List group" part
return [
'title' => 'List group',
'url' => '%bootstrap-url%/components/list-group/',
'tests' => [
[
'title' => 'Basic example',
'url' => '%bootstrap-url%/components/list-group/#basic-example',
... | mit |
menghao2015/MyBlog | migrations/versions/f5cf2b3daae9_c_11_4_3_15_2.py | 866 | """C_11.4_3.15_2
Revision ID: f5cf2b3daae9
Revises: 3dc53c84970a
Create Date: 2016-03-15 11:11:03.301554
"""
# revision identifiers, used by Alembic.
revision = 'f5cf2b3daae9'
down_revision = '3dc53c84970a'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - ... | mit |
EddieGarmon/GraduatedCylinder | Source/GraduatedCylinder.Geo/Nmea/IProvideSentences.cs | 229 | using System;
namespace GraduatedCylinder.Nmea
{
public interface IProvideSentences
{
bool IsOpen { get; }
event Action<Sentence> SentenceReceived;
void Close();
void Open();
}
} | mit |
LandRegistry/govuk-notify-flask | govuk_notify_flask/__init__.py | 294 | # flake8: noqa
from flask import Flask
from flask_compress import Compress
from flask_wtf.csrf import CSRFProtect
app = Flask(__name__)
#App config
app.config.from_pyfile('config.py')
# Flask Compress
Compress(app)
# CSRF Protection
csrf = CSRFProtect(app)
import govuk_notify_flask.views
| mit |
xala3pa/go-by-example | for/for.go | 204 | package main
import (
"fmt"
)
func main() {
i := 1
for i <= 3 {
fmt.Println(i)
i = i + 1
}
for j := 1; j <= 3; j++ {
fmt.Println(j)
}
for {
fmt.Println("Infinite Loop!!")
break
}
}
| mit |
bhrutledge/debugged-django | debugged/discography/signals.py | 256 | from debugged.stream.signals import update_stream_item, delete_stream_item
def update_song_stream_item(sender, instance, **kwargs):
if instance.audio:
update_stream_item(sender, instance)
else:
delete_stream_item(sender, instance)
| mit |
hamidrahcom/pippdo | application/models/example_model.php | 231 | <?php
class Example_model extends Model {
public function getSomething($id)
{
$id = $this->escapeString($id);
$result = $this->query('SELECT * FROM something WHERE id= :id ',array(':test_id'=>$id));
return $result;
}
}
| mit |
j-froehlich/magento2_wk | vendor/snowdog/module-menu/Block/NodeType/CmsPage.php | 4036 | <?php
namespace Snowdog\Menu\Block\NodeType;
use Magento\Framework\View\Element\Template\Context;
use Magento\Cms\Api\Data\PageInterface;
use Snowdog\Menu\Model\NodeType\CmsPage as CmsPageModel;
class CmsPage extends AbstractNode
{
/**
* @var string
*/
protected $nodeType = 'cms_page';
/**
... | mit |
Maycon-Rodrigues/lawyer-system | app/models/opnion.rb | 102 | class Opnion < ApplicationRecord
belongs_to :customer
belongs_to :user
belongs_to :pprocess
end
| mit |
alsemyonov/vk | lib/vk/api/secure/responses/check_token_response.rb | 528 | # frozen_string_literal: true
require 'vk/api/responses'
module Vk
module API
class Secure < Vk::Schema::Namespace
module Responses
# @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
class CheckTokenResponse < Vk::Schema::Response
# @return [API::Secure::TokenC... | mit |
brettimus/switchboard-internship-2015 | turing-omnibus/44-game-of-life/dist/game-of-life-d3-boots.js | 389217 | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... | mit |
MitchellMintCoins/MortgageCoin | src/walletdb.cpp | 22556 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "walletdb.h"
#include "wallet.h"
#include <boost/version.hpp>
#include <b... | mit |
kevintee/Predicting-Gene-Networks | src/gpdream/modules/Merlin/src/HierarchicalClusterNode.H | 557 | #ifndef _HIERARCHICAL_CLUSTER_NODE
#define _HIERARCHICAL_CLUSTER_NODE
#include <map>
#include <string>
#include <vector>
using namespace std;
class HierarchicalClusterNode;
class HierarchicalClusterNode
{
public:
HierarchicalClusterNode();
~HierarchicalClusterNode();
map<int,double> attrib;
map<string,double> di... | mit |
majioa/flickr_oblak | features/step_definitions/oblako_mounter_observe_remove_steps.rb | 2582 | Допустим(/^есть монтировщик с локальными облаками "([^"]*)"$/) do |names|
res =
names.split( /,\s*/ ).map do |name|
@db[ 'Облака' ][ name ] = cloud = Oblako::Local::Cloud.new( name: name )
Oblako::Local::Resource.new( uri: URI( "file:" + tmpdir ), cloud: cloud )
end
@mounter = Oblako::Mounter... | mit |
marcomontalbano/html-miner | test/example.md.js | 2196 | const chai = require('chai');
const { assert } = chai;
const htmlMiner = require('../lib');
describe('htmlMiner • EXAMPLE.md', () => {
it('Get text and href from a list of <a>', () => {
const html = `
<div>
<a class="link-class" href="https://example.com/1">Link 1</a>
... | mit |
R358/poolnetty | pool/src/test/java/org/r358/poolnetty/test/simpleserver/SimpleServerListener.java | 260 | package org.r358.poolnetty.test.simpleserver;
import io.netty.channel.ChannelHandlerContext;
/**
*
*/
public interface SimpleServerListener
{
void newValue(ChannelHandlerContext ctx, String val);
void newConnection(ChannelHandlerContext ctx);
}
| mit |
EtewaZINSOU/OC | src/OC/PlatformBundle/Controller/AdvertController.php | 407 | <?php
/**
* Created by PhpStorm.
* User: ALEXIS
* Date: 15/05/15
* Time: 23:17
*/
namespace OC\PlatformBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class AdvertController extends Controller {
public function indexAction()
{
return $this->render('OCPlatformBun... | mit |
vinnyoodles/algorithms | spec/grid/largestRegionSpec.js | 1086 | var largestRegion = require('../../javascript/grid/largestRegion');
describe('largestRegion', () => {
it('should find the largest region', () => {
expect(largestRegion([
[1,0,0,0,0,0,0],
[1,0,0,0,1,0,0],
[1,0,0,1,1,1,1],
[0,1,0,1,0,1,1],
[0,0,1,1,1,1,1]
])).toEqual(17);
exp... | mit |
Gyscos/Cursive | cursive-core/src/utils/lines/spans/prefix.rs | 3468 | use super::chunk::{Chunk, ChunkPart};
use std::iter::Peekable;
/// Concatenates chunks as long as they fit in the given width.
pub fn prefix<I>(
tokens: &mut Peekable<I>,
width: usize,
offset: &mut ChunkPart,
) -> Vec<Chunk>
where
I: Iterator<Item = Chunk>,
{
let mut available = width;
let mut ... | mit |
MSDEVMTL/2015-10-06-Windows-Core-IoT | BlinkyGHI/App1/App1/obj/x86/Debug/App.g.i.cs | 2150 | #pragma checksum "c:\users\guy\documents\visual studio 2015\Projects\App1\App1\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "A57A6474CE005A5AD1777F980C75F16B"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// C... | mit |
Team-JETT/Grouvie | app/src/main/java/jett_apps/grouvie/PlanningActivities/SelectFilm.java | 9838 | package jett_apps.grouvie.PlanningActivities;
import android.Manifest;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
... | mit |
skounis/supermodular2 | src/pages/components/inputs/stacked-labels/components.inputs.stacked-labels.page.ts | 167 | import { Component } from '@angular/core';
@Component({
templateUrl: 'components.inputs.stacked-labels.html'
})
export class ComponentsInputsStackedLabelsPage {
}
| mit |
Senryoku/NESen | ext/SFML/src/SFML/Window/Unix/JoystickImpl.hpp | 4604 | ////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2019 Laurent Gomila (laurent@sfml-dev.org)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages a... | mit |
KnpLabs/DoctrineBehaviors | utils/phpstan-behaviors/src/Type/TranslationTypeHelper.php | 2067 | <?php
declare(strict_types=1);
namespace Knp\DoctrineBehaviors\PHPStan\Type;
use Exception;
use Knp\DoctrineBehaviors\Contract\Entity\TranslatableInterface;
use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
use PhpParser\Node\Expr\MethodCall;
use PHPStan\Analyser\Scope;
use PHPStan\Broker\Broker;
fina... | mit |
yyankov/club-challange | ClubChallengeBeta/App_Data/AspNetUserClaim.cs | 815 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.... | mit |
Pitt-CSC/handy | app/models/event_ownership.rb | 125 | class EventOwnership < ActiveRecord::Base
belongs_to :organization, required: true
belongs_to :event, required: true
end
| mit |
fgascon/php-microframe | web/MFAction.php | 1808 | <?php
class MFAction
{
private $_id;
private $_controller;
public function __construct($controller, $id)
{
$this->_controller = $controller;
$this->_id = $id;
}
public function getController()
{
return $this->_controller;
}
public function... | mit |
marcusoftnet/booooring.com | test/testHelpers.js | 827 | var co = require('co');
var config = require('../config')('local');
var db = require("../lib/db.js");
var soundCollection = db.sounds(config.mongoUrl);
module.exports.soundCollection = soundCollection;
module.exports.removeAllDocs = function(){
co(function *(){
yield soundCollection.remove({});
}).then();
};
var ... | mit |
n1koo/chef-magic-for-osx | site-cookbooks/sourcetree/recipes/default.rb | 263 | directory "#{ENV['HOME']}/Applications" do
mode 00755
end
dmg_package "SourceTree" do
dmg_name "SourceTree"
source "http://downloads.atlassian.com/software/sourcetree/SourceTree_1.5.8.dmg"
destination "#{ENV['HOME']}/Applications"
action :install
end
| mit |
jamesrhaley/boilJS | boil_JS.py | 1987 | #!/usr/bin/env python
from subprocess import call
import shutil
import simplejson
from collections import OrderedDict
import os
from GitBoil import Boil
### TODO
# make README.md blank
# update key words
# https://github.com/jamesrhaley/es2015-babel-gulp-jasmine.git
new_name = raw_input("what should the project be c... | mit |
grahamedgecombe/lightstone | src/net/lightstone/Server.java | 5215 | package net.lightstone;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.logging.Level;
import java.util.logging.Logger;
import net.lightstone.cmd.CommandManager;
import ne... | mit |
rtfd/readthedocs.org | readthedocs/projects/apps.py | 155 | # -*- coding: utf-8 -*-
"""Project app config."""
from django.apps import AppConfig
class ProjectsConfig(AppConfig):
name = 'readthedocs.projects'
| mit |
BrettJaner/csla | Samples/NET/cs/ActionExtenderSample/ActionExtenderSample/Properties/Settings.Designer.cs | 1077 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18010
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | mit |
khrizenriquez/agh-sistema-interno-web | public/js/protos/login.js | 683 | 'use strict';
var User = function () {};
/*
*username: (str) user name
*password: (str hash) password
*cb: (callback) function to do something
*/
User.prototype.login = function(username, password, cb) {
var r = $.post('/services/auth', {
user: username,
pass: password,
action: 'login'
}, function () {}, 'jso... | mit |
cherniavskii/material-ui | packages/material-ui/src/styles/colorManipulator.js | 7279 | // @flow weak
/* eslint-disable no-use-before-define */
import warning from 'warning';
/**
* Returns a number whose value is limited to the given range.
*
* @param {number} value The value to be clamped
* @param {number} min The lower boundary of the output range
* @param {number} max The upper boundary of the o... | mit |
renrencoin/renrencoin | src/qt/bitcoinunits.cpp | 4282 | #include "bitcoinunits.h"
#include <QStringList>
BitcoinUnits::BitcoinUnits(QObject *parent):
QAbstractListModel(parent),
unitlist(availableUnits())
{
}
QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits()
{
QList<BitcoinUnits::Unit> unitlist;
unitlist.append(BTC);
unitlist.append(mBT... | mit |
crowdworks/elasticsearch-model-extensions | spec/integration_spec.rb | 12358 | require 'elasticsearch/model/extensions/all'
RSpec.shared_examples 'a search supporting automatic as_indexed_json creation' do
describe 'a record creation' do
before(:each) do
::Article.create(title: 'foo', created_at: Time.now)
::Article.__elasticsearch__.refresh_index!
end
it 'makes the d... | mit |
dailymotion/vast-client-js | src/ad_verification.js | 211 | export function createAdVerification() {
return {
resource: null,
vendor: null,
browserOptional: false,
apiFramework: null,
type: null,
parameters: null,
trackingEvents: {},
};
}
| mit |
kazinduzi/kasoko | vendor/PHPMailer/language/phpmailer.lang-fi.php | 1585 | <?php
/**
* Finnish PHPMailer language file: refer to English translation for definitive list
* @package PHPMailer
* @author Jyry Kuukanen
*/
$PHPMAILER_LANG['authenticate'] = 'SMTP-virhe: käyttäjätunnistus epäonnistui.';
$PHPMAILER_LANG['connect_host'] = 'SMTP-virhe: yhteys palvelimeen ei onnistu.';
$PHPMAILER_LA... | mit |
cynnyx/doormat | test/reusable_buffer_test.cpp | 2275 | #include <gtest/gtest.h>
#include "../src/utils/reusable_buffer.h"
namespace
{
static constexpr auto rbsize{1000U};
TEST(reusablebuffer, produces)
{
auto rb_half = rbsize/2;
reusable_buffer<rbsize> rb;
auto buf = rb.reserve();
EXPECT_EQ( boost::asio::buffer_size(buf), rbsize);
//Use half
auto ptr = ... | mit |
dalonghahaha/Dragon | lib/orm/mongodb.js | 2314 | "use strict";
var ObjectID = require('mongodb').ObjectID;
var Abstract = require('./abstract');
var Mongo = require('../db/mongodb');
var logger = require('../tool/log');
class orm_mongodb extends Abstract {
constructor(name,config){
super();
this.name = name;
this.config = config;
... | mit |
spalger/webpack | lib/UmdMainTemplatePlugin.js | 5221 | /*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var ConcatSource = require("webpack-sources").ConcatSource;
var OriginalSource = require("webpack-sources").OriginalSource;
function accessorToObjectAccess(accessor) {
return accessor.map(function(a) {
return "[" + J... | mit |
megcoin/megcoin | src/qt/locale/bitcoin_sah.ts | 130982 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="sah" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Megcoin Core</source>
<translation type="unfinished"/>
</message>
<message>
<location ... | mit |
kazuhira-r/javaee7-scala-examples | bean-validation-aggregate-annotation/src/test/scala/org/littlewings/javaee7/beanvalidation/AggregateAnnotationSpec.scala | 2423 | package org.littlewings.javaee7.beanvalidation
import javax.validation.{ConstraintViolation, Validation}
import org.scalatest.FunSpec
import org.scalatest.Matchers._
class AggregateAnnotationSpec extends FunSpec {
describe("AggregateAnnotationSpec") {
it("null") {
val user = new User
val factory =... | mit |
snowfarthing/nibbles_3d | wf_data.py | 5610 | # This module should contain everything I need to
# create a wireframe object.
# This is the first major step in creating my game
# engine.
# Special note: For some reason, in
# "wireframe.__init__", the function "re.sub"
# insists on adding '' whenever there's whitespace.
# I don't know if this is a 'feature' or if... | mit |
BreakingBugs/WebBackendTarea3 | src/main/java/py/una/pol/web/tarea3/model/Payment.java | 1172 | package py.una.pol.web.tarea3.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@Entity
@Table(name = "payment")
public class Payment implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@... | mit |
koblenski/handlers | test/integration/rendering_test.rb | 1349 | require "test_helper"
class RenderingTest < ActionDispatch::IntegrationTest
test ".rb template handler" do
get "/handlers/rb_handler"
expected = "This is my first <b>template handler</b>!"
assert_match expected, response.body
end
test ".string template handler" do
get "/handlers/string... | mit |
Azure/azure-sdk-for-python | sdk/chaos/azure-mgmt-chaos/setup.py | 2564 | #!/usr/bin/env python
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#----------------------------------------------------------------... | mit |
boxfrommars/rutorika-sortable | tests/migrations/2014_12_31_004833_create_entitiesgroup_table.php | 693 | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateEntitiesGroupTable extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::create('sortable_entities_group', function (Blueprint $table) {
$table-... | mit |
ShoukriKattan/ForgedUI-Eclipse | com.forgedui.editor/src/com/forgedui/editor/figures/SplitWindowFigure.java | 4351 | /**
*
*/
package com.forgedui.editor.figures;
import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.draw2d.geometry.PrecisionRectangle;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import or... | mit |
nuke-build/nuke | source/Nuke.Common/Tooling/PackageExecutableAttribute.cs | 2180 | // Copyright 2021 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using System.Reflection;
using JetBrains.Annotations;
using Nuke.Common.ValueInjection;
namespace Nuke.Common.Tooling
{
/// <summary>
/// ... | mit |
CODICEAlejandro/SAC | application/controllers/Detalle_factura_ctrl.php | 930 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Detalle_factura_ctrl extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->model("Factura");
$this->load->model("Concepto");
$this->load->model("RelacionConceptoFactura");
}
public function det... | mit |
synzen/Discord.RSS | src/commands/prompts/common/selectMultipleFeeds.js | 1544 | const { MenuEmbed, Rejection } = require('discord.js-prompts')
const LocalizedPrompt = require('./utils/LocalizedPrompt.js')
const selectFeed = require('./selectFeed.js')
const Translator = require('../../../structs/Translator.js')
/**
* @typedef {Object} Data
* @property {import('../../../structs/db/Feed.js')[]} fe... | mit |
brianbbsu/program | code archive/CF/1149B.cpp | 2984 | //{
#include<bits/stdc++.h>
using namespace std;
typedef int ll;
typedef double lf;
typedef pair<ll,ll> ii;
#define REP(i,n) for(ll i=0;i<n;i++)
#define REP1(i,n) for(ll i=1;i<=n;i++)
#define FILL(i,n) memset(i,n,sizeof i)
#define X first
#define Y second
#define SZ(_a) (int)_a.size()
#define ALL(_a) _a.begin(),_a.end(... | mit |
thanhnv308/TeeChipCrawler | src/main/java/com/thanhnv/crawler/CrawlerTask.java | 317 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.thanhnv.crawler;
/**
*
* @author trungnt
*/
@FunctionalInterface
public interface CrawlerTask extends Runnable {
}
| mit |
SmuliS/orbit.js | packages/@orbit/data/src/operation.ts | 12040 | import { Record, RecordIdentity, cloneRecordIdentity, equalRecordIdentities } from './record';
import { eq, deepGet, deepSet } from '@orbit/utils';
/**
* Base Operation interface, which requires just an `op` string.
*
* @export
* @interface Operation
*/
export interface Operation {
op: string;
}
/**
* Add rec... | mit |
CaptainElliott/CardinalPGM | src/main/java/in/twizmwaz/cardinal/util/Numbers.java | 2181 | package in.twizmwaz.cardinal.util;
import java.util.Random;
public class Numbers {
public static boolean checkInterval(double test, double bound1, double bound2) {
return (test >= bound1 && test <= bound2) || (test >= bound2 && test <= bound1);
}
public static double hypotSphere(double x, double... | mit |
leseulsteve/gestigris-backend | app/interventions/models/demande-participation.model.js | 1294 | 'use strict';
var q = require('q'),
mongoose = require('mongoose'),
Schema = mongoose.Schema,
timestamps = require('mongoose-timestamp'),
Intervention = require('./intervention.model');
var DemandeParticipationSchema = new Schema({
date: {
type: Date,
default: Date.now,
required: true
},
int... | mit |
Nuuf/nenkraft | src/nk-texture/nk-basic-texture.js | 1423 | /**
* @author Gustav 'Nuuf' Åberg <gustavrein@gmail.com>
*/
module.exports = function ( Nenkraft ) {
'use strict';
function BasicTexture ( _image, _id, _w, _h, _fullWidth, _fullHeight ) {
if ( !( this instanceof BasicTexture ) ) return new BasicTexture( _image, _id, _w, _h, _fullWidth, _fullHeight );
... | mit |
asposemarketplace/Aspose_for_DNN | Aspose.DNN/Aspose.DNN.ExchangeSync/Components/Crypto.cs | 697 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
using System.Security.Cryptography;
using System.IO;
namespace Aspose.DNN.ExchangeSync.Components
{
public class Crypto
{
private static byte[] salt = Encoding.ASCII.GetBytes("asf345234$... | mit |
phpoxford/spires | src/Plugins/BangMessage/ServiceProvider.php | 302 | <?php
declare(strict_types=1);
namespace Spires\Plugins\BangMessage;
class ServiceProvider extends \Spires\Core\ServiceProvider
{
/**
* Plugins provided.
*
* @return string[]
*/
public function plugins()
{
return [
Plugin::class
];
}
}
| mit |
cyrilmac92/classfound-feedback-microservice | src/main/java/com/classfound/feedback/model/GenericResponseModel.java | 1905 | /*
MIT License
Copyright (c) 2016 CYRIL MAC PHILIP
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publis... | mit |
nelmio/alice | src/Generator/Hydrator/PropertyHydratorInterface.php | 630 | <?php
/*
* This file is part of the Alice package.
*
* (c) Nelmio <hello@nelm.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Nelmio\Alice\Generator\Hydrator;
use Nelmio\Alice\Definition\P... | mit |
GroestlCoin/GroestlCoin | src/qt/bitcoinamountfield.cpp | 9369 | // Copyright (c) 2011-2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/bitcoinamountfield.h>
#include <qt/bitcoinunits.h>
#include <qt/guiconstants.h>
#include <qt/guiutil.h>
#includ... | mit |
fieldenms/tg | platform-pojo-bl/src/main/java/ua/com/fielden/platform/sample/domain/mixin/TgCategoryMixin.java | 940 | package ua.com.fielden.platform.sample.domain.mixin;
import static ua.com.fielden.platform.entity.query.fluent.EntityQueryUtils.fetchAll;
import static ua.com.fielden.platform.entity.query.fluent.EntityQueryUtils.from;
import static ua.com.fielden.platform.entity.query.fluent.EntityQueryUtils.select;
import ua.com.fi... | mit |
drovani/sandbox | VigilDataContext/VigilDataContext/System/VigilUserRole.cs | 200 | using System;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNet.Identity.EntityFramework;
namespace Vigil
{
public class VigilUserRole : IdentityUserRole<Guid>
{
}
}
| mit |
siarcarse/chrad | routes/base/report.js | 169 | const reportRules = [{
method: 'GET',
path: '/report',
handler: (request, reply) => {
reply.view('app/report');
}
}]
export default reportRules;
| mit |
sjsinju/coreclr | src/mscorlib/shared/Interop/Windows/Kernel32/Interop.GetFileInformationByHandleEx.cs | 903 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.Win32.SafeHandles;
using System;
using System.Runtime.InteropServices;
internal partial class Inter... | mit |