repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
trustify/oroplatform
src/Oro/Component/Layout/Tests/Unit/Loader/Driver/YamlDriverTest.php
6880
<?php namespace Oro\Component\Layout\Tests\Unit\Loader\Driver; use Symfony\Component\Filesystem\Filesystem; use Oro\Component\Layout\Exception\SyntaxException; use Oro\Component\Layout\Loader\Driver\YamlDriver; use Oro\Component\Layout\Loader\Generator\GeneratorData; use Oro\Component\Layout\Loader\Generator\LayoutU...
mit
NCSU-Libraries/circa
app/models/concerns/ref_integrity.rb
2404
require 'active_support/concern' module RefIntegrity extend ActiveSupport::Concern included do include CircaExceptions before_destroy :check_deletable, prepend: true # before_destroy :delete_from_index def deletable? deletable = true case self when User if self.orders....
mit
Xadera/Software-University
Programming Fundamentals Jan 2017/homework/Files, Direct., Exceptions - Lab/04. Max Sequence of Equal Elements/Properties/AssemblyInfo.cs
1444
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("04...
mit
ramswaroop/Algorithms-and-Data-Structures-in-Java
src/main/java/com/rampatra/linkedlists/DeleteAlternateNodes.java
1039
package com.rampatra.linkedlists; import com.rampatra.base.SingleLinkedList; import com.rampatra.base.SingleLinkedNode; /** * Delete alternate nodes in a single linked list. * * @author rampatra * @since 6/27/15 */ public class DeleteAlternateNodes { public static <E extends Comparable<E>> void deleteAltern...
mit
DecibelTechnology/decibel-framework
rpc/debug/DInvalidRemoteProcedureCallException.php
3410
<?php // // Copyright (c) 2008-2016 Decibel Technology Limited. // namespace app\decibel\rpc\debug; use app\decibel\utility\DJson; use stdClass; /** * Handles an exception occurring when execution of a remote procedure * against an non-Decibel server is attempted, or when the remote server * cannot be contacted. ...
mit
OblivionNW/Nucleus
src/main/java/io/github/nucleuspowered/nucleus/modules/mute/events/MuteEvent.java
2041
/* * This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file * at the root of this project for more details. */ package io.github.nucleuspowered.nucleus.modules.mute.events; import io.github.nucleuspowered.nucleus.api.events.NucleusMuteEvent; import org.spongepowered.api.entity....
mit
versioneye/versioneye-core
lib/versioneye/models/license.rb
4651
class License < Versioneye::Model include Mongoid::Document include Mongoid::Timestamps require 'versioneye/models/traits/license_normalizer' include VersionEye::LicenseNormalizer # This license belongs to the product with this attributes field :language , type: String field :prod_key , type: S...
mit
chrisdew/barricane-server
www/vendor/knockout.mapping-latest.js
5941
// Knockout Mapping plugin v0.5 // (c) 2010 Steven Sanderson, Roy Jacobs - http://knockoutjs.com/ // License: Ms-Pl (http://www.opensource.org/licenses/ms-pl.html) ko.exportSymbol=function(n,s){for(var j=n.split("."),t=window,o=0;o<j.length-1;o++)t=t[j[o]];t[j[j.length-1]]=s};ko.exportProperty=function(n,s,j){n[s]...
mit
MOJOv3/mojocoin
src/util.cpp
35861
// 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 "util.h" #include "chainparams.h" #include "sync.h" #include "ui_interfa...
mit
oprema/ResQ-Pi
fileutil.py
423
import os, errno class FileUtil(object): def __init__(self, path): self.path = os.path.join(os.getcwd(), path) try: os.makedirs(self.path, 0750) except OSError as exc: if exc.errno == errno.EEXIST and os.path.isdir(self.path): pass else: raise def path(self): retu...
mit
kalibao/magesko
kalibao/backend/modules/cms/components/cmsLayout/crud/ListGridRowEdit.php
2663
<?php /** * @copyright Copyright (c) 2015 Kévin Walter <walkev13@gmail.com> - Kalibao * @license https://github.com/kalibao/magesko/blob/master/LICENSE */ namespace kalibao\backend\modules\cms\components\cmsLayout\crud; use Yii; use yii\helpers\Url; use kalibao\common\components\crud\SimpleValueField; use kalibao\...
mit
nano-byte/common
src/Common/INamed.cs
747
// Copyright Bastian Eicher // Licensed under the MIT License namespace NanoByte.Common; /// <summary> /// An entity that has a unique name that can be used for identification in lists and trees. /// </summary> /// <see cref="Collections.NamedCollection{T}"/> public interface INamed { /// <summary> ...
mit
jmptable/semanter
SemanterApp/semanter/src/main/java/graphics/epi/PlaceholderFragment.java
1303
package graphics.epi; import android.content.Intent; import android.database.Cursor; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; import android.os.Bundle; import android.provider.MediaStore; import android.support.v4.app.Fragment; import android.util.Log; import andro...
mit
kevinschmidt/tvillion
config/environments/test.rb
1528
TVillion::Application.configure do # Settings specified here will take precedence over those in config/application.rb # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test s...
mit
kihira/Tails
src/main/java/uk/kihira/tails/client/toast/ToastManager.java
2428
package uk.kihira.tails.client.toast; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.FontRenderer; import net.minecraft.profiler.IProfiler; import net.minecraft.util.IReorderingProcessor; import net.minecraft.util.text.StringTextComponent; import net.minecraftforge.client.event.GuiScreenEvent; ...
mit
Zonama/ZonamaDev
server/emuyoda/html/js/config.js
177
/** * defines constants for application */ "use strict"; define(["angular"], function (angular) { return angular.module("app.constants", []).constant("CONFIG", {}); });
mit
moegyver/mJeliot
Jeliot/src/avinteraction/InteractionInterface.java
2174
package avinteraction; import java.awt.event.ActionListener; import java.awt.event.WindowListener; import avinteraction.backend.BackendInterface; import avinteraction.parser.LanguageParserInterface; /** * Represents the interface for communicating with the * AVInteraction module. Version 0.1, backend c...
mit
yuesir/HTML5-Canvas
ch03/example-3.9/example.js
4545
/* * Copyright (C) 2012 David Geary. This code is from the book * Core HTML5 Canvas, published by Prentice-Hall in 2012. * * License: * * 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 Softwar...
mit
ashutoshrishi/slate
packages/slate/test/changes/at-current-range/delete-forward/start-text-middle-inline.js
523
/** @jsx h */ import h from '../../../helpers/h' export default function(change) { change.deleteForward() } export const input = ( <value> <document> <paragraph> <anchor />one<link> t<focus />wo </link> </paragraph> </document> </value> ) // TODO: this output sele...
mit
tokenhouse/solhint
lib/rules/order/separate-top-level-by-two-lines.js
1550
const BaseChecker = require('./../base-checker'); const BlankLineCounter = require('./../../common/blank-line-counter'); const { typeOf } = require('./../../common/tree-traversing'); class SeparateTopLevelByTwoLinesChecker extends BaseChecker { constructor(reporter) { super(reporter); this.lineCo...
mit
ricardopereyra/SysTur
src/IM/SysTurBundle/Entity/Seguimiento.php
4208
<?php namespace IM\SysTurBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Seguimiento * * @ORM\Table() * @ORM\Entity(repositoryClass="IM\SysTurBundle\Entity\SeguimientoRepository") */ class Seguimiento { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * ...
mit
obeattie/sqlalchemy
test/base/test_except.py
5046
"""Tests exceptions and DB-API exception wrapping.""" from sqlalchemy import exc as sa_exceptions from sqlalchemy.test import TestBase # Py3K #StandardError = BaseException # Py2K from exceptions import StandardError, KeyboardInterrupt, SystemExit # end Py2K class Error(StandardError): """This class will be old-s...
mit
Dashron/roads
types/core/road.d.ts
5550
/** * road.ts * Copyright(c) 2021 Aaron Hedges <aaron@dashron.com> * MIT Licensed * * Exposes the core Road class */ import Response from './response'; export interface IncomingHeaders { [x: string]: string | Array<string> | undefined; } export interface Middleware<MiddlewareContext extends Context> { (th...
mit
osser/ionic2-sample
ionic-preview-app/app/pages/buttons/block/pages.ts
142
import {Component} from '@angular/core'; @Component({ templateUrl: './build/pages/buttons/block/block.html' }) export class BlockPage { }
mit
sdl/Testy
src/main/java/com/sdl/selenium/web/utils/RetryUtils.java
14241
package com.sdl.selenium.web.utils; import com.google.common.base.Strings; import org.slf4j.Logger; import java.time.Duration; import java.util.List; import java.util.Objects; import java.util.concurrent.Callable; public class RetryUtils { private static final Logger log = org.slf4j.LoggerFactory.getLogger(Retr...
mit
Yeasayer/YoutubeVideoPage
ytdownload/settings.py
4708
""" Django settings for ytdownload project. Generated by 'django-admin startproject' using Django 1.10.4. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import...
mit
prajesh-ananthan/java_mastery
src/main/java/com/java/mastery/lambda_expression/functional_interface/ConsumerVsSupplier.java
1241
package com.java.mastery.lambda_expression.functional_interface; import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; import java.util.function.Supplier; /** * Created by ANAN011 on 18/4/2017. * * @author Prajesh Ananthan, arvato Systems Malaysia Sdn Bhd * <p> * ...
mit
AlexLibs/ScriptsLoader
js/scripts_loader.js
2261
function ScriptsLoader(dependencyForest, callback) { var head = document.getElementsByTagName("head")[0] || document.documentElement; var processed = 0; var toBeProcessed = 0; var scriptsLoaded = {}; // to check uniqueness function loadOne(src, innerCallback) { toBeProcessed++; if(sc...
mit
zavyrylin/m
lib/m/all.rb
64
# Make all accessible in global namespace require "m" include M
mit
chikara-chan/full-stack-javascript
manager/server/server.prod.js
651
import 'babel-polyfill' import serve from 'koa-static' import path from 'path' import views from 'koa-views' import app from './app' import router from './routes' import clientRoute from './middlewares/clientRoute' const port = process.env.port || 3002 app.use(views(path.resolve(__dirname, '../views/prod'), {map: {ht...
mit
f0rki/cb-multios
original-challenges/Multi_Arena_Pursuit_Simulator/poller/for-release/machine.py
15599
#!/usr/bin/env python # # Copyright (C) 2015 Narf Industries <info@narfindustries.com> # # 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 # th...
mit
lftzzzzfeng/myaolin
application/views/main/food/index.php
7139
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <title><?php echo $pageTitle; ?></title> <link rel="stylesheet" href="<?php echo base_url() ?>ui/css/mobile/bootstrap.css"/> <link rel="stylesheet"...
mit
jakobabesser/pymus
pymus/tools.py
7333
# try to import libsoundfile for audio import, alternatively try loading audio via scipy or wave try: import soundfile soundfile_found = True except ImportError: from scipy.io.wavfile import read import wave soundfile_found = False import numpy as np import os __author__ = 'Jakob Abesser' class ...
mit
Eernie/JMoribus
core/src/main/java/nl/eernie/jmoribus/parser/ReferringScenario.java
344
package nl.eernie.jmoribus.parser; import nl.eernie.jmoribus.model.Scenario; import nl.eernie.jmoribus.model.StepContainer; class ReferringScenario extends Scenario { public ReferringScenario(String combinedStepLines, StepContainer prologueOrScenario) { this.setStepContainer(prologueOrScenario); this.setTitle(c...
mit
kevholditch/Rotation
Tests/Rotation.Tests/Game1.cs
2600
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace Rotation.GameObjects.sTests { /// <summary> /// This is the main type for your game /// </summary> public class Game1 : Game { GraphicsDeviceManager graphics; SpriteBatch spriteBatch; ...
mit
mscherotter/spotlists
SpotLists.WP8/SpotLists.WP8/BeatsMusic/TokenResponse.cs
306
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SpotLists.WP8.BeatsMusic { public class TokenResponse { [JsonProperty("result")] public TokenResult Result { get; set; } } }
mit
GabGab/api_ai_wrapper
lib/api_ai_wrapper/extensions/string.rb
448
# String Override taken from Rails class String def demodulize if i = self.rindex("::") self[(i + 2)..-1] else self end end def underscore return self unless /[A-Z-]|::/.match?(self) word = self.gsub("::".freeze, "/".freeze) word.gsub!(/([A-Z\d]+)([A-Z][a-z])/, '\1_\2'.freeze...
mit
oscarguindzberg/multibit-hd
mbhd-swing/src/test/java/org/multibit/hd/ui/fest/use_cases/sidebar/settings/language/ShowThenCancelLanguageUseCase.java
1311
package org.multibit.hd.ui.fest.use_cases.sidebar.settings.language; import org.fest.swing.fixture.FrameFixture; import org.multibit.hd.ui.fest.use_cases.AbstractFestUseCase; import org.multibit.hd.ui.languages.MessageKey; import java.util.Map; /** * <p>Use case to provide the following to FEST testing:</p> * <ul>...
mit
Snarkie/YGOProAIScript
AI/mod/AIHelperFunctions.lua
62989
----------------------------------------- -- AIHelperFunctions.lua -- -- A set of functions for use with ai.lua -- -- Parameters (none): ----------------------------------------- -- This file is divided into sections -- for easier use. ----------------------------------------- ----------------------------------------...
mit
dynamicreflectance/core
math/source/Converters.hpp
457
#pragma once /* Converters.hpp * * Copyright (C) 2017 Dynamic Reflectance * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ namespace core { namespace math { float toDegrees(float in_radians) { return in_radians * 180.0f / ...
mit
voku/swiftmailer
lib/classes/Swift/Encoder/Rfc2231Encoder.php
2439
<?php /* * This file is part of SwiftMailer. * (c) 2004-2009 Chris Corbyn * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Handles RFC 2231 specified Encoding in Swift Mailer. * * @author Chris Corbyn */ class Swift_Encod...
mit
rdqw/sscoin
contrib/devtools/update-translations.py
7660
#!/usr/bin/python # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Run this script from the root of the repository to update all translations from transifex. It will do the following...
mit
elennick/retry4j
src/main/java/com/evanlennick/retry4j/CallExecutor.java
11095
package com.evanlennick.retry4j; import com.evanlennick.retry4j.config.RetryConfig; import com.evanlennick.retry4j.exception.RetriesExhaustedException; import com.evanlennick.retry4j.exception.UnexpectedException; import com.evanlennick.retry4j.listener.RetryListener; import org.slf4j.Logger; import org.slf4j.LoggerFa...
mit
lucasp90/learnyounode
lesson12.js
360
var http = require('http'); var fs = require('fs'); var map = require('through2-map'); var port = process.argv[2]; var path = process.argv[3]; var toUpper = map(function(result){ return result.toString().toUpperCase() }); var server = http.createServer(function(req,res){ if(req.method == 'POST') req.pipe(toUpp...
mit
NikolaiMishev/OneHourSport
OneHourSport/OneHourSport.Web/Models/Account/LoginViewModel.cs
471
namespace OneHourSport.Web.Models.Account { using System.ComponentModel.DataAnnotations; public class LoginViewModel { [Required] [Display(Name = "Username")] public string UserName { get; set; } [Required] [DataType(DataType.Password)] [Display(Name = "Pa...
mit
pixelpicosean/phaser
plugins/fbinstant/src/Product.js
814
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2018 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ var GetFastValue = require('../utils/object/GetFastValue'); /** * @classdesc * [description] * * @class FacebookI...
mit
frxstrem/fys3150
project5/code/transactions.cc
4741
#include <iostream> #include <cstdio> #include <random> #include <algorithm> #include <iterator> #include "transactions.hh" using namespace std; // pseudorandom number generator default_random_engine G; // seed PRNG with true random number unsigned int seed_simulation() { random_device source; unsigned int seed...
mit
peteward44/WebNES
project/js/db/A48AD4C24648F0996CC5C06B5CBD1F284F04D40F.js
1161
this.NesDb = this.NesDb || {}; NesDb[ 'A48AD4C24648F0996CC5C06B5CBD1F284F04D40F' ] = { "$": { "name": "Marusa no Onna", "altname": "マルサの女", "class": "Licensed", "catalog": "CAP-FM", "publisher": "Capcom", "developer": "Capcom", "region": "Japan", "players": "1", "date": "1989-09-19" }, "cartridge"...
mit
sclark39/UE-VR-Code-Sample
Source/VRCode/VRCodeGameModeBase.cpp
155
/* * Author: Skyler Clark (@sclark39) * Website: http://skylerclark.com * License: MIT License */ #include "VRCode.h" #include "VRCodeGameModeBase.h"
mit
binidini/mstock
admin/rights_managed/step_add.php
452
<? include("../function/db.php");?> <? include("../function/upload.php");?> <? //Check access admin_panel_access("settings_rightsmanaged"); $sql="insert into rights_managed_structure (id_parent,types,title,adjust,price,price_id,group_id,option_id,conditions,collapse) values (0,0,'".result($_POST["title"])."...
mit
wilfreddenton/react-motion
src/components.js
10118
import mapTree from './mapTree'; import noVelocity from './noVelocity'; import compareTrees from './compareTrees'; import mergeDiff from './mergeDiff'; import configAnimation from './animationLoop'; import zero from './zero'; import {interpolateValue, updateCurrValue, updateCurrVelocity} from './updateTree'; import pre...
mit
Kenwhite23/Unamed
src/qt/locale/bitcoin_el_GR.ts
138189
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Shiacoin</source> <translation>Σχετικά με το Shiacoin</translatio...
mit
eumes/ber-tlv-annotations
gulpfile.js
1744
var del = require('del'); var gulp = require('gulp'); var mocha = require('gulp-mocha'); var ts = require('gulp-typescript'); var merge = require('merge2'); gulp.task('typescript.clean', function () { del.sync(['./release'], { force: true }); }); gulp.task('typescript.build', ['typescript.clean'], function() { va...
mit
peterwilletts24/Monsoon-Python-Scripts
geopotential/temps_etc_on_p_levels_8km.py
4343
""" Find heights oftemperature etc. on pressure levels from models and save Takes calculate pressure level heights from geopotential_interpolate_multiple.py """ import os,sys import iris import iris.coords as coords import iris.unit as unit #from tempfile import mkdtemp import numpy as np import os.path as path im...
mit
gmunro/another-auth
another-auth/Interfaces/IAuthDb.cs
378
using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Threading.Tasks; namespace another_auth.Interfaces { public interface IAuthDb { void Save(); Task SaveAsync(); void Add<T>(T entity) where T : class; IQueryable<T> Query<T>() where T : class; ...
mit
yeojz/data-calendar
src/helpers/classNames.js
950
/* * className * * Takes in an object or string option, * passes it into `cx` and concats with * optional additional classNames * * Depends on `cx` modules * * @param string|object className to modularize, or an object of key/values. * In the object case, the values are conditions that *...
mit
leisureq/study
28_ArrayBuffer/new-1.js
226
"use strict"; debugger; let obj1 = new ArrayBuffer(20); console.log(obj1.byteLength); let obj2 = new ArrayBuffer(); console.log(obj2.byteLength); let obj3 = new ArrayBuffer("12"); console.log(obj3.byteLength); let dummy;
mit
musicglue/sidekiq-isochronal
lib/sidekiq-isochronal/version.rb
67
module Sidekiq module Isochronal VERSION = "0.0.1" end end
mit
jcondor/SpringORM
src/main/java/app/model/Socio.java
1437
package app.model; import java.util.List; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.OneT...
mit
mike-robertson/doctor_finder
client/app/main/main.controller.js
2034
'use strict'; angular.module('mrWebdesignApp') .controller('MainCtrl', ['$timeout', '$http', 'GoogleMapApi'.ns(), function ($timeout, $http, GoogleMapApi) { var ctrl = this; // In case there is a delay, display loading gif for map. ctrl.loading = true; // Set our map to San Antonio center coo...
mit
bitcoin-s/bitcoin-s
core/src/main/scala/org/bitcoins/core/gcs/FilterHeader.scala
1394
package org.bitcoins.core.gcs import org.bitcoins.crypto.{ CryptoUtil, DoubleSha256Digest, DoubleSha256DigestBE } /** Bip 157 Block Filter Headers which commit to a chain of block filters, * much in the same way that block headers commit to a block chain * @see [[https://github.com/bitcoin/bips/blob/master/...
mit
skinny-framework/skinny-splash
src/test/scala/simple/SimpleExampleDispatcher.scala
291
package simple import skinny.splash._ trait SimpleExampleDispatcher extends SprayDispatcher { val controller = new SimpleExampleController override def routes = Seq( getRoute("ok")(req => SprayResponse(body = "ok")), postRoute("echo")(implicit req => controller.echo) ) }
mit
xinge/gcm_helper
lib/gcm_helper/result.rb
548
module GcmHelper class Result attr_accessor :message_id, :canonical_registration_id, :error_code def initialize(args) [:message_id, :canonical_registration_id, :error_code].each do |attr| instance_variable_set("@#{attr}", args[attr]) if (args.key?(attr)) end end def inspect ...
mit
patricksrobertson/simple-mde
addon/utils/default-toolbar.js
149
export default ["bold", "italic", "|", "heading-1", "heading-2", "heading-3", "|", "unordered-list", "ordered-list", "|", "link", "horizontal-rule"];
mit
abhishekkr/j
minified/j_httpget.js
127
function getUrlVars(){var e={};var t=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(t,n,r){e[n]=r});return e}
mit
Zokerus/Tameran
Tameran/Hydro/Graphics/2D/Texture.cpp
6470
#include "Texture.h" #include <exception> Hydro::Texture::Texture(ID3D11Device* _device, ID3D11DeviceContext* _deviceContext, std::string _fileName, Rectangle& _srcRect) : pTargaData(nullptr), width(0), height(0), pTexture(nullptr), pTextureView(nullptr) { //Load the targa image data into memory if (!LoadTarga(_fil...
mit
aditigoel23/React-Car-App
app/containers/HomePage/index.js
903
/* * HomePage * * This is the first thing users see of our App, at the '/' route * For now this will just render the needed 2 columns with the nav and the content areas. * Eventually main content would be where diff contents get loaded based on routes. * * NOTE: while this component should technically be a state...
mit
asiboro/asiboro.github.io
vsdoc/toc--/topic_00000000000009B5.html.js
389
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['2851',"Tlece.Recruitment.Models.Subscriptions Namespace","topic_00000000000009A3.html"],['2866',"SubscriptionsDto Class","topic_00000000000009B1.html"],['2867',"Properties","topic_00000000000009B1_props--.html"],['2...
mit
jdt/EID.Wrapper
Source/EID.Wrapper/Pkcs11/Delegates/C_DigestFinal.cs
313
 using System; using Net.Sf.Pkcs11.Wrapper; namespace Net.Sf.Pkcs11.Delegates { [System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute(System.Runtime.InteropServices.CallingConvention.Cdecl)] internal delegate CKR C_DigestFinal( uint hSession, byte[] pDigest, ref uint pulDigestLen ); }
mit
lholota/LH.TestObjects
LH.TestObjects.Tests/Compare/WhenComparingPrimitiveTypes.cs
1817
namespace LH.TestObjects.Tests.Compare { using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Linq.Expressions; using FluentAssertions; using Microsoft.CSharp.RuntimeBinder; using NUnit.Framework; using TestObjects.Compare; [Test...
mit
GordonSmith/dagre
test/order/initOrder-test.js
1459
var assert = require('../assert'), initOrder = require('../../lib/order/initOrder'), CDigraph = require('graphlib').CDigraph; describe('initOrder', function() { var g; beforeEach(function() { g = new CDigraph(); g.graph({}); }); it('sets order to 0 for the node in a singleton graph', function...
mit
KJSCE-C12/VDOC
Source/Cloud/VDOC/Depends/Models/Resources/CloudletServer.py
1734
from google.appengine.ext import db from ApplicationServer import ApplicationServer class CloudletServer(db.Model): DomainName = db.StringProperty(required=True) IPAddress = db.StringProperty(required=True) secretKey = db.ByteStringProperty(required=True) serverIV = db.ByteStringProperty(required=True) def get...
mit
romanoide/tumblrwave
utils/colors.js
886
var fs = require('fs'); var request = require('request'); var color = require('dominant-color') // Or with cookies // var request = require('request').defaults({jar: true}); module.exports= function(yyz, next){ var url = yyz["miniature_link"]; var filename =url.substring(url.lastIndexOf('/')+1) var ima...
mit
simon-wh/PAYDAY-2-BeardLib-Editor
mods/BeardLib-Editor/Classes/Map/PortalLayerEditor.lua
11752
PortalLayerEditor = PortalLayerEditor or class(LayerEditor) local PortalLayer = PortalLayerEditor function PortalLayer:init(parent) self:init_basic(parent, "PortalLayerEditor") self._menu = parent._holder MenuUtils:new(self) self._created_units = {} self._portal_shape_unit = "core/units/portal_shape/portal_shape" ...
mit
huseyinozyilmaz/automated-acceptance-tests-quickstart
src/test/java/org/huseyin/bdd/config/webdriver/WebDriverFactory.java
3789
package org.huseyin.bdd.config.webdriver; import static java.lang.String.format; import static java.lang.System.getProperty; import static java.util.Arrays.stream; import static java.util.stream.Collectors.toList; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa....
mit
Supertext/SuperScript.JavaScript
Configuration/Classes/CallElement.cs
1078
using System; using System.Configuration; namespace SuperScript.JavaScript.Configuration { public class CallElement : DeclarationElement { private static readonly ConfigurationProperty ParametersElement = new ConfigurationProperty("parameters", typeof (ParametersCollection), null, ConfigurationPropert...
mit
jjenki11/blaze-chem-rendering
qca_designer/lib/pnetlib-0.8.0/runtime/System/Security/Permissions/UrlIdentityPermissionAttribute.cs
2131
/* * UrlIdentityPermissionAttribute.cs - Implementation of the * "System.Security.Permissions.UrlIdentityPermissionAttribute" class. * * Copyright (C) 2003 Southern Storm Software, Pty Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public L...
mit
mattmilburn/wp-bootstrap
theme/category.php
2232
<?php get_header(); ?> <div class="page-main"> <div class="page-title"> <div class="container"> <h1>Categories</h1> </div> </div> <div class="inner"> <div class="container"> <?php if (have_posts()): ?> <di...
mit
Department-for-Work-and-Pensions/ClaimCapture
c3/test/views/OnHandlerNotFoundSpec.scala
358
package views import org.specs2.mutable._ import utils.WithBrowser class OnHandlerNotFoundSpec extends Specification { section("unit") "OnHandlerNotFound" should { "show 404 page when user navigates to a bad URL" in new WithBrowser { browser.goTo("/404") browser.title mustEqual "This page can't be...
mit
saulmadi/Encomiendas
src/Encomiendas.Web/Api/Modules/UserAccountModule.cs
3597
using System; using System.Collections.Generic; using System.Linq; using AcklenAvenue.Commands; using AutoMapper; using Encomiendas.Domain.Application.Commands; using Encomiendas.Domain.Entities; using Encomiendas.Domain.Services; using Nancy; using Nancy.ModelBinding; using Encomiendas.Web.Api.Infrastructure; using E...
mit
silmunc1916/LEDcontrol-Android
app/src/main/java/wb/ledcontrol/OnFragReplaceListener.java
1127
package wb.ledcontrol; import android.os.Bundle; public interface OnFragReplaceListener { public void OnFragReplace(int fragmentID, boolean toBackStack, Bundle data); } /* Callback für's Wechseln der Fragments int fragmentID: ID, welches Fragment gestartet werden soll. Die IDs sind in FAct_control definiert. ...
mit
Phybbit/kinect-data-transmitter
DataConverter/Properties/AssemblyInfo.cs
1402
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("Da...
mit
HerrB92/obp
OpenBeaconPackage/libraries/hibernate-release-4.2.7.SP1/project/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/RelatedAuditExpression.java
2689
/* * Hibernate, Relational Persistence for Idiomatic Java * * Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as * indicated by the @author tags or express copyright attribution * statements applied by the authors. All third-party contributions are * distributed under license by Red Hat Mi...
mit
XenonApp/xenon
js/fs/static.js
2426
'use strict'; /** * This module implements the read-only file system, essentially a simple * way to serve files from folders from within the Zed application */ const fs = require('fs'); var http_cache = require("../lib/http_cache"); var fsUtil = require("./util"); module.exports = function(options) { var root ...
mit
MarcTowler/blog
includes/functions.php
1484
<?php function slug($text){ // replace non letter or digits by - $text = preg_replace('~[^\\pL\d]+~u', '-', $text); // trim $text = trim($text, '-'); // transliterate $text = iconv('utf-8', 'us-ascii//TRANSLIT', $text); // lowercase $text = strtolower($text); // remove unwanted chara...
mit
daviian/sd_googlemaps
Tests/Unit/Domain/Model/StyleTest.php
3651
<?php namespace SD\SdGooglemaps\Tests\Unit\Domain\Model; /** * Test case. * * @author David Schneiderbauer <david.schneiderbauer@dschneiderbauer.me> */ class StyleTest extends \TYPO3\CMS\Core\Tests\UnitTestCase { /** * @var \SD\SdGooglemaps\Domain\Model\Style */ protected $subject = null; pr...
mit
california-civic-data-coalition/django-calaccess-processed-data
calaccess_processed_elections/managers/opencivicdata/elections/candidatecontests.py
1856
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Custom managers for the OCD CandidateContest models. """ from __future__ import unicode_literals from django.db.models import Q from django.db import models from postgres_copy import CopyQuerySet class OCDCandidateContestQuerySet(CopyQuerySet): """ Custom help...
mit
savageboy74/SavageCore
src/main/java/tv/savageboy74/savagecore/common/proxy/CommonProxy.java
1380
package tv.savageboy74.savagecore.common.proxy; /* * CommonProxy.java * Copyright (C) 2014 - 2015 Savage - github.com/savageboy74 * * 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 with...
mit
mathewgrabau/shmotg
node_modules/d3/node_modules/jsdom/node_modules/cssstyle/lib/properties/pitchRange.js
263
'use strict'; module.exports.definition = { set: function (v) { this.setProperty('pitch-range', v); }, get: function () { return this.getPropertyValue('pitch-range'); }, enumerable: true, configurable: true };
mit
jakewendt/phonify_string
test/phonify_string_test.rb
2692
require 'test/unit' require 'rubygems' require 'active_record' $:.unshift "#{File.dirname(__FILE__)}/../lib" require 'phonify_string' ActiveRecord::Base.send(:extend, PhonifyString ) ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") def setup_db ActiveRecord::Schema.define(:ver...
mit
inCodeSystemsNsk/frontend-boilerplate
shared/reducers/user.js
258
import { LOGIN, LOGOUT } from '../actions/user' export default function user(state = null, action) { switch (action.type) { case LOGIN: return { ...state, ...action.user } case LOGOUT: return null default: return state } }
mit
ebothmann/heppyplotlib
examples/ratioplot.py
720
#!/usr/bin/env python2 import heppyplotlib as hpl import matplotlib.pyplot as plt basenames = ["central", "up", "down"] filepaths = [b + ".yoda" for b in basenames] rivet_path = "/ANALYSIS/OBSERVABLE" # plot envelope combined = hpl.combine(filepaths, rivet_path, hpl.envelope_error) axes_list = hpl.ratioplot([combin...
mit
warren5236/OperationSyncTheDatabase
Tests/Bootstrap.php
157
<?php require_once(getcwd() . '/OSTD/Autoloader/Autoloader.php'); use OSTD\Autoloader\Autoloader; $autoloader = new Autoloader(); $autoloader->register();
mit
SolidEdgeCommunity/docs
docfx_project/snippets/SolidEdgePart.Split.Edit.cs
1946
using System.IO; using System.Runtime.InteropServices; internal static class Example { [STAThread()] public static void Main() { SolidEdgeFramework.Application objApplication = null; SolidEdgePart.PartDocument objPartDocument = null; SolidEdgePart.Models objModels = null; S...
mit
rockabox/rbx_ui_components
src/rb-canvas/index.js
347
define([ './rb-canvas-directive', './rb-canvas.css' ], function (rbCanvasDirective, css) { /** * @ngdoc module * @name rb-canvas * @description * * rbCanvas * */ var rbCanvas = angular .module('rb-canvas', []) .directive('rbCanvas', rbCanvasDirective); ...
mit
bojanrajkovic/pingu
src/Pingu/Chunks/IhdrChunk.cs
3836
using System; using System.Threading.Tasks; using Pingu.Colors; namespace Pingu.Chunks { public class IhdrChunk : Chunk { public override string Name => "IHDR"; public override int Length => 13; public int Width { get; } public int Height { get; } public int BitDepth ...
mit
garethj-msft/msgraph-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/WorkbookFunctionsGcdRequest.cs
2945
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
mit
jimlindstrom/xbrlware-extras
lib/xbrlware-extras/item.rb
2355
module Xbrlware class ValueMapping attr_accessor :policy def initialize @unknown_classifier = nil @policy = { :credit => :no_action, :debit => :no_action, :unknown => :no_action } # FIXME: a classifier could be used here.... end def value(name, de...
mit
gehnster/nerdbot
Nerdbot/Utilities/Fortuna/Accumulator/Sources/CryptoServiceProvider.cs
1999
/* Fortuna * By: smithc * GitHub: https://github.com/smithc/Fortuna * LICENSE: * MIT License Copyright (c) 2016 smithc 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, in...
mit
Symfony-Plugins/sfSympalPlugin
lib/plugins/sfSympalAdminPlugin/modules/sympal_content_menu_item/lib/Basesympal_content_menu_itemActions.class.php
2039
<?php /** * Base actions for the sfSympalPlugin sympal_content_menu_item module. * * @package sfSympalPlugin * @subpackage sympal_content_menu_item * @author Your name here * @version SVN: $Id: BaseActions.class.php 12534 2008-11-01 13:38:27Z Kris.Wallsmith $ */ abstract class Basesympal_content_...
mit