repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
worldskills/concrete5-worldskills
blocks/page_attribute_display/templates/worldskills_content.php
1701
<?php defined('C5_EXECUTE') or die('Access Denied.'); $c = \Page::getCurrentPage(); $content = $c->getAttribute($attributeHandle); ?> <div class="ws-content"> <?php if (is_object($content) && $content instanceof \Concrete\Core\Entity\File\File): ?> <?php if ($content->getTypeObject()->isSVG()) { ...
mit
danwrong/liquid-inheritance
test/liquid_inheritance_test.rb
3831
$:.unshift(File.join(File.dirname(__FILE__), '../lib')) require 'rubygems' require 'test/unit' require 'shoulda' require 'redgreen' rescue nil require 'liquid_inheritance' class TestFileSystem def read_template_file(path) if path == 'simple' 'test' elsif path == 'complex' %{ beginnin...
mit
arteria/django-compat
setup.py
2374
# -*- encoding: utf-8 -*- import os, sys from setuptools import setup from setuptools import find_packages # Make the open function accept encodings in python < 3.x if sys.version_info[0] < 3: import codecs open = codecs.open # pylint: disable=redefined-builtin # Utility function to read the README file. # U...
mit
SpectralAngel/simoni
src/Indira/SimoniBundle/Resources/public/js/simoni.js
2310
function SIMONI() { $('.datepicker').datepicker({ dateFormat : 'dd/mm/yy', changeMonth: true, changeYear: true }); $('.colorpicker').colorpicker(); $('.form-dialog').dialog({ autoOpen : false }); $('input.datetimepicker').datetimepicker( { dateFormat : 'dd/mm/yy', ...
mit
dthree/wat
src/spider/stackoverflow.js
5932
'use strict'; /** * Module dependencies. */ const _ = require('lodash'); const moment = require('moment'); const chalk = require('chalk'); const util = require('../util'); const stackoverflow = { getPage(searchResult, callback) { callback = callback || {}; const self = this; const questionId = (_.is...
mit
xtrmstep/ApplyingTddToLegacyCode
ApplyingTddToLegacyCode/Rule7Example/Notifications/EmailNotifier.cs
448
namespace Rule7Example.Notifications { public class EmailNotifier : INotifier { public void Send(Cart cart) { var message = CreateMessage(cart); SendMessage(message); } private void SendMessage(string message) { // send via SMPT ...
mit
chenglei1986/ImageUploadMask
image-upload-mask/src/main/java/imageuploadmask/OvalMask.java
778
package imageuploadmask; import android.content.Context; import android.graphics.Canvas; import android.graphics.Path; import android.graphics.RectF; import android.graphics.Region; import android.util.AttributeSet; public class OvalMask extends ShapeMask { private Path mClipPath = new Path(); public OvalMa...
mit
icyflash/ucloud-csharp-sdk
UCloudSDK/Models/SecurityGroupRule.cs
1929
namespace UCloudSDK.Models { /// <summary> /// UNet防火墙规则 /// </summary> public partial class SecurityGroupRule { /// <summary> /// 网络协议 /// <para> /// 枚举值为:TCP,UDP,ICMP,GRE /// </para> /// </summary> public string...
mit
tbepler/LRPaGe
src/bepler/lrpage/templates/LexerTemplate.java
2857
package bepler.lrpage.templates; public class LexerTemplate { private final java.io.Reader r; private boolean next = true; private int lineNum = 1; private int charNum = 1; private final java.util.Deque<Character> buffer = new java.util.LinkedList<Character>(); public LexerTemplate(java.io.Reader r){ this...
mit
rogerio-dfb/Vidly
Vidly/Models/Movie.cs
864
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; namespace Vidly.Models { public class Movie { public int Id { get; set; } [Required] [StringLength(255)] public string Name { get; set; } ...
mit
getnashty/liftr
app/helpers/lifts_helper.rb
1730
module LiftsHelper def exercise_select(f) options = {} today=Time.now.strftime("%m/%d/%Y") @exercises.each do |exercise| noway=0 if exercise.name != "Body Weight" && exercise.muscle_id == @muscleid @lifts.each do |lift| if lift.user_id == current_user.id && lif...
mit
xZ1mEFx/yii2-multilang
views/translation/adminlte/index.php
2944
<?php use xz1mefx\adminlte\helpers\Html; use xz1mefx\multilang\models\SourceMessage; use yii\grid\ActionColumn; use yii\grid\GridView; use yii\widgets\Pjax; /* @var $this yii\web\View */ /* @var $searchModel \xz1mefx\multilang\models\search\TranslationSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ /* @...
mit
Ostrovski/node-express-ex-boilerplate
domain/services/Counter.js
220
'use strict'; function Counter() { this.counter = 0; this.dt = new Date(); } Counter.prototype.count = function() { return this.counter++ + ' (I was born at ' + this.dt + ')'; }; module.exports = Counter;
mit
duodraco/curso-php-drc
aulas/07-bancos de dados/fromcsvtodb/app/library/DRC/Data/Sale.php
3732
<?php /** * Created by PhpStorm. * User: noite * Date: 25/03/15 * Time: 21:58 */ namespace DRC\Data; class Sale { protected $id; protected $transactionDate; protected $product; protected $price; protected $paymentType; protected $name; protected $city; protected $state; prote...
mit
peta-okechan/emris
src/ObjectData.hpp
22594
// // ObjectData.hpp // emris // // Created by peta on 2013/12/16. // Copyright (c) 2013 peta.okechan.net. All rights reserved. // #ifndef EmTetris_Box_h #define EmTetris_Box_h #include <vector> #include <unordered_map> #include <string> #include <GL/glut.h> #include <glm/glm.hpp> struct ObjectData { public: ...
mit
benbrandt22/genevaGen
svgBindViewbox.js
631
(function () { 'use strict'; var app = angular.module('app'); app.directive('svgBindViewbox', function () { return { link: function (scope, element, attrs) { /* inserts the evaluated value of the "svg-bind-viewbox" attribute into the "vie...
mit
ja1cap/shop
src/Weasty/Bundle/CatalogBundle/Feature/FeaturesResourceInterface.php
1194
<?php namespace Weasty\Bundle\CatalogBundle\Feature; /** * Interface FeaturesResourceInterface * @package Weasty\Bundle\CatalogBundle\Feature */ interface FeaturesResourceInterface extends \JsonSerializable, \ArrayAccess { /** * @return FeatureInterface[]; */ public function getFeatures(); /...
mit
callstack-io/haul
packages/haul-core/src/preset/utils/applyMultiBundleTweaks.ts
3054
import path from 'path'; import webpack from 'webpack'; import { EnvOptions, NormalizedBundleConfig, NormalizedTemplatesConfig, } from '../../config/types'; import compileTemplate from './compileTemplate'; export function getBundleFilename( env: EnvOptions, templatesConfig: NormalizedTemplatesConfig, bundl...
mit
PublicHealthEngland/fingertips-open
FingertipsProfileManager/DIResolver/Properties/AssemblyInfo.cs
1396
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("DI...
mit
janvt/Ghost
core/server/data/migrations/versions/4.9/05-fix-missed-mobiledoc-url-transforms.js
3081
const logging = require('@tryghost/logging'); const urlUtils = require('../../../../../shared/url-utils'); const htmlToPlaintext = require('../../../../../shared/html-to-plaintext'); const mobiledocLib = require('../../../../lib/mobiledoc'); const {createTransactionalMigration} = require('../../utils'); // in Ghost ve...
mit
callbackrun/callback-ruby
lib/callback.rb
296
require "callback/api" require "callback/client" require "callback/configuration" require "callback/parser" require "callback/version" module Callback def self.configuration @configuration ||= Configuration.new end def self.configure yield configuration if block_given? end end
mit
awoland/Synergy
src/qt/locale/bitcoin_pl.ts
119760
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pl" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About synergy</source> <translation>O synergy</translation> </message> <message> <location li...
mit
kramer2/EMR
files/templates_c/%%E3^E33^E336EC2F%%search_control.tpl.php
3513
<?php /* Smarty version 2.6.26, created on 2011-03-16 21:33:31 compiled from search_control.tpl */ ?> <!-- --> <form method="GET" name="SearchForm" style="padding: 0px; margin: 0px; vertical-align: middle;"> <?php $_from = $this->_tpl_vars['SearchControl']->GetHiddenValues(); if (!is_array($_from) && !is_obj...
mit
SharpKit/Cs2Java
Runtime/rt/sun/reflect/ConstructorAccessor.cs
306
//*************************************************** //* This file was generated by JSharp //*************************************************** namespace sun.reflect { public partial interface ConstructorAccessor { global::System.Object newInstance(global::System.Object[] prm1); } }
mit
edibleguy/grav
cache/gantry5/g5_helium/compiled/yaml/cbc56e228bfef762f2610e3cf90a3ff7.yaml.php
802
<?php return [ '@class' => 'Gantry\\Component\\File\\CompiledYamlFile', 'filename' => '/var/www/html/grav/user/themes/g5_helium/blueprints/styles/intro.yaml', 'modified' => 1482802103, 'data' => [ 'name' => 'Intro Styles', 'description' => 'Intro section styles for the Helium theme', ...
mit
pacho10/Stone-Age
src/stoneAge/main/HuntingGround.java
936
package stoneAge.main; import stoneAge.player.Player; public class HuntingGround extends GameBoardElement { private static final int FOOD_COEFFICIENT = 2; public HuntingGround() { super(); } @Override public int removeFigure(Figure figure) { super.removeFigure(figure); int diceValue = (int)((Math.rando...
mit
dachengxi/spring1.1.1_source
src/org/springframework/aop/target/AbstractPrototypeBasedTargetSource.java
5266
/* * Copyright 2002-2004 the original author or authors. * * 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...
mit
BePsvPT-Fork/framework
tests/Database/DatabaseConnectorTest.php
12126
<?php namespace Illuminate\Tests\Database; use PDO; use Mockery as m; use PHPUnit\Framework\TestCase; class DatabaseConnectorTest extends TestCase { public function tearDown() { m::close(); } public function testOptionResolution() { $connector = new \Illuminate\Database\Connector...
mit
mwveliz/sitio
app/dev/cache/twig/03/0320da792ba87815ee6130528cd7068d73f59dc26aa9c360ee0b590ffef4f52f.php
5229
<?php /* :noticiainterna:edit.html.twig */ class __TwigTemplate_ec2d40d35f34890cd5cde6169313ba0a39f3592be3fc27ed3bcd9b40060dee65 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 1 $this->parent = $this->loadTemplate("base.h...
mit
ocultcoin/ocultcoin
src/init.cpp
35648
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "txdb.h" #include "walletdb.h" #include "bitcoinrpc.h" #include "net.h" #i...
mit
lenin-anzen/bb-widgets
collection-myportal/src/widget-myportal-newpassword-ng/scripts/controller.js
1640
/** * @module widget-myportal-newpassword-ng * @name NewpasswordController * * @description * New password */ import { E_AUTH, E_CONNECTIVITY } from "lib-bb-model-errors"; const errorMessage = (code) => ({ [E_AUTH]: "error.load.auth", [E_CONNECTIVITY]: "error.load.connectivity", }[code] || "error.load.unex...
mit
heyfaraday/rustcmb
src/fourier/fft_2d/mod.rs
31
pub mod sphere; pub mod torus;
mit
opgginc/php-riotapi-request
src/RequestMethod/LolStaticData/ProfileIcons.php
1179
<?php /** * Created by PhpStorm. * User: kargnas * Date: 2017-07-04 * Time: 19:11 */ namespace RiotQuest\RequestMethod\LolStaticData; use RiotQuest\Constant\EndPoint; use RiotQuest\Dto\LolStaticData\ProfileIcon\ProfileIconDataDto; use RiotQuest\RequestMethod\Request; use RiotQuest\RequestMethod\Reques...
mit
damiankaminski/HandyQuery
src/Language/HandyQuery.Language.Tests/Lexing/SearchTrieTests.cs
9922
using System.Collections.Generic; using System.Linq; using FluentAssertions; using HandyQuery.Language.Lexing; using NUnit.Framework; namespace HandyQuery.Language.Tests.Lexing { public class SearchTrieTests { [TestCaseSource(nameof(TestCases))] [TestCaseSource(nameof(TestCasesWithOffset))] ...
mit
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.15.0/widget-htmlparser/widget-htmlparser-min.js
129
version https://git-lfs.github.com/spec/v1 oid sha256:8768137f450a1128d92ba9168bc36e309a98752598e6e3b1281e820bbec93eac size 1308
mit
lind/partsregister-eventsourcing
src/main/java/ske/part/partsregister/domain/part/FornavnEndretEvent.java
437
package ske.part.partsregister.domain.part; import ske.eventsourcing.event.DomainEvent; import ske.eventsourcing.eventstore.EventSourceIdentifier; public class FornavnEndretEvent extends DomainEvent { private final String fornavn; public FornavnEndretEvent(EventSourceIdentifier id, String fornavn) { ...
mit
exowanderer/SpitzerDeepLearningNetwork
Python Scripts/spitzer_cal_NALU_predict_orig.py
14840
from multiprocessing import set_start_method, cpu_count set_start_method('forkserver') import os os.environ["OMP_NUM_THREADS"] = str(cpu_count()) # or to whatever you want print('BEGIN BIG COPY PASTE ') # This section is for if/when I copy/paste the code into a ipython sesssion n_resamp = 0 n_trees = 100 core...
mit
yun2win/yun2win-sdk-desktop
app/main/y2w_openRTC.js
836
const childProcess = require('child_process'); const config = require('../config'); module.exports = function (parms) { // var path = '/Users/qs/Desktop/Y2WRTCQuick.app'; var path = config.RTCPath; var parmList = toParmList(parms); openFile(path, parmList); }; function toParmList(parmsDict) { ...
mit
mauretto78/simple-event-store-manager
src/Infrastructure/Drivers/Exceptions/DriverConnectionException.php
388
<?php /** * This file is part of the Simple EventStore Manager package. * * (c) Mauro Cassani<https://github.com/mauretto78> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SimpleEventStoreManager\Infrastructure\Drivers\...
mit
smallhelm/level-fact-base
src/dbRange.js
674
var promisify = require('./promisify') module.exports = function dbRange (db, opts, onData, callbackOrig) { if (!callbackOrig) { callbackOrig = promisify() } var hasCalledback = false function callback (err) { if (hasCalledback) return hasCalledback = true callbackOrig(err) } if (opts.pre...
mit
TheOrchid/Platform
resources/views/layouts/browsing.blade.php
151
<div data-controller="browsing" class="mb-3"> <iframe @foreach($attributes as $key => $value) {{ $key }}='{{$value}}' @endforeach></iframe> </div>
mit
vanncho/Java-Web-Development-Basics
issueTracker/src/main/java/com/issueTracker/mapper/ModelParserImpl.java
779
package com.issueTracker.mapper; import org.modelmapper.ModelMapper; import org.modelmapper.PropertyMap; import javax.ejb.Stateless; @Stateless public class ModelParserImpl implements ModelParser { private ModelMapper modelMapper; public ModelParserImpl() { this.modelMapper = new ModelMapper(); ...
mit
Celarix/IronAssembler
IronAssembler/IronAssembler/Data/ParsedStringTable.cs
361
using System.Collections.Generic; using System.Linq; namespace IronAssembler.Data { public sealed class ParsedStringTable { private readonly List<string> strings; public IReadOnlyList<string> Strings => strings.AsReadOnly(); public ParsedStringTable(IEnumerable<string> strings) => th...
mit
pciccio/TamTam
TamTam.Models/TamTam/Result/AggregatedObject.cs
225
using TamTam.Models.OMDb.Result; namespace TamTam.Models.TamTam.Result { public class AggregatedObject { public Movie Movie { get; set; } public YouTube.Result.Result Video { get; set; } } }
mit
leonardoanalista/java2word
java2word/src/main/java/word/w2004/elements/tableElements/TableFactoryMethod.java
1024
package word.w2004.elements.tableElements; /** * @author leonardo_correa Factory Method for Table Elements, Header, Columns * and Footer * * Here is the logic to decide which instance create and return * */ public class TableFactoryMethod { private static TableFactoryMethod instance; privat...
mit
caleb531/cidr-brewer
setup.py
798
#!/usr/bin/env python # coding=utf-8 from setuptools import setup # Get long description (used on PyPI project page) def get_long_description(): with open('README.md', 'r') as readme_file: return readme_file.read() setup( name='cidr-brewer', version='1.0.0', description='A CLI utility for w...
mit
Sprinkoringo/PMU-Server
Server/Server/Shops/ShopCollection.cs
2028
/*The MIT License (MIT) Copyright (c) 2014 PMU Staff 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, pub...
mit
d53dave/DSLFY-Web
src/main/java/net/d53dev/dslfy/web/config/MongoConfig.java
876
package net.d53dev.dslfy.web.config; import com.mongodb.Mongo; import com.mongodb.MongoClient; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.mongodb.config.AbstractMongoConfiguration; import org.springframework.data.mong...
mit
input-output-hk/etc-client
src/rpcTest/scala/io/iohk/ethereum/rpcTest/TestContracts.scala
3903
package io.iohk.ethereum.rpcTest import akka.util.ByteString import org.bouncycastle.util.encoders.Hex import io.iohk.ethereum.rpcTest.TestData.firstAccount object TestContracts { //https://github.com/rsksmart/rskj/wiki/Deploying-contracts-using-RPC-calls#publishing-a-contract-using-rpc val testContract = "60606...
mit
OmnInfinity/Octothorpe
Properties/AssemblyInfo.cs
1396
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Oc...
mit
grappachu/core
src/Grappachu.Core.Test/IO/TempFileTests.cs
1861
using System; using System.IO; using Grappachu.Core.IO; using Grappachu.Core.Test.IO.Abstract; using NUnit.Framework; using SharpTestsEx; namespace Grappachu.Core.Test.IO { [TestFixture] public class TempFileTests : GenericFolderBasedTest { [SetUp] public void SetUp() { ...
mit
SetiZ/SpotIt
gen/com/google/android/gms/R.java
7906
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.google.android.gms; public final class R { public static final class attr { public static final int adSize = 0x7f010000; ...
mit
mpOzelot/Unity
src/GitHub.Api/NewTaskSystem/TaskCanceledExceptions.cs
473
using System; using System.Threading.Tasks; namespace GitHub.Unity { class DependentTaskFailedException : TaskCanceledException { public DependentTaskFailedException(ITask task, Exception ex) : base(ex.InnerException != null ? ex.InnerException.Message : ex.Message, ex.InnerException ?? ex) {} ...
mit
kinshuk4/MoocX
misc/deep_learning_notes/Proj_Molecular_Simulation/scratchs/basic_tensor_operators.py
1024
import tensorflow as tf import numpy as np from termcolor import cprint, colored as c deep_features = tf.constant([ [0, 1], [1, 1.5], [1.5, 2], [-1, 0], [-1, 1.5], [-1.5, 2], [-1, 0], [-1, 1.5], [-1.5, 2] ]) labels = tf.constant([ [1., 0, 0], [1., 0, 0], [1., 0, 0], ...
mit
Karnix/The-SSN-App
app/src/main/java/karnix/the/ssn/app/activity/dining/DiningMenuAdapter.java
6721
package karnix.the.ssn.app.activity.dining; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import com.afollestad.sectionedrecyclerview.SectionedRecyclerViewAdapter; import com...
mit
kaaaaang/ews-java-api
src/main/java/microsoft/exchange/webservices/data/ItemGroup.java
1767
/************************************************************************** * copyright file="ItemGroup.java" company="Microsoft" * Copyright (c) Microsoft Corporation. All rights reserved. * * Defines the ItemGroup.java. **************************************************************************/ package mic...
mit
paine1690/cdp4j
src/main/java/io/webfolder/cdp/command/Inspector.java
1498
/** * The MIT License * Copyright © 2017 WebFolder OÜ * * 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, mod...
mit
ilzayas/arbeitsplan
src/Proyecto/TaskBundle/Entity/Client.php
3267
<?php namespace Proyecto\TaskBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Client * * @ORM\Table() * @ORM\Entity(repositoryClass="Proyecto\TaskBundle\Entity\ClientRepository") */ class Client { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\Ge...
mit
adamspe/odata-resource-file
models/Img.js
6563
var mongoose = require('mongoose'), schema = mongoose.Schema({ fileName: { type: String, trim: true, required: true}, contentType: { type: String, trim: true}, formats: [{ format: {type: String, required: true, default: 'original'}, file: {type: mongoo...
mit
aszczesn/rma-iqutech
application/modules/diy_customer_type/controllers/Diy_customer_type.php
2207
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Diy_customer_type extends MX_Controller { function __construct() { parent::__construct(); } function index(){ $groups = $this->get('id')->result(); echo '<pre>'; var_dump($groups); ech...
mit
api-platform/core
tests/Serializer/ItemNormalizerTest.php
14494
<?php /* * This file is part of the API Platform project. * * (c) Kévin Dunglas <dunglas@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace ApiPlatform\Tests\Serializer; use ApiPlatfor...
mit
gmhewett/bookshelf
www/Bookshelf/Bookshelf.Tests/Services/LibraryServiceTests.cs
1006
namespace Bookshelf.Tests.Services { using System; using Bookshelf.Models; using Bookshelf.Services; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; [TestClass] public class LibraryServiceTests { private readonly Mock<BookshelfDbContext> bookshelfDbContext = new ...
mit
Mostafa-Samir/klyng
tests/benchmarks/tasks/pi/mpi.cpp
1422
#include <mpi.h> #include <ctime> #include <cstdio> #include "../../utilis/cputime.h" double approx_pi(double from, double to) { double pi = 0.0; double dx = 0.000000002; for(double x = from; x < to ; x += dx) { pi += 4.0 / (1 + x * x); } return pi * dx; } int main(int argc, char* argv[]...
mit
drcloud/arx
arx/sources/git.py
1610
# from sh import Command, chmod, cp, curl, mkdir # import uritools from ..decorators import schemes from .core import onepath, oneurl, SourceURL, twopaths class Git(SourceURL): """Git respositories as Arx sources. These sources have directory nature by default but do support fragments to indicate that o...
mit
arussellsaw/influxdb
cmd/influxd/run/server_test.go
285073
package run_test import ( "fmt" "net/http" "net/url" "strconv" "strings" "testing" "time" "github.com/influxdata/influxdb/coordinator" "github.com/influxdata/influxdb/models" ) // Ensure that HTTP responses include the InfluxDB version. func TestServer_HTTPResponseVersion(t *testing.T) { version := "v1234"...
mit
o0rebelious0o/Beginners-Guide-to-Windows-10
Adeptly Adaptive Challenge/UserControls/ViewModels/INewsItemViewModel.cs
279
namespace Adeptly_Adaptive_Challenge.UserControls.ViewModels { interface INewsItemViewModel { string Headline { get; set; } string SubHeadline { get; set; } string DateLine { get; set; } string Image { get; set; } } }
mit
swp-unikat/Einschreibesystem
src/Core/EntityBundle/Repository/ParticipantsRepository.php
998
<?php /** * Created by IntelliJ IDEA. * Authors: Martin Griebel, Marco Hanisch * Date: 23.05.2016 * Time: 13:54 */ namespace Core\EntityBundle\Repository; use Core\EntityBundle\Entity\Workshop; use Doctrine\ORM\EntityRepository; use Doctrine\ORM\Query\Expr\Join; /** * this class provide the method to get all b...
mit
ylatuya/oxyplot
Source/OxyPlot.Pdf/PdfPlotWriter.cs
2100
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="PdfPlotWriter.cs" company="OxyPlot"> // The MIT License (MIT) // // Copyright (c) 2012 Oystein Bjorke // // Permission is hereby granted, free of charge, to any person...
mit
yogeshsaroya/new-cdnjs
ajax/libs/jquery.lazyloadxt/0.8.11/jquery.lazyloadxt.extra.js
129
version https://git-lfs.github.com/spec/v1 oid sha256:b3254e22c7a2f68c85682004f831509e8d1b0e6164e6f1c68cf691d7a18aaf5c size 8680
mit
densebrain/typestore
packages/typestore-mocks/src/MockRepoPlugin.ts
1859
import { DefaultModel, IKeyValue, Errors, IStorePlugin, ICoordinatorOptions, ICoordinator, Repo, IModel, IRepoPlugin, PluginType, PluginEventType, TKeyValue } from 'typestore' import {MockKeyValue} from "./MockStore" export class MockRepoPlugin<M extends IModel> implements IRepoPlugin<M> { type = Plugi...
mit
duongtruc/LVTN
modules/articles/tests/server/article.server.model.tests.js
1254
'use strict'; /** * Module dependencies. */ var should = require('should'), mongoose = require('mongoose'), User = mongoose.model('User'), Article = mongoose.model('Article'); /** * Globals */ var user, article; /** * Unit tests */ describe('Article Model Unit Tests:', function () { beforeEach(function...
mit
LatinWarrior/luis.angular.paging
Luis.Angular.Paging/Properties/AssemblyInfo.cs
1374
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Lu...
mit
maldrasen/archive
Mephidross/old/slaver/pages/dregus/smith/BuildAnvil.1.js
689
Lexicon.add('dregus/smith/BuildAnvil.1', { layout: 'event', links: [ { name:'Pay the Dwarf', action:'event:buildAnvil_2', requirements:['|C|Currency>249','|C|Inventory.ironBar>19'] }, { name:'Back', action:'event:complete' }, ], body: [ { id:'image', style:"float: left; margin-right: 12px;" }, ...
mit
orangeeli/orangetree
app/js/year.js
204
module.exports= (()=>{ 'use strict'; return { update (doc){ const year = doc.querySelector(".year"); year.innerText = `${new Date().getFullYear()}`; } }; })();
mit
FacticiusVir/Warm
Keeper.Warm.Core/AddressType.cs
128
namespace Keeper.Warm { public enum AddressType { None, Retained, Heap, Stack } }
mit
Pieter-hogent/webapps
democode/models/User.js
988
let mongoose = require('mongoose'); let crypto = require('crypto'); let jwt = require('jsonwebtoken'); let UserSchema = new mongoose.Schema({ username: { type: String, lowercase: true, unique: true }, hash: String, salt: String }); UserSchema.methods.setPassword = function (password) { this.salt = cry...
mit
esteban67/sparql
src/sintax/GraphNode.java
1828
package sintax; import java.io.IOException; import java.util.ArrayList; import com.hp.hpl.jena.graph.Node; import lexic.Token; /* * GraphNode ::= VarOrTerm | TriplesNode * FIRST(GraphNode) = { * VAR1, VAR2, IRI_REF,PNAME_LN,PNAME_NS, STRING_LITERAL1, STRING_LITERAL2,STRING_LITERAL_LONG1,STRING_LITERAL_LON...
mit
hikmahtiar6/drafterbit
src/Drafterbit/Bundle/SystemBundle/Form/DataTransformer/EntityToIdTransformer.php
1114
<?php namespace Drafterbit\Bundle\SystemBundle\Form\DataTransformer; use Symfony\Component\Form\DataTransformerInterface; use Symfony\Component\Form\Exception\TransformationFailedException; use Doctrine\Common\Persistence\ObjectManager; /** * @link https://gist.github.com/bjo3rnf/4061232 */ class EntityToIdTransfo...
mit
glynnc/liblcf
src/generated/ldb_item.cpp
2969
/* !!!! GENERATED FILE - DO NOT EDIT !!!! */ /* * Copyright (c) 2014 liblcf authors * This file is released under the MIT License * http://opensource.org/licenses/MIT */ // Headers #include "ldb_reader.h" #include "ldb_chunks.h" #include "reader_struct.h" // Read Item. #define LCF_CHUNK_SUFFIX LDB_Reader #defin...
mit
borilla/object-pool
test/index.spec.js
8637
'use strict'; var Pool = require('../src/index'); var chai = require('chai'); var sinon = require('sinon'); var sinonChai = require('sinon-chai'); var expect = chai.expect; chai.use(sinonChai); describe('object-pool', function () { var arg0, arg1, arg2, arg3, arg4; var poolIndexProp, sandbox, Type, onError, pool; ...
mit
andrew-zhou/tourguide
tests/query_parser_test.py
1086
from query_parser import QueryParser from unittest import TestCase class QueryParserTest(TestCase): def test_parse_empty_query(self): subject = QueryParser('') self.assertEqual(subject.query, '') self.assertEqual(subject.params, {}) self.assertEqual(subject.alias, '') def test_...
mit
nodule/react-material-ui
ImageBrush.js
369
module.exports = { description: "", ns: "react-material-ui", type: "ReactNode", dependencies: { npm: { "material-ui/svg-icons/image/brush": require('material-ui/svg-icons/image/brush') } }, name: "ImageBrush", ports: { input: {}, output: { component: { title: "ImageBrus...
mit
richtermark/SMEAGOnline
src/Biz/Mail/Template/EmailSystemSelfTestTemplate.php
418
<?php namespace Biz\Mail\Template; class EmailSystemSelfTestTemplate extends BaseTemplate implements EmailTemplateInterface { /** * {@inheritdoc} */ public function parse($options) { return array( 'title' => sprintf('【%s】系统自检邮件', $this->getSiteName()), 'body' => '...
mit
benpolinsky/bp_custom_fields
spec/models/bp_custom_fields/appearance_spec.rb
10113
require 'rails_helper' RSpec.describe BpCustomFields::Appearance, type: :model do before do @appearance = BpCustomFields::Appearance.new end it "belongs_to a group_template" do expect(@appearance.create_group_template(name: "Badge")).to be_a BpCustomFields::GroupTemplate end context "return...
mit
Sotanna/Quartz-Server
src/main/java/org/quartzpowered/protocol/data/Dimension.java
1877
/* * This file is a component of Quartz Powered, this license makes sure any work * associated with Quartz Powered, must follow the conditions of the license included. * * The MIT License (MIT) * * Copyright (c) 2015 Quartz Powered * * Permission is hereby granted, free of charge, to any person obtaining a copy...
mit
Rehab4/WhatToDo
wantToDo/src/app/app.js
94
(function () { 'use strict'; var app = angular.module('app', [ ]); })();
mit
longde123/MultiversePlatform
server/src/multiverse/simpleclient/DefaultHandler.java
2043
/******************************************************************** The Multiverse Platform is made available under the MIT License. Copyright (c) 2012 The Multiverse Foundation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
mit
Hokua/overture
source/foundation/Event.js
1152
import { Class } from '../core/Core'; /** Class: O.Event Represents a synthetic event. */ export default Class({ /** Constructor: O.Event Parameters: type - {String} The event type. target - {Object} The target on which the event is to fire. mixin -...
mit
jmhdez/ef-integration-tests
Core/DBC.cs
756
using System; using System.Runtime.Serialization; namespace Koalite.EFSample { public static class Check { public static void Require(bool condition, string message = null) { if (!condition) throw new DBCException(message ?? "Precondition failed"); } } ...
mit
ProtonMail/WebClient
applications/calendar/src/app/components/calendar/DayGrid.tsx
9719
import { useMemo, useState, useRef, useLayoutEffect, useEffect, Ref } from 'react'; import { chunk } from '@proton/shared/lib/helpers/array'; import { eachDayOfInterval, isSameMonth } from '@proton/shared/lib/date-fns-utc'; import { getISOWeek } from 'date-fns'; import useDayGridEventLayout from './useDayGridEventLayo...
mit
NikolaiMishev/Telerik-Academy
Module-1/01.CSharp Part 1/Console Input-Output/Sum of n Numbers/Program.cs
573
//Write a program that enters a number n and after that enters more n numbers and calculates and prints their sum. Note: //You may need to use a for-loop. using System; class Program { static void Main() { Console.Write("Enter how many numbers you want to sum:"); int number = int.Parse(Consol...
mit
matthiasnoback/simple-bus
src/Matthias/SimpleBus/Command/Command.php
134
<?php namespace Matthias\SimpleBus\Command; interface Command { /** * @return string */ public function name(); }
mit
john-guerra/NodeNavigator
src/index.js
211
import navio from "./navio.js"; // import NavioComponent from "./NavioComponent.jsx"; export default navio; // export { getAttribsFromObjectRecursive } from "./utils.js"; // export {NavioComponent, navio};
mit
sveetch/Optimus
tests/data_fixtures/basic2_template/pages.py
525
# -*- coding: utf-8 -*- """ The project pages map for basic """ from optimus.pages.views.base import PageViewBase class SamplePage(PageViewBase): """ Sample page defaults as index """ title = "My project index" template_name = "index.html" destination = "index.html" # Enabled pages to build...
mit
molekilla/rutha-grunt-tasks-ui
grunt/ngtemplates.js
1506
module.exports = { dev: { cwd: '<%= cwd %>/<%= devEnvironment.distFolder || "dist" %>/html/src', src: 'app/**/*.html', dest: '<%= cwd %>/<%= devEnvironment.distFolder || "dist" %>/js/templates.js', options: { module: '<%= ngTemplates.moduleNamespace %>' } }, ionic: { cwd: '<%= cwd %>...
mit
lakchote/projet3_symfony
src/AppBundle/EventListener/RedirectLocaleListener.php
1137
<?php /** * Created by PhpStorm. * User: BRANDON HEAT * Date: 03/11/2016 * Time: 23:32 */ namespace AppBundle\EventListener; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Bundle\FrameworkBundle\Routing\Router; class RedirectLocaleList...
mit
ijklim/deploy_vue_heroku
server.js
624
var express = require("express"); var serveStatic = require("serve-static"); var history = require("connect-history-api-fallback"); var app = express(); var https_redirect = function(req, res, next) { if (process.env.NODE_ENV === "production") { if (req.headers["x-forwarded-proto"] != "https") { return re...
mit
sri-jay/some-kind-of-shell
process/message/message.js
537
var Stream; (function (Stream) { Stream[Stream["STDOUT"] = 0] = "STDOUT"; Stream[Stream["STDERR"] = 1] = "STDERR"; Stream[Stream["STDIN"] = 2] = "STDIN"; })(Stream || (Stream = {})); var OutMessage = (function () { function OutMessage(message) { this.stream = Stream.STDOUT; this.message ...
mit
amwenger/igv
src/main/java/org/broad/igv/tools/converters/MageTabToIGVConverter.java
7115
/* * The MIT License (MIT) * * Copyright (c) 2007-2015 Broad Institute * * 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 *...
mit
AlexEaton1105/computerScience
jamesQuiz.py
1244
import random import time import sys #variables name = input("What's your name? ") counter = 0 answer = "" userscore = 0 begin = input("Are you ready? ") time.sleep(1) if begin == "yes": time.sleep(1) print("Welcome to the Maths Quiz",name,"!") time.sleep(1) while counter<10: number1 = rando...
mit