repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
nevil-brownlee/check_svg
word_properties.py
11930
# 1113, 15 Jan 2018 (NZDT) # 1305, 9 Jan 2018 (NZDT) # # Nevil Brownlee, U Auckland # imported as wp ''' Elements not allowed in SVG 1.2: https://www.ruby-forum.com/topic/144684 http://inkscape.13.x6.nabble.com/SVG-Tiny-td2881845.html marker clipPath style properties come from the CSS, they are allowed ...
mit
tridesclous/tridesclous
example/online_low_level_demo.py
5240
from tridesclous import * from tridesclous.online import * import pyqtgraph as pg from pyqtgraph.Qt import QtCore, QtGui import pyacq from pyacq.viewers import QOscilloscope, QTimeFreq import numpy as np import time import os import shutil def setup_catalogue(): if os.path.exists('tridesclous_onlinepeeler'...
mit
200sc/go-dist
floatrange/linear.go
1456
package floatrange import "math/rand" // NewSpread returns a linear range from base-spread to base+spread func NewSpread(base, spread float64) Range { return Linear{base - spread, base + spread, nowRand()} } // NewLinear returns a linear range from min to max func NewLinear(min, max float64) Range { return Linear{...
mit
navroopsingh/HepBProject
config/initializers/devise.rb
12714
# Use this hook to configure devise mailer, warden hooks and so forth. # Many of these configuration options can be set straight in your model. Devise.setup do |config| # The secret key used by Devise. Devise uses this key to generate # random tokens. Changing this key will render invalid all existing # confirmat...
mit
mattfili/NSSAccelerator
src/js/directives.js
918
/** * Wraps ng-cloak so that, instead of simply waiting for Angular to compile, it waits until * Auth resolves with the remote Firebase services. * * <code> * <div ng-cloak>Authentication has resolved.</div> * </code> */ angular.module('valueprop') .config(['$provide', function($provide) { // adapt ng-...
mit
npetzall/http-double
server/src/main/java/npetzall/httpdouble/BaseServer.java
909
package npetzall.httpdouble; import io.netty.channel.Channel; import io.netty.channel.EventLoopGroup; public abstract class BaseServer { protected volatile boolean running = false; protected EventLoopGroup bossGroup; protected EventLoopGroup workerGroup; protected Channel channel; public abstra...
mit
gztproject/Boter
Tools/Password.php
14082
<?php /** * A Compatibility library with PHP 5.5's simplified password hashing API. * * @author Anthony Ferrara <ircmaxell@php.net> * @license http://www.opensource.org/licenses/mit-license.html MIT License * @copyright 2012 The Authors */ namespace { if (! defined('PASSWORD_BCRYPT')) { /** ...
mit
EasyExpress/Easylink
EasylinkApp/EasylinkApp.Business/Models/AuditRecord.cs
414
using System; namespace EasylinkApp.Business { public class AuditRecord { public string RecordType { get; set; } public string RecordId { get; set; } public string UserId { get; set; } public string Description { get; set; } public string...
mit
dmpe/Semester2and5-Examples
src-semester2/msfp07/Lostrommel.java
179
package msfp07; public interface Lostrommel { void setzeMaxWertDerLose(int max); void setzeMinWertDerLose(int min); void trommelFuellen(); Loszieher loszieher(); }
mit
bitcababy/saphira
test/unit/saphira/file_item_test.rb
151
require 'test_helper' module Saphira class FileItemTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end end
mit
maurer/tiamat
samples/Juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s04/CWE762_Mismatched_Memory_Management_Routines__delete_long_realloc_22a.cpp
3793
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_long_realloc_22a.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml Template File: sources-sinks-22a.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Ro...
mit
peichhorn/tinybinding
src/main/java/de/fips/util/tinybinding/IConverter.java
1478
/* * Copyright © 2010-2011 Philipp Eichhorn. * * 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...
mit
hhirsch/magento-core-composer-installer
src/GitIgnore.php
3143
<?php namespace AydinHassan\MagentoCoreComposerInstaller; /** * Class GitIgnore * @package AydinHassan\MagentoCoreComposerInstaller * @author Aydin Hassan <aydin@hotmail.co.uk> */ class GitIgnore { /** * @var array */ protected $lines = array(); /** * @var array */ protected ...
mit
alertedsnake/pycrust
pycrust/tools/mako.py
2300
""" Mako Templates -------------- Mako templating code was based on the code and discussion at http://tools.cherrypy.org/wiki/Mako To use the Mako renderer: cherrypy.tools.mako = cherrypy.Tool('on_start_resource', MakoLoader(directories=['/path/to/templates'])) Then in your h...
mit
mjenrungrot/competitive_programming
UVa Online Judge/v2/271.py
965
# ============================================================================= # Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/ # FileName: 271.py # Description: UVa Online Judge - 271 # ============================================================================= from collections...
mit
robertjanetzko/LegendsBrowser
src/main/java/legends/model/basic/NamedObject.java
311
package legends.model.basic; import legends.model.basic.AbstractObject; import legends.xml.annotation.Xml; public class NamedObject extends AbstractObject { @Xml("name") protected String name = ""; public String getName() { return name; } public void setName(String name) { this.name = name; } }
mit
kylawl/imgui
examples/sdl_opengl3_example/imgui_impl_sdl_gl3.cpp
15683
// ImGui SDL2 binding with OpenGL3 // You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this. // If you use this binding you'll need to call 4 functions: ImGui_ImplXXXX_Init(), ImGui_ImplXXXX_NewFrame(), ImGui::Render() and ImGui_ImplXXXX_Shutdown(). // If you are ...
mit
dVakulen/Storm
Storm/Storm.Worker/Executor/ExecutorInfo.cs
332
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Storm.Worker.Executor { class ExecutorInfo { public int COMPONENT_ID; public int HOST; public int PORT; public int UPTIME_SECS; public int STATS...
mit
shyftplan/fullcalendar
src/resource/ResourceView.js
10314
var ResourceView = View.extend({ resourceGrid: null, timelineGrid: null, resourceColWidth: null, // width of all the resource-name cells running down the side initialize: function() { this.processOptions(); this.resourceGrid = new ResourceGrid(this); this.timelineGrid = new TimelineGrid(this); ...
mit
enjoycreative/enjoy_cms_pages
app/helpers/enjoy/pages/canonical_helper.rb
402
module Enjoy::Pages::CanonicalHelper def enjoy_canonical_tag(url = "") return if url.blank? tag(:link, href: url, rel: :canonical) end def enjoy_canonical_tag_for(obj) return if obj.use_enjoy_canonicalable url = obj.enjoy_canonicalable_url url = url_for(obj.enjoy_canonicalable) if !url.blank?...
mit
azl397985856/ltcrm-components
stories/checkBoxGroup.js
3175
import React from 'react'; import { render } from 'react-dom' import {Table, Icon, Checkbox, Input, Row, Col, Form, Button, message, InputNumber } from 'antd'; import CheckboxGroup from '../components/CheckboxGroup/index' import { storiesOf, action } from '@kadira/storybook'; import R from 'ramda'; import mixin from '....
mit
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_90/safe/CWE_90__backticks__func_preg_match-only_letters__name-sprintf_%s_simple_quote.php
1415
<?php /* Safe sample input : backticks interpretation, reading the file /tmp/tainted.txt sanitize : check if there is only letters construction : use of sprintf via a %s with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, m...
mit
stonedz/pff2-mongo
src/Pff2Mongo.php
1240
<?php /** * User: paolo.fagni@gmail.com * Date: 03/11/14 * Time: 23.22 */ namespace pff\modules; use pff\Abs\AModule; use pff\Iface\IBeforeSystemHook; use pff\Iface\IConfigurableModule; use Doctrine\MongoDB\Connection; use Doctrine\ODM\MongoDB\Configuration; use Doctrine\ODM\MongoDB\DocumentManager; use Doctrine\...
mit
Preiscoin/1
src/qt/locale/bitcoin_cs.ts
118427
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cs" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Preiscoin</source> <translation>O Preiscoinu</translation> </mes...
mit
prophile/compd
src/redis_process.py
734
from twisted.internet import reactor, protocol import sys import config class RedisDataReceiver(protocol.ProcessProtocol): def __init__(self, on_started): self.on_started = on_started def outReceived(self, data): print >>sys.stderr, data, if 'now ready to accept connections' in data: ...
mit
jeanpsv/node-cassandra-querybuilder
conditions/where.js
855
/** * Where constructor */ function Where() { this._clauses = []; this._clauses.push('WHERE'); }; /** * add condition * @param {Operator} condition clause condition * @return {Where} the instance */ Where.prototype.where = function(clause) { if (clause) { this._clauses.push(clause.toString())...
mit
sensorbee/sensorbee
bql/udf/builtin/array.go
675
package builtin import ( "fmt" "gopkg.in/sensorbee/sensorbee.v0/bql/udf" "gopkg.in/sensorbee/sensorbee.v0/core" "gopkg.in/sensorbee/sensorbee.v0/data" ) // arrayLengthFunc returns the length of the given array. // NULL elements are counted as well. // // It can be used in BQL as `array_length`. // // Input: Arra...
mit
codefordayton/metroparks-tribute
tribute_files/navigation.js
7970
function initNavigation() { var mainNav, mainNavItems, mainNavLinks, submenu mainNav = jQuery('.main-nav'); mainNavItems = mainNav.children(); mainNavLinks = mainNavItems.children('p'); submenu = jQuery('.sub-menu'); customSubmenu = jQuery('.custom-post-type-submenu'); function fadeInNavigation() { if(isMd){ ...
mit
rainliu/sip
header/RouteList.go
1142
package header import "sip/core" /** * A list of Route Headers. */ type RouteList struct { SIPHeaderList //private HashSet routeSet; } /** default constructor */ func NewRouteList() *RouteList { this := &RouteList{} this.SIPHeaderList.super(core.SIPHeaderNames_ROUTE) //this.routeSet = new HashSet(); return ...
mit
iataylor/SWEN-262-Proj01
src/R2/Controller.java
1462
package R2; import R2.Trans.Transaction; public class Controller { private LoginFrame lg; public Controller(){ lg = new LoginFrame(); lg.setVisible(true); } //import //don't know what I need since tyler isn't done yet public void imp(){ } //export //don't know what I need since tyler isn't done...
mit
itdoors/sd
src/ITDoors/ControllingBundle/Entity/InvoiceCompanystructure.php
2931
<?php namespace ITDoors\ControllingBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * InvoiceCompanystructure */ class InvoiceCompanystructure { /** * @var integer */ private $id; /** * @var integer */ private $invoiceId; /** * @var integer */ private $co...
mit
indriHutabalian/dl-module
test/etl/purchasing/fact-purchasing/basic.js
6883
var helper = require("../../../helper"); // var Manager = require("../../../src/etl/fact-purchasing-etl-manager"); var Manager = require("../../../../src/etl/purchasing/fact-pembelian"); var instanceManager = null; var should = require("should"); var sqlHelper = require("../../../sql-helper"); before("#00. connect db"...
mit
maovt/p3_api
media/cufflinks+gff.js
2870
var debug = require("debug")("p3api-server:media/cufflinks+gff"); var when = require("promised-io/promise").when; var es = require("event-stream"); // var wrap = require("../util/linewrap"); function serializeRow(type, o){ var row = []; if(o.feature_type == "source"){ o.feature_type = "region" } if(o.feature_typ...
mit
imnotjames/syndicator
tests/ArticleTest.php
793
<?php class ArticleTest extends PHPUnit_Framework_TestCase { public function testCreateArticle() { $expectTitle = 'Title'; $expectDescription = 'Description'; $expectURI = 'http://example.org/example?example=example'; $article = new \imnotjames\Syndicator\Article(); $article->setTitle($expectTitle); $ar...
mit
MorganRodgers/Macroinvertebrate-Field-Guide
fix_qt.py
3416
#!/usr/bin/env python import os import subprocess from contextlib import contextmanager @contextmanager def cd(path): cwd = os.getcwd() os.chdir(path) yield os.chdir(cwd) def check_output(cmd_list): process = subprocess.Popen( cmd_list, stdout=subprocess.PIPE, stderr=subp...
mit
briancappello/flask-react-spa
tests/security/views/test_check_auth_token.py
312
from flask import url_for def test_check_auth_token(api_client, user): r = api_client.get(url_for('api.check_auth_token'), headers={'Authentication-Token': user.get_auth_token()}) assert r.status_code == 200 assert 'user' in r.json assert r.json['user']['id'] == user.id
mit
civinomics/city-council
cloud/functions/tests.ts
1116
/* const app = initializeAdminApp(); const database = app.database(); */ /*getFollowersWithEmailAddresses('group', 'id_acc', database).then(it => { console.log(it); })*/ /*computeMeetingStats('id_meeting_511').then(it => { fs.writeFileSync('dev-stats2.json', JSON.stringify(it)); console.log('done'); });*/...
mit
dinhvan5481/ee382v-adv-algorithms-vehicle-routing-problem
src/vhr/SolutionAcceptor/ISolutionAcceptor.java
237
package vhr.SolutionAcceptor; /** * Created by quachv on 4/4/2017. */ public interface ISolutionAcceptor { boolean acceptSolution(double prevCost, double newCost); void updateAcceptor(); boolean canTerminateSearching(); }
mit
bcvsolutions/CzechIdMng
Realization/backend/core/core-impl/src/main/java/eu/bcvsolutions/idm/core/eav/service/impl/DefaultIdentityProjectionManager.java
23655
package eu.bcvsolutions.idm.core.eav.service.impl; import java.io.IOException; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import java.util.Objects; import org.apache.commons.lang3.BooleanUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.a...
mit
legoboy0215/PocketMine-Plugins
PlanB/src/planb/command/PlanBCommand.php
4273
<?php namespace planb\command; use planb\PlanB; use pocketmine\command\Command; use pocketmine\command\CommandSender; use pocketmine\command\ConsoleCommandSender; use pocketmine\command\PluginIdentifiableCommand; class PlanBCommand extends Command implements PluginIdentifiableCommand{ public function __construct...
mit
akkirilov/SoftUniProject
07_OOP_Advanced/23_Exam/src/main/java/app/factory/TargetableFactoryImpl.java
999
package app.factory; import java.lang.reflect.InvocationTargetException; import app.contracts.Targetable; import app.contracts.TargetableFactory; import app.models.participants.Boss; import app.models.participants.Necromancer; import app.models.participants.Warrior; import app.models.participants.Wizard; public clas...
mit
Pabloitto/Surviving-elements
Surviving-Elements/painters/enemydrawable.js
383
$.EnemyDrawable = function(e){ var enemy; function init(){ enemy = e; } function draw(ctx){ ctx.drawImage(enemy.sprite.image, enemy.sprite.pos.x, enemy.sprite.pos.y, enemy.width, enemy.height, enemy.x, enemy.y, enemy.width, enemy.heig...
mit
viralsolani/laravel-adminpanel
routes/frontend/home.php
1317
<?php use App\Http\Controllers\Frontend\ContactController; use App\Http\Controllers\Frontend\HomeController; use App\Http\Controllers\Frontend\User\AccountController; use App\Http\Controllers\Frontend\User\DashboardController; use App\Http\Controllers\Frontend\User\ProfileController; /* * Frontend Controllers * All...
mit
Write365/WordSalad-Service
application/view/test/testdetails.php
8580
<!-- DataTables JavaScript --> <script src="<?php echo URL; ?>libs/datatables/media/js/jquery.dataTables.min.js"></script> <script src="<?php echo URL; ?>libs/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.min.js"></script> <script> $(document).ready(function () { $('#datatable-t...
mit
Oui42/NewWar
source/admin/item/add.php
4210
<?php if(isset($_POST['addItem'])) { $error = array(); $type = (isset($_POST['type']))? $_POST['type'] : ""; $name = (isset($_POST['name']))? vtxt($_POST['name']) : ""; $level = (isset($_POST['level']))? vtxt($_POST['level']) : ""; $value1 = (isset($_POST['value1']))? vtxt($_POST['value1']) : ""; $value2 = (isset...
mit
codiak/zuul-experiment
src/main/java/zuulserver/ZuulServerApplication.java
659
package org.artstor.test.filter; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.cloud.netflix.zuul.EnableZuulProxy; import org.springframework.context.annotation.ComponentScan; import org.springframewor...
mit
ChrisFadden/PartyTowers
src/main.cpp
23926
#include <iostream> #include <SDL.h> #include <SDL_net.h> #include <SDL_image.h> #include <string> #include <vector> #include <algorithm> #include <MsgStruct.h> #include "Player.h" #include "GameObject.h" #include "Enemy.h" #include "Cursor.h" #include "Tower.h" #include "Cannon.h" #include "Rocket.h" #include "Path.h"...
mit
DFEAGILEDEVOPS/gender-pay-gap
Beta/GenderPayGap.Tests.Common/Mocks/MockClassQueue.cs
560
using GenderPayGap.Core.Interfaces; using System.Collections.Generic; using System.Threading.Tasks; public class MockClassQueue : IQueue { Queue<object> _queue = new Queue<object>(); public MockClassQueue(string queueName) { this.Name = queueName; } public string Name { get; } publ...
mit
nodoid/PointOfSale
C-Sharp/frmDeposit.Designer.cs
30643
using CrystalDecisions.CrystalReports.Engine; using CrystalDecisions.Windows.Forms; using DpSdkEngLib; using DPSDKOPSLib; using Microsoft.VisualBasic; using System; using System.Collections; using System.Collections.Generic; using System.Drawing; using System.Diagnostics; using System.Windows.Forms; using Sy...
mit
vbence86/fivenations
src/js/gui/NotificationBar.js
4438
/* global Phaser */ import { DEFAULT_FONT, NOTIFICATION_PANEL } from '../common/Const'; import TranslationManager from '../common/TranslationManager'; import EventEmitter from '../sync/EventEmitter'; /** * Notification bar implementation that can be used to display * any form of Notification on the top of the game s...
mit
nico01f/z-pec
ZimbraWebClient/WebRoot/js/zimbraMail/voicemail/controller/ZmVoiceTreeController.js
3367
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Web Client * Copyright (C) 2007, 2009, 2010 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain a copy o...
mit
Jacodom/aeris
aeris-app/modules/registers/client/config/registers.client.config.js
669
(function () { 'use strict'; angular .module('registers') .run(menuConfig); menuConfig.$inject = ['Menus']; function menuConfig(Menus) { // Set top bar menu items Menus.addMenuItem('topbar', { title: 'Registers', state: 'registers', type: 'dropdown', roles: ['*'] }...
mit
Sakuyakun/Yorha-Experiment
react-demo/react-electron-env/webpack.dev.config.js
862
const path = require("path"); const webpack = require("webpack"); const ExtractTextPlugin = require("extract-text-webpack-plugin"); const publicPath = "http://localhost:3004/"; const {baseConfig} = require("./webpack.config.js"); const devConfig = { devtool: "inline-source-map", entry: [ "react-hot-loader/patc...
mit
enBask/Asgard
Asgard.Core/Network/Packets/PacketTypes.Internal.cs
319
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Asgard.Core.Network.Packets { enum PacketTypes { PACKET = 1, LOGIN_RESPONSE, DATA_OBJECT, ACK_STATE_TICK, RPC, MAX_PACKET=32 } }
mit
c-square/homework
Licență/Anul I/POO/Shapes/Shape.cpp
437
#include <istream> #include <ostream> #include "Shape.h" using namespace std; /* template <class TIP> Shape<TIP>::~Shape() { } template <class TIP> void Shape<TIP>::readFrom(std::istream &) { } template <class TIP> void Shape<TIP>::moveBy(TIP, TIP) { } template <class TIP> void Shape<TIP>::output(std::ostream &o) ...
mit
lordazzi/calculator
src/config/config.service.ts
1494
import { CalcConfig } from './calc-config'; export class ConfigService { private static instance: ConfigService | null = null; static defaultConfig: CalcConfig = { thrownStrategy: 'emit-event', throwNaN: true, throwInfinite: true, throwUnsafeNumber: true }; static getInstance():...
mit
Karasiq/scalajs-highcharts
src/main/scala/com/highmaps/config/SeriesFunnelDataDragDropGuideBox.scala
1108
/** * 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
smichael1/SingleAxisReactUI
webpack.config.js
489
module.exports = { entry: [ './src/index.js' ], output: { path: __dirname, publicPath: '/', filename: 'bundle.js' }, module: { loaders: [{ exclude: /node_modules/, loader: 'babel', query: { presets: ['react', 'es2015', 'stage-1'] } }] }, resolve: { ...
mit
xDryan/game-engine
serveur/save_proprietes.php
140
<?php $json_data = print_r(json_decode(file_get_contents('php://input'), true), true); file_put_contents('proprietes.json', $json_data); ?>
mit
ivanifan/RevitCustomIFCexporter
trunk/2015/Source/Revit.IFC.Export/Utility/PropertyInfoCache.cs
12289
// // BIM IFC library: this library works with Autodesk(R) Revit(R) to export IFC files containing model geometry. // Copyright (C) 2012 Autodesk, Inc. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free...
mit
okmttdhr/YoutuVote
Tests/mock/user.js
320
// @flow export const userMock = { displayName: 'MOCK_DISPLAY_NAME', email: 'MOCK_EMAIL', emailVerified: false, isAnonymous: false, phoneNumber: 'MOCK_PHONE_NUMBER', photoURL: 'MOCK_PHOTO_URL', providerData: [], providerId: 'MOCK_PROVIDER_ID', refreshToken: 'MOCK_REFRESH_TOKEN', uid: 'MOCK_UID', };
mit
plivo/plivo-java
src/main/java/com/plivo/api/models/powerpack/RemoveShortcode.java
673
package com.plivo.api.models.powerpack; import com.plivo.api.models.base.Deleter; import okhttp3.ResponseBody; public class RemoveShortcode extends Deleter<Shortcode> { private String shortcode; public RemoveShortcode(String id) { super(id); if (id == null) { throw new IllegalArgumentException("po...
mit
mutatis/WereWolfTheApocalipse
Assets/Script/Interface/LoadScene.cs
454
using UnityEngine; using System.Collections; using UnityEngine.SceneManagement; public class LoadScene : MonoBehaviour { public string sceneName; public int tipo; void Start () { if (tipo == 0) { StartCoroutine("GO"); } } public void Muda() { Scene...
mit
csuffyy/Orc.FilterBuilder
src/Orc.FilterBuilder/Orc.FilterBuilder.Shared/Models/Interfaces/IPropertyMetadata.cs
891
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="IPropertyMetadata.cs" company="Orcomp development team"> // Copyright (c) 2008 - 2014 Orcomp development team. All rights reserved. // </copyright> // ------------------------...
mit
lanamolana/package
Lana/User/resources/views/profile/petugas.blade.php
984
@extends("LanaTemplate::one-column") @section("content") <div class="container"> <div class="col-md-12"> <h2>My Profile</h2> <br> <table class="table table-striped table-bordered table-hover table-condensed"> <thead> <th>No</th> <th>Nama</th> <th>NIP</th> <th>Alamat</th> <th>Email</th> <th>Telp</th> <th...
mit
lukeed/arr
tests/forEach.js
1032
'use strict'; const test = require('tape'); const fn = require('../packages/forEach'); const foo = ['a', 'b', 'c']; const bar = ['a', undefined, void 0, , 'b']; test('@arr/forEach', t => { let x='', y=''; fn(foo, (val, idx, arr) => { x += `${val}-${idx}-${arr.length}`; }); foo.forEach((val, idx, arr) => { y...
mit
chcbaram/FPGA
zap-2.3.0-windows/papilio-zap-ide/hardware/papilio/avr8/cores/arduino/HardwareSerial.cpp
8023
/* HardwareSerial.cpp - Hardware serial library for Wiring Copyright (c) 2006 Nicholas Zambetti. All right reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version...
mit
Alec-WAM/CrystalMod
src/main/java/alec_wam/CrystalMod/entities/accessories/ModelWolfArmor.java
2485
package alec_wam.CrystalMod.entities.accessories; import alec_wam.CrystalMod.util.ModLogger; import net.minecraft.client.model.ModelRenderer; import net.minecraft.client.model.ModelWolf; import net.minecraftforge.fml.common.ObfuscationReflectionHelper; import net.minecraftforge.fml.relauncher.Side; import net.m...
mit
AlloyTeam/Nuclear
components/icon/esm/highlight-off-rounded.js
547
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M13.89 8.7L12 10.59 10.11 8.7a.9959.9959 0 00-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 8.7 13.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l1.89 1.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02...
mit
guiwoda/phpci-contracts
src/Builder.php
2597
<?php /** * PHPCI - Continuous Integration for PHP * * @copyright Copyright 2014, Block 8 Limited. * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md * @link https://www.phptesting.org/ */ namespace PHPCI\Contracts; use Psr\Log\LoggerInterface; use Psr\Log\LogLevel; /** * PHPCI ...
mit
Mangopay/mangopay2-java-sdk
src/main/java/com/mangopay/core/interfaces/BankAccountDetails.java
146
package com.mangopay.core.interfaces; /** * Marker interface for classes with bank account details. */ public interface BankAccountDetails { }
mit
Dutheil/AnagramGameFR
AnagramGameFR/Dependencies/Words.cs
395
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AnagramGameFR.Dependencies { public class Words { public Themes _theme { get; internal set; } public string _word { get; internal set; } public Words(Themes theme, string...
mit
xtina-starr/force
src/desktop/apps/auction/components/artwork_browser/header/__tests__/HeaderMobile.test.js
1726
import renderTestComponent from "desktop/apps/auction/__tests__/utils/renderTestComponent" import HeaderMobile from "desktop/apps/auction/components/artwork_browser/header/HeaderMobile" import sinon from "sinon" const rewire = require("rewire")("../../../../actions/artworkBrowser") describe("auction/components/artwor...
mit
muyinchen/migoShop
migo-sso/src/main/java/com/migo/sso/controller/LoginController.java
2667
package com.migo.sso.controller; import com.migo.pojo.MigoResult; import com.migo.sso.service.LoginService; import com.migo.utils.ExceptionUtil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.converter.json.MappingJacksonValue; import org.springframework.util.StringUtils...
mit
cristianosoares/Sistema-Dotz
application/forms/VisualizarDestinatario.php
6823
<?php class Application_Form_VisualizarDestinatario extends Zend_Form { public function init() { /* Form Elements & Other Definitions Here ... */ $this->setName('FormularioDestinatario'); $id = new Zend_Form_Element_Hidden('fk_pedido'); $id->addFilter('Int')...
mit
yannisgu/capercali
src/Capercali.WPF/ViewModel/EventRunners/EditEventRunnerViewModel.cs
1521
using System; using System.Collections.Generic; using System.Reactive.Linq; using System.Windows.Navigation; using Capercali.DataAccess.Services; using Capercali.Entities; using Capercali.WPF.ViewModel.Main; using ReactiveUI; namespace Capercali.WPF.ViewModel.EventRunners { public class EditEventRunnerViewModel :...
mit
potworny/design-patterns
src/ObserverPatternBundle/ObserverPatternBundle.php
137
<?php namespace ObserverPatternBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class ObserverPatternBundle extends Bundle { }
mit
espadana/surveyjs
src/entries/chunks/localization.ts
35
import '../../localization/farsi';
mit
the-blue-alliance/the-blue-alliance
src/backend/tasks_io/datafeeds/parsers/fms_api/tests/test_fms_api_match_tiebreaker.py
25352
import datetime from unittest.mock import Mock import pytest from google.appengine.ext import ndb from google.auth.credentials import AnonymousCredentials from backend.common.consts.alliance_color import AllianceColor from backend.common.consts.comp_level import CompLevel from backend.common.helpers.match_helper impo...
mit
reunono/CorgiEngineExtensions
MultipleWeapons/MultipleWeaponsInputManager.cs
2326
using MoreMountains.CorgiEngine; using MoreMountains.Tools; using UnityEngine; namespace CorgiEngineExtensions { [AddComponentMenu("Corgi Engine/Managers/Multiple Weapons Input Manager")] public class MultipleWeaponsInputManager : InputManager { // how many weapons a single character can handle at...
mit
Delinero/php-rabbitmq
src/ClientInterface.php
338
<?php /** * @author Levin Mauritz <l.mauritz@delinero.de> * */ namespace PhpRabbitMq; interface ClientInterface { public function publish($data, string $routingKey, string $exchange = ''); public function rpcCall($data, string $routingKey, string $exchange = '', int $timeout = 30); public function g...
mit
KataevAlexander/Silex-Controllers
application/core/vendor/traits/LocalizationTrait.php
721
<?php namespace core\vendor\traits; use Symfony\Component\Yaml\Yaml; trait LocalizationTrait { public function addLocalization($path, $locale = null) { $locale = is_null($locale) ? $this['locale'] : $locale; $way = sprintf('%s/data/localization/%s/%s.yml', DR, trim($path, '/'), $locale); ...
mit
aindenko/awsforumapi
src/AppBundle/DependencyInjection/Configuration.php
402
<?php namespace AppBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; class Configuration implements ConfigurationInterface { public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder()...
mit
N4SJAMK/alkobot
index.js
1334
import request from 'superagent'; import { scheduleJob } from 'node-schedule'; const MONDAY = 1; const TUESDAY = 2; const WEDNESDAY = 3; const THURSDAY = 4; const FRIDAY = 5; const SATURDAY = 6; const SUNDAY = 0; /** * */ const beer = [ 'http://media.riemurasia.net/albumit/mmedia/3g/gok/xixk/2...
mit
qvazzler/Flexget
flexget/plugins/output/sms_ru.py
3532
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin import logging import hashlib from flexget import plugin from flexget.event import event from flexget.utils.template import RenderError log = logging.getLogger("sms_ru") sms_...
mit
arkon/Markus
app/models/assignment.rb
38372
require 'csv_invalid_line_error' class Assignment < ActiveRecord::Base include RepositoryHelper MIN_PEER_REVIEWS_PER_GROUP = 1 has_many :rubric_criteria, -> { order(:position) }, class_name: 'RubricCriterion', dependent: :destroy has_many :flexible_criteria, -> { order(...
mit
jakevn/MassiveNet
Unity3d.Examples/Assets/MassiveNet/Examples/NetAdvanced/Client/Scripts/TextFieldInput.cs
5579
// MIT License (MIT) - Copyright (c) 2014 jakevn - Please see included LICENSE file using System; using System.Collections.Generic; using System.Linq; using UnityEngine; namespace Massive.Examples.NetAdvanced { public class TextFieldInput : MonoBehaviour { private static readonly List<TextFieldInput> Fi...
mit
IdeaSolutionsOnline/ERP4R
core/objs/gap_senha.py
24102
# !/usr/bin/env python3 # -*- encoding: utf-8 -*- """ ERP+ """ __author__ = 'CVtek dev' __credits__ = [] __version__ = "1.0" __maintainer__ = "CVtek dev" __status__ = "Development" __model_name__ = 'gap_senha.GAPSenha' import auth, base_models from orm import * from form import * try: from my_gap_servico import GAP...
mit
Tasarinan/Ufoco
src/components/editor/formattingButtons.js
2795
import React, { PureComponent } from "react"; import { RichUtils } from "draft-js"; import PropTypes from "prop-types"; import cx from "classnames"; const STROKE_WIDTH_DEFAULT = 2; const STROKE_WIDTH_SELECTED = 3; export default class FormattingButtons extends PureComponent { static propTypes = { textEditorStat...
mit
gsteinbacher/RandomOrgSharp
Obacher.RandomOrgSharp.JsonRPC/Method/StringSignedMethod.cs
2753
using Obacher.RandomOrgSharp.Core; using Obacher.RandomOrgSharp.Core.Request; using Obacher.RandomOrgSharp.Core.Response; using Obacher.RandomOrgSharp.Core.Service; using Obacher.RandomOrgSharp.JsonRPC.Response; namespace Obacher.RandomOrgSharp.JsonRPC.Method { /// <summary> /// This class is a wrapper class ...
mit
kdjlaw/kdjlaw.github.io
linkchanger.rb
201
pattern = /link_to '(.+)', '(.+)\/'/ Dir['**/*.slim'].each do |fname| text = File.read(fname).gsub(pattern, 'link_to \'\1\', \'\2/index.html\'') File.open(fname, 'w') do |f| f.write(text) end end
mit
SLP-ETR-public/EV3Practice
MultiTask03_01/src/SoundClass.java
316
import lejos.hardware.Sound; import lejos.utility.Delay; public class SoundClass implements Runnable { private int time = 0; @Override public void run() { while (time <= 10000) { Sound.beep(); Delay.msDelay(100); time += 100; } } }
mit
gypsydave5/chitter
features/step_definitions/web_steps.rb
4537
# Taken from the cucumber-rails project. # IMPORTANT: This file is generated by cucumber-sinatra - edit at your own peril. # It is recommended to regenerate this file in the future when you upgrade to a # newer version of cucumber-sinatra. Consider adding your own code to a new file # instead of editing this one. Cucum...
mit
pritchardtw/ReactPersonalSite
src/components/Web/health_app.js
1089
import React, { Component } from 'react'; import Project from '../project'; export default class HealthApp extends Component { render() { const images = [ '../../static/images/web/true_health1.png', '../../static/images/web/true_health2.png', '../../static/images/web/true_health3.png' ]; ...
mit
vivekmittal/javaq
src/main/java/com/javaq/construct/JoinType.java
298
package com.javaq.construct; /** * @author Vivek Mittal */ public enum JoinType { INNER_JOIN("INNER JOIN"), LEFT_JOIN("LEFT JOIN"); private String type; private JoinType(String type) { this.type = type; } public String getType() { return type; } }
mit
simongfxu/dcagent
gulpfile.js
1474
/*jshint node:true*/ var rename = require('gulp-rename') var jshint = require('gulp-jshint') var gulp = require('gulp') var babel = require('gulp-babel') var rollup = require('gulp-rollup') var uglify = require('gulp-uglify') var sourceFile = 'dist/dcagent.v2.src.js' var options = { format: 'umd', moduleName: 'DCA...
mit
gamejolt/gamejolt
src/_common/social/youtube/sdk/sdk.service.ts
698
export class YoutubeSdk { private static isBootstrapped = false; static load() { if (import.meta.env.SSR) { return; } if (!this.isBootstrapped) { let bootstrapLib = (d: any, s: any, id: any) => { let js: any, fjs = d.getElementsByTagName(s)[0]; if (!d.getElementById(id)) { js = d.creat...
mit
korun/d2b
app/models/arena.rb
908
class Arena < ActiveRecord::Base BACKGROUND_CONTENT_TYPES = %w[ image/jpeg ].each(&:freeze).freeze FOREGROUND_CONTENT_TYPES = %w[ image/gif image/png ].each(&:freeze).freeze has_attached_file :background #, styles: {medium: '220x300>', thumb: '50x50>'} #, default_url: '/images/:style/miss...
mit
ApprecieOpenSource/Apprecie
public/js/validation/messages.js
363
/** * Created by hu86 on 18/08/2015. */ function validateMessage(subject, body) { if (subject == '') { errors.push('Please enter a subject'); } if (subject.length > 100) { errors.push('Your subject is too long. Please keep it below 100 characters') } if (body == '') { err...
mit
hybmg57/jobeet
lib/vendor/swiftmailer/classes/Swift/Encoder/QpEncoder.php
10074
<?php /* * This file is part of SwiftMailer. * (c) 2004-2009 Chris Corbyn * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Handles Quoted Printable (QP) Encoding in Swift Mailer. * Possibly the most accurate R...
mit