code
stringlengths
4
1.01M
language
stringclasses
2 values
""" Room Typeclasses for the TutorialWorld. This defines special types of Rooms available in the tutorial. To keep everything in one place we define them together with the custom commands needed to control them. Those commands could also have been in a separate module (e.g. if they could have been re-used elsewhere.)...
Java
<?php namespace asdfstudio\admin\helpers; use Yii; use asdfstudio\admin\Module; use asdfstudio\admin\base\Admin; use yii\db\ActiveRecord; class AdminHelper { /** * @param string $entity Admin class name or Id * @return Admin|null */ public static function getEntity($entity) { /* ...
Java
#include <core/Runtime.h> #include <stdlib.h> #include <math.h> int runtime_f32_mul(Stack stack) { Value* operand1 = NULL; Value* operand2 = NULL; pop_Value(stack, &operand2); pop_Value(stack, &operand1); if(isnan(operand1->value.f32) || isnan(operand2->value.f32)) { push_Value(stack, new_...
Java
package tools; /* * Extremely Compiler Collection * Copyright (c) 2015-2020, Jianping Zeng. * * 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/LICE...
Java
package com.logicalpractice.collections; import static org.junit.Assert.*; import static org.hamcrest.Matchers.* ; import org.junit.Test; public class ExpressionTest { @Test public void script1() throws Exception { Person billy = new Person("Billy", "Smith"); Expression<Person,String>...
Java
<?php declare(strict_types=1); namespace LizardsAndPumpkins\Context\Country; use LizardsAndPumpkins\Context\ContextPartBuilder; class IntegrationTestContextCountry implements ContextPartBuilder { private $defaultCountryCode = 'DE'; /** * @param mixed[] $inputDataSet * @return string */ ...
Java
Backend ======= stack build managemytime to run the server, just invoke the executable (it's inside .stack-work) or stack exec managemytime-exe it ships with a builtin self-signed certificate for localhost to run the integration tests, you'll want unencrypted http, which you can select with the "test" argum...
Java
const initialState = { country: 'es', language: 'es-ES' } const settings = (state = initialState, action) => { switch (action.type) { default: return state } } export default settings
Java
<?php // This is the configuration for yiic console application. // Any writable CConsoleApplication properties can be configured here. return array( 'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..', 'name'=>'My Console Application', // autoloading model and component classes 'import'=>array( ...
Java
#based on SilkJS Makefile ARCH := $(shell getconf LONG_BIT) COREMQ= mqdb.o OBJ= HMQ = include/lru_cache/lru_cache.h include/lru_cache/scoped_mutex.h fstools.cc CORECL= client.o OBJ= V8DIR= ./v8-read-only V8LIB_64 := $(V8DIR)/out/x64.release/obj.target/tools/gyp V8LIB_32 := $(V8DIR)/out/ia32.release/obj.target/tool...
Java
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of th...
Java
# eXist Book Example Code [![Build Status](https://travis-ci.org/eXist-book/book-code.png?branch=master)](https://travis-ci.org/eXist-book/book-code) [![Java 7](https://img.shields.io/badge/java-7-blue.svg)](http://java.oracle.com) [![License](https://img.shields.io/badge/license-BSD%203-blue.svg)](http://www.opensour...
Java
<?php // uncomment the following to define a path alias // Yii::setPathOfAlias('local','path/to/local-folder'); // This is the main Web application configuration. Any writable // CWebApplication properties can be configured here. return array( 'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..', 'name'=>'Platafo...
Java
# $FreeBSD: releng/9.3/sys/modules/drm2/radeonkmsfw/R300_cp/Makefile 254885 2013-08-25 19:37:15Z dumbbell $ KMOD= radeonkmsfw_R300_cp IMG= R300_cp .include <bsd.kmod.mk>
Java
/** Copyright (c) 2014, Nathan Carver All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follo...
Java
<?php use app\core\helpers\Html; use app\core\helpers\Url; $this->title = '权限管理 在此页面添加名修改权限项注释'; $this->params['breadcrumbs'][] = $this->title; ?> <style type="text/css"> .nopad{padding-left: 0} .panel-default>.panel-heading{ padding: 10px 15px; background-color: #f5f5f5; border-color:...
Java
<!doctype html> <html> <head> <meta charset="utf-8"> <title>System\Browser\assets\scripts\Flash.js 源码</title> <link href="../../assets/styles/prettify.css" type="text/css" rel="stylesheet" /> <script src="../../assets/scripts/prettify.js" type="text/javascript"></script> <style type="text/css">.highl...
Java
define(['App', 'jquery', 'underscore', 'backbone', 'hbs!template/subreddit-picker-item', 'view/basem-view'], function(App, $, _, Backbone, SRPitemTmpl, BaseView) { return BaseView.extend({ template: SRPitemTmpl, events: { 'click .add': 'subscribe', 'cl...
Java
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace yii\helpers; use Yii; use yii\base\InvalidParamException; use yii\db\ActiveRecordInterface; use yii\validators\StringValidator; use yii\web\Request; use yii\...
Java
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <title>statsmodels.base.model.GenericLikelihoodModelResults.remove_data &#8212; statsmodels v0.10.0 documentation</title> <link rel="stylesheet" href="../../_static/nature.css" type="text/css" /> <link rel="...
Java
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> {% load staticfiles %} <link rel="stylesheet" href="{% static 'css/foundation.css' %}" /> </head> <body> <div class="row"> <div class="panel"> <h2> You have successfully logged out </h2> <p> You can <a ...
Java
/* Copyright (C) 2013-2014 by Kristina Simpson <sweet.kristas@gmail.com> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any pur...
Java
// Copyright 2016 Keybase Inc. All rights reserved. // Use of this source code is governed by a BSD // license that can be found in the LICENSE file. package libkey import ( "context" "github.com/keybase/client/go/kbfs/idutil" "github.com/keybase/client/go/kbfs/kbfscrypto" "github.com/keybase/client/go/kbfs/kbfs...
Java
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DataExplorer.Domain.Columns; using DataExplorer.Domain.Layouts; namespace DataExplorer.Domain.Maps.SizeMaps { public class SizeMapFactory : ISizeMapFactory { public SizeMap Create(...
Java
package com.btr.proxy.search.desktop.gnome; import java.io.File; import java.io.IOException; import java.net.ProxySelector; import java.util.Properties; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.w3c.dom...
Java
/* * Copyright (C) 2014 The Async HBase Authors. All rights reserved. * This file is part of Async HBase. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * - Redistributions of source code must retain the above...
Java
#include "gb_thread.hpp" #include "z80.hpp" #include "memory.hpp" #include "rom.hpp" #include "cart_rom_only.hpp" #include "cart_mbc1.hpp" #include "cart_mbc5.hpp" #include "internal_ram.hpp" #include "video.hpp" #include "timer.hpp" #include "joypad.hpp" #include "sound.hpp" #include "debug.hpp" #include "assert.hpp" ...
Java
# Verified-BPF Initial tinkering with a BPF metalanguage and implementation formally verified in Coq.
Java
//M*////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
Java
"use strict"; var mapnik = require('../'); var assert = require('assert'); var path = require('path'); mapnik.register_datasource(path.join(mapnik.settings.paths.input_plugins,'geojson.input')); describe('mapnik.Geometry ', function() { it('should throw with invalid usage', function() { // geometry canno...
Java
<?php use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model frontend\models\ManagerTrain */ $this->title = $model->id; $this->params['breadcrumbs'][] = ['label' => 'Manager Trains', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="manager-tra...
Java
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2012-, Open Perception, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
Java
package xcordion.impl.command; import junit.framework.TestCase; import junit.framework.Assert; import org.junit.Test; import org.junit.Ignore; public class ForEachCommandTest { @Test @Ignore public void testPlaceholder() { Assert.fail("WRITE ME"); } }
Java
/*========================================================================= Program: Visualization Toolkit Module: vtkDataSetEdgeSubdivisionCriterion.h Language: C++ Copyright 2003 Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive license for use of ...
Java
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package asm import ( "bufio" "bytes" "fmt" "io/ioutil" "os" "path/filepath" "regexp" "sort" "strconv" "strings" "testing" "cmd/asm/internal/lex" ...
Java
// Copyright (c) 2012 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. #include "chrome/app/android/chrome_jni_onload.h" #include "chrome/app/android/chrome_android_initializer.h" #include "content/public/app/content_jni...
Java
package ch.epfl.lamp.slick.direct import org.scalatest.FlatSpec import slick.driver.H2Driver.api._ class ProblemSpec extends FlatSpec with TestHelper { // TODO: WIP }
Java
/* * ctm-cvb * * CollapsedBayesEngine */ #ifndef COLLAPSED_BAYES_ENGINE_H #define COLLAPSED_BAYES_ENGINE_H #include "InferenceEngine.h" #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> namespace ctm { class CollapsedBayesEngine : public InferenceEngine { /*** * Model hyperpa...
Java
isPrime :: Integral a => a -> Bool isPrime 2 = True isPrime 3 = True isPrime n = all (\ x -> x /= 0) [n `mod` x | x <- [2..(truncate $ sqrt (fromIntegral n) + 1)]] goldbach :: (Integral t, Integral t1) => t1 -> (t, t1) goldbach n = goldbach' 3 (n - 3) where goldbach' a b | isPrime a &&...
Java
/** * Copyright (c) 2013, Yahoo! Inc. All rights reserved. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms */ package visualoozie.api; public class WorkflowNode { public enum NodeType{ START , KILL , DECISION , FORK , JOIN ...
Java
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_file_execl_43.cpp Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-43.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: file Read input from a file * GoodSou...
Java
INSTALL_DIR=usr/local/lib DEPS="coreutils" "sudo" REBARPROFILE ?= default include ../../config.mk include ../../_build/${REBARPROFILE}/lib/fifo_utils/priv/pkgng.mk .PHONY: prepare prepare: -rm -r $(STAGE_DIR)/$(INSTALL_DIR)/$(COMPONENT_INTERNAL) -rm $(STAGE_DIR)/+* -rm $(STAGE_DIR)/plist mkdir -p $(STAGE_DIR)/...
Java
/*- * Copyright (c) 1996-1999 * Kazutaka YOKOTA (yokota@zodiac.mech.utsunomiya-u.ac.jp) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain th...
Java
call this commnad yii migrate --migrationPath=@yii/rbac/migrations In case of yii2-app-base template, from which I have created my application, there is a config/console.php configuration file where the authManager needs to be declared. It is not sufficient to have it in the config/web.php declared only. 'authMana...
Java
// +build l476xx // Peripheral: CAN_TxMailBox_Periph Controller Area Network TxMailBox. // Instances: // Registers: // 0x00 32 TIR CAN TX mailbox identifier register. // 0x04 32 TDTR CAN mailbox data length control and time stamp register. // 0x08 32 TDLR CAN mailbox data low register. // 0x0C 32 TDHR CAN ma...
Java
""" Vision-specific analysis functions. $Id: featureresponses.py 7714 2008-01-24 16:42:21Z antolikjan $ """ __version__='$Revision: 7714 $' from math import fmod,floor,pi,sin,cos,sqrt import numpy from numpy.oldnumeric import Float from numpy import zeros, array, size, empty, object_ #import scipy try: import p...
Java
<?php use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model common\models\Offer */ $this->title = $model->id; $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Offers'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="offer-view"> ...
Java
/* $OpenBSD: isp_sbus.c,v 1.7 1999/03/25 22:58:37 mjacob Exp $ */ /* release_03_25_99 */ /* * SBus specific probe and attach routines for Qlogic ISP SCSI adapters. * * Copyright (c) 1997 by Matthew Jacob * NASA AMES Research Center * All rights reserved. * * Redistribution and use in source and binary forms, wit...
Java
/* * Copyright (C) 2001 Peter Kelly (pmk@post.com) * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) * Copyright (C) 2003, 2005, 2006, 2008 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or ...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_45) on Tue Apr 17 08:41:58 IDT 2018 --> <title>DNXConstants.PRESERVATIONLEVEL</title> <meta name="date" content="2018-04-17"> <link rel="styles...
Java
import { takeLatest, call, put } from 'redux-saga/effects'; import { gql } from 'react-apollo'; import { push } from 'react-router-redux'; import jwtDecode from 'jwt-decode'; import { setJwtToken } from '../../utils/auth'; import { bootstrap } from '../../utils/sagas'; import { registerError, registerSuccess } from '....
Java
<!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> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <t...
Java
<!doctype html> <html> <head> <title>LazyLoad Test</title> <style type="text/css"> fieldset { border: 1px solid #afafaf; margin-bottom: 1em; } .log { font: 10pt Consolas, Monaco, fixed; width: 100%; } #css-status { backgro...
Java
$(function () { var colors = Highcharts.getOptions().colors, categories = ['已关闭', 'NEW', '已解决'], name = 'Browser brands', data = [{ y: 290, color: colors[0], drilldown: { name: 'close bug version', ...
Java
/* * This file is part of the MIAMI framework. For copyright information, see * the LICENSE file in the MIAMI root folder. */ /* * File: TemplateExecutionUnit.h * Author: Gabriel Marin, mgabi99@gmail.com * * Defines data structure to hold information about the use pattern of an * execution unit type as part o...
Java
# # product import logging from django.contrib import messages from django.contrib.auth.decorators import user_passes_test from django.urls import reverse from django.http import HttpResponseRedirect from django.shortcuts import render from dojo.utils import add_breadcrumb from dojo.forms import ToolTypeForm from doj...
Java
// Copyright 2013 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. #include <stddef.h> #include <stdint.h> #include "base/bind.h" #include "base/macros.h" #include "base/message_loop/message_loop.h" #include "base/run_lo...
Java
<?php namespace BackEnd\Form; use Zend\Form\Form; use Zend\InputFilter\Factory as InputFactory; use Zend\InputFilter\InputFilter; class LoginForm extends Form { protected $inputFilter; public function __construct(){ parent::__construct('login-form'); $this->setAttribute('me...
Java
module UI.Widget.List ( listWidget ) where import Reactive.Banana import Reactive.Banana.Extra import Reactive.Banana.Frameworks import UI.TclTk import UI.TclTk.AST import UI.TclTk.Builder import UI.Widget -- | List widget listWidget :: Frameworks t => Event t [a] -> GUI t p (TkName, Event t (Int,a)) listWidg...
Java
// Copyright 2019 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. #ifndef MEDIA_VIDEO_SUPPORTED_VIDEO_DECODER_CONFIG_H_ #define MEDIA_VIDEO_SUPPORTED_VIDEO_DECODER_CONFIG_H_ #include <vector> #include "base/containers/...
Java
/* * Copyright (c) 2016, 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. * */ #include <pr...
Java
# -*-coding:Utf-8 -* # Copyright (c) 2010-2017 LE GOFF Vincent # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # ...
Java
#This is where the tests go.
Java
import FontAwesome from '@expo/vector-icons/build/FontAwesome'; import MaterialIcons from '@expo/vector-icons/build/MaterialIcons'; import AsyncStorage from '@react-native-async-storage/async-storage'; import { useFocusEffect } from '@react-navigation/native'; import { StackNavigationProp } from '@react-navigation/stac...
Java
using System; namespace DistributedPrimeCalculatorApp { public class MessageTypes { public const int Terminate = 0; //tells the prime worker to stop public const int Start = 1; //initialize the prime workers public const int ReplyBatch = 2; //the main worker sends a batch of numbers public const int Reque...
Java
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import "MockORKTask.h" #import "MockTrackedDataStore.h" #import "MockAppInfoDelegate.h" #import "MockKeychainWrapper.h" #import "BridgeSDKTestable.h"
Java
/*! * Bootstrap v2.3.2 * * Copyright 2012 Twitter, Inc * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world @twitter by @mdo and @fat. */ .clearfix { *zoom: 1; } .clearfix:before, .clearfix:after { display: table; conte...
Java
#ifndef ENTRY_H #define ENTRY_H #include "Object.h" #include "CompiledCode.h" #include "String.h" #define ENTRY_MAX_ARGS_SIZE 16 typedef struct { _Bool isHandle; union { Value value; Object *handle; }; } EntryArg; typedef struct { size_t size; EntryArg values[ENTRY_MAX_ARGS_SIZE]; } EntryArgs; Value invokeMeth...
Java
// Copyright (c) 2019 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. #ifndef QUICHE_QUIC_QBONE_QBONE_CLIENT_INTERFACE_H_ #define QUICHE_QUIC_QBONE_QBONE_CLIENT_INTERFACE_H_ #include <cstdint> #include "absl/strings/st...
Java
#ifndef SEQUENCE_INDEX_DATABASE_H_ #define SEQUENCE_INDEX_DATABASE_H_ #include <fstream> #include <iostream> #include <vector> #include <assert.h> #include <stdlib.h> #include <sstream> #include <algorithm> #include "Types.h" #include "DNASequence.h" #include "utils/StringUtils.h" using namespace std; #define SEQUEN...
Java
/* Copyright (C) 2013-2014 by Kristina Simpson <sweet.kristas@gmail.com> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any pur...
Java
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DataKinds #-} module React.Flux.Mui.RadioButton.RadioButtonGroup where import Protolude import Data.Aeson import Data.Aeson.Casing import Data.String (String) import React.Flux import React.Flux.Mui.Types import React.Flux.Mui.Util data ...
Java
YUI.add('enc-utf16-test', function (Y) { var C = CryptoJS; Y.CryptoJSTestSuite.add(new Y.Test.Case({ name: 'Utf16', testStringify1: function () { Y.Assert.areEqual('z', C.enc.Utf16.stringify(C.lib.WordArray.create([0x007a0000], 2))); }, testStringify2: fu...
Java
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2012-2021 SoftBank Robotics. All rights reserved. # Use of this source code is governed by a BSD-style license (see the COPYING file). """ This package contains the qibuild actions. """ from __future__ import absolute_import from __future__ import unicode_li...
Java
package com.navisens.pojostick.navishare; import com.navisens.motiondnaapi.MotionDna; import com.navisens.pojostick.navisenscore.*; import java.util.HashSet; import java.util.Map; import java.util.Set; /** * Created by Joseph on 11/30/17. * <p> * NaviShare provides functionality for communicating with other d...
Java
# @desc makefile for Login # @author viticm<viticm.ti@gmail.com> # @date 2013-06-25 20:00:13 include ../../premake.mk CFLAGS = -I$(BASEDIR)/Login/Main -I$(BASEDIR)/Login/DB -I$(BASEDIR)/Login/Packets -I$(BASEDIR)/Login/Process -I$(BASEDIR)/Login/Player -I$(BASEDIR)/Login $(SERVER_BASE_INCLUDES) LDFLAGS = DIRS = OBJ...
Java
# $FreeBSD$ PROG= juggle NO_MAN= WARNS?= 3 DPADD= ${LIBPTHREAD} LDADD= -lpthread .include <bsd.prog.mk>
Java
<?php // WARNING, this is a read only file created by import scripts // WARNING // WARNING, Changes made to this file will be clobbered // WARNING // WARNING, Please make changes on poeditor instead of here // // ?> subject: (opomnik) {if:transfer.files>1}Datoteke, pripravljene{else}Datoteka, pripravljena{endif} z...
Java
-- | -- Module: Threshold -- Description: Time integrated threshold functions -- Copyright: (c) 2013 Tom Hawkins & Lee Pike -- -- Time integrated threshold functions typically used in condition monitoring. module Language.Atom.Common.Threshold ( boolThreshold , doubleThreshold ) where import Language.Atom.Expre...
Java
// // Copyright (c) 2004-2021 Jaroslaw Kowalski <jaak@jkowalski.net>, Kim Christensen, Julian Verdurmen // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // * Redistributions of s...
Java
require "lita" Lita.load_locales Dir[File.expand_path( File.join("..", "..", "locales", "*.yml"), __FILE__ )] require 'lita/handlers/markov' # Lita::Handlers::Markov.template_root File.expand_path( # File.join("..", "..", "templates"), # __FILE__ # )
Java
# ***** BEGIN LICENSE BLOCK ***** # Version: MPL 1.1/GPL 2.0/LGPL 2.1 # # The contents of this file are subject to the Mozilla Public License Version # 1.1 (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.mozilla.org/MPL/ # # Softwa...
Java
<?php //AJAX Poll System Hack Start - 5:03 PM 3/24/2007 $language['POLL_ID']='الرقم'; $language['LATEST_POLL']='آخر استفتاء'; $language['CAST_VOTE']='قدم صوتي'; $language['FETCHING_RESULTS']='جلب نتائج الاستفتاء الرجاء الانتظار'; $language['POLL_TITLE']='عنوان الاستفتاء'; $language['POLL_TITLE_MISSING']='عنوان ا...
Java
package org.mafagafogigante.dungeon.stats; import org.mafagafogigante.dungeon.game.Id; import org.jetbrains.annotations.NotNull; import java.io.Serializable; /** * CauseOfDeath class that defines what kind of death happened and the ID of the related Item or Spell. */ public class CauseOfDeath implements Serializa...
Java
--- title: Towers of Hanoi id: 5951ed8945deab770972ae56 challengeType: 5 isHidden: false forumTopicId: 302341 --- ## Description <section id='description'> Solve the <a href="https://en.wikipedia.org/wiki/Towers_of_Hanoi" title="wp: Towers_of_Hanoi" target="_blank">Towers of Hanoi</a> problem.</p> Your solution should...
Java
// Benoit 2011-05-16 #include <ros/node_handle.h> #include <ros/subscriber.h> #include <ros/rate.h> #include <eu_nifti_env_msg_ros/RequestForUUIDs.h> #include "NIFTiROSUtil.h" #include "UUIDsManager.h" namespace eu { namespace nifti { namespace ocu { const char* UUIDsManager::T...
Java
// Copyright (c) 2021 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. #ifndef BASE_ALLOCATOR_PARTITION_ALLOCATOR_RESERVATION_OFFSET_TABLE_H_ #define BASE_ALLOCATOR_PARTITION_ALLOCATOR_RESERVATION_OFFSET_TABLE_H_ #includ...
Java
package net.jloop.rejoice; import net.jloop.rejoice.types.Symbol; import net.jloop.rejoice.types.Type; import java.util.ArrayList; import java.util.Iterator; import java.util.List; public class MacroHelper { public static List<Value> collect(Env env, Iterator<Value> input, Symbol terminator) { List<Valu...
Java
import React from "react"; import { Text, View } from "react-native"; import { defaultProps, propTypes } from "./caption-prop-types"; import styles from "./styles"; const renderCredits = (style, credits) => { if (!credits || credits === "") { return null; } return ( <Text style={[styles.text, styles.cred...
Java
# clojure-stemmer A Clojure version of the [porter stemming](http://tartarus.org/martin/PorterStemmer/). Use the ruby version [here](https://github.com/raypereda/stemmify/blob/master/lib/stemmify.rb) to do the contrast test. This is an open source program, you can copy it, modified it or redistribute it, but must c...
Java
<h1>Header</h1> <p>Now, let's try something <em>inline</em>, to see if it works</p> <p>Blah blah blah <a href="http://www.slashdot.org">http://www.slashdot.org</a></p> <ul> <li>Basic list</li> <li>Basic list 2</li> </ul> <p>addss</p> <ul> <li>Lazy list</li> </ul> <p>An <a href="http://example.com" title="Title">example...
Java
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace yii\db; /** * SchemaBuilderTrait contains shortcut methods to create instances of [[ColumnSchemaBuilder]]. * * These can be used in database migrations to...
Java
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <title>Document Info and Metadata - ...
Java
import Control.Monad (when) import Distribution.Simple import System.Directory (doesFileExist) import System.Process (readProcess) import Data.ByteString.Char8 as BS gitVersion :: IO () gitVersion = do let filename = "app/Internal/Version.hs" ...
Java
module Vector where data Vec = V !Int !Int deriving (Show, Eq) instance Num Vec where V x1 y1 + V x2 y2 = V (x1+x2) (y1+y2) V x1 y1 - V x2 y2 = V (x1-x2) (y1-y2) V x1 y1 * V x2 y2 = V (x1*x2) (y1*y2) abs (V x y) = V (abs x) (abs y) signum (V x y) = V (signum x) (signum y) fromInteger x = V (fromInteger x)...
Java
### # Copyright (c) 2005, Jeremiah Fincher # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # this list of conditi...
Java
/** * Copyright (c) 2019, Łukasz Marcin Podkalicki <lpodkalicki@gmail.com> * ESP8266/005 * Blinky example using pure ESP8266 Non-OS SDK. */ #include "ets_sys.h" #include "osapi.h" #include "gpio.h" #include "os_type.h" #include "user_config.h" #define LED_PIN (2) static volatile os_timer_t blinky_timer; static ...
Java
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /** Get all roles */ $authManager = Yii::$app->authManager; ?> <div class="user-assignment-form"> <?php $form = ActiveForm::begin(); ?> <?= Html::activeHiddenInput($formModel, 'userId')?> <label class="control-label"><?=$formModel->attributeLabels()['roles'...
Java
<!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><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Control.Lens.Internal.Getter</title><link href="ocean.css" rel="stylesheet...
Java
// Copyright (c) 2012 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. // IPC messages for resource loading. // // NOTE: All messages must send an |int request_id| as their first parameter. // Multiply-included message f...
Java