text
stringlengths
3
1.05M
<?php use Boss\InterfaceObject; use Illuminate\Database\Seeder; class MainNavigationSeeder extends Seeder { public function run() { $Objects = InterfaceObject::create([ 'menu_id' => '1', //id for The Menu this belongs to 'menu_name' => 'MainNavigation', //-- its name ...
@interface CustomViewController : UIViewController @property (nonatomic, strong) NSString *text; @end
local F = lt.F local json_logger, parent = torch.class('lt.json_logger', 'lt.serializable') function json_logger:__init(args) assert(type(args.fields) == 'table') assert(type(args.output_dir) == 'string') assert(paths.dirp(args.output_dir)) parent.__init(self) self.state.fields = {} for _, f in pairs(args.fiel...
from models.mathUtil import invertPoisson from math import isinf, exp #forecast := possible model -> modelLamba #observation := number of earthquake in which bin, catalog:=modeloOmega #reference := prob values in from catalog #nao sao probabilidades, entao preciso arrumar! #Arrumando o catalog, o do modeloGerado como ...
package org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity; import static org.junit.Assert.assertEquals; import static org.mockito.Matchers.any; import static org.mockito.Matchers.anyBoolean; import static org.mockito.Matchers.eq; import static org.mockito.Mockito.doAnswer; import static org.mockito.Mo...
package io.subutai.core.localpeer.impl.request; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import io.subutai.common.peer.LocalPeer; import io.subutai.common.peer.MessageRequest; import io.subutai.common.peer.RecipientType; import io.subutai.common.peer.RequestListener; import...
/* * 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 ogldevtutorials.tut20_pointLight; import java.awt.Frame; import java.awt.event.WindowAdapter; import java.awt.event.WindowEven...
module.exports = ({ file, options, env }) => { env = env || {}; file = file || {}; options = options || {}; options.cssnext = options.cssnext || null; options.autoprefixer = options.autoprefixer || null; options.cssnano = options.cssnano || null; return { parser: file.extname === '.sss' ? 'sugarss' :...
TARGET = flooding$(EXE_SUFFIX) # User interface (uncomment one) (-u option) USERIF_LIBS = $(ALL_ENV_LIBS) # that is, $(TKENV_LIBS) $(QTENV_LIBS) $(CMDENV_LIBS) #USERIF_LIBS = $(CMDENV_LIBS) #USERIF_LIBS = $(TKENV_LIBS) #USERIF_LIBS = $(QTENV_LIBS) # C++ include paths (with -I) INCLUDE_PATH = -I$(VEINS_PROJ)/src -I. -...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>elpi: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" r...
Under active development ------------------------ Installation ============ Step 1: Download the Bundle --------------------------- Using composer cli: ```console $ composer require ioni/payzen-bundle "dev-master" ``` Step 2: Enable the Bundle ------------------------- Enable the bundle in the AppKernel file: ``...
package org.sakaiproject.tool.assessment.integration.helper.standalone; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.sakaiproject.tool.assessment.integration.helper.ifc.GradebookHelper; /** * * <p>Description: * This is a stub standalone context implementation...
/////////////////////////////////////////// // gmail.js // Kartik Talwar // https://github.com/KartikTalwar/gmail.js // /*eslint-env es6*/ var Gmail = function(localJQuery) { /* Use the provided "jQuery" if possible, in order to avoid conflicts with other extensions that use $ for other purposes. ...
import { ElementHandle, Page } from "puppeteer"; const testGlobal = async (instance: ElementHandle | Page) => { await expect(instance).toClick("selector"); await expect(instance).toClick("selector", { polling: "mutation", text: "text" }); await expect(instance).toClick("selector", { polling: "raf", timeout...
layout: post title: "Cara Cepat Mendapatkan Extensi File Dengan Menggunakan PHP" date: 2016-10-09 summary: Mungkin kita perlu untuk mendapatkan ekstensi dari file-file yang diunggah atau untuk memeriksa ekstensi dari berkas-berkas yang ada di website kita dengan menggunakan PHP. image: images/blog/post_php_thumb.jp...
@implementation FDCombinedAnimation -(id) init { self = [super init]; animationList = [[NSMutableArray alloc] init]; aniIndex = 0; return self; } -(void) addAnimation:(FDAnimation *)ani { [animationList addObject:ani]; } -(void) takeTick:(int)synchronizeTick { if ([animationList count] <= 0) { return;...
/** * Core.ui.forms * @version 1.0.0 */ Core.define('Core.element', Core.extend( { element: null, init: function(element, config) { this.element = element; /* Apply additional configuration directives */ Core.apply(this, config); }, replace: function() { /* Override */ } })); /** * Core.ui.element.in...
package example.service; import example.repo.Customer971Repository; import org.springframework.stereotype.Service; @Service public class Customer971Service { public Customer971Service(Customer971Repository repo) {} }
package org.ovirt.engine.ui.uicommonweb.models.vms.instancetypes; import java.util.ArrayList; import java.util.Collection; import java.util.List; import org.ovirt.engine.core.common.businessentities.DisplayType; import org.ovirt.engine.core.common.businessentities.InstanceType; import org.ovirt.engine.core.common.busi...
package fetchbot import ( "net/http" "strings" "sync" ) // Context is a Command's fetch context, passed to the Handler. It gives access to the // original Command and the associated Queue. type Context struct { Cmd Command Q *Queue } // The Handler interface is used to process the Fetcher's requests. It is si...
<?php namespace PhpStrictData; /** * class StrictDataStorage * * @author Annenkov Yaroslav <ya@annenkov.ru> * @link https://github.com/Yannn/php-strict-datastorage */ class StrictDataStorage { /** @var array cache PHPDoc by class [class1=> phpDoc1, class2=> phpDoc2...] */ private static $_phpDoc; /** ...
package com.dream.one.fragment; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.Lay...
<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="description" content="Ember demo application that displays stock information from Yahoo Finance API."> <meta name="keywords" content="ember, ember.js, ember demo application, ember example app"> <meta name="viewport" co...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_131) on Tue Oct 10 18:12:48 PDT 2017 --> <title>All Classes</title> <meta name="date" content="2017-10-10"> <link rel="stylesheet" type="text/c...
title: WebSocket Handshakes permalink: /websocket/handshake --- ```php # This example prints to STDOUT. Do that only for testing purposes! class MyWs implements Aerys\Websocket { private $clients = []; public function onStart(Aerys\Websocket\Endpoint $endpoint) { // $endpoint is necessary for sending...
namespace Microsoft.Graph { using System; using System.Collections.Generic; using System.IO; using System.Net.Http; using System.Threading; /// <summary> /// The type WorkbookFunctionsError_TypeRequest. /// </summary> public partial class WorkbookFunctionsError_TypeRequest : BaseReq...
<!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.5.0_21) on Tue Nov 17 15:15:24 EST 2009 --> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <TITLE> org.mortbay.setuid (Jetty Server ...
<?php //**************** $host = "localhost"; $user = "postgres"; $pass = "lubiekoty"; $db = "shop"; //**************** //Connect to postgres database $connection = pg_connect("host=$host dbname=$db user=$user password=$pass") or die ("Could not connect to server\n")...
/** * Script for PO file initializing page */ !function( window, document, $ ){ var path, loco = window.locoScope, fsHook = document.getElementById('loco-fs'), elForm = document.getElementById('loco-poinit'), fsConn = fsHook && loco.fs.init( fsHook ) ; /** * Abs...
<?php namespace app\modules\contratacao\controllers; use Yii; use app\modules\contratacao\models\CargosProcesso; use app\modules\contratacao\models\CargosProcessoSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * CargosProcessoController implements the CRUD actions ...
<!DOCTYPE html> <html> <head> <title>Grocery List</title> <link rel="stylesheet" type="text/css" href="../stylesheets.css"> </head> <body class="wrapper"> <script src="review.js"></script> <h1>Let's get groceries!</h1> <form> Grocery Item<br> <input type="text" id="itemIn" /> <br> How Many?<br> <input ty...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>DataBinding In WPF : Part II</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="bluea...
package socialite.tables; import socialite.util.HashCode; import java.io.Externalizable; import java.io.ObjectInput; import java.io.ObjectOutput; import java.io.IOException; import socialite.util.SociaLiteException; public class Tuple_Object_long_double extends Tuple implements Externalizable { private static final l...
import { get } from 'lodash'; import React from 'react'; import type { IExecutionDetailsSectionProps } from '@spinnaker/core'; import { AccountTag, ExecutionDetailsSection } from '@spinnaker/core'; import { CloudFoundryRecentLogs, CloudFoundryRecentLogsType, } from '../../../presentation/widgets/recentLogs/CloudFo...
<div class="container-fluid"> <!--h2 class="text-muted">Dashboard <small>Statistics Overview</small></h2--> <div class="row"> <div class="col-md-12"> <carousel [interval]="myInterval" [noWrap]="noWrapSlides"> <slide *ngFor="let slidez of slides;let index=index" [active]="slid...
#include "tensorflow/core/distributed_runtime/base_rendezvous_mgr.h" #include <unordered_set> #include <vector> #include "tensorflow/core/common_runtime/copy_tensor.h" #include "tensorflow/core/common_runtime/device.h" #include "tensorflow/core/common_runtime/device_mgr.h" #include "tensorflow/core/common_runtime/d...
<?xml version="1.0" encoding="UTF-8"?> <customer> <name> <first-and-last> <can-be-any element="true"/> <last-name>Poincaré</last-name> <anyting>Anything at all</anyting> <first-name>Émile</first-name> <nothing/> <something> <with>with</with> <multiple>multiple</...
<!DOCTYPE html> <!-- saved from url=(0065)http://twitter.github.io/bootstrap/examples/starter-template.html --> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta charset="utf-8"> <title>Tag section-includecss</title> <meta name="viewpor...
<!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_29) on Sat Mar 17 18:05:48 MSK 2012 --> <TITLE> Uses of Class org.apache.poi.ss.formula.functions.Countif (POI API Documentation) </TITLE> <META NAM...
import {expect} from 'chai'; import * as Rx from '../../dist/cjs/Rx'; import marbleTestingSignature = require('../helpers/marble-testing'); // tslint:disable-line:no-require-imports declare const { asDiagram, type }; declare const hot: typeof marbleTestingSignature.hot; declare const cold: typeof marbleTestingSignatur...
package com.amazonaws.services.drs.model; import javax.annotation.Generated; /** * */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public enum FailbackState { FAILBACK_NOT_STARTED("FAILBACK_NOT_STARTED"), FAILBACK_IN_PROGRESS("FAILBACK_IN_PROGRESS"), FAILBACK_READY_FOR_LAUNCH("FAILBACK_REA...
import chai from "chai"; const expect = chai.expect; // Internal Modules ---------------------------------------------------------- import DevModeServices from "./DevModeServices"; import FacilityAssignServices from "./FacilityAssignServices"; import Assign from "../models/Assign"; import Facility from "../models/Fac...
using System; using System.Collections.Generic; using BitcoinUtilities.P2P; using BitcoinUtilities.P2P.Primitives; namespace BitcoinUtilities { public static class MerkleTreeUtils { /// <summary> /// Calculates hash of Merkle tree root for a given array of transactions. /// </summary> ...
module Admin.ServiceAdmin { interface IServiceAdminCtrl { Data: Admin.Domain.IServiceItem[]; Item: Admin.Domain.IServiceItem; Msg: string; Save(): void; Edit(id: number): void; Add(): void; } class ServiceAdminCtrl implements IServiceAdminCtrl { Dat...
<?php /* Plugin Name: WP Kit CN Plugin URI: http://sexywp.com/wp-kit-cn.htm Description: 侧边栏挂件集合,如最近评论,热评文章等等共6个挂件供选用,为主题开发者提供9个模版函数,接口简单稳定,此外增加了文章自动摘要,对中文兼容良好。从【中文WordPress工具箱】改进而来,在原有插件功能基础上,规范统一了模版函数接口,提供了侧边栏挂件。 Version: 11.10.6 Author: Charles Tang Author URI: http://sexywp.com/ */ /* Copyright 201...
<!doctype html> <!-- @license Copyright (c) 2015 The Polymer Project Authors. All rights Me interesa!d. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors m...
package com.whc; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cache.annotation.EnableCaching; @SpringBootApplication @EnableCaching public class Chapter2Application { public static void main(String[] args) { ...
The MIT License (MIT) Copyright (c) 2015 Kacper Łukasik 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, merge, p...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json.Linq; namespace DataSeeder { static class JsonExtensions { public static IDictionary<string, string> AsDictionary(this JObject @this) { ...
package com.trivial.upv.android.model.quiz; import android.annotation.SuppressLint; import android.os.Parcel; import com.trivial.upv.android.helper.AnswerHelper; import com.trivial.upv.android.helper.AnswerHelper; import java.util.Arrays; @SuppressLint("ParcelCreator") public final class ToggleTranslateQuiz exten...
using ArcGIS.ServiceModel.Common; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; namespace ArcGIS.ServiceModel.Operation { /// <summary> /// Basic query request operation /// </summary> [DataContract] public class Query : ArcGISServerOperatio...
set -e echo "Compile compass" compass compile echo "Compile jekyll" jekyll
using System.Linq; using System.Net; using InfluxData.Net.Common.Infrastructure; using InfluxData.Net.InfluxData.Helpers; using InfluxData.Net.InfluxDb.Models.Responses; namespace InfluxData.Net.InfluxDb.Helpers { public static class ResponseExtensions { public static IInfluxDataApiResponse ValidateQu...
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <title>add_height_to_pressure &#8212; MetPy 1.1</title> <link href="../../_static/cs...
ACCEPTED #### According to NUB Generator [autonym] #### Published in null #### Original name null ### Remarks null
<?php namespace Jimdo\JimFlow\ImportBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Jimdo\JimFlow\ImportBundle\Entity\SnapShot */ class SnapShot { /** * @var integer $id */ private $id; /** * @var datetime $createdAt */ private $createdAt; /** * @var Jimdo\JimFl...
package servicefabric // Copyright (c) Microsoft and contributors. 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 // ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.webpubsub.implementation; import com.azure.core.annotation.ServiceClientBuilder; import com.azure.core.http.HttpPipeline; import...
import uuid import ConfigParser import pymongo import json import requests import sys, os from os.path import isdir, join class StatusWriter(): mongo_client = pymongo.MongoClient() db = mongo_client['eumssi_test'] col = db['content_items'] def write_status(self, item, source): ''' write video meta to Mong...
include :bundler, on_missing: :install # Simple code generator class HelperGenerator def initialize @helper_methods = {} Google::Cloud::Vision::V1::Feature::Type.constants.sort.each do |feature_type| next if feature_type == :TYPE_UNSPECIFIED method_name = feature_type.to_s.downcase method_n...
<ion-header> <ion-navbar color="primary"> <ion-title> Create an Account </ion-title> </ion-navbar> </ion-header> <ion-content padding> <form [formGroup]="signupForm" (submit)="signupUser()" novalidate> <ion-item> <ion-label stacked>Name</ion-label> ...
// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: #include <flusspferd/aliases.hpp> #include "node.hpp" #include "node_list.hpp" #include "named_node_map.hpp" #include "dom_exception.hpp" #include <DOM/SAX2DOM/SAX2DOM.hpp> #include <DOM/io/Stream.hpp> #include <sstream> using namespace flusspferd; using namespa...
ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
package org.openprovenance.prov.notation; import java.io.Writer; import java.util.List; import javax.xml.datatype.XMLGregorianCalendar; import org.openprovenance.prov.model.Attribute; import org.openprovenance.prov.model.QualifiedName; /* FIXME: this does not work, since methods define here do not override those of...
ACCEPTED #### According to Interim Register of Marine and Nonmarine Genera #### Published in Parasitology 131: -. [79-84] #### Original name null ### Remarks null
<?php namespace Bootstrap\Controller; use App\Controller\AppController as BaseController; class AppController extends BaseController { }
/* -*- Mode: C; indent-tabs-mode:t ; c-basic-offset:8 -*- */ /* * I/O functions for libusb * Copyright © 2007-2009 Daniel Drake <dsd@gentoo.org> * Copyright © 2001 Johannes Erdfelt <johannes@erdfelt.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesse...
package org.vitanov.framework.core; import org.vitanov.catalinna.api.*; import org.vitanov.framework.api.Model; import org.vitanov.framework.api.PathVariable; import org.vitanov.web.enums.ContentType; import org.vitanov.web.enums.StatusCode; import java.io.File; import java.io.IOException; import java.lang.reflect.In...
namespace Ethereum{namespace Connector{ class TransactionParamsFactory { public: static inline Json::Value makeParams(const char *from, const char *to, const BigInt &amount, size_t nonce); static inline Json::Value makeParams(const char *from, const char *to, const BigInt &amount, const BigInt &ga...
module.exports = function(generator) { const { props } = generator; const { static, public } = props; const config = { paginate: { default: 10, max: 50 }, public: `${public.replace(/\\/g, '/')}`, localization: { dir: `${static.replace(/\\/g, '/')}/localizations` } }; ret...
package com.amazonaws.services.s3.model; import java.security.Provider; /** * Stores configuration parameters that will be used during encryption and * decryption by the Amazon S3 Encryption Client. With this object, you can set * the encryption client to use Instruction Files or Object Metadata for storing * en...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >DROP FUNCTION</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REV="MADE" HREF="mailto:pgsql-docs@postgresql.org"><LINK REL="HOME" TITLE="PostgreSQL 9.6...
module Domgen FacetManager.facet(:transaction_time) do |facet| facet.enhance(Attribute) do def post_verify if attribute.reference? && !attribute.referenced_entity.transaction_time? Domgen.error("Transaction time attribute #{attribute.qualified_name} references non-transaction time entity #...
FROM node:0.12 RUN npm install -g grunt-cli karma-cli phantomjs bower protractor --unsafe-perm RUN apt-get update \ && apt-get install -y ruby-full \ && gem install sass WORKDIR /usr/src/app COPY ["package.json", "npm-shrinkwrap.json", "bower.json", "/usr/src/app/"] RUN npm install --unsafe-perm \ && bower in...
package com.opengamma.financial.analytics.test.unittest.dealstest; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.core.io.Resource; import org.testng.annotations.Test; import com.google.common.collect.Lists; import com.opengamma.financial.analytics.test.IRS...
"use strict"; var poplistComponent = require("../components/eui-poplist")["default"] || require("../components/eui-poplist"); var disabledSupport = require("../mixins/disabled-support")["default"] || require("../mixins/disabled-support"); var errorSupport = require("../mixins/error-support")["default"] || require("../m...
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
package Cumulus.Managers; import Cumulus.Bootstrap.Bootstrapper; import Cumulus.Plugins.Plugin; import Cumulus.Plugins.PluginList; import Cumulus.Util.Commands.Command; import Cumulus.Util.Commands.CommandList; import Cumulus.Util.Configuration.ConfigWrapper; import Cumulus.Util.Configuration.Configuration; import Cum...
using System; using System.ComponentModel; using System.IO; using System.Linq; using DNTProfiler.Common.ClipboardUtils; using DNTProfiler.Common.Controls.DialogManagement.Contracts; using DNTProfiler.Common.Mvvm; using DNTProfiler.Common.Toolkit; using DNTProfiler.Core; using DNTProfiler.Models; using DNTProfiler.Serv...
/* Whisk Client Library Whisk.WebSocket attributes: ws_token - generated by whisk, links the web client with the whisk websocket service sio - socket.io websocket connection is_ready - set to true once all is initialized */ (function (whisk) { var WS = (whisk.WebSocket = {}); // attributes ...
namespace FakeItEasy.IntegrationTests { using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; #if FEATURE_NETCORE_REFLECTION using System.Reflection; #endif using FakeItEasy.Configuration; using FakeItEasy.Core; using FakeItEasy.Tests.TestHelpers; ...
<?php namespace app\models; use Yii; /** * This is the model class for table "results". * * @property string $userid * @property integer $quizid * @property string $quizname * @property double $totalscore * @property double $obtainedscore * @property integer $correctattempted * @property integer $wrongattem...
<?php require_once dirname(__FILE__).'/../../../../config/ProjectConfiguration.class.php'; $configuration = new ProjectConfiguration(realpath(dirname(__FILE__).'/../../../..')); include $configuration->getSymfonyLibDir().'/vendor/lime/lime.php'; $autoload = sfSimpleAutoload::getInstance(); $autoload->addDirectory(dir...
export HOME="$( cd "$( dirname "$0" )/.." && pwd )" # Variables initialisation . $HOME/scripts/init.inc.sh JVMARGS="-Duser.timezone=Europe/Paris -Xmx1024m" PID_FILE=$LOG_DIR/crawler.pid JAVA_CLASS="fr.eolya.crawler.crawler.Crawler" # TODO # * Change this to a more reliable version # * need to add the real process...
// // Created by juaki on 10/13/17. // #include <fstream> #include <cmath> #include "parallelOpenCL.h" void opencl::runIteration(Matrix *grid) { int height = grid->getHeight(); int width = grid->getWidth(); // create buffers on the device cl::Buffer buffer_A(myContext, CL_MEM_READ_WRITE, sizeof(in...
class SearchController < ApplicationController skip_before_filter :original_request_params, :global_warning, :set_locale, :check_user_agreed_with_terms, only: :autocomplete_taxon after_filter :set_cache_headers, only: :autocomplete_taxon layout 'search' @@results_per_page = 25 helper_method :search_da...
static NSBundle *theBundle = nil; @implementation NSBundle (ETFrameworkTests) // Since the mainBundle of a Unit Test is something obscurely "hiddend" we override it // so that it returns the bundle of our tests target in order to successfully test our NSBundle methods. + (id)mainBundle { static dispatch_once_t on...
package com.jantvrdik.intellij.latte; import com.intellij.lexer.Lexer; import com.intellij.openapi.util.Pair; import com.intellij.psi.tree.IElementType; import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; public class Assert { /** * Checks that given lexer returns the correct tokens....
package grondag.hs.packet.c2s; import io.netty.buffer.Unpooled; import net.minecraft.client.MinecraftClient; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.ItemStack; import net.minecraft.network.PacketByteBuf; import net.minecraft.server.MinecraftServer; import net.minecraft.server.networ...
<?php class Estado extends BaseModel { protected $table = "estados"; public function getValidators(){ return array(); } public static function getEstados(){ $estados_result = Estado::all(); $estados = array('Selecciona tu estado'); foreach($estados_result as $estad...
package com.s2d.cognition; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Properties; import org.apache.logging.log4j.Level; import org.apache.loggin...
{-# LANGUAGE DeriveDataTypeable #-} module Test.Hspec.CompatSpec (main, spec) where import Helper import System.SetEnv import Data.Typeable data SomeType = SomeType deriving Typeable main :: IO () main = hspec spec spec :: Spec spec = do describe "showType" $ do it "shows unqua...
package storage import ( "errors" "github.com/astaxie/beego/logs" "github.com/initlove/ocihub/config" "github.com/initlove/ocihub/health" "github.com/initlove/ocihub/storage/driver" ) // Health provides interface for storage health operations type Health struct { } // GetStatus returns the storage health stat...
% Defines an enzyme. Base class for % - Protein % - rRNA % % Author: Jonathan Karr % Affilitation: Covert Lab, Department of Bioengineering, Stanford University % Last updated: 5/7/2009 classdef Enzyme < edu.stanford.covert.cell.kb.KnowledgeBaseObject properties reactions = edu.stanford.covert.cell...
#import <SAObjects/SAUISnippet.h> @class NSArray; @interface SACalendarEventSnippet : SAUISnippet { } + (id)eventSnippetWithDictionary:(id)arg1 context:(id)arg2; + (id)eventSnippet; @property(copy, nonatomic) NSArray *events; - (id)encodedClassName; - (id)groupIdentifier; @end
function htmltableUiToggleDiv(myId){ // Create the selectors var tbody = "#"+myId+" div.body"; var theader = "#"+myId+" div.header"; var hideButton = "#"+myId+" #hidecontrol"; var showButton = "#"+myId+" #showcontrol"; // Verify display property (CSS) of tbody var display = $(tbody).css("display"); if(displa...
from hanlp.components.tokenizers.tok import TransformerTokenizer from hanlp.datasets.cws.ctb import CTB6_CWS_TEST from hanlp.datasets.tokenization.sighan2005.msr import SIGHAN2005_MSR_VALID, SIGHAN2005_MSR_TRAIN from tests import cdroot cdroot() tokenizer = TransformerTokenizer() save_dir = 'data/model/msr_cws_albert_...
package main import ( "flag" "fmt" "os" "github.com/johnweldon/cleanpath" ) var sep = separator{val: os.PathListSeparator} type separator struct { val rune } func (s *separator) String() string { if s == nil { return "" } return string(s.val) } func (s *separator) Set(v string) error { for ix, r := ran...
package org.smartwallet.stratum; import com.fasterxml.jackson.databind.JsonNode; import com.google.common.collect.Lists; import com.google.common.util.concurrent.*; import org.bitcoinj.core.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Arrays; import java.util.concurrent.*; import java....
if not _G['protbuf_dissector'] then return end local Settings = require "settings" local dprint = Settings.dprint local dprint2 = Settings.dprint2 local dassert = Settings.dassert local derror = Settings.derror local AstFactory = require "ast.factory" local StatementBase = require "ast.statement_base" l...