repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
ginach/msgraph-sdk-dotnet
src/Microsoft.Graph/Models/Generated/WorkbookFunctionsImDivRequestBody.cs
1461
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
mit
bean-validation-scala/bean-validation-scala
src/main/scala/com/tsukaby/bean_validation_scala/SafeHtmlValidatorForOption.scala
923
package com.tsukaby.bean_validation_scala import javax.validation.{ConstraintValidator, ConstraintValidatorContext} import org.hibernate.validator.constraints.SafeHtml import org.hibernate.validator.internal.constraintvalidators.hv.SafeHtmlValidator /** * Check the wrapped string. */ class SafeHtmlValidatorForOpti...
mit
joshball/raptordb
RaptorDB/RaptorDBServer.cs
15516
using System; using System.Collections.Generic; using System.Linq; using System.Text; using RaptorDB.Common; using System.Reflection; using System.IO; using System.Threading.Tasks; using System.Threading; namespace RaptorDB { public class RaptorDBServer { public RaptorDBServer(int port, string DataPat...
mit
ermshiperete/LfMerge
src/LfMerge.Core/LanguageForge/Infrastructure/ILanguageForgeProxy.cs
489
// Copyright (c) 2016 SIL International // This software is licensed under the MIT license (http://opensource.org/licenses/MIT) using System.Collections.Generic; namespace LfMerge.Core.LanguageForge.Infrastructure { public interface ILanguageForgeProxy { string UpdateCustomFieldViews(string projectCode, List<Cust...
mit
Tania123/print
src/Store/NewsBundle/Tests/Controller/NewsControllerTest.php
396
<?php namespace Store\NewsBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class NewsControllerTest extends WebTestCase { public function testIndex() { $client = static::createClient(); $crawler = $client->request('GET', '/hello/Fabien'); $this->assertTr...
mit
teerasarn/project1
src/Five/AdminBundle/Resources/public/coco_theme/assets/js/pages/other-charts.js
598
var initCharts = function() { var charts = $('.percentage'); charts.easyPieChart({ animate: 1000, lineWidth: 5, barColor: "#eb5055", lineCap: "butt", size: "150", scaleColor: "transparent", onStep: function(from, to, percent) { $(this.el).find('.cpercent').text(Math.round(per...
mit
leonidboykov/whoami
whoami.go
269
package main import ( "net/http" "os" ) func main() { hostname, _ := os.Hostname() hostname += "\n" response := []byte(hostname) http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { w.Write(response) }) http.ListenAndServe(":8080", nil) }
mit
gnoling/passenger
lib/phusion_passenger/standalone/start_command.rb
23393
# Phusion Passenger - https://www.phusionpassenger.com/ # Copyright (c) 2010-2014 Phusion # # "Phusion Passenger" is a trademark of Hongli Lai & Ninh Bui. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal...
mit
deech/fltkhs
c-src/Fl_SliderC.cpp
22359
#include "Fl_SliderC.h" #ifdef __cplusplus EXPORT { Fl_DerivedSlider::Fl_DerivedSlider(int X, int Y, int W, int H, const char *l, fl_Widget_Virtual_Funcs* funcs) : Fl_Slider(X,Y,W,H,l){ overriddenFuncs = funcs; other_data = (void*)0; } Fl_DerivedSlider::Fl_DerivedSlider(int X, int Y, int W, int H, fl_Widg...
mit
githubmoros/myclinicsoft
application/views/include/sidebar.php
5795
<!-- Note: This width of the aside area can be adjusted through LESS/SASS variables --> <aside id="left-panel"> <!-- User info --> <div class="login-info"> <span> <!-- User image size is adjusted inside CSS, it should stay as is --> <a href="javascript:void(0);" id="show-shortcut" data-action="toggleShortc...
mit
innogames/gitlabhq
lib/gitlab/background_migration/copy_merge_request_target_project_to_merge_request_metrics.rb
848
# frozen_string_literal: true # rubocop:disable Style/Documentation module Gitlab module BackgroundMigration class CopyMergeRequestTargetProjectToMergeRequestMetrics extend ::Gitlab::Utils::Override def perform(start_id, stop_id) ActiveRecord::Base.connection.execute <<~SQL WITH me...
mit
nelango/ViralityAnalysis
src/main/python/RFwithPCA.py
1969
import pandas as pd import numpy as np import os import math from sklearn import datasets from sklearn.feature_selection import RFE from sklearn.linear_model import LogisticRegression from sklearn import datasets from sklearn import metrics # from sklearn.tree import DecisionTreeRegressor #RandomForestClassifier #Clas...
mit
MixedRealityLab/UoNPaperScraper
example.php
3450
<?php /** * Example usage file. * * @author Martin Porcheron <martin-uonpaperscraper@porcheron.uk> * @license MIT */ require 'vendor/autoload.php'; /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Timezone (PHP requirement) \date_default...
mit
vaidehimurarka/dsalgo
src/com/geeksforgeeks/arrays/Combinations.java
1310
package com.geeksforgeeks.arrays; import java.util.ArrayList; import java.util.Comparator; import java.util.List; /** * Created by Vaidehi Murarka on 2/5/2017. */ public class Combinations { public void printCombinations(int[] input){ if(input == null || input.length == 0){ return; ...
mit
judgie79/iGolfTournament
Golf.js/db/courseHoleValidator.js
808
 var Promise = require('promise'); var JaySchema = require('jayschema'); var js = new JaySchema(); var holeSchema = require('../schemas/hole.js'); var courseHoleSchema = require('../schemas/courseHole.js'); var Validator = function (hole) { this.hole = hole; }; Validator.prototype.validateSchema = function () ...
mit
wi2/calendar-example
components/front/layout.js
394
"use strict"; import React, {Component, cloneElement} from 'react' import Nav from './nav' export default class extends Component { render() { if(!this.initState) this.initState = global.__ReactInitState__ return ( <div> <Nav {...this.initState} /> {this.props.children && cloneEl...
mit
ISO-tech/sw-d8
web/2002-2/418/418_12_AntiNazis.php
3751
<html> <head> <title> Keep Nazis out of D.C.! </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <?php include "../../legacy-includes/Script.htmlf" ?> </head> <body bgcolor="#FFFFCC" text="000000" link="990000" vlink="660000" alink="003366" leftmargin="0" topmargin="0"> <table width="7...
mit
jods4/router
src/route-filters.js
1617
import {Container} from 'aurelia-dependency-injection'; export class RouteFilterContainer { static inject() {return [Container];} constructor(container : Container) { this.container = container; this.filters = { }; this.filterCache = { }; } addStep(name : string, step : any, index : number = -1) :...
mit
vanda/vam-fractal
src/components/groups/image-overlay/image-overlay.config.js
318
module.exports = { title: 'Image Overlay', label: 'Image Overlay', variants: [ { name: 'default', label: 'Default', context: {} }, { name: 'Cultural Sensitive Image', label: 'Cultural Sensitive Image', context: { offensive_image: true } } ] };
mit
daqcri/rayyan-mobile
www/js/services/rayyan.remote.service.js
11165
angular.module('rayyan.remote.service', ['rayyan.remote-config.service']) .factory('rayyanRemoteService', function($http, $localStorage, $ionicPlatform, $q, RAYYAN_API_CONFIG) { var config = $localStorage.config, accessToken = $localStorage.accessToken $http.defaults.headers.common['Content-Type'] = 'appl...
mit
github/codeql
javascript/ql/test/query-tests/Security/CWE-770/tst2.ts
187
import express from 'express'; import rateLimiter from './rateLimit'; const app = express(); app.use(rateLimiter); app.get('/', (req, res) => { res.sendFile('index.html'); // OK });
mit
uqlibrary/uqlapp-frontend
frontend/app/scripts/modules/uql.authors/controllers/helpController.js
980
/** * Help Controller functionality * * Displays a modal window with the help in it */ 'use strict'; angular.module('uql.authors') .controller('UqlAuthorsHelpCtrl', ['$uibModal', '$scope', 'UQL_CONFIG_AUTHORS', function ($modal, $scope, UQL_CONFIG_AUTHORS) { $scope.openHelp = function () { $modal.open(...
mit
phpchap/symfony-Kanban
lib/model/doctrine/Task.class.php
279
<?php /** * Task * * This class has been auto-generated by the Doctrine ORM Framework * * @package sf_sandbox * @subpackage model * @author Your name here * @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ */ class Task extends BaseTask { }
mit
yelite/RoomMonitor
db.py
297
#coding=utf-8 import os from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker MAIN_DIC = os.path.split(os.path.realpath(__file__))[0] DB_FILE = os.path.join(MAIN_DIC, 'data.db') engine = create_engine('sqlite:///{}'.format(DB_FILE)) Session = sessionmaker(bind=engine)
mit
pandora2000/elos
lib/elos/index/unindexable.rb
153
module Elos::Index::Unindexable extend ActiveSupport::Concern class_methods do def unindex initialize_for_reindex(true) end end end
mit
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_78/safe/CWE_78__backticks__func_floatval__find_size-interpretation_simple_quote.php
1212
<?php /* Safe sample input : backticks interpretation, reading the file /tmp/tainted.txt sanitize : use of floatval construction : interpretation with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute th...
mit
vbence86/fivenations
src/js/gui/AudioToggle.js
2107
/* global window, Phaser */ import Button from './Button'; const ns = window.fivenations; let muteAudioButton; let unmuteAudioButton; /** * Imitates a Toogle button to switch between Full-Screen and normal mode. * It incorporates two separate buttons laying on top of one another. */ class AudioToggle extends Phas...
mit
kev280/Frogger
Frogger/Game.cpp
3374
#include "Game.h" Game::Game() { // Créer nos objets Sprite* background = new Sprite("Images/Frogger Background.bmp"); background->SetPosition(0, 0); for (int i = 0; i < 5; i++) { int offset = 115; Car1* car1 = new Car1(); car1->SetPosition(570 - i * offset, 430); cars.push_back(car1); }...
mit
PieterD/glimmer
win/window.go
2421
package win import ( "runtime" "github.com/go-gl/gl/v2.1/gl" "github.com/go-gl/glfw/v3.2/glfw" ) // Represents a single window. type Window struct { id uint64 gw *glfw.Window closing chan struct{} closed chan struct{} pev chan interface{} ev chan interface{} } func (w *Window) run(f fun...
mit
mathiasbynens/unicode-data
5.0.0/blocks/Glagolitic-code-points.js
933
// All code points in the Glagolitic block as per Unicode v5.0.0: [ 0x2C00, 0x2C01, 0x2C02, 0x2C03, 0x2C04, 0x2C05, 0x2C06, 0x2C07, 0x2C08, 0x2C09, 0x2C0A, 0x2C0B, 0x2C0C, 0x2C0D, 0x2C0E, 0x2C0F, 0x2C10, 0x2C11, 0x2C12, 0x2C13, 0x2C14, 0x2C15, 0x2C16, 0x2C17, 0x2C18, 0x2C19, 0x2C1A, 0x2C1B, ...
mit
linkdd/sdl-game-engine
src/engine.cpp
4415
#include <sge/engine.hpp> using namespace std; namespace sge { Engine::Engine(Configuration &configuration) : _configuration(configuration), _sdl_init(make_shared<SDLInitializer>()), _sdl_img_init(make_shared<SDLImageInitializer>()), _sdl_mixer_init(make_shared<SDLMixerInitia...
mit
malcolmevans/Reel-Hoopers
client/templates/push/push.js
584
Template.pushForm.events({ 'submit': function(e){ e.preventDefault(); var template = Template.instance(); var title = template.$('input[name=title]').val(); var description = template.$('input[name=description]').val(); Push.send({ from: 'Reel Hoopers', title: title, text: descri...
mit
dechoD/Telerik-Homeworks
Module I Homeworks/Pre Course Homework/JavaScript Part 1/Strings/Problem8.js
1010
console.log('Problem 8'); console.log('test'); var resultString, sampleString; sampleString = '<p>Please visit <a href="http://academy.telerik. com">our site</a> to choose a training course. Also visit <a href="www.devbg.org">our forum</a> to discuss the courses.</p>'; function replaceAnchorTags(htmlString) { ...
mit
baviereteam/mapwriter-admin-client
src/main/java/net/baviereteam/minecraft/mapwriteradmin/interfaces/ServerInterface.java
6820
package net.baviereteam.minecraft.mapwriteradmin.interfaces; import java.util.HashMap; import java.util.List; import java.util.Map; import com.google.gson.Gson; import net.baviereteam.minecraft.mapwriteradmin.ToolBag; import net.baviereteam.minecraft.mapwriteradmin.domain.Server; import net.baviereteam.minecraft.map...
mit
siddharthbhagwan/devmate
test/dummy/config/application.rb
2571
require File.expand_path('../boot', __FILE__) require 'rails/all' Bundler.require(*Rails.groups) require "devmate" module Dummy class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/in...
mit
surfingRen/oceancode-web
src/main/java/cn/com/oceancode/service/TTReturnObj.java
557
package cn.com.oceancode.service; public class TTReturnObj { String msg = null; Throwable e = null; public TTReturnObj(String msg) { super(); this.msg = msg; } public TTReturnObj(String msg, Throwable e) { super(); this.msg = msg; this.e = e; } public String getMsg() { return msg; } public voi...
mit
SvitlanaShepitsena/remax16
app/scripts/sections/home/homeRoutes.js
225
(function () { 'use strict' angular.module('sections.home', ['ui.router']) .config(function ($stateProvider, $urlRouterProvider) { $stateProvider /*=home*/ //#state' }); })();
mit
alsatian-test/alsatian
packages/alsatian/core/utils/remove-item-by-index.ts
117
export function removeItemByIndex(array: Array<any>, index: number) { return array.filter((v, i) => i !== index); }
mit
porscheinformatik/selenium-components
src/main/java/at/porscheinformatik/seleniumcomponents/SeleniumComponentListFactory.java
4564
package at.porscheinformatik.seleniumcomponents; import static at.porscheinformatik.seleniumcomponents.SeleniumUtils.*; import java.util.Collections; import java.util.function.Predicate; import java.util.stream.Collectors; /** * Creates {@link SeleniumComponentList}s * * @author ham * @param <CHILD_TYPE> the typ...
mit
romainneutron/PHPExiftool
lib/PHPExiftool/Driver/Tag/Qualcomm/ASF5LumaFilter07.php
866
<?php /* * This file is part of PHPExifTool. * * (c) 2012 Romain Neutron <imprec@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\Qualcomm; use JMS\Serializer\Annotation\ExclusionPolicy...
mit
mplaine/xformsdb
src/fi/tkk/tml/xformsdb/handler/XFormsDBWidgetQueryAllHandler.java
7461
package fi.tkk.tml.xformsdb.handler; import javax.servlet.http.HttpSession; import nu.xom.Builder; import nu.xom.Document; import nu.xom.Node; import nu.xom.Nodes; import nu.xom.XPathContext; import org.apache.log4j.Level; import org.apache.log4j.Logger; import fi.tkk.tml.xformsdb.core.Constants; import fi.tkk.tml...
mit
googlestadia/renderdoc
util/test/demos/win32/win32_window.cpp
3559
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2018-2019 Baldur Karlsson * * 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 So...
mit
madcore-ai/containers
xlswriter/logger.py
422
import logging class Logger(object): def __init__(self, name): self.logger = logging.getLogger(name) if not len(self.logger.handlers): handler = logging.StreamHandler() formatter = logging.Formatter('[%(levelname)s]:%(name)s - %(message)s') handler.setFormatter(f...
mit
CheDream-Android/CheDream
app/src/main/java/org/chedream/android/database/RealmDream.java
6293
package org.chedream.android.database; import com.google.gson.annotations.SerializedName; import org.chedream.android.model.Dream; import io.realm.RealmList; import io.realm.RealmObject; import io.realm.annotations.PrimaryKey; import io.realm.annotations.RealmClass; /** * Created by Dante Allteran on 3/28/2015. *...
mit
team-diana/nucleo-dynamixel
docs/html/struct_t_i_m___i_c___init_type_def.js
464
var struct_t_i_m___i_c___init_type_def = [ [ "ICFilter", "struct_t_i_m___i_c___init_type_def.html#ae8432aa11b5495b252ac7ae299eabb32", null ], [ "ICPolarity", "struct_t_i_m___i_c___init_type_def.html#ab122383ebc0926c49a814546471da9b3", null ], [ "ICPrescaler", "struct_t_i_m___i_c___init_type_def.html#a452a4a...
mit
dechoD/Telerik-Homeworks
Practice Exams/C# Part II/2013.09.14M/Test/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("Te...
mit
hendrikdelarey/appcampus
AppCampus.Website/app/controllers/mainController.ts
2279
app.controller("mainController", function ($scope, $rootScope, $http, $cookies, $injector, userService, usersService, errorHandler) { var devicesService = <any>{}; $scope.newDevices = false; $scope.superAdmin = false; //userLogin(); function init() { userLogin(); checkDevices(...
mit
liuhuisheng/dhtmlx_web
assets/lib/dhtmlx/v403_pro/sources/dhtmlxGrid/codebase/ext/dhtmlxgrid_data.js
4906
/* Product Name: dhtmlxSuite Version: 4.0.3 Edition: Professional License: content of this file is covered by DHTMLX Commercial or Enterprise license. Usage without proper license is prohibited. To obtain it contact sales@dhtmlx.com Copyright UAB Dinamenta http://www.dhtmlx.com */ dhtmlXGridObject.prototype._proces...
mit
ITAAcademy/crmChat
src/main/java/com/intita/wschat/config/UserPermissionEvaluator.java
1542
package com.intita.wschat.config; import java.io.Serializable; import java.security.Permission; import java.util.Collection; import com.intita.wschat.domain.UserRole; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Configuration; import org.springframework....
mit
yaoxf/waterCup
xhxtbgxt_A5/xinhu_utf8_1.5.7/webmain/flow/input/inputjs/mode_daily.js
584
function initbodys(){ $(form('dt')).blur(function(){ //changetypes(); }); $(form('type')).change(function(){ changetypes(); }); $(form('enddt')).blur(function(){ //changetypes(); }); } function changetypes(){ var lx= form('type').value; if(lx==''||lx=='0'){ form('enddt').value=''; return; } var dt =...
mit
hmatuschek/linalg
test/gemvtest.hh
715
/* * This file is part of the Linalg project, a C++ interface to BLAS and LAPACK. * * The source-code is licensed under the terms of the MIT license, read LICENSE for more details. * * (c) 2011, 2012 Hannes Matuschek <hmatuschek at gmail dot com> */ #ifndef GEMVTEST_HH #define GEMVTEST_HH #include "unittest.hh"...
mit
blackcatcoin/blackcatcoin
src/version.cpp
2587
// Copyright (c) 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 <string> #include "version.h" // Name of client reported in the 'version' message. Report the same name // for both bitco...
mit
AntiSC2/TidyEngine
libTidyEngine/rect2d.hpp
1672
/* * TidyEngine * Copyright (c) 2018 Jakob Sinclair <sinclair.jakob@mailbox.org> * * 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 ...
mit
chris-peterson/Kekiri
src/Kekiri/Impl/Reporting/FeatureFileReportTarget.cs
2846
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.RegularExpressions; namespace Kekiri.Impl.Reporting { class FeatureFileReportTarget : IReportTarget { static readonly Lazy<FeatureFileReportTarget> _target = new Lazy<FeatureFileReportTarget>(() => new...
mit
HSOAutonomy/base
src/hso/autonomy/agent/decision/behavior/IBehavior.java
2145
/* Copyright 2008 - 2017 Hochschule Offenburg * For a list of authors see README.md * This software of HSOAutonomy is released under MIT License (see LICENSE). */ package hso.autonomy.agent.decision.behavior; /** * Interface to access all behaviors of the agent */ public interface IBehavior { /** Name for the no...
mit
dstuecken/Amazon-WD-Alerts
src/WdAlerts/Crawler/Crawler.php
11078
<?php namespace dstuecken\WdAlerts\Crawler; use dstuecken\Notify\NotificationCenter; use dstuecken\WdAlerts\Config; use GuzzleHttp\Client; use GuzzleHttp\Cookie\CookieJar; use GuzzleHttp\RequestOptions; use Monolog\Handler\NullHandler; use Monolog\Handler\StreamHandler; use Monolog\Logger; use Psr\Log\LoggerAwareInter...
mit
HighlandersFRC/fpga
beagleBoneBlack/netTablesTest/networktables2/WriteManager.cpp
3417
/* * WriteManager.cpp * * Created on: Sep 25, 2012 * Author: Mitchell Wills */ #include "networktables2/WriteManager.h" #include "networktables2/util/System.h" #include <iostream> WriteManager::WriteManager(FlushableOutgoingEntryReceiver& _receiver, NTThreadManager& _threadManager, AbstractNetworkTableEn...
mit
policygenius/athenaeum
src/molecules/formfields/GoogleAutoCompleteField/util/loadJS.js
462
function buildSrc({ link, key }) { if (link) return link; return `https://maps.googleapis.com/maps/api/js?key=${key}&libraries=places&callback=initMap`; } export default function loadJS({ link, key }) { const src = buildSrc({ link, key }); const ref = window.document.getElementsByTagName('script')[0]; cons...
mit
stopyoukid/DojoToTypescriptConverter
out/separate/dojox.widget.gauge.Range.d.ts
413
/// <reference path="Object.d.ts" /> /// <reference path="dijit._Widget.d.ts" /> /// <reference path="dijit._Contained.d.ts" /> module dojox.widget.gauge{ export class Range extends dijit._Widget { getParent () : any; _getSibling (which:String) : any; getPreviousSibling () : any; getNextSibling () : any; getIndexInPare...
mit
princeHyDentro/wetalk
assets/new-js/adding_staff.js
10388
var save_method; //for save method string var table; $(document).ready(function() { table = $('#staff-table').DataTable({ "processing": true, //Feature control the processing indicator. "serverSide": true, //Feature control DataTables' server-side processing mode. "order": []...
mit
wilson0xb4/strava-friend-breaker
friend_breaker/fb_app/views.py
3539
from __future__ import unicode_literals from __future__ import print_function import os from django.conf import settings from django.shortcuts import render, redirect from stravalib import Client from models import Athlete, ChallengedSegment from tasks import massive_test def index(request): access_token = requ...
mit
fgrid/iso20022
sese/TransferOutCancellationRequestV05.go
3247
package sese import ( "encoding/xml" "github.com/fgrid/iso20022" ) type Document00200105 struct { XMLName xml.Name `xml:"urn:iso:std:iso:20022:tech:xsd:sese.002.001.05 Document"` Message *TransferOutCancellationRequestV05 `xml:"TrfOutCxlReq"` } func (d *Document00200105) AddMessage() *...
mit
RamV13/Infection
src/com/ram/kainterview/InfectionViewImpl.java
5058
/** * Package for the infection implementations for the Khan Academy interview * * The MIT License (MIT) * * Copyright (c) 2016 Ram Vellanki * * 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 t...
mit
ammobinDOTca/ammobin-api
src/vendors.ts
3193
import { IVendor, Province } from './graphql-types' declare type Vendor = Omit<Omit<IVendor, '__typename'>, 'background'> // todo move other vendors here export const BACK_COUNTRY_SPORTS: Vendor = { name: 'Back Country Sports', link: 'backcountrysports.ca', location: 'Penticton', provinces: [Province.BC], l...
mit
Mishurin/itemslide.github.io
src/requestAnimationFrame.js
860
var lastTime = 0; var vendors = ['ms', 'moz', 'webkit', 'o']; for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame']; window.cancelAnimationFrame = window[vendors[x]+'CancelAnimationFrame'] || window[vendors[x]...
mit
sushihangover/Xamarin.Forms.Renderer.Tests
MessagingCenterAsync/Droid/MainActivity.cs
771
using System; using Android.App; using Android.Content; using Android.Content.PM; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; namespace MessagingCenterAsync.Droid { [Activity(Label = "MessagingCenterAsync.Droid", Icon = "@drawable/icon", Theme = "@style/MyTheme", MainLauncher...
mit
ozkuran/associationrulelearner
AssociationRuleLearner/Test/UnitTestItem.cs
2860
using System; using System.Collections.Generic; using Common; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Test { [TestClass] public class UnitTestItem { [TestMethod] public void Item_Creation_Default_Constructor_Name() { var item = new Item(); ...
mit
abique/mimosa
mimosa/tpl/ast/text.cc
280
#include "text.hh" namespace mimosa { namespace tpl { namespace ast { void Text::execute(stream::Stream::Ptr stream, const AbstractValue & /*value*/) const { stream->write(text_.data(), text_.size()); } } } }
mit
laravolt/indonesia
resources/views/kabupaten/index.blade.php
476
@extends( config('laravolt.indonesia.view.layout'), [ '__page' => [ 'title' => __('Kota/Kabupaten'), 'actions' => [ [ 'label' => __('Tambah'), 'class' => 'primary', 'icon' => 'plus circle', ...
mit
anatm/administrator
src/Dscorp/WarriorsBundle/Form/mapaType.php
914
<?php namespace Dscorp\WarriorsBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class mapaType extends AbstractType { /** * @param FormBuilderInterface $builder * @param array $options ...
mit
largem/Java101
base101/src/main/java/net/largem/java101/class101/Interface101.java
540
package net.largem.java101.class101; /** * Created by jamestan on 2016-07-12. */ interface IFoo { void fun(); } class Foo implements IFoo { final private String value; public Foo(String v) { value = v; } public void fun() { //do something here } public String getValue() { return value; } @Ove...
mit
IMEMS/gtbelib
Documentation/html/search/all_2.js
10652
var searchData= [ ['dac_5fcleardacs',['DAC_clearDACs',['../group___d_a_c__ad5754.html#ga2db4e1ba2471f68b497c3d6db1ab7726',1,'DAC_clearDACs(void):&#160;dac_ad5754.c'],['../group___d_a_c__ad5754.html#ga2db4e1ba2471f68b497c3d6db1ab7726',1,'DAC_clearDACs(void):&#160;dac_ad5754.c']]], ['dac_5fcleardacspin',['DAC_clearDA...
mit
kinkinweb/lhvb
vendor/sonata-project/ecommerce/src/Component/Customer/CustomerSelectorInterface.php
220
<?php namespace Sonata\Component\Customer; interface CustomerSelectorInterface { /** * Get the customer. * * @return \Sonata\Component\Customer\CustomerInterface */ public function get(); }
mit
samael205/ExcelPHP
PhpSpreadsheet/Calculation/Functions.php
19494
<?php namespace PhpOffice\PhpSpreadsheet\Calculation; /* MAX_VALUE */ define('MAX_VALUE', 1.2e308); /* 2 / PI */ define('M_2DIVPI', 0.63661977236758134307553505349006); /* MAX_ITERATIONS */ define('MAX_ITERATIONS', 256); /* PRECISION */ define('PRECISION', 8.88E-016); /** * Copyright (c) 2006 - 2016 PhpSpreadshe...
mit
jaredbeck/sexp2ruby
lib/sexp2ruby/node/ivar.rb
124
module Sexp2Ruby module Node class Ivar < Base def to_s(exp) exp.shift.to_s end end end end
mit
EdgarSun/Django-Demo
urls.py
1431
from django.conf.urls.defaults import * from django.conf import settings handler500 = 'djangotoolbox.errorviews.server_error' urlpatterns = patterns('', ('^_ah/warmup$', 'djangoappengine.views.warmup'), # ('^$', 'django.views.generic.simple.direct_to_template', # {'template': 'home.html'}), (r'^media/(...
mit
microTK/microTK
tests/append.js
2017
describe('append()', function() { beforeEach(function() { document.body.innerHTML = '<p id="idFixtrue">Some HTML</p><div class="classFixture"><span></span></div><div class="classFixture"></div><div class="classFixture"></div><span></span>'; }); afterEach(function() { document.body.innerHTML ...
mit
sscaff1/eng_tasks
Test/Case/Model/RoleTest.php
628
<?php App::uses('Role', 'Model'); /** * Role Test Case * */ class RoleTest extends CakeTestCase { /** * Fixtures * * @var array */ public $fixtures = array( 'app.role', 'app.user', 'app.work_time', 'app.task', 'app.mach_config', 'app.mach_model', 'app.task_type', 'app.status', 'app.issue', ...
mit
stephenfuqua/safnetDirectory
safnetDirectory/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("saf...
mit
ossim/lately
python_tutorial/python_tutorial/settings.py
2681
""" Django settings for python_tutorial project. Generated by 'django-admin startproject' using Django 1.8.5. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Bu...
mit
kpsuperplane/personal-website
versions/1.19.0/core/server/data/importer/importers/data/base.js
8232
'use strict'; const debug = require('ghost-ignition').debug('importer:base'), common = require('../../../../lib/common'), models = require('../../../../models'), _ = require('lodash'), Promise = require('bluebird'); class Base { constructor(options) { let self = this; this.modelNa...
mit
Frky/moon
webpack-prod.config.js
784
var path = require("path") var webpack = require('webpack') var BundleTracker = require('webpack-bundle-tracker') var config = { context: __dirname, entry: { 'app': './website/static/website/js/index', }, output: { path: path.resolve('./website/static/dist/'), filename: "[name].bundle.js" }, ...
mit
zmira/abremir.AllMyBricks
abremir.AllMyBricks.Data/Interfaces/IThemeRepository.cs
339
using abremir.AllMyBricks.Data.Models; using System.Collections.Generic; namespace abremir.AllMyBricks.Data.Interfaces { public interface IThemeRepository { Theme AddOrUpdate(Theme theme); Theme Get(string themeName); IEnumerable<Theme> All(); IEnumerable<Theme> AllForYear(shor...
mit
fs-opensource/nodejs-account-boilerplate
test/user-tests.js
4003
/** * Created by npeitek on 01/27/14. * * this file tests if the user handling works as expected */ // set up environment //var http = require('http'); //var app = require('../server/app')(); var should = require('should'); // get customer api var UserSchema = require('../server/schemas/users'); var userApi = req...
mit
HKMOpen/VendingMachine
vendSDK/demo/src/main/java/com/hkmvend/apiclitest/mosaic/Block.java
1120
package com.hkmvend.apiclitest.mosaic; /** * Created by zJJ on 1/23/2016. */ import java.util.ArrayList; public class Block { // Identifier to recognize the block int id; // The left edge of the block public double x1; // The top edge of the block public double y1; // The right edge of...
mit
indigotech/graphql-schema-decorator
examples/apollo-server/src/schema/index.ts
462
import { Query, Mutation, Schema, schemaFactory, Subscription } from 'graphql-schema-decorator'; import UserQuery from './user.query'; import UserMutation from './user.mutation'; import UserSubscription from './user.subscription'; @Schema() class RootSchema { @Query() UserQuery: UserQuery; @Mutation() UserMutatio...
mit
dockyard/ember-cart
addon/instance-initializers/cart.js
675
import Ember from 'ember'; const { A } = Ember; export function initialize(appInstance) { let CartService = appInstance._lookupFactory('service:cart'); let payload; if (window.localStorage.getItem('cart')) { payload = window.localStorage.getItem('cart'); payload = JSON.parse(payload); } let car...
mit
DimitrisVlachos/INTEL-AYC-2013SUMMER--2ND-PLACE-SOLUTION
includes/types.hpp
1347
/* Builtin & custom types Author : Dimitris Vlachos (DimitrisV22@gmail.com @ github.com/DimitrisVlachos) */ #ifndef __types__hpp__ #define __types__hpp__ #undef __USE_MAPPED_IO__ #include <stdint.h> #include <stddef.h> #include <iostream> #include <string> #include <cstdlib> #include <cstring> #include <cmath> #in...
mit
voidpp/PCA9685-driver-http
pca9685_driver_http/http.py
296
import logging import json logger = logging.getLogger(__name__) class HttpException(Exception): def __init__(self, message, code): super(HttpException, self).__init__(message) self.code = code def create_response(data, code = 200): return json.dumps(data) + "\n", code
mit
jpanikulam/experiments
lanczos/newtonian_object.hh
485
#pragma once #include "lanczos/rigid_body.hh" namespace lanczos { struct NewtonianObject { RigidBody body; double mass_kg = 1.0; // pkg --> "per kilogram" Eigen::Matrix3d inertia_pkg = Eigen::Matrix3d::Identity(); RigidBodySimulationConfig rigid_body_cfg = {}; }; NewtonianObject simulate(const NewtonianO...
mit
jonaustin/craigslist-housing-mapper
cake/tests/cases/libs/view/helpers/rss.test.php
9917
<?php /* SVN FILE: $Id: rss.test.php 7296 2008-06-27 09:09:03Z gwoo $ */ /** * Short description for file. * * Long description for file * * PHP versions 4 and 5 * * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite> * Copyright 2005-2008, Cake Software Foundation, Inc. * 1785 E. S...
mit
F5Networks/f5-icontrol-library-dotnet
iControl/Interfaces/System/SystemHAGroup.cs
64419
namespace iControl { using System.Xml.Serialization; using System.Web.Services; using System.ComponentModel; using System.Web.Services.Protocols; using System; using System.Diagnostics; /// <remarks/> [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepTh...
mit
dejanr77/demo_blog
app/LaravelFilemanager/controllers/DownloadController.php
473
<?php namespace App\LaravelFilemanager\controllers; use Illuminate\Support\Facades\Input; use Illuminate\Support\Facades\Response; /** * Class DownloadController * @package Unisharp\Laravelfilemanager\controllers */ class DownloadController extends LfmController { /** * Download a file * * @ret...
mit
mlaval/optimize-angular-app
app/list/list.module.ts
465
import {NgModule} from '@angular/core'; import {Routes, RouterModule} from '@angular/router'; import {NgbPaginationModule, NgbPaginationConfig} from '@ng-bootstrap/ng-bootstrap/pagination/pagination.module'; import {List} from './list'; const routes: Routes = [ {path: '', component: List}, ]; @NgModule({ import...
mit
midnightLuke/php-units-of-measure-bundle
Tests/Doctrine/Types/AccelerationTypeTest.php
772
<?php /* * This file is part of the MidnightLukePhpUnitsOfMeasureBundle package. * * (c) Luke Bainbridge <http://www.lukebainbridge.ca/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace MidnightLuke\PhpUnitsOfMeasureBund...
mit
thw17/NextGenUtilities
fasta_utils/Reduce_contigs.py
6461
from __future__ import print_function import argparse from itertools import groupby import subprocess import sys def main(): """ Main Function """ args = parse_args() if args.wrap_length != "None": wrap = int(args.wrap_length) else: wrap = None # Check bioawk install bioawk = args.bioawk a = subprocess.c...
mit
klump/neindb
app/models/component/cpu.rb
501
class Component::Cpu < Component store_accessor :properties, :speed_mhz, :cores, :threads_per_core, :extensions validates :speed_mhz, presence: true, numericality: true validates :cores, presence: true, numericality: {only_integer: true} validates :threads_per_core, presence: true, numericality: {only_integer:...
mit
Raul-diffindo/Django-Matcher
setup.py
1506
from distutils.core import setup import os def get_packages(package): """ Return root package & all sub-packages. """ return [dirpath for dirpath, dirnames, filenames in os.walk(package) if os.path.exists(os.path.join(dirpath, '__init__.py'))] def get_package_data(package): ...
mit
surenm/cookbooks
dw/recipes/upgrade_pip.rb
299
Chef::Log.info("Updating pip to the latest version") execute "/usr/bin/pip install -U pip" do user "root" only_if { ::File.exists?('/usr/bin/pip')} action :run end execute "/usr/local/bin/pip install -U pip" do user "root" only_if { ::File.exists?('/usr/local/bin/pip')} action :run end
mit
sandeeplinux/testing
app/common/app-directives/dob/dob.directive.js
2725
+app.directive('dob', function () { return { restrict: 'EA', scope: { birthDate: '=birthDate' }, templateUrl: 'common/app-directives/dob/dob.view.html', controller: function ($scope) { $scope.days = []; $scope.dob = {}; $scope.dob.year = ''; $scope.dob.month ...
mit