repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
abingham/rosalind
csharp/rosalind_test/CircularBufferTest.cs
3557
using NUnit.Framework; using System; using System.Diagnostics.Contracts; using rosalind; namespace rosalind_test { [TestFixture()] public class CircularBufferTest { [Test()] public void TestInitialState() { int cap = 10; var b = new CircularBuffer<int> (ca...
mit
boully/comake
setup.py
905
from setuptools import setup, find_packages setup( name = 'comake', packages=find_packages(), # this must be the same as the name above version = 'v0.1.6', description = 'A c++ build tool', author = 'liaosiwei', author_email = 'liaosiwei@163.com', url = 'https://github.com/boully/comake', ...
mit
linq2db/linq2db
Tests/Tests.T4/Databases/Access.generated.cs
34502
//--------------------------------------------------------------------------------------------------- // <auto-generated> // This code was generated by T4Model template for T4 (https://github.com/linq2db/linq2db). // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. /...
mit
zapplebee/phpNetsh
api.php
4059
<?php //api.php header('Content-Type: application/json'); define('ns', "phpNetsh_"); function ob_catch($function){ //start the buffer and call the original funciton. if it has a return value, return that. otherwise return buffer ob_start(); $originalReturn = call_user_func($function); $r = ob_get_clean(); i...
mit
AbbyJonesDev/PreschoolOnRails
app/models/newsletter.rb
669
class Newsletter < ActiveRecord::Base has_attached_file :file validates_attachment :file, :presence => true, :content_type => { :content_type => "application/pdf"} validates :date, :presence => true def self.newest self.order(date: :desc).first end def self.for_year (sta...
mit
howardjones/network-weathermap
editor-resources/cacti-pick.js
4638
"use strict"; /*global jQuery:false */ /*global rra_path:false */ /*global base_url:false */ /*global overlib:false */ /*global aggregate:false */ /*global selected_host:false */ function getUrlParameter(sParam) { var sPageURL = decodeURIComponent(window.location.search.substring(1)), sURLVariables = sPag...
mit
sschloesser/foodBlog
node_modules/poet/test/helpers.test.js
6289
var Poet = require('../lib/poet'), express = require('express'), chai = require('chai'), should = chai.should(), expect = chai.expect; describe('helpers.getTags()', function () { it('should return all tags, sorted and unique', function (done) { setup(function (poet) { var tags = poet.helpers.getT...
mit
ishani/InSiDe
SiDcore/SiDComponent.cs
3084
/** * SiDcore ~ a C# class library for creating and manipulating data for Jason Rohrer's Sleep Is Death (http://sleepisdeath.net/) * * Written by Harry Denholm (Ishani) April 2010 * http://www.ishani.org/ * */ using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Draw...
mit
jschoolcraft/urlagg
vendor/plugins/typus/test/functional/admin/resources_controller_posts_views_test.rb
3451
require "test/test_helper" class Admin::PostsControllerTest < ActionController::TestCase context "Index" do setup do get :index end should "render index and validates_presence_of_custom_partials" do assert_match "posts#_index.html.erb", @response.body end should "render_index_and_...
mit
cpoff/static-charge
routes/index.js
1685
var express = require('express'); var router = express.Router(); var fs = require('fs'); var marked = require('marked'); var moment = require('moment'); moment().format(); var postsDir = __dirname + '/../posts/'; fs.readdir(postsDir, function(error, directoryContents) { if (error) { throw new Error(error); }...
mit
dustinmoris/Lanem
Lanem/ErrorFilters/NoErrorFilter.cs
205
using System; namespace Lanem.ErrorFilters { public class NoErrorFilter : IErrorFilter { public bool SkipError(Exception exception) { return false; } } }
mit
tang85718/quickframework
src/main/java/com/lidroid/xutils/HttpUtils.java
14806
/* * Copyright (c) 2013. wyouflf (wyouflf@gmail.com) * * 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 applicabl...
mit
twar59/ember-jquery-datatables
config/environment.js
880
/* jshint node: true */ module.exports = function(environment) { var ENV = { environment: environment, baseURL: '/', locationType: 'auto', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build // e.g. 'with-controller': true } },...
mit
SoftMetalicana/RogueMetalicana
RogueMetalicana/RogueMetalicana/UnitsInterfaces/IFightable.cs
364
namespace RogueMetalicana.UnitsInterfaces { /// <summary> /// For the units that are going to battle. /// </summary> public interface IFightable { double Health { get; set; } int Defense { get; set; } int Damage { get; set; } bool IsAlive { get; set; } void...
mit
xylsxyls/xueyelingshuang
src/QSQLite/QSQLite/src/QSQLitePrepareStatement.cpp
2338
#include "QSQLitePrepareStatement.h" #include <QSqlQuery> #include <QVariant> #include <QSqlDatabase> QSQLitePrepareStatement::QSQLitePrepareStatement(QSqlDatabase* dataBase) : m_spSqlQuery(nullptr) { m_spSqlQuery.reset(new QSqlQuery(*dataBase)); } bool QSQLitePrepareStatement::empty() { return m_spSqlQuery == null...
mit
jonathanaraul/donde-quiero2
src/Project/BackBundle/Entity/ContactoRepository.php
748
<?php namespace Project\BackBundle\Entity; use Doctrine\ORM\EntityRepository; /** * ContactoRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class ContactoRepository extends EntityRepository { public function findAllOrderedById() { r...
mit
fgrid/iso20022
InvestmentAccount45.go
2163
package iso20022 // Account between an investor(s) and a fund manager or a fund. The account can contain holdings in any investment fund or investment fund class managed (or distributed) by the fund manager, within the same fund family. type InvestmentAccount45 struct { // Unique and unambiguous identification for t...
mit
kevinly7/jumo
js/logout.js
276
$(document).ready(function(){ $('.logout1').click(function(){ $.ajax({ type: "POST", url: 'logout.php', data:{action:'call_this'}, success:function(html) { // alert(html); } }); }); });
mit
DreamHacks/dreamdota
DreamWarcraft/Build Tools/PackFiles.py
860
import xml.etree.ElementTree as ET import checkmod DEBUG = 0 if DEBUG: XMLPath = '../../Package.xml' EmbedFile = '../../DreamInstaller/Embed.inc' CodeFile = '../../DreamInstaller/Files.inc' else: XMLPath = '../Package.xml' EmbedFile = 'Embed.inc' CodeFile = 'Files.inc' def I...
mit
cosminrentea/gobbler
server/connector/request.go
453
package connector import "github.com/cosminrentea/gobbler/protocol" type Request interface { Subscriber() Subscriber Message() *protocol.Message } type request struct { subscriber Subscriber message *protocol.Message } func NewRequest(s Subscriber, m *protocol.Message) Request { return &request{s, m} } fun...
mit
spaceify/app-lightcontrol
application/www/src/app/app.component.ts
3344
import { ChangeDetectionStrategy, Component, OnInit, HostListener } from '@angular/core'; import { LightControlComponent } from './lightcontrol.component'; import { LightControlService } from './lightcontrol.service'; import {Light} from './light' import {Gateway} from './gateway' //import { TreeModule } from 'angu...
mit
theganyo/usergrid-objects-node
lib/usergrid/usergrid_entity.js
6179
'use strict'; // usergrid entity instance methods var _ = require('lodash'); var ValidationErrors = require('./validation_errors'); var helpers = require('./helpers'); var translateSDKCallback = helpers.translateSDKCallback; var usergrid_sdk = require('usergrid'); var async = require('async'); var inflection = requir...
mit
Camilochemane/Teste2
public/modules/filmes/controllers/filmes.client.controller.js
1714
'use strict'; // Filmes controller angular.module('filmes').controller('FilmesController', ['$scope', '$stateParams', '$location', 'Authentication', 'Filmes', function($scope, $stateParams, $location, Authentication, Filmes) { $scope.authentication = Authentication; // Create new Filme $scope.create = function...
mit
mikeyrichardson/kyburz
app/main/views.py
2027
from flask import render_template, redirect, url_for, flash from flask.ext.login import login_required, current_user from . import main from .forms import EditProfileForm, EditProfileAdminForm from .. import db from ..models import Role, User from ..decorators import admin_required @main.route('/', methods=['GET', 'P...
mit
Koriyama-City/papamama
js/v3.0.0/ol/ol/format/polylineformat.js
10548
goog.provide('ol.format.Polyline'); goog.require('goog.asserts'); goog.require('ol.Feature'); goog.require('ol.format.Feature'); goog.require('ol.format.TextFeature'); goog.require('ol.geom.LineString'); goog.require('ol.geom.flat.inflate'); goog.require('ol.proj'); /** * @constructor * @extends {ol...
mit
begedin/ember-gdriveTodoMVC
app/controllers/login.js
172
import Ember from 'ember'; import LoginControllerMixin from 'ember-gdrive/mixins/login-controller-mixin'; export default Ember.Controller.extend(LoginControllerMixin, {});
mit
joshrendek/sshpot-com
test/models/login_count_test.rb
124
require 'test_helper' class LoginCountTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
mit
akhokhar/eProcurement-Application
includes/admin/js/charts.js
22936
var Charts = function () { //function to initiate jQRangeSlider //There are plenty of options you can set to control the precise looks of your plot. //You can control the ticks on the axes, the legend, the graph type, etc. //For more information, please visit http://www.flotcharts.org/ var run...
mit
ObjectInk/orchard-alias-redirects
Controllers/RedirectController.cs
1102
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Orchard.Alias.Redirects.Services; using Orchard; using Orchard.Localization; using Orchard.Alias.Redirects.Models; using System.Web.Routing; namespace Orchard.Alias.Redirects.Controllers { public class...
mit
Juliaandavid/react-native-alerts
temp/index.android.js
1246
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, Button, View } from 'react-native'; import RNAlerts from 'react-native-alerts' const buttonTest = () => { RNAlerts.testParameters({ ...
mit
kedarmhaswade/impatiently-j8
src/main/java/practice/PointerComparisonTraversal.java
4102
package practice; /** <p> It is possible to <i>iteratively </i>traverse a {@code Binary Tree} by using a comparison of pointers or * references. </p> * This class demonstrates such a traversal. This idea is from Pat Morin's Open Data Structures. * Created by kmhaswade on 6/6/16. */ public class PointerComparisonTr...
mit
sporchia/alttp_vt_randomizer
app/Region/Standard/LightWorld/NorthWest.php
7993
<?php namespace ALttP\Region\Standard\LightWorld; use ALttP\Item; use ALttP\Location; use ALttP\Region; use ALttP\Shop; use ALttP\Support\LocationCollection; use ALttP\Support\ShopCollection; use ALttP\World; /** * North West Light World Region and it's Locations contained within */ class NorthWest extends Region ...
mit
resec/superhero
extends/torndsession/driver.py
1390
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright @ 2014 Mitchell Chu class SessionDriver(object): ''' abstact class for all real session driver implements. ''' def __init__(self, **settings): self.settings = settings def get(self, session_id): raise NotImplementedError()...
mit
olliebennett/helpy
app/controllers/admin/users_controller.rb
3391
# == Schema Information # # Table name: users # # id :integer not null, primary key # login :string # identity_url :string # name :string # admin :boolean default(FALSE) # bio :text # signature ...
mit
shonshampain/StreamRecord
app/src/main/java/com/shonshampain/streamrecorder/events/SeekEvent.java
180
package com.shonshampain.streamrecorder.events; public class SeekEvent { public float percent; public SeekEvent(float percent) { this.percent = percent; } }
mit
Silencer2K/wow-lib-s2k-mounts
LibS2kMounts-1.0.lua
9010
local MAJOR, MINOR = "LibS2kMounts-1.0", 201512051 local lib, oldMinor = LibStub:NewLibrary(MAJOR, MINOR) if not lib then return end S2K_MOUNTS_ID_TO_SPELL = { [6] = 458, [7] = 459, [8] = 468, [9] = 470, [11] = 472, [12] = 578, [13] = 579, [14] = 580, [15] = 581, [17] = 578...
mit
jitendrac/wp-theme-framework
application/extensions/Customize.php
2009
<?php class ThemeControllerExtensionCustomize { protected static $_instance; /** * @return ThemeControllerExtensionCustomize */ public static function getInstance() { if(is_null(self::$_instance)) self::$_instance = new self(); return self::$_instance; } private $_customizeDirectory =...
mit
lbryio/lbry-app
ui/component/viewers/videoViewer/internal/plugins/videojs-mobile-ui/touchOverlay.js
4764
/** * @file touchOverlay.js * Touch UI component */ import videojs from 'video.js'; import window from 'global/window'; const Component = videojs.getComponent('Component'); const dom = videojs.dom || videojs; /** * The `TouchOverlay` is an overlay to capture tap events. * * @extends Component */ class TouchOv...
mit
2fort/touhou-test-jsx
src/js/reducers/index.js
205
import { combineReducers } from 'redux'; import test from './test'; import characters from './characters'; const rootReducer = combineReducers({ test, characters, }); export default rootReducer;
mit
fravello/phpSymfony2
app/cache/dev/twig/d9/28/ba794481d335b138adb4272422d3.php
2508
<?php /* @WebProfiler/Profiler/table.html.twig */ class __TwigTemplate_d928ba794481d335b138adb4272422d3 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } protected...
mit
tommartensen/arion-backend
arionBackend/serializers/__init__.py
49
""" This module contains all serializers. """
mit
venugopalvivek/productreview
src/main/java/com/intuit/vivek/rest/StatusResource.java
541
package com.intuit.vivek.rest; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.stereotype.Component; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.core.Response; /** * Created by vvenugopal on 3/28/17. */ @Component @Path("/status") @A...
mit
Pigeoncraft/Aurora
Project-Aurora/Profiles/Payday 2/GSI/Nodes/WeaponsNode.cs
1294
using Newtonsoft.Json.Linq; using System.Collections.Generic; namespace Aurora.Profiles.Payday_2.GSI.Nodes { public class WeaponsNode : Node { private List<WeaponNode> _Weapons = new List<WeaponNode>(); public int Count { get { return _Weapons.Count; } } public WeaponNode SelectedWeap...
mit
Edimartin/edk-source
edk/LUT/LUT3D.cpp
22850
#include "LUT3D.h" /* Library C++ LUT - Create, save and load LUT (Look Up Table) 3D Copyright 2013 Eduardo Moura Sales Martins (edimartin@gmail.com) 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 Softwa...
mit
wizzardo/Tools
modules/tools-misc/src/main/java/com/wizzardo/tools/misc/UTF8Writer.java
2273
package com.wizzardo.tools.misc; import com.wizzardo.tools.reflection.StringReflection; import java.io.IOException; import java.io.OutputStream; import java.io.Writer; /** * Created by wizzardo on 31.08.15. */ public class UTF8Writer extends Writer { private static final byte[] CHARS_TRUE = new byte[]{'t', 'r'...
mit
Thatsmusic99/HeadsPlus
src/main/java/io/github/thatsmusic99/headsplus/util/DebugManager.java
3136
package io.github.thatsmusic99.headsplus.util; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import java.util.HashMap; import java.util.UUID; public class DebugManager { public static void checkForConditions(String name, HashMap<...
mit
farukca/nimbos
db/migrate/20130817183906_create_nimbos_tasks.rb
620
class CreateNimbosTasks < ActiveRecord::Migration def change create_table :nimbos_tasks do |t| t.integer :todolist_id, null: false t.integer :user_id, null: false t.string :task_text, null: false, limit: 255 t.string :task_code, limit: 50 t.string :i18n_code, limit: 50 ...
mit
ProtonMail/WebClient
packages/components/containers/account/AccountEasySwitchSection.tsx
2671
import { c } from 'ttag'; import { ImportType, PROVIDER_INSTRUCTIONS } from '@proton/shared/lib/interfaces/EasySwitch'; import { useAddresses, useModals } from '../../hooks'; import { ProviderCard } from '../../components'; import SettingsSectionWide from './SettingsSectionWide'; import SettingsParagraph from './Set...
mit
vcsjones/AuthenticodeLint
AuthenticodeLint/Rules/10007-TrustedSignatureRule.cs
917
using AuthenticodeExaminer; namespace AuthenticodeLint.Rules { public class TrustedSignatureRule : IAuthenticodeFileRule { public int RuleId => 10007; public string RuleName => "Valid Signature"; public string ShortDescription => "Validates the file has correct signatures."...
mit
VineRelay/VineRelayStore
server/store/models/orderModel.js
2189
import IoC from 'AppIoC'; import { Schema } from 'mongoose'; import uniqueValidator from 'mongoose-unique-validator'; import { UNCONFIRMED, CONFIRMED, OUT_FOR_DELIVERY, DELIVERED, FAILED, } from 'server/store/constants/orderStatuses'; const generateUniqueOrderNumber = async (orderModel) => { let uniqueId =...
mit
dakstudios/auth-srv
main.go
999
package main import ( "log" "github.com/dakstudios/auth-srv/db" "github.com/dakstudios/auth-srv/db/mongo" "github.com/dakstudios/auth-srv/handler" account "github.com/dakstudios/auth-srv/proto/account" auth "github.com/dakstudios/auth-srv/proto/auth" "github.com/micro/cli" "github.com/micro/go-micro" ) func...
mit
plzen/ebay
lib/ebay_trading/types/charity_seller.rb
884
require 'ebay_trading/types/charity_affiliation' module EbayTrading # :nodoc: module Types # :nodoc: # == Attributes # text_node :charity_seller_status, 'CharitySellerStatus', :optional => true # array_node :charity_affiliations, 'CharityAffiliation', :class => CharityAffiliation, :default_value => [] ...
mit
Expertime/debug-sharepoint-javascript-sources
background.js
2536
/** global constants */ const browser = chrome; // key to store the 'enabled' flag value in localStorage const enabledKey = 'SpJsDebug_enabled'; const requestFilters = { 'urls': [ '*://*.sharepointonline.com/*/_layouts/15/*/*.js', '*://*.sharepoint.com/_layouts/15/*/*.js' ], 'types': ['script'] }; const k...
mit
dejv78/ctc-react
src/components/layout-view/JunctionLyxelView.js
1009
import React from "react"; import {observer} from "mobx-react"; import {Rect, Line, Group} from "react-konva"; import TrackSegmentView, {generateTrackSegment} from "./TrackSegmentView"; import p from "../../model/Properties"; @observer class JunctionLyxelView extends React.Component { render() { const l = this....
mit
gslee071/georgetown-classifier
setup.py
1807
#!/usr/bin/env python # setup # Setup script for gtml # # Author: Benjamin Bengfort <bb830@georgetown.edu> # Created: Fri Mar 28 15:50:39 2014 -0400 # # Copyright (C) 2014 Georgetown University # For license information, see LICENSE.txt # # ID: setup.py [] bb830@georgetown.edu $ """ Setup script for gtml """ #####...
mit
fbfeix/react-icons
icons/AndroidRestaurant.js
963
'use strict'; var React = require('react'); var IconBase = require(__dirname + 'components/IconBase/IconBase'); var AndroidRestaurant = React.createClass({ displayName: 'AndroidRestaurant', render: function render() { return React.createElement( IconBase, null, React.createElement( 'g', { id: 'I...
mit
wmzy/hiskyCrm
app/controllers/installation.js
3788
/** * Module dependencies. */ var mongoose = require('mongoose'); var utils = require('../../lib/utils'); var extend = require('util')._extend; var winston = require('winston'); var async = require('async'); var Installation = mongoose.model('Installation'); var User = mongoose.model('User'); exports.task = functi...
mit
Numerico-Informatic-Systems-Pvt-Ltd/asha
asha/public_html/app/Test/Fixture/LandOwnerFixture.php
1977
<?php /** * LandOwnerFixture * */ class LandOwnerFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary'), 'user_id' => array('type' => 'integer', 'null' => false, 'default' => null), ...
mit
podgito/DataTableMapper
DataTableMapper.Tests/Mapping/TypeHelperTests.cs
1573
using DataTableMapper.Mapping; using NUnit.Framework; using Shouldly; using System; using System.Collections.Generic; namespace DataTableMapper.Tests.Mapping { [TestFixture] public class TypeHelperTests { [Test] [TestCase(0, true)] [TestCase(1, true)] [TestCase(2.99f, true)...
mit
Fullscreen/generator-redux-feature
generators/app/index.js
1293
'use strict'; var Generator = require('yeoman-generator'); var chalk = require('chalk'); var yosay = require('yosay'); module.exports = Generator.extend({ initializing: function () { this.argument('featureName', { desc: 'The name of the redux feature. This will be the folder name.', type: String, ...
mit
cuckata23/wurfl-data
data/mot_k1t_ver1.php
474
<?php return array ( 'id' => 'mot_k1t_ver1', 'fallback' => 'mot_k1_ver1', 'capabilities' => array ( 'softkey_support' => 'true', 'columns' => '17', 'rows' => '11', 'resolution_width' => '176', 'resolution_height' => '220', 'colors' => '65536', 'max_deck_size' => '10000', 'mms_ma...
mit
arifah17/iDollykppl
application/views/admin/pro_update.php
4358
<?php if($this->session->userdata('role')!="admin"){ redirect('Admin/index'); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="descr...
mit
logust79/phenopolis
tests/helper.py
137
def login(app): return app.post('/login', data=dict( name='demo', password='demo123' ), follow_redirects=True)
mit
Seeed-Studio/ArduinoPhone
Libraries/ArduinoPhone/phone.cpp
3243
/* phone.cpp Author:Loovee 2013-9-10 The MIT License (MIT) 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 us...
mit
CoasterPoll/CoasterPoll
resources/views/sharing/sidebar.blade.php
194
@auth <a href="{{ route('links.submit') }}" class="btn btn-outline-primary btn-block @isset($submitBtnActive) @if($submitBtnActive) active disabled @endif @endisset">Submit New</a> @endauth
mit
ioBroker/ioBroker.admin
src-rx/src/components/JsonConfigComponent/ConfigCustomEasyAccess.js
5573
import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableContainer from '@material-ui/core/TableContainer'; import TableHe...
mit
anton23/gpanalyser
src-jexpressions/uk/ac/imperial/doc/jexpressions/expressions/IntegerExpression.java
807
package uk.ac.imperial.doc.jexpressions.expressions; /** * An expression for integer valued numerical constants. * * @author Anton Stefanek * */ public class IntegerExpression extends AbstractExpression { private int value; public IntegerExpression(int value) { super(); this.value = value; } public i...
mit
jgarverick/sample-chart-widget
WidgetTest/scripts/app.js
816
/// <reference path='../node_modules/vss-web-extension-sdk/typings/VSS.d.ts' /> var Greeter = (function () { function Greeter(element) { this.element = element; this.element.innerHTML += "The time is: "; this.span = document.createElement('span'); this.element.appendChild(this.span);...
mit
davidsantoso/active_merchant
test/remote/gateways/remote_psl_card_test.rb
3329
require 'test_helper' class RemotePslCardTest < Test::Unit::TestCase def setup @gateway = PslCardGateway.new(fixtures(:psl_card)) @uk_maestro = CreditCard.new(fixtures(:psl_maestro)) @uk_maestro_address = fixtures(:psl_maestro_address) @solo = CreditCard.new(fixtures(:psl_solo)) @solo_address =...
mit
Fuzzapi/fuzzapi
config/application.rb
1176
require File.expand_path('../boot', __FILE__) require 'rails/all' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module FuzzerApp class Application < Rails::Application # Settings in config/environments/* take pre...
mit
Yarduddles/ISO-3166
PHP/ISO-3166-2-BZ.php
223
<?php $ISO_3166_2 = array(); $ISO_3166_2['BZ'] = "Belize"; $ISO_3166_2['CY'] = "Cayo"; $ISO_3166_2['CZL'] = "Corozal"; $ISO_3166_2['OW'] = "Orange Walk"; $ISO_3166_2['SC'] = "Stann Creek"; $ISO_3166_2['TOL'] = "Toledo"; ?>
mit
owenbutler/gamedev
planetesimal/src/main/java/org/owenbutler/planetesimal/renderables/Asteroid1.java
1170
package org.owenbutler.planetesimal.renderables; import org.owenbutler.planetesimal.constants.AssetConstants; import org.owenbutler.planetesimal.constants.GameConstants; public class Asteroid1 extends BaseAsteroid { public Asteroid1(float x, float y) { super(AssetConstants.gfx_asteroid1, x, y, Ga...
mit
gsteacy/ts-loader
examples/vanilla-jsts/webpack.config.js
350
'use strict'; module.exports = { devtool: 'inline-source-map', entry: './src/index.js', output: { filename: 'dist/index.js' }, module: { rules: [ { test: /\.(ts|js)?$/, loader: 'ts-loader' } ] }, resolve: { extensio...
mit
inoyyth/proderma
application/modules/md_manage_product/views/edit.php
3855
<link rel="stylesheet" href="<?php echo base_url('themes/assets/plugin/Trumbowyg-master/dist/ui/trumbowyg.min.css');?>"> <style> .trumbowyg-box.trumbowyg-editor-visible { min-height: 150px; } .trumbowyg-editor { min-height: 150px; } </style> <div class="row"> <form action="<?php echo base_url("manage-produ...
mit
bbc/react-bootstrap
test/NavBrandSpec.js
905
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; // import Navbar from '../src/Navbar'; import NavBrand from '../src/NavBrand'; describe('Navbrand', () => { it('Should create navbrand SPAN element', () => { let instance = ReactTestUtils.renderIntoDocument( <NavBrand>Brand<...
mit
twsouthwick/SourceCodeSerializer
src/SourceCodeSerializer/Converters/DateTimeConverter.cs
458
using Microsoft.CodeAnalysis.CSharp.Syntax; using System; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; namespace SourceCodeSerializer.Converters { public sealed class DateTimeConverter : ExpressionConverter<DateTime> { public override ExpressionSyntax ConvertToExpression(Type type, DateT...
mit
e1cerebro/smartlib
application/views/front/contact.php
6010
<!DOCTYPE html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Contact Us | Smart Library</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Google Fonts --> <link href='http://fonts.googleapis.com/css?family=Roboto:400,900italic,700italic,900,70...
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/collection/convert/Wrappers$SeqWrapper$.js
4096
/** @constructor */ ScalaJS.c.scala_collection_convert_Wrappers$SeqWrapper$ = (function() { ScalaJS.c.java_lang_Object.call(this); this.$$outer$1 = null }); ScalaJS.c.scala_collection_convert_Wrappers$SeqWrapper$.prototype = new ScalaJS.inheritable.java_lang_Object(); ScalaJS.c.scala_collection_convert_Wrappers$Seq...
mit
razens/vets4pet
server/core/admin/chip.py
481
from django.contrib import admin from core.models import Chip, Color, Cat class ChipAdmin(admin.ModelAdmin): list_display = ['number', 'address', 'creation_date', 'last_update_date'] admin.site.register(Chip, ChipAdmin) class ColorAdmin(admin.ModelAdmin): list_display = ['name', 'code'] admin.site.regi...
mit
diirt/diirt
pvmanager/datasource-test/src/test/java/org/diirt/datasource/CompositeDataSourceTest.java
10004
/** * Copyright (C) 2010-18 diirt developers. See COPYRIGHT.TXT * All rights reserved. Use is subject to license terms. See LICENSE.TXT */ package org.diirt.datasource; import org.diirt.datasource.test.MockDataSource; import java.util.Collection; import java.util.HashSet; import java.util.Set; import org.junit.Afte...
mit
leeh/wiziq-ruby
test/helper.rb
426
require 'rubygems' require 'bundler' begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end require 'test/unit' require 'shoulda' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__),...
mit
Squidex/squidex
backend/src/Squidex.Domain.Apps.Entities/Contents/GraphQL/Types/Primitives/JsonNoopGraphType.cs
1132
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ===========================...
mit
sandhje/vscode-phpmd
server/service/logger/RemoteConsoleLogger.ts
2865
import { RemoteConsole, IConnection, ClientCapabilities, ServerCapabilities } from "vscode-languageserver"; import ILogger from "./ILogger"; /** * Remote console implementation of ILogger * * @module vscode-phpmd/service/logger * @author Sandhjé Bouw (sandhje@ecodes.io) */ class RemoteConsoleLogger imple...
mit
YFSS/jfm
src/test/java/com/ikaihuo/model/testing/JFMQueryDemo.java
811
package com.ikaihuo.model.testing; import java.math.BigInteger; import org.junit.Test; import com.ikaihuo.gp.storage.dc.jfinal.plugin.activerecord.Consts; import com.ikaihuo.gp.storage.dc.jfinal.plugin.activerecord.Model.Match; import com.ikaihuo.monkey.model.User; import com.jfinal.kit.JsonKit; public class JFMQue...
mit
Symfony-Plugins/sfToolsPlugin
modules/sfTools/templates/_file_tools.php
416
<h3>::sanitizeFilename</h3> <h4>echo sfFileTools::sanitizeFilename('--logö _ __ ___ ora@@ñ--~gé--.gif');</h4> <pre><?php echo sfFileTools::sanitizeFilename('--logö _ __ ___ ora@@ñ--~gé--.gif'); ?></pre> <h4>echo sfFileTools::sanitizeFilename('--LOgÖ _ __ ___ ORA@@Ñ--~GË--.gif');</h4> <pre><?php ech...
mit
PerplexInternetmarketing/Perplex-Umbraco-Forms
Perplex.Umbraco.Forms/App_Plugins/PerplexUmbracoForms/backoffice/common/settingtypes/perplexcheckboxlist.controller.js
2306
angular.module("umbraco") .controller("SettingTypes.PerplexcheckboxlistController", function ($scope, $routeParams, $q, pickerResource, perplexFormResource, perplexConstants) { var self = this; $scope.selectedValues = []; // Load saved values if (typeof $scope.setting.value === 'string') { $scope.selecte...
mit
vijayasankar/ML2.0
src/routes/UserManagement/container.js
849
import { connect } from 'react-redux' import UserManagement from './components/index.js' import { formReset, formSubmit, formSubmitError, formSubmitSuccess, loadUserManagementRegisteredUsersList } from 'modules/actions' export const mapDispatchToProps = { formReset, formSubmit, formSubmitError, formS...
mit
qvazzler/Flexget
tests/test_series_api.py
11965
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin from mock import patch from flexget.manager import Session from flexget.plugins.filter import series from flexget.utils import json class TestSeriesAPI(object): config = ...
mit
elmiko/data-goblin
datagoblin/manage.py
253
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "datagoblin.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
mit
Tamitras/TradingCenter
TradingCenter/TradingCenter/Forms/MainForm.cs
7096
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace TradingCenter.Forms { public partial class MainForm : Form { #region Attri...
mit
azharari/teskerja
application/modules/admin/views/excel.php
1036
<html> <head> </head> <body> <?php header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=Report.xls");//ganti nama sesuai keperluan header("Pragma: no-cache"); header("Expires: 0"); ?> <h2> Laporan Data Mobil Hazard Car Rent </h2> <table ...
mit
Karasiq/scalajs-highcharts
src/main/scala/com/highstock/config/SeriesCciPointEvents.scala
12331
/** * Automatically generated file. Please do not edit. * @author Highcharts Config Generator by Karasiq * @see [[http://api.highcharts.com/highstock]] */ package com.highstock.config import scalajs.js, js.`|` import com.highcharts.CleanJsObject import com.highcharts.HighchartsUtils._ /** * @note JavaScript...
mit
neubt/ershou
app/models/ershou/topic.rb
1134
require 'ipaddr' module Ershou class Topic < ActiveRecord::Base attr_accessible :title, :content attr_accessible :price, :phone, :qq belongs_to :user belongs_to :node, :counter_cache => true has_many :comments, :dependent => :destroy has_many :attachments, :dependent => :destroy accept...
mit
GitRat2340/gitrat
app/src/main/java/a2340/m4_login/User.java
507
package a2340.m4_login; import java.io.Serializable; public class User implements Serializable{ private String name, user, password; private boolean admin; public User(String nam, boolean adm, String id, String pass) { name = nam; admin = adm; user = id; password = pass; ...
mit
bruery/platform-core
src/bundles/UserSecurityBundle/Component/Listener/RouteRefererListener.php
1355
<?php /** * This file is part of the Bruery Platform. * * (c) Viktore Zara <viktore.zara@gmail.com> * (c) Mell Zamora <mellzamora@outlook.com> * * Copyright (c) 2016. For the full copyright and license information, please view the LICENSE file that was distributed with this source code. */ namespace Bruery\Use...
mit
sachinB94/rentolas
routes/ownerhome.js
2407
exports.ownerhome = function (req, res, db, db_static, redis) { if (req.session.listId) { req.session.listId = null; } if (req.session.ownerId) { var async = require('async'); async.parallel({ locality: function (callback) { db_static.collection('locality').find().toArray(function (err, locality...
mit
tmolina27/prototipo
application/views/View_login.php
704
<!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>Loogin</title> </head> <body> <div style="align-content: center"> <h1>Debes iniciar sesion</h1> <?php echo validation_error...
mit
bogdanostojic/slim
app/Middleware/CsrfViewMiddleware.php
731
<?php namespace App\Middleware; class CsrfViewMiddleware extends Middleware { public function __invoke($request, $response, $next) { $this->container->view->getEnvironment()->addGlobal('csrf', [ //Ovaj middleware nam pomaze da sprecimo CrossSiteRequestForgery (CSRF), i za svaku POST formu, treba nam csrf t...
mit
loskutov/deadbeef-lyricbar
src/ui.cpp
4321
#include "ui.h" #include <memory> #include <vector> #include <glibmm/main.h> #include <gtkmm/main.h> #include <gtkmm/scrolledwindow.h> #include <gtkmm/textbuffer.h> #include <gtkmm/textview.h> #include <gtkmm/widget.h> #include "debug.h" #include "gettext.h" #include "utils.h" using namespace std; using namespace G...
mit
alphagov/vcloud-ruby
lib/vcloud/user/catalog_item.rb
338
module VCloud # Contains a reference to a VAppTemplate or Media object and related # metadata. class CatalogItem < BaseVCloudEntity has_type VCloud::Constants::ContentType::CATALOG_ITEM tag 'CatalogItem' has_default_attributes has_links has_one :entity_reference, 'VCloud::Reference', :tag => '...
mit