code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
/*
* Beautiful Capi generates beautiful C API wrappers for your C++ classes
* Copyright (C) 2015 Petr Petrovich Petrov
*
* This file is part of Beautiful Capi.
*
* Beautiful Capi is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the ... | Java |
package fr.hnit.babyname;
/*
The babyname app 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) any
later version.
The babyname app is distributed in the hope th... | Java |
import { useState } from "react";
import { PropTypes } from "prop-types";
import { SaveOutlined, WarningOutlined } from "@ant-design/icons";
import {
Button,
Col,
Form,
Input,
InputNumber,
Row,
Select,
Switch,
Typography,
Space,
} from "@nextgisweb/gui/antd";
import i18n from "@n... | Java |
#!/usr/bin/env python
# File written by pyctools-editor. Do not edit.
import argparse
import logging
from pyctools.core.compound import Compound
import pyctools.components.arithmetic
import pyctools.components.qt.qtdisplay
import pyctools.components.zone.zoneplategenerator
class Network(object):
components = \
{ ... | Java |
# -*- coding: utf-8 -*-
import itertools
"""
Languages | ShortCode | Wordnet
Albanian | sq | als
Arabic | ar | arb
Bulgarian | bg | bul
Catalan | ca | cat
Chinese | zh | cmn
Chinese (... | Java |
package com.weatherapp.model.entities;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Location implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private Stri... | Java |
# Courses-Pick-Helper
What this program will do is to constantly scan your shopping cart on your student centre account and help you enroll very fast !!!
Basically help you with enrolling courses in your shopping cart of your student centre account when it's "OPEN". Note that this will succeed iff there is no conflic... | Java |
package units.interfaces;
public abstract interface Value<T> extends MyComparable<T> {
// OPERATIONS
default boolean invariant() {
return true;
}
default void checkInvariant() {
if(!invariant()) {
System.exit(-1);
}
}
public abstract T... | Java |
#############################################################################
# $HeadURL$
#############################################################################
""" ..mod: FTSRequest
=================
Helper class to perform FTS job submission and monitoring.
"""
# # imports
import sys
import re
import... | Java |
<?php
namespace de\chilan\WebsiteBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class WebsiteBundle extends Bundle
{
}
| Java |
var _ = require("lodash");
module.exports = {
// ensure client accepts json
json_request: function(req, res, next){
if(req.accepts("application/json"))
return next();
res.stash.code = 406;
_.last(req.route.stack).handle(req, res, next);
},
// init response
init... | Java |
/*=========================================================================
Program: ParaView
Module: $RCSfile$
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without... | Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../css/tupi.css">
<title></title>
</head><body class="tupi_background3">
<p class="title">Vexamos como está a que... | Java |
// Decompiled with JetBrains decompiler
// Type: System.Web.UI.WebControls.WebParts.ProxyWebPartConnectionCollection
// Assembly: System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// MVID: 7E68A73E-4066-4F24-AB0A-F147209F50EC
// Assembly location: C:\Windows\Microsoft.NET\Framework\v4.0.303... | Java |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ -->
<!-- This file redirects to the location of a node or anchor -->
<head>
<title>GNU Octave: XREFbicgstab</title>
<meta name="description... | Java |
// Copyright (c) The University of Dundee 2018-2019
// This file is part of the Research Data Management Platform (RDMP).
// RDMP 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... | Java |
import sys, os, urllib, time, socket, mt, ssl
from dlmanager.NZB import NZBParser
from dlmanager.NZB.nntplib2 import NNTP_SSL,NNTPError,NNTP, NNTPReplyError
from dlmanager.NZB.Decoder import ArticleDecoder
class StatusReport(object):
def __init__(self):
self.message = "Downloading.."
self.total_byt... | Java |
"""Tests for `fix.with_fixture`."""
from __future__ import with_statement
import os
import shutil
import tempfile
from types import FunctionType
from fix import with_fixture
def test_exists():
"""`fix.with_fixture` function exists"""
assert isinstance(with_fixture, FunctionType)
def test_setup_only():
... | Java |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of the G... | Java |
#!/bin/bash
gnuplot temp/TermodinamicalStat_L=14_PP=4/*.plot
gnuplot temp/DensityStat_L=14_PP=4/*.plot
| Java |
# @author Peter Kappelt
# @author Clemens Bergmann
# @version 1.16.dev-cf.9
package main;
use strict;
use warnings;
use Data::Dumper;
use JSON;
use TradfriUtils;
sub TradfriGroup_Initialize($) {
my ($hash) = @_;
$hash->{DefFn} = 'Tradfri_Define';
$hash->{UndefFn} = 'Tradfri_Undef';
$hash->{SetFn} ... | Java |
/* EPANET 3
*
* Copyright (c) 2016 Open Water Analytics
* Distributed under the MIT License (see the LICENSE file for details).
*
*/
#include "demandmodel.h"
#include "Elements/junction.h"
#include <cmath>
#include <algorithm>
using namespace std;
//--------------------------------------------------------------... | Java |
// <osiris_sps_source_header>
// This file is part of Osiris Serverless Portal System.
// Copyright (C)2005-2012 Osiris Team (info@osiris-sps.org) / http://www.osiris-sps.org )
//
// Osiris Serverless Portal System is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public L... | Java |
class AddVersionDone < ActiveRecord::Migration
def up
add_column :versions, :is_done, :boolean
end
def down
remove_column :versions, :is_done
end
end
| Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hometask 7-8</title>
<link rel="stylesheet" href="сss/reset.css">
<link rel="stylesheet" href="сss/style.css">
<link rel="stylesheet" media="screen and (min-width:0px) and (max-width:480px)" href="сss/style_320px.css" />
<link rel="stylesheet" ... | Java |
var struct_m_s_vehicle_1_1_lane_q =
[
[ "allowsContinuation", "d3/d89/struct_m_s_vehicle_1_1_lane_q.html#a1491a03d3e914ce9f78fe892c6f8594b", null ],
[ "bestContinuations", "d3/d89/struct_m_s_vehicle_1_1_lane_q.html#a2fc7b1df76210eff08026dbd53c13312", null ],
[ "bestLaneOffset", "d3/d89/struct_m_s_vehicle_1_... | Java |
##############################################################################
# Build global options
# NOTE: Can be overridden externally.
#
# Compiler options here.
ifeq ($(USE_OPT),)
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
endif
# C specific options here (added to USE_OPT).
ifeq ... | Java |
/*-------------------------------------------------------------------------
*
* wparser.c
* Standard interface to word parser
*
* Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
*
*
* IDENTIFICATION
* src/backend/tsearch/wparser.c
*
*--------------------------------------------------... | Java |
/*
* This file is part of JGCGen.
*
* JGCGen 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.
*
* JGCGen is distributed in the h... | Java |
#!/bin/bash -f
# Vivado (TM) v2015.4.2 (64-bit)
#
# Filename : design_TEST.sh
# Simulator : Cadence Incisive Enterprise Simulator
# Description : Simulation script for compiling, elaborating and verifying the project source files.
# The script will automatically create the design libraries sub-direct... | Java |
\subsection{Instruction Working Set Signature}
An instruction working set (IWS)~\cite{Dhodapkar:2002:MMH} is the set of instructions touched over a fixed interval of time. The relative working set distance between intervals $i$ and $i-1$ is defined as
\begin{center}
$\delta_{i,i-1} = \frac{||W_i \bigcup W_{i-1}||-||... | Java |
// -*- mode: csharp; encoding: utf-8; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-
// vim:set ft=cs fenc=utf-8 ts=4 sw=4 sts=4 et:
// $Id$
/* MetaTweet
* Hub system for micro-blog communication services
* SqlServerStorage
* MetaTweet Storage module which is provided by Microsoft SQL Server RDBMS.... | Java |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qpieseries.cpp -->
<title>PieSeries QML Type | Qt Charts 5.7</title>
<link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
<script type="t... | Java |
# -*- coding: utf-8 -*-
"""proyectoP4 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.h... | Java |
#region using directives
using POGOProtos.Enums;
using POGOProtos.Settings.Master.Pokemon;
#endregion
namespace PoGo.PokeMobBot.Logic.Event.Pokemon
{
public class BaseNewPokemonEvent : IEvent
{
public int Cp;
public ulong Uid;
public PokemonId Id;
public double Perfection;
... | Java |
#!/usr/bin/python
# This programs is intended to manage patches and apply them automatically
# through email in an automated fashion.
#
# Copyright (C) 2008 Imran M Yousuf (imran@smartitengineering.com)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Pu... | Java |
/*
LICENSE
-------
Copyright (C) 2007 Ray Molenkamp
This source code 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 source code or the software it produces.
Permission is granted to anyone to use th... | Java |
//
// MIT License
//
// Copyright (c) Deif Lou
//
// 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, me... | Java |
<!DOCTYPE html>
<html>
<head>
<title>SenseNet : modul Senzory</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./SenseNet_Files/over.css">
<link rel="stylesheet" href="https://www.w... | Java |
/*
This file is part of sudoku_systemc
Copyright (C) 2012 Julien Thevenon ( julien_thevenon at yahoo.fr )
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 ... | Java |
# -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-02-20 22:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('erudit', '0065_auto_20170202_1152'),
]
operations = [
migrations.AddField(
... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | Java |
package bartburg.nl.backbaseweather.provision.remote.controller;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.annotation.Annotation;
import java.net.HttpURLConnection... | Java |
/*****************************************************************
* This file is part of CCAFS Planning and Reporting Platform.
* CCAFS P&R 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... | Java |
<?php
// Heading
$_['heading_title'] = 'TargetPay Sofort Banking';
// Text
$_['text_payment'] = 'Betaling';
$_['text_success'] = 'Gelukt: de TargetPay instellingen zijn gewijzigd!';
$_['text_edit'] = 'Bewerk TargetPay ' . $_['heading_title'];
$_['text_sofort'] = '<a href="https://www.targetpay.com/signup?p_actiecode=Y... | Java |
// ReSharper disable CheckNamespace
using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
{
var people = new Dictionary<string, Person>();
string input;
while ((input = Console.ReadLine()) != "End")
{
var split = input.Spl... | 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 ... | Java |
// +build linux
package subsystem
import (
"bufio"
"errors"
"fmt"
"io"
"os"
"os/exec"
"runtime"
"strconv"
"strings"
)
type PlatformHeader LinuxHeader
func NewPlatformHeader() *LinuxHeader {
header := new(LinuxHeader)
header.Devices = make(map[string]LinuxDevice)
header.getDevsParts()
return header
}
... | Java |
/*
* tca6416 keypad platform support
*
* Copyright (C) 2010 Texas Instruments
*
* Author: Sriramakrishnan <srk@ti.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#... | Java |
//////////
// item //
//////////
datablock ItemData(YoyoItem)
{
category = "Weapon"; // Mission editor category
className = "Weapon"; // For inventory system
// Basic Item Properties
shapeFile = "./Yoyo.dts";
rotate = false;
mass = 1;
density = 0.2;
elasticity = 0.2;
friction = 0.6;
emap = true;
//gui st... | Java |
/**
******************************************************************************
* @file EEPROM/EEPROM_Emulation/Inc/stm32f4xx_it.h
* @author MCD Application Team
* @version V1.3.6
* @date 17-February-2017
* @brief This file contains the headers of the interrupt handlers.
***************... | Java |
// Copyright 2016 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 "services/video_capture/device_mojo_mock_to_media_adapter.h"
#include "services/video_capture/device_client_media_to_mojo_mock_adapter.h"
names... | Java |
package com.ocams.andre;
import javax.swing.table.DefaultTableModel;
public class MasterJurnal extends javax.swing.JFrame {
public MasterJurnal() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The co... | Java |
// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
#ifndef _DUEL_H_
#define _DUEL_H_
struct duel
{
int members_count;
int invites_count;
int max_players_limit;
};
#define MAX_DUEL 1024
extern struct duel duel_list[MAX_DUEL];
extern int duel_count;
/... | Java |
# containers | Java |
/*
* generated by Xtext
*/
package org.eclectic.frontend.parser.antlr;
import com.google.inject.Inject;
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
import org.eclectic.frontend.services.TaoGrammarAccess;
public class TaoParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser {
@Inject
priva... | Java |
<?php
require "common.inc.php";
verifica_seguranca($_SESSION[PAP_RESP_MUTIRAO]);
top();
?>
<?php
$action = request_get("action",-1);
if($action==-1) $action=ACAO_EXIBIR_LEITURA;
$est_cha=request_get("est_cha",-1);
if($est_cha==-1)
{
if(isset($_SESSION['cha_id_pref']))
{
$est_cha=$_... | Java |
jQuery(document).ready(function($) {
$('#slide-left').flexslider({
animation: "slide",
controlNav: "thumbnails",
start: function(slider) {
$('ol.flex-control-thumbs li img.flex-active').parent('li').addClass('active');
}
});
});
jQuery(document).ready(function($) {
$('#slide')... | Java |
/*
* This file is part of the command-line tool sosicon.
* Copyright (C) 2014 Espen Andersen, Norwegian Broadcast Corporation (NRK)
*
* This 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 v... | Java |
use crate::cube::Cube;
use glium;
use glium::{Display, Program, Surface, implement_vertex};
use glium::index::{IndexBuffer, PrimitiveType};
use std::rc::Rc;
pub fn solid_fill_program(display: &Display) -> Program {
let vertex_shader_src = include_str!("shaders/solid.vert");
let fragment_shader_src = include_st... | Java |
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace DrakSolz.Projectiles {
public class ChickenEgg : ModProjectile {
public override string Texture { get { return "Terraria/Projectile_318"; } }
public override void SetStaticDefaults() {
DisplayName.SetDefault("Chicke... | Java |
---
date: 2020-01-07T17:53:33+0000
title: "Hazy State"
authors: "Collective Arts Brewing"
rating: 3.5
drink_of: https://untappd.com/b/collective-arts-brewing-hazy-state/3104704
checkin:
title: The Griffin
lat: 51.525
long: -0.082
weather:
summary: Overcast
temperature: 11.5
badges:
- title: I Believe in IPA... | Java |
<?php
/*
##########################################################################
# #
# Version 4 / / / #
# -----------__---/__---__------__----__---/---/- #
# ... | Java |
# Example implementing 5 layer encoder
# Original code taken from
# https://github.com/aymericdamien/TensorFlow-Examples/blob/master/examples/3_NeuralNetworks/autoencoder.py
# The model trained here is restored in load.py
from __future__ import division, print_function, absolute_import
# Import MNIST data
# from tens... | Java |
/*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* 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.
*
* T... | Java |
/*
* object.c
*
* Copyright (C) 2012 - Dr.NP
*
* 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) any later version.
*
* This progra... | Java |
/**
* Copyright (c) 2012-2015 Piotr Sipika; see the AUTHORS file for more.
*
* 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) any late... | Java |
/*
Copyright (C) 2016 Sergo Pasoevi.
This pragram 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 d... | Java |
# FAQ Summary
1. General information and availability
1. What is the CImg Library ?
2. What platforms are supported ?
3. How is CImg distributed ?
4. What kind of people are concerned by CImg ?
5. What are the specificities of the CeCILL license ?
6. Who is behind CImg ?
2. C++ related question... | Java |
{% extends "userspace/journal/base.html" %}
{% load i18n rules %}
{% block title %}{{ block.super }}{% endblock title %}
{% block breadcrumb %}{{ block.super }}
<li><a href="{% url 'userspace:journal:subscription:list' scope_current_journal.pk %}">{% trans "Abonnements" %}</a></li>
{% endblock breadcrumb %}
{% block... | Java |
// Copyright 2014 The go-krypton Authors
// This file is part of the go-krypton library.
//
// The go-krypton 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, o... | Java |
#!/bin/csh
# ---------------------------------------------------------------------------
#
# Script to Read in a new substructure file to the database
#
# ---------------------------------------------------------------------------
#set verbose on
if ( $#argv != 1 ) then
echo "Usage: $0 FileRoot"
echo " FileROOT... | Java |
class Solution {
public:
string addBinary(string a, string b) {
string sum = "";
int carry = 0;
for (int i = a.size() - 1, j = b.size() - 1; i >= 0 || j >= 0; i--, j--) {
int m = (i >= 0 && a[i] == '1');
int n = (j >... | Java |
---
title: "कांग्रेस का नया नारा 'अब होगा NYAY', चुनावी कैम्पेन लांच"
layout: item
category: ["politics"]
date: 2019-04-07T08:05:44.259Z
image: 1554624344259congress.jpg
---
<p>नई दिल्ली: कांग्रेस लोकसभा चुनाव के लिए रविवार को अपने प्रचार अभियान की औपचारिक रूप से शुरुआत की। इस अभियान के तहत पार्टी ने प्रिंट, इलेक्ट्रॉन... | Java |
{-# LANGUAGE FlexibleContexts, CPP, JavaScriptFFI #-}
module Carnap.GHCJS.Action.TreeDeductionCheck (treeDeductionCheckAction) where
import Lib hiding (content)
import Data.Tree
import Data.Either
import Data.Map as M (lookup,Map, toList)
import Data.IORef (IORef, readIORef, newIORef, writeIORef)
import Data.Typeable ... | Java |
/*
* Darmix-Core Copyright (C) 2013 Deremix
* Integrated Files: CREDITS.md and LICENSE.md
*/
#ifndef BLIZZLIKE_OBJECTACCESSOR_H
#define BLIZZLIKE_OBJECTACCESSOR_H
#include "Platform/Define.h"
#include "Policies/Singleton.h"
#include <ace/Thread_Mutex.h>
#include "Utilities/UnorderedMap.h"
#include "Policies/Threa... | Java |
#include "stdafx.h"
#include <gtest/gtest.h>
#include "MonsterHeadingCalculator.h"
namespace PacMan
{
namespace Logic
{
namespace Tests
{
using namespace Logic;
void test_calculate_sets_heading (
Row monster_row,
Column monster_column,
... | Java |
/** Author: Sharmin Akter **/
/** Created at: 4/30/2012 12:07:26 AM **/
#include<stdio.h>
int main()
{
int i,j,k,p,m,n,t;
while(scanf("%d",&t)==1)
{
for(i=1;i<=t;i++)
{
scanf("%d",&p);
if(p==2||p==3||p==5||p==7||p==13||p==17)
printf("... | Java |
"""
Tests for closeness centrality.
"""
import pytest
import networkx as nx
from networkx.testing import almost_equal
class TestClosenessCentrality:
@classmethod
def setup_class(cls):
cls.K = nx.krackhardt_kite_graph()
cls.P3 = nx.path_graph(3)
cls.P4 = nx.path_graph(4)
cls.K5 ... | Java |
/**
* This file is part of JsonFL.
*
* JsonFL is free software: you can redistribute it and/or modify it under the
* terms of the Lesser GNU General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* JsonFL is distributed ... | Java |
package edu.kit.iti.formal.mandatsverteilung.generierer;
import edu.kit.iti.formal.mandatsverteilung.datenhaltung.Bundestagswahl;
/**
* Modelliert eine Einschränkung an das Ergebnis des Generierers, dass der
* Bundestag eine bestimmte Größe haben soll.
*
* @author Jan
*
*/
public class SitzzahlEinschraenkung ... | Java |
#include "definitions.h"
CustomWeakForm::CustomWeakForm(std::vector<std::string> newton_boundaries, double heatcap, double rho, double tau,
double lambda, double alpha, double temp_ext, MeshFunctionSharedPtr<double> sln_prev_time, bool JFNK) : WeakForm<double>(1, JFNK)
{
this->set_ext(sln_prev_time);
// Jacobia... | Java |
# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding unique constraint on 'Vendeur', fields ['code_permanent']
db.create_unique(u'encefal_vendeur', ['co... | Java |
# $Id$
# Copyright 2013 Matthew Wall
# See the file LICENSE.txt for your full rights.
#
# Thanks to Eddie De Pieri for the first Python implementation for WS-28xx.
# Eddie did the difficult work of decompiling HeavyWeather then converting
# and reverse engineering into a functional Python implementation. Eddie's
# wor... | Java |
# frozen_string_literal: true
RSpec.shared_examples 'vcs: having remote' do
describe '#remote' do
it 'sets @remote' do
object.remote = 'some-value'
expect(object.instance_variable_get(:@remote)).to eq 'some-value'
end
end
describe '#remote' do
subject(:remote) { object.remote }
let(... | Java |
// NOTE: nbApp is defined in app.js
nbApp.directive("languageContainerDirective", function() {
return {
restrict : 'E',
templateUrl : 'js/templates/language-container.html',
scope: {
color: "@",
language: "@",
reading: "@",
writing: "@",
list... | Java |
//=============================================================================
/*! return transposed _dsymatrix */
inline _dsymatrix t(const _dsymatrix& mat)
{CPPL_VERBOSE_REPORT;
#ifdef CPPL_DEBUG
WARNING_REPORT;
std::cerr << "This function call has no effect since the matrix is symmetric." << std::endl;
#endif/... | Java |
package name.parsak.controller;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springfram... | Java |
#pragma once
//
// njhseq - A library for analyzing sequence data
// Copyright (C) 2012-2018 Nicholas Hathaway <nicholas.hathaway@umassmed.edu>,
//
// This file is part of njhseq.
//
// njhseq is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by... | Java |
#include "common_header.h"
namespace {
using ArrayType = std::vector<int>;
/** Given a sorted array and a number x, find the pair in array whose sum is closest to x
*
* @reference https://www.geeksforgeeks.org/given-sorted-array-number-x-find-pair-array-whose-sum-closest-x/
*
* Given a sorted array and a numb... | Java |
<!DOCTYPE html>
<html lang="en" prefix="og: http://ogp.me/ns# fb: https://www.facebook.com/2008/fbml" >
<head>
<title>misc - jm33_ng</title>
<!-- Using the latest rendering mode for IE -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" content="w... | Java |
module XmlResolution
# Most named exceptions in the XmlResolution service we subclass here
# to one of the HTTP classes. Libraries are designed specifically
# to be unaware of this mapping: they only use their specific low level
# exceptions classes.
#
# In general, if we catch an HttpError at our top lev... | Java |
/***************************************************************************
* Copyright © 2010-2011 Jonathan Thomas <echidnaman@kubuntu.org> *
* Heavily inspired by Synaptic library code ;-) *
* *
* This pr... | Java |
extern crate rand;
use std::io;
use rand::Rng;
use std::cmp::Ordering;
fn main() {
println!("Guess the number!");
let secret_number = rand::thread_rng().gen_range(1, 101);
loop {
println!("Please input your guess.");
let mut guess = String::new();
io::stdin()
.read_li... | Java |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
final class Contact extends Model
{
const PHONE = 'phone';
const ADDRESS = 'address';
const ADDRESS_COMPLEMENT = 'address_complement';
const POSTAL_CODE = 'postal_code';
const CITY = 'city';
const REGION = 'region';
const C... | Java |
#
# logutil.py
# A module containing means of interacting with log files.
#
import logging
import logging.handlers
import os
import time
from data_structures import enum
from config import get_config_value
LoggingSection = enum(
'CLIENT',
'CRAWLER',
'DATA',
'FRONTIER',
'TEST',
'UTILITIES',
)... | Java |
{% extends "geostitcher/views/templates/base.html" %}
{% block content %}
<div class="gallery">
<div id="error"></div>
<script src="{{context}}/js/gallery.js" type="text/javascript"></script>
<div>
{% for pic in pictures %}
<div class="thumbnail">
<a class={{pic.name}} href="{{con... | Java |
/* -*- c++ -*-
* Copyright (C) 2007-2016 Hypertable, Inc.
*
* This file is part of Hypertable.
*
* Hypertable 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 any l... | Java |
#!/usr/bin/env python
'''
Purpose:
This script, using default values, determines and plots the CpG islands in
relation to a given feature "type" (e.g. "gene" or "mRNA") from a GFF file
which corresponds to the user-provided fasta file.
Note:
CpG Islands are determined by ObEx = (Observed CpG) / (Expected CpG) ,
def... | Java |
#ifndef GLOBALS_H
#define GLOBALS_H
#include <stdio.h>
#include <allegro.h>
#include "resource.h"
//#define LOG_COMMS // Uncomment this line to enable serial comm logging
// system_of_measurements
#define METRIC 0
#define IMPERIAL 1
// Display mode flags
#define FULL_SCREEN_MODE 0
#define WINDOW... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.