repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
m1ome/kahlan | src/Matcher/ToContainKey.php | 1540 | <?php
namespace Kahlan\Matcher;
use Traversable;
use ArrayAccess;
class ToContainKey
{
/**
* Expect that `$actual` array contain the `$expected` key.
*
* @param collection $actual The actual array.
* @param mixed $expected The expected key.
* @return boolean
*/
public stat... | mit |
studieresan/overlord | src/mongodb/ContactRequest.ts | 478 | import * as mongoose from 'mongoose'
import * as models from '../models'
export type ContactRequestDocument = mongoose.Document & models.ContactRequest
const ContactRequestSchema: mongoose.Schema = new mongoose.Schema({
email: { type: String, unique: true },
resolved: { type: Boolean, default: false },
priority... | mit |
tcsiwula/java_code | classes/cs212/LectureCode/src/anonymous_classe/HelloWorldAnonymousClasses.java | 1281 |
package anonymous_classe;
public class HelloWorldAnonymousClasses
{
interface HelloWorld
{
public void greet();
public void greetSomeone(String someone);
}
public void sayHello()
{
class EnglishGreeting implements HelloWorld
{
String name = "world";
public void greet()
{
greetSomeone("w... | mit |
plotly/python-api | packages/python/plotly/plotly/validators/sankey/node/_hovertemplate.py | 528 | import _plotly_utils.basevalidators
class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self, plotly_name="hovertemplate", parent_name="sankey.node", **kwargs
):
super(HovertemplateValidator, self).__init__(
plotly_name=plotly_name,
... | mit |
mauretto78/mamba-base | tests/Command/FormCreateAndDeleteCommandTest.php | 3221 | <?php
namespace Mamba\Command\Tests;
use Mamba\Command\FormCreateCommand;
use Mamba\Command\FormDeleteCommand;
use Mamba\Tests\MambaTest;
use Symfony\Component\Console\Helper\QuestionHelper;
use Symfony\Component\Console\Tester\CommandTester;
class FormCreateAndDeleteCommandTest extends MambaTest
{
public functi... | mit |
InnovateUKGitHub/innovation-funding-service | ifs-web-service/ifs-project-setup-service/src/main/java/org/innovateuk/ifs/project/monitoringofficer/viewmodel/MonitoringOfficerDashboardDocumentSectionViewModel.java | 1231 | package org.innovateuk.ifs.project.monitoringofficer.viewmodel;
/**
* Monitoring officer dashboard view model for Documents section
*/
public class MonitoringOfficerDashboardDocumentSectionViewModel {
private final String documentSectionStatus;
private final boolean hasDocumentSection;
private final lon... | mit |
selvasingh/azure-sdk-for-java | sdk/resourcemanager/azure-resourcemanager-redis/src/main/java/com/azure/resourcemanager/redis/fluent/models/RedisLinkedServerWithPropertiesInner.java | 4002 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.redis.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.cor... | mit |
gigantlabmaster/lundbergsab.github.io | cache/twig/d0/d0a0b58e8219085b4f80c629440ce9c35a525809ba01f1e23cfa97e6d15c4fca.php | 17956 | <?php
/* partials/base.html.twig */
class __TwigTemplate_cc43f5ef3a1230e7564d05d3ed3a58eb85ee7cde251317024c1cf9c334e2fe24 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
'... | mit |
getcha22/react-blog | webpack.config.js | 1600 | const { resolve } = require('path');
const webpack = require('webpack');
module.exports = {
entry: [
'react-hot-loader/patch',
// activate HMR for React
'webpack-dev-server/client?http://localhost:8080',
// bundle the client for webpack-dev-server
// and connect to the provided endpoint
'we... | mit |
jcwmoore/athena | Athena.SQLite/src/pcache_c.cs | 19325 | using System;
using System.Diagnostics;
using System.Text;
using u32 = System.UInt32;
using Pgno = System.UInt32;
namespace System.Data.SQLite
{
using sqlite3_value = Sqlite3.Mem;
using sqlite3_pcache = Sqlite3.PCache1;
internal partial class Sqlite3
{
/*
** 2008 August 05
**
** The author disclaims copy... | mit |
karthiick/ember.js | packages/ember-runtime/lib/system/namespace.js | 5161 | /**
@module ember
*/
import { guidFor } from 'ember-utils';
import Ember, {
get,
Mixin,
hasUnprocessedMixins,
clearUnprocessedMixins,
} from 'ember-metal'; // Preloaded into namespaces
import { context } from 'ember-environment';
import { NAME_KEY } from 'ember-utils';
import EmberObject from './object';
let s... | mit |
dhingratul/Deep-Learning | 2_LR_GD.py | 4431 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 7 09:58:16 2017
@author: dhingratul
"""
from __future__ import print_function
import numpy as np
import tensorflow as tf
from six.moves import cPickle as pickle
from six.moves import range
def unPickle(pickle_file):
"""
Unpickles the data... | mit |
bearsunday/BEAR.Resource | tests/Fake/UnboundInterface.php | 129 | <?php
declare(strict_types=1);
namespace BEAR\Resource;
/**
* No implementation interface
*/
interface UnboundInterface
{
}
| mit |
toopy/django-toopy-website | src/toopy/forms.py | 333 | import floppyforms as forms
from toopy.models import Contact
class FormContact(forms.ModelForm):
class Meta:
model = Contact
widgets = {
'email' : forms.EmailInput,
'subject': forms.TextInput,
'message': forms.Textarea,
'website': forms.URLInpu... | mit |
dnjuguna/wepesi | lib/utilities/storage.js | 920 | "use strict";
var mongodb = require('mongodb');
var self = {
store : {}
};
module.exports = {
set : function(){
self.store[arguments[0]] = arguments[1];
},
get : function(){
var key = arguments[0];
return self.store[key] ? self.store[key] : null;
},
connect: function(settings, then){
var config = "mong... | mit |
SuperPaintman/susanin | gulp/tasks/server.js.js | 1254 | 'use strict';
/** Requires */
const path = require('path');
// Main
const gulp = require('gulp');
const $ = require('gulp-load-plugins')();
// Config
const config = require('../config.js');
const helps = require('../helps.js');
/** Constants */
const TASK_NAME = 'server:j... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/yui/3.2.0/editor/selection-debug.js | 130 | version https://git-lfs.github.com/spec/v1
oid sha256:c65926f7c31b0d3c93de8ea950b714a69eeb0de2e594cb457fddac7e86cadb97
size 31108
| mit |
sakapon/Tools-2015 | VisionPlate/VisionPlate/MainWindow.xaml.cs | 783 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Med... | mit |
trinhtran060392/angular-2 | app/graph/graph.footer.component.ts | 167 | import { Component } from '@angular/core';
@Component({
selector: 'my-footer',
templateUrl: 'app/graph/graph.footer.html'
})
export class GraphFooterComponent {
} | mit |
wppurking/hutch-schedule | spec/hutch/patch/config_spec.rb | 893 | require "spec_helper"
RSpec.describe Hutch::Config do
it '#worker_pool_size' do
expect(subject.get(:worker_pool_size)).to eq(20)
expect(subject.is_num(:worker_pool_size)).to be_truthy
end
it '#poller_interval' do
expect(subject.get(:poller_interval)).to eq(1)
expect(subject.is_num(:poller_inte... | mit |
marcelmoosbrugger/genetic-sudoku-solver | src/io/GridReader.java | 3453 | /*
* This file is part of the genetic-sudoku-solver.
*
* (c) Marcel Moosbrugger
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
package io;
import sudoku.SudokuGrid;
import java.util.Scanner;
/**
* Class reads and returns a sudoku-grid
*/
pu... | mit |
jmgq/php-a-star | tests/Example/Graph/LinkTest.php | 2132 | <?php
namespace JMGQ\AStar\Tests\Example\Graph;
use JMGQ\AStar\Example\Graph\Coordinate;
use JMGQ\AStar\Example\Graph\Link;
use PHPUnit\Framework\TestCase;
class LinkTest extends TestCase
{
/**
* @return mixed[][]
*/
public function validDistanceProvider(): array
{
return [
... | mit |
Azure/azure-sdk-for-net | sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ManagedDiskParameters.cs | 3330 | // <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 |
ritz078/ultron | Gruntfile.js | 10289 | /*jshint node:true*/
// Generated on 2015-10-16 using
// generator-webapp-watchify 0.5.1
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// If you want to recursively match all subfolders, use:
// 'test/spec/**/*.js'
module.exports = function (grunt... | mit |
KaelenJuntilla/KaelenJAwsomenauts2 | js/gamemanagers/SpendGold.js | 7742 | game.SpendGold = Object.extend({
init: function(x, y, settings){
this.now = new Date().getTime();
this.lastBuy = new Date().getTime();
this.paused = false;
this.alwaysUpdate = true;
this.updateWhenPaused = true;
this.buying = false;
},
update: function(){... | mit |
xebia/akka-jigsaw | api/src/main/scala/com/xebia/akka/jigsaw/Events.scala | 1082 | package com.xebia.akka.jigsaw
abstract class Event
case class PieceMoved(id: String, x: Int, y: Int) extends Event
case class UserJoined(id: String) extends Event
case class UserLeft(id: String) extends Event
case class EventWrapper(pieceMoved: Option[PieceMoved], userJoined: Option[UserJoined])
object EventWrapp... | mit |
feO2x/Light.GuardClauses | Code/Light.GuardClauses.Tests/ComparableAssertions/MustBeGreaterThanTests.cs | 2140 | using System;
using FluentAssertions;
using Xunit;
namespace Light.GuardClauses.Tests.ComparableAssertions;
public static class MustBeGreaterThanTests
{
[Theory]
[InlineData(1, 1)]
[InlineData(1, 2)]
[InlineData(-1, -1)]
[InlineData(0, 0)]
public static void ParameterEqualOrLess(int first, in... | mit |
DavidBadura/Fixtures | src/Converter/ConverterRepositoryInterface.php | 426 | <?php declare(strict_types=1);
namespace DavidBadura\Fixtures\Converter;
/**
* @author David Badura <d.a.badura@gmail.com>
*/
interface ConverterRepositoryInterface
{
public function addConverter(ConverterInterface $converter): void;
public function hasConverter(string $name): bool;
public function ge... | mit |
nimeshvaghasiya/MyHeritage | src/MyHeritage.App/src/app/pages/dashboard/pieChart/index.js | 187 | "use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
__export(require('./pieChart.component'));
//# sourceMappingURL=index.js.map | mit |
ryrudnev/dss-wm | app/routes/user/EditRoute.js | 1789 | import React from 'react';
import Helmet from 'react-helmet';
import { Route } from '../../core/router';
import { Model as User } from '../../entities/User';
import { Collection as Companies } from '../../entities/Company';
import { PageHeader, Row, Col, Panel } from 'react-bootstrap';
import UserForm from '../../compo... | mit |
wwdenis/wwa | samples/Marketplace/Marketplace.Web/app/models/Category.ts | 282 | // 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 Category extends ActiveNamedModel {
}
}
| mit |
liruqi/bigfoot | Interface/AddOns/DBM-DMF/Gnoll.lua | 1906 | local mod = DBM:NewMod("Gnoll", "DBM-DMF")
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 17247 $"):sub(12, -3))
mod:SetZone()
mod:RegisterEvents(
"SPELL_AURA_APPLIED 101612",
"SPELL_AURA_REMOVED 101612",
"UNIT_SPELLCAST_SUCCEEDED player",
"UNIT_POWER_FREQUENT player"
)
mod.noStatistics = true
... | mit |
zauni/pngmin | test/pngmin_test.js | 6708 | 'use strict';
var grunt = require('grunt');
/*
======== A Handy Little Nodeunit Reference ========
https://github.com/caolan/nodeunit
Test methods:
test.expect(numAssertions)
test.done()
Test assertions:
test.ok(value, [message])
test.equal(actual, expected, [message])
test.notEqual(actua... | mit |
uyjco0/geli | GeLi/gggpIsokinetics/ExtractBioSecuenceFeatures.java | 34281 | package gggpIsokinetics;
/**
*
*
* @author Jorge Couchet
*
*/
import java.io.IOException;
import java.util.Collection;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.Iterator;
import java.util.Locale;
import cern.colt.matrix.DoubleMatrix2D;
import cern.... | mit |
ollie314/angular.js | test/ng/rootScopeSpec.js | 72603 | 'use strict';
describe('Scope', function() {
beforeEach(module(provideLog));
describe('$root', function() {
it('should point to itself', inject(function($rootScope) {
expect($rootScope.$root).toEqual($rootScope);
expect($rootScope.hasOwnProperty('$root')).toBeTruthy();
}));
it('should ... | mit |
cowthan/Ayo2022 | ProjFringe/ayo-ui-list/src/main/java/org/ayo/list/LocalDisplay.java | 1942 | //
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package org.ayo.list;
import android.content.Context;
import android.util.DisplayMetrics;
import android.view.View;
import android.view.WindowManager;
public class LocalDisplay {
public static int SCREEN_WIDT... | mit |
rjschultz18/rachel-catarse-crowdfunding | app/models/concerns/project/base_validator.rb | 1426 | # -*- coding: utf-8 -*-
# This module handles with default project state validation
module Project::BaseValidator
extend ActiveSupport::Concern
included do
# All valid states for projects in_analysis to end of publication
ON_ANALYSIS_TO_END_STATES = %w(in_analysis approved online successful waiting_funds f... | mit |
mmkassem/gitlabhq | spec/finders/packages/group_packages_finder_spec.rb | 4985 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Packages::GroupPackagesFinder do
let_it_be(:user) { create(:user) }
let_it_be(:group) { create(:group) }
let_it_be(:project) { create(:project, namespace: group) }
let(:another_group) { create(:group) }
before do
group.add_develo... | mit |
CS2103AUG2016-T14-C3/main | src/test/java/guitests/ListNotDoneCommandTest.java | 957 | package guitests;
import static seedu.taskmanager.logic.commands.ListNotDoneCommand.COMMAND_WORD;
import static seedu.taskmanager.logic.commands.ListNotDoneCommand.SHORT_COMMAND_WORD;
import static seedu.taskmanager.logic.commands.ListNotDoneCommand.MESSAGE_SUCCESS;
import org.junit.Test;
import seedu.taskmanager.co... | mit |
scalation/fda | scalation_1.3/scalation_mathstat/src/main/scala/scalation/plot/HeatMapFX.scala | 9018 | //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
/** @author Michael E. Cotterell & Alec Molinaro
* @version 1.2
* @date THR Apr 20 00:05:16 EST 2015
* @see LICENSE (MIT style license file).
*/
package scalation.plot
import javafx.application.Application
import javafx... | mit |
hbobenicio/sta-to-csv | libsta/src/sta-converter.cpp | 346 | #include "sta-converter.h"
#include <string>
#include "fields.h"
using namespace std;
string STAConverter::formatDecimal(const FieldInfo& info, const string& value) {
string response = value;
if (info.isDecimal()) {
int pos = stoi(info.beforeDecimalSeparator());
response.insert(pos, ",");
... | mit |
InWork/queue_dispatcher | lib/queue_dispatcher/qd_logger.rb | 481 | module QdLogger
attr_accessor :logger
def initialize_logger(logger = nil)
@logger = logger || Logger.new("#{File.expand_path(Rails.root)}/log/queue_dispatcher.log")
end
# Write a standart log message
def log(args = {})
sev = args[:sev] || :info
msg = Time.now.to_s + " #{sev.to_s.upcase} #{$$} (#... | mit |
senna-project/senna | src/Senna/Bundle/AppBundle/EventListener/UserListener.php | 3351 | <?php
namespace Senna\Bundle\AppBundle\EventListener;
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface;
use Doctrine\Common... | mit |
object/Simple.OData.Client | src/Simple.OData.Client.V4.Adapter/ResourceProperties.cs | 714 | using System.Collections.Generic;
using System.Linq;
using Microsoft.OData;
using Microsoft.OData.Edm;
using Simple.OData.Client.Extensions;
namespace Simple.OData.Client.V4.Adapter
{
public class ResourceProperties
{
public ODataResource Resource { get; }
public string TypeName { get; set; }
... | mit |
jievro/parser | spec/statement/loop/for/test_expression_spec.rb | 479 | require 'jievro/parser/tools/tokens'
def source
'for;false;{}'
end
def expected_tokens
[
T_FOR,
T_SEMICOLON,
T_FALSE,
T_SEMICOLON,
T_OPEN_CURLY_BRACKET,
T_CLOSE_CURLY_BRACKET
]
end
def expected_ast
{
__type: 'program',
body: [
{
__type: 'for-statement',
i... | mit |
jeselxe/WebSeries-cli | app/scripts/components/Temporadas/Temporada.js | 1632 | import React, { PropTypes } from 'react';
import ActionButton from '../ActionButton';
import {connect} from 'react-redux';
import {temporadasActions} from '../../Actions';
const mapStateToProps = (state) => {
return {
token : state.login.token,
serie: state.series.serie,
temporada: state.se... | mit |
dinjonya/blog | CorePlugs20/Models/ConfigModel.cs | 3287 | using System.Collections.Generic;
namespace CorePlugs20.Models
{
public class ConfigModel
{
public string EnvironmentName { get; set; }
public int PageSize { get; set; }
public AuthenServerModel AuthenServer { get; set; }
public BlogUiModel BlogUi { get; set; }
public Ap... | mit |
vuikit/vuikit | packages/vuikit-icons/src/uikit/triangle-down.js | 492 | // icon-triangle-down
export default {
functional: true,
render: function (h, { props }) {
let width = props.width || 20
let height = props.height || 20
const viewBox = props.viewBox || '0 0 20 20'
return h('svg', {
attrs: {
version: '1.1',
meta: 'vk-icons-triangle-down',
... | mit |
Grafikart/arraytree-gem | lib/Array.rb | 528 | Array.class_eval do
def tree(foreign_key = :parent_id, id_key = :id)
grouped = self.group_by { |i| i[foreign_key].nil? ? 0 : i[foreign_key] }
grouped.each do |parent_id, children|
if parent_id && parent_id != 0
parent = self.select { |e| e[id_key] == parent_id }.first
... | mit |
eikes/sqek | db/migrate/20150910081733_add_external_url_to_city.rb | 140 | class AddExternalUrlToCity < ActiveRecord::Migration[4.2]
def change
add_column :cities, :external_url, :string, default: 0
end
end
| mit |
seznam/IMA.js-core | test.js | 1034 | var root = typeof window !== 'undefined' && window !== null ? window : global;
root.$IMA = root.$IMA || {};
root.$IMA.Test = true;
root.$IMA.$Debug = true;
root.$Debug = true;
root.$IMA.Loader = root.$IMA.Loader || {
register: function() {},
replaceModule: function() {},
import: function() {
return Promise.r... | mit |
leyyin/university | systems-for-design-and-implementation/labs/lab3/LibraryServer/src/library/server/ServerStartRPC.scala | 977 | package library.server
import library.network.utils.{AbstractServer, LibraryRPCConcurrentServer, ServerException}
import library.persistance.repository.jdbc.{BookRepositoryJDBC, UserRepositoryJDBC}
import library.persistance.repository.{IBookRepository, IUserRepository}
import library.services.impl.LibraryServerImpl
i... | mit |
StefanoFiumara/Harry-Potter-Unity | Assets/Scripts/HarryPotterUnity/Cards/Characters/RonYoungestBrother.cs | 617 | using System.Collections.Generic;
namespace HarryPotterUnity.Cards.Characters
{
public class RonYoungestBrother : BaseCharacter
{
public override bool CanPerformInPlayAction()
{
return this.Player.Hand.Cards.Count == 0
&& this.Player.IsLocalPlayer
&&... | mit |
jasonwnorris/SuperAwesomeGameEngine | include/SAGE/AudioSource.hpp | 939 | // AudioSource.hpp
#ifndef __SAGE_AUDIOSOURCE_HPP__
#define __SAGE_AUDIOSOURCE_HPP__
// OpenAL Includes
#include <AL/al.h>
// SAGE Includes
#include <SAGE/Vector2.hpp>
namespace SAGE
{
class AudioSource
{
public:
AudioSource();
AudioSource(ALuint p_BufferID);
~AudioSource();
void SetBuffer(ALuint p_... | mit |
aabasse/otacos | web/js/photo.js | 3850 | $(function(){
var nbrPhoto = $('#formPhoto-fields-list').data('nbr-photo');
/*$('.element').each(function(){
var src = $(this).data('url');
var label = $('label', $(this));
//console.log(url);
remplacerImageApercu(label, src, '');
})*/
$('#add-photo').click(fu... | mit |
AJ-Moore/NMEngine | source/SceneManager.cpp | 2552 |
//!< Author: Allan J Moore 13/ 01/ 2015
/***************************************************************************************
* Nightmare Engine, Unorthodox Game Studios *
* Copyright (C) 2014, Allan J Moore *
* All rights reserved *
* *
* See "licence.txt"... | mit |
pixelballoon/pixelboost | engine/src/common/pixelboost/animation/component/timeline.cpp | 1857 | #include "pixelboost/animation/component/timeline.h"
#include "pixelboost/animation/message/timeline.h"
#include "pixelboost/animation/timeline/timeline.h"
#include "pixelboost/logic/message/update.h"
#include "pixelboost/logic/entity.h"
using namespace pb;
PB_DEFINE_COMPONENT(pb::TimelineComponent)
TimelineComponen... | mit |
wendorf/sprout-mysql | spec/unit/install_spec.rb | 685 | require 'unit/spec_helper'
describe 'sprout-mysql::install' do
let(:runner) { ChefSpec::Runner.new }
before do
stub_command(/mysql /)
end
it 'installs mysql' do
runner.converge(described_recipe)
expect(runner).to install_package('mysql')
end
it 'uses a default root password of `password`' do... | mit |
pitsolu/strukt-framework | src/Strukt/Loader/RegenerateModuleLoader.php | 1784 | <?php
namespace Strukt\Loader;
use Strukt\Fs;
use Strukt\Env;
use Strukt\Generator\Parser;
use Strukt\Generator\Compiler\Runner as Compiler;
use Strukt\Generator\Compiler\Configuration;
use Strukt\Templator;
/**
* Helper that generates module loader
*
* @author Moderator <pitsolu@gmail.com>
*/
class RegenerateModul... | mit |
BeltranGomezUlises/machineAdminAPI | src/main/java/com/auth/models/ModelUsuarioLogeado.java | 1975 | /*
* Copyright (C) 2017 Alonso --- alonso@kriblet.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This... | mit |
campaignmonitor/createsend-java | src/com/createsend/util/jersey/JsonProvider.java | 3687 | /**
* Copyright (c) 2011 Toby Brain
*
* 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, mer... | mit |
joshfriend/potatosalad | potatosalad/api/image.py | 1564 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from cStringIO import StringIO
from flask import send_file, current_app
from werkzeug.exceptions import BadRequest
from potatosalad.api import endpoints
from potatosalad.util import (
pick_random_image,
remove_transparency,
cache_control,
crop_resize,
)
... | mit |
DeNA/rubycf | lib/rubycf_extensions.rb | 2307 | # Copyright (c) 2009 ngmoco:)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, dis... | mit |
msfrisbie/pjwd-src | AppendixBStrictMode/Functions/FunctionsExample04.js | 196 | // Function declaration in an if statement
// Non-strict mode: Function hoisted outside of if statement
// Strict mode: Throws a syntax error
if (true){
function doSomething(){
// ...
}
}
| mit |
ivanknow/middleware-panfleto-movel | src/br/ufrpe/bcc/negocio/Usuario.java | 489 | package br.ufrpe.bcc.negocio;
public class Usuario {
private int id;
private String login;
private String senha;
public Usuario(String login, String senha){
this.login = login;
this.senha = senha;
}
public int getId(){
return this.id;
}
public String getLogin(){
return this.login;
}
public void... | mit |
tobyclemson/msci-project | vendor/poi-3.6/src/java/org/apache/poi/hssf/record/SSTRecord.java | 10853 | /* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to Y... | mit |
carlo-/MalmoAgent | src/domain/fluents/Have.java | 593 | package domain.fluents;
import domain.AtomicFluent;
import main.Observations;
public class Have implements AtomicFluent {
private final String mItem;
private final int mNumberOf;
public Have(String item, int numberOf) {
mItem = item;
mNumberOf = numberOf;
}
public String getItem(... | mit |
mientjan/node-flump | src/core/util/LinkedList.ts | 12382 |
/*
* LinkedList
*
* The MIT License (MIT)
*
* Copyright (c) 2013 Basarat Ali Syed
* Copyright (c) 2013 Mauricio Santos
* Copyright (c) 2015 Mient-jan Stelling
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"... | mit |
NextLight/PokeBattle_Client | PokeBattle_Client/PokeBattle_Client/Popup.cs | 1540 | using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Shapes;
namespace PokeBattle_Client
{
public class Popup : Grid
{
private Button btnClose;
public event EventHandler Closed;
// I can't use xaml because someone decided... | mit |
aprendecondedos/learning-analytics | models/log.js | 866 | 'use strict';
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
/**
* Logging Mongo Schema
* event: {create, update, delete}
*/
var logSchema = new Schema({
//type: {
// type: String,
// required: true
//},
//event: {
// type: String,
// required: true
//},
//idEvent: {
/... | mit |
Vovkasquid/compassApp | alljoyn/common/os/posix/Condition.cc | 3564 | /**
* @file
*
* This file implements qcc::Condition for Posix systems
*/
/******************************************************************************
* Copyright AllSeen Alliance. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or withou... | mit |
pgherveou/lru-cache | test/index.js | 8077 | /* global DOMException: true, it: true, describe:true, before: true, afterEach: true, it:true */
var LRU = require('lru-cache'),
lf = require('localforage'),
Promise = require('promise'),
chai = require('chai'),
expect = chai.expect;
lf.setDriver('localStorageWrapper');
/**
* wait closure
*
* @par... | mit |
ceolter/angular-grid | grid-packages/ag-grid-enterprise/dist/lib/setFilter/setFilter.d.ts | 4012 | import { IDoesFilterPassParams, ISetFilterParams, ProvidedFilter, IAfterGuiAttachedParams, AgPromise } from 'ag-grid-community';
import { SetValueModel } from './setValueModel';
import { SetFilterModel } from './setFilterModel';
export declare class SetFilter extends ProvidedFilter {
static SELECT_ALL_VALUE: string... | mit |
SuperSpyTX/MCLib | src/se/jkrau/mclib/org/objectweb/asm/tree/analysis/Subroutine.java | 3122 | /***
* ASM: a very small and fast Java bytecode manipulation framework
* Copyright (c) 2000-2011 INRIA, France Telecom
* 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. Redistribution... | mit |
jarofpencils/llamallodge | view/sidebar.php | 799 | <aside>
<!-- These links are for testing only.
Remove them from a production application. -->
<h2>Links</h2>
<ul>
<li>
<a href="<?php echo $app_path; ?>">Home</a>
</li>
<li>
<a href="<?php echo $app_path . 'admin'; ?>">Admin</a>
</li>
</ul... | mit |
jfrazelle/s3server | vendor/go.opencensus.io/plugin/ochttp/server.go | 6474 | // Copyright 2018, OpenCensus Authors
//
// 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 agree... | mit |
litshares/litshares | src/qt/locale/bitcoin_uk.ts | 123478 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="uk" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Litshares</source>
<translation>Про Litshares</translation>
</me... | mit |
MonsieurOenologue/Curriculum-vit- | cache/compiled/files/8a9c566bf90f01bb7b4098c1f1692a8b.yaml.php | 7597 | <?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => 'user/plugins/admin/blueprints.yaml',
'modified' => 1448321491,
'data' => [
'name' => 'Admin Panel',
'version' => '1.0.0-rc.6',
'description' => 'Adds an advanced administration panel to manage your ... | mit |
joshwalawender/POCS | pocs/camera/sbigudrv.py | 51519 | """
Low level interface to the SBIG Unversal Driver/Library.
Reproduces in Python (using ctypes) the C interface provided by SBIG's shared
library, i.e. 1 function that does 72 different things selected by passing an
integer as the first argument. This is basically a direct translation of the
enums and structs defined... | mit |
EcoGame/Eco | src/eco/game/Game.java | 2812 | package eco.game;
import eco.render.FPSCounter;
import eco.render.Render;
import eco.ui.*;
import org.lwjgl.opengl.Display;
/**
* A class that contains various methods to run the game
*
* @author phil
*/
public final class Game {
public static void gameLoop(PlayerCountry playerCountry) {
init(playerC... | mit |
salsabielac/pokoman | application/views/uas/volly.php | 1403 | <!-- Page Header -->
<!-- Set your background image for this header on the line below. -->
<header class="intro-header" style="background-image: url('http://localhost:8080/codein/uas/img/volly.jpg')">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md... | mit |
spacexnice/ctlplane | Godeps/_workspace/src/github.com/google/cadvisor/Godeps/_workspace/src/github.com/opencontainers/runc/libcontainer/setns_init_linux.go | 1272 | // +build linux
package libcontainer
import (
"os"
"github.com/opencontainers/runc/libcontainer/apparmor"
"github.com/opencontainers/runc/libcontainer/label"
"github.com/opencontainers/runc/libcontainer/seccomp"
"github.com/opencontainers/runc/libcontainer/system"
)
// linuxSetnsInit performs th... | mit |
githubmoros/myclinicsoft | arrowchat/includes/functions/integrations/functions_ipboard.php | 8725 | <?php
/*
|| #################################################################### ||
|| # ArrowChat # ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2010-2012 ArrowSuites LLC. All Rights Reserved. # ||
|| #... | mit |
micromasterandroid/androidadvanced | Lesson 2/TwitterClientApp/app/src/main/java/edu/galileo/android/twitterclient/main/ui/adapters/MainSectionsPagerAdapter.java | 857 | package edu.galileo.android.twitterclient.main.ui.adapters;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
/**
* Created by ykro.
*/
public class MainSectionsPagerAdapter extends FragmentPagerAdapter {
private String[] t... | mit |
zeroleaf/com.zeroleaf | ProgressBar/src/main/java/com/zeroleaf/tools/progressbar/renderings/TotalRendering.java | 513 | package com.zeroleaf.tools.progressbar.renderings;
import com.zeroleaf.tools.progressbar.Config;
import com.zeroleaf.tools.progressbar.Progress;
/**
*
*
* @author zeroleaf
*/
public class TotalRendering implements Rendering {
public static final String TOTAL_TOKEN = ":total";
@Override
public String... | mit |
DFEAGILEDEVOPS/gender-pay-gap | Beta/GenderPayGap.WebJob/Functions/Functions.StorageSnapshots.cs | 11496 | using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
using GenderPayGap.Extensions;
using GenderPayGap.Core;
using System.Collections.Generic;
using static GenderPayGap.Extensions.Web;
using System.Security.Cryptography;
using Microsoft.Azure.WebJobs... | mit |
baishancloud/lua-acid | lib/test_tableutil.lua | 37069 | local tableutil = require("acid.tableutil")
local time = require('acid.time')
local test = _G.test
local dd = test.dd
function test.nkeys(t)
local cases = {
{0, { }, 'nkeys of empty'},
{1, {0 }, 'nkeys of 1'},
{2, {0, nil, 1 }, 'nkeys of 0, nil and 1'},
... | mit |
CHBMB/docker-containers | cloudflare/cf-dns-ip.py | 1080 | #!/usr/bin/env python
# set ENV:
# CFKEY=API-key
# CFUSER=username(email)
# CFZONE=zone-name
# CFDNIP=x.x.x.x
# CFHOST=host1-you-want-to-change,host2-you-want-to-change
# CFTYPE=A,CNAME # effect rec type
from cloudflare import CloudFlare
import os
cfkey = os.getenv("CFKEY", "")
cfuser = os.getenv("CFUSER", "")
cfzon... | mit |
TimPetricola/blueskies | app/routes/home.rb | 2622 | module BlueSkies
module Routes
class Home < Base
get '/' do
erb :form, locals: form_locals(form: Forms::Recipient.new(params))
end
post '/subscriptions' do
form = Forms::Recipient.new(params)
return erb(:form, locals: form_locals(form: form)) unless form.valid?
... | mit |
MaoRodriguesJ/INE5408 | t1/library/ListaEnc.hpp | 11366 | // Copyright Bruno Marques <2016.1>
#ifndef LISTAENC_HPP
#define LISTAENC_HPP
#include <stdexcept>
#include "Elemento.hpp"
//! Classe da estrutura de dado: Lista Encadeada.
/*! Implementação da estruturda de dado Lista Encadeada,
* realizada na disciplina de Estrutura de Dados - INE5408
* como qua... | mit |
yosymfony/ConfigServiceProvider | src/Yosymfony/Silex/ConfigServiceProvider/Loaders/JsonLoader.php | 2517 | <?php
/*
* This file is part of the Yosymfony\ConfigurationServiceProvider.
*
* (c) YoSymfony <http://github.com/yosymfony>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Yosymfony\Silex\ConfigServiceProvider\Loaders;
... | mit |
ddollar/heroku-sql-console | lib/heroku-sql-console.rb | 66 | require 'heroku/command/sql'
require 'heroku-sql-console/version'
| mit |
WeTransfer/apiculture | lib/apiculture/method_documentation.rb | 4023 | require 'builder'
require 'rdiscount'
# Generates Markdown/HTML documentation about a single API action.
#
# Formats route parameters and request/QS parameters as a neat HTML
# table, listing types, requirements and descriptions.
#
# Is used by AppDocumentation to compile a document on the entire app's API
# structure... | mit |
brad-jones/ppm | src/Ppm/Contracts/IReNameVisitor.php | 159 | <?php namespace Brads\Ppm\Contracts;
use PhpParser\NodeVisitor;
interface IRenameVisitor extends NodeVisitor
{
public function rename($fromNs, $toNs);
}
| mit |
CooperLuan/devops.notes | taobao/top/api/rest/AreasGetRequest.py | 294 | '''
Created by auto_sdk on 2014-12-17 17:22:51
'''
from top.api.base import RestApi
class AreasGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.fields = None
def getapiname(self):
return 'taobao.areas.get'
| mit |
gamonoid/icehrm | core/lib/composer/vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation.php | 1437 | <?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | mit |
dragonwong/rnx-ui | Example/src/page/CardView/index.js | 4573 | import React, {
Component,
} from 'react';
import {
StyleSheet,
Dimensions,
View,
Text,
} from 'react-native';
import All from 'rnx-ui/All';
import Btn from 'rnx-ui/Btn';
import {
NavBar,
} from 'BizComponent';
import Router from 'BizRouter';
import CardView from 'rnx-ui/CardView';
// let flag = true;
fu... | mit |
attilacsanyi/material2 | src/lib/core/overlay/scroll/block-scroll-strategy.ts | 2407 | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {ScrollStrategy} from './scroll-strategy';
import {ViewportRuler} from '../position/viewport-ruler';
/**
* ... | mit |
themoonofendor/blog | db/schema.rb | 2600 | # encoding: UTF-8
# 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 sou... | mit |
hacor/pkgcloud | lib/pkgcloud/openstack/metering/client/index.js | 697 | /*
* index.js: Openstack Ceilometer client
*
* (C) 2015 Hans Cornelis
* MIT LICENSE
*
*/
var util = require('util'),
urlJoin = require('url-join'),
openstack = require('../../client'),
_ = require('underscore');
var Client = exports.Client = function (options) {
openstack.Client.call(this, optio... | mit |