repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
QOXCorp/exengine | eefx/common/eema.php | 1818 | <?php
/**
* QOX ExEngine Message Agent (formerly Debugger)
*
* Programa: Giancarlo Chiappe Aguilar
* Fecha/Hora: 25/04/14 12:24 PM
* (C) 2014 Todos los derechos reservados.
*/
/**
@file eema.php
@author Giancarlo Chiappe <gchiappe@qox-corp.com> <gchiappe@outlook.com.pe>
@version 2.0.0.3
@section DES... | mit |
mekomsolutions/openmrs-module-visitdocumentsui | api/src/main/java/org/openmrs/module/attachments/obs/AbstractAttachmentHandler.java | 6654 | package org.openmrs.module.attachments.obs;
import static org.openmrs.module.attachments.AttachmentsConstants.ATT_VIEW_ORIGINAL;
import static org.openmrs.module.attachments.AttachmentsConstants.ATT_VIEW_THUMBNAIL;
import static org.openmrs.module.attachments.obs.ImageAttachmentHandler.THUMBNAIL_MAX_HEIGHT;
import sta... | mit |
orlin369/ELM327_Driver | DiO_CS_ELM327/Elm327/Elm327/Properties/AssemblyInfo.cs | 1406 | 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("El... | mit |
tpoikela/battles | main.electron.js | 1689 |
const { app, BrowserWindow } = require('electron');
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let win;
function createWindow() {
// Create the browser window.
win = new BrowserWindow({ wid... | mit |
lynnsamuelson/WhenWeGetMoney | WhenWeGetMoney/Models/IdentityModels.cs | 1213 | using System.Data.Entity;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
namespace WhenWeGetMoney.Models
{
// You can add profile data for the user by adding more properties to your ApplicationUser class, please visit h... | mit |
coscms/xweb | examples/autoaction.go | 340 | package main
import (
"github.com/coscms/xweb"
)
type MainAction struct {
*xweb.Action
hello xweb.Mapper `xweb:"/(.*)"`
}
func (c *MainAction) Hello(world string) {
c.Write("hello %v", world)
}
func main() {
xweb.AutoAction(&MainAction{})
xweb.Run("0.0.0.0:9999")
//visit http://localhost:... | mit |
elyga/Video-Camera-Tricks | Source/AForge.NET Framework-2.1.3/Samples/Imaging/FiltersDemo/MainForm.cs | 36379 | // Image Processing filters demo
// AForge.NET framework
// http://www.aforgenet.com/framework/
//
// Copyright © Andrew Kirillov, 2005-2009
// andrew.kirillov@aforgenet.com
//
using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Collections;
using System.ComponentModel;
using Sy... | mit |
Oxyless/highcharts-export-image | lib/highcharts.com/js/parts/VmlRenderer.js | 28885 |
/* ****************************************************************************
* *
* START OF INTERNET EXPLORER <= 8 SPECIFIC CODE *
* ... | mit |
jaimeiniesta/planetoid | test/functional/welcome_controller_test.rb | 228 | require 'test_helper'
class WelcomeControllerTest < ActionController::TestCase
def test_should_get_index
get :index
assert assigns(:users)
assert assigns(:entries)
assert_response :success
end
end
| mit |
broughcut/openschema | output_files/models/rails/ota_fee_policy.rb | 136 | class OtaFeePolicy < ActiveRecord::Base
set_table_name :ota_fee_policy
belongs_to :ota_fee_policies, :foreign_key => :parent_id
end
| mit |
claws/prometheus_metrics_proto | examples/demo.py | 4865 | #!/usr/bin/env python
"""
This script demonstrates the high level helper functions used to assist
creating various metrics kinds as well as how to encode the metrics into
a form that can be sent to Prometheus server.
"""
import prometheus_metrics_proto as pmp
def main():
# Define some labels that we want added ... | mit |
KirillOsenkov/MyOwnSearchEngine | src/MyOwnSearchEngine/Query/Structure/SeparatedList.cs | 2351 | using System;
using System.Collections.Generic;
using System.Linq;
namespace MyOwnSearchEngine
{
public class SeparatedList : IStructureParser
{
public IReadOnlyList<object> Parts { get; }
public char SeparatorChar { get; }
private char[] separatorCharArray;
publ... | mit |
rocky/trepanjs | lib/columnize.js | 5022 | /* Return compact set of columns as a string with newlines for an
array of strings.
Adapted my python columnize package
*/
var extend = require('util')._extend;
var util = require('util');
function lpad(str, size) {
if (str.length >= size) return str;
var suffix = Array(size - str.length + 1).join(' ');
... | mit |
LibertyLeo/Android-Approach | Demos/GeoQuiz/SDKVersion/app/src/main/java/com/libertyleo/geoquiz/CheatActivity.java | 3072 | package com.libertyleo.geoquiz;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import andro... | mit |
benotter/TurnSignal | Assets/OVRLay/Scripts/Unity_Overlay.cs | 15593 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using Valve.VR;
public class Unity_Overlay : MonoBehaviour
{
public enum OverlayTrackedDevice
{
None,
HMD,
RightHand,
LeftHand,
CustomIndex
}
[Space(10)]
public stri... | mit |
asiaon123/examples | examples-java/examples-java-annotation/src/main/java/gyz/examples/java/annotation/AnnotatedClass.java | 172 | package gyz.examples.java.annotation;
/**
* Created by YaZhou.Gu on 2018/5/3.
*/
@TestAnnotation(id = 1, name = "AnnotatedClassName")
public class AnnotatedClass {
}
| mit |
MichaeGon/java | test/HelloWorld.java | 111 | public class HelloWorld {
public static void main(String[] args) {
System.out.println("hello, world");
}
}
| mit |
scalalab/scalalab | source/src/main/java/SysUtils/ConsoleWindow.java | 5116 | package SysUtils;
import scalaExec.Interpreter.GlobalValues;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
import javax.swing.text.DefaultCaret;
import javax.swing.text.DefaultEditorKit;
// provides convenient output for the results of the scripting commands
// also, we redirec... | mit |
MasterAbdoTGM50/Wanderer | src/main/java/matgm50/wanderer/lib/ItemLib.java | 469 | package matgm50.wanderer.lib;
public class ItemLib {
public static final String SCROLL_NAME = "itemScroll";
public static final String SHEARS_NAME = "itemStoneShears";
public static final String SOUP_NAME = "itemGrassSoup";
public static final String NAMELESS_BLADE_NAME = "itemNamelessBlade";
publ... | mit |
deanishe/alfred-searchio | src/lib/searchio/cmd/search.py | 4794 | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2016 Dean Jackson <deanishe@deanishe.net>
#
# MIT Licence. See http://opensource.org/licenses/MIT
#
# Created on 2016-12-17
#
"""searchio search [options] <search> <query>
Ask specified engine for suggestions for <query>.
<search> should be the UID of a search... | mit |
aliceice/act | src/main/java/de/aice/act/Fork.java | 2609 | package de.aice.act;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Request fork.
*
* @author Eléna Ihde-Simon (elena.ihde-simon@posteo.de)
* @version $Id$
*/
public interface Fork {
/**
* Route request. If requ... | mit |
Mindmancer/best-practices | Mindmancer.BestPractices.Common.Logging/LoggingScopeType.cs | 378 | namespace Mindmancer.Common.Logging.LoggingExtensions
{
public enum LoggingScopeType
{
Activity = 0,
Constructing = 1,
Starting = 2,
Stopping = 3,
Disposing = 4,
StartingWorker = 5,
Worker = 6,
StoppingWorker = 7,
Configur... | mit |
maxxst/latex-sanitizer | encodings/textcomp.js | 797 | module.exports = [
162, // ¢
163, // £
164, // ¤
165, // ¥
166, // ¦
167, // §
169, // ©
170, // ª
174, // ®
176, // °
178, // ²
179, // ³
181, // µ
182, // ¶
183, // ·
185, // ¹
186, // º
188, ... | mit |
facto/swappy | spec/swappy/app_config_spec.rb | 498 | require 'spec_helper'
describe Swappy::AppConfig do
let(:options) do
{
path: path
}
end
let(:path) { 'some_path' }
let(:app_config) { described_class.new(options) }
it 'includes Enumerable' do
expect(app_config).to respond_to(:each)
end
describe '#initialize' do
it 'sets the pat... | mit |
juanda99/arasaac-frontend | app/containers/LSE/Wrapper.js | 318 | import styled from 'styled-components'
import media from 'utils/mediaqueries'
const Div = styled.div`
display: flex;
flex-wrap: wrap;
justifyContent: flexStart;
${media.sm} {
flex-wrap: nowrap;
}
${media.md} {
flex-wrap: nowrap;
}
${media.lg} {
flex-wrap: nowrap;
}
`
export default Div
| mit |
rsinger/ruby-frbr | lib/frbr/expression.rb | 3650 | module FRBR
module Expression
include FRBR::Group1
include FRBR::Group3
attr_reader :realizers, :realization_of, :embodiments
alias :work :realization_of
alias :manifestations :embodiments
def is_realization_of(work)
raise ArgumentError, "Must be a realization of a work" unless... | mit |
agitnaeta/123qwe | application/views/front/login.php | 2114 | <!DOCTYPE html>
<html>
<head>
<title>Pixtox</title>
<link rel="icon" type="image/png" href="<?=base_url();?>assets/img/ico.png"/>
<link href="<?=base_url();?>assets/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="<?=base_url();?>assets/fa/css/font-awesome.min.css">
<style type="text/css... | mit |
snatera15/generator-webapp-material | test/babel.js | 603 | 'use strict';
var path = require('path');
var helpers = require('yeoman-generator').test;
var assert = require('yeoman-assert');
describe('babel', function () {
before(function (done) {
helpers.run(path.join(__dirname, '../app'))
.inDir(path.join(__dirname, '.tmp'))
.withOptions({'skip-install': true... | mit |
christopheschwyzer/CM | library/CM/App.js | 32440 | /**
* @class CM_App
* @extends CM_Class_Abstract
*/
var CM_App = CM_Class_Abstract.extend({
/** @type Object **/
views: {},
/** @type {Object|Null} **/
viewer: null,
/** @type Object **/
options: {},
ready: function() {
this.dom.ready();
this.window.ready();
this.date.ready();
this.t... | mit |
CloudBrewery/docrane | docrane/container.py | 3295 | import logging
from docrane import util
from docrane.exceptions import ImageNotFoundError
LOG = logging.getLogger("docrane")
class Container(object):
def __init__(self, name, params, images_watcher):
self.name = name
self.params = params
self.docker_params = {}
self.images_watch... | mit |
jsxc/jsxc | src/ui/dialogs/multiUserInvite.ts | 721 | import Dialog from '../Dialog';
import MultiUserContact from '../../MultiUserContact';
import JID from '../../JID';
let multiUserInvite = require('../../../template/multiUserInvite.hbs');
export default function (multiUserContact: MultiUserContact) {
let content = multiUserInvite({});
let dialog = new Dialog(c... | mit |
ysden123/poc | Qvx/QvxConnector1/Program.cs | 523 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Webpals.Qvx.QvxConnector1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("==>Main");
//new CvTestServer().Run("parentStri... | mit |
reidiculous/actionwebservice-client | lib/action_web_service/wsdl/portType.rb | 1466 | # WSDL4R - WSDL portType definition.
# Copyright (C) 2002, 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
# This program is copyrighted free software by NAKAMURA, Hiroshi. You can
# redistribute it and/or modify it under the same terms of Ruby's license;
# either the dual license version in 2003, or any later version.... | mit |
stad-team/stad-mixtas | mixtas/assets/bundles/main-367ffb1123aaf48f5b5d.js | 702788 | /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModu... | mit |
donbabbeo/ds4ui | DS4Tool/ViewModels/MainWindowViewModel.cs | 9240 | using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Linq;
using System.Windows.Input;
using CommunicationLibrary;
using ConfigurationLibrary;
using ControllerConfigurationLibrary;
using CoreLibrary;
using MessengerLibrary;
using NotifyIconLibrary;
using ThemeL... | mit |
Ringtail1402/mockingbird | Mockingbird/ModelService/CounterPartyService.php | 1498 | <?php
namespace Mockingbird\ModelService;
use Silex\Application;
use Anthem\Propel\ModelService\PropelModelService;
/**
* Model service for CounterParty model.
*/
class CounterPartyService extends PropelModelService
{
/**
* @var Application
*/
protected $app;
public function __construct(Application $a... | mit |
brandonxiang/vue-leaflet-mobile | src/locales/locales.js | 1126 | export default {
en: {
Language: 'Language',
Map: 'Map',
'Discovery': 'Discovery',
'Setting': 'Setting',
'Shenzhen': 'Shenzhen',
Beijing: 'Beijing',
Shanghai: 'Shanghai',
'Guangzhou': 'Guangzhou',
Hangzhou: 'Hangzhou',
Xiamen: 'Xiamen',
Haerbin: 'Haerbin',
'Xian': 'Xian... | mit |
ChuckJHardy/ruby-auth0 | spec/lib/auth0/api/v2/blacklists_spec.rb | 857 | require "spec_helper"
describe Auth0::Api::V2::Blacklists do
before :all do
dummy_instance = DummyClass.new
dummy_instance.extend(Auth0::Api::V2::Blacklists)
@instance = dummy_instance
end
context ".blacklisted_tokens" do
it {expect(@instance).to respond_to(:blacklisted_tokens)}
it "is expect... | mit |
nirgit/bitlyResolverCE | src/messageBox.js | 829 | 'use strict';
function getStatusMessageCSS() {
return {
'background': '#ffffff',
'color': '#000000',
'border': '1px solid #000000',
'border-radius': '5px',
'padding': '10px',
'position': 'fixed',
'opacity': 0,
'transition': '.3s ease all',
'bo... | mit |
TheBlueRider/mypage_nodejs | public/js/map.js | 4392 | function initMap() {
"use strict"
var map = new google.maps.Map(document.getElementById('map'), {
center: {lat: 0, lng: 0},
zoom: 2,
mapTypeControlOptions: {
mapTypeIds: [
google.maps.MapTypeId.ROADMAP,
google.maps.MapTypeId.SATELLITE
],
position: google.maps.ControlPos... | mit |
romadur-js/romadur | test/unit/fs/config.test.js | 3371 | 'use strict';
let async = require('./../../../lib/utils/async');
let config = require('./../../../lib/fs/config');
let errors = require('./../../../lib/utils/errors');
let expect = require('chai').expect;
let fs = require('fs');
let path = require('path');
let sinon = require('sinon');
describe('config utils', functi... | mit |
sim642/simbot | plugins/reddit.js | 21564 | var request = require("request");
var url = require("url");
var WebSocket = require("ws");
function RedditPlugin(bot) {
var self = this;
self.name = "reddit";
self.help = "Reddit plugin";
self.depend = ["cmd", "ignore", "date", "bitly", "util"];
self.urlRe = /\b(https?|ftp):\/\/[^\s\/$.?#].[^\s]*\.[^\s]*\b/i;
s... | mit |
TenthEstate/Newspaper16 | application/models/transition_model.php | 1739 | <?php
class Transition_Model extends CI_Model {
function replaceImages() {
$this->load->model("article_class");
$this->load->helper("simple_html_dom");
$this->load->model("image_class");
$this->load->model("image_model");
$sql = "SELECT * FROM article;";
$query = $... | mit |
iluminar/goodwork | database/migrations/2017_02_15_045808_create_messages_table.php | 1138 | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateMessagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('messages', fun... | mit |
craftworkz/ucll-workshop-jhipster | jhipster-demo/src/main/java/be/craftworkz/ucll/repository/CustomAuditEventRepository.java | 2502 | package be.craftworkz.ucll.repository;
import be.craftworkz.ucll.config.audit.AuditEventConverter;
import be.craftworkz.ucll.domain.PersistentAuditEvent;
import org.joda.time.LocalDateTime;
import org.springframework.boot.actuate.audit.AuditEvent;
import org.springframework.boot.actuate.audit.AuditEventRepository;
imp... | mit |
plankton-food/Plankton | src/qt/locale/bitcoin_cs.ts | 118766 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="cs" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Plankton</source>
<translation type="unfinished"/>
</message>
<message>
<location line=... | mit |
alchemy-fr/resource-component | src/ResourceUri.php | 4242 | <?php
/*
* This file is part of alchemy/resource-component.
*
* (c) Alchemy <info@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Alchemy\Resource;
final class ResourceUri
{
const DEFAULT_PROTOCOL = 'f... | mit |
christiancannata/velaforfun | src/BlogBundle/Entity/Articolo.php | 25935 | <?php
// src/Blogger/BlogBundle/Entity/Blog.php
namespace BlogBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\ManyToOne;
use Doctrine\ORM\Mapping\OneToOne;
use Doctrine\ORM\Mapping\JoinColumn;
use Doctrine\ORM\Mapping\OneToMany;
use Eko\FeedBundle\Item\Writer\ItemInterface;
use Gedmo\Mapping\... | mit |
VaskoViktorov/SoftUni-Homework | 01. Programming Basics - 20.08.2016/Other unsorted/point in rectangle.cs | 747 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication34
{
class Program
{
static void Main(string[] args)
{
var x1 = decimal.Parse(Console.ReadLine());
var y1 = decimal.Parse(Cons... | mit |
seanohalpin/doodle | spec/namespace_spec.rb | 927 | require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper.rb'))
require 'doodle/xml'
describe Doodle, 'XML' do
temporary_constant :Base, :City, :Address, :Country do
before :each do
@country_example = %[<Address geo:where="home"><geo:City>London<Country>UK</Country></geo:City></Address>]
... | mit |
elmarquez/four-angular | conf/grunt/watch.js | 292 | module.exports = {
livereload: {
options: {
livereload: '<%= connect.options.livereload %>'
},
files: [
'conf/manifest.*',
'src/**/*',
'test/**/*'
],
tasks: ['compile']
},
sass: {
files: ['src/main/sass/**/*'],
tasks: ['sass']
}
};
| mit |
finke-ba/imap | src/main/java/com/imap/domain/User.java | 3367 | package com.imap.domain;
import java.util.List;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
/**
* Объект, содержащий информацию о пользователе.
*
* @author ... | mit |
dchansen/protonCT | proton/hostFilteredProtonReconstruct.cpp | 4851 | /*
* protonReconstruct.cpp
*
* Created on: Dec 22, 2011
* Author: u051747
*/
#include <iostream>
#include "cuNDArray.h"
#include "hoCuNDArray.h"
#include "cuNDArray_fileio.h"
#include "splineBackprojectionOperator.h"
#include "hoCuGPBBSolver.h"
#include "hdf5_utils.h"
#include <boost/program_options.hpp>... | mit |
italinux/Authentication | lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Relation/Parser/Exception.php | 1385 | <?php
/*
* $Id$
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CO... | mit |
githubsvn/local.tyhv | app/cache/prod/twig/63/65/b4d1a1244fd587844a63ac69d8fc.php | 1049 | <?php
/* SMAdminBundle::layout.html.twig */
class __TwigTemplate_6365b4d1a1244fd587844a63ac69d8fc extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = $this->env->loadTemplate("SMAdminBundle::admin.html.twig");
$this->... | mit |
janie-t/janie-t.github.io | js/main.js | 5295 | (function($) {
"use strict";
$(window).on("load", function() { // makes sure the whole site is loaded
//preloader
$("#status").fadeOut(); // will first fade out the loading animation
$("#preloader").delay(450).fadeOut("slow"); // will fade out the white DIV that covers the website.
//masonry
$(... | mit |
CodeYellowBV/JsSIP | src/Timers.js | 402 | (function(JsSIP) {
var Timers,
T1 = 500,
T2 = 4000,
T4 = 5000;
Timers = {
T1: T1,
T2: T2,
T4: T4,
TIMER_B: 64 * T1,
TIMER_D: 0 * T1,
TIMER_F: 64 * T1,
TIMER_H: 64 * T1,
TIMER_I: 0 * T1,
TIMER_J: 0 * T1,
TIMER_K: 0 * T4,
TIMER_L: 64 * T1,
TIMER_M: 64 * T1,
PROVISIONAL_RESPONSE_INTERV... | mit |
btakita/rubyspec | 1.8/library/net/ftp/system_spec.rb | 169 | require File.dirname(__FILE__) + '/../../../spec_helper'
require 'net/ftp'
describe "Net::FTP#system" do
it "needs to be reviewed for spec completeness" do
end
end
| mit |
ghaki/ghaki-report | lib/ghaki/report/errors.rb | 74 | module Ghaki #:nodoc:
class ReportContentError < RuntimeError; end
end
| mit |
parazoa/armazon | site/www/_assets/config.rb | 850 | # Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "_css"
sass_dir = "_sass"
images_dir = "_css/_img"
javascripts_dir = "_js"
# You can select your preferred output style here (can be overridden via the command line):
# output_style = :expand... | mit |
Olical/fabric.js | lib/centering_guidelines.js | 2433 | /**
* Augments canvas by assigning to `onObjectMove` and `onAfterRender`.
* This kind of sucks because other code using those methods will stop functioning.
* Need to fix it by replacing callbacks with pub/sub kind of subscription model.
* (or maybe use existing fabric.util.fire/observe (if it won't be too slow))
... | mit |
javagl/Flow | flow-module-definitions-basic/src/main/java/de/javagl/flow/modules/basic/selectable/j/SelectableLongModuleView.java | 3166 | /*
* www.javagl.de - Flow
*
* Copyright (c) 2012-2017 Marco Hutter - http://www.javagl.de
*/
package de.javagl.flow.modules.basic.selectable.j;
import java.awt.BorderLayout;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import javax.swing.JFormattedTextField;
import... | mit |
RetailMeNot/shield | src/main/scala/shield/kvstore/BreakerStore.scala | 1384 | package shield.kvstore
import akka.pattern.CircuitBreaker
import com.typesafe.scalalogging.LazyLogging
import spray.http.HttpResponse
import scala.concurrent.Future
class BreakerStore(id: String, backer: KVStore, breaker: CircuitBreaker) extends KVStore with LazyLogging {
val cb = breaker
.onOpen(logger.warn(s... | mit |
TfLlu/TfL-API | src/service/weather/airquality.js | 3120 | import * as aev from '../../source/weather/aev';
import config from '../../config';
import {redis, redisPubSub} from '../../redis';
import Boom from 'boom';
const CACHE_NAME = config('NAME_VERSION', true) + '_cache_weather_airquality';
const STREAM_NAME = config('NAME_VERSION... | mit |
Condition17/MyRecipes-backend | src/main/java/api/v1/Dao/RecipeDAO.java | 430 | package api.v1.Dao;
import api.v1.Models.Recipe;
import java.util.List;
import java.util.Set;
public interface RecipeDAO {
List listRecipes(Integer initial_row, Integer rows);
Recipe getRecipeByUuid(String uuid);
Recipe getRecipePreview(String uuid);
List searchRecipesByKeyword( String keyword, Integer... | mit |
gustavomazevedo/tbackup-client | client/models/schedule/RRule.py | 2972 | # -*- coding: utf-8 -*-
#from dateutil import rrule
from django.db import models
from django.utils.translation import ugettext_lazy as _
class RRule(models.Model):
"""
Adapted from django-schedule project:
https://github.com/thauber/django-schedule
This defines a rule by which an event will recu... | mit |
junzh0u/poj-solutions | 2166/2184261_AC_663MS_340K.cpp | 351 | #include<iostream>
using namespace std;
void main()
{
int iNum,iArray[50001],i,j;
cin>>iNum;
for(i=1;i<=iNum;i++)
iArray[i]=i;
for(i=2;i<iNum;i++)
{
swap(iArray[i],iArray[1]);
for(j=i;j>1;j/=2)
swap(iArray[j],iArray[j/2]);
}
swap(iArray[iNum],iArray[1]);
for(i=1;i<=iNum;i++)
cout<<i... | mit |
icoxfog417/TravelPenguinBot | linebot/models/line_response.py | 2345 | from linebot.models.line_types import ContentType
class LineResponse():
def __init__(self, to_mids, content=None):
self.to_mids = to_mids if isinstance(to_mids, (list, tuple)) else [to_mids]
self.to_channel = 1383378250 # Fixed value
self.event_type = "138311608800106203" # Fixed value
... | mit |
forxer/okatea | Okatea/Themes/DefaultTheme/Templates/users/register/default/template.php | 7978 | <?php
/*
* This file is part of Okatea.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Okatea\Tao\Forms\Statics\FormElements as form;
# title tag
$okt->page->addTitleTag(__('c_c_auth_register'));
# titre de la page
$okt->page-... | mit |
cladera/private-theater | theater-app/test/spec/directives/admin-dashboard-nav.js | 530 | 'use strict';
describe('Directive: adminDashboardNav', function () {
// load the directive's module
beforeEach(module('privateTheaterApp'));
var element,
scope;
beforeEach(inject(function ($rootScope) {
scope = $rootScope.$new();
}));
it('should make hidden element visible', inject(function ($c... | mit |
jflam/rubyspec | 1.8/core/env/clear_spec.rb | 314 | require File.dirname(__FILE__) + '/../../spec_helper'
require File.dirname(__FILE__) + '/fixtures/classes'
describe "ENV.clear" do
it "deletes all environment variables" do
orig = ENV.to_hash
begin
ENV.clear
EnvSpecs.get_env.should == {}
ensure
ENV.replace orig
end
end
end
| mit |
simplabs/excellent | spec/unit/checks/flog_block_check_spec.rb | 666 | require 'spec_helper'
describe Simplabs::Excellent::Checks::FlogBlockCheck do
before do
@excellent = Simplabs::Excellent::Runner.new([:FlogBlockCheck => { :threshold => 0 }])
end
describe '#evaluate' do
it 'should calculate the score correctly' do
code = <<-END
method_name do
p... | mit |
nagordon/mechpy | mechpy/math.py | 6260 | # coding: utf-8
'''
Module for mathematical tools for mechanical engineering stuff
'''
__author__ = 'Neal Gordon <nealagordon@gmail.com>'
__date__ = '2016-09-06'
import sympy as sp
import numpy as np
import matplotlib.pyplot as mp
from pprint import pprint
#np.set_printoptions(edgeitems=3,linewidth=... | mit |
ldaptools/ldaptools | src/LdapTools/Connection/AD/ExchangeRoleTypes.php | 1355 | <?php
/**
* This file is part of the LdapTools package.
*
* (c) Chad Sikorra <Chad.Sikorra@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace LdapTools\Connection\AD;
trigger_error('The LdapTools\Connection\AD\E... | mit |
mitaka00/SoftUni | Programing Fundamentals/21-Dictionaries, Lambda, LINQ -Exercises/Phonebook/Program.cs | 1541 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Phonebook
{
class Program
{
static void Main(string[] args)
{
var phonebook = new SortedDictionary<string, string>();
var command = new List<st... | mit |
xmomen/dms-webapp | src/main/java/com/xmomen/module/base/mapper/ExpressMapper.java | 180 | package com.xmomen.module.base.mapper;
public interface ExpressMapper {
public static final String ExpressMapperNameSpace = "com.xmomen.module.base.mapper.ExpressMapper.";
}
| mit |
amritbhat786/DocIT | 101repo/contributions/emfGenerative/src/company/util/CompanyAdapterFactory.java | 4230 | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package company.util;
import company.*;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
... | mit |
nohros/must | src/platform/web/components/cache/CacheErrorState.cs | 598 | using System;
using System.Collections.Generic;
using System.Text;
namespace Nohros.Net.Caching
{
/// <summary>
/// Specifies the state of the cache when an error was occured.
/// </summary>
public enum CacheErrorState
{
/// <summary>
/// The error has occurred during th... | mit |
advancedcontrol/doorkeeper-couchbase | lib/doorkeeper/orm/couchbase/dk_at/by_application_id_and_resource_owner_id/map.js | 231 | function(doc) {
if(doc.type === 'dk_at' && doc.application_id && doc.resource_owner_id && !doc.revoked_at) {
// Will be ordered by created at desc by default
emit([doc.application_id, doc.resource_owner_id], null);
}
}
| mit |
Noumenon72/LineMonitorBot | src/com/kovaciny/linemonitorbot/SettingsFragment.java | 3241 | package com.kovaciny.linemonitorbot;
import android.content.Intent;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.preference.ListPreference;
import android.preference.Preference;
import android.preference.Preference.OnPreferenceChangeListener;
import a... | mit |
starshipxac/starshipxac.ShellLibrary | Source/starshipxac.Windows.Shell/Dialogs/Interop/FILEOPENDIALOGOPTIONS.cs | 1360 | using System;
using System.Diagnostics.CodeAnalysis;
namespace starshipxac.Windows.Shell.Dialogs.Interop
{
/// <summary>
/// </summary>
/// <remarks>
/// http://msdn.microsoft.com/en-us/library/windows/desktop/dn457282(v=vs.85).aspx
/// </remarks>
[Flags]
[SuppressMessage("R... | mit |
ISKU/Algorithm | BOJ/10768/Main.java | 612 | /*
* Author: Kim Min-Ho (ISKU)
* Date: 2016.09.25
* email: minho1a@hanmail.net
*
* https://github.com/ISKU/Algorithm
* https://www.acmicpc.net/problem/10768
*/
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner input = new Scanner(System.in);
int month = input... | mit |
Shyru/Phutler | src/Phutler/Persistence/AbstractPersistor.php | 496 | <?php
/**
* This file is part of Phutler.
* Please check the file LICENSE for information about the license.
*
* @copyright Daniel Haas 2013
* @author Daniel Haas <daniel@file-factory.de>
*/
namespace Phutler\Persistence;
use Phutler\Config;
use React\EventLoop\LoopInterface;
/**
* Base class for all classes... | mit |
yangkean/node-practice | models/posts.js | 2833 | const marked = require('marked');
const Post = require('../lib/mongo').Post;
const CommentModel = require('./comments');
// 将 post 的 content 从 markdown 转换成 html
Post.plugin('contentToHtml', {
afterFind(posts) {
return posts.map((post) => {
post.content = marked(post.content);
return post;
});
... | mit |
pokitdok/gremlin-python | src/main/java/com/pokitdok/gremlin/python/jsr223/GremlinPythonScriptEngineFactory.java | 2259 | package com.pokitdok.gremlin.python.jsr223;
import com.tinkerpop.gremlin.Tokens;
import org.python.jsr223.PyScriptEngineFactory;
import javax.script.ScriptEngine;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public clas... | mit |
iamsani/Parrot | system/start.php | 1168 | <?php
/**
* Get requires and init important variables
*/
require_once(SYS . 'boot' . EXT);
/**
* Page not found (404)
* - TODO: Custom page in theme
*/
ToroHook::add('404', function() {
echo 'Not found';
});
/**
* Routes
*/
Toro::serve(array(
BASE => 'discussions',
BASE . 'login/verify' => 'verif... | mit |
riguelbf/SWITCH-OVER | src/SWITCH-OVER.Shared/Commands/CommandRequest.cs | 99 | namespace SWITCH_OVER.Shared.Commands
{
public abstract class CommandRequest : Command
{
}
}
| mit |
zeamprime/NeptuneDispatch | scripts/templates/Mailer.php | 490 | <?php
/**
* @author Everett Morse
* Copyright (c) 2015 Everett Morse. All rights reserved.
* www.neptic.com
*
* Send a {%ClassName%} email.
*/
class {%ClassName%}Mailer extends Mailer
{
public function __construct() {
parent::__construct();
$this->Subject = "Welcome";
$this->addAddress('john@example.co... | mit |
areiterer/react-feathers-boilerplate | src/reducers/reducer.js | 426 | import * as t from '../actions/actionTypes';
const initialState = {
currentlySending: false,
loggedIn: false
};
export default function (state = initialState, action) {
switch (action.type) {
case t.SENDING_REQUEST:
return Object.assign({}, state, { currentlySending: action.isSending });
case t.SET_LOGIN_ST... | mit |
bartlannoeye/SO-Dump | 20160522 - EF/App10/Migrations/PlanContextModelSnapshot.cs | 1758 | using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using App10.Entities;
namespace App10.Migrations
{
[DbContext(typeof(PlanContext))]
partial class PlanContextMode... | mit |
frozstone/concept | resources/math_symbols_to_unicode.py | 768 | from lxml import etree
from StringIO import StringIO
from pickle import dump
dtd = '<!DOCTYPE math SYSTEM "xhtml-math11-f.dtd">'
parser = etree.XMLParser(load_dtd = True, resolve_entities = True)
def latex2unicode(latex_symbol):
mathml_entity = '<mo>%s;</mo>' % latex_symbol.replace('\\', '&').lower()
doc = et... | mit |
lars-erik/Umbraco-CMS | src/Umbraco.Web/Components/PublicAccessComposer.cs | 476 | using Umbraco.Core;
using Umbraco.Core.Components;
namespace Umbraco.Web.Components
{
/// <summary>
/// Used to ensure that the public access data file is kept up to date properly
/// </summary>
[RuntimeLevel(MinLevel = RuntimeLevel.Run)]
public sealed class PublicAccessComposer : ICoreComposer
... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/qoopido.js/3.5.3/support/css/transform/3d.js | 128 | version https://git-lfs.github.com/spec/v1
oid sha256:18844e6b5bce681ba1fd64d988a18ec897e9bd80aa6820a33fa5f13c5b0465e5
size 639
| mit |
jansanchez/android-labs | PagaporClick/app/src/androidTest/java/com/example/administrador/pagaporclick/ApplicationTest.java | 369 | package com.example.administrador.pagaporclick;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationT... | mit |
claudiajs/claudia | spec/test-projects/echo-handler-problem/main.js | 90 | exports.xhandler = function (event, context) {
'use strict';
context.succeed(event);
};
| mit |
UberEnt/pa-ui | ui/main/game/galactic_war/gw_start/gw_breeder.js | 6197 | define([
'shared/Graph',
], function(
Graph
) {
var GWBreeder = {
populate: function(params) {
var galaxy = params.galaxy;
var spawn = params.spawn || function(star, ai) {};
var spreadFunction = params.spread || function(star, ai) {};
var canSpread = p... | mit |
rfk/xrcwidgets | examples/demo_widgets.py | 999 |
from XRCWidgets import XRCPanel
class DemoPanel(XRCPanel):
"""Simple panel allowing two numbers to be added.
The values in the textboxes are tracked as they are changed, reverting
to previous values if a non-number is entered. The result is updated
when 'add' is pressed.
"""
def __init__(sel... | mit |
zspitz/ts-activex-gen | tests/Properties/AssemblyInfo.cs | 1381 | 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("tes... | mit |
hdngo/toodoo | spec/helpers/client_app_helper_spec.rb | 442 | require 'rails_helper'
# Specs in this file have access to a helper object that includes
# the ClientAppHelper. For example:
#
# describe ClientAppHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this that")
# end
# ... | mit |
giveitupforjoel/video2poster | video2poster/__init__.py | 76 | __author__ = 'Joel House'
__version__ = "1.0"
from .v2p import Video2Poster
| mit |