repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
kz26/uchicago-hvz
uchicagohvz/game/dorm_migrations/0003_populate_dorms.py
774
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models DORMS = ( ("BS", "Blackstone"), ("BR", "Breckinridge"), ("BV", "Broadview"), ("BJ", "Burton-Judson Courts"), ("IH", "International House"), ("MC", "Maclean"), ("MAX", "Max Palevsky"), ("NG", "New Graduate...
mit
AbdulBasitBashir/learn-angular2
step4_making_components/app.js
1473
/// <reference path="typings/angular2/angular2.d.ts" /> if (typeof __decorate !== "function") __decorate = function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { ...
mit
jianjunz/online-judge-solutions
leetcode/1558-course-schedule-iv.py
1256
import queue class Solution: @lru_cache(maxsize=None) def prerequisiteList(self, i): if i not in self.pre: return [] answer=[] preQueue=queue.Queue() for x in self.pre[i]: preQueue.put(x) answer.append(x) while not preQueue...
mit
lunaczp/learning
language/c/testPhpSrc/php-5.6.17/ext/xsl/tests/xsltprocessor_transformToXML_nullparam.phpt
1280
--TEST-- Check XSLTProcessor::transformToXml() with null parameter --CREDITS-- Rodrigo Prado de Jesus <royopa [at] gmail [dot] com> --SKIPIF-- <?php extension_loaded('xsl') or die('skip xsl extension is not available'); ?> --FILE-- <?php $xml = <<<EOB <allusers> <user> <uid>bob</uid> </user> <user> <uid>joe</uid...
mit
qgrid/ng2
packages/qgrid-core/src/command-bag/edit.cell.enter.command.js
2802
import { Command } from '../command/command'; import { editCellShortcutFactory } from '../edit/edit.cell.shortcut.factory'; import { editCellContextFactory } from '../edit/edit.cell.context.factory'; import { Keyboard } from '../keyboard/keyboard'; export const EDIT_CELL_ENTER_COMMAND_KEY = commandKey('edit.cell.enter...
mit
leonardofaria/sisate
application/views/perfis/form.php
941
<?php echo validation_errors(); ?> <?php echo form_open('', array('class' => 'form-horizontal', 'data-toggle' => 'validator')); ?> <div class="panel panel-default"> <div class="panel-heading">Preencha os dados abaixo: </div> <div class="panel-body"> <div class="form-group"> <?php echo form_label('Nome',...
mit
nanoframework/nf-interpreter
targets/win32/nanoCLR/Memory.cpp
1470
// // Copyright (c) .NET Foundation and Contributors // Portions Copyright (c) Microsoft Corporation. All rights reserved. // See LICENSE file in the project root for full license information. // #include "stdafx.h" // using namespace Microsoft::SPOT::Emulator; // From minheap.cpp static unsigned char *s_Memory_Star...
mit
M4573R/competitive-programming-archive
uva/volume-009/password_search.cpp
1000
#include <iostream> #include <map> #include <string> using namespace std; inline void use_io_optimizations() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } int main() { use_io_optimizations(); unsigned int password_size; while (cin >> password_size) { string message; ...
mit
nikolalosic/este-app--assignment
src/native/auth/SignOut.react.js
759
import Component from 'react-pure-render/component'; import React, { PropTypes } from 'react'; import buttonsMessages from '../../common/app/buttonsMessages'; import { Button, Text } from '../app/components'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { signOut } from '...
mit
kangmin2z/dev_ci4
system/Helpers/form_helper.php
22277
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014-2017 British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this softwar...
mit
bosha/torhandlers
examples/ajax_weblog/forms.py
336
# -*- coding: utf-8 -*- __author__ = 'Alex Bo' __email__ = 'bosha@the-bosha.ru' from wtforms import Form, validators, StringField, IntegerField, TextAreaField class addCoreForm(Form): title = StringField('Title', [validators.required(), validators.Length(max=500)]) content = TextAreaField('Content', [validato...
mit
Lemoncode/react-typescript-samples
old_class_components_samples/10 LoaderSpinner/src/components/repos/repoHeader.tsx
230
import * as React from 'react'; export const RepoHeader: React.StatelessComponent<{}> = () => { return ( <tr> <th>id</th> <th>Name</th> <th>Description</th> </tr> ); };
mit
Cobase/cobase
src/Cobase/DemoBundle/Service/CatService.php
948
<?php namespace Cobase\DemoBundle\Service; use Cobase\DemoBundle\Form\Model\CatModel; use Cobase\DemoBundle\Form\Type\CatType; use Symfony\Component\Form\Form; use Symfony\Component\Form\FormFactory; class CatService { /** * @var FormFactory */ protected $formFactory; /** * @param FormFac...
mit
bartwronski/CSharpRenderer
PostEffects/LuminanceCalculation.cs
6828
using System; using System.Collections.Generic; using System.Linq; using System.Text; using SlimDX.Direct3D11; using SlimDX.DXGI; namespace CSharpRenderer { class LuminanceCalculations { RenderTargetSet.RenderTargetDescriptor m_RTDescriptorLuminance4x4; RenderTargetSet.RenderTargetDescriptor m...
mit
lionfire/Core
src/LionFire.Vos.Abstractions/Exceptions/VosException.cs
402
using System; using System.Collections.Generic; using System.Linq; using System.Text; using LionFire.ObjectBus; namespace LionFire.Vos { [Serializable] public class VosException : Exception { public VosException() { } public VosException(string message) : base(message) { } public V...
mit
hdm-project/robot-ide
elements/game-runner.js
1369
const html = require('choo/html') const sf = require('sheetify') const gameView = require('./game') const { speedSliderView, playButtonView } = require('./runtime-controls') const gameStatsView = require('./game-stats') const gameRunnerPrefix = sf` :host { width: 100%; height: 100%; display: flex; fl...
mit
mariaiemoli/progetto
bifurcation/src/TriangleData.cc
2936
#include <iostream> #include "../include/TriangleData.h" /**************************************************************************/ /* TriangleData.cc */ /* Classe che contiene i dati principali per costrire il triangolo */ /********************************************************************...
mit
designrad/Jotunheimen-tracking
JotunheimenPlaces/src/constants/taxEuro.js
341
/** * Tax Euro */ export default [ {"name": "Up to 10 500"}, {"name": "10 500 - 21 200"}, {"name": "21 200 - 31 700"}, {"name": "31 700 - 42 300"}, {"name": "42 300 - 53 000"}, {"name": "53 000 - 63 500"}, {"name": "63 500 - 74 000"}, {"name": "74 000 - 84 700"}, {"name": "84 700 - 95 200"}, {"nam...
mit
MelissaChan/Crawler2015
src/SimpleBFSCrawler/LinkFilter.java
102
package SimpleBFSCrawler; public interface LinkFilter { public boolean accept(String url); }
mit
Moccine/global-service-plus.com
web/libariries/bootstrap/node_modules/jshint/node_modules/lodash/internal/baseMatchesProperty.js
1434
var baseGet = require('./baseGet'), baseIsEqual = require('./baseIsEqual'), baseSlice = require('./baseSlice'), isArray = require('../lang/isArray'), isKey = require('./isKey'), isStrictComparable = require('./isStrictComparable'), last = require('../array/last'), toObject = require('...
mit
AndrewTBurks/EnglewoodSocialServices
data/processCensusDataToBlocks.js
1457
// based on and replaces processCensusDataToGrid.js let fs = require('fs'); let _ = require('lodash'); // load data of Englewood community area and census blocks let blockBoundaries,censusData; blockBoundaries = JSON.parse(fs.readFileSync('EnglewoodCensusBlockBoundaries.geojson').toString()); censusData = JSON.parse(...
mit
vladcalin/pymicroservice
docs/conf.py
9939
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # gemstone documentation build configuration file, created by # sphinx-quickstart on Fri Nov 25 14:52:22 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # a...
mit
gbritt/optobot
bot/slack_clients.py
2473
import logging import re import time import json import argparse import os from slacker import Slacker from slackclient import SlackClient logger = logging.getLogger(__name__) class SlackClients(object): def __init__(self, token): self.token = token # Slacker is a Slack Web API Client ...
mit
OpenWebslides/OpenWebslides
client/flow-typed/npm/eslint-config-prettier_vx.x.x.js
1783
// flow-typed signature: 4ea4ff80a06e219117081ccbc8589fb0 // flow-typed version: <<STUB>>/eslint-config-prettier_v^2.0.0/flow_v0.49.1 /** * This is an autogenerated libdef stub for: * * 'eslint-config-prettier' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to s...
mit
makmu/outlook-matters
OutlookMatters.Core/Mattermost/v3/Interface/Team.cs
912
using Newtonsoft.Json; namespace OutlookMatters.Core.Mattermost.v3.Interface { public class Team { [JsonProperty("id")] public string Id { get; set; } [JsonProperty("name")] public string Name { get; set; } protected bool Equals(Team other) { retur...
mit
rpetersburg/FiberProperties
scripts/quantification_plots.py
628
from fiber_properties import FiberImage # image = 'C:/Libraries/Box Sync/ExoLab/Fiber_Characterization/Image Analysis/data/' \ # + 'modal_noise/coupled_fibers/200-200um_test2/agitated_both/nf_obj.pkl' image = 'C:/Libraries/Box Sync/ExoLab/Fiber_Characterization/Image Analysis/data/modal_noise/Kris_data/rec...
mit
anhstudios/swganh
data/scripts/templates/object/tangible/lair/base/shared_poi_all_lair_thicket_small_fog_mustard.py
466
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/lair/base/shared_poi_all_lair_thicket_small_fog_mustard.iff" result...
mit
zyklus/fuse4js
fuse4js.cc
25571
/* * * fuse4js.cc * * Copyright (c) 2012 - 2014 by VMware, Inc. All Rights Reserved. * http://www.vmware.com * Refer to LICENSE.txt for details of distribution and use. * */ /* * Include nan for version compatibility */ #include <node.h> #include <node_buffer.h> #include <nan.h> #include <cstring> using v8...
mit
Gnucki/danf
test/fixture/app/b.js
299
'use strict'; var B = function() { B.Parent.call(this); }; B.defineExtendedClass('a'); B.prototype.b = function() { this._b++; return B.Parent.prototype.b.call(this); }; B.prototype.c = function() { this._c++; return B.Parent.prototype.c.call(this); }; module.exports = B;
mit
alekitto/jymfony
src/Component/DateTime/namespace-stub.js
349
/* * NOT TO BE REQUIRED! */ /** * @namespace */ Jymfony.Component.DateTime = { /** * @namespace */ Exception: {}, /** * @namespace */ Formatter: {}, /** * @namespace */ Internal: {}, /** * @namespace */ Parser: {}, /** * @namespac...
mit
SergiosLen/LocalSupport
spec/services/accept_proposed_organisation_spec.rb
4174
require 'rails_helper' describe AcceptProposedOrganisation do let!(:proposed_org){FactoryGirl.create(:orphan_proposed_organisation, email: email)} let(:subject){AcceptProposedOrganisation.new(proposed_org).run} context 'organisation can be accepted' do shared_examples 'acceptance steps' do it 'asso...
mit
dgetux/capi5k-openstack-ready
xpm_modules/capi5k-puppetcluster/roles_definition.rb
181
# define your capistrano roles here. # # role :myrole do # role_myrole # end # role :puppet_master do role_puppet_master end role :puppet_clients do role_puppet_clients end
mit
bburnichon/PHPExiftool
lib/PHPExiftool/Driver/Tag/DICOM/ControlPointRelativePosition.php
838
<?php /* * This file is part of the PHPExifTool package. * * (c) Alchemy <support@alchemy.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\DICOM; use JMS\Serializer\Annotation\ExclusionPolicy;...
mit
variar/contest-template
external/tbb/src/test/test_tick_count.cpp
8669
/* Copyright (c) 2005-2017 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable la...
mit
toddthomas/signed_xml
lib/signed_xml/base64_transform.rb
133
require 'base64' module SignedXml class Base64Transform def apply(input) Base64.encode64(input).chomp end end end
mit
inikoo/fact
libs/yui/yui3-gallery/src/gallery-advanced-number-format/lang/gallery-advanced-number-format_de-LI.js
37494
{ "ADP_currencyISO" : "Andorranische Pesete", "ADP_currencySingular" : "Andorranische Peseten", "ADP_currencySymbol" : "ADP", "AED_currencyISO" : "UAE Dirham", "AED_currencySingular" : "UAE Dirham", "AED_currencySymbol" : "AED", "AFA_currencyISO" : "Afghani (1927-2002)", "AFA_currencySingular" : "Afghani (1927-...
mit
aikramer2/spaCy
spacy/lang/id/punctuation.py
2125
# coding: utf8 from __future__ import unicode_literals from ..punctuation import TOKENIZER_PREFIXES, TOKENIZER_SUFFIXES, TOKENIZER_INFIXES from ..char_classes import merge_chars, split_chars, _currency, _units from ..char_classes import LIST_PUNCT, LIST_ELLIPSES, LIST_QUOTES from ..char_classes import QUOTES, ALPHA, A...
mit
ricardomccerqueira/sgrid
node_modules/grunt-ruby-haml/test/expected/01_straight.js
410
define(function() { return function(obj){ var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; with(obj||{}){ __p+='<!DOCTYPE html>\n<html xmlns="http://www.w3.org/1999/xhtml">\n <head>\n <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />\n <title>TEST</title...
mit
devmars/javapractice
NetBeansProjects/practice/src/bufferedio/BufferedByteStream.java
1450
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package bufferedio; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.FileInputStream; import ja...
mit
sloncho/Nancy
src/Nancy/Diagnostics/Modules/InteractiveModule.cs
4942
namespace Nancy.Diagnostics.Modules { using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using Nancy.Helpers; public class InteractiveModule : DiagnosticModule { private readonly IInteractiveDiagnostics interactiveDiagnostics; ...
mit
yaal-fr/ysvgmaps
node_modules/riot/node_modules/riot-cli/lib/Task.js
4220
'use strict' const helpers = require('./helpers'), path = require('path'), sh = require('shelljs'), compiler = global.compiler || require('riot-compiler'), constants = require('./const'), NO_FILE_FOUND = constants.NO_FILE_FOUND, PREPROCESSOR_NOT_REGISTERED = constants.PREPROCESSOR_NOT_REGISTERED /** * ...
mit
gastrodia/wasp-ui-editor
src/components/inspector/ComponentSelector.ts
1934
import $ = require('jquery'); import WOZLLA = require('wozllajs'); import {Component, View, ViewEncapsulation, coreDirectives} from 'angular2/angular2'; import angular2 = require('angular2/angular2'); import ng2Helper = require('../ng2-library/ng2Helper'); import BasicPanel = require('./panel/BasicPanel'); import Dialo...
mit
cebor/gui-project
app/scripts/filters/symbolresolver.js
1198
'use strict'; angular.module('stockApp') /** * Filter: resolve stock symbols to real names * @param symbol String/String[] * @return String/String[] */ .filter('symbolResolver', function () { function resolve(symbol) { switch (symbol) { case "MSFT": return "Microsoft"; ...
mit
cmccullough2/cmv-wab-widgets
wab/2.2/widgets/Geoprocessing/nls/sr/strings.js
1153
define({ "_widgetLabel": "Geoprocesiranje", "_featureAction_ReceiveFeatureSet": "Podesi kao unos od ", "requiredInfo": "je obavezno.", "drawnOnMap": "Rezultat je nacrtan na mapi.", "noToolConfig": "Nema dostupnih unapred konfigurisanih zadataka geoprocesiranja.", "useUrlForGPInput": "URL adresa", "useUplo...
mit
QiV/fest-dom-loader
events/onclosetag/htmlTags.js
524
var shortTags = { area: true, base: true, br: true, col: true, command: true, embed: true, hr: true, img: true, input: true, keygen: true, link: true, meta: true, param: true, source: true, wbr: true }; module.exports = function(node, parser) { parser.nodeNamesStack.pop(); if (!(node...
mit
ibnoe/erp
application/views/journal/view_receipt_cheque_schedule.php
3461
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <?php $this->load->view('includes/head');?> <style> label{ color: #FF0000; width: 350px; } input{ height: 20px; } </style> <script type="text/javascript"> $(function () { $('.checkall')...
mit
mirakui/ec2ssh
lib/ec2ssh/ssh_config.rb
2095
require 'time' require 'pathname' module Ec2ssh class SshConfig HEADER = "### EC2SSH BEGIN ###" FOOTER = "### EC2SSH END ###" attr_reader :path, :sections def initialize(path=nil) @path = path || "#{ENV['HOME']}/.ssh/config" @sections = {} end def parse! return unless...
mit
Menkachev/Software-University
Programing Basics - October 2016/04. Loops - November 12, 2016/02. Numbers Ending in 7/Properties/AssemblyInfo.cs
1458
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: AssemblyTi...
mit
miclip/NJsonApiCore
src/NJsonApiCore/IRelationshipMapping.cs
1851
 using NJsonApi.Infrastructure; using System; using System.Reflection; namespace NJsonApi { public interface IRelationshipMapping { string RelationshipName { get; set; } Type ParentType { get; set; } Type RelatedBaseType { get; set; } string RelatedBaseResourceType { get; set; ...
mit
zqzhang/iotivity-node
tests/tests/API Start Stack.js
392
var testUtils = require( "../assert-to-console" ); console.log( JSON.stringify( { assertionCount: 1 } ) ); require( "../../index" )().configure().then( function() { testUtils.assert( "ok", true, "Stack started successfully" ); process.exit( 0 ); }, function( error ) { testUtils.assert( "ok", false, "Stack fa...
mit
hakandilek/publicplay
app/views/html/helper/H.java
4375
package views.html.helper; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.HashMap; import java.util.Locale; import java.util.Map; import models.Post; import models.User; import org.ocpsoft.prettytime.PrettyTime; import play.api.templates.Html; import play.i18...
mit
spierepf/mpf
mpf/devices/flipper.py
10363
""" Contains the base class for flippers.""" # flipper.py # Mission Pinball Framework # Written by Brian Madden & Gabe Knuth # Released under the MIT License. (See license info at the end of this file.) # Documentation and more info at http://missionpinball.com/mpf from mpf.system.device import Device class Flipper...
mit
phani00/tovp
tovp/attachments/forms.py
633
from django import forms from django.utils.translation import ugettext_lazy as _ from django.contrib.contenttypes.models import ContentType from attachments.models import Attachment class AttachmentForm(forms.ModelForm): attachment_file = forms.FileField(label=_('Upload attachment')) class Meta: mode...
mit
tv42/webut
webut/navi/inavi.py
2173
from zope.interface import Interface, Attribute from twisted import plugin class INavigable(Interface): """ A navigable resource. Normally, an INavigable should also implement IResource. The biggest requirement for navigability is the ability to list the child resources. """ def listChil...
mit
BenaroyaResearch/bripipetools
bripipetools/postprocessing/cleanup.py
3906
""" Clean up & organize outputs from processing workflow batch. """ import logging import os import re import zipfile import shutil logger = logging.getLogger(__name__) class OutputCleaner(object): """ Moves, renames, and deletes individual output files from a workflow processing batch for a selected pro...
mit
RichardHowells/Dnn.Platform
DNN Platform/DotNetNuke.Log4net/log4net/Appender/RollingFileAppender.cs
55912
#region Apache License // // Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 // (th...
mit
ZjMNZHgG5jMXw/goa
goagen/gen_main/generator.go
12978
package genmain import ( "bufio" "flag" "fmt" "go/ast" "go/parser" "go/token" "net" "os" "path" "path/filepath" "regexp" "strings" "text/template" "github.com/goadesign/goa/design" "github.com/goadesign/goa/goagen/codegen" "github.com/goadesign/goa/goagen/utils" ) //NewGenerator returns an initialize...
mit
belgattitude/soluble-metadata
src/Soluble/Metadata/Exception/UnsupportedFeatureException.php
178
<?php declare(strict_types=1); /** * @author Vanvelthem Sébastien */ namespace Soluble\Metadata\Exception; class UnsupportedFeatureException extends \RuntimeException { }
mit
zcodes/symfony
src/Symfony/Component/HttpFoundation/Session/Storage/MockFileSessionStorage.php
3832
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpFoundation\Session\Storage; /** * MockFileSessio...
mit
vlcheong/spring-employee
src/main/webapp/assets/jquery.inputmask/dist/inputmask/inputmask.numeric.extensions.js
28728
/*! * inputmask.numeric.extensions.js * http://github.com/RobinHerbots/jquery.inputmask * Copyright (c) 2010 - 2015 Robin Herbots * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) * Version: 3.1.64-166 */ !function(factory) { "function" == typeof define && define.amd ? define([ "...
mit
maurer/tiamat
samples/Juliet/testcases/CWE36_Absolute_Path_Traversal/s02/CWE36_Absolute_Path_Traversal__char_file_open_33.cpp
3863
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE36_Absolute_Path_Traversal__char_file_open_33.cpp Label Definition File: CWE36_Absolute_Path_Traversal.label.xml Template File: sources-sink-33.tmpl.cpp */ /* * @description * CWE: 36 Absolute Path Traversal * BadSource: file Read input from a file * GoodSou...
mit
SlexAxton/abusing-preprocessor-asts
example/app.js
1469
/** * Module dependencies. */ var express = require('express') , http = require('http') , fs = require('fs') , path = require('path'); // Pull out our custom preprocessor var mycssparser = require('./mycssparser'); // Boring Express stuff var app = express(); app.configure(function(){ app.set('port', proce...
mit
vincent03460/fxcmiscc
lib/symfony/helper/DateHelper.php
4490
<?php /* * This file is part of the symfony package. * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * DateHelper. * * @package symfony * @subpacka...
mit
weckx/ZfcDatagrid
src/ZfcDatagrid/Column/Action/AbstractAction.php
7843
<?php namespace ZfcDatagrid\Column\Action; use ZfcDatagrid\Column; use ZfcDatagrid\Column\AbstractColumn; use ZfcDatagrid\Filter; abstract class AbstractAction { const ROW_ID_PLACEHOLDER = ':rowId:'; /** * * @var \ZfcDatagrid\Column\AbstractColumn[] */ protected $linkColumnPlaceholders = [...
mit
Mitali-Sodhi/CodeLingo
Dataset/cpp/FutexTest.cpp
1500
/* * Copyright 2013 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
mit
vkuskov/Entitas-CSharp
PerformanceTests/PerformanceTests/Entity/EntityReplaceComponent.cs
1150
using Entitas; using System.Collections.Generic; public class EntityReplaceComponent : IPerformanceTest { const int n = 1000000; Pool _pool; Entity _e; public void Before() { _pool = Helper.CreatePool(); _pool.GetGroup(Matcher.AllOf(new [] { CP.ComponentA })); _pool.GetGroup(M...
mit
iocast/vectorformats
vectorformats/formats/ogr.py
7000
import simplejson from ..feature import Feature from .format import Format try: import osgeo.ogr as ogr except ImportError: import ogr class OGR(Format): """OGR reading and writing.""" ds = None driver = "Memory" dsname = "VectorFormats_output" layername = "features" save_on_encode =...
mit
SvenVandenbrande/Emby.Plugins
XmlMetadata/Savers/XmlSaverHelpers.cs
27617
//using MediaBrowser.Controller.Configuration; //using MediaBrowser.Controller.Entities; //using MediaBrowser.Controller.Entities.Movies; //using MediaBrowser.Controller.Entities.TV; //using MediaBrowser.Controller.Library; //using MediaBrowser.Controller.Persistence; //using MediaBrowser.Controller.Playlists; //using...
mit
SuperGlueFx/SuperGlue
src/SuperGlue.MetaData/SetMetaData.cs
1612
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Threading.Tasks; using SuperGlue.Configuration; namespace SuperGlue.MetaData { using AppFunc = Func<IDictionary<string, object>, Task>; public class SetMetaData { private readonly...
mit
elix/elix
src/base/CarouselWithThumbnails.js
991
import Carousel from "./Carousel.js"; import { defaultState, render, state } from "./internal.js"; /** * Carousel showing a thumbnail for each image * * @inherits Carousel * @part {img} proxy */ class CarouselWithThumbnails extends Carousel { // @ts-ignore get [defaultState]() { return Object.assign(super...
mit
vagrant-libvirt/vagrant-libvirt
lib/vagrant-libvirt/cap/mount_9p.rb
1543
# frozen_string_literal: true require 'digest/md5' require 'vagrant/util/retryable' module VagrantPlugins module ProviderLibvirt module Cap class Mount9P extend Vagrant::Util::Retryable def self.mount_9p_shared_folder(machine, folders) folders.each do |_name, opts| #...
mit
nithishj/rewardsvipclub
application/models/events_admin_model.php
2934
<?php Class events_admin_model extends CI_Model { function addevent($userid,$eventname,$eventdescription,$iconid,$eventdate) { $a=array("UserId"=>$userid,"EventName"=>$eventname,"EventDescription"=>$eventdescription,"IconId"=>$iconid,"EventDate"=>$eventdate); $q=$this->db->insert('event',$a); if($q) return a...
mit
curtisalexander/learning
elm/elm-tutorial/node_modules/elm-webpack-loader/example/src/index.js
119
'use strict'; require('./index.html'); var Elm = require('./Main'); Elm.Main.embed(document.getElementById('main'));
mit
babelshift/Steam.Models
src/Steam.Models/DOTA2/LiveLeagueGameScoreboardModel.cs
336
namespace Steam.Models.DOTA2 { public class LiveLeagueGameScoreboardModel { public double Duration { get; set; } public uint RoshanRespawnTimer { get; set; } public LiveLeagueGameTeamRadiantDetailModel Radiant { get; set; } public LiveLeagueGameTeamDireDetailModel Dire { get; ...
mit
uspgamedev/3D-experiment
externals/Ogre/RenderSystems/GLES2/src/OgreGLES2Texture.cpp
23248
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org Copyright (c) 2000-2013 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person o...
mit
mattpodwysocki/jsconf.co-2015-workshop
lessons/node_modules/rx/src/core/perf/operators/repeat.js
1814
var RepeatObservable = (function(__super__) { inherits(RepeatObservable, __super__); function RepeatObservable(value, repeatCount, scheduler) { this.value = value; this.repeatCount = repeatCount == null ? -1 : repeatCount; this.scheduler = scheduler; __super__.call(this); } Re...
mit
purgesoftwares/purges
frontend/wp-content/themes/circleflip/woocommerce/cart/shipping-calculator.php
3717
<?php /** * Shipping Calculator * * @author WooThemes * @package WooCommerce/Templates * @version 2.0.8 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly global $woocommerce; if ( get_option( 'woocommerce_enable_shipping_calc' ) === 'no' || ! WC()->cart->needs_shipping() ) return; ?> ...
mit
Serabe/ember.js
packages/ember-metal/lib/error_handler.js
470
let onerror; export const onErrorTarget = { get onerror() { return onerror; }, }; // Ember.onerror getter export function getOnerror() { return onerror; } // Ember.onerror setter export function setOnerror(handler) { onerror = handler; } let dispatchOverride; // allows testing adapter to override dispatc...
mit
cdnjs/cdnjs
ajax/libs/tsparticles/1.39.1/tsparticles.updater.life.js
172059
(function webpackUniversalModuleDefinition(root, factory) { if (typeof exports === "object" && typeof module === "object") module.exports = factory(); else if (typeof define === "function" && define.amd) define([], factory); else { var a = factory(); for (var i in a) (typeof exports === "object" ? exports : r...
mit
dts-ait/sproute-json-route-format
src/main/java/at/ac/ait/ariadne/routeformat/location/Address.java
4923
package at.ac.ait.ariadne.routeformat.location; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.TreeMap; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.google.common.base....
cc0-1.0
marcmo/nonius
test/manual_clock.h++
1290
// Nonius - C++ benchmarking tool // // Written in 2014 by Martinho Fernandes <martinho.fernandes@gmail.com> // // To the extent possible under law, the author(s) have dedicated all copyright and related // and neighboring rights to this software to the public domain worldwide. This software is // distributed without a...
cc0-1.0
usedgov/usedgov.github.io
assets/js/jquery.cbpQTRotator.js
3935
/** * jquery.cbpQTRotator.js v1.0.0 * http://www.codrops.com * * Licensed under the MIT license. * http://www.opensource.org/licenses/mit-license.php * * Copyright 2013, Codrops * http://www.codrops.com */ ;( function( $, window, undefined ) { 'use strict'; // global var Modernizr = window.Modernizr; $....
cc0-1.0
evan617/Cpp-Primer
ch14/ex14.6.7/Sales_data.cc
2745
/* * This file contains code from "C++ Primer, Fifth Edition", by Stanley B. * Lippman, Josee Lajoie, and Barbara E. Moo, and is covered under the * copyright and warranty notices given in that book: * * "Copyright (c) 2013 by Objectwrite, Inc., Josee Lajoie, and Barbara E. Moo." * * * "The authors and publi...
cc0-1.0
DanielParra159/EngineAndGame
Engine/extern/BOOST/include/boost/iostreams/detail/streambuf/direct_streambuf.hpp
10544
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com) // (C) Copyright 2003-2007 Jonathan Turkanis // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.) // See http://www.boost.org/libs/iostreams for d...
cc0-1.0
yariplus/minecraft-nodebb-integration
bukkit-legacy/src/main/java/com/radiofreederp/nodebbintegration/bukkit/listeners/ListenerPlayerJoin.java
1451
package com.radiofreederp.nodebbintegration.bukkit.listeners; import com.radiofreederp.nodebbintegration.MinecraftServerEvents; import com.radiofreederp.nodebbintegration.NodeBBIntegrationBukkit; import com.radiofreederp.nodebbintegration.NodeBBIntegrationPlugin; import com.radiofreederp.nodebbintegration.bukkit....
cc0-1.0
ibm-messaging/mq-mqsc-editor-plugin
com.ibm.mq.explorer.ms0s.mqsceditor/src/com/ibm/mq/explorer/ms0s/mqsceditor/gui/MQSCDamagerRepairer.java
1297
/******************************************************************************* * Copyright (c) 2007,2014 IBM Corporation and other Contributors. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this di...
epl-1.0
SINTEF-9012/SPLCATool
org.sat4j.core/src/test/java/org/sat4j/minisat/VarOrderTest.java
3036
/******************************************************************************* * SAT4J: a SATisfiability library for Java Copyright (C) 2004-2008 Daniel Le Berre * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which ac...
epl-1.0
kgibm/open-liberty
dev/com.ibm.ws.jaxrs.2.0.client_fat/test-applications/thirdpartyjerseyclient/src/com/ibm/ws/jaxrs20/client/ThirdpartyJerseyClient/service/ServiceServlet.java
1645
/******************************************************************************* * Copyright (c) 2018 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is a...
epl-1.0
pchel-/pty4j
src/com/pty4j/windows/WinPtyProcess.java
2754
package com.pty4j.windows; import com.google.common.base.Joiner; import com.pty4j.PtyException; import com.pty4j.PtyProcess; import com.pty4j.WinSize; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; /** * @author traff */ public class WinPtyProcess extends PtyProcess { privat...
epl-1.0
jacobfilik/scanning
org.eclipse.scanning.event.ui/src/org/eclipse/scanning/event/ui/view/StatusQueueView.java
40645
/* * Copyright (c) 2012 Diamond Light Source Ltd. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ package org.ecli...
epl-1.0
ModelWriter/WP3
Source/eu.modelwriter.model/src/eu/modelwriter/model/ModelManager.java
8944
package eu.modelwriter.model; import java.io.Serializable; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import java.util.List; import java.util.UUID; import java.util.stream.Collectors; import java.util.stream.Stream; import eu.modelwriter.model.ModelElement.BOUND; import eu.modelwr...
epl-1.0
gomezabajo/Wodel
anatlyzer.atl.typing/src/anatlyzer/atl/analyser/namespaces/AbstractTypeNamespace.java
5834
package anatlyzer.atl.analyser.namespaces; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.function.Consumer; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EStructuralFeature; import anatlyzer.atl.a...
epl-1.0
rkadle/Tank
api/src/test/java/com/intuit/tank/script/RequestDataPhaseCpTest.java
1081
package com.intuit.tank.script; /* * #%L * Intuit Tank Api * %% * Copyright (C) 2011 - 2015 Intuit Inc. * %% * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * h...
epl-1.0
codenvy/plugin-datasource
codenvy-ext-datasource-shared/src/main/java/org/eclipse/che/ide/ext/datasource/shared/exception/BadSQLRequestParameterException.java
1206
/******************************************************************************* * Copyright (c) 2012-2015 Codenvy, S.A. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available ...
epl-1.0
bobwalker99/Pydev
plugins/org.python.pydev/pysrc/_pydev_runfiles/pydev_runfiles_pytest2.py
9352
import pickle, zlib, base64, os import py from _pydev_runfiles import pydev_runfiles_xml_rpc from pydevd_file_utils import _NormFile import pytest import sys import time #=================================================================================================== # Load filters with tests we should skip #=====...
epl-1.0
optsicom-urjc/optsicom-framework
es.optsicom.lib.analysis/src/main/java/es/optsicom/lib/expresults/manager/MultipleExperimentManager.java
6274
package es.optsicom.lib.expresults.manager; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import es.optsicom.lib.analyzer.tablecreator.filter.ElementFilter; import es.optsicom.lib.expresults.model.Execution; import es.optsicom.lib.expresults....
epl-1.0
codeaudit/rlpark
rlpark.plugin.rltoys/jvsrc/rlpark/plugin/rltoys/envio/rl/RLAgent.java
202
package rlpark.plugin.rltoys.envio.rl; import java.io.Serializable; import rlpark.plugin.rltoys.envio.actions.Action; public interface RLAgent extends Serializable { Action getAtp1(TRStep step); }
epl-1.0
marwensaid/SimpleFunctionalTest
sft-core/src/main/java/sft/result/ScenarioResult.java
4525
/******************************************************************************* * Copyright (c) 2013, 2014 Sylvain Lézier. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is availab...
epl-1.0
kgibm/open-liberty
dev/com.ibm.ws.security.social/test/com/ibm/ws/security/social/tai/TAISubjectUtilsTest.java
109614
/******************************************************************************* * Copyright (c) 2016, 2018 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, an...
epl-1.0
jcryptool/crypto
org.jcryptool.visual.aup/src/org/jcryptool/visual/aup/AndroidUnlockPatternPlugin.java
859
// -----BEGIN DISCLAIMER----- /******************************************************************************* * Copyright (c) 2013, 2021 JCrypTool Team and Contributors * * All rights reserved. This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which...
epl-1.0