answer
stringlengths
15
1.25M
import sys, random import re, collections, time TXT_FILE=''; BUF_DIR=''; NWORDS=None; def words(text): return re.findall('[a-z]+', text) def train(features): model = collections.defaultdict(lambda: 1) for f in features: model[f] += 1 return model alphabet = '<API key>' def edits1(word): splits ...
<B_lastforums><div id="derniers-forums" class="listagebloc"> <h2><:derniers_forums:></h2> <ul class="listageconteneur"> <BOUCLE_lastforums(FORUMS){!par date}{0,#ENV{parametre}}{plat}> <li> <h4 class="listagetitre"><a href="#URL_ARTICLE#forums">#TITRE</a></h4> <div class="listageinfo">[(#DATE|affdate)][, <:par_auteur:> ...
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "- <html xmlns="http: <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>sensekey</title> <link rel="stylesheet" type="text/css" href="csound.css" /> <link rel="stylesheet" type="text/css" hre...
package com.baeldung.webflux; import static java.time.LocalDateTime.now; import static java.util.UUID.randomUUID; import java.time.Duration; import org.springframework.stereotype.Component; import org.springframework.web.reactive.socket.WebSocketHandler; import org.springframework.web.reactive.socket.WebSocketSession; ...
#ifndef <API key> #define <API key> #include "<API key>.h" #include "<API key>.h" /** * greebo: A MultiState mover is an extension to the vanilla D3 movers. * * In contrast to the idElevator class, this multistate mover draws the floor * information from the <API key> entities which are targetted * by this class. ...
describe SearchController, type: :controller do it { is_expected.to route(:get, '/search').to(action: :basic) } it { is_expected.to route(:get, '/search/entity').to(action: :entity_search) } describe "GET #entity_search" do login_user let(:org) { build(:org) } def <API key> instance_double('Enti...
<?php namespace App\Model; use PDO; use Exception; use App\Model; use App\Config; use App\Exceptions\ServerException; use App\Exceptions\<API key>; class Account extends Model { public $id; public $name; public $email; public $service; public $password; public $is_active; public $imap_host; ...
package org.vaadin.addons.guice.server; import org.vaadin.addons.guice.servlet.<API key>; import com.google.inject.servlet.ServletModule; /** * * @author Will Temperley * */ public class <API key> extends ServletModule { @Override protected void configureServlets() {
class <API key> { idd=-1; movingenable=false; class controls { class <API key>: RscFrame { idc = -1; x = 0.365937 * safezoneW + safezoneX; y = 0.379 * safezoneH + safezoneY; w = 0.170156 * safezoneW; h = 0.143 * safezoneH; ...
CREATE TABLE "<API key>" ( "contributor" text, "aggregate_donation" text );
using CP77.CR2W.Reflection; using FastMember; using static CP77.CR2W.Types.Enums; namespace CP77.CR2W.Types { [REDMeta] public class <API key> : <API key> { [Ordinal(1)] [RED("playerId")] public <API key> PlayerId { get; set; } [Ordinal(2)] [RED("<API key>")] public <API key> <API key> { get...
#include "argList.H" #include "Time.H" #include "mirrorFvMesh.H" #include "mapPolyMesh.H" #include "hexRef8Data.H" using namespace Foam; int main(int argc, char *argv[]) { #include "addOverwriteOption.H" #include "addDictOption.H" #include "setRootCase.H" #include "createTime.H" const bool overwrite...
-- PostgreSQL database dump -- Dumped from database version 10.6 -- Dumped by pg_dump version 10.6 SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET <API key> = on; SELECT pg_catalog.set_config('search_path', '', false); SET <API key> = false; SET client_min_messages = warning; ALTER TA...
function c21520110.initial_effect(c) --summon & set with no tribute local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(21520110,0)) e1:SetProperty(<API key>+<API key>) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SUMMON_PROC) e1:SetCondition(c21520110.ntcon) c:RegisterEff...
#include "Data/datadescriptor.h" #include <type_traits> #include <QDebug> unsigned int DataDescriptor::_uid_ctr = 0; DataDescriptor::DataDescriptor(QString name, QString unit, double factor, Type t) : _name(name), _unit(unit), _factor(factor), _type(t) { _uuid = getUUID(); } DataDescriptor::DataDescriptor(const...
#!/usr/bin/env python # -*- coding: utf-8; py-indent-offset:4 -*- # This program is free software: you can redistribute it and/or modify # (at your option) any later version. # This program is distributed in the hope that it will be useful, # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the from __future__...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.mariotaku.twidere.util.http; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import javax.microedition.io....
using System; using System.Collections.Generic; public class GraphDemo { bool[] IsVisited; // We are using Adjacency List instead of adjacency matrix to save space, // for sparse graphs which is average case List<int>[] AdjList; // Nodes in the path being visited so far int[] Path; // Number of nodes so f...
package keel.Algorithms.RE_SL_Methods.LEL_TSK; import java.io.*; import org.core.*; import java.util.*; import java.lang.Math; class Simplif { public double semilla; public long cont_soluciones; public long Gen, n_genes, n_reglas, n_generaciones; public int n_soluciones; public String fich_datos_chequeo, fich...
package com.orcinuss.reinforcedtools.item.tools; import com.google.common.collect.Sets; import net.minecraft.block.Block; import net.minecraft.init.Blocks; import net.minecraft.item.EnumRarity; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemTool; import java.util.Set;...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Net; using System.Net.Http; using System.Net.Http.Formatting; namespace Admin.Models { public class FacilityClient { private string BASE_URL = "http://localhost:52249/api/"; public IEnumerable<Facil...
#include <Foundation/Foundation.h> @interface MDLMemoryMappedData : NSObject @end
/* <API key> handles all aspects of searching */ #ifndef <API key> #define <API key> #include <gtk/gtk.h> #include <mucharmap/mucharmap.h> #include "mucharmap-window.h" G_BEGIN_DECLS //class <API key> #define <API key> (<API key> ()) #define <API key>(o) (<API key> ((o), <API key>, <AP...
#include "XmlSerializer.h" namespace dnc { namespace Xml { XmlSerializer::XmlSerializer() {} XmlSerializer::~XmlSerializer() {} std::string XmlSerializer::ToString() { return std::string("System.Xml.XmlSerializer"); } std::string XmlSerializer::GetTypeString() { ...
package org.hl7.v3; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>AgeDetectedIssueCodeJava * * <p> * <p> * <pre> * &lt;simpleType name="<API key>"> * &lt;restriction base="{urn:hl7-org:v3}cs"> * &lt;enumeration value="AGE"/> * &lt;enumeration value="DOSE...
<?php defined('JPATH_PLATFORM') or die; /** * JDataSet is a collection class that allows the developer to operate on a set of JData objects as if they were in a * typical PHP array. * * @since 12.3 */ class JDataSet implements JDataDumpable, ArrayAccess, Countable, Iterator { /** * The current position o...
package medium_challenges; import java.util.ArrayList; import java.util.List; import java.util.Scanner; class BenderSolution { public static void main(String args[]) { @SuppressWarnings("resource") Scanner in = new Scanner(System.in); int R = in.nextInt(); int C = in.nextInt(); ...
package me.zsj.moment.utils; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapShader; import android.graphics.Canvas; import android.graphics.Paint; import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool; import com.bumptech.glide.load.resource.bitmap.<API key>; /**...
#ifndef OUTDOOR_PVP_HP_ #define OUTDOOR_PVP_HP_ #include "OutdoorPvP.h" #define <API key> 6 // HP, citadel, ramparts, blood furnace, shattered halls, mag's lair const uint32 <API key>[<API key>] = { 3483, 3563, 3562, 3713, 3714, 3836 }; enum OutdoorPvPHPSpells {...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <TITLE>reordc_c</TITLE> </HEAD> <BODY style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"> <A name="TOP"></A> <table style="text-align: left; margin-left: auto; margin-right: auto; width: 800px;" border="0" cellpadding="5" ...
#ifndef __bidibidentdlg__ #define __bidibidentdlg__ /** @file Subclass of BidibIdentDlgGen, which is generated by wxFormBuilder. */ #include "bidibidendlggen.h" #include "rocs/public/node.h" #include "rocs/public/list.h" #include "rocs/public/map.h" #include "rocs/public/mutex.h" / end generated include /** Implementin...
package clientdata.visitors; import java.nio.charset.Charset; import java.nio.charset.CharsetDecoder; import java.util.HashMap; import java.util.Map; import org.apache.mina.core.buffer.IoBuffer; import clientdata.VisitorInterface; public class <API key> implements VisitorInterface { public static class SlotDefiniti...
package fr.eurecom.senml.entity; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; import com.google.appengine.api.datastore.Key; @PersistenceCapable public class ContactTest { @Primary...
<ion-header> <ion-navbar color="secondary"> <button ion-button menuToggle> <ion-icon color="primary" name="menu"></ion-icon> </button> <ion-title color="primary">Gourmet Calculator</ion-title> </ion-navbar> </ion-header> <ion-content class="calc"> <form #calcForm="ngForm" (ngSubmit)="onSubmit(...
package me.anthonybruno.soccerSim.team.member; import me.anthonybruno.soccerSim.models.Range; /** * Player is a class that contains information about a player. */ public class Player extends TeamMember { private final Range shotRange; private final int goal; /** * Creates a new player with a name, sh...
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using Newtonsoft.Json; using SmartStore.Core.Infrastructure; namespace SmartStore.Collections { public abstract class TreeNodeBase<T> where T : TreeNodeBase<T> { private T _parent; private List<T> _...
package vizardous.delegate.dataFilter; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; import vizardous.util.Converter; /** * Filter class that provides filter functionality for data structures with comparable content * * @author Johannes Sei...
#ifndef _AST_SMT_PP_H_ #define _AST_SMT_PP_H_ #include"ast.h" #include<string> #include"map.h" class smt_renaming { typedef map<symbol, symbol, symbol_hash_proc, symbol_eq_proc> symbol2symbol; symbol2symbol m_translate; symbol2symbol m_rev_translate; symbol fix_symbol(symbol s, int k); bool is_leg...
#!/bin/bash set -e echo "$(whoami)" if [ "$(whoami)" == "root" ]; then chown -R scrapy:scrapy /home/scrapy/backup chown --dereference scrapy "/proc/$$/fd/1" "/proc/$$/fd/2" || : exec gosu scrapy "$@" fi
<!DOCTYPE html> <html> <head> <title>!AntiShout demo</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width"> </head> <body> <form action="/"> <p> <label>Type: text</label> <input type="text" placeholder="T...
# Tutorials ## Table of contents - [Make a server from scratch](https://github.com/Komrod/web-servo/blob/master/tutorials.md#<API key>) - [Create a HTTPS server](https://github.com/Komrod/web-servo/blob/master/tutorials.md#make-a-https-server) ## Make a server from scratch Assuming you start from nothing, install Node ...
// Generated by the J2ObjC translator. DO NOT EDIT! // source: ../pdfreporter-core/src/org/oss/pdfreporter/crosstabs/fill/calculation/<API key>.java #include "J2ObjC_header.h" #pragma push_macro("<API key>") #ifdef <API key> #define <API key> 0 #else #define <API key> 1 #endif #undef <API key> #if !defined (<API key...
<?php return array( 'title' => 'Publicaciones', 'parent' => 'Contenido', 'name' => 'publicación|publicaciones', 'table' => array( 'id' => 'ID', 'action' => 'Acción', 'title' => 'Título', 'category_id' => 'Categoría', 'author_id' => 'Autor', 'url_alias' => 'Alias de la URL', 'author...
package com.albion.common.graph.algorithms; import com.albion.common.graph.core.v1.Edge; import com.albion.common.graph.core.v1.Graph; import com.albion.common.graph.core.v1.Vertex; import java.util.ArrayList; import java.util.List; public class BreathFirstSearch { public static Vertex locate(Graph graph, Integer s...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Athame.PluginAPI.Service { <summary> Represents a collection of items that are retrieved as pages from a service. </summary> <typeparam name="T">The type of each item.</typeparam...
namespace Animals.Animals { public class Kitten : Cat { public Kitten(string name, int age) : base(name, age, "Female") { } public override string ProduceSound() { return "Meow"; } } }
// Platform-specific code for FreeBSD goes here. For the POSIX-compatible // parts, the implementation is in platform-posix.cc. #include <osconfig.h> #ifdef FreeBSD #include <pthread.h> #include <semaphore.h> #include <signal.h> #include <sys/time.h> #include <sys/resource.h> #include <sys/types.h> #include <sys/uconte...
#! /usr/bin/env python import logging, logtool from .page import Page from .xlate_frame import XlateFrame LOG = logging.getLogger (__name__) class Contents: @logtool.log_call def __init__ (self, canvas, objects): self.canvas = canvas self.objects = objects @logtool.log_call def render (self): with P...
class CfgWeapons { // Base classes class ItemCore; class H_HelmetB; class H_Cap_red; class H_Bandanna_khk; class <API key>; // RHSSAF class rhssaf_helmet_base : H_HelmetB{ rgoc_canAcceptNVG = 1; }; class <API key> : rhssaf_helmet_base{ rgoc_canAcceptNVG = 1; }...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package services; import FareCalculator.Calculate; import java.util.ArrayList; import javax.ws.rs.core.Context; import javax.ws.rs.core.UriInfo; import javax.ws.rs.PathParam; import javax.ws.rs.Consumes; import javax.ws....
package xyw.ning.juicer.poco.model; import xyw.ning.juicer.base.NoProguard; public class Size implements NoProguard { public String url; public long width; public long height; }
#include <gtest/gtest.h> #include "math/integr/WeightedIntegral.h" #include "math/integr/<API key>.h" #include <stdexcept> #include <cmath> class <API key>: public testing::Test { }; TEST_F(<API key>,Test) { rql::integr::WeightedIntegral wi(rql::integr::WeightedIntegral::gen_xs(0, 1, 100), rql::integr::<API key>::C...
#ifndef HSSEVENTSELECTOR_H #define HSSEVENTSELECTOR_H #include "HSSNameSelector.h" namespace AXR { /** * @brief The special object \@event in HSS. * * Used in selector chains, returns a special object that contains * information about an event. */ class AXR_API HSSEventSelector : pub...
package ts3bot.helpers; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * Helper for testing method signatures. */ public final class <API key> { // Object methods. private static final List<MethodSignature> <A...
// <auto-generated> // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> namespace Abide.HaloLibrary.Halo2.Retail.Tag.Generated { using System; using Abide.HaloLibrary; using Abide.HaloLibr...
<?php require('../../php/bdd.php'); $bdd->query('DELETE FROM general WHERE 1'); $reqe = $bdd->prepare('INSERT INTO general (name, text, date) VALUES (:label, :text, 0)'); $reqe->execute(array( "label" => 'titre_accueil', "text" => $_POST['title'] )); $reqe->CloseCursor(); $reqe = $bdd->prepare('INSERT INTO gene...
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using System.Windows.Naviga...
using UnityEngine; using System.Collections; using UnityEngine.EventSystems; public class SelectOnInput : MonoBehaviour { public EventSystem eventSystem; public GameObject selectedObject; private bool buttonSelected; // Use this for initialization void Start () { } // Update is called once p...
package org.anddev.amatidev.pvb; import java.util.LinkedList; import org.amatidev.util.AdEnviroment; import org.amatidev.util.AdPrefs; import org.anddev.amatidev.pvb.bug.BugBeetle; import org.anddev.amatidev.pvb.card.Card; import org.anddev.amatidev.pvb.card.CardTomato; import org.anddev.amatidev.pvb.obj.Dialog; import...
<html> <body> <table border="0" cellspacing="0" cellpadding="0" align="LEFT"> <tr> <td><img src="file: </tr> </table> </body> </html>
## Introduction <b>vedgTools/QtWidgetsUtilities</b> is a general-purpose C++ library, which depends on QtCore and QtWidgets/QtGui libraries. Both Qt4 and Qt5 are supported. It also depends on vedgTools/CMakeModules and vedgTools/QtCoreUtilities libraries, which are present as submodules in this git repository. Copyrigh...
package ai.grakn.engine.backgroundtasks.config; /** * <p> * Class containing strings that describe the Kafka queues and groups * </p> * * @author Denis Lobanov, alexandraorth */ public interface KafkaTerms { String TASK_RUNNER_GROUP = "task-runners"; String SCHEDULERS_GROUP = "schedulers"; String WORK...
use sha1::{Sha1, Digest}; use std::fs; let mut file = fs::File::open(&path)?; let hash = Sha1::digest_reader(&mut file)?;
abstract class Adjunction[F[_], U[_]]( implicit val F: Functor[F], val U: Representable[U] ){ def unit[A](a: A): U[F[A]] def counit[A](a: F[U[A]]): A }
function HistoryAssistant() { } HistoryAssistant.prototype.setup = function() { this.appMenuModel = { visible: true, items: [ { label: $L("About"), command: 'about' }, { label: $L("Help"), command: 'tutorial' }, ] }; this.controller.setupWidget(Mojo.Menu.appMe...
# -*- coding: utf-8 -*- import logging from pprint import pformat from time import clock, sleep try: import unittest2 as unittest except ImportError: import unittest import config from event_stack import TimeOutReached from database_reception import Database_Reception from static_agen...
// This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // (at your option) any later version. // Parity is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //! Transaction data structure. use std::ops::Deref; use ...
#pragma once #include <ros/assert.h> #include <iostream> #include <eigen3/Eigen/Dense> #include "../utility/utility.h" #include "../parameters.h" #include "integration_base.h" #include <ceres/ceres.h> class IMUFactor : public ceres::SizedCostFunction<15, 7, 9, 7, 9> { public: IMUFactor() = delete; IMUFactor(I...
#ifndef <API key> #define <API key> #include <vector> #include <utility> // std::pair #include "MATH_CONSTANTS.h" #include "gnss_frequencies.h" #define <API key> 20 #define <API key> 25 #define <API key> 50 #define <API key> 0.85 // Physical constants const double GPS_C_m_s = SPEED_OF_LIGHT; //!< The speed of l...
app.controller('NavCtrl', [ '$scope', '$state', 'auth', function($scope, $state, auth){ $scope.isLoggedIn = auth.isLoggedIn; $scope.currentUser = auth.currentUser; $scope.logOut = auth.logOut; $scope.loggedin = auth.isLoggedIn(); if($scope.loggedin){ auth.validate(auth.getToken()).success(function(data){ ...
# Topydo - A todo.txt client written in Python. # This program is free software: you can redistribute it and/or modify # (at your option) any later version. # This program is distributed in the hope that it will be useful, # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the """ This module provides the Todo...
#ifndef SEGY_H #define SEGY_H #define SU_NFLTS 32768 /* Arbitrary limit on data array size */ /* TYPEDEFS */ #ifdef _CRAY typedef struct { /* segy - trace identification header */ signed tracl :32; /* trace sequence number within line */ signed tracr :32; /* trace sequence number within re...
#include <QString> #include "tstScore.h" #include "Score.h" using namespace QTournament; void tstScore::<API key>() { printStartMsg("tstScore::<API key>"); int tstScore[][3] = { {-1, 10, 0}, {21, -6, 0}, {29, 31, 0}, {32, 10, 0}, {21, 21, 0}, {12, 12, 0}, {30, 29, 1}, ...
CC = gcc CFLAGS = -g -Wall -Werror -D_GNU_SOURCE -I../include LDFLAGS = -ljson-c HEADERS = ../include/json.h ../include/error.h ../include/account.h ../include/util.h SRC = assignfee.c ../lib/json.c ../lib/account.c ../lib/error.c ../lib/util.c assignfee: $(SRC) $(HEADERS) $(CC) $(CFLAGS) $(LDFLAGS) $(SRC) -o$@ cle...
import java.util.Scanner; public class FeetMeters { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); System.out.print("Number of feet: "); float feet = keyboard.nextInt(); float foottometers = (float) .305; System.out.println(""); Sy...
<?php // Moodle is free software: you can redistribute it and/or modify // (at your option) any later version. // Moodle is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the declare(strict_types = 1); namespace core_grades\grades\grader\gradingpanel\point\e...
from pupa.scrape import Jurisdiction, Organization from .bills import MNBillScraper from .committees import MNCommitteeScraper from .people import MNPersonScraper from .vote_events import MNVoteScraper from .events import MNEventScraper from .common import url_xpath class Minnesota(Jurisdiction): division_id = "ocd...
<?php namespace Test\FlexiPeeHP; use FlexiPeeHP\Nastaveni; /** * Generated by <API key> on 2016-04-27 at 17:32:11. */ class NastaveniTest extends FlexiBeeROTest { /** * @var Nastaveni */ protected $object; /** * Sets up the fixture, for example, opens a network connection. * This metho...
#pragma once #include <fstream> #include <iomanip> #include <map> #include <sstream> #include <string> #include "jw.hpp" namespace Zee { class Report { public: Report(std::string title, std::string rowTitle) : title_(title), rowTitle_(rowTitle) { rowSize_ = rowTitle_.size(); } void addCol...
package ProxyPattern; public class <API key> { public static void main(String[] args) { int count = 0; if (args .length < 2) { System.out.println("GumballMachine <name> <inventory>"); System.exit(1); } count = Integer.parseInt(args[1]); GumballMachine ...
<?php class <API key> implements Countable, ArrayAccess, Iterator { protected $fieldnames = array(); protected $data = array(); protected $position = 0; public function __set($fieldname, $value) { //this differs from self::offsetSet: // - if a field has been set before, make this fie...
#ifndef SQLCONNECTDIALOG_H #define SQLCONNECTDIALOG_H #include <QDialog> #include <QtSql> namespace Ui { class SQLConnectDialog; } class SQLConnectDialog : public QDialog { Q_OBJECT public: explicit SQLConnectDialog(QWidget *parent = 0); ~SQLConnectDialog(); QSqlDatabase connect(QSqlDatabase db); privat...
// This code is part of the CPCC-NG project. // This program is free software; you can redistribute it and/or modify // (at your option) any later version. // This program is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // along with this program; if no...
<?php namespace App\Console\Commands; use App\App; use Illuminate\Console\Command; use Illuminate\Support\Facades\Artisan; use Imperium\File\File; class Venus extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'app:secure'; /*...
/* * Decompiled with CFR 0_114. * * Could not load the following classes: * com.stimulsoft.base.drawing.StiBrush * com.stimulsoft.base.drawing.StiColor * com.stimulsoft.base.drawing.StiSolidBrush * com.stimulsoft.base.drawing.enums.StiPenStyle * com.stimulsoft.base.serializing.annotations.StiDefaulValue *...
#if ! defined (<API key>) #define <API key> 1 #include "ButtonControl.h" class QPushButton; namespace QtHandles { class PushButtonControl : public ButtonControl { public: PushButtonControl (const graphics_object& go, QPushButton* btn); ~PushButtonControl (void); static PushButtonControl* create (const...
package com.base.engine.math; public class Vector2f { private float x, y; public Vector2f(float x, float y) { this.x = x; this.y = y; } public Vector2f normalized() { float len = length(); float x_ = x / len; float y_ = y / len; return new Vector2f...
package org.mariotaku.twidere.util; import java.io.File; import android.annotation.TargetApi; import android.content.Context; import android.os.Build; import android.os.Environment; public final class EnvironmentAccessor { public static File getExternalCacheDir(final Context context) { if (Build.VERSION.SDK...
#include "toString.h" vector<string> splitString(string s, char c) { stringstream ss(s); string token; vector<string> res; while (std::getline(ss, token, c)) res.push_back(token); return res; } string toString(string s) { return s; } string toString(bool b) { stringstream ss; ss << b; return ss.str(...
<!DOCTYPE html><html><head><link rel="canonical" href="http:
<?php class NivelSni extends AppModel { var $name = 'NivelSni'; var $displayField = 'nombre'; var $validate = array( 'nombre' => array( 'minlength' => array( 'rule' => array('minlength', 1), 'message' => 'Valor muy pequeño.', 'allowEmpty' =...
public class Silver extends Piece { public Silver(int owner) { super(owner); setSymbol("S"); setType("Silver"); } public boolean canMove(Square from, Square to, Board b) { if(promoted) { //Gold movement code if((Math.abs(from.getR() - to.getR()) <=...
package org.otherobjects.cms.tools; import java.io.<API key>; import java.net.URLEncoder; import java.security.MessageDigest; import javax.annotation.Resource; import org.otherobjects.cms.model.User; import org.otherobjects.cms.model.UserDao; import org.otherobjects.cms.views.Tool; import org.springframework.stereotype...
import kivy kivy.require('1.9.1') from kivy.uix.popup import Popup from kivy.uix.label import Label from kivy.uix.gridlayout import GridLayout from kivy.metrics import dp from kivy.app import Builder from kivy.properties import StringProperty, ObjectProperty from kivy.clock import Clock from kivy.metrics import sp from...
class CheckBase(object): """ Base class for checks. """ hooks = [] # pylint: disable=W0105 """Git hooks to which this class applies. A list of strings.""" def execute(self, hook): """ Executes the check. :param hook: The name of the hook being run. :type hook:...
<?php /** * \file htdocs/product/stock/index.php * \ingroup stock * \brief Home page of stock area */ require '../../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/product/stock/class/entrepot.class.php'; $langs->load("stocks"); // Security check $result=restrictedArea($user,'stock'); /* * View ...
<?php require_once ('getConnection.php'); $stmt = $connect -> stmt_init(); $query = "SELECT c_token FROM t_course WHERE c_id = ?"; if (!($stmt -> prepare($query))) { echo "Prepare failed: " . $connect -> errno . $connect -> error; } if (!($stmt -> bind_param("d", $_POST["course"]))) { echo "Bind failed: " . $co...
#define OVERRIDE_PLACEMENT #include "common.h" #include "pages.h" #include "gui/gui.h" #include "config/model.h" #include "config/ini.h" #include <stdlib.h> enum { LABELNUM_X = 0, LABELNUM_WIDTH = 16, LABEL_X = 17, LABEL_WIDTH = 0, }; #include "../128x64x1/model_loadsave.c"
package com.gowan.plugin; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.ListIterator; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IJavaProject; i...
<?php namespace DB; final class mPDO { private $connection = null; private $statement = null; public function __construct($hostname, $username, $password, $database, $port = '3306') { try { $dsn = "mysql:host={$hostname};port={$port};dbname={$database};charset=UTF8"; $options...