repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
leonardinius/rust-guide | 2.12-arr-vec-slice/src/main.rs | 904 | fn _12_1(){
println!("guide 12-1");
let a = [1i32, 2i32, 3i32];
let mut m = [2i32, 3i32, 4i32];
if false {
println!("{:?} {:?}", a, m);
}
let b = [0i32; 20]; // shorthand for array of 20 elements all initialized to 0
println!("{:?}", b);
m = [5i32, 6i32, 7i32];
println!("{:?}... | mit |
AlloyTeam/Nuclear | site/docs/static/js/34.e3dce69a.chunk.js | 1023 | webpackJsonp([34],{43:function(n,e){n.exports="## Installation \n\nSimply download and include with `<script>`. Omi will be registered as a global variable.\n\n* [Omi Development Version](https://unpkg.com/omi@latest/dist/omi.js)\n* [Omi Production Version](https://unpkg.com/omi@latest/dist/omi.min.js)\n\nInstall via ... | mit |
vankatalp360/Programming-Fundamentals-2017 | Data Types and Variables - Exercises/07.From Terabytes to Bits/Properties/AssemblyInfo.cs | 1426 | 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("07... | mit |
ghiringh/Wegas | wegas-app/src/main/webapp/wegas-lobby/src/app/commons/behaviours/autocomplete.js | 414 | angular.module('wegas.behaviours.autocomplete', [])
.directive('autoComplete', function($timeout) {
"use strict";
return function(scope, iElement, iAttrs) {
iElement.autocomplete({
source: scope[iAttrs.uiItems],
select: function() {
$timeout(function() {
... | mit |
alexsilveira/BairralMVC | app/Controllers/Time.php | 3250 | <?php
namespace Controllers;
use Helpers\Url;
use Core\View;
use Core\Controller;
/*
* Time controller
*
* @author Alex Souza Silveira
* @version 1.0
* @date 11/07/2015
* @date updated 11/05/2015
*/
class Time extends Controller
{
private $_campeonato;
private $_classificacao;
private $_tabela;
... | mit |
kzganesan/quickstart | app/payees/payee-main.component.ts | 972 | import { Component, OnInit, OnDestroy } from '@angular/core';
import { Payee } from './Payee';
import { PayeeDAO } from './payee-dao.service';
import { Subscribable } from 'rxjs/Observable';
import { Subscription } from 'rxjs';
@Component( {
selector : 'payee-main',
templateUrl: 'app/payees/payee-main.component.... | mit |
liordoe/portfolio | modules/users/client/users.client.module.js | 395 | (function (app) {
'use strict';
app.registerModule('users', ['core']);
app.registerModule('users.admin');
app.registerModule('users.admin.routes', ['ui.router', 'core.routes', 'users.admin.services']);
app.registerModule('users.admin.services');
app.registerModule('users.routes', ['ui.router', 'core.routes... | mit |
mastein109/phase-0 | week-7/group_project_solution.js | 2002 | /*
Release 1: Tests to User Stories (Sydney)
INSTRUCTIONS:
Based on the tests, write user stories that describe what the
code needs to do. User stories take the following format:
As a user, I want to...
The user stories should be easily translated into
pseudocode by the next person in your group. However, a user
story ... | mit |
PioBeat/GravSupport | src/main/java/net/offbeatpioneer/intellij/plugins/grav/errorreporting/GravErrorBean.java | 2395 | package net.offbeatpioneer.intellij.plugins.grav.errorreporting;
import com.intellij.openapi.diagnostic.Attachment;
import com.intellij.util.ExceptionUtil;
import java.util.Collections;
import java.util.List;
/**
* Copy of the deprecated {@code com.intellij.errorreport.bean.ErrorBean} class of IntelliJ.
* Kept for... | mit |
selsamman/persistor | lib/index.js | 5300 | /* Copyright 2012-2015 Sam Elsamman
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,
distribut... | mit |
calgamo/di | sample/autoloaders/module_autoloader.php | 491 | <?php
spl_autoload_register(function ($class)
{
switch($class){
case 'Sample\MobileContainerModule':
require __DIR__ . '/../modules/MobileContainerModule.php';
break;
case 'Sample\ImmobileContainerModule':
require __DIR__ . '/../modules/ImmobileContainerModule.php... | mit |
ymqy/LearnBook | Webpack/Configuration/output/chunkFilename/c.js | 29 | console.log('c module here'); | mit |
fgrid/iso20022 | RejectedReason8Choice.go | 598 | package iso20022
// Choice of formats for the reason of a rejected status.
type RejectedReason8Choice struct {
// Indicates that there is no reason available or to report.
NoSpecifiedReason *NoReasonCode `xml:"NoSpcfdRsn"`
// Reason for the rejected status.
Reason []*RejectedReason7Choice `xml:"Rsn"`
}
func (r ... | mit |
akyker20/Slogo_IDE | src/commandParsing/floatCommandParsing/Constant.java | 688 | package commandParsing.floatCommandParsing;
import java.util.Iterator;
import java.util.Queue;
import workspaceState.WorkspaceState;
import commandParsing.CommandParser;
import commandParsing.exceptions.SLOGOException;
import drawableobject.DrawableObject;
/**
* This parses constants.
*
* @author Steve Kuznetsov
... | mit |
criggil/SimpleWebProject | SWP.Backend/Areas/HelpPage/ModelDescriptions/CollectionModelDescription.cs | 198 | namespace SWP.Backend.Areas.HelpPage.ModelDescriptions
{
public class CollectionModelDescription : ModelDescription
{
public ModelDescription ElementDescription { get; set; }
}
} | mit |
tfulmer1/school | CSC201/U1_Java_Programming_Fulmer_Thomas/U1_Problem2.java | 1100 |
/*
Calculates the chapter and question number for pseudo-randomly asigned book question
Thomas Fulmer (lost)
tdf2519@email.vccs.edu
Last modified: 20 Aug 2016
*/
import java.util.Scanner;
public class U1_Problem2
{
public static final int studentID = 6822048;
public static void main(String[] args)
{
Scanner k... | mit |
eldarGIT/admin-panel-angJS | app/js/app.js | 475 | 'use strict';
var adminApp = angular.module('admin', [
'ngRoute',
'adminController',
'adminService',
]);
adminApp.config(['$routeProvider', function($routeProvider) {
$routeProvider
.when('/list', {templateUrl: 'partials/list.html', controller: 'ListCtrl'})
.when('/new', {templateUrl: 'partials/edit.html... | mit |
FinalCondom/bike_pc_lz | UI/menus.php | 3582 | <?php
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
require_once "../BLL/userManager.php";
include_once "../BLL/changeLanguage.php";
$userManager = new UserManager();
//this file display all the menus
?>
<nav class="amber accent-3" role="navigation">
<div class=... | mit |
etherisc/flightDelay | util/scanchain.js | 930 | #!/usr/bin/env node
/**
* scan chain for contract creations.
*/
const Web3 = require('web3');
const log = require('./logger');
const web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8545'));
const scanChain = {};
scanChain.contracts = [];
const getBlockTxR = bn =>
web3.eth.getBlock(bn, true)... | mit |
jcschultz/doggy-door | sfdc/src/aura/DDA_RecentDataDispatcherComponent/DDA_RecentDataDispatcherComponentHelper.js | 5648 | ({
DAYS : ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
EVENT_TYPE_ERROR : 'ERROR',
EVENT_SHOW : 'SHOW',
handleScriptsLoaded : function(component, event, helper) {
var action = component.get('c.getActivitiesByDateRange');
var endOfToday = moment().endOf('day').valueOf();
... | mit |
RBC1B/ROMS | src/main/java/uk/org/rbc1b/roms/db/circuit/HibernateCircuitDao.java | 2254 | /*
* The MIT License
*
* Copyright 2013 RBC1B.
*
* 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, m... | mit |
ofek/hatch | backend/src/hatchling/metadata/plugin/hooks.py | 149 | from ...plugin import hookimpl
from ..custom import CustomMetadataHook
@hookimpl
def hatch_register_metadata_hook():
return CustomMetadataHook
| mit |
CodeWall-EStudio/SWall | client/android/TRA3/generated/com/codewalle/tra/widget/ExpiredActivitiesFragment_.java | 2283 | //
// DO NOT EDIT THIS FILE, IT HAS BEEN GENERATED USING AndroidAnnotations 3.0.1.
//
package com.codewalle.tra.widget;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.codewalle.tra.R.layout;
import org.androidannotations.api.view.HasV... | mit |
ZhangMYihua/skyprep_rubySDK | spec/spec_helper.rb | 85 | $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'skyprep_rubySDK'
| mit |
wipu/iwant | essential/iwant-core/src/main/java/org/fluentjava/iwant/core/NextPhase.java | 1035 | package org.fluentjava.iwant.core;
public class NextPhase {
private final Target<JavaClasses> classes;
private final String className;
public static NextPhaseBuilder at(Target<JavaClasses> classes) {
return new NextPhaseBuilder(classes);
}
public static class NextPhaseBuilder {
private final Target<JavaCl... | mit |
letuananh/pysemcor | pysemcor/semcorxml.py | 14579 | # -*- coding: utf-8 -*-
'''
Semcor data in XML format
Latest version can be found at https://github.com/letuananh/pysemcor
References:
Python documentation:
https://docs.python.org/
PEP 0008 - Style Guide for Python Code
https://www.python.org/dev/peps/pep-0008/
PEP 257 - Python Docstring ... | mit |
anroots/pgca | src/Anroots/Pgca/Rule/Message/NoProfanity.php | 1577 | <?php
namespace Anroots\Pgca\Rule\Message;
use Anroots\Pgca\Git\CommitInterface;
use Anroots\Pgca\Rule\AbstractRule;
use Anroots\Pgca\Rule\ViolationFactoryInterface;
use swearjar\Tester;
/**
* {@inheritdoc}
*/
class NoProfanity extends AbstractRule
{
/**
* @var Tester
*/
private $profanityChecker... | mit |
tbian7/pst | cracking_ref/Chapter 8/Question8_8/Player.java | 397 | package Question8_8;
public class Player {
private Color color;
public Player(Color c) {
color = c;
}
public int getScore() {
return Game.getInstance().getBoard().getScoreForColor(color);
}
public boolean playPiece(int row, int column) {
return Game.getInstance().getBoard().placeColor(row,... | mit |
arunchaganty/contextual-comparatives | applesoranges/cc/migrations/0009_auto_20160217_2215.py | 3533 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.contrib.postgres.fields
class Migration(migrations.Migration):
dependencies = [
('cc', '0008_numericexpressionresponse_approval'),
]
operations = [
migrations.AlterFiel... | mit |
WikiEducationFoundation/Wiki-Playlist | app/react/utils/Popup.js | 849 | export default function PopupCenter(url, title, w, h) {
var dualScreenLeft, dualScreenTop, height, left, newWindow, top, width;
dualScreenLeft = window.screenLeft !== void 0 ? window.screenLeft : screen.left;
dualScreenTop = window.screenTop !== void 0 ? window.screenTop : screen.top;
width = window.innerWidth ... | mit |
sinned/forwardly | public/dist/application.js | 38590 | 'use strict';
// Init the application configuration module for AngularJS application
var ApplicationConfiguration = (function() {
// Init module configuration options
var applicationModuleName = 'forwardly';
var applicationModuleVendorDependencies = ['ngResource', 'ngCookies', 'ngAnimate', 'ngTouch', 'ngSanitize... | mit |
blockstack/opendig | src/auth/protocolEchoDetection.ts | 2404 | /**
* This logic is in a separate file with no dependencies so that it can be
* loaded and executed as soon as possible to fulfill the purpose of the protocol
* detection technique. The effectiveness of this is obviously subject to how web
* apps bundle/consume the blockstack.js lib.
*/
const GLOBAL_DETECTIO... | mit |
jfernandez89/Ionic-template | myApp/www/js/landing/landing.routes.js | 671 | /**
* @Date: 09/02/2016
* @author: Javier Fernandez - jfernandez
*
* Landing Routes
* @param {type} angular
* @returns {angular.module}
*/
(function () {
define(['./landing.module', 'text!./landing.html'], function (module, landingTemplate) {
'use strict';
module.config(config);
config.$inject = ... | mit |
rjmccluskey/roomies | server/app/models/expense.rb | 638 | class Expense < ActiveRecord::Base
attr_accessor :amount_string
before_save :set_amount
belongs_to :user
belongs_to :house
has_many :charges
validates_presence_of :note, :amount_string, :user_id, :house_id
validates_format_of :amount_string, with: /\A[$]?[0-9]{1,3}(?:,?[0-9]{3})*(?:\.[0-9]{1,2})?\z/, m... | mit |
petems/riot_api | lib/riot_api/model/champion_stat.rb | 262 | require 'riot_api/model/statistic'
module RiotApi
module Model
class ChampionStat < Base
attribute :id, Integer
attribute :name, String
attribute :stats, Array[RiotApi::Model::Statistic]
alias :statistics :stats
end
end
end
| mit |
kinkinweb/lhvb | vendor/sonata-project/ecommerce/src/OrderBundle/DependencyInjection/SonataOrderExtension.php | 5060 | <?php
/*
* This file is part of the Sonata package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\OrderBundle\DependencyInjection;
use Sonata\EasyExtend... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/gsap/1.9.8/plugins/BezierPlugin.min.js | 129 | version https://git-lfs.github.com/spec/v1
oid sha256:28e77db835108e7a406019be04742ffc0fbc33b2d0edee1f63d020eb16b16f70
size 8033
| mit |
takuya-takeuchi/Demo | Xamarin.Forms.Portable4/Xamarin.Forms.Portable4/Xamarin.Forms.Portable4.Droid/Resources/Resource.Designer.cs | 242381 | #pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// このコードはツールによって生成されました。
// ランタイム バージョン:4.0.30319.42000
//
// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、
// コードが再生成されるときに損失したりします。
// </auto-generated>
//-----------------------------... | mit |
GGAlanSmithee/phaser | v3/src/tween/Timeline.js | 848 | var Class = require('../utils/Class');
var TweenBuilder = require('./TweenBuilder');
var Timeline = new Class({
initialize:
function Timeline (manager)
{
this.manager = manager;
this.tweens = [];
this.paused = true;
this.callbacks = {
onStart: { callback: nu... | mit |
dicksonlabs/mushroom_sightings | test/unit/extension_test.rb | 4999 | # encoding: utf-8
require File.expand_path(File.dirname(__FILE__) + '/../boot.rb')
class ExtensionTest < UnitTestCase
##############################################################################
#
# :section: Symbol Tests
#
##############################################################################
#... | mit |
ampatspell/ember-cli-documents | addon/document/attachments/internal/attachment.js | 1234 | import Base from '../../internal/-base';
export default class Attachment extends Base {
static get type() {
return 'attachment';
}
constructor(store, attachments, content) {
super(store, attachments);
content.attachment = this;
this.content = content;
}
_createModel() {
return this.sto... | mit |
tmc/grpcutil | protoc-gen-tstypes/testdata/output/wo-namespace/grpc.testing.auth_sample.d.ts | 585 | // Code generated by protoc-gen-tstypes. DO NOT EDIT.
// Unary request.
export interface Request {
// Whether Response should include username.
fill_username?: boolean;
// Whether Response should include OAuth scope.
fill_oauth_scope?: boolean;
}
// Unary response, as configured by the request.
export... | mit |
gesh123/MyLibrary | src/client/app/poker/connection/protocol/generated/serializers/GameWinnerHandDataSerializer.ts | 3210 |
import { ArrayBufferBuilder } from "../../../../utils/ArrayBufferBuilder";
import { BitsReader } from "../../../../utils/BitsReader";
import { SerializerUtils } from "../../../../utils/SerializerUtils";
import { GameWinnerHandData } from "../data/GameWinnerHandData";
import { BinaryCard } from "../../core/data/BinaryC... | mit |
kenmoore/sketch-artboard | Artboard.sketchplugin/Contents/Sketch/Previous Artboard.js | 4656 | // Previous Artboard
// Move the previous artboard into view:
// - maintains vertical scroll offset between artboards
// - zooms to width of the new artboard
// - supports random access (select artboard in layers list and invoke Next Artboard)
var view;
var scrollOrigin;
var zoomValue;
var viewportWidth;
var viewpo... | mit |
soli/chromium-vim | content_scripts/utils.js | 10495 | function isValidB64(a) {
try {
window.atob(a);
} catch(e) {
return false;
}
return true;
}
function reverseImagePost(url) {
return '<html><head><title>cVim reverse image search</title></head><body><form id="f" method="POST" action="https://www.google.com/searchbyimage/upload" enctype="multipart/form-... | mit |
krllus/vitrine-primavera | app/components/landing/landing.component.js | 682 | angular
.module('landing')
.config(LandingConfig)
.controller('LandingController', LandingController)
.component('landing', {
templateUrl:'components/landing/landing.template.html',
controller: 'LandingController'
});
function LandingController($firebaseObject, $firebaseArray){
var ctrl = this;
ctrl.$o... | mit |
soomtong/blititor | module/mailgun/lib/middleware.js | 194 | var winston = require('winston');
function exposeLocals(req, res, next) {
winston.verbose('bind locals in mailgun: { }');
next();
}
module.exports = {
exposeLocals: exposeLocals
}; | mit |
nameofname/sleepDiary | application/controllers/Login.php | 3147 | <?php
/**
* Created by JetBrains PhpStorm.
* User: ronald
* Date: 6/17/13
* Time: 8:00 PM
* To change this template use File | Settings | File Templates.
*/
require(__DIR__ . '/Auth_Controller.php');
use Helpers\SessionInstance;
class Login extends Auth_Controller {
public function __construct() {
... | mit |
lucastheis/django-publications | publications/models/customlink.py | 562 | __license__ = 'MIT License <http://www.opensource.org/licenses/mit-license.php>'
__author__ = 'Lucas Theis <lucas@theis.io>'
__docformat__ = 'epytext'
from django.db import models
from publications.models import Publication
class CustomLink(models.Model):
class Meta:
app_label = 'publications'
publication = mode... | mit |
stas-vilchik/bdd-ml | data/6623.js | 143 | {
try {
originalRemoveChild.call(parent, child);
} catch (ex) {
if (!(parent instanceof OriginalDocumentFragment)) throw ex;
}
}
| mit |
mustaphakd/Document-Splitter | WpfApplication1/GradeSplitter.cs | 20836 | using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml.Wordprocessing;
using OpenXmlPowerTools;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using WoroArch.Infrastructure.Desktop;
using System.... | mit |
isukces/isukces.code | isukces.code/Features/FeatureImplementers/GetHashCodeExpressionData.cs | 1200 | using iSukces.Code.AutoCode;
namespace iSukces.Code.FeatureImplementers
{
public struct GetHashCodeExpressionData
{
public GetHashCodeExpressionData(CsExpression expression, int? min = null, int? max = null)
{
Expression = expression;
Min = min;
Max ... | mit |
chrisblock/Bumblebee | src/Bumblebee.IntegrationTests/Implementation/DateFieldTests.cs | 1070 | using System;
using Bumblebee.Extensions;
using Bumblebee.IntegrationTests.Shared;
using Bumblebee.IntegrationTests.Shared.Hosting;
using Bumblebee.IntegrationTests.Shared.Pages;
using Bumblebee.Setup;
using FluentAssertions;
using NUnit.Framework;
namespace Bumblebee.IntegrationTests.Implementation
{
// ReSharpe... | mit |
voidabhi/reddy | Logger.php | 3078 | <?php
class GhLoggerException extends RuntimeException
{
}
class GhLogger
{
const ERROR_LEVEL = 255;
const DEBUG = 1;
const NOTICE = 2;
const WARNING = 4;
const ERROR = 8;
static protected $instance;
static protected $enabled = false;
static protected $filename;
protected $file;
... | mit |
FTB-Gamepedia/OreDict | special/OreDictList.php | 7771 | <?php
/**
* OreDictList special page file
*
* @file
* @ingroup Extensions
* @version 1.0.1
* @author Jinbobo <paullee05149745@gmail.com>
* @license
*/
class OreDictList extends SpecialPage {
protected $opts;
public function __construct() {
parent::__construct('OreDictList');
}
/**
* Return the group ... | mit |
slavatox/lampa | app/js/app.js | 2580 | 'use strict';
// Declare app level module which depends on filters, and services
angular.module('myApp', [
'ngRoute',
'myApp.filters',
'myApp.services',
'myApp.directives',
'myApp.controllers'
]).
config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/О кафедре', {templateU... | mit |
ahmelessawy/Hospital-Dashboard | Server/app/routes/rating.js | 551 | 'use strict';
const router = require('express').Router();
const Model = require('../models/rating');
router.get('/', function (req, res) {
Model.find({}, (err, data) => {
if (err) throw err;
res.json(data);
})
});
router.get('/:id', function (req, res) {
Model.findById(req.params.id, (err, data) => {
if (e... | mit |
skyrideraj/intern_corner | php/classes/Registration.php | 4432 |
<?php
/**
*
*/
require_once("/phpmailer/class.phpmailer.php");
require_once __DIR__.'/../includes/initialize_database.php';
class Registration
{
var $username;
var $full_name;
var $email;
var $account_type;
var $activation_code;
var $hashed_password;
function __construct($username,$full_name,$email,$passwor... | mit |
MugFoundation/versioneer | cli/versioneer_gui/App.xaml.cs | 330 | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace versioneer_gui
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
... | mit |
tarora2014/image_scale_api | app/controllers/api/v1/scales_controller.rb | 1162 | module Api
module V1
class ScalesController < ApplicationController
def index
image_dimension = params['image_dimensions'].gsub(/"|\[|\]/, '').split(",")
bounding_box = params['bounding_box'].gsub(/"|\[|\]/, '').split(",")
bound_w = bounding_box[0].to_i
bound_h = bounding_box[1].to_i
... | mit |
DoooReyn/Chromatic4Cpp-Redesign | tests/TestCase_HSV.hpp | 343 | //
// TestCase_HSV.hpp
// SomethingMustBeWrong
//
// Created by Reyn-Mac on 2017/2/26.
// Copyright © 2017年 Reyn-Mac. All rights reserved.
//
#ifndef TestCase_HSV_hpp
#define TestCase_HSV_hpp
void TestCase1_HSV_Constructor();
void TestCase2_HSV_Frame();
void TestCase3_HSV_AsRGB();
void TestCase_HSV();
#endif /* ... | mit |
matudelatower/logiautos | src/CuestionariosBundle/Entity/EncuestaTipoPregunta.php | 4588 | <?php
namespace CuestionariosBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* EncuestaTipoPregunta
*
* @ORM\Table(name="encuesta_tipos_preguntas")
* @ORM\Entity
*/
class EncuestaTipoPregunta {
/**
* @var integer
*
* @ORM\Column(name="id", type="int... | mit |
fnxjs/fnx | src/api/mapOf.ts | 1336 | import { descriptionTypes, Diff, Disposable, MapOfDescriptor, Middleware } from '../core'
/**
* Describes a map of the given type.
* https://fnx.js.org/docs/api/mapOf.html
* @param kind The type of items this map contains
*/
export function mapOf<T>(kind: T) {
if (arguments.length === 0) {
throw new Error()
... | mit |
builtio-contentstack/contentstack-express | test/config/all.js | 263 | module.exports = exports = {
port: '8080',
theme: 'basic',
languages: [
{
'code': 'es-es',
'relative_url_prefix': '/'
}
],
cache: false,
contentstack: {
api_key: 'dummy_key',
access_token: 'dummy_token'
}
}; | mit |
clearvox/constraints-date-php | src/Constraints/Year/SpecificYearConstraint.php | 858 | <?php
namespace Clearvox\DateConstraints\Constraints\Year;
use DateTime;
class SpecificYearConstraint implements YearConstraintInterface
{
/**
* @var mixed[]
*/
protected $years = [];
public function __construct($year)
{
$this->addYear($year);
}
public function addYear($yea... | mit |
adamholdenyall/SpriterDotNet | SpriterDotNet.Unity/Assets/SpriterDotNet/SpriterDotNetBehaviour.cs | 3318 | // Copyright (c) 2015 The original author or authors
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
using SpriterDotNet;
using System;
using System.Linq;
using System.Collections.Generic;
using UnityEngine;
namespace SpriterDotNetUnity
{
... | mit |
opennode/waldur-homeport | src/resource/support/styles.tsx | 597 | export const levelOptions = [
{
itemStyle: {
normal: {
borderColor: '#777',
borderWidth: 0,
gapWidth: 1,
},
},
upperLabel: {
normal: {
show: false,
},
},
},
{
itemStyle: {
normal: {
borderColor: '#555',
borderWidth: ... | mit |
Tapjoy/slugforge | lib/slugforge/helper/config.rb | 2008 | module Slugforge
module Helper
module Config
def self.included(base)
base.class_option :'aws-access-key-id', :type => :string, :aliases => '-I', :group => :config,
:desc => 'The AWS Access ID to use for hosts and buckets, unless overridden'
base.class_option :'aws-secret-key', :typ... | mit |
eldafito/iPatBot | src/main/java/BotThread.java | 990 | package main.java;
import java.util.List;
import java.util.Random;
import de.raysha.lib.telegram.bot.api.BotAPI;
import de.raysha.lib.telegram.bot.api.TelegramBot;
import de.raysha.lib.telegram.bot.api.exception.BotException;
import de.raysha.lib.telegram.bot.api.model.ChatId;
import de.raysha.lib.telegram.bot.api.mo... | mit |
miniwebkit/miniwebkit_blink | gen/blink/bindings/core/v8/V8ANGLEInstancedArrays.cpp | 10112 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#include "V8ANGLEInstancedArrays.h"
#include "bindings/... | mit |
DeborahK/angular.io | public/docs/_examples/upgrade/ts/ng2_initial/app/js/app.module.ts | 1499 | /// <reference path="../../typings/angularjs/angular.d.ts" />
/// <reference path="../../typings/angularjs/angular-resource.d.ts" />
/// <reference path="../../typings/angularjs/angular-route.d.ts" />
// #docregion adapter-import
import {UpgradeAdapter} from 'angular2/upgrade';
// #enddocregion adapter-import
// #docr... | mit |
ilangal-amd/CodeXL | CodeXL/Components/PowerProfiling/MiddleTier/AMDTPowerProfilingMidTier/src/PowerProfilerBL.cpp | 34220 | //==================================================================================
// Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file PowerProfilerBL.cpp
///
//==================================================================================
... | mit |
henrytran120282/platform | config/module.php | 116 | <?php
return [
'modules' => [
'ContentManager'=>'contentManager.index',
],
'backend'=>'admin'
]; | mit |
gyphie/swfupload | samples/demos/resizedemo/index.php | 2976 | <?php
session_start();
$_SESSION["file_info"] = array();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>SWFUpload Demos - Resize Demo</title>
<link href="../css/default.css"... | mit |
caracolrec/caracol | public/scripts/services/recommendations.js | 1668 | 'use strict';
angular.module('caracolApp.services')
.factory('RecsService', ['$q', 'FetchService', function($q, FetchService) {
var service = {
// store oauth token in here
timeOfLastFetch: null,
maxPageVisited: 0,
currentRecs: [],
lastRecId: 0,
batchSize: 10,
getRecs: function(currentPag... | mit |
hogelog/batch-san-console | app/models/batch_config.rb | 102 | class BatchConfig < Settingslogic
source "#{Rails.root}/config/batch.yml"
namespace Rails.env
end
| mit |
mplacona/TwilioParty | TwilioParty/Properties/AssemblyInfo.cs | 1353 | 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("Twi... | mit |
accentation/resource-server | src/main/java/com/accenture/banking/resource/dto/OfficeDto.java | 786 | /**
*
*/
package com.accenture.banking.resource.dto;
/**
* DTO class to build Office JSON REST response
* @author j.garcia.sanchez
*
*/
public class OfficeDto {
private Long id;
private String address;
private String phone;
/**
* @return the id
*/
public Long getId() {
return id;
}
/**
* @param... | mit |
jh-bate/hackathon_sms | parse/accountDataText.go | 1208 | package parse
import (
"log"
"strings"
)
const (
//Account
ACCT_ADD_VEIWER = "ACC_V="
ACCT_ADD_UPLOADER = "ACC_U="
ACCT_NAME = "ACC_N="
)
/*
* Text based message data the contains values we can parse
*/
type AccountData struct {
text, date string
}
func NewAccountDataFromText(text, date string) *... | mit |
boomcms/boom-core | src/views/boomcms/editor/conflict.php | 470 | <p><?= trans('boomcms::editor.conflict.exists') ?></p>
<p><?= trans('boomcms::editor.conflict.options') ?></p>
<div class="buttons">
<?= $button(null, 'conflict-reload', ['id' => 'b-conflict-reload', 'class' => 'b-button-textonly']) ?>
<?= $button(null, 'conflict-overwrite', ['id' => 'b-conflict-overwrite', 'c... | mit |
Mariogs37/Rankme | lib/rankme/stats.rb | 1794 | module Rankme
module Stats
# Modules (Math for access to E)
include Math
extend self
# Constants
E = Math::E
PI = Math::PI
BETA = 25.0 / 6.0
GAMMA = 25.0 / 300.0
EPSILON = 0.08
A1 = 0.254829592
A2 = -0.284496736
A3 = 1.421413741
A4 = -1.453152027
A5 = 1.061... | mit |
GiGurra/leavu3 | src/main/scala/se/gigurra/leavu3/gfx/Colors.scala | 1050 | package se.gigurra.leavu3.gfx
import com.badlogic.gdx.graphics.Color
trait Colors {
def CLEAR = Color.CLEAR
def BLACK = Color.BLACK
def WHITE = Color.WHITE
def LIGHT_GRAY = Color.LIGHT_GRAY
def GRAY = Color.GRAY
def DARK_GRAY = Color.DARK_GRAY
def BLUE = Color.BLUE
def NAVY = Color.NAVY
... | mit |
yassinehaddioui/event-resa-php | src/Repositories/EventRepository.php | 2876 | <?php
namespace ResaSystem\Repositories;
use MongoDB\Driver\Cursor;
use ResaSystem\Exceptions\SaveFailedException;
use ResaSystem\Models\Event;
class EventRepository extends BaseRepository
{
const COLLECTION_NAME = 'events';
const DB_NAME = 'reservation-service';
const ID_PREFIX = 'e_';
/**
... | mit |
dirtyfilthy/dirtyfilthy-bouncycastle | net/dirtyfilthy/bouncycastle/asn1/pkcs/CertificationRequest.java | 2488 | package net.dirtyfilthy.bouncycastle.asn1.pkcs;
import net.dirtyfilthy.bouncycastle.asn1.ASN1Encodable;
import net.dirtyfilthy.bouncycastle.asn1.ASN1EncodableVector;
import net.dirtyfilthy.bouncycastle.asn1.ASN1Sequence;
import net.dirtyfilthy.bouncycastle.asn1.DERBitString;
import net.dirtyfilthy.bouncycastle.asn1.DE... | mit |
drdrwhite/gin | src/test/resources/QuickTriangleTest.java | 1372 |
import static org.junit.Assert.*;
public class QuickTriangleTest {
private void checkClassification(int[][] triangles, int expectedResult) {
for (int[] triangle: triangles) {
int triangleType = QuickTriangle.classifyTriangle(triangle[0], triangle[1], triangle[2]);
assertEquals(exp... | mit |
franciscop/modern-editor | bower_components/picnic/Gruntfile.js | 1929 | var fs = require('fs');
module.exports = function (grunt) {
grunt.initConfig({
jade: {
compile: {
files: [{
cwd: "web", src: "**/*.html.jade", dest: ".", expand: true, ext: ".html"
}]
}
},
concat: {
options: { separator: '\n\n' },
basic_and_extras: {
... | mit |
zzzprojects/Z.ExtensionMethods | test/Z.Core.Test/System.Decimal/Decimal.ToMoney.cs | 1006 | // Description: C# Extension Methods | Enhance the .NET Framework and .NET Core with over 1000 extension methods.
// Website & Documentation: https://csharp-extension.com/
// Issues: https://github.com/zzzprojects/Z.ExtensionMethods/issues
// License (MIT): https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/... | mit |
apps-libX/jwt-auth | src/JwtAuth/DataTransferObjects/SuccessResponse.php | 481 | <?php
/**
* Created by anonymous on 06/01/16 5:03.
*/
namespace Onderdelen\JwtAuth\DataTransferObjects;
/**
* Class SuccessResponse
* @package Onderdelen\JwtAuth\DataTransferObjects
*/
class SuccessResponse extends BaseResponse
{
/**
* @param $message
* @param array|null $payload
*/... | mit |
garysoed/gs-tools | src/random/random.ts | 544 | import {RandomSeed} from './seed/random-seed';
/**
* Generates random values.
*
* @typeParam T - Type of generated values.
* @thModule random
*/
export class Random {
constructor(
private readonly seed: RandomSeed,
) { }
iterable(): Iterable<number> {
return (function*(random: Random): Generator<... | mit |
jrissler/wafflemix | app/helpers/wafflemix/users_helper.rb | 48 | module Wafflemix
module UsersHelper
end
end
| mit |
lightSAML/lightSAML | tests/LightSaml/Tests/Provider/Attribute/FixedAttributeValueProviderTest.php | 990 | <?php
namespace LightSaml\Tests\Provider\Attribute;
use LightSaml\Context\Profile\AssertionContext;
use LightSaml\Model\Assertion\Attribute;
use LightSaml\Provider\Attribute\AttributeValueProviderInterface;
use LightSaml\Provider\Attribute\FixedAttributeValueProvider;
use LightSaml\Tests\BaseTestCase;
class FixedAtt... | mit |
vitorbarbosa19/ziro-online | src/pages/jota-treis.js | 144 | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Jota Treis' />
)
| mit |
Azure/azure-sdk-for-ruby | management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_patch.rb | 3409 | # encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::IotCentral::Mgmt::V2018_09_01
module Models
#
# The description of the IoT Central application.
#
class AppPatch
incl... | mit |
Ixonal/resume | src/models/Business.ts | 206 | import { DataWrapper } from "./DataWrapper";
export class Business extends DataWrapper {
constructor(props: any) {
super(props);
}
id: string;
name: string;
city: string;
state: string;
}
| mit |
AndersenJ/Vim | src/mode/modeNormal.ts | 3107 | import * as _ from 'lodash';
import * as vscode from 'vscode';
import {ModeName, Mode} from './mode';
import {showCmdLine} from './../cmd_line/main';
import {Caret} from './../motion/motion';
export default class NormalMode extends Mode {
private _caret : Caret;
private get caret() : Caret {
this._caret =... | mit |
canal-io/canal-mongo | lib/collection/index.ts | 1952 | import {resolve} from "url";
/**
*
* Created by Ryu on 2016/1/28.
*/
'use strict';
import * as co from 'co';
import {Db, Collection, DbCollectionOptions} from 'mongodb';
import {InsertOneWriteOpResult, CollectionInsertOneOptions} from "mongodb";
import {InsertWriteOpResult, CollectionInsertManyOptions} from "mongo... | mit |
bondarenkod/pf-arm-deploy-error | playerframework/Universal.Js.Samples/Microsoft.PlayerFramework.Samples.Windows/pages/captions/ttml/ttml.js | 1207 | (function () {
"use strict";
var mediaPlayer = null;
WinJS.UI.Pages.define("/pages/captions/ttml/ttml.html", {
// This function is called whenever a user navigates to this page.
// It populates the page with data and initializes the media player control.
ready: function (element, ... | mit |
ignaciocases/hermeneumatics | node_modules/scala-node/main/target/streams/compile/externalDependencyClasspath/$global/package-js/extracted-jars/scalajs-library_2.10-0.4.0.jar--29fb2f8b/scala/Function2$class.js | 28124 | ScalaJS.impls.scala_Function2$class__curried__Lscala_Function2__Lscala_Function1 = (function($$this) {
return new ScalaJS.c.scala_Function2$$anonfun$curried$1().init___Lscala_Function2($$this)
});
ScalaJS.impls.scala_Function2$class__tupled__Lscala_Function2__Lscala_Function1 = (function($$this) {
return new ScalaJ... | mit |
CuratedCourses/server | public/js/filter.js | 1871 | $(function() {
$('#clear-filter').hide();
applyFilters();
$('#clear-filter').click( function() {
var filters = $("#filters");
filters.empty();
applyFilters();
});
$('.add-filter').click( function() {
var e = $(this);
var property = e.attr('data-filter-property');
var value = e... | mit |
memorious/awscement | setup.py | 1670 | # MIT License
#
# Copyright (c) 2017 memorious
#
# 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, pu... | mit |