code
stringlengths
4
1.01M
language
stringclasses
2 values
# pylint:disable=line-too-long import logging from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool from ...calling...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>RMedia.GetOffset</title> <link href="css/style.css" rel="stylesheet" type="text/css"> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" > </head> <body bgcolor="#ffffff"> <table border="0" width="100%" bgco...
Java
require_relative 'model' Record.where(version: 10606).delete_all
Java
# -*- coding: utf-8 -*- """ femagtools.plot ~~~~~~~~~~~~~~~ Creating plots """ import numpy as np import scipy.interpolate as ip import logging try: import matplotlib import matplotlib.pyplot as plt import matplotlib.cm as cm from mpl_toolkits.mplot3d import Axes3D matplotlibversion...
Java
import {Component, NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; @Component({ selector: 'application', template: `<div>Hello!</div>` }) export class BasicInlineComponent {} @NgModule({ imports: [BrowserModule], declarations: [BasicInlineComponent], bootstrap: [Bas...
Java
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function) from . import _wrap_numbers, Symbol, Number, Matrix def symbols(s): """ mimics sympy.symbols """ tup = tuple(map(Symbol, s.replace(',', ' ').split())) if len(tup) == 1: return tup[0] else: return...
Java
const maps = require('source-map-support'); maps.install({environment: 'node'});
Java
// Copyright (C) 2015 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-array.from es6id: 22.1.2.1 description: Value returned by mapping function (traversed via iterator) info: | [...] 2. If mapfn is undefined, let mapping be fal...
Java
package com.mithos.bfg.loop; import java.awt.event.KeyEvent; import java.awt.event.MouseEvent; import java.awt.event.MouseWheelEvent; /** * This class is an adapter for {@link OnEvent}. All methods do * nothing and return true, so you need only implement the methods * that you need to. * @author James McMahon * ...
Java
using Esprima.Ast; namespace Jint.Runtime.Interpreter { /// <summary> /// Per Engine.Evalute() call context. /// </summary> internal sealed class EvaluationContext { public EvaluationContext(Engine engine, in Completion? resumedCompletion = null) { Engine = engine; ...
Java
log.enableAll(); (function(){ function animate() { requestAnimationFrame(animate); TWEEN.update(); } animate(); })(); var transform = getStyleProperty('transform'); var getStyle = ( function() { var getStyleFn = getComputedStyle ? function( elem ) { return getComputed...
Java
// Copyright (c) 2022, WNProject 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 "WNNetworking/inc/WNReliableNetworkTransportSocket.h" #include "WNNetworking/inc/WNReliableNetworkListenSocket.h" #include <netdb.h> #include...
Java
// Copyright 2010-2014 UT-Battelle, LLC. See LICENSE.txt for more information. #ifndef EAVL_SCENE_RENDERER_RT_H #define EAVL_SCENE_RENDERER_RT_H #include "eavlDataSet.h" #include "eavlCellSet.h" #include "eavlColor.h" #include "eavlColorTable.h" #include "eavlSceneRenderer.h" #include "eavlRayTracerMutator.h" #includ...
Java
module WavefrontOBJs export loadOBJ, loadMTL, load_obj_mtl, numVertices, numFaces include("geotypes.jl") include("types.jl") include("utils.jl") include("obj.jl") include("material.jl") # convenience for loading OBJ and MTL simultaneously function load_obj_mtl(fpath::ASCIIString) objpath=string(fpath,".obj") mtl...
Java
var _ = require('lodash'); var requireAll = require('require-all'); function load(router, options) { if (_.isString(options)) options = {dirname: options}; return requireAll(_.defaults(options, { filter: /(.*Controller)\.js$/, recursive: true, resolve: function (Controller) { var c = new (...
Java
/* * Copyright (c) 2012, JInterval Project. * 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) 2016-2016, Roland Bock * 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 co...
Java
#include <iostream> #include <string> #include <map> #include <unistd.h> #include <utility> #include <sstream> #include "./patricia-tree.hpp" int main(void) { std::cout << "Add new command!\n"; PatriciaTree<Node<std::string, StringKeySpec>> pt; std::string command = "command"; std::string key; ...
Java
# urlwatch A Puppet module for managing urlwatch and urlwatch cronjobs. This module also supports urlwatch's built-in filtering features (hooks.py). # Module usage Example using Hiera: monitor Trac WikiStart and RecentChanges pages for edits: classes: - urlwatch urlwatch::userconfigs: ...
Java
# Add your own choices here! fruit = ["apples", "oranges", "pears", "grapes", "blueberries"] lunch = ["pho", "timmies", "thai", "burgers", "buffet!", "indian", "montanas"] situations = {"fruit":fruit, "lunch":lunch}
Java
/***** includes *****/ #include "lfds720_stack_np_internal.h" /***** private prototypes *****/ static void lfds720_stack_np_internal_stack_np_validate( struct lfds720_stack_np_state *ss, struct lfds720_misc_validation_info *vi, ...
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
#ifndef FRC971_CONTROL_LOOPS_DRIVETRAIN_POLYDRIVETRAIN_H_ #define FRC971_CONTROL_LOOPS_DRIVETRAIN_POLYDRIVETRAIN_H_ #include "aos/common/controls/polytope.h" #ifdef INCLUDE_971_INFRASTRUCTURE #include "frc971/control_loops/drivetrain/drivetrain.q.h" #endif //INCLUDE_971_INFRASTRUCTURE #include "frc971/control_loops/s...
Java
// Copyright (c) 2017 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
# OCaml does not preserve binary compatibility across compiler releases, # so when updating it you should ensure that all dependent packages are # also updated by incrementing their revisions. # # Specific packages to pay attention to include: # - camlp5 # - lablgtk # # Applications that really shouldn't break on a com...
Java
class Xonsh < Formula include Language::Python::Virtualenv desc "Python-ish, BASHwards-compatible shell language and command prompt" homepage "https://xon.sh/" url "https://github.com/xonsh/xonsh/archive/0.8.12.tar.gz" sha256 "7c51ce752f86e9eaae786a4886a6328ba66e16d91d2b7ba696baa6560a4de4ec" head "https://...
Java
/* * cuda_common.h * * Created on: Jul 14, 2014 * Author: shu */ #pragma once #include <cstdio> #include <stdint.h> #define CUDA_CHECK_RETURN(value) { \ cudaError_t _m_cudaStat = value; \ if (_m_cudaStat != cudaSuccess) { \ fprintf(stderr, "Error %s at line %d in file %s\n"...
Java
<?php namespace Bacharu\Models; use \Prajna\Objects\VIFMetrics as PrajnaVIFMetrics; class VIFMetrics extends PrajnaVIFMetrics { public function __construct(){} }
Java
# Copyright (c) 2015-2018 by the parties listed in the AUTHORS file. # All rights reserved. Use of this source code is governed by # a BSD-style license that can be found in the LICENSE file. """ sim_det_noise.py implements the noise simulation operator, OpSimNoise. """ import numpy as np from ..op import Operator...
Java
(function(){ var slides = [ {title: 'Работы для отдела Клиентского сервиса и сапорта ФС\nТикетная админка, админка массовых сбоев', works: [ {img: 'i/works/ticket-admin.png', description: '<div class="presentation_mb10"><strong>Тикетная админка</strong></div>' + '<div class="presentation_mb10">Чер...
Java
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2013 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 # ...
Java
class WireguardGo < Formula desc "Userspace Go implementation of WireGuard" homepage "https://www.wireguard.com/" url "https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-0.0.20200320.tar.xz" sha256 "c8262da949043976d092859843d3c0cdffe225ec6f1398ba119858b6c1b3552f" license "MIT" head "https://git.zx2c4...
Java
# Writing your docs How to write and layout your markdown source files. --- ## Configure Pages and Navigation The [pages configuration](/user-guide/configuration/#pages) in your `mkdocs.yml` defines which pages are built by MkDocs and how they appear in the documentation navigation. If not provided, the pages confi...
Java
/* @LICENSE(MUSLC_MIT) */ #include "pthread_impl.h" int pthread_detach(pthread_t t) { /* Cannot detach a thread that's already exiting */ if (a_swap(t->exitlock, 1)) return pthread_join(t, 0); t->detached = 2; __unlock(t->exitlock); return 0; }
Java
#!/bin/bash -e # erik reed # runs EM algorithm on hadoop streaming if [ $# -ne 5 ]; then echo Usage: $0 \"dir with net,tab,fg,em\" EM_FLAGS MAPPERS REDUCERS POP echo "2 choices for EM_FLAGS: -u and -alem" echo " -u corresponds to update; standard EM with fixed population size" echo " e.g. a simple ...
Java
#ifndef SOBER_NETWORK_HTTP_EXTRA_SUCCESS_HANDLER_HPP_ #define SOBER_NETWORK_HTTP_EXTRA_SUCCESS_HANDLER_HPP_ // Copyright (c) 2014, Ruslan Baratov // All rights reserved. #include <functional> // std::function namespace sober { namespace network { namespace http { using ExtraSuccessHandler = std::function<void()>; ...
Java
##大纲 * DevOps基础 * DevOps是什么 * DevOps解决什么问题 * DevOps都做什么 * Vagrant基础 * init * box管理 * up * ssh * reload * destroy * port forward * multi-machines ##目标 * 基本理解DevOps以及DevOps要做的事情 * 可以使用Vagrant创建虚拟机并使用虚拟机工作 ##详细内容 #### DevOps是啥? ``` DevOps顾名思义, 就是Developer + Operatior,开发 + ...
Java
/* * Copyright (c) 2012 Tom Denley * This file incorporates work covered by the following copyright and * permission notice: * * Copyright (c) 2003-2008, Franz-Josef Elmer, All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the...
Java
from unittest import TestCase import pkg_resources from mock import patch from click import UsageError from click.testing import CliRunner class TestCli(TestCase): @patch('molo.core.cookiecutter.cookiecutter') def test_scaffold(self, mock_cookiecutter): from molo.core.scripts import cli pac...
Java
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ItzWarty.RAF { public class RAFFileListEntry { private byte[] directoryFileContent = null; private UInt32 offsetEntry = 0; private RAF raf = null; public RAFFileListEntry(RAF raf, by...
Java
// Copyright (c) 2020 WNProject Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Intentionally left empty so that we can build a lib target for this library #include "hashing/inc/hash.h"
Java
// // Copyright (c) 2015 CNRS // // This file is part of Pinocchio // Pinocchio 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, or (at your option) any later versio...
Java
/* Copyright (c) 2012-2013, Politecnico di Milano. All rights reserved. Andrea Zoppi <texzk@email.it> Martino Migliavacca <martino.migliavacca@gmail.com> http://airlab.elet.polimi.it/ http://www.openrobots.com/ Redistribution and use in source and binary forms, with or without modification, are permitted provided t...
Java
import numpy as np from scipy.sparse import csr_matrix class AliasArray(np.ndarray): """An ndarray with a mapping of values to user-friendly names -- see example This ndarray subclass enables comparing sub_id and hop_id arrays directly with their friendly string identifiers. The mapping parameter transla...
Java
package org.mastodon.tracking.mamut.trackmate.wizard; import org.mastodon.mamut.model.Link; import org.mastodon.mamut.model.Model; import org.mastodon.mamut.model.Spot; import org.mastodon.model.AbstractModelImporter; public class CreateLargeModelExample { private static final int N_STARTING_CELLS = 6; private sta...
Java
# Contributor Covenant Code of Conduct ## Our Pledge In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender...
Java
/* Copyright (c) 2016-2017, Artem Kashkanov 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 conditions and the fol...
Java
#{extends 'main.html' /} #{set title:'FAQ' /} #{set faq:'active'/} #{set title:'FAQ'/} <div class="page-header"> <h1>Frequently Asked Questions <a class="btn btn-primary login pull-right" href="@{Login.auth()}">Login with Dropbox</a> <a class="btn btn-primary login pull-right" href="@{Login.boxAuth()}">Login ...
Java
<?php /** * Class for XML output * * PHP versions 5 and 7 * * @category PEAR * @package PEAR_PackageFileManager * @author Greg Beaver <cellog@php.net> * @copyright 2003-2015 The PEAR Group * @license New BSD, Revised * @link http://pear.php.net/package/PEAR_PackageFileManager * @since File a...
Java
// Copyright (c) 2013-2017 Anton Kozhevnikov, Thomas Schulthess // 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 notic...
Java
// Set color based on frequency and brightness void setColor(int peak_index, int brightness) { if (peak_index == 0) { // signal was weak, turn lights off red = 0; green = 0; blue = 0; } else if (peak_index > 30) { red = current_palette[29].red; green = current_pal...
Java
/******* * * FILE INFO: * project: RTP_lib * file: Types.h * started on: 03/26/03 * started by: Cedric Lacroix <lacroix_cedric@yahoo.com> * * * TODO: * * BUGS: * * UPDATE INFO: * updated on: 05/13/03 * updated by: Cedric Lacroix <lacroix_cedric@yahoo.com> * *******/ #ifndef TYPES_H #define TYPES_H #ifndef FALSE #def...
Java
/** * PatentPriority_type0.java * * This file was auto-generated from WSDL * by the Apache Axis2 version: 1.6.2 Built on : Apr 17, 2012 (05:34:40 IST) */ package gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene; /** * PatentPriority_type0 bean clas...
Java
/* Copyright (c) 2013, Anthony Cornehl * 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 cond...
Java
// // ooSocket.c WJ112 // /* * Copyright (c) 2014, Walter de Jong * 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 noti...
Java
// Copyright 2013 Yangqing Jia #include <algorithm> #include <cmath> #include <cfloat> #include <vector> #include "caffe/layer.hpp" #include "caffe/vision_layers.hpp" #include "caffe/util/math_functions.hpp" #include "caffe/util/io.hpp" #define C_ 1 using std::max; namespace caffe { const float ...
Java
#ifndef _CONVOUTPUT_SPH_H_ #define _CONVOUTPUT_SPH_H_ /* ################################################################################### # # CDMlib - Cartesian Data Management library # # Copyright (c) 2013-2017 Advanced Institute for Computational Science (AICS), RIKEN. # All rights reserved. # # Copyright (c) 20...
Java
#ifndef CRYPTOPP_CONFIG_H #define CRYPTOPP_CONFIG_H #ifdef __GNUC__ #define VC_INLINE static inline __attribute__((always_inline)) #elif defined (_MSC_VER) #define VC_INLINE __forceinline #else #define VC_INLINE static inline #endif #ifdef __GNUC__ #define CRYPTOPP_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ *...
Java
#################################################################################### #.Synopsis # Creates and deletes sinkhole domains in Windows DNS servers. # #.Description # Script takes fully-qualified domain names (FQDNs) and/or simple domain # names, then uses them to create primary zones (not A...
Java
var searchData= [ ['lettersonly',['lettersOnly',['../class_able_polecat___data___primitive___scalar___string.html#ab2a7acaf93e00fbbd75ea51e56bbf47e',1,'AblePolecat_Data_Primitive_Scalar_String']]], ['list_5fdelimiter',['LIST_DELIMITER',['../interface_able_polecat___query_language___statement_interface.html#a7a10020...
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. #ifndef UI_GFX_IMAGE_IMAGE_UTIL_H_ #define UI_GFX_IMAGE_IMAGE_UTIL_H_ #include <vector> #include "base/basictypes.h" #include "ui/gfx/gfx_export.h" ...
Java
// Copyright (c) 2011 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/browser/profiles/profile.h" #include <string> #include "base/command_line.h" #include "base/compiler_specific.h" #include "base/fil...
Java
/* * Copyright (c) 2006, 2006, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ /* * wrapper pow(x,y) return x**y */ #include "fdlibm.h" #ifdef __STDC__ double pow(double x, double y) /* wrapper pow */ #else double pow(x,y) /* wrapper...
Java
{% from 'macros/misc.html' import render_tag %} {% macro render_flag_hidden(hidden_by) -%} {{ render_tag(_('hidden'), class='user-comment-hidden', icon='hidden', title='%s (%s %s)'|format(_('hidden'), _('by'), hidden_by.screen_name)) }} {%- endmacro %} {% macro render_flag_new() -%} {{ render_tag(_('new')) }} {...
Java
// Copyright (c) 2009 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 NET_HTTP_HTTP_STREAM_PARSER_H_ #define NET_HTTP_HTTP_STREAM_PARSER_H_ #include <string> #include "base/basictypes.h" #include "net/base/io_b...
Java
# Goga &ndash; examples ## Summary 0. Simple functions 1. Constrained one-objective problems 2. Unconstrained two-objective problems 3. Constrained two-objective problems 4. Constrained and unconstrained three-objective problems 5. Unconstrained many-objectives problems 6. Truss shape and topology optimisation 7. Econ...
Java
/** * Layout Select UI * * @package zork * @subpackage form * @author Kristof Matos <kristof.matos@megaweb.hu> */ ( function ( global, $, js ) { "use strict"; if ( typeof js.layoutSelect !== "undefined" ) { return; } js.require( "jQuery.fn.vslider"); /** * Generates layout...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author Bill */ public class BackRightAutonomous extends CommandBase { public BackRightAutonomous() { // Use requires() here to declare subsystem dependencies // eg. requ...
Java
/** * Dialog to add a new visualization from any of your * existing tables. * */ cdb.admin.NewVisualizationDialogTableItem = cdb.core.View.extend({ events: { "click .remove" : "_onRemove" }, tagName: "li", className: "table", initialize: function() { _.bindAll(this, "_onRemove"); this.tem...
Java
/****************************************************************************** This source file is part of the Avogadro project. Copyright 2013 Kitware, Inc. This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing, software distri...
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) on Wed May 09 10:30:52 EDT 2007 --> <TITLE> B-Index </TITLE> <META NAME="date" CONTENT="2007-05-09"> <LINK REL ="stylesheet" TYPE="text...
Java
# Copyright 2020 The Cobalt Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
Java
/**************************************************************************** ** ** BSD 3-Clause License ** ** Copyright (c) 2017, bitdewy ** All rights reserved. ** ****************************************************************************/ #pragma once #include <QtCore/QMap> #include <QtGui/QIcon> ...
Java
# The purpose of these tests are to ensure that calling ufuncs with quantities # returns quantities with the right units, or raises exceptions. import warnings import pytest import numpy as np from numpy.testing.utils import assert_allclose from ... import units as u from ...tests.helper import raises from ...extern...
Java
<!DOCTYPE html> <html lang="en"> <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>messageStream property - TorrentClientManager class - hetimatorrent library - Dart API</title> <!-- require...
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. #include "third_party/blink/public/common/page/content_to_visible_time_reporter.h" #include <utility> #include "base/bind.h" #include "base/callback_hel...
Java
#!/usr/bin/env python """ # Software License Agreement (BSD License) # # Copyright (c) 2012, University of California, Berkeley # All rights reserved. # Authors: Cameron Lee (cameronlee@berkeley.edu) and Dmitry Berenson ( berenson@eecs.berkeley.edu) # # Redistribution and use in source and binary forms, with or without...
Java
package de.uni.freiburg.iig.telematik.sewol.accesscontrol.rbac.lattice.graphic; import org.apache.commons.collections15.Factory; import edu.uci.ics.jung.graph.Graph; import edu.uci.ics.jung.graph.SparseMultigraph; public class RoleGraphViewer { Graph<Integer, String> g; int nodeCount, edgeCount; Factory<Integer> ...
Java
/** * @author */ imports("Controls.Composite.Carousel"); using("System.Fx.Marquee"); var Carousel = Control.extend({ onChange: function (e) { var ul = this.find('.x-carousel-header'), t; if (t = ul.first(e.from)) t.removeClass('x-carousel-header-selected'); if(t = ul.first(e.to)) ...
Java
#include <lib.h> #include <string.h> /* lsearch(3) and lfind(3) * * Author: Terrence W. Holm Sep. 1988 */ #include <stddef.h> char *lsearch(key, base, count, width, keycmp) char *key; char *base; unsigned *count; unsigned width; _PROTOTYPE( int (*keycmp), (const void *, const void *)); { char *entry...
Java
#!/usr/bin/env python from django.core.management import setup_environ import settings setup_environ(settings) import socket from trivia.models import * irc = socket.socket(socket.AF_INET, socket.SOCK_STREAM) irc.connect((settings.IRC_SERVER, settings.IRC_PORT)) def send(msg): irc.send(msg + "\r\n") print "{SE...
Java
/// <reference path="../../src/CaseModel.ts" /> /// <reference path="../../src/CaseViewer.ts" /> /// <reference path="../../src/PlugInManager.ts" /> class AnnotationPlugIn extends AssureIt.PlugInSet { constructor(public plugInManager: AssureIt.PlugInManager) { super(plugInManager); this.HTMLRenderPlugIn = new An...
Java
import React from "react"; import { expect } from "chai"; import { mount } from "enzyme"; import { Provider } from "react-redux"; import Editor from "../../../src/notebook/providers/editor"; import { dummyStore } from "../../utils"; import { UPDATE_CELL_SOURCE, FOCUS_CELL_EDITOR } from "../../../src/notebook/const...
Java
/* * Copyright (c) 2014, 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...
Java
{-# LANGUAGE TemplateHaskell #-} {-| Contains TemplateHaskell stuff I don't want to recompile every time I make changes to other files, a pre-compiled header, so to say. Don't know if that even works. -} module FeedGipeda.THGenerated ( benchmarkClosure , stringDict , __remoteTable ) where import ...
Java
<?php namespace app\models; use Yii; /** * This is the model class for table "record". * * @property string $todaydetail * @property string $st_classmark * @property string $startday * @property string $endday * @property integer $totalday * @property string $country * @property string $countryEN * @proper...
Java
package com.michaelbaranov.microba.gradient; import java.awt.Color; import java.util.ArrayList; import java.util.List; import com.michaelbaranov.microba.common.AbstractBoundedTableModel; /** * A very basic implementation of {@link AbstractBoundedTableModel} used by * default by {@link GradientBar}. This implementa...
Java
/* Scala.js runtime support * Copyright 2013 LAMP/EPFL * Author: Sébastien Doeraene */ /* ---------------------------------- * * The top-level Scala.js environment * * ---------------------------------- */ //!if outputMode == ECMAScript51Global var ScalaJS = {}; //!endif // Get the environment info ScalaJS.env ...
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/browser/ui/panels/panel_resize_controller.h" #include "base/logging.h" #include "chrome/browser/ui/panels/panel.h" #include "chrome/...
Java
/* $OpenBSD: limits.h,v 1.5 1998/03/22 21:15:24 millert Exp $ */ /* $NetBSD: limits.h,v 1.7 1996/01/05 18:10:57 pk Exp $ */ /* * Copyright (c) 1988 The Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitt...
Java
package com.percolate.sdk.dto; import com.fasterxml.jackson.annotation.*; import com.percolate.sdk.interfaces.HasExtraFields; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import java.io.Serializable; import java.util.ArrayList; import java.util.HashMa...
Java
<?php use yii\helpers\Html; use kartik\grid\GridView; use yii\helpers\ArrayHelper; use backend\modules\qtn\models\Survey; /* @var $this yii\web\View */ /* @var $searchModel backend\modules\qtn\Models\SurveySearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Qtn Surveys'; $this->params['bre...
Java
@echo off rem rem Collective Knowledge rem rem See CK LICENSE.txt for licensing details. rem See CK Copyright.txt for copyright details. rem rem Developer: Grigori Fursin rem rem CK entry point rem Set default path by detecting the path to this script set ck_path=%~dp0\.. rem Check if CK_ROOT is defined and used it...
Java
Bool_t SetGeneratedSmearingHistos = kFALSE; Bool_t GetCentralityFromAlien = kFALSE; std::string centralityFilename = ""; std::string centralityFilenameFromAlien = "/alice/cern.ch/user/a/acapon/.root"; const Int_t triggerNames = AliVEvent::kINT7; const Int_t nMCSignal = 0; const Int_t nCutsetting = 0; const Doubl...
Java
<?php /* Copyright (c) 2007, Till Brehm, projektfarm Gmbh 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...
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/browser/renderer_preferences_util.h" #include <stdint.h> #include <string> #include <vector> #include "base/macros.h" #include "ba...
Java
package net.minidev.ovh.api.price.dedicatedcloud._2014v1.sbg1a.infrastructure.filer; import com.fasterxml.jackson.annotation.JsonProperty; /** * Enum of Hourlys */ public enum OvhHourlyEnum { @JsonProperty("iscsi-1200-GB") iscsi_1200_GB("iscsi-1200-GB"), @JsonProperty("iscsi-13200g-GB") iscsi_13200g_GB("iscsi-1...
Java
<?php /** * Rules_Whitespace_SuperfluousWhitespaceRule. * * Checks that no whitespace at the end of each line and no two empty lines in the content. * * @package SmartyLint * @author Umakant Patil <me@umakantpatil.com> * @copyright 2013-15 Umakant Patil * @license https://github.com/umakantp/SmartyLint/b...
Java
<?php App::uses('CloggyAppModel', 'Cloggy.Model'); class CloggySearchFullText extends CloggyAppModel { public $name = 'CloggySearchFullText'; public $useTable = 'search_fulltext'; public $actsAs = array('CloggySearchFullTexIndex','CloggySearchFullTextTerm'); public function getTotal()...
Java
<!DOCTYPE html> <html> <head> <title>{title} - Montage Docs</title> <link rel="stylesheet" href="/mdl/material.min.css"> <link rel="stylesheet" href="/mdl/styles.css"> <script src="/mdl/material.min.js"></script> <link rel="stylesheet" href="https://tools-static.wmflabs.org/fontcdn/css?family=Robo...
Java