repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
ONSdigital/eq-survey-runner
gulp/favicons.js
163
import gulp from 'gulp' import {paths} from './paths' export function favicons() { gulp.src(paths.favicons.input) .pipe(gulp.dest(paths.favicons.output)) }
mit
lexmihaylov/burjs
bur.js
42128
/** * Project bur * @version 1.3.0 * @author Alexander Mihaylov (lex.mihaylov@gmail.com) * @license http://opensource.org/licenses/MIT MIT License (MIT) * * @Copyright (C) 2013 by Alexander Mihaylov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated docum...
mit
rayaman/multi
multi/integration/networkManager/nodeManager.lua
2016
--[[ MIT License Copyright (c) 2020 Ryan Ward 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, di...
mit
fstoerkle/leaflet-custom-paths
lib/leaflet/0.4/src/map/ext/Map.Geolocation.js
2041
/* * Provides L.Map with convenient shortcuts for W3C geolocation. */ L.Map.include({ _defaultLocateOptions: { watch: false, setView: false, maxZoom: Infinity, timeout: 10000, maximumAge: 0, enableHighAccuracy: false }, locate: function (/*Object*/ options) { options = this._locationOptions = L.Ut...
mit
onebytegone/countryside
app/models/HighlightedPoint.php
629
<?php use Illuminate\Auth\UserTrait; use Illuminate\Auth\UserInterface; use Illuminate\Auth\Reminders\RemindableTrait; use Illuminate\Auth\Reminders\RemindableInterface; class HighlightedPoint extends Eloquent { /** * The database table used by the model. * * @var string */ protected $table = 'HighlightedP...
mit
sasedev/acf-expert
src/Acf/DataBundle/Entity/Docgroup.php
8098
<?php namespace Acf\DataBundle\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use Gedmo\Mapping\Annotation as Gedmo; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; /** * Docgroup * * @author sasedev <seif.salah@...
mit
karim/adila
database/src/main/java/adila/db/gts28lte_sm2dt715.java
250
// This file is automatically generated. package adila.db; /* * Samsung Galaxy Tab S2 8.0 * * DEVICE: gts28lte * MODEL: SM-T715 */ final class gts28lte_sm2dt715 { public static final String DATA = "Samsung|Galaxy Tab S2 8.0|Galaxy Tab"; }
mit
StichtingL3D/tools.l3d.nl
backend/models/table.php
16942
<?php /*------------------------------------------------------------------------------ base model for db tables ------------------------------------------------------------------------------*/ class table { public $error = false; public $id = null; protected $id_isint = true; protected $index_key = 'id'; private $i...
mit
wildsmith/MaterialDesign
src/com/wildsmith/material/playground/viewholders/PlaygroundNavigationCardViewHolder.java
2746
package com.wildsmith.material.playground.viewholders; import android.app.ActivityOptions; import android.content.Context; import android.content.Intent; import android.support.v7.widget.CardView; import android.util.Pair; import android.view.View; import android.widget.TextView; import com.wildsmith.material.R; impo...
mit
gcazaciuc/redux-fractal
src/localReducer.js
4142
import * as UIActions from './actions.js'; const stores = {}; const globalActions = {}; const refCounter = {}; const defaultGlobalFilter = () => false; const initialiseComponentState = (state, payload, componentKey) => { const { config, store } = payload; stores[componentKey] = store; refCounter[componentKey] =...
mit
jkk/shinkgs
src/ui/common/Modal.js
1592
// @flow import React, { PureComponent as Component } from "react"; import { A } from "./A"; import { Portal } from "./Portal"; import { isAncestor } from "../../util/dom"; type Props = { children?: any, title?: any, onClose: Function, }; export class Modal extends Component<Props> { _mainDiv: ?HTMLElement; ...
mit
greenpeace/p3_footerquiz
js/quiz.js
8659
/** * Greenpeace Quiz * @package org.greenpeace.js.quiz * @author Team Narwhal (oh yeah!) * @copyright Copyright 2012, Greenpeace International * @license MIT License (opensource.org/licenses/MIT) */ $.fn.quiz = (function(config) { // Configuration // we merge the default and the given data us...
mit
rsaylor73/tp
check_time3.php
2982
<?php session_start(); $sesID = session_id(); // init include_once "include/settings.php"; include_once "include/mysql.php"; include_once "include/templates.php"; function ensure2Digit($number) { if($number < 10) { //$number = '0' . $number; } return $number; } // Convert seconds into months, da...
mit
ekretschmann/sparesys
public/modules/schools/controllers/schools.client.controller.js
10425
'use strict'; // Schools controller angular.module('schools').controller('SchoolsController', ['$window', '$scope', '$timeout', '$state', '$stateParams', '$location', '$modal', 'Authentication', 'Schools', 'Schoolclasses', 'Users', function ($window, $scope, $timeout, $state, $stateParams, $location, $modal, A...
mit
518coin/518coin
src/qt/locale/bitcoin_ar.ts
118252
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ar" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About 518Coin</source> <translation>عن البلاك كوين</translation> </message> <message> <locati...
mit
wix/stylable-components
src/components/checkbox/checkbox.tsx
4494
import * as React from 'react'; import {properties, stylable} from 'wix-react-tools'; import {FormInputProps} from '../../types/forms'; import {StylableProps} from '../../types/props'; import {noop} from '../../utils'; import styles from './checkbox.st.css'; export interface CheckBoxProps extends FormInputProps<boolea...
mit
JackPu/atom-weexpack
pkg/commons-node/spec/humanizeKeystroke-spec.js
3512
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the LICENSE file in * the root directory of this source tree. * * @flow */ import humanizeKeystroke from '../humanizeKeystroke'; describe('nuclide-keystroke-label', () => { // ...
mit
Limpan/bytardag
web/tests/test_basics.py
363
import pytest def test_app_exists(app): assert app is not None def test_app_is_testing(app): assert app.config['TESTING'] def test_home_page(client): rv = client.get('/') assert rv.status_code == 200 assert 'Klädbytardagen'.encode() in rv.data def test_gdpr_page(client): rv = client.get(...
mit
coylums/synergy
SignalR-master/samples/Microsoft.AspNet.SignalR.Samples/Hubs/Test/Default.aspx.cs
222
using System; namespace Microsoft.AspNet.SignalR.Samples.Hubs.Test { public partial class Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } }
mit
ixtreon/musa
TaskList.cs
192
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Globalization; using System.Linq; using System.Text; namespace Musa { }
mit
UnicornCollege/ucl.itkpd.configurator
client/node_modules/react-dom/lib/DOMPropertyOperations.js
7606
/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ 'use strict...
mit
cdchild/TransitApp
Transit/Controllers/AccessibleCodesController.cs
4132
using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Linq; using System.Threading.Tasks; using System.Net; using System.Web; using System.Web.Mvc; using Transit.Models; namespace Transit.Controllers { public class AccessibleCodesController : Controller { ...
mit
CS2103AUG2016-T10-C3/main
src/main/java/seedu/emeraldo/logic/commands/HelpCommand.java
760
package seedu.emeraldo.logic.commands; import seedu.emeraldo.commons.core.EventsCenter; import seedu.emeraldo.commons.events.ui.ShowHelpRequestEvent; /** * Format full help instructions for every command for display. */ public class HelpCommand extends Command { public static final String COMMAND_WORD = "help...
mit
sernst/cauldron
cauldron/cli/commands/open/__init__.py
5560
import os import typing from argparse import ArgumentParser import cauldron from cauldron import cli from cauldron import environ from cauldron.cli.commands.listing import discovery from cauldron.cli.commands.open import actions from cauldron.cli.commands.open import opener from cauldron.cli.commands.open import remot...
mit
codn/adminpanel
test/dummy/app/controllers/adminpanel/categories_controller.rb
254
module Adminpanel class CategoriesController < Adminpanel::ApplicationController private def category_params params.require(:category).permit( :mug_ids, :product_ids, :name ) end end end
mit
dsj7419/GynBot
src/Siotrix.Discord.Core/Extensions/LogsToggleExtensions.cs
8212
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Discord; using Discord.Commands; using Discord.WebSocket; using Microsoft.EntityFrameworkCore; namespace Siotrix.Discord { public static class LogsToggleExtensions { #region normal logs publ...
mit
simpart/trut
doc/design/html/search/files_1.js
151
var searchData= [ ['extfunc_2ephp',['ExtFunc.php',['../ExtFunc_8php.html',1,'']]], ['extmod_2ephp',['ExtMod.php',['../ExtMod_8php.html',1,'']]] ];
mit
callidus/playbot
playbot/plugins/fortune/data_source.py
1815
from __future__ import absolute_import import sqlite3 as dbapi class DataSource(object): def __init__(self): self.conn = None def __del__(self): if self.conn: self.conn.close() def open_db(self, name): """open an existing database.""" self.conn = dbapi.conne...
mit
kaiinui/lambda_kit
test/lambda_driver/s3_put_event.js
1115
module.exports = { "Records": [ { "eventVersion": "2.0", "eventSource": "aws:s3", "awsRegion": "us-east-1", "eventTime": "1970-01-01T00:00:00.000Z", "eventName": "ObjectCreated:Put", "userIdentity": { "principalId": "AIDAJDPLRKLG7UEXAMPLE" }, ...
mit
SCPTeam/Safe-Component-Provider
Sat4jCore/src/org/sat4j/minisat/constraints/cnf/HTClause.java
9661
/******************************************************************************* * SAT4J: a SATisfiability library for Java Copyright (C) 2004, 2012 Artois University and CNRS * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0...
mit
TalkingData/flclover
test/middleware/logger.js
1961
const assert = require('power-assert'); const Flclover = require('../..'); const request = require('supertest'); const fs = require('fs'); const path = require('path'); const sleep = require('ko-sleep'); describe('test/middleware/logger.js', () => { const baseDir = `${process.cwd()}/test/fixtures/logger`; const lo...
mit
coreos/raft
log_entry.go
2077
package raft import ( "bytes" "encoding/json" "fmt" "io" "code.google.com/p/gogoprotobuf/proto" "github.com/coreos/raft/protobuf" ) // A log entry stores a single item in the log. type LogEntry struct { pb *protobuf.LogEntry Position int64 // position in the log file log *Log event *ev } // ...
mit
nodes777/resumeGame
js/platformer.js
15500
var platformer = function () { // module pattern //------------------------------------------------------------------------- // POLYFILLS //------------------------------------------------------------------------- if (!window.requestAnimationFrame) { // http://paulirish.com/2011/requestanimationframe-for-smart...
mit
yozora-hitagi/Saber
Saber/ReportWindow.xaml.cs
2493
using System; using System.Diagnostics; using System.Globalization; using System.IO; using System.Text; using System.Linq; using System.Windows; using System.Windows.Documents; using Saber.Helper; using Saber.Infrastructure; using Saber.Infrastructure.Logger; namespace Saber { internal partial class ReportWindow ...
mit
sharifmarat/fortran_to_c_headers
include/other.hpp
505
#ifndef F2H_OTHER_HPP #define F2H_OTHER_HPP #include <boost/spirit/include/qi.hpp> #include <vector> #include "error_handler.hpp" #include "skipper.hpp" #include "ast.hpp" namespace f2h { namespace qi = boost::spirit::qi; template <typename Iterator> struct Other : qi::grammar<Iterator, ast::Other(), Skipper<Itera...
mit
schorfES/node-junitwriter
tests/testsuite.js
12029
var Writer = require(process.cwd() + '/lib/Writer'), Testsuite = require(process.cwd() + '/lib/Testsuite'), Testcase = require(process.cwd() + '/lib/Testcase') ; exports['The Testsuite'] = { 'should throw an error when instantiated without passing a name to the constructor': function(test) { test.throws( func...
mit
Lukasa/testifi
testifi/__init__.py
188
# -*- coding: utf-8 -*- """ testifi ~~~~~~~ Testifi is software designed to test multiple certifi releases against many TLS-enabled websites. This module implements the testifi API. """
mit
hishammk/monthley.com
node_modules/browser-sync-client/dist/index.js
48861
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
mit
110035/kissy
build/editor/plugin/smiley.js
3969
/* Copyright 2013, KISSY UI Library v1.40dev MIT Licensed build time: Jul 3 13:54 */ /* Combined processedModules by KISSY Module Compiler: editor/plugin/smiley */ /** * smiley button * @author yiminghe@gmail.com */ KISSY.add("editor/plugin/smiley", function (S, Editor, Overlay4E) { var smiley_markup = "<...
mit
SesameSeed/SesameCoin
src/qt/locale/bitcoin_fa_IR.ts
107291
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa_IR" version="2.0"> <defauSEEDodec>UTF-8</defauSEEDodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About SESAME</source> <translation>در مورد بیتکویین</translation> ...
mit
SettRaziel/time_accounting
lib/menu/base_menu.rb
2884
# @Author: Benjamin Held # @Date: 2017-01-29 09:24:31 # @Last Modified by: Benjamin Held # @Last Modified time: 2017-01-29 09:26:23 module Menu # This class provides the common methods of the different query menus # The children need to define the method {Menu::Base.define_menu_items} and # {Menu::Base.dete...
mit
zhzhy/cocoapods-generator
lib/cocoapods-generator.rb
42
require 'cocoapods-generator/gem_version'
mit
pomnikita/sneakers
spec/sneakers/workergroup_spec.rb
1819
require 'logger' require 'spec_helper' require 'sneakers' require 'sneakers/runner' class DummyFlag def wait_for_set(*) true end end class DummyEngine include Sneakers::WorkerGroup attr_reader :config def initialize(config) @config = config @stop_flag = DummyFlag.new end end class DefaultsW...
mit
eloquent/lockbox-java
src/main/java/co/lqnt/lockbox/BoundEncryptionCipher.java
2170
/* * This file is part of the Lockbox package. * * Copyright © 2013 Erin Millard * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ package co.lqnt.lockbox; import co.lqnt.lockbox.key.PrivateKeyInterface; import co.lqnt.lockbox.key....
mit
TildeWill/wurl
config/initializers/httparty/request.rb
107
require 'httparty' module HTTParty class Request def to_s @raw_request.to_s end end end
mit
crr0004/godot
tools/editor/plugins/spatial_editor_plugin.cpp
122895
/*************************************************************************/ /* spatial_editor_plugin.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
mit
guluc3m/gul-gultalks
db/migrate/20140826143607_create_speakers.rb
462
class CreateSpeakers < ActiveRecord::Migration[4.2] def change create_table :speakers do |t| t.string :name, limit: 64, null: false t.string :email, limit: 64, null: false t.string :twitter, limit: 64 t.integer :event_id, null: false t.boolean :certificate, default: false t.bo...
mit
gwu-libraries/launchpad
lp/ui/static/js/launchpad.js
5470
function showmore(id) { var objt = document.getElementById("toggle-"+id); var objb = document.getElementById("brief-"+id); var objf = document.getElementById("full-"+id); if(objf.style.display == 'block') { objf.style.display='none'; objb.style.display='block'; objt.innerHTML="<a...
mit
otakuto/TomatoTool
Graphic/Palette/TransitionPalette.cs
2754
using System; using System.Collections.Generic; namespace TomatoTool { public class TransitionPalette : ROMObject { private uint address; public override uint ObjectID { get { return address; } set { address = value; } } private bool saved; public override bool Saved { ...
mit
rlworkgroup/metaworld
metaworld/envs/mujoco/sawyer_xyz/v2/sawyer_coffee_button_v2.py
4374
import numpy as np from gym.spaces import Box from metaworld.envs import reward_utils from metaworld.envs.asset_path_utils import full_v2_path_for from metaworld.envs.mujoco.sawyer_xyz.sawyer_xyz_env import SawyerXYZEnv, _assert_task_is_set class SawyerCoffeeButtonEnvV2(SawyerXYZEnv): def __init__(self): ...
mit
leifg/formulon
src/validations.js
2137
import ArgumentError from './errors/ArgumentError'; export const minNumOfParams = (expectedMinNumOfParams) => (fnName) => (params) => { if (params.length < expectedMinNumOfParams) { ArgumentError.throwIncorrectNumberOfArguments(fnName, expectedMinNumOfParams, params.length); } }; export const maxNumOfParams =...
mit
codehakase/studyLog
resources/views/tasks/index.blade.php
2653
@extends('layouts.app') @section('content') <!-- Bootstrap Boilerplate... --> <div class="panel-body"> <!-- Display Validation Errors --> @include('includes.flash') <!-- New Task Form --> <form action="{{ url('task') }}" method="POST" class="form-horizontal"> {{ csrf_field() }} <!--...
mit
maiktheknife/Scout
app/src/main/java/de/mm/android/longitude/fragment/SettingsFragment.java
7243
package de.mm.android.longitude.fragment; import android.content.Context; import android.content.SharedPreferences; import android.content.SharedPreferences.OnSharedPreferenceChangeListener; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.os.Bundle; import android.prefer...
mit
nvlbg/SimpleGraph
src/simple-graph.js
31227
;(function() { "use strict"; var buckets; if (typeof require !== "undefined") { buckets = require("../lib/buckets.js"); } else if (typeof window !== "undefined") { buckets = window.buckets; } var util = { isObject: function(test) { return Object.prototype.toS...
mit
tanguygiga/dta-formation
DTA-Chat/src/dta/chat/model/observer/ChatObserver.java
123
package dta.chat.model.observer; public interface ChatObserver<T> { void update(ChatObservable<T> observable, T obj); }
mit
AlexandreGenecque/MoteurRechercheCHU
src/MoteurRechercheBundle/Form/NaturePrelevementType.php
828
<?php namespace MoteurRechercheBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; class NaturePrelevementType extends AbstractType { /** * @param FormBuilderInterface $builder * @param array $opti...
mit
uniquoooo/CSManager
src/Manager/Migrations/Servers.php
683
<?php /* * This file is apart of the CSManager project. * * Copyright (c) 2016 David Cole <david@team-reflex.com> * * This source file is subject to the MIT license that is bundled * with this source code in the LICENSE file. */ namespace Manager\Migrations; class Servers { /** * Runs the migrations....
mit
betabrand/goad
Godeps/_workspace/src/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_test.go
67611
package query_test import ( "bytes" "encoding/json" "encoding/xml" "io" "io/ioutil" "net/http" "net/url" "testing" "time" "github.com/aws/aws-sdk-go/awstesting" "github.com/aws/aws-sdk-go/private/util" "github.com/gophergala2016/goad/Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws" "github.com/gopher...
mit
Neko81795/ASideScrollBonanza
ASSB/ASSB/EventSystem/ObjectEventManager.hpp
987
#pragma once #include <vector> #include "ODefines.hpp" #include "EventSystem.hpp" namespace EventSystem { // Handles connecting and disconnecting of events based on their IDs. // This service is provided for objects only, and is not something that // is provided for global functions that are part of the event...
mit
sakura-internet/saklient.node
src/saklient/cloud/errors/ServiceTemporarilyUnavailableException.ts
950
/// <reference path="../../../node.d.ts" /> export = ServiceTemporarilyUnavailableException; import HttpServiceUnavailableException = require('../../errors/HttpServiceUnavailableException'); 'use strict'; /** * サービスが利用できません。この機能は一時的に利用できない状態にあります。メンテナンス情報、サポートサイトをご確認ください。 */ class ServiceTemporarilyUnavailableExc...
mit
sumitarora/angular2-practice
webpack.config.js
2402
// @AngularClass /* * Helper: root(), and rootDir() are defined at the bottom */ var path = require('path'); var webpack = require('webpack'); // Webpack Plugins var CommonsChunkPlugin = webpack.optimize.CommonsChunkPlugin; /* * Config */ module.exports = { // for faster builds use 'eval' devtool: 'source-map...
mit
xing/hops
packages/react/router/index.js
529
import { withRouter } from 'react-router-dom'; export const Miss = withRouter(({ staticContext }) => { if (staticContext) { staticContext.miss = true; } return null; }); export const Status = withRouter(({ staticContext, code }) => { if (staticContext) { staticContext.status = code; } return nul...
mit
JonnyBGod/RealityConnect-Hackathon
chat/scripts/tiles.js
22459
/*! Tiles.js | http://thinkpixellab.com/tilesjs | 2012-12-03 */ // single namespace export var Tiles = {}; (function($) { var Tile = Tiles.Tile = function(tileId, element) { this.id = tileId; // position and dimensions of tile inside the parent panel this.top = 0; this.left = 0...
mit
raphaelcosta/i18n_alchemy
lib/i18n_alchemy/proxy.rb
4775
module I18n module Alchemy # Depend on AS::Basic/ProxyObject which has a "blank slate" - no methods. base_proxy = defined?(ActiveSupport::ProxyObject) ? ActiveSupport::ProxyObject : ActiveSupport::BasicObject class Proxy < base_proxy include AttributesParsing # TODO: cannot assume _id ...
mit
quchunguang/test
bookalp/reciprocal/reciprocal.hpp
108
#ifdef __cplusplus extern "C" { #endif extern double reciprocal (int i); #ifdef __cplusplus } #endif
mit
YungSang/node-zmq
src/zmq_node.cc
3898
#include "zmq_node.h" namespace zmq_node { void Init(v8::Handle<v8::Object> target) { v8::HandleScope scope; NODE_SET_METHOD(target, "version", Version); NODE_SET_METHOD(target, "sleep", Sleep); NODE_SET_METHOD(target, "nanosleep", NanoSleep); // Socket types ZMQ_NODE_DEFINE_CONSTANT(target, "PAIR", ...
mit
Dasc3er/Sito-studentesco
database/migrations/20161202133548_create_course_user.php
559
<?php use Phinx\Migration\AbstractMigration; class CreateCourseUser extends AbstractMigration { public function change() { $table = $this->table('course_user'); $table->addColumn('course_id', 'integer') ->addColumn('user_id', 'integer') ->addTimestamps(null, null) ...
mit
gdbelvin/PrivText
Android/src/edu/jhu/bouncycastle/crypto/engines/AESEngine.java
28131
/* * Copyright (c) 2000 - 2011 The Legion Of The Bouncy Castle * (http://www.bouncycastle.org) * * 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 ...
mit
python-cmd2/cmd2
tests/test_cmd2.py
89821
# coding=utf-8 # flake8: noqa E302 """ Cmd2 unit/functional testing """ import builtins import io import os import signal import sys import tempfile from code import ( InteractiveConsole, ) from unittest import ( mock, ) import pytest import cmd2 from cmd2 import ( COMMAND_NAME, ansi, clipboard, ...
mit
thetodd/em5_status
game_plugin/game_plugin/gui/GuiManager.cpp
1172
#include "game_plugin/PrecompiledHeader.h" #include "game_plugin/gui/GuiManager.h" #include "game_plugin/gui/FMSGui.h" #include <em5/gui/IngameHud.h> #include <em5/gui/hud/BaseHudLayer.h> #include <em5/gui/EmergencyGui.h> #include <em5/EM5Helper.h> namespace flo11 { GuiManager::GuiManager(): mContext(nul...
mit
vsco/domino
domino_test.go
21213
package domino import ( // "fmt" "context" "fmt" "net/http" "strconv" "sync" "testing" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/dynamodb" "github.com/aws/aws-sdk-go/service/dynamodb/dynam...
mit
mrkosterix/lua-commons
lua-commons-configuration/lua-commons-configuration-modules/lua-commons-configuration-basic/src/test/java/org/lua/commons/configuration/basic/TestBasicConfigurationApi.java
1521
package org.lua.commons.configuration.basic; import java.io.File; import org.lua.commons.configuration.FileLuaConfiguration; import org.lua.commons.configuration.LuaConfiguration; import org.lua.commons.configuration.LuaConfigurationException; import org.lua.commons.customapi.container.LuaContainer; import org.lua.co...
mit
greenren/local-coffee-roasters
resources/views/roasters/index.blade.php
621
@extends('layouts.master') @section('header') <h1>Local Coffee Roasters</h1> @stop @section('content') @if (count($roasters)) <ul class="list-unstyled"> @foreach($roasters as $roaster) <li> <h2> <a href="{{ url('roaster', $roaster->...
mit
bitrise-tools/codesigndoc
cmd/root.go
1260
package cmd import ( "fmt" "os" "github.com/bitrise-io/go-utils/log" "github.com/spf13/cobra" ) var ( enableVerboseLog = false ) // RootCmd represents the base command when called without any subcommands var RootCmd = &cobra.Command{ Use: "codesigndoc", Short: "Your friendly iOS Code Signing Doctor", Long...
mit
epignosisx/scsyncr
src/ScSyncr.Agent/ScSyncrRoute.cs
396
using System.Web.Routing; namespace ScSyncr.Agent { public class ScSyncrRoute : Route { private static readonly ScSyncrRoute singleton = new ScSyncrRoute(); public static ScSyncrRoute Singleton { get { return singleton; } } private ScSyncrRoute() : base("s...
mit
xuorig/graphql-schema_comparator
lib/graphql/schema_comparator/diff/schema.rb
4429
module GraphQL module SchemaComparator module Diff class Schema def initialize(old_schema, new_schema) @old_schema = old_schema @new_schema = new_schema @old_types = old_schema.types @new_types = new_schema.types @old_directives = old_schema.direct...
mit
garno/FiveSystem
lib/five_system/linux.rb
105
module FiveSystem module Linux autoload :LoadAverage, 'fivesystem/linux/load_average' end end
mit
SETTER2000/kadr
assets/js/private/admin/AdminModule.js
4423
angular.module('AdminModule', ['ui.router', 'ngResource', 'ngAnimate','ngMaterial']) .config(function ($stateProvider) { $stateProvider .state('home.admin', { url: 'admin', // templateUrl: '/js/private/admin/tpl/admin.tpl.html' //controller: functi...
mit
spthaolt/jemul8
demos/floppy/demo.js
1499
/** * jemul8 - JavaScript x86 Emulator * http://jemul8.com/ * * Copyright 2013 jemul8.com (http://github.com/asmblah/jemul8) * Released under the MIT license * http://jemul8.com/MIT-LICENSE.txt */ /*global define */ define({ cache: false }, [ "../../jemul8" ], function ( jemul8 ) { "use strict";...
mit
danielgerlag/jworkflow
jworkflow.kernel/src/main/java/net/jworkflow/kernel/interfaces/ExecutionResultProcessor.java
445
package net.jworkflow.kernel.interfaces; import net.jworkflow.kernel.models.*; public interface ExecutionResultProcessor { void processExecutionResult(WorkflowInstance workflow, WorkflowDefinition def, ExecutionPointer pointer, WorkflowStep step, ExecutionResult result, WorkflowExecutorResult workflowResult); ...
mit
DFearing/ContactPusher
ContactPusher.Web.UI/Controllers/HomeController.cs
395
using ContactPusher.Core; using System.Web.Mvc; namespace ContactPusher.Web.UI.Controllers { public class HomeController : BaseController { public HomeController(IRepository repository, IGoogleServices googleServices) : base(repository, googleServices) { } public ActionResult Index() { return View(...
mit
cosmow/riak-odm
lib/CosmoW/ODM/Riak/Mapping/Annotations/EmbeddedDocument.php
1145
<?php /* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS B...
mit
IssueSquare/blog-daddy
app/vendor/github.com/minio/minio-go/api-put-object.go
8103
/* * Minio Go Library for Amazon S3 Compatible Cloud Storage (C) 2015, 2016 Minio, 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...
mit
karou/karou-yuanze
src/Albatross/DailyBundle/AlbatrossDailyBundle.php
136
<?php namespace Albatross\DailyBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class AlbatrossDailyBundle extends Bundle { }
mit
peercoin/peercoin
src/qt/locale/bitcoin_vi.ts
140555
<TS language="vi" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Phải chuột để sửa địa chỉ hoặc nhãn</translation> </message> <message> <source>Create a new address</source> <translation>T...
mit
katsuroo/trustroots
public/modules/core/controllers/footer.client.controller.js
2487
'use strict'; angular.module('core').controller('FooterController', ['$scope', 'Authentication', 'Menus', function($scope, Authentication, Menus) { $scope.isTransparent = false; $scope.isHidden = false; $scope.photo_credits = []; /* * Please try to keep this updated while you add/change/remove...
mit
sparkoo/boxitory
src/main/java/cz/sparko/boxitory/service/filesystem/BoxPathType.java
98
package cz.sparko.boxitory.service.filesystem; public enum BoxPathType { RAW, BOXITORY }
mit
dawidfiruzek/dagger2-mvp-example
app/src/test/java/pl/dawidfiruzek/dagger2mvpexample/ExampleUnitTest.java
326
package pl.dawidfiruzek.dagger2mvpexample; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); ...
mit
nodeGame/nodegame-widgets
widgets/DebugWall.js
11165
/** * # DebugWall * Copyright(c) 2021 Stefano Balietti * MIT Licensed * * Creates a wall where all incoming and outgoing messages are printed * * www.nodegame.org */ (function(node) { "use strict"; node.widgets.register('DebugWall', DebugWall); // ## Meta-data DebugWall.version = '1.1.0'; ...
mit
chuyik/TeamNotes
app/models/knowledge.rb
217
class Knowledge < ActiveRecord::Base has_many :comments, :dependent => :destroy accepts_nested_attributes_for :comments, allow_destroy: true validates :title, presence: true validates :content, presence: true end
mit
youmi/nativead
YMNativeAdS-android/library/src/main/java/net/youmi/ads/base/download/store/AbsDownloadDir.java
7050
package net.youmi.ads.base.download.store; import net.youmi.ads.base.download.model.FileDownloadTask; import net.youmi.ads.base.log.DLog; import net.youmi.ads.base.utils.FileUtils; import java.io.File; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.Iterator; im...
mit
david-leal/nau
head/src/nau/render/opengl/glUniform.cpp
18663
#include "nau.h" #include "nau/slogger.h" #include "nau/render/opengl/glUniform.h" using namespace nau::render; std::map<GLenum, std::string> GLUniform::spGLSLType; //std::map<int, int> GLUniform::spGLSLTypeSize; std::map<GLenum, Enums::DataType> GLUniform::spSimpleType; bool GLUniform::Inited = Init(); ...
mit
agilitix/agilib
AxFixEngine/Engine/IFixEngine.cs
429
using System.Collections.Generic; using AxFixEngine.Dialects; using AxFixEngine.Handlers; using QuickFix; namespace AxFixEngine.Engine { public interface IFixEngine { string ConfigFile { get; } IList<SessionID> Sessions { get; } IFixDialects Dialects { get; } IFixMessageHandler...
mit
danielwertheim/mynatsclient
src/main/MyNatsClient.Encodings.Json/JsonSettings.cs
835
using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Serialization; namespace MyNatsClient.Encodings.Json { public class JsonSettings { public static JsonSerializerSettings Create() { var settings = new JsonSerializerSettings { D...
mit
ysaito-lev218/console-sample
app/Handlers/Events/QueryLogTracker.php
578
<?php namespace App\Handlers\Events; use Log; //use App\Events\illuminate.query; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Queue\ShouldQueue; class QueryLogTracker { /** * Create the event handler. * */ public function __construct() { // } /** ...
mit
HotcakesCommerce/core
Website/DesktopModules/Hotcakes/Core/Admin/Catalog/FileVaultDetailsView.aspx.cs
11038
#region License // Distributed under the MIT License // ============================================================ // Copyright (c) 2019 Hotcakes Commerce, LLC // Copyright (c) 2020 Upendo Ventures, LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software // and assoc...
mit
ReIR/BestNid
src/app/Http/Controllers/Admin/UsersController.php
1033
<?php namespace App\Http\Controllers\Admin; use App\Http\Requests; use App\Http\Controllers\Controller; use Request; use App\User; class UsersController extends Controller { public function __construct() { $this->middleware('authAdmin'); } /** * Display a listing of the resource. * * @return Response ...
mit
RDRdeveloper82/tiendaFlag
frontend/components/NavBar.php
7720
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace frontend\components; use Yii; use yii\bootstrap\BootstrapPluginAsset; use yii\bootstrap\Html; use yii\bootstrap\Widget; use yii\helpers\ArrayHelper; /** * ...
mit
js1972/openui5-clickpanel
application.js
1516
// local controller sap.ui.controller("my.controller", { onInit: function() { var panel = this.byId("panel"); // This is a hack way of enabling a click in the header of a Panel to toggle expand/collapse. panel.addDelegate({ onclick: function(oEvent) { if (oEvent.target === panel.$().find(".sapMPa...
mit
mneumann/izhikevich-neurons
src/network/neuron_id.rs
307
#[derive(Debug, PartialEq, Eq, Clone, Copy)] pub struct NeuronId(u32); impl NeuronId { #[inline(always)] pub fn index(&self) -> usize { self.0 as usize } } impl From<usize> for NeuronId { #[inline(always)] fn from(index: usize) -> Self { NeuronId(index as u32) } }
mit