code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
var searchData=
[
['handler_5fallocator',['handler_allocator',['../classwebsocketpp_1_1transport_1_1asio_1_1handler__allocator.html',1,'websocketpp::transport::asio']]],
['hash32',['Hash32',['../classnfd_1_1name__tree_1_1Hash32.html',1,'nfd::name_tree']]],
['hash64',['Hash64',['../classnfd_1_1name__tree_1_1Hash64... | Java |
/*
* qrest
*
* Copyright (C) 2008-2012 - Frédéric CORNU
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later v... | Java |
package com.dotmarketing.servlets;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
import javax.servlet.ServletException;
import javax.servlet.Serv... | Java |
# Copyright (C) 2011-2012 Google Inc.
# 2016 YouCompleteMe contributors
#
# This file is part of YouCompleteMe.
#
# YouCompleteMe is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either versi... | Java |
<!-- resources/views/vendor/openpolice/nodes/2713-dept-page-calls-action.blade.php -->
<a class="btn btn-primary btn-lg"
href="/filing-your-police-complaint/{{ $d['deptRow']->dept_slug }}"
<?php /*
@if (in_array(substr($d['deptRow']->dept_slug, 0, 3), ['NY-', 'MA-', 'MD-', 'MN-', 'DC-']))
href="/filing-your-pol... | Java |
<?php
Prado::Using('Application.Engine.*');
class CombinedView extends TPage
{
public $text;
public $tiroText;
public function onLoad()
{
global $ABS_PATH,$USERS_PREFIX;
$this->text = TextRecord::finder()->findByPk($_GET['id']);
$this->tiroText = new TiroText($ABS_PATH.'/'.$USERS_PREFIX.'/'.$this->User->Na... | Java |
#if defined HAVE_CONFIG_H
#include "config.h"
#endif
#include <solver_core.hpp>
#include <triqs/operators/many_body_operator.hpp>
#include <triqs/hilbert_space/fundamental_operator_set.hpp>
#include <triqs/gfs.hpp>
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <iomanip>
//#incl... | Java |
#!/usr/bin/env python3
import os
import logging
import tempfile
import shutil
from graftm.sequence_search_results import SequenceSearchResult
from graftm.graftm_output_paths import GraftMFiles
from graftm.search_table import SearchTableWriter
from graftm.sequence_searcher import SequenceSearcher
from graftm.hmmsearch... | Java |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle ... | Java |
// Search script generated by doxygen
// Copyright (C) 2009 by Dimitri van Heesch.
// The code in this file is loosly based on main.js, part of Natural Docs,
// which is Copyright (C) 2003-2008 Greg Valure
// Natural Docs is licensed under the GPL.
var indexSectionsWithContent =
{
0: "000000000000000000000000000000... | Java |
/***********************************************************************
**
** Sturdy - note-taking app
** Copyright (C) 2016 Vladislav Tronko <innermous@gmail.com>
**
** Sturdy is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free So... | Java |
# Rain_Water_Trapping
def trappedWater(a, size) :
# left[i] stores height of tallest bar to the to left of it including itself
left = [0] * size
# Right [i] stores height of tallest bar to the to right of it including itself
right = [0] * size
# Initialize result
waterVol... | Java |
using System.Reflection;
using System.Runtime.CompilerServices;
namespace System.Security.Principal
{
public interface IIdentity
{
string AuthenticationType { get; }
bool IsAuthenticated { get; }
string Name { get; }
}
}
| Java |
/**
* Copyright (c) 2017 HES-SO Valais - Smart Infrastructure Laboratory (http://silab.hes.ch)
*
* This file is part of StructuredSimulationFramework.
*
* The StructuredSimulationFramework is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published b... | Java |
## Contribution
If you want to add any enhancement feature or have found any bug and want to work on it, please open a new issue regarding that and put a message "I would like to work on it." And make sure every pull request should reference to an issue.
#### Points on how to make pull request
* You need to fork this ... | Java |
#Region "Microsoft.VisualBasic::e7960fcc4cc15725cc863a98473d765c, ..\interops\visualize\Circos\Circos\TrackDatas\Adapter\Highlights\Repeat.vb"
' Author:
'
' asuka (amethyst.asuka@gcmodeller.org)
' xieguigang (xie.guigang@live.com)
' xie (genetics@smrucc.org)
'
' Copyrig... | Java |
var __v=[
{
"Id": 2046,
"Chapter": 630,
"Name": "c++",
"Sort": 0
}
] | Java |
/*
* $Revision: 2299 $
*
* last checkin:
* $Author: gutwenger $
* $Date: 2012-05-07 15:57:08 +0200 (Mon, 07 May 2012) $
***************************************************************/
/** \file
* \brief Declaration of class SplitHeuristic.
*
* \author Andrea Wagner
*
* \par License:
* This file ... | Java |
-----------------------------------
-- Area: Pashhow Marshlands [S]
-- Mob: Virulent Peiste
-- Note: PH for Sugaar
-----------------------------------
local ID = require("scripts/zones/Pashhow_Marshlands_[S]/IDs")
require("scripts/globals/mobs")
-----------------------------------
function onMobDeath(mob, player, isK... | 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_17) on Mon May 06 00:15:52 EDT 2013 -->
<title>Uses of Class org.spongycastle.asn1.x509.ReasonFlags</title>
<meta name="date" content="... | Java |
<?php
$plugin->version = 2012060700;
//EOF
| Java |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="fr">
<context>
<name></name>
<message id="id-app-launcher-name">
<location filename="asteroid-timer.desktop.h" line="6"/>
<source>Timer</source>
<translation>Timer</translation>
</message>
</context>
</T... | Java |
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#ifndef _DEFINES_H
#define _DEFINES_H
#include <AP_HAL_Boards.h>
// Just so that it's completely clear...
#define ENABLED 1
#define DISABLED 0
// this avoids a very common config error
#define ENABLE ENABLED
... | Java |
using System;
using System.Linq;
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using Geekbot.Core;
using Geekbot.Core.Database;
using Geekbot.Core.Database.Models;
using Geekbot.Core.ErrorHandling;
using Geekbot.Core.Extensions;
using Geekbot.Core.GuildSettingsManager;
using Geekbot.C... | Java |
class CreateIp4NetworkLocationJoinTable < ActiveRecord::Migration
def change
create_join_table :ip4_networks, :locations do |t|
t.index [:ip4_network_id,:location_id], unique: true, name: 'ip4_network_location'
end
end
end
| Java |
using System;
using System.Diagnostics.CodeAnalysis;
using JetBrains.Annotations;
using NSubstitute;
using NUnit.Framework;
using Ploeh.AutoFixture.NUnit3;
using Selkie.EasyNetQ;
using Selkie.NUnit.Extensions;
using Selkie.Services.Common.Messages;
using Selkie.Windsor;
namespace Selkie.Services.Racetracks.Tests
{
... | Java |
<!doctype html>
<html lang="{{ .Site.Language.Lang }}" class="no-js">
<head>
{{ partial "head.html" . }}
</head>
<body class="td-{{ .Kind }}">
<header>
{{ partial "navbar.html" . }}
</header>
<div class="container-fluid td-outer">
<div class="td-main">
<div class="row flex-xl-n... | Java |
// Copyright 2014 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... | Java |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2015 Sam Lantinga <slouken@libsdl.org>
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 u... | Java |
/**
* Hub Miner: a hubness-aware machine learning experimentation library.
* Copyright (C) 2014 Nenad Tomasev. Email: nenad.tomasev at gmail.com
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundatio... | Java |
---
title: "爬虫之 Scrapy 框架"
layout: post
date: 2018-02-24 22:48
tag:
- 爬虫
blog: true
author: Topaz
summary: "BeautifulSoup Xpath"
permalink: Spiders-Scrapy-01
---
<h1 class="title"> 爬虫之 Scrapy 框架 </h1>
<h2> Table of Contents </h2>
- [Scrapy 简介](#c1)
- [主要组件](#c2)
- [工作流程](#c3)
- [安装](#c4)
- [基本命令](#c5)
- [HtmlXpathSel... | Java |
@extends('admin.layout')
@section('styles')
<link href="/assets/css/pdfexport.css" rel="stylesheet">
@stop
@section('content')
<div class="container">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<p><a href="{{ url('admin/stavkeposla/show',[$evidenc... | Java |
/*
* Copyright (C) 2015 Bailey Forrest <baileycforrest@gmail.com>
*
* This file is part of CCC.
*
* CCC is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your op... | Java |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\Sparesused */
$this->title = 'Create Sparesused';
$this->params['breadcrumbs'][] = ['label' => 'Sparesuseds', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="sparesused-create">
<h1><?= Htm... | Java |
{% extends "base_nav.html" %}
{% load humanize %}
{% load i18n %}
{% load staticfiles %}
{% block "title" %}{% trans "Review Access Request" %}{% endblock %}
{% block "css" %}
<link href="{% static 'css/secrets.css' %}" rel="stylesheet">
{% endblock %}
{% block "content" %}
<script type="text/javascript">
$(function ()... | Java |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# TODO prog_base.py - A starting template for Python scripts
#
# Copyright 2013 Robert B. Hawkins
#
"""
SYNOPSIS
TODO prog_base [-h,--help] [-v,--verbose] [--version]
DESCRIPTION
TODO This describes how to use this script. This docstring
will be printed by ... | Java |
<!DOCTYPE html>
<html xml:lang="en-GB" lang="en-GB" xmlns="http://www.w3.org/1999/xhtml">
<head lang="en-GB">
<title>Ross Gammon’s Family Tree - SALTMARSH, Nellie</title>
<meta charset="UTF-8" />
<meta name ="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1" />
<meta name... | Java |
/*****************************************************************************
* Copyright (c) 2014-2020 OpenRCT2 developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
*
* OpenRCT2 is licensed under the GNU Gener... | Java |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Created by texi2html, http://www.gnu.org/software/texinfo/ -->
<head>
<title>Singular 2-0-4 Manual: D.5.8.6 is_reg</title>
<meta name="description" content="Singular 2-0-4 Manual: D.5.8.6 is_reg">
<meta n... | Java |
use vars qw(%result_texis %result_texts %result_trees %result_errors
%result_indices %result_sectioning %result_nodes %result_menus
%result_floats %result_converted %result_converted_errors
%result_elements %result_directions_text);
use utf8;
$result_trees{'top_node_normalization'} = {
'contents' => [
... | Java |
/* xoreos-tools - Tools to help with xoreos development
*
* xoreos-tools is the legal property of its developers, whose names
* can be found in the AUTHORS file distributed with this source
* distribution.
*
* xoreos-tools is free software; you can redistribute it and/or
* modify it under the terms of the GNU Ge... | Java |
/*
* dmfs - http://dmfs.org/
*
* Copyright (C) 2012 Marten Gajda <marten@dmfs.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published
* by the Free Software Foundation; either version 2 of the License,
* or (at your option... | Java |
<? include('global.php'); ?>
<? // asp2php (vbscript) converted on Sat Apr 25 20:59:49 2015
$CODEPAGE="1252";?>
<? require("Connections/connrumbo.php"); ?>
<?
$Siniestros__DDcia="%";
if (($_POST["Cia"]!=""))
{
$Siniestros__DDcia=$_POST["Cia"];
}
?>
<?
// $Siniestros is of type "ADODB.Recordset"
echo $MM_connru... | Java |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html >
<head><title>1.1.1.0 node_activity_vectors.py</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gu... | Java |
/*
Copyright (C) 2012 Statoil ASA, Norway.
The file 'config_content_node.h' is part of ERT - Ensemble based Reservoir Tool.
ERT is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either ... | Java |
package beseenium.controller.ActionFactory;
/** Copyright(C) 2015 Jan P.C. Hanson & BeSeen Marketing Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, o... | Java |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package proyectomio.controlador.operaciones;
import proyectomio.accesoDatos.Controlador_BD;
import proyectomio.modelo.Consulta;
/**
... | Java |
#include <cstdio>
#include <vector>
#include <utility>
#include <algorithm>
using namespace std;
pair<int, int> computeGreedyLongestPath(const vector<vector<int> > & adjList, int startV, const vector<int> & weightOfVertex);
int main(void)
{
int T, numV, numE, u, v, caseId;
vector<vector<int> > adjList;
vector<int... | Java |
<?php
// Copyright (c) Aura development team - Licensed under GNU GPL
// For more information, see licence.txt in the main folder
//
// This is a simple page to create accounts.
// Due to the need of reading conf files this script has to be located
// inside the Aura web folder, or you have to adjust some paths.
// --... | Java |
<!DOCTYPE html>
<html lang="fr">
<html>
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" href="./assets/css/mail.css"/>
</head>
<body bgcolor="#E6E6FA">
<?php include 'back-submit... | Java |
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<!-- ===========================================================================================
Instituto Municipal de Planeación y Competitividad de Torreón.
Al usar, estudiar y copiar está aceptando los términos de uso de la informaci... | Java |
# Daemonizable Commands for Symfony [](https://travis-ci.org/mac-cain13/daemonizable-command)
**A small bundle to create endless running commands with Symfony.**
These endless running commands are very easy to daemonize ... | Java |
{-# LANGUAGE ScopedTypeVariables #-}
import Bench
import Bench.Triangulations
main = print (qVertexSolBench trs)
| Java |
//
// Copyleft RIME Developers
// License: GPLv3
//
// 2013-04-18 GONG Chen <chen.sst@gmail.com>
//
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <rime/dict/table_db.h>
#include <rime/dict/user_db.h>
// Rime table entry format:
// phrase <Tab> code [ <Tab> weight ]
// for multi-sylla... | Java |
import React from 'react';
import { mount } from 'enzyme';
import { Link, HashRouter as Router } from 'react-router-dom';
import { Button } from 'react-bootstrap';
import BackHomeButton from '../BackHomeButton';
describe('<BackHomeButton/>', () => {
it('<BackHomeButton /> should render <Router/>', () => {
const ... | Java |
'use strict';
var Ose = require('ose');
var M = Ose.class(module, './index');
/** Docs {{{1
* @submodule bb.pagelet
*/
/**
* @caption Dashboard pagelet
*
* @readme
* Pagelet for creating dashboard content.
*
* @class bb.lib.pagelet.dashboard
* @type class
* @extends bb.lib.pagelet
*/
// Public {{{1
expor... | Java |
/*
* File: Queue.h
* Author: Sileno Brito
*
* Created on 2 de Setembro de 2013, 11:27
*/
#ifndef QUEUE_H
#define QUEUE_H
#include <ext/struct/Node.h>
#include <ext/struct/List.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct list queue;
struct EngineQueue {
queue * (*createEmpty)(in... | Java |
/*
*
* Mouse driver
*
*/
#include <kernel/system.h>
#include <kernel/logging.h>
#include <kernel/pipe.h>
#include <kernel/module.h>
#include <kernel/mouse.h>
#include <kernel/args.h>
static uint8_t mouse_cycle = 0;
static uint8_t mouse_byte[4];
#define PACKETS_IN_PIPE 1024
#define DISCARD_POINT 32
#define MOUSE... | Java |
#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
LL n,m,A,B,C;
LL solve1(LL x,LL y){
LL ans=0;
ans+=y*max(max(A,B),C);
if(x%2==1){
ans+=max((x-1)*(A+C)/2,(x-1)*B);
}else{
ans+=max((x-2)*(A+C)/2,(x-2)*B);
ans+=max(B,min(A,C));
}
return ans;
}
LL solve2(LL x,LL y){
LL ans=0;
ans+=x*min(mi... | Java |
package io.github.notsyncing.cowherd.files;
import io.github.notsyncing.cowherd.Cowherd;
import io.github.notsyncing.cowherd.commons.CowherdConfiguration;
import io.github.notsyncing.cowherd.commons.RouteType;
import io.github.notsyncing.cowherd.models.ActionMethodInfo;
import io.github.notsyncing.cowherd.models.Route... | Java |
/*
* Copyright 2014 Tilera Corporation. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, version 2.
*
* This program is distributed in the hope that it will ... | Java |
package com.limelight.binding.input.driver;
public interface UsbDriverListener {
void reportControllerState(int controllerId, short buttonFlags,
float leftStickX, float leftStickY,
float rightStickX, float rightStickY,
flo... | Java |
/* Project 16 Source Code~
* Copyright (C) 2012-2021 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover
*
* This file is part of Project 16.
*
* Project 16 is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free S... | Java |
namespace DataStoreLib.Utils
{
using System;
using System.Configuration;
using System.Diagnostics;
using System.Net;
using System.Net.Mail;
/// <summary>
/// This class use to send mails
/// </summary>
public class MailManager
{
/// <summary>
/// Send an email
... | Java |
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace TutorialMod.Tiles
{
public class TutorialBiomeTile : ModTile
{
public override void SetDefaults()
{
Main.tileSolid[Type] = true;... | Java |
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode fieldsfirst
package net.minecraft.src;
import java.util.List;
import java.util.Random;
import net.minecraft.client.Minecraft;
import org.lwjgl.input.Mou... | Java |
/*
* Copyright (c) 2014 Amahi
*
* This file is part of Amahi.
*
* Amahi is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* A... | Java |
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it w... | Java |
Resume Pertemuan 3 Keamanan Jaringan
<p align="center">
<img src="../../img/kj3.png" width="400px">
</p>
Latar Belakang Masalah
Semua yang terhubung dengan jaringan tentu tidak ada yang aman, pasti ada celah hacker untuk masuk ke dalam jaringan, hacker mempunyai yang namanya anatomi hacking yang berguna untuk pa... | Java |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>增加角色</title>
<link href="/Public/bootstrap-3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>... | Java |
<?php
/**
* Project form base class.
*
* @package fynance
* @subpackage form
* @author Your name here
*/
abstract class BaseFormPropel extends sfFormPropel
{
public function setup()
{
}
}
| Java |
package org.fnppl.opensdx.security;
/*
* Copyright (C) 2010-2015
* fine people e.V. <opensdx@fnppl.org>
* Henning Thieß <ht@fnppl.org>
*
* http://fnppl.org
*/
/*
* Software license
*
* As far as this file or parts of this file is/are software, rather than documentation, this software-... | Java |
/*<html><pre> -<a href="qh-merge.htm"
>-------------------------------</a><a name="TOP">-</a>
merge.h
header file for merge.c
see qh-merge.htm and merge.c
copyright (c) 1993-2003, The Geometry Center
*/
#ifndef qhDEFmerge
#define qhDEFmerge 1
/*============ -constants- ... | Java |
# d3-examples | Java |
# !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
# This file is machine-generated by lib/unicore/mktables from the Unicode
# database, Version 5.2.0. Any changes made here will be lost!
# !!!!!!! INTERNAL PERL USE ONLY !!!!!!!
# This file is for internal use by the Perl program only. The format and even
# the name or... | Java |
<?php
class Sign_in_with_model extends CI_Model {
public function __construct()
{
parent::__construct();
$this->load->database();
}
public function get_sign_with($name)
{
$this->db->select('setting, name');
$this->db->where('code', 'sign_in_with');
$this->db->where('name', $name);
$this->... | Java |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle... | Java |
<?php
namespace MCPETRADE\MultiTradeAPI\Commands;
use pocketmine\Player;
use pocketmine\command\CommandSender;
use pocketmine\utils\TextFormat as TE;
use MCPETRADE\MultiTradeAPI\MTAPI;
use MCPETRADE\MultiTradeAPI\Commands\BaseCommand;
Class FlyCommand extends BaseCommand
{
public function __construct(MTAPI $plu... | Java |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Gr... | Java |
package bpmn;
public class DataStore extends Artifact {
public DataStore() {
super();
}
public DataStore(int xPos, int yPos, String text) {
super();
setText(text);
}
public String toString() {
return "BPMN data store";
}
}
| Java |
<?php
/**
* @package Arastta eCommerce
* @copyright Copyright (C) 2015 Arastta Association. All rights reserved. (arastta.org)
* @credits See CREDITS.txt for credits and other copyright notices.
* @license GNU General Public License version 3; see LICENSE.txt
*/
class Affiliate {
pri... | Java |
#include "defs.h"
#include "fdefs.h"
#include <stdlib.h>
void
gasify(job)
char *job;
{
char command[MAXCOMM] ;
char g_type[MAXCOMM] ;
double temp_y ;
double temp_slope ;
double rho_shock ;
double temp_shock ;
double gas_frac ;
double rhobar ;
double metal ;
double rho ;
... | Java |
# -*- coding: utf-8 -*-
from exceptions import DropPage, AbortProcess
| Java |
# -*- coding: utf-8 -*-
import re
from django.utils.safestring import mark_safe
from django.contrib.admin.widgets import AdminFileWidget
from django.template.defaultfilters import slugify
from django.utils.encoding import smart_text
from unidecode import unidecode
from django.forms.widgets import FILE_INPUT_CONT... | Java |
package com.fomdeveloper.planket.injection;
import android.app.Application;
import android.content.Context;
import android.net.ConnectivityManager;
import com.fomdeveloper.planket.BuildConfig;
import com.fomdeveloper.planket.NetworkManager;
import com.fomdeveloper.planket.bus.RxEventBus;
import com.fomdeveloper.plan... | Java |
/*
** AACPlayer - Freeware Advanced Audio (AAC) Player for Android
** Copyright (C) 2011 Spolecne s.r.o., http://www.biophysics.com
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either... | Java |
/*Hoi André,
Na iets meer gedachten hierover zou ik de interface een tikkeltje willen aanpassen, om iets meer aan te sluiten bij de DPPP-filosofie. Ik ben het aan het implementeren, kan zijn dat het niet afkomt tijdens de vlucht. Ik stuur m'n idee nu vast zodat jij niet onnodig werk zit te doen.
Stel dat jouw kl... | Java |
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be use... | Java |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license a... | Java |
package asdf.test;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Stack;
public class Solution {
/**
* (反转单词串 ) Given an input string, reverse the string word by word.
*
* For example, Given s = "the sky is blue", return "blue is sky the".
... | Java |
var express = require('express'),
router = express.Router(),
adminModel = require('../models/adminModel'),
moment = require('moment'),
helperFun = require('../lib/helperFunc'),
md5 = require('md5');
router
.get('',function (request,response){
adminModel.find({},{"__v" : 0, "password" : 0, "emailCode" : 0},fun... | Java |
Ember.Handlebars.helper('headTitle', function(title) {
Ember.$('head').find('title').text(title);
}, 'title'); | Java |
/*
* Parameters.h
*
* Created on: 31/01/2017
* Author: Lucas Teske
*/
#ifndef SRC_PARAMETERS_H_
#define SRC_PARAMETERS_H_
#define Q(x) #x
#define QUOTE(x) Q(x)
// These are the parameters used by the demodulator. Change with care.
// GOES HRIT Settings
#define HRIT_CENTER_FREQUENCY 1694100000
#define HRI... | Java |
package com.osiykm.flist.services.programs;
import com.osiykm.flist.entities.Book;
import com.osiykm.flist.enums.BookStatus;
import com.osiykm.flist.repositories.BookRepository;
import com.osiykm.flist.services.parser.FanfictionUrlParserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factor... | Java |
<?php
/**
*
* @package mahara
* @subpackage artefact-cloud
* @author Gregor Anzelj
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 2012-2016 Gregor Anzelj, info@povsod.com
*
*/
defined('INTERNAL') || die();
$string['pluginname'] = 'Cloud service';
$string['c... | Java |
import json
from collections import (
Counter,
defaultdict as deft
)
from copy import deepcopy as cp
# from cPickle import (
# dump as to_pickle,
# load as from_pickle
# )
from StringIO import StringIO
from TfIdfMatrix import TfIdfMatrix
from Tools import from_csv
class CategoryTree:
de... | Java |
/*!
* Bootstrap v3.3.6 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
html {
font-family: sans-serif;
-webkit-text-size-adjust: 100%;
... | Java |
"""
File: foursquares.py
Draws squares in the corners of a turtle window.
One square is black, another is gray, and the
remaining two are in random colors.
"""
from turtlegraphics import Turtle
import random
def drawSquare(turtle, x, y, length):
turtle.up()
turtle.move(x, y)
turtle.setDirection(270)
... | Java |
Puppet::Type.type(:foreman_architecture).provide(:rest) do
confine :true => begin
begin
require 'oauth'
require 'json'
require 'puppet_x/theforeman/architecture'
true
rescue LoadError
false
end
end
mk_resource_methods
def initialize(value={})
super(value)
end
... | Java |
\hypertarget{classCircleRANSACParameters}{\section{Circle\-R\-A\-N\-S\-A\-C\-Parameters Class Reference}
\label{classCircleRANSACParameters}\index{Circle\-R\-A\-N\-S\-A\-C\-Parameters@{Circle\-R\-A\-N\-S\-A\-C\-Parameters}}
}
Parameters obtained from the input .xml file used for R\-A\-N\-S\-A\-C to fit a 2\-D circle ... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.