repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
Winterbraid/ffmpeg_progress | lib/ffmpeg_progress/theme.rb | 4930 | module FFmpegProgress
# This is the class that handles progress bar themes and converting them into
# visual elements. {FFmpegProgress} expects a 256-color capable terminal.
class Theme
# The default theme.
DEFAULT_THEME = {
bars: 63, head_chr: '[', full_chr: '=', empty_chr: '-', tail_chr: ']',
... | mit |
vaj25/SICBAF | assets/js/validate/reporte/activofijo/bunidadenlace.js | 648 |
var reglas = {
rules: {
"autocomplete": {
required: true,
checkautocomplete: 'seccion'
},
},
messages: {
"autocomplete": {
required: "La seccion es obligatoria."
},
},
};
var iseccion;
$(document).ready(function() {
//empleado
$.au... | mit |
jeikerxiao/SpringBootStudy | spring-boot-multi-datasource/src/main/java/com/jeiker/demo/config/DynamicDataSource.java | 579 | package com.jeiker.demo.config;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
/**
* @author : xiao
* @date : 2018/3/9 上午10:47
* @description :
*/
public class DynamicDataSource extends AbstractRoutingDataSource {
private ... | mit |
escribano/code | lib/code/ancestors/browser-det.js | 1524 | <script type="text/javascript">
if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Firefox/x.x or Firefox x.x (ignoring remaining digits);
var ffversion=new Number(RegExp.$1) // capture x.x portion and store as a number
if (ffversion>=5)
document.write(" FF 5.x or above")
else if (ffversion>=4)
... | mit |
SlateFoundation/slate | sencha-workspace/SlateAdmin/app/view/Main.js | 617 | /*jslint browser: true, undef: true *//*global Ext*/
Ext.define('SlateAdmin.view.Main', {
extend: 'Ext.container.Container',
xtype: 'slateadmin-main',
requires: [
'SlateAdmin.view.Navigation',
'Ext.layout.container.Card'
],
autoEl: 'main',
componentCls: 'slateadmin-main',
la... | mit |
HandyCodeJob/mikeandzoey-site | src/rsvp/migrations/0008_auto_20150906_0714.py | 680 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('rsvp', '0007_auto_20150906_0354'),
]
operations = [
migrations.RemoveField(
model_name='person',
nam... | mit |
DanielJRaine/employee-forms-auth | tmp/broccoli_persistent_filterbabel__babel_employee_forms_auth-output_path-QkVqzlHt.tmp/employee-forms-auth/routes/users.js | 259 | define('employee-forms-auth/routes/users', ['exports', 'ember'], function (exports, _ember) {
'use strict';
exports['default'] = _ember['default'].Route.extend({
model: function model() {
return this.get('store').findAll('user');
}
});
}); | mit |
learncode/Sublime | SublimeDal/SublimeDal.Core/Mapper/Mapper.cs | 815 | using System;
using System.Collections.Generic;
using System.Data;
using System.Reflection;
namespace SublimeDal.Library {
public class Mapper {
public static List<T> GetList<T>(DataTable dataTable) where T : new() {
List<T> entities = new List<T>();
foreach (DataRow row in dataT... | mit |
benjaminleetmaa/hsOemV3 | src/app/shared/pipes/gridRow.pipe.ts | 2703 | import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'gridRowPipe'
})
export class GridRowPipe implements PipeTransform {
transform(value: any, args: any) {
// console.log(args[2])
// console.log(value);
if (typeof value === 'object' && value) {
let expandObj... | mit |
briandavidwetzel/rapid_api | test/integration/ams_ar_test.rb | 1528 | require File.expand_path '../../test_helper.rb', __FILE__
class AmsArTest < ActionController::TestCase
class AmsArIntegrationController < ActionController::Base
include RapidApi::ActionController::Errors
rapid_actions model: Brick, serializer: BrickSerializer
scope_by :user_id do
params['user_id'... | mit |
rohansen/Code-Examples | Public Web Services/Microsoft Text Analytics API/Microsoft Text Analytics API/Form1.Designer.cs | 3580 | namespace Microsoft_Text_Analytics_API
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... | mit |
icaromagnago/tcc-ddd-scrum | src/main/java/br/icc/ddd/scrum/application/ApplicationService.java | 957 | package br.icc.ddd.scrum.application;
import java.io.Serializable;
import java.util.Set;
import javax.validation.ConstraintViolation;
import javax.validation.Validation;
import javax.validation.ValidatorFactory;
import br.icc.ddd.scrum.domain.Entidade;
import br.icc.ddd.scrum.domain.ValidacaoException;
... | mit |
amutylo/IB-d8-migration | migrate_infob/src/Plugin/migrate/source/TermFunctions.php | 1791 | <?php
namespace Drupal\migrate_infob\Plugin\migrate\source;
use Drupal\migrate\Row;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
/**
* Taxonomy term source from database.
*
*
* @MigrateSource(
* id = "taxonomy_term_functions",
* source_provider = "taxonomy"
* )
*/
class TermFunctions ex... | mit |
sazze/node-pm | test/main.test.js | 19245 | var expect = require('chai').expect;
var path = require('path');
var child = require('child_process');
var _ = require('underscore');
var fs = require('fs');
var ps;
describe('Worker Manager', function() {
"use strict";
describe('during startup', function() {
it('should require a start script', function(done... | mit |
neyko5/balistos | models/playlist.js | 620 | var sequelize = require('../database');
var Sequelize = require('sequelize');
var User = require('./user');
var Chat = require('./chat');
var PlaylistVideo = require('./playlistVideo');
var Playlist = sequelize.define('playlist', {
id: {
type: Sequelize.INTEGER,
field: 'id',
primaryKey: true,
autoInc... | mit |
CoandaCMS/coanda-core | src/views/admin/modules/history/emails/dailydigest.blade.php | 5713 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; ma... | mit |
marknmel/telegraf | plugins/inputs/statsd/statsd.go | 14775 | package statsd
import (
"errors"
"fmt"
"log"
"net"
"sort"
"strconv"
"strings"
"sync"
"time"
"github.com/influxdata/telegraf/plugins/parsers/graphite"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/inputs"
)
const (
UDP_PACKET_SIZE int = 1500
defaultFieldName = "value"
)
var... | mit |
rehanarroihan/PerpustakaanCI | application/views/transaksi/peminjaman_view.php | 13920 | <script src="<?php echo base_url() ?>assets/vendors/jquery/dist/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
$("#slcAgta").change(function(){
var agt = $(this).val();
$.ajax({
url:"<?php echo base_url() ?>peminjaman/searchAgtName",
type: "POST",
... | mit |
jlmeeker/Aura | src/org/meekers/plugins/aura/AuraPluginListener.java | 2698 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.meekers.plugins.aura;
import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
impor... | mit |
pablosproject/FuzzyBrain-Release | src/input_providers/InputStreamProvider.cpp | 301 | /*
* InputStreamProvider.cpp
*
* Created on: Dec 6, 2012
* Author: igloo
*/
#include "InputStreamProvider.h"
InputStreamProvider::InputStreamProvider() {
// TODO Auto-generated constructor stub
}
InputStreamProvider::~InputStreamProvider() {
// TODO Auto-generated destructor stub
}
| mit |
cosbycoin/cosbycoin | src/qt/locale/bitcoin_it.ts | 89945 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="it" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="14"/>
<source>About CosbyCoin</source>
<translation>Info su CosbyCoin</translation>
<... | mit |
pgte/fugue | test/test_one_worker.js | 897 | //Testing to see if I can get data from 1 worker...
var path = require('path'),
net = require('net'),
assert = require('assert');
var fugue = require(path.join(__dirname, '..', 'lib', 'fugue.js'));
var expected_data = 'here is some data';
server = net.createServer(function(conn) {
conn.end(expected_dat... | mit |
Caldis/react-image-slideshow | webpack.config.js | 814 | var path = require('path');
var config = {
entry: path.resolve(__dirname, './src/main.js'),
output: {
path: path.resolve(__dirname, './example'),
filename: 'bundle.js'
},
devServer: {
historyApiFallback: true
},
resolve: {
extensions: ['', '.js', '.jsx']
}... | mit |
wfalkwallace/TAFS | src/Element.java | 4954 | import java.util.ArrayList;
/**
*
*/
/**
* @author wgf2104
*
*/
public class Element {
private String name;
private String type;
private String contents;
private Element parent;
private ArrayList<Element> children;
/**
* Drive constructor
* @param name drive name
*/
public Element(String name) {... | mit |
Orkestro/Orkestro | src/Orkestro/Bundle/CategoryBundle/Entity/CategoryRepository.php | 302 | <?php
namespace Orkestro\Bundle\CategoryBundle\Entity;
use Gedmo\Tree\Entity\Repository\NestedTreeRepository;
/**
* CategoryRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class CategoryRepository extends NestedTreeRepository
{
}
| mit |
lozga/spaceracegame | src/spaceracegame/LaunchWindows.java | 4642 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package spaceracegame;
import java.awt.Stroke;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
/**
*
* @author Terekhov F.V. <fterekhov@gmail.com>
*/... | mit |
npetzall/http-double | server/src/test/java/npetzall/httpdouble/doubles/ServiceDoubleRegistryDouble.java | 826 | package npetzall.httpdouble.doubles;
import npetzall.httpdouble.api.ServiceDouble;
import npetzall.httpdouble.server.registry.ServiceDoubleRef;
import npetzall.httpdouble.server.registry.ServiceDoubleRegistry;
import java.util.Collections;
import java.util.Map;
public class ServiceDoubleRegistryDouble implements Ser... | mit |
mash1t/tcpchat | TcpChat/src/de/mash1t/chat/client/gui/ClientGuiThread.java | 4534 | /*
* The MIT License
*
* Copyright 2015 Manuel Schmid.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, m... | mit |
ajgassner/fireparty | src/main/java/at/agsolutions/fireparty/FirePartyApplication.java | 1746 | package at.agsolutions.fireparty;
import at.agsolutions.fireparty.ui.RootPane;
import com.google.inject.Guice;
import com.google.inject.Injector;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;
import org.slf4j.Logger;
import org.s... | mit |
JNK/node-confim | example/config.js | 1362 | /**
* Created by jnk on 05.03.16.
*/
module.exports = {
modules: {
'web-server-one': {
default: {
port: 3000,
host: '127.0.0.1'
},
development: {
host: '0.0.0.0'
}
},
'web-server-two': {
... | mit |
skazhy/blake | blake/core.py | 14055 | #
# blake.core 0.2.1
# Do cool things with your Markdown docs
# skazhy / sept-dec 2012
#
import copy
import os
import re
import unicodedata
import yaml
from datetime import datetime
from markdown import markdown
EXTENSIONS = [".md", ".markdown"]
class QueryDict(object):
def __init__(self, d=None):
if ... | mit |
WuliHole/hole | src/routers/index.tsx | 1060 | import App from '../containers/app'
import Reading from './reading'
import Verify from './verify'
import Editing from './editing'
import Profile from './profile'
import Post from './post'
import Login from './login'
import Signup from './signup'
import Home from './home'
import Logout from './loggedOut'
import DashBoar... | mit |
alonecoder1337/Dos-Attack-Detection-using-Machine-Learning | App.py | 1271 | from Classifier import Classififer
import pandas as pd
import numpy as np
from Dataset import Dataset
class App:
def __init__(self):
self.classifier = Classififer().get_classifier();
def train(self):
df = pd.read_csv('data/train.csv', header=None)
data = np.array(df)
self.x_t... | mit |
ZingModelChecker/Zing | Microsoft.Zing/ZLooker.cs | 16015 | using System.Collections;
using System.Compiler;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
namespace Microsoft.Zing
{
/// <summary>
/// Walks an IR, mutuating it by replacing identifier nodes with the members/locals they resolve to
/// </summary>
internal sealed class Looker : Sy... | mit |
MrAntix/antix | source/Antix.Services/Validation/Predicates/StringNullOrWhiteSpacePredicate.cs | 312 | using System.Threading.Tasks;
namespace Antix.Services.Validation.Predicates
{
public class StringNullOrWhiteSpacePredicate : ValidationPredicateBase<string>
{
public override async Task<bool> IsAsync(string model)
{
return string.IsNullOrWhiteSpace(model);
}
}
} | mit |
ramisg85/oueslatirami | src/BackOffice/RO/CategorieBundle/Entity/categorie.php | 1928 | <?php
namespace BackOffice\RO\CategorieBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use APY\DataGridBundle\Grid\Mapping as GRID;
/**
* BackOffice\RO\CategorieBundle\Entity\categorie
*
* @ORM\Table(name="categorie")
* @ORM\Entity(repositoryClass="BackOffice\RO\CategorieBundle\Entity\categorieRepository")
*
... | mit |
dcunited001/minitest-reporters-ws | lib/minitest/reporters/ws/formatting.rb | 2201 | module Minitest::Reporters::Ws
module Formatting
INFO_PADDING = 8
def get_description(runner, test)
"#{test.suite}: <b>#{test.test}</b>"
end
def print_time(test)
total_time = Time.now - (runner.test_start_time || Time.now)
" (%.2fs)" % total_time
end
def print_info(e)
... | mit |
absolute8511/nsq | consistence/nsqd_coordinator_rpc_helper.go | 3754 | package consistence
func (self *NsqdCoordinator) requestJoinCatchup(topic string, partition int) *CoordErr {
coordLog.Infof("try to join catchup for topic: %v-%v", topic, partition)
c, err := self.getLookupRemoteProxy()
if err != nil {
coordLog.Infof("get lookup failed: %v", err)
return err
}
//defer self.put... | mit |
jinchen92/JavaBasePractice | src/com/jinwen/thread/multithread/supplement/example2/Run2_threadRunSyn.java | 762 | package com.jinwen.thread.multithread.supplement.example2;
/**
* P291
* 使线程具有有序性
*/
public class Run2_threadRunSyn {
public static void main(String[] args) {
Object lock = new Object();
MyThread a = new MyThread(lock, "A", 1);
MyThread b = new MyThread(lock, "B", 2);
MyThread c =... | mit |
Condors/TunisiaMall | vendor/nomaya/social-bundle/Nomaya/SocialBundle/Twig/Extension/NomayaTwigSocialLinks.php | 3607 | <?php
/*
Copyright (c) 2014 Yann Chauvel - Nomaya.net - yann@nomaya.net
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, ... | mit |
nyc-nighthawks-2016/Linken-Jarale-StackOverflow | app/controllers/answers.rb | 414 | post '/answers' do
# binding.pry
@post = Post.find(params[:post_id])
@answer = @post.answers.new(body:params[:body], user_id:current_user.id)
if @answer.save
if request.xhr?
erb :'/partials/_answer',layout: false, locals: {answer: @answer, post: @post}
else
redirect "/posts/#{params[:post_i... | mit |
Neofonie/gonzo | http/principal.go | 286 | package gonzo
import "net/http"
type Principal struct {
next ContextHandler
}
func (p Principal) ServeHTTP(w http.ResponseWriter, r *http.Request, c *Context) {
if pr := r.Header.Get("X-Principal"); pr != "" {
p.next(w, r, c)
} else {
w.WriteHeader(http.StatusForbidden)
}
}
| mit |
binghuo365/SiteGroupCms | src/SiteGroupCms.Utils/Cookie.cs | 17420 | /*
* 程序中文名称: 站群内容管理系统
*
* 程序英文名称: SiteGroupCms
*
* 程序版本: 5.2.X
*
* 程序作者: 高伟 ( 合作请联系:254860396#qq.com)
*
*
*
*
*
*/
using System;
using System.Web;
using System.Data;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
namespace Sit... | mit |
evertharmeling/brouwkuyp-control | src/Brouwkuyp/Bundle/LogicBundle/Traits/ExecutableTrait.php | 709 | <?php
namespace Brouwkuyp\Bundle\LogicBundle\Traits;
use Brouwkuyp\Bundle\LogicBundle\Model\ExecutableInterface;
/**
* ExecutableTrait
*/
trait ExecutableTrait
{
/**
* Flag indicating that this object is started.
*
* @var bool
*/
protected $started;
/**
* Flag indicating that ... | mit |
zporky/langs-and-paradigms | projects/EJULOK/Java/prognyelvek/src/main/java/bence/prognyelvek/contexts/SimpleContext.java | 881 | package bence.prognyelvek.contexts;
import java.util.ArrayList;
import java.util.List;
public class SimpleContext<T, O> implements Context<T, O> {
private final List<T> tokens = new ArrayList<T>();
private final List<O> output = new ArrayList<O>();
private int pointer = 0;
public SimpleContext(fin... | mit |
dvajs/dva | packages/dva-loading/test/index.test.js | 7362 | import expect from 'expect';
import dva from 'dva';
import createLoading from '../src/index';
const delay = timeout => new Promise(resolve => setTimeout(resolve, timeout));
describe('dva-loading', () => {
it('normal', done => {
const app = dva();
app.use(createLoading());
app.model({
namespace: 'c... | mit |
beardgame/utilities | Bearded.Utilities/SpaceTime/2d/Velocity2.cs | 7320 | using System;
using System.Globalization;
using Bearded.Utilities.Geometry;
using OpenTK.Mathematics;
namespace Bearded.Utilities.SpaceTime;
/// <summary>
/// A type-safe representation of a 2d directed velocity vector.
/// </summary>
public readonly struct Velocity2 : IEquatable<Velocity2>, IFormattable
{
priva... | mit |
GestionSystemesTelecom/gst-library | src/GST.Library.Helper/Type/IsTypeHelper.cs | 4683 | using System;
using System.Globalization;
using System.Reflection;
namespace GST.Library.Helper.Type
{
/// <summary>
/// IsTypeHelper
/// </summary>
public static class IsTypeHelper
{
private static string[] dateFormats = {
"yyyy-MM",
"yyy... | mit |
tommy351/warehouse | test/scripts/model.js | 32755 | 'use strict';
const should = require('chai').use(require('chai-as-promised')).should();
const sortBy = require('lodash/sortBy');
const Promise = require('bluebird');
const sinon = require('sinon');
const cuid = require('cuid');
describe('Model', () => {
const Database = require('../..');
const Schema = Database.S... | mit |
vassildinev/CSharp-Part-2 | 03.MethodsHomework/08.NumberAsArray/Properties/AssemblyInfo.cs | 1408 | 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("08... | mit |
ComputerArchitectureGroupPWr/JGenerilo | src/main/java/edu/byu/ece/rapidSmith/bitstreamTools/bitstream/DummySyncData.java | 4846 | /*
* Copyright (c) 2010-2011 Brigham Young University
*
* This file is part of the BYU RapidSmith Tools.
*
* BYU RapidSmith Tools is free software: you may redistribute it
* and/or modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 2 of ... | mit |
xissburg/XDefrac | XDefrac/btMaterial.cpp | 1166 |
#include "btMaterial.h"
btMaterial::btMaterial(btScalar youngModulus, btScalar poissonRatio):
m_e(youngModulus),
m_nu(poissonRatio),
m_E(6, 6)
{
computeE();
}
void btMaterial::computeE()
{
const btScalar c = m_e/((1+m_nu)*(1-2*m_nu));
m_E.setZero();
m_E(0,0)=c*(1-m_nu), m_E(0,1)=c*m_nu, ... | mit |
enow-dev/enow | front/src/Views/Components/EventBox.js | 8176 | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Card, { CardContent } from 'material-ui/Card';
import List, {
ListItem,
ListItemIcon,
ListItemText,
ListItemSecondaryAction,
} from 'material-ui/List';
import EventIcon from 'material-ui-icons... | mit |
technohippy/ruby-wave-robot-api | examples/ruby-kitchen-sinky.rb | 1846 | require 'rubygems'
require 'sinatra'
require 'waveapi'
robot = Waveapi::Robot.new(
'Ruby Ketchensinky',
:base_url => '/sample-robot',
:image_url => 'http://ruby-wave-robot.heroku.com/images/icon.png',
:profile_url => 'http://ruby-wave-robot-api.heroku.com'
)
robot.register_handler(Waveapi::WaveletSelfAddedE... | mit |
rinat-enikeev/ReliabilityImitation | javafx/src/main/java/pro/enikeev/imitation/JFXImitationApp.java | 562 | package pro.enikeev.imitation;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class JFXImitationApp extends Application {
@Override
public void start(Stage primaryStage) throws Exception{
P... | mit |
flightlog/flsweb | src/masterdata/flightTypes/FlightTypesEditDirective.js | 287 | import FlightTypesEditController from './FlightTypesEditController';
export default class FlightTypesEditDirective {
static factory() {
return {
template: require("./flight-types-table.html"),
controller: FlightTypesEditController
}
}
}
| mit |
EmilPopov/C-Sharp | C# OOP/Exam Preparation OOP/Academy Ecosystem/AcademyEcosystem/AcademyEcosystem/Zombie.cs | 408 |
namespace AcademyEcosystem
{
public class Zombie : Animal
{
private const int MeatFromZombie = 10;
private const int ZombieSize = 0;
public Zombie(string name, Point location)
: base(name, location,ZombieSize)
{
}
public override int Get... | mit |
ponycoin/ponycoin | src/qt/locale/bitcoin_ja.ts | 99027 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="ja" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About PonyCoin</source>
<translation>PonyCoinについて</translation>
</mes... | mit |
737/sun.js | src/sun.loading.js | 4640 | var sun = sun || {};
var _loadingbar = function(){
var self = {},
settings = {
direction: "right"
};
function _start(){
if ($("#sun_loadingbar").length === 0) {
$("body").append("<div id='sun_loadingbar'></div>");
$("#sun_loadingbar").addClass("wait... | mit |
kuroneko1996/cyberlab | triggers/message.py | 6530 | import settings
import pygame as pg
from settings import J_BUTTONS, TYPING_SPEED
import re
import collections
def get_message(text, picture=None):
if text and text[0] == "#":
pass
elif text and text[0] == "$":
return ControlMessage(text, picture)
else:
return TextMessage(text, pict... | mit |
Karasiq/scalajs-highcharts | src/main/scala/com/highstock/config/PlotOptionsPolygonStatesSelectMarkerStatesHoverAnimation.scala | 1053 | /**
* Automatically generated file. Please do not edit.
* @author Highcharts Config Generator by Karasiq
* @see [[http://api.highcharts.com/highstock]]
*/
package com.highstock.config
import scalajs.js, js.`|`
import com.highcharts.CleanJsObject
import com.highcharts.HighchartsUtils._
/**
* @note JavaScript... | mit |
Karasiq/scalajs-highcharts | src/main/scala/com/highmaps/config/PlotOptionsBubblePathfinderStartMarker.scala | 5765 | /**
* Automatically generated file. Please do not edit.
* @author Highcharts Config Generator by Karasiq
* @see [[http://api.highcharts.com/highmaps]]
*/
package com.highmaps.config
import scalajs.js, js.`|`
import com.highcharts.CleanJsObject
import com.highcharts.HighchartsUtils._
/**
* @note JavaScript n... | mit |
bolatov/contests | codeforces.ru/cf119/a.cpp | 614 | #include <iostream>
#include <vector>
#include <algorithm>
#include <climits>
using namespace std;
int main() {
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
#endif
<<<<<<< HEAD
int n, a, b, c;
cin >> n >> a >> b >> c;
int ans = -1;
for (int i = 0; i <= n; ++i) {
for (int j = 0; ... | mit |
shaunmahony/seqcode | src/edu/psu/compbio/seqcode/gse/tools/rnaseq/DifferentialExpression.java | 7583 | package edu.psu.compbio.seqcode.gse.tools.rnaseq;
import java.util.*;
import java.io.IOException;
import java.sql.SQLException;
import cern.jet.random.Gamma;
import cern.jet.random.Binomial;
import cern.jet.random.engine.DRand;
import edu.psu.compbio.seqcode.gse.datasets.general.*;
import edu.psu.compbio.seqcode.gse.d... | mit |
jacobhyphenated/PokerServer | src/main/java/com/hyphenated/card/domain/BlindLevel.java | 2721 | /*
The MIT License (MIT)
Copyright (c) 2013 Jacob Kanipe-Illig
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, m... | mit |
emartech/cranium | lib/cranium/profiling.rb | 332 | BEGIN {
require 'ruby-prof'
RubyProf.start
}
END {
profile = RubyProf.stop
printer = RubyProf::CallStackPrinter.new profile
profile_path = "/tmp/" + File.basename($0).gsub(".", "_") + "_profile.html"
printer.print File.open(profile_path, "w"), min_percent: 1
puts "Profiling information saved to: " + pro... | mit |
blachlylab/gff3 | tests/gff3_test.go | 4860 | package unit_tests
import (
"os"
"reflect"
"strings"
"testing"
"../../gff3"
)
var fakeGff3Line = "chr1\tHAVANA\tgene\t11869\t14409\t.\t+\t.\tID=ENSG00000223972.5;gene_id=ENSG00000223972.5;gene_type=transcribed_unprocessed_pseudogene;gene_status=KNOWN;gene_name=DDX11L1;level=2;havana_gene=OTTHUMG00000000961.2"
... | mit |
cs3b/electron-multiwindow-notification-app | app/router.js | 257 | import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: config.locationType,
rootURL: config.rootURL
});
Router.map(function() {
this.route('external-screen');
});
export default Router;
| mit |
tkgospodinov/omniauth-fitbit | example/example.rb | 422 | require 'sinatra'
require 'omniauth-fitbit'
use Rack::Session::Cookie
use OmniAuth::Builder do
provider :fitbit, '', '', { :scope => 'profile', :redirect_uri => 'http://localhost:4567/auth/fitbit/callback' }
end
get '/' do
<<-HTML
<a href='/auth/fitbit'>Sign in with Fitbit</a>
HTML
end
get '/auth/fitbit/ca... | mit |
anchour/portland-vineyard | web/app/themes/portland-vineyard/lib/taxonomy-fields.php | 2992 | <?php
/**
* Custom fields for taxonomy terms. In the case of this website, they'll be used for categories.
*
* @author Matt Robitaille <matt@anchour.com>
*/
// Set up the field when adding the category
function pv_add_category_fields()
{
?>
<div class="form-field">
<p>To upload a banner image to the ca... | mit |
trustify/oroplatform | src/Oro/Bundle/ActionBundle/DependencyInjection/CompilerPass/AbstractPass.php | 1501 | <?php
namespace Oro\Bundle\ActionBundle\DependencyInjection\CompilerPass;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Defini... | mit |
wtnabe/activerecord-simple_explain | lib/active_record/simple_explain/version.rb | 74 | module ActiveRecord
class SimpleExplain
VERSION = "0.0.2"
end
end
| mit |
tpoikela/battles | lib/rot-js/display/types.ts | 663 | type LayoutType = 'hex' | 'rect' | 'tile' | 'tile-gl' | 'term';
export interface DisplayOptions {
width: number;
height: number;
transpose: boolean;
layout: LayoutType;
fontSize: number;
spacing: number;
border: number;
forceSquareRatio: boolean;
fontFamily: string;
fontStyle: s... | mit |
fahad19/firenze | src/Functions.js | 655 | export default class Functions {
constructor(...args) {
this.query = args[0];
this.column = args[1];
this.funcs = [];
}
addFunction(funcName) {
this.funcs.push(funcName);
return this;
}
getFunctions() {
return this.funcs;
}
setColumn(column) {
this.column = column;
ret... | mit |
IonicaBizau/arc-assembler | clients/Semantic-UI-1.1.2/dist/components/visit.min.js | 8082 | "use strict";
/*
* # Semantic UI
* https://github.com/Semantic-Org/Semantic-UI
* http://www.semantic-ui.com/
*
* Copyright 2014 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
!function (e, t, i, n) {
e.visit = e.fn.visit = function (i) {
var o,
r = e(e.isFunction(... | mit |
goghcrow/php-minimalism | test/#GameOfLife/Calc.php | 118 | <?php
function idx($i, $limit)
{
while ($i < 0) {
$i += $limit;
}
$i %= $limit;
return $i;
} | mit |
Azure/azure-sdk-for-java | sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceAadAdminInfo.java | 1712 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.synapse.models;
import com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInner;
/** An immutable client-side... | mit |
jscanlon77/angular-admin | src/app/pages/maps/components/googleMaps/googleMaps.component.ts | 755 | import {Component, ElementRef} from '@angular/core';
import {GoogleMapsLoader} from './googleMaps.loader';
@Component({
selector: 'google-maps',
pipes: [],
providers: [],
styles: [require('./googleMaps.scss')],
template: require('./googleMaps.html'),
})
export class GoogleMaps {
constructor(private _eleme... | mit |
likerRr/urf-battleground | app/Managers/LolApi/Api/Response/Dto/ListDto.php | 944 | <?php namespace URFBattleground\Managers\LolApi\Api\Response\Dto;
use URFBattleground\Managers\LolApi\Api\Response\Response;
use URFBattleground\Managers\LolApi\Api\Response\ResponseDto;
use URFBattleground\Managers\LolApi\Engine\Support\Collection;
class ListDto extends ResponseDto {
/** @var \ArrayIterator */
pr... | mit |
MrEfrem/TestApp | config/index.js | 2375 | import path from 'path'
import fs from 'fs'
import url from 'url'
const config = { path: {} }
// Make sure any symlinks in the project folder are resolved:
// https://github.com/facebookincubator/create-react-app/issues/637
config.path.project = fs.realpathSync(process.cwd())
config.resolve = (relativePath = '') => ... | mit |
gustavoguichard/qrshirts | app/controllers/admin/reports/overviews_controller.rb | 946 | class Admin::Reports::OverviewsController < Admin::Reports::BaseController
before_filter :set_time_range
def show
@accounting_report = RorEReports::Accounting.new(start_time, end_time)
@orders_report = RorEReports::Orders.new(start_time, end_time)
@customers_report = RorEReports::Customers.new... | mit |
DaDiaoShuai/vue-mixin-information | src/main.js | 547 | // The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Vux from 'vux'
import 'normalize.css/normalize.css'
import 'nprogress/nprogress.css'
import 'fon... | mit |
jurgendl/swing-easy | src/main/java/org/swingeasy/EToolBarButtonConfig.java | 1614 | package org.swingeasy;
import javax.swing.Action;
import javax.swing.Icon;
/**
* @author Jurgen
*/
public class EToolBarButtonConfig extends EComponentConfig<EToolBarButtonConfig> {
protected EToolBarButtonCustomizer buttonCustomizer;
protected Action action;
protected Icon icon;
public EToolBarB... | mit |
kyokomi/AndEngineSRPGQuest | src/com/kyokomi/srpgquest/layer/CutInLayer.java | 2633 | package com.kyokomi.srpgquest.layer;
import org.andengine.entity.IEntity;
import org.andengine.entity.modifier.FadeInModifier;
import org.andengine.entity.modifier.IEntityModifier;
import org.andengine.entity.primitive.Rectangle;
import org.andengine.entity.sprite.Sprite;
import org.andengine.util.color.Color;
import ... | mit |
DailyActie/Surrogate-Model | 01-codes/scipy-master/scipy/sparse/sputils.py | 12267 | """ Utility functions for sparse matrix module
"""
from __future__ import division, print_function, absolute_import
import warnings
import numpy as np
__all__ = ['upcast', 'getdtype', 'isscalarlike', 'isintlike',
'isshape', 'issequence', 'isdense', 'ismatrix', 'get_sum_dtype']
supported_dtypes = ['bool'... | mit |
medja/notes | js/main.js | 12747 | window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
window.IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.msIDBTransaction;
window.IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange || window.msIDBKeyRange;
String.protot... | mit |
Azure/azure-sdk-for-python | sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_10_01/_network_management_client.py | 29817 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | mit |
adames/coledatchi | app/controllers/sessions_controller.rb | 485 | class SessionsController < ApplicationController
def new
@user
end
def create
#lets look up a user
@user = User.find_by(email: params[:email])
if @user && @user.authenticate(params[:password])
session[:user_id] = @user.id
redirect_to user_path(@user)
# let them in redirect_to s... | mit |
antigremlin/ember.js | packages/ember-htmlbars/tests/integration/binding_integration_test.js | 5035 | import run from 'ember-metal/run_loop';
import jQuery from 'ember-views/system/jquery';
import EmberView from 'ember-views/views/view';
import { Binding } from 'ember-metal/binding';
import EmberObject from 'ember-runtime/system/object';
import { computed } from 'ember-metal/computed';
import ContainerView from 'ember-... | mit |
stoplightio/gitlabhq | db/migrate/20180502122856_create_project_mirror_data.rb | 1107 | class CreateProjectMirrorData < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
# rubocop:disable Migration/AddLimitToStringColumns
def up
if table_exists?(:project_mirror_data)
add_column :project_mirror_data, :status, :string unless column_exists?(:project_... | mit |
anisku11/Laravel-SIG | app/views/kategori/edit.blade.php | 954 | @extends('template.default')
@section('content')
<legend>Edit Kategori # {{$kategori->nm_kategori}}</legend>
{{Form::model($kategori,array('url'=>route('kategori.update',['kategori'=>$kategori->id_kategori]),'method'=>'PUT','class'=>'form-horizontal','files'=>'true'))}}
{{Bootstrap::horizontal('col-sm-4','col-sm... | mit |
DenkerAffe/IPOS | src/commands/swap/swap.spec.ts | 417 | import { ensure } from 'charly/testHelper'
import { CInteger, CString } from 'charly/types'
import { describe, it } from 'mocha'
// tslint:disable:no-unused-expression
describe('/ - swap', () => {
it('[itm,itm] => []', () => {
ensure`1 'a/`.returns`a1`.withStack(CString, CInteger)
ensure`1 'a//`.returns`1a`... | mit |
calewis/SmallProjectsAndDev | code_tests/hierarchical_clustering/atom_example.cpp | 327 | #include "atom.h"
#include <array>
#include <iostream>
int main() {
std::cout << "Please enter a charge for the atom." << std::endl;
double Z = 0.0;
std::cin >> Z;
std::array<double, 3> pos = {{0, 0, 0}};
Atom a(pos, Z);
std::cout << "The Atoms charge is " << charge(a) << std::endl;
retur... | mit |
aggumati/frame | src/main/java/io/github/aggumati/frame/formtype/FrameFieldFile.java | 300 | package io.github.aggumati.frame.formtype;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({java.lang.annotation.ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface FrameFieldFile {
}
| mit |
cezerin/cezerin | src/api/server/lib/mailer.js | 1960 | import winston from 'winston';
import nodemailer from 'nodemailer';
import smtpTransport from 'nodemailer-smtp-transport';
import settings from './settings';
import EmailSettingsService from '../services/settings/email';
const SMTP_FROM_CONFIG_FILE = {
host: settings.smtpServer.host,
port: settings.smtpServer.port,
... | mit |
aspireq/new_realgujarat | application/controllers/Auth.php | 28450 | <?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class Auth extends CI_Controller {
function __construct() {
parent::__construct();
$this->load->database();
$this->load->library('session');
$this->load->helper('url');
$this->load->helper('form'... | mit |
driftyco/ionic-native | src/@ionic-native/plugins/keychain-touch-id/index.ts | 3143 | import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
/**
* @name Keychain Touch Id
* @description
* A cordova plugin adding the iOS TouchID / Android fingerprint to your
* app and allowing you to store a password securely in the device keychain.
*
*... | mit |
pellu/roadtothesuccess | vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php | 4012 | <?php
/*
* This file is part of the Monolog package.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Monolog\Handler;
use Monolog\Logger;
use Monolog\Formatter\... | mit |
sergiorykov/Platron.Client | Source/Platron.Client/Http/IHttpResponse.cs | 860 | using System;
using System.Collections.Generic;
using System.Net;
namespace Platron.Client.Http
{
/// <summary>
/// Represents a generic HTTP response
/// </summary>
public interface IHttpResponse
{
/// <summary>
/// Raw response body.
/// </summary>
string B... | mit |
petr/gqlclans | frontend/app/components/ClansList/__tests__/index.js | 1478 | import React from 'react'
import ClansList from '../'
import { shallow } from 'enzyme'
const setUp = (props) => {
const defaultProps = {
ids: ['123'],
data: {
loading: false,
clans: [
{
clanId: '123',
name: 'Gold LordS... | mit |