code
stringlengths
4
1.01M
language
stringclasses
2 values
cask 'feeder' do version '3.6.8' sha256 '4399609c1b04b1b92aa51bf9c240fc7dfec49e534eae014dbe750e7c7bbdfd2d' url "https://reinventedsoftware.com/feeder/downloads/Feeder_#{version}.dmg" appcast "https://reinventedsoftware.com/feeder/downloads/Feeder#{version.major}.xml" name 'Feeder' homepage 'https://reinven...
Java
{-# LANGUAGE TemplateHaskell, QuasiQuotes, OverloadedStrings #-} module Handler.Root where import Foundation -- This is a handler function for the GET request method on the RootR -- resource pattern. All of your resource patterns are defined in -- config/routes -- -- The majority of the code you will write in Yesod l...
Java
<?php /** * MtMail - e-mail module for Zend Framework * * @link http://github.com/mtymek/MtMail * @copyright Copyright (c) 2013-2017 Mateusz Tymek * @license BSD 2-Clause */ namespace MtMail\Factory; use Interop\Container\ContainerInterface; use MtMail\ComposerPlugin\DefaultHeaders; class DefaultHeaders...
Java
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ Partial Class Form1 Inherits System.Windows.Forms.Form 'Form overrides dispose to clean up the component list. <System.Diagnostics.DebuggerNonUserCode()> _ Protected Overrides Sub Dispose(ByVal disposing As Boolean) Try ...
Java
// This file was procedurally generated from the following sources: // - src/async-generators/yield-as-identifier-reference-escaped.case // - src/async-generators/syntax/async-class-expr-method.template /*--- description: yield is a reserved keyword within generator function bodies and may not be used as an identifier ...
Java
/***************************************************************************************** * * Portable classes for the HSFC * These are (semi-)portable representations of a state that can be serialised * and loaded between any HSFC instances loaded with the same GDL (we hope!!!). * ******************************...
Java
#!/usr/bin/env python #Copyright (c) <2015>, <Jaakko Leppakangas> #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 #...
Java
# Customize below path information #TET_INSTALL_PATH=/scratchbox/TETware CURRENT_USER=`echo $HOME` TET_INSTALL_PATH=$CURRENT_USER/sbs/TETware # temporary fix for SPRC if [ "$TET_ROOT_DIR" != "" ]; then TET_INSTALL_PATH=$TET_ROOT_DIR fi TET_SIMUL_PATH=$TET_INSTALL_PATH/tetware-simulator TET_TARGET_PATH=$TET_INSTA...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_22) on Tue Mar 08 15:19:00 PST 2011 --> <TITLE> Uses of Class com.perforce.p4java.ant.tasks.ServerTask.GlobalOption (P4Ant) </TITLE> <META NAME="dat...
Java
L.CommunistWorker = L.AbstractWorker.extend({ statics: { // number of web workers, not using web workers when falsy NUM_WORKERS: 2 }, initialize: function (workerFunc) { this.workerFunc = workerFunc; }, onAdd: function (map) { this._workers = L.CommunistWorker.crea...
Java
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace nora.clara.machine { public enum Event { OPEN_REQUEST, ACTION_REQUEST, DEATH_REQUEST, CONNECTED_TO_STEAM, PLAYING_STATE_OPENED, PLAYI...
Java
About ===== The 'reproject' package is a Python package to reproject astronomical images using various techniques via a uniform interface. By *reprojection*, we mean the re-gridding of images from one world coordinate system to another (for example changing the pixel resolution, orientation, coordinate system). Curren...
Java
# -*- coding: utf-8 -*- """ Pygments HTML formatter tests ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2006-2009 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import os import re import unittest import StringIO import tempfile from os.path import join, dirname, ...
Java
/* * Copyright (c) 2009-2010 jMonkeyEngine * 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
<?php namespace Nether\Object\Meta; use Attribute; use Nether\Object\Prototype\AttributeInterface; use Nether\Object\Prototype\PropertyAttributes; #[Attribute(Attribute::TARGET_PROPERTY)] class PropertyOrigin implements AttributeInterface { /*// @date 2021-08-05 @related Nether\Object\Prototype::__Construct when att...
Java
#!/usr/bin/perl # # Adduser script # Rootnode, http://rootnode.net # # Copyright (C) 2012 Marcin Hlybin # All rights reserved. # # Get user data from signup database # Create PAM+Satan user # Insert user data into adduser database # Assign servers to user # Create containers with lxc-add remote script use warnings; u...
Java
/** * Copyright (c) 2013, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * https://raw.github.com/facebook/regenerator/master/LICENSE file. An * additional grant of patent rights can be found in the PATENTS file in * the same directory. */ var as...
Java
{-- Copyright (c) 2014-2020, Clockwork Dev Studio 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 a...
Java
#ifndef AOS_COMMON_STL_MUTEX_H_ #define AOS_COMMON_STL_MUTEX_H_ #include <mutex> #include "aos/linux_code/ipc_lib/aos_sync.h" #include "aos/common/logging/logging.h" #include "aos/common/type_traits.h" #include "aos/common/macros.h" namespace aos { // A mutex with the same API and semantics as ::std::mutex, with th...
Java
#pragma once //----------------------------------------------------------------------------------------------------- /* NAMESPACE::CLASS DESC Copyright 2015 - See license file LICENSE.txt */ //----------------------------------------------------------------------------------------------------- names...
Java
{% extends "fieldsight/fieldsight_base.html" %} {% load i18n staticfiles %} {% load filters %} {% block content %} <div id="main-content" class="padding"> {% if messages %} {% for message in messages %} <div class="alert alert-{% if message.tags %}{{ message.tags }}{% else %}info{% endif %}"> <s...
Java
/* * Software written by Jared Bruni https://github.com/lostjared This software is dedicated to all the people that experience mental illness. Website: http://lostsidedead.com YouTube: http://youtube.com/LostSideDead Instagram: http://instagram.com/lostsidedead Twitter: http://twitter.com/jaredbruni Faceboo...
Java
class Gosec < Formula desc "Golang security checker" homepage "https://securego.io/" url "https://github.com/securego/gosec/archive/v2.7.0.tar.gz" sha256 "fd0b1ba1874cad93680c9e398af011560cd43b638c2b8d34850987a4cf984ba0" license "Apache-2.0" head "https://github.com/securego/gosec.git" bottle do sha2...
Java
var http = require('http') var url = require('url') var path = require('path') var sleep = require('sleep-ref') var Router = require("routes-router") var concat = require('concat-stream') var ldj = require('ldjson-stream') var manifest = require('level-manifest') var multilevel = require('multilevel') var extend = requ...
Java
/** * The main application class. An instance of this class is created by app.js when it calls * Ext.application(). This is the ideal place to handle application launch and initialization * details. * * */ Ext.define('Sample.Application', { extend: 'Devon.App', name: 'Sample', requires:[ 'Samp...
Java
package com.glob3mobile.vectorial.processing; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Comparator; import java.util.List; import com.glob3mobile.utils.Progress; import com.glob3mobile.vectorial.lod.PointFeatureLODStorage; import com.glob3mobile.vectorial.lod.mapd...
Java
// Copyright (C) 2018 Andrew Paprocki. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-date.parse es6id: 20.3.3.2 description: > Date.parse return value is limited to specified time value maximum range info: | Date.parse ( string ) parse interprets the...
Java
package ru.biocad.ig.alicont.conts.simple import ru.biocad.ig.alicont.algorithms.simple.SemiglobalAlignment import ru.biocad.ig.alicont.conts.SimpleAlicont /** * Created with IntelliJ IDEA. * User: pavel * Date: 27.11.13 * Time: 23:37 */ class AlicontSemiglobal(maxheight : Int, query : String, gap : Double, scor...
Java
#include <catch.hpp> #include <rapidcheck/catch.h> using namespace rc; TEST_CASE("scaleInteger") { prop("for uint32_t, equal to naive way", [] { const auto x = *gen::arbitrary<uint32_t>(); const auto size = *gen::nonNegative<int>(); RC_ASSERT(gen::detail::scaleInteger(x, size) == ...
Java
// ------------------------------------------------------------------------------ // <copyright from='2002' to='2002' company='Scott Hanselman'> // Copyright (c) Scott Hanselman. All Rights Reserved. // </copyright> // ------------------------------------------------------------------------------ // // Scott Han...
Java
#ifndef EXTRACTION_WAY_HPP #define EXTRACTION_WAY_HPP #include "extractor/guidance/road_classification.hpp" #include "extractor/travel_mode.hpp" #include "util/guidance/turn_lanes.hpp" #include "util/typedefs.hpp" #include <string> #include <vector> namespace osrm { namespace extractor { namespace detail { inline vo...
Java
#include <math.h> #include "evas_common.h" #include "evas_blend_private.h" typedef struct _RGBA_Span RGBA_Span; typedef struct _RGBA_Edge RGBA_Edge; typedef struct _RGBA_Vertex RGBA_Vertex; struct _RGBA_Span { EINA_INLIST; int x, y, w; }; struct _RGBA_Edge { double x, dx; int i; }; struct _RGBA_Vertex ...
Java
/* * Copyright (c) 2013 Ambroz Bizjak * 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 conditio...
Java
/* Copyright (c) Citrix Systems Inc. * 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 o...
Java
# ***************************************************************************** # Copyright (c) 2020, Intel Corporation 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 sou...
Java
---@module fimbul.v35.material_template local material_template = {} function material_template:new(y) local neu = y or {} -- Do a deep resolve if neu.material then neu = neu.material end setmetatable(neu, self) self.__index = self neu.templatetype = "material" -- TODO: Check if ever...
Java
var crypto = require('crypto'); var Canvas = require('canvas'); var _ = require('lodash'); var bu = require('./bufutil'); var fmt = require('util').format; var unpack = require('./unpack'); var bright = require('./bright'); function fprint(buf, len) { if (len > 64) throw new Error(fmt("sha512 can only generate 64B ...
Java
<?php namespace AppZap\PHPFramework\Tests\Functional\Testapp\Controller; use AppZap\PHPFramework\Mvc\AbstractController; class IndexController extends AbstractController { /** * @return string */ public function cli() { return ''; } }
Java
#include <mscorlib/System/Runtime/Serialization/mscorlib_System_Runtime_Serialization_SerializationObjectManager.h> #include <mscorlib/System/mscorlib_System_Type.h> #include <mscorlib/System/mscorlib_System_String.h> namespace mscorlib { namespace System { namespace Runtime { namespace Serialization { ...
Java
/* This file is a part of libcds - Concurrent Data Structures library Version: 2.0.0 (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2014 Distributed under the BSD license (see accompanying file license.txt) Source code repo: http://github.com/khizmax/libcds/ Download: http://source...
Java
var compilerSupport=require('../../src/compilerSupport');var main = function () { var __builder = new compilerSupport.TaskBuilder(), __state = 0, __continue = __builder.CONT, __ex; var data; return __builder.run(function () { switch (__state) { case 0: { data = 12345; ...
Java
package test import ( "github.com/tidepool-org/platform/config" "github.com/tidepool-org/platform/log" "github.com/tidepool-org/platform/version" ) type Provider struct { VersionReporterInvocations int VersionReporterStub func() version.Reporter VersionReporterOutputs []version.Reporter VersionRepor...
Java
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/epoll.h> #include <arpa/inet.h> #define BUFF_SIZE 1024 int main(int argc, const char *argv[]) { int i = 0; char buff[BUFF_SIZE]; ssize_t msg_len = 0; int srv_fd ...
Java
// (c) 2010-2014 IndiegameGarden.com. Distributed under the FreeBSD license in LICENSE.txt using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute va...
Java
/* * The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. * * Find the sum of all the primes below two million. */ #include <stdio.h> #include <stdint.h> #include "euler.h" #define PROBLEM 10 int main(int argc, char **argv) { uint64_t sum = 0, number = 0; do { number++; if(is_prime(numb...
Java
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text; namespace Mkko.Configuration { [ConfigurationCollection(typeof(ExecutionEnvironmentSettings), AddItemName = "executionEnvironment", CollectionType = ConfigurationElementCollectionType.BasicMap)] p...
Java
import pytest import urllib.error from urlpathlib import UrlPath def test_scheme(): # does not raise NotImplementedError UrlPath('/dev/null').touch() def test_scheme_not_supported(): with pytest.raises(NotImplementedError): UrlPath('http:///tmp/test').touch() def test_scheme_not_listed(): ...
Java
#region Copyright notice /** * Copyright (c) 2018 Samsung Electronics, Inc., * 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 co...
Java
require "language/node" class HttpServer < Formula desc "Simple zero-configuration command-line HTTP server" homepage "https://github.com/http-party/http-server" url "https://registry.npmjs.org/http-server/-/http-server-13.0.1.tgz" sha256 "35e08960062d766ad4c1e098f65b6e8bfb44f12516da90fd2df9974729652f03" lic...
Java
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Ocronet.Dynamic.Recognizers; using Ocronet.Dynamic.OcroFST; using Ocronet.Dynamic; using Ocronet.Dynamic.ImgLib; using Ocronet.Dynamic.Interfaces; using Ocronet.Dynamic.Utils; using Ocronet.Dynamic.IOData; using System.IO; usin...
Java
class Opusfile < Formula desc "API for decoding and seeking in .opus files" homepage "https://www.opus-codec.org/" url "https://archive.mozilla.org/pub/opus/opusfile-0.11.tar.gz" sha256 "74ce9b6cf4da103133e7b5c95df810ceb7195471e1162ed57af415fabf5603bf" revision 1 bottle do cellar :any rebuild 1 ...
Java
cask 'opera-beta' do version '50.0.2762.42' sha256 '0ae6866beb0047a2aebd22df7d2638f2d95ad8c08227879905d0e96e1add2235' url "https://get.geo.opera.com/pub/opera-beta/#{version}/mac/Opera_beta_#{version}_Setup.dmg" name 'Opera Beta' homepage 'https://www.opera.com/computer/beta' auto_updates true app 'Ope...
Java
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2016 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that th...
Java
# coding: utf8 from __future__ import unicode_literals from flask import abort, make_response, request from flask_api.decorators import set_renderers from flask_api import exceptions, renderers, status, FlaskAPI import json import unittest app = FlaskAPI(__name__) app.config['TESTING'] = True class JSONVersion1(ren...
Java
/* * Copyright 2016 Skynav, Inc. All rights reserved. * Portions Copyright 2009 Extensible Formatting Systems, Inc (XFSI). * * 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 c...
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>CLI - bossing Varnish around &mdash; Varnish vers...
Java
// EarthShape.java // See copyright.txt for license and terms of use. package earthshape; import java.awt.BorderLayout; import java.awt.Cursor; import java.awt.Image; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.InputEvent; import java.awt.eve...
Java
var searchData= [ ['lcd_2ec',['lcd.c',['../lcd_8c.html',1,'']]], ['lcd_2eh',['lcd.h',['../lcd_8h.html',1,'']]], ['light_2ec',['light.c',['../light_8c.html',1,'']]], ['light_2eh',['light.h',['../light_8h.html',1,'']]] ];
Java
/* Copyright (c) 2014, Lars Brubaker 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 following ...
Java
using System; using System.Reflection; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace LabVIEW_CLI { class Program { static bool connected = false; static bool stop = false; static int Main(string[] args)...
Java
from celery.task import Task import requests class StracksFlushTask(Task): def run(self, url, data): requests.post(url + "/", data=data)
Java
/* * Ferox, a graphics and game library in Java * * Copyright (c) 2012, Michael Ludwig * 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 t...
Java
module Convert.LRChirotope where -- standard modules import Data.List import qualified Data.Map as Map import Data.Maybe import qualified Data.Set as Set -- local modules import Basics import Calculus.FlipFlop import Helpful.General --import Debug.Trace {--------------------------------------------------------------...
Java
### Some tips for using linspecer ### --------------------------------- I personally like the first color to be black, so I begin with: colors = [0,0,0; linspecer(10)]; which creates an 11x3 matrix of RGB colors. Note: you must add the linspecer to your path via: addpath('~\path-to-linspecer-directory/linspecer'...
Java
var files = [ [ "Code", "dir_a44bec13de8698b1b3f25058862347f8.html", "dir_a44bec13de8698b1b3f25058862347f8" ] ];
Java
{-# LANGUAGE FlexibleContexts #-} module BRC.Solver.Error where import Control.Monad.Error (Error(..), MonadError(..)) -- | Solver errors, really just a container for a possibly useful error message. data SolverError = SolverError String deriving (Eq, Ord) instance Show (SolverError) where show (SolverError msg) ...
Java
package cocoonClient.Panels; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.Box; import javax.swing.BoxLayout; import javax.swing.JScrollPane; import javax....
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 (version 1.7.0_51) on Fri Mar 06 12:54:17 CET 2015 --> <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> <title>Trash.Mode</t...
Java
/** * Created on: Dec 7, 2013 */ package com.iteamsolutions.angular.models.atom import scalaz.{ Failure => _, Success => _, _ } /** * The '''Link''' type is the Domain Object Model representation of an * [[http://www.ietf.org/rfc/rfc4287.txt Atom Link]]. * * @author svickers * */ final case class Link ( ...
Java
package de.lman; import de.lman.engine.Colors; import de.lman.engine.Game; import de.lman.engine.InputState; import de.lman.engine.Keys; import de.lman.engine.Mouse; import de.lman.engine.math.Mat2f; import de.lman.engine.math.Scalar; import de.lman.engine.math.Transform; import de.lman.engine.math.Vec2f; import de.lm...
Java
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} module NW.Monster where import NW.Stats data MonsterClass = MCFighter | MCMage deriving (Eq, Show) data Monster = Monster { mClass :: MonsterClass , mName :: String , mStatsBase :: [Stat] , mLootBonus :: Int } deriving (Eq, Show) type Mons...
Java
package org.jvnet.jaxb2_commons.plugin.mergeable; import java.util.Arrays; import java.util.Collection; import javax.xml.namespace.QName; import org.jvnet.jaxb2_commons.lang.JAXBMergeStrategy; import org.jvnet.jaxb2_commons.lang.MergeFrom2; import org.jvnet.jaxb2_commons.lang.MergeStrategy2; import org.jvnet.jaxb2_c...
Java
using System; using System.Collections.Generic; using System.Drawing; using DevExpress.XtraBars; namespace bv.winclient.Core.TranslationTool { public partial class PropertyGrid : BvForm { public ControlDesigner SourceControl { get; private set; } public ControlModel Model { get; pr...
Java
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('freebasics', '0006_change_site_url_field_type'), ] operations = [ migrations.AddField( model_name='freebasicscon...
Java
// Copyright (c) 2019 ASMlover. 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 ofconditions and...
Java
<?php namespace SilverShop\ORM\FieldType; use SilverShop\Extension\ShopConfigExtension; use SilverStripe\Core\Convert; use SilverStripe\ORM\FieldType\DBVarchar; class ShopCountry extends DBVarchar { public function __construct($name = null, $size = 3, $options = []) { parent::__construct($name, $size...
Java
<!DOCTYPE html> <html lang="en" dir="ltr" xmlns:dc="http://purl.org/dc/terms/"> <head> <meta charset="utf-8" /> <meta name="generator" content="diff2html.py (http://git.droids-corp.org/gitweb/?p=diff2html)" /> <!--meta name="author" content="Fill in" /--> <title>HTML Diff futures/daytime_client.cpp<...
Java
def excise(conn, qrelname, tid): with conn.cursor() as cur: # Assume 'id' column exists and print that for bookkeeping. # # TODO: Instead should find unique constraints and print # those, or try to print all attributes that are not corrupt. sql = 'DELETE FROM {0} WHERE ctid =...
Java
<?php /* vim: set expandtab tabstop=4 shiftwidth=4: */ // +----------------------------------------------------------------------+ // | Artisan Smarty | // +----------------------------------------------------------------------+ // | PHP Version 4 ...
Java
/* * Copyright 2013 Toshiyuki Takahashi * * 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 lis...
Java
# frozen_string_literal: true require_relative '../helpers/load_file' module WavefrontCli module Subcommand # # Stuff to import an object # class Import attr_reader :wf, :options def initialize(calling_class, options) @calling_class = calling_class @wf = calling_class.wf...
Java
/* * Copyright (c) 2014 ASMlover. 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 ofconditions ...
Java
import datetime from django.utils import timezone from django.test import TestCase from django.urls import reverse from .models import Question class QuestionMethodTests(TestCase): def test_was_published_recently_with_future_question(self): """ was_published_recently() should return False for qu...
Java
class GetIplayer < Formula desc "Utility for downloading TV and radio programmes from BBC iPlayer" homepage "https://github.com/get-iplayer/get_iplayer" url "https://github.com/get-iplayer/get_iplayer/archive/v3.06.tar.gz" sha256 "fba3f1abd01ca6f9aaed30f9650e1e520fd3b2147fe6aa48fe7c747725b205f7" head "https:/...
Java
/* * (C) 2014,2015,2017 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/asn1_print.h> #include <botan/bigint.h> #include <botan/hex.h> #include <botan/der_enc.h> #include <botan/ber_dec.h> #include <botan/asn1_time.h> #include <botan/asn1_str.h> #include <botan/oi...
Java
package operations; import data.Collector; import graph.implementation.Edge; import utility.GraphFunctions; /** * Set the curve point to an ideal position. * If source and destination are equal, it would be a line. * If not, it is a noose on top of the vertex. */ public class O_RelaxEdge implements EdgeOperation...
Java
/* * Copyright (c) 2016, Linaro Limited * 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 conditi...
Java
# Gearman [![License](http://img.shields.io/badge/license-Simplified_BSD-blue.svg?style=flat)](LICENSE.txt) [![Go Doc](http://img.shields.io/badge/godoc-gearman-blue.svg?style=flat)](http://godoc.org/github.com/nathanaelle/gearman) [![Build Status](https://travis-ci.org/nathanaelle/gearman.svg?branch=master)](https://...
Java
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #pragma once #include "UnrealEd.h" #include "SoundMod.h" DECLARE_LOG_CATEGORY_EXTERN(LogSoundModImporter, Verbose, All); #include "SoundModImporterClasses.h"
Java
/** * @license AngularJS v1.3.0-build.2480+sha.fb6062f * (c) 2010-2014 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular, undefined) {'use strict'; /* jshint maxlen: false */ /** * @ngdoc module * @name ngAnimate * @description * * # ngAnimate * * The `ngAnimate` module provides...
Java
#!/usr/bin/env python # -*- coding: utf-8 -*- """--- Day 3: Perfectly Spherical Houses in a Vacuum --- Santa is delivering presents to an infinite two-dimensional grid of houses. He begins by delivering a present to the house at his starting location, and then an elf at the North Pole calls him via radio and tells hi...
Java
/** * @file * @brief test for access of http://embox.googlecode.com/files/ext2_users.img * * @author Anton Kozlov * @date 18.02.2013 */ #include <stdint.h> #include <errno.h> #include <fcntl.h> #include <unistd.h> #include <sys/stat.h> #include <security/smac/smac.h> #include <fs/vfs.h> #include <fs/fsop.h> ...
Java
package adf.launcher.connect; import adf.agent.office.OfficeAmbulance; import adf.control.ControlAmbulance; import adf.launcher.AbstractLoader; import adf.launcher.ConfigKey; import rescuecore2.components.ComponentConnectionException; import rescuecore2.components.ComponentLauncher; import rescuecore2.config.Config; i...
Java
<div ui-content-for="title"> <span>Detectors</span> </div> <div class="scrollable"> <div class="scrollable-content" ui-scroll-bottom="bottomReached()"> <div class="list-group"> <a ng-repeat="detector in detectors" href=""" class="list-group-item"> {{detector.name}} <i class="fa fa-chevron-right p...
Java
class SwiProlog < Formula desc "ISO/Edinburgh-style Prolog interpreter" homepage "http://www.swi-prolog.org/" url "http://www.swi-prolog.org/download/stable/src/swipl-7.4.2.tar.gz" sha256 "7f17257da334bc1e7a35e9cf5cb8fca01d82f1ea406c7ace76e9062af8f0df8b" bottle do sha256 "a03a0bde74e00d2c40b0a7735d46383b...
Java
/****************************************************************************** * The MIT License * Copyright (c) 2007 Novell Inc., www.novell.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 Sof...
Java
# # Autogenerated by Thrift Compiler (0.8.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # require 5.6.0; use strict; use warnings; use Thrift; use EDAMUserStore::Types; # HELPER FUNCTIONS AND STRUCTURES package EDAMUserStore::UserStore_checkVersion_args; use base qw(Class::Accessor); EDAMUs...
Java
// Copyright 2010 Google Inc. All Rights Reserved. // Refactored from contributions of various authors in strings/strutil.cc // // This file contains string processing functions related to // numeric values. #define __STDC_FORMAT_MACROS 1 #include "strings/numbers.h" #include <memory> #include <cassert> #include <ctyp...
Java
require "language/haskell" class Ghc < Formula include Language::Haskell::Cabal desc "Glorious Glasgow Haskell Compilation System" homepage "https://haskell.org/ghc/" url "https://downloads.haskell.org/~ghc/8.6.3/ghc-8.6.3-src.tar.xz" sha256 "9f9e37b7971935d88ba80426c36af14b1e0b3ec1d9c860f44a4391771bc07f23"...
Java
using System; using System.Text; using Microsoft.Extensions.Configuration; using NLog.Common; using NLog.Config; using NLog.LayoutRenderers; namespace NLog.Extensions.Logging { /// <summary> /// Layout renderer that can lookup values from Microsoft Extension Configuration Container (json, xml, ini) /// </...
Java