code
stringlengths
4
1.01M
language
stringclasses
2 values
<?php return array ( 'This user account is not approved yet!' => 'Tento účet ještě není aktivován!', 'User not found!' => 'Uživatel nebyl nalezen!', 'You need to login to view this user profile!' => 'Abyste mohli prohlížet tento profil, je potřeba se nejdříve přihlásit.', );
Java
#region copyright // Copyright (c) 2012, TIGWI // All rights reserved. // Distributed under BSD 2-Clause license #endregion using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Tigwi.UI.Models.Storage { using Tigwi.Storage.Library; public class DuplicateUserExceptio...
Java
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta name=...
Java
import requests class Status(object): SKIP_LOCALES = ['en_US'] def __init__(self, url, app=None, highlight=None): self.url = url self.app = app self.highlight = highlight or [] self.data = [] self.created = None def get_data(self): if self.data: ...
Java
<?php /** * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license and are unable to * ob...
Java
# -*-coding:Utf-8 -* # Copyright (c) 2010-2017 LE GOFF Vincent # 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
#include<iostream> using namespace std; int a[]={1,255,8,6,25,47,14,35,58,75,96,158,657}; const int len = sizeof(a)/sizeof(int); int b[10][len+1] = { 0 }; //将b全部置0 void bucketSort(int a[]);//桶排序函数 void distributeElments(int a[],int b[10][len+1],int digits); void collectElments(int a[],int b[10][len+1]); int numOfDigit...
Java
/* * ColorBasedROIExtractorRGB.h * * Created on: Dec 2, 2011 * Author: Pinaki Sunil Banerjee */ #ifndef BRICS_3D_COLORBASEDROIEXTRACTORRGB_H_ #define BRICS_3D_COLORBASEDROIEXTRACTORRGB_H_ #include "IFiltering.h" #include <stdlib.h> #include <cmath> #include <iostream> #include <stdio.h> #include <stdint.h>...
Java
<!DOCTYPE html><html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"> <meta charset="utf-8"> <title>Phing API Documentation » \DataTypeHandler</title> <meta name="author" cont...
Java
# # GtkMain.py -- pygtk threading help routines. # # Eric Jeschke (eric@naoj.org) # # Copyright (c) Eric R. Jeschke. All rights reserved. # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # """ GUI threading help routines. Usage: import GtkMain # See c...
Java
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model backend\modules\inspection\models\InspectionHospitalMapSearch */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="inspection-hospital-map-search"> <?php $form = ActiveForm::begin([ 'action' => ['in...
Java
/*! \ingroup PkgAABB_treeConcepts \cgalConcept The concept `AABBTraits` provides the geometric primitive types and methods for the class `CGAL::AABB_tree<AABBTraits>`. \cgalHasModel `CGAL::AABB_traits<AABBGeomTraits,AABBPrimitive>` \sa `CGAL::AABB_traits<AABBGeomTraits,AABBPrimitive>` \sa `CGAL::AABB_tree<AABBTrait...
Java
/*! jQuery UI - v1.11.4 - 2015-12-06 * http://jqueryui.com * Includes: core.js, datepicker.js * Copyright jQuery Foundation and other contributors; Licensed MIT */ (function( factory ) { if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. define([ "jquery" ], factory...
Java
#!/bin/bash #This program calculates the core count for each result row and updates the #results. This is a work around due to a current limitation of #HdpHBencher/HsBencher. #Author: Blair Archibald function usage { echo "Usage: processResults.sh <resultsFile>" exit -1 } test -z $1 && usage resultsFile="$1" ...
Java
var sbModule = angular.module('sbServices', ['ngResource']); sbModule.factory('App', function($resource) { return $resource('/api/v1/app/:name', { q: '' }, { get: { method: 'GET' }, //isArray: false }, query: { method: 'GET'} //, params: { q: '' }//, isArray: false } }); });
Java
// Copyright 2015 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 ap...
Java
# coding: utf-8 # This file is part of Thomas Aquinas. # # Thomas Aquinas 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. # # Thomas Aq...
Java
/*- * Copyright (c) 2006 The FreeBSD 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of...
Java
module Mistral.Schedule.Value ( Env , groupEnv , lookupEnv , bindType , bindValue , bindParam , NodeTags , bindNode , lookupTag, lookupTags , Value(..) , SNetwork(..), mapWhen, modifyNode , SNode(..), addTask , STask(..), hasConstraints , SConstraint(..), target ) where import Mistral...
Java
/* * 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 * notice, this list of conditions and the following disclaimer. * 2. Redistributions in bin...
Java
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
Java
#include "ADTFPinMessageEncoder.h" using namespace A2O; ADTFPinMessageEncoder::ADTFPinMessageEncoder(IAction::Ptr action, ICarMetaModel::ConstPtr carMetaModel) : _action(action) { // Create output pins const std::vector<IServoDriveConfig::ConstPtr>& servoDriveConfigs = carMetaModel->getServoDrive...
Java
<?php namespace Exchange\EWSType; use Exchange\EWSType; /** * Contains EWSType_TentativelyAcceptItemType. */ /** * Represents a Tentative reply to a meeting request. * * @package php-ews\Types * * @todo Extend EWSType_WellKnownResponseObjectType. */ class EWSType_TentativelyAcceptItemType extends EWSType { ...
Java
# Running JupyterHub itself in docker This is a simple example of running jupyterhub in a docker container. This example will: - create a docker network - run jupyterhub in a container - enable 'dummy authenticator' for testing - run users in their own containers It does not: - enable persistent storage for users ...
Java
{-# LANGUAGE ParallelListComp #-} module OldHMM (Prob, HMM(..), train, bestSequence, sequenceProb) where import qualified Data.Map as M import Data.List (sort, groupBy, maximumBy, foldl') import Data.Maybe (fromMaybe, fromJust) import Data.Ord (comparing) import Data.Function (on) import Control.Monad import ...
Java
<?php namespace app\modules\admin\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use app\models\Trigger; /** * TriggerSearch represents the model behind the search form about `app\models\Trigger`. */ class TriggerSearch extends Trigger { /** * @inheritdoc */ public function...
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 <stdlib.h> #include "base/basictypes.h" #include "base/file_util.h" #include "base/path_service.h" #include "base/strings/string_util.h" #in...
Java
#<pycode(py_choose)> class Choose: """ Choose - class for choose() with callbacks """ def __init__(self, list, title, flags=0, deflt=1, icon=37): self.list = list self.title = title self.flags = flags self.x0 = -1 self.x1 = -1 self.y0 = -1 self.y1 = -1 self.width = -1 self...
Java
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ n...
Java
<dom-module id="my-scientists-list"> <template> <firebase-collection data="{{scientists}}" location="https://radiant-fire-9062.firebaseio.com/users"> </firebase-collection> <template is="dom-repeat" items="[[scientists]]" as="scientist"> <p>Element: <span>[[index]]</span><...
Java
using System.Collections.Generic; using System.Web; using System.Web.UI; using ServiceStack.Common.Web; namespace ServiceStack.WebHost.Endpoints.Support.Metadata.Controls { internal class Soap12OperationControl : OperationControl { public Soap12OperationControl() { EndpointType = EndpointType.Soap12; } ...
Java
<?php /** * inerface INewsDB * содержит основные методы для работы с новостной лентой */ interface INewsDB{ /** * Добавление новой записи в новостную ленту * * @param string $title - заголовок новости * @param string $category - категория новости * @param string $description - текст нов...
Java
// Copyright 2020 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 CHROME_BROWSER_ASH_CROSTINI_CROSTINI_ENGAGEMENT_METRICS_SERVICE_H_ #define CHROME_BROWSER_ASH_CROSTINI_CROSTINI_ENGAGEMENT_METRICS_SERVICE_H_ #in...
Java
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>second_derivative &mdash; MetPy 0.8</title> ...
Java
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ABI41_0_0AndroidDialogPickerProps.h" #include <ABI41_0_0React/components/image/conversions.h> #include <ABI41_0_0React/c...
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/drive/drive_api_util.h" #include <string> #include "base/files/file.h" #include "base/logging.h" #include "base/md5.h" #inc...
Java
class Vehicletype < ActiveRecord::Base has_many :vehicles attr_accessible :capacity, :fuel, :maintcycle, :name validates :name, :uniqueness => true end
Java
The jStar Eclipse Plug-in ============================= There is a tutorial for the plugin: doc/jstar eclipse tutorial/jstar eclipse tutorial.pdf For more information, see [http://www.jstarverifier.org](https://web.archive.org/web/20141217130023/http://jstarverifier.org/) ___ This repository contains infor...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>DIRECTION-TOWARDS-OTHERS</title> </head> <body> <h3><i>I update my desired direction to head toward those in my local interaction zone if not in my personal space.</i> </h3> <font ...
Java
'use strict'; describe('Directive: searchFilters', function () { // load the directive's module beforeEach(module('searchApp')); var element, scope; beforeEach(inject(function ($rootScope) { scope = $rootScope.$new(); })); it('should make hidden element visible', inject(function ($compile) { ...
Java
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model app\models\Fahrtenbuch */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="fahrtenbuch-form"> <?php $form = ActiveForm::begin(); ?> <?= $form->field($model, 'fahrer')->textInput(['maxlength' => true])...
Java
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import <UIKit/UIKit.h> #import <ABI42_0_0React/ABI42_0_0RCTView.h> @interface ABI42_0_0RCTMaskedView : ABI42_0_0RCTView @end
Java
# This code is free software; you can redistribute it and/or modify it under # the terms of the new BSD License. # # Copyright (c) 2011, Sebastian Staudt require 'fixtures' require 'helper' class TestGitHub < Test::Unit::TestCase context 'The GitHub implementation' do should 'not support file stats' do ...
Java
--- id: 5900f4331000cf542c50ff45 challengeType: 5 title: 'Problem 198: Ambiguous Numbers' forumTopicId: 301836 --- ## Description <section id='description'> A best approximation to a real number x for the denominator bound d is a rational number r/s (in reduced form) with s ≤ d, so that any rational number p/q which i...
Java
/* * HE_Mesh Frederik Vanhoutte - www.wblut.com * * https://github.com/wblut/HE_Mesh * A Processing/Java library for for creating and manipulating polygonal meshes. * * Public Domain: http://creativecommons.org/publicdomain/zero/1.0/ * I , Frederik Vanhoutte, have waived all copyright and related or neighbor...
Java
The *Control Freak* IDE provides already a sophisticated Editor which comes with auto completion and snippets by the default. Since most developers prefer their own editors and key bindings, the IDE allows also to write driver code outside of the IDE. All you you need to do is open the driver Javascript file and start...
Java
# -*- coding: utf-8 -*- ''' Production Configurations - Use djangosecure - Use Amazon's S3 for storing static files and uploaded media - Use sendgrid to send emails - Use MEMCACHIER on Heroku ''' from configurations import values # See: http://django-storages.readthedocs.org/en/latest/backends/amazon-S3.html#settings...
Java
<?php /** * Locale data for 'tn'. * * This file is automatically generated by yiic cldr command. * * Copyright © 1991-2007 Unicode, Inc. All rights reserved. * Distributed under the Terms of Use in http://www.unicode.org/copyright.html. * * Copyright © 2008-2010 Yii Software LLC (http://www.yiiframework.com/lic...
Java
<?php // autoload_psr4.php @generated by Composer $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( 'Zend\\View\\' => array($vendorDir . '/zendframework/zend-view/src'), 'Zend\\Validator\\' => array($vendorDir . '/zendframework/zend-validator/src'), 'Zend\\Uri\\' => a...
Java
/* * Software License Agreement (New BSD License) * * Copyright (c) 2013, Keith Leung, Felipe Inostroza * 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 c...
Java
/* * Copyright (C) 2007 Apple Inc. 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 * notice, this list of conditions a...
Java
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */ /* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */ export default {"viewBox":"0 0 52 52","xmlns":"http://www.w3.org/2000/svg","path":[{"d":"M43.3 6h-1.73a.74.74 0 00-.67.8V10a6.37 6.37 0 01-6.3 6.4H17.4a6.37 6.37 0 01-6...
Java
// 1000-page badge // Awarded when total read page count exceeds 1000. var sys = require('sys'); var _ = require('underscore'); var users = require('../../users'); var badge_template = require('./badge'); // badge key, must be unique. var name = "1000page"; exports.badge_info = { id: name, name: "...
Java
/*================================================================================ Copyright (c) 2012 Steve Jin. 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 re...
Java
#ifndef MTF_MC_RSCV_H #define MTF_MC_RSCV_H #include "RSCV.h" _MTF_BEGIN_NAMESPACE class MCRSCV : public RSCV{ public: MCRSCV(const ParamType *rscv_params = nullptr); }; _MTF_END_NAMESPACE #endif
Java
// Copyright 2014 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/chromeos/timezone/timezone_request.h" #include <string> #include "base/json/json_reader.h" #include "base/metrics/histogram.h" ...
Java
/* FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. *************************************************************************** * ...
Java
[clappr](../../index.md) / [io.clappr.player.base](../index.md) / [InternalEvent](index.md) / [DID_DESTROY](./-d-i-d_-d-e-s-t-r-o-y.md) # DID_DESTROY `DID_DESTROY` ### Inherited Properties | Name | Summary | |---|---| | [value](value.md) | `val value: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="lang:clipboard.copy" conte...
Java
package com.krishagni.catissueplus.core.biospecimen.events; import java.math.BigDecimal; import java.util.Date; import java.util.List; import com.krishagni.catissueplus.core.administrative.events.StorageLocationSummary; import com.krishagni.catissueplus.core.common.events.UserSummary; import com.krishagni.catissueplu...
Java
{% load i18n %} <table class="table table-bordered table-striped table-wrapped" data-table data-b-filter="false"> <thead> <tr> <th>{% trans "Name" %}</th> <th>{% trans "Version" %}</th> </tr> </thead> <tbody> {% for entry in software_info %} <tr> ...
Java
PKG_NAME = lz4 PKG_VERS = 1.7.5 PKG_EXT = tar.gz PKG_DIST_NAME = v$(PKG_VERS).$(PKG_EXT) PKG_DIST_SITE = https://github.com/lz4/lz4/archive/ PKG_DIR = $(PKG_NAME)-$(PKG_VERS) DEPENDS = HOMEPAGE = https://github.com/lz4/lz4 COMMENT = LZ4 is lossless compression algorithm, providing compression speed at 400 MB/s per c...
Java
// $Id: MainClass.java,v 1.6 2003/10/07 21:46:08 idgay Exp $ /* tab:4 * "Copyright (c) 2000-2003 The Regents of the University of California. * All rights reserved. * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, without fee, and without writte...
Java
## The Unicode Standard, Unicode Character Database, Version 11.0.0 ### Unicode Character Database ``` UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE Unicode Data Files include all data files under the directories http://www.unicode.org/Public/, http://www.unicode.org/reports/, http://www.unicode.org/cldr...
Java
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.IO; using System.Collections.Specialized; using System.Security.Cryptography; using System.Web; namespace BotR.API { public class BotRAPI { private string _apiURL = ""; ...
Java
/* prevent execution of jQuery if included more than once */ if(typeof window.jQuery == "undefined") { /* * jQuery 1.1.2 - New Wave Javascript * * Copyright (c) 2007 John Resig (jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * $Date: 2007-04-03 22:27:21 $ * $...
Java
# Author: Immanuel Bayer # License: BSD 3 clause import ffm import numpy as np from .base import FactorizationMachine from sklearn.utils.testing import assert_array_equal from .validation import check_array, assert_all_finite class FMRecommender(FactorizationMachine): """ Factorization Machine Recommender with ...
Java
package me.hatter.tools.resourceproxy.commons.io; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.io.UnsupportedEncodingException; public class FilePrintWriter extends PrintWriter { public FileP...
Java
#include <stdlib.h> #include <stdio.h> #include <utp.h> #include <utp.c> int test() { return -1; } int main(int argc, char ** argv) { if (argc != 2) { fprintf(stderr, "usage: server <PORT>\n"); return EXIT_FAILURE; } int port = atoi(argv[1]); printf("using port = %i\n", port); ...
Java
Copyright 2017 Roman Dodin 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 notice, this list of conditions and the following disclaimer. 2. Redistributions ...
Java
/* * mplsred.h * * Copyright 2010 Daniel Mende <dmende@ernw.de> */ /* * 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 ab...
Java
#include "torch-moveit.h" #include <moveit/planning_scene_interface/planning_scene_interface.h> #include "utils.h" typedef std::shared_ptr<moveit_msgs::CollisionObject> CollisionObjectPtr; MOVIMP(CollisionObjectPtr*, CollisionObject, new)() { CollisionObjectPtr *p = new CollisionObjectPtr(new moveit_msgs::Collision...
Java
// Generated by delombok at Sat Jun 11 11:12:44 CEST 2016 public final class Zoo { private final String meerkat; private final String warthog; public Zoo create() { return new Zoo("tomon", "pumbaa"); } @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") Zoo(final String meerkat...
Java
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>relative_humidity_from_dewpoint &mdash; MetP...
Java
<?php /* * This file is part of the codeliner/ginger-plugin-installer package. * (c) Alexander Miertsch <kontakt@codeliner.ws> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ return array( );
Java
package ru.ac.uniyar.dots; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { super...
Java
--- layout: organization category: local title: St. Helens Church impact_area: Human Rights keywords: location_services: location_offices: website: sthelen.org description: mission: | Support group for the physically challenged/ community service organization cash_grants: grants: service_opp: services: le...
Java
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Kontrollb...
Java
Order.class_eval do after_create :create_tax_charge! alias original_generate_order_number generate_order_number def generate_order_number return original_generate_order_number unless Spree::Config[:running_order_numbers] year = Time.now.year if last = Order.last num = last.number[5..9].to_...
Java
using Microsoft.Extensions.DependencyInjection; using OrchardCore.Email.Workflows.Activities; using OrchardCore.Email.Workflows.Drivers; using OrchardCore.Modules; using OrchardCore.Workflows.Helpers; namespace OrchardCore.Email.Workflows { [RequireFeatures("OrchardCore.Workflows")] public class Startup : Star...
Java
#------------------------------------------------------------------------------ # Copyright (c) 2007, Riverbank Computing Limited # All rights reserved. # # This software is provided without warranty under the terms of the BSD license. # However, when used with the GPL version of PyQt the additional terms described in ...
Java
#include <iostream> #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <dirent.h> #include <errno.h> using namespace std; int main(int argc, char** argv) { if(argc <= 1) { cout << "Nothing passed in to argv." << endl; ...
Java
/* $OpenBSD: tls_server.c,v 1.4 2015/02/07 06:19:26 jsing Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice a...
Java
import argparse import glob import hashlib import json import os IRMAS_INDEX_PATH = '../mirdata/indexes/irmas_index.json' def md5(file_path): """Get md5 hash of a file. Parameters ---------- file_path: str File path. Returns ------- md5_hash: str md5 hash of data in file_...
Java
/************************************************************************************** * Copyright (c) 2013-2015, Finnish Social Science Data Archive/University of Tampere * * * * All rights reserved. ...
Java
# frozen_string_literal: true require 'rack/handler' module Rack module Handler module Puma DEFAULT_OPTIONS = { :Verbose => false, :Silent => false } def self.config(app, options = {}) require 'puma' require 'puma/configuration' require 'puma/log_write...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>SetStartupInfo</title> <meta http-equiv="Content-Type" Content="text/html; charset=Windows-1251"> <link rel="stylesheet" type="text/css" href="../../styles/styles.css"> <script language="javascript" src='../links.js' type="text/javascr...
Java
/* * Copyright (c) 2005, Regents of the University of California * 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 RenameCurrencyTable < ActiveRecord::Migration def change rename_table :currencies, :spree_currencies end end
Java
import unittest import time import pprint import logging import scanner.logSetup as logSetup import pyximport print("Have Cython") pyximport.install() import dbPhashApi class TestCompareDatabaseInterface(unittest.TestCase): def __init__(self, *args, **kwargs): logSetup.initLogging() super().__init__(*args,...
Java
require_relative '../../spec_helper' describe '/api/assessments' do before do login_to_environment end context 'GET /api/assessments' do it 'returns a list of assessments' do assessments = Controls.assessments assessments.each do |assessment| expect(assessment).to be_kind_of(Control...
Java
from numpy import array, zeros, ones, sqrt, ravel, mod, random, inner, conjugate from scipy.sparse import csr_matrix, csc_matrix, coo_matrix, bmat, eye from scipy import rand, mat, real, imag, linspace, hstack, vstack, exp, cos, sin, pi from pyamg.util.linalg import norm import pyamg from scipy.optimize import fminboun...
Java
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__new_free_struct_54a.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_free.label.xml Template File: sources-sinks-54a.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Rout...
Java
<?php namespace backend\controllers; use Yii; use backend\models\Status; use backend\models\search\StatusSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; use yii\filters\AccessControl; use common\models\PermissionHelpers; /** * StatusController implements the CRUD actio...
Java
from bluebottle.projects.serializers import ProjectPreviewSerializer from bluebottle.quotes.serializers import QuoteSerializer from bluebottle.slides.serializers import SlideSerializer from bluebottle.statistics.serializers import StatisticSerializer from rest_framework import serializers class HomePageSerializer(ser...
Java
/* Copyright (c) 2015, Kripasindhu Sarkar 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 th...
Java
/**************************************************************************/ /* CONFIDENTIAL AND PROPRIETARY SOURCE CODE */ /* OF NETSCAPE COMMUNICATIONS CORPORATION */ /* */ /* Copyright...
Java
/* Copyright (c) 2010 Anders Bakken Copyright (c) 2010 Donald Carr 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
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>File: INDEX.rd...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="lang:clipboard.copy" conte...
Java