repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
tobiasrask/entity-api
src/field/field_types/field-type.js
1786
import DomainMap from 'domain-map' import system from './../../system' /** * Field type. */ class FieldType { /** * Construct field type * * @param params */ constructor(variables = {}) { this._registry = new DomainMap() this._registry.set('properties', 'fieldTypeId', variables.fieldTypeId) } ...
mit
tristil/method-todo
config/initializers/konacha.rb
212
Konacha.configure do |config| config.spec_dir = 'spec/javascripts' config.spec_matcher = /_spec\.|_test\./ config.stylesheets = %w(application) config.driver = :webkit end if defined?(Konacha)
mit
tdg5/gearo_worship
lib/reverb.rb
927
require 'faraday' module Reverb def self.queue 'reverb_requests' end def self.preprocess(keyword) if keyword.include?('(') return keyword[/(.*?)\s?\(/, 1] else return keyword end end def self.perform(request_id, keyword) conn = Faraday.new(:url => 'https://reverb.com:443') processed_keyword =...
mit
honeypotio/techmap
src/components/LoadingIndicator/Wrapper.js
180
import styled from 'styled-components'; const Wrapper = styled.div` display: flex; align-items: center; justify-content: center; height: 100%; `; export default Wrapper;
mit
Fogelholk/CleverControl
action.php
515
<?php if(is_numeric($_GET['switch'])){ $switch = escapeshellcmd($_GET['switch']); switch ($_GET['action']) { case "off": $action = "f"; break; case "on": $action = "n"; break; case "dim": if(is_numeric($_GET['dimlevel'])){ $dimlevel = escapeshellcmd($_GET['dimlevel']); } ...
mit
jelhan/croodle
api/config.default.php
289
<?php return array( /* * dataDir (String) * relative or absolute path to folder where polls are stored */ 'dataDir' => getenv('CROODLE__DATA_DIR') ?: '../data/', /* * debug (Boolean) * controls Slim debug mode */ 'debug' => getenv('CROODLE__DEBUG') ?: false );
mit
bostontrader/senmaker
src/nightmare/IntroTestLauncher.js
837
var Nightmare = require('nightmare') var LanguageSwitchTest = require('./LanguageSwitchTest') var IntroTest = require('./IntroTest') describe('Intro', () => { const url = 'http://localhost:8081' it('Should work correctly', (done) => { const nightmare = new Nightmare({show:true, width:600, h...
mit
balanced/balanced-csharp
scenarios/scenarios/api_key_list/definition.cs
17
ApiKey.Query()
mit
devbridge/BetterModules
BetterModules.Core.Web/Events/WebCoreEvents.cs
3050
using System.Web; // ReSharper disable CheckNamespace namespace BetterModules.Events // ReSharper restore CheckNamespace { public class WebCoreEvents : EventsBase<WebCoreEvents> { /// <summary> /// Occurs when a host starts. /// </summary> public event DefaultEventHandler<Sing...
mit
zhkuskov/croogo_cms_2.0
Vendor/croogo/croogo/Trackings/Test/Fixture/TrackingFixture.php
1131
<?php /** * TrackingFixture * */ class TrackingFixture extends CakeTestFixture { /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary'), 'type' => array('type' => 'string', 'null' => false, 'default' => 'Analytics', ...
mit
lbryio/lbry
torba/tests/client_tests/integration/test_transactions.py
5869
import logging import asyncio from itertools import chain from torba.testcase import IntegrationTestCase from torba.client.util import satoshis_to_coins, coins_to_satoshis class BasicTransactionTests(IntegrationTestCase): VERBOSITY = logging.WARN async def test_variety_of_transactions_and_longish_history(se...
mit
Cerebri/material-ui
lib/svg-icons/av/slow-motion-video.js
987
'use strict'; var React = require('react'); var PureRenderMixin = require('react-addons-pure-render-mixin'); var SvgIcon = require('../../svg-icon'); var AvSlowMotionVideo = React.createClass({ displayName: 'AvSlowMotionVideo', mixins: [PureRenderMixin], render: function render() { return React.createElem...
mit
muditdholakia/camx
excr1.php
4388
<?php session_start(); include("db_connect.php"); extract($_GET); $d=date("20ymd"); if($mrk=="100") { $qx=mysql_query("insert into ex_record(ex_id,u_id,date_exam,attempt_que,discard_que,marks_obtained,ex_status,total_mark,timer,random) values ('NULL','".$_SESSION['unm']."','".$d."','NULL','NULL','NULL','PENDING'...
mit
Worksite/angular-restsource
karma-e2e.conf.js
1789
// Karma configuration // Generated on Fri Aug 09 2013 09:44:05 GMT-0700 (PDT) module.exports = function (config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '', // frameworks to use frameworks: ['ng-scenario'], // list of files /...
mit
cuckata23/wurfl-data
data/nokia_111_ver1_subuadot1moz.php
206
<?php return array ( 'id' => 'nokia_111_ver1_subuadot1moz', 'fallback' => 'nokia_111_ver1', 'capabilities' => array ( 'uaprof' => 'http://nds1.nds.nokia.com/uaprof/Nokia111.1r100.xml', ), );
mit
Kanma/Ogre
PlugIns/OctreeSceneManager/src/OgreOctreeNode.cpp
6846
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2012 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person obta...
mit
erikzhouxin/CSharpSolution
NetSiteUtilities/AopApi/Request/AlipayMobilePublicAppinfoUpdateRequest.cs
2571
using System; using System.Collections.Generic; namespace EZOper.NetSiteUtilities.AopApi { /// <summary> /// AOP API: alipay.mobile.public.appinfo.update /// </summary> public class AlipayMobilePublicAppinfoUpdateRequest : IAopRequest<AlipayMobilePublicAppinfoUpdateResponse> { /// <summary...
mit
eycopia/reporter
application/third_party/reporter/models/Notify_m.php
941
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * Class Notify_m * @package Reporter\Models * @author Jorge Copia Silva <eycopia@gmail.com> * @license https://github.com/eycopia/reporter/blob/master/LICENSE */ class Notify_m extends CI_Model { public function getPeopleToNotify...
mit
broodlab/archiveboy
toolbox/configs/eslint/eslint-ts.js
1007
module.exports = { parser: "@typescript-eslint/parser", // Specifies the ESLint parser. extends: [ "plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin. "prettier/@typescript-eslint", // Uses eslint-config-prettier to disable ESLint rul...
mit
auth0/auth0-api-java
src/test/java/com/auth0/client/mgmt/ManagementAPITest.java
19603
package com.auth0.client.mgmt; import com.auth0.client.HttpOptions; import com.auth0.client.MockServer; import com.auth0.client.ProxyOptions; import com.auth0.net.RateLimitInterceptor; import com.auth0.net.Telemetry; import com.auth0.net.TelemetryInterceptor; import okhttp3.*; import okhttp3.logging.HttpLoggingInterce...
mit
superarts/supply
lib/supply/options.rb
5989
require 'fastlane_core' require 'credentials_manager' module Supply class Options def self.available_options @options ||= [ FastlaneCore::ConfigItem.new(key: :package_name, env_name: "SUPPLY_PACKAGE_NAME", short_option: "-p",...
mit
CyclopsMC/IntegratedDynamics
src/main/java/org/cyclops/integrateddynamics/infobook/pageelement/MechanicalDryingBasinRecipeAppendix.java
845
package org.cyclops.integrateddynamics.infobook.pageelement; import net.minecraft.item.ItemStack; import org.cyclops.cyclopscore.infobook.IInfoBook; import org.cyclops.integrateddynamics.RegistryEntries; import org.cyclops.integrateddynamics.core.recipe.type.RecipeMechanicalDryingBasin; /** * Mechanical drying basin...
mit
hiltongoncalves/PHPMyScrum
cake/libs/model/datasources/dbo_source.php
84825
<?php /** * Short description for file. * * PHP versions 4 and 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright not...
mit
SBUDoIT/unity-lab
core/styleguide/js/styleguide.js
19143
(function (w) { var sw = document.body.clientWidth, //Viewport Width sh = $(document).height(), //Viewport Height minViewportWidth = ishMinimum, //Minimum Size for Viewport maxViewportWidth = ishMaximum, //Maxiumum Size for Viewport viewportResizeHandleWidth = 14, //Width of the viewport drag-to-resize ...
mit
me-software/ArgeHeiwako.NET
src/ArgeHeiwako.Tests/Data/AnteilSteuerlicheLeistungsartTests.cs
25595
using ArgeHeiwako.Data; using ArgeHeiwako.Data.Common; using System; using System.Diagnostics.CodeAnalysis; using Xunit; namespace ArgeHeiwako.Tests.Data { [ExcludeFromCodeCoverage] public class AnteilSteuerlicheLeistungsartTests { private Kostenart kostenart; private Erweitert...
mit
lancecarlson/flails
rails/config/routes.rb
2442
ActionController::Routing::Routes.draw do |map| map.rubyamf_gateway 'rubyamf_gateway', :controller => 'rubyamf', :action => 'gateway' map.resources :accounts map.resources :clients map.resources :posts, :collection => {:reset => :get} map.logout '/logout', :controller => 'sessions', :action => 'destroy' ...
mit
jake1164/FuelEconomyWSC
FuelEconomyWSC/Areas/HelpPage/SampleGeneration/ImageSample.cs
1057
using System; namespace FuelEconomyWSC.Areas.HelpPage { /// <summary> /// This represents an image sample on the help page. There's a display template named ImageSample associated with this class. /// </summary> public class ImageSample { /// <summary> /// Initializes a new instance...
mit
c410echo/echo-asp
admin/browse-by-tag.aspx.cs
391
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class browsebytag : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void ods_get_tkt_bytags_Selecting(o...
mit
zumwalt/start
node_modules/gulp/node_modules/gulp-util/test/linefeed-min.js
87
var util=require("../"),should=require("should"),path=require("path");require("mocha");
mit
RawSanj/SOFRepos
SpringBootJDBCDemo/src/test/java/com/rawsanj/bootjdbc/SpringBootJdbcDemoApplicationTests.java
349
package com.rawsanj.bootjdbc; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest public class SpringBootJdbcDemoApplicationTests { @Test public...
mit
mAAdhaTTah/readlinks
client/selectors/index.js
45
export const selectProps = props$ => props$;
mit
igaster/eloquent-inheritance
src/InheritsEloquent.php
3431
<?php namespace igaster\EloquentInheritance; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Query\Builder; class InheritsEloquent extends ModelComposer{ public $query = null; // ----------------------------------------------- // Factories // ---------------------------------------...
mit
floriandejonckheere/metal_archives
lib/metal_archives/types/boolean.rb
631
# frozen_string_literal: true module MetalArchives module Types ## # Boolean type # class Boolean # rubocop:disable Lint/BooleanSymbol FALSE_VALUES = [ false, 0, "0", :"0", "f", :f, "F", :F, "false", :false, "FALSE", :FALSE, "off", :...
mit
juliangoacher/jquery.nub
docs/web/examples/blog-demo/sections/links/setup.js
63
function(){ console.log('Running main section js code.'); }
mit
rstiller/slf4ts-console
lib/slf4ts/index.ts
411
import "source-map-support/register"; import { LoggerBindings } from "slf4ts-api"; import { ConsoleLoggerBinding } from "./ConsoleLoggerBinding"; /** * Instances a new {@link ConsoleLoggerBinding} * * @export * @param {LoggerBindings} registry The bindings collection to register with. */ module.exports = functio...
mit
kbhaines/psychic-rat
log/log.go
515
package log import ( "context" "fmt" "log" ) const ( logLevel = " LOG" errorLevel = "ERROR" ) func Logf(c context.Context, s string, args ...interface{}) { logf(c, logLevel, s, args...) } func Errorf(c context.Context, s string, args ...interface{}) { logf(c, errorLevel, s, args...) } func logf(c context...
mit
hehonghui/simpledb
database/src/main/java/com/simple/database/cursor/AutoCloseCursor.java
1076
package com.simple.database.cursor; import android.database.Cursor; import android.database.CursorWrapper; import android.database.sqlite.SQLiteCursor; import android.util.Log; /** * 确保 Cursor对象会被正确的关闭 * Created by mrsimple on 19/4/16. */ public class AutoCloseCursor extends CursorWrapper { public AutoCloseCu...
mit
dlras2/HashingLibrary
BitFn.HashingLibrary.Tests/Algorithms/MurmurHash3/HashSize.cs
552
using Microsoft.VisualStudio.TestTools.UnitTesting; using Run00.MsTest; namespace BitFn.HashingLibrary.Tests.Algorithms.MurmurHash3 { [TestClass] [CategorizeByConventionClass(typeof(HashSize))] public class HashSize { [TestMethod] [CategorizeByConvention] public void WhenGotten_ShouldReturnConstant() { ...
mit
jtauber/Rev
rev/__init__.py
23
from .core import Repo
mit
CollDev/petramas
src/Petramas/MainBundle/Controller/BoletaMaterialController.php
8040
<?php namespace Petramas\MainBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Config...
mit
BookedOut/CRToastAndroid
CRToastLibrary/src/main/java/com/tagantroy/crtoast/CRToast.java
15845
package com.tagantroy.crtoast; import android.annotation.TargetApi; import android.app.ActionBar; import android.app.Activity; import android.content.Context; import android.graphics.Color; import android.graphics.PixelFormat; import android.graphics.Typeface; import android.graphics.drawable.Drawable; import android....
mit
jaredcsullivan/RESTful-MEAN-TodoApp
gulpfile.js
1011
var gulp = require('gulp'), nodemon = require('gulp-nodemon'), jshint = require('gulp-jshint'), sass = require('gulp-sass'), sourcemaps = require('gulp-sourcemaps'); gulp.task('default', ['watch']); gulp.task('start', function () { nodemon({ script: './bin/www', env: { 'NODE_ENV': 'developm...
mit
go-oleg/debug-live
src/debugLive.js
625
var net = require('net'); module.exports = function(evalFunc,port) { if(!port) { throw new Error("Please specify the `port` as the second parameter to Debug Live."); } var server = net.createServer(function (socket) { socket.write("Welcome to Debug Live:\n>"); socket.on("data", function(data) { var resul...
mit
FREEZX/socket.io
lib/namespace.js
5006
/** * Module dependencies. */ var Socket = require('./socket'); var Emitter = require('events').EventEmitter; var parser = require('socket.io-parser'); var debug = require('debug')('socket.io:namespace'); var hasBin = require('has-binary-data'); /** * Module exports. */ module.exports = exports = Namespace; /*...
mit
teoreteetik/api-snippets
sync/rest/streams/create-stream/create-stream.6.x.py
444
# Download the Python helper library from twilio.com/docs/python/install from twilio.rest import Client # Your Account Sid and Auth Token from twilio.com/user/account account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" auth_token = "your_auth_token" client = Client(account_sid, auth_token) stream = client.sync \ ....
mit
exclusivecoin/Exclusive
src/qt/locale/bitcoin_zh_CN.ts
125091
<?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_CN" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About ExclusiveCoin</source> <translation>关于黑币</translation> </message> <message> <locati...
mit
yassdg/cert-sn
app/cache/dev/appDevUrlGenerator.php
39806
<?php use Symfony\Component\Routing\RequestContext; use Symfony\Component\Routing\Exception\RouteNotFoundException; use Psr\Log\LoggerInterface; /** * appDevUrlGenerator * * This class has been auto-generated * by the Symfony Routing Component. */ class appDevUrlGenerator extends Symfony\Component\Routing\Genera...
mit
microsoft/vscode
src/vs/workbench/api/browser/mainThreadWindow.ts
2669
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
mit
surin675/query
Model/16pf.php
2297
<?php class Question16PF { public function sertQuestion16PF($group){ include("ConnectDatabase.php"); $sql_sert = "SELECT `q_16pf_id`, `question`, `choice1`, `choice2`, `choice3`, `pers_type`, `Positive`, `negative` FROM `question_16pf` WHERE `pers_type`='$group'"; ...
mit
AndrewZheng/vue-learn
gulpfile.js
1887
/** * Created by andrew on 2017/9/17. */ 'use strict'; var gulp = require('gulp'); var webpack = require('webpack'); //用于gulp传递参数 var minimist = require('minimist'); var gutil = require('gulp-util'); var src = process.cwd() + '/src'; var assets = process.cwd() + '/dist'; var knownOptions = { string: 'env', ...
mit
robwormald/gitrank
app/packages/npm/hoek@2.13.0/lib/index.js
19261
/* */ (function(Buffer, process) { var Crypto = require("crypto"); var Path = require("path"); var Util = require("util"); var Escape = require("./escape"); var internals = {}; exports.clone = function(obj, seen) { if (typeof obj !== 'object' || obj === null) { return obj; } seen = seen |...
mit
jgretz/ReactNativeInTheWild
code/app/src/features/shared/styles/loading.js
158
import {StyleSheet} from 'react-native'; export default StyleSheet.create({ loading: { fontSize: 20, textAlign: 'center', margin: 10, }, });
mit
anarchicknight/nativescript-texttospeech
demo/app/main-page.ts
375
import { EventData } from 'tns-core-modules/data/observable'; import { Page } from 'tns-core-modules/ui/page'; import { HelloWorldModel } from './main-view-model'; // Event handler for Page "navigatingTo" event attached in main-page.xml export function navigatingTo(args: EventData) { const page = args.object as Page...
mit
dongdiemthuy/nutrixs-ng-admin
src/javascripts/test/e2e/spec.js
1158
describe('ng-admin', function() { describe('Dashboard', function () { it('should display a navigation menu linking to all entities', function () { browser.get(browser.baseUrl); $$('.nav li').then(function (items) { expect(items.length).toBe(3); expect...
mit
siddontang/polaris
router.go
1922
package polaris import ( "fmt" "net/http" "regexp" "strings" ) type router struct { literalLocs map[string]*location regexpLocs []*location app *App } func newRouter(app *App) *router { r := new(router) r.app = app r.literalLocs = make(map[string]*location) r.regexpLocs = make([]*location, 0) ...
mit
stratumgs/stratumgs-python-client
sgsclient/example/tictactoe/manual.py
2509
""" .. module sgsclient.example.tictactoe.manual An example client for TicTacToe that prompts the user for input. When executed directly it will call :func:`sgsclient.main` with ``supported_games = ["tictactoe"]`` and ``max_games = 1``. """ import functools from sgsclient import StratumGSClientInstance, main _BOAR...
mit
sh0umik/fhir-protobuff
goal.pb.go
14072
// Code generated by protoc-gen-go. DO NOT EDIT. // source: goal.proto package buffer import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf type Goal struct...
mit
ministryofjustice/manchester_traffic_offences_pleas
apps/feedback/migrations/0004_auto_20150902_1040.py
710
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('feedback', '0003_auto_20150902_0933'), ] operations = [ migrations.AddField( model_name='userratingaggregate', ...
mit
reyesoft/ngx-jsonapi
src/tests/factories/photos.service.ts
702
import { Resource } from '../../resource'; import { Service } from '../../service'; export class Photo extends Resource { public attributes = { title: '', uri: '', imageable_id: '', created_at: new Date(), updated_at: new Date() }; public type = 'photos'; public...
mit
jaharkes/home-assistant
homeassistant/core.py
39312
""" Core components of Home Assistant. Home Assistant is a Home Automation framework for observing the state of entities and react to changes. """ # pylint: disable=unused-import, too-many-lines import asyncio from concurrent.futures import ThreadPoolExecutor import enum import logging import os import re import signa...
mit
Carrooi/Nette-Conversations
src/Model/Entities/IConversation.php
473
<?php namespace Carrooi\Conversations\Model\Entities; /** * * @author David Kudera */ interface IConversation { /** * @return int */ public function getId(); /** * @return \DateTime */ public function getCreatedAt(); /** * @return \Carrooi\Conversations\Model\Entities\IUser */ public functi...
mit
fgbs/metrics
lib/configobj/configobj.py
89711
# configobj.py # A config file reader/writer that supports nested sections in config files. # Copyright (C) 2005-2014: # (name) : (email) # Michael Foord: fuzzyman AT voidspace DOT org DOT uk # Nicola Larosa: nico AT tekNico DOT net # Rob Dennis: rdennis AT gmail DOT com # Eli Courtwright: eli AT courtwright DOT org #...
mit
pachay/sf2-hwioab
src/Ailove/UserBundle/AiloveUserBundle.php
128
<?php namespace Ailove\UserBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class AiloveUserBundle extends Bundle { }
mit
rmagick/rmagick.github.io
ex/texture_fill_to_border.rb
926
#!/home/software/ruby-1.8.7/bin/ruby -w require 'RMagick' # Demonstrate the Image#texture_fill_to_border method # This example is nearly identical to the color_fill_to_border example. before = Magick::Image.new(200,200) { self.background_color = 'white' self.border_color = 'black' } before.border!(1,1,'bl...
mit
jtbaldwin/Alexa-Trash-Day
src/test/java/alexatesting/DataRequestTest.java
5090
package alexatesting; import static org.junit.Assert.*; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * JUnit tests for {@link TestDataRequest} class. * * @author J. Todd Baldwin * @see <a href="https://deve...
mit
caiocomandulli/lib-download-manager
src/com/comandulli/lib/download/DownloadManager.java
3459
package com.comandulli.lib.download; import java.util.List; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.os.IBinder; import com.comandulli.lib.download.DownloadService.DownloadBinder; /** * The type Dow...
mit
vertiman/node-db-migrate
lib/driver/index.js
3474
var internals = {}; internals.mod = internals.mod || {}; internals.mod.log = require('../log'); internals.mod.type = require('../data_type'); var Shadow = require('./shadow'); var log = internals.mod.log; var tunnel = require('tunnel-ssh'), Promise = require('bluebird'), SeederInterface = require('../interface...
mit
edosgn/colossus-sit
src/AppBundle/Form/CfgClaseAccidenteType.php
765
<?php namespace AppBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; class CfgClaseAccidenteType extends AbstractType { /** * {@inheritdoc} */ public function buildForm(FormBuilderInterface $...
mit
doctorjbeam/railpagecore
lib/News/Index.php
562
<?php /** * News classes * @since Version 3.0.1 * @version 3.0.1 * @author Michael Greenhill * @package Railpage * @copyright Copyright (c) 2012 Michael Greenhill */ namespace Railpage\News; // Make sure the parent class is loaded #require_once(__DIR__ . DS . "class.news.base.php"); ...
mit
QuincyWork/AllCodes
Cpp/Codes/Algorithm/Tree/TrieTree.cpp
4904
#include <gtest/gtest.h> #include <list> using namespace std; class TrieTree { public: const static int MAX_CHILD_KEY_COUNT = 30; const static char STRING_END_TAG = '\xFF'; struct TrieNode { char nodeValue; int nodeFreq; list<TrieNode*> childNodes[MAX_CHILD_KEY_COUNT]; //ΪÁ˱ÜÃâÕâÀïÊý×éÌ«´ó£¬²ÉÓÃÊý×é+...
mit
alpayOnal/flj
flj_android/app/src/main/java/com/muatik/flj/flj/UI/views/JobViewHolder.java
2819
package com.muatik.flj.flj.UI.views; import android.content.Intent; import android.support.v7.widget.RecyclerView; import android.text.format.DateUtils; import android.view.View; import android.widget.TextView; import com.muatik.flj.flj.R; import com.muatik.flj.flj.UI.activities.JobDetail; import com.muatik.flj.flj.U...
mit
molstar/molstar
src/mol-util/color/spaces/lab.ts
4796
/** * Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> * * Color conversion code adapted from chroma.js (https://github.com/gka/chroma.js) * Copyright (c) 2011-2018, Gregor Aisch, BSD license */ import { Color } fr...
mit
factcenter/inchworm
src/test/java/org/factcenter/inchworm/ops/concrete/CircuitMuxRamTest.java
1306
package org.factcenter.inchworm.ops.concrete; import org.factcenter.inchworm.*; import org.junit.runners.Parameterized; import java.util.Arrays; import java.util.Collection; public class CircuitMuxRamTest extends MemoryAreaTest { // {blockSize,blockCount} parameters for testing. @Parameterized.Parameters ...
mit
CorbinDallas/Rendition
Rendition.Core/cs/Utilities/Utilities.cs
36017
/* Copyright (c) 2012 Tony Germaneri 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, merge, publish, distribu...
mit
swapnilchincholkar/josh-library
config/routes.rb
1623
Rails.application.routes.draw do devise_for :users # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes". # You can have the root of your site routed with "root" root 'application#index' # Example of regular route: # get...
mit
kiskolabs/splendidbacon
spec/controllers/broadcast_reads_controller_spec.rb
65
require 'spec_helper' describe BroadcastReadsController do end
mit
geoffsmiller/RetroTechClub
retrotechclub/models/game.py
3027
from retrotechclub import db game_master_platform = db.Table( 'game_master_platform', db.Column('game_master_id', db.Integer, db.ForeignKey('game_master.id')), db.Column('platform_id', db.Integer, db.ForeignKey('platform.id')) ) game_master_publisher = db.Table( 'game_master_publisher', db.Column(...
mit
phoenix-scholars/angular-pluf
Gruntfile.js
15413
/* * Copyright (c) 2015 Phoenix Scholars Co. (http://dpq.co.ir) * * 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
acidvertigo/willibert
Abstraction/Process.php
191
<?php /*********************************************** * Process abstraction. **********************************************/ namespace Willibert\Abstraction; abstract class Process { }
mit
pydupont/CV
inc/sendEmail.php
2085
<?php // Replace this with your own email address $siteOwnersEmail = 'pierreyves.dupont@gmail.com'; if($_POST) { $name = trim(stripslashes($_POST['contactName'])); $email = trim(stripslashes($_POST['contactEmail'])); $subject = trim(stripslashes($_POST['contactSubject'])); $contact_message =...
mit
rajeshwarn/MailKit
MailKit/Net/Imap/ImapCommand.cs
17854
// // ImapCommand.cs // // Author: Jeffrey Stedfast <jeff@xamarin.com> // // Copyright (c) 2013-2014 Xamarin Inc. (www.xamarin.com) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software with...
mit
ForestGuardian/ForestGuardianBackend
spec/controllers/modis_data_controller_spec.rb
86
require 'rails_helper' RSpec.describe ModisDataController, type: :controller do end
mit
floatinglacier/mastercard-api-explorer
packages/insomnia-httpsnippet/src/helpers/reducer.js
354
'use strict' module.exports = function (obj, pair) { if (obj[pair.name] === undefined) { obj[pair.name] = pair.value return obj } if (Array.isArray(obj[pair.name])) { obj[pair.name].push(pair.value) return obj } // convert to array var arr = [ obj[pair.name], pair.value ] obj...
mit
seanemmer/electrode
modules/charges/server/models/charges.server.model.js
911
'use strict'; /** * Module dependencies. */ var _ = require('lodash'), mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Charge Schema */ var ChargeSchema = new Schema({ vehicle: { type: Schema.ObjectId, ref: 'Vehicle', index: true, required: true }, startTime: { type: Date, requi...
mit
zniper/automag
magazine/apps/content/admin.py
3009
import logging from django.contrib import admin from django.contrib.flatpages.models import FlatPage from django.contrib.flatpages.admin import FlatPageAdmin from django.contrib.flatpages.forms import FlatpageForm from django import forms from tinymce.widgets import TinyMCE from articles.admin import ArticleAdmin as...
mit
frc2171/website-2171
robodogs/static/js/landing.js
1136
$(function() { /* ======================== TYPING ANIMATION ======================== */ var $robodogs = $('#robodogs > span') $robodogs.typed({ strings: $('#robodogs').attr("data-elements").split(","), typeSpeed: 100, backDelay: 3000, loop: true }); ...
mit
l496501043/edpx-zhixin
env/phplib/ak/aclient/frame/source.class.php
537
<?php /*************************************************************************** * * Copyright (c) 2010 Baidu.com, Inc. All Rights Reserved * **************************************************************************/ /** * @file frame/source.class.php * @author wangweibing(com@baidu.com) * @date 2010/...
mit
DDTH/ddth-dao
ddth-dao-core/src/main/java/com/github/ddth/dao/utils/DatabaseVendor.java
390
package com.github.ddth.dao.utils; /** * JDBC driver vendor info. * * @author Thanh Nguyen <btnguyen2k@gmail.com> * @since 0.8.3 */ public enum DatabaseVendor { UNKNOWN(0), MYSQL(10), POSTGRESQL(20), MSSQL(30), ORACLE(40); private final int value; DatabaseVendor(int value) { this.value = va...
mit
digibyte/digibytego
src/js/controllers/preferencesBwsUrl.js
1602
'use strict'; angular.module('copayApp.controllers').controller('preferencesBwsUrlController', function($scope, $log, $stateParams, configService, applicationService, profileService, storageService, appConfigService) { $scope.success = null; var wallet = profileService.getWallet($stateParams.walletId); ...
mit
dkacban1/repo3
app/cache/dev/twig/8a/87/e47bebb0c4f107165f7005c502a8.php
7152
<?php /* TwigBundle:Exception:traces.html.twig */ class __TwigTemplate_8a87e47bebb0c4f107165f7005c502a8 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } protected...
mit
dbisUnibas/cineast
cineast-core/src/main/java/org/vitrivr/cineast/core/db/json/JsonFileWriter.java
3899
package org.vitrivr.cineast.core.db.json; import com.google.gson.JsonArray; import com.google.gson.JsonObject; import com.google.gson.JsonPrimitive; import org.vitrivr.cineast.core.data.ReadableFloatVector; import org.vitrivr.cineast.core.db.AbstractPersistencyWriter; import org.vitrivr.cineast.core.db.PersistentTup...
mit
dumplie/dumplie
src/Dumplie/SharedKernel/Application/Exception/ServiceContainer/ServiceNotFoundException.php
428
<?php declare (strict_types = 1); namespace Dumplie\SharedKernel\Application\Exception\ServiceContainer; class ServiceNotFoundException extends Exception { /** * @param string $id * @return ServiceNotFoundException */ public static function withId(string $id) : ServiceNotFoundException { ...
mit
cpak/grunt-extjs-dependencies
tasks/lib/parser.js
13784
'use strict'; function ExtClass(params) { this.names = params.names; this.parentName = params.parentName; this.dependencies = params.dependencies || []; this.src = params.src; this.path = params.path; this._isClass = true; this.isOverride = params.isOverride || false; } exports.init = fun...
mit
tweetdeck/twitter-search-query-parser
src/__tests__/parse-stringify.js
5647
import test from 'ava'; import {parse, stringify} from '..'; const testCases = [ [ 'single word query', 'simple', ['And', [['Including', ['Text', 'simple']]]] ], [ 'cashtag', '$CASH', ['And', [['Including', ['Text', '$CASH']]]] ], [ 'urls', 'http://a.b https://twitter.com/beep...
mit
jamestao/azure-sdk-for-net
src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/HierarchicalEntityModel.cs
1889
// <auto-generated> // 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 cause incorrect behavior and will be lost if the code is // re...
mit
zombo/atomcoin-new
src/qt/askpassphrasedialog.cpp
9696
#include "askpassphrasedialog.h" #include "ui_askpassphrasedialog.h" #include "guiconstants.h" #include "walletmodel.h" #include <QMessageBox> #include <QPushButton> #include <QKeyEvent> AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) : QDialog(parent), ui(new Ui::AskPassphraseDialog), ...
mit
marouanevoid/wbb-refonte
src/WBB/BarBundle/Tests/Controller/DefaultControllerTest.php
396
<?php namespace WBB\BarBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class DefaultControllerTest extends WebTestCase { public function testIndex() { $client = static::createClient(); $crawler = $client->request('GET', '/hello/Fabien'); $this->assertTr...
mit
brunobertechini/Abp.NServiceBus
Abp.NServiceBus.EntityFramework/Migrations/SeedData/TenantRoleAndUserBuilder.cs
2680
using System.Linq; using Abp.Authorization; using Abp.Authorization.Roles; using Abp.Authorization.Users; using Abp.MultiTenancy; using Abp.NServiceBus.Authorization; using Abp.NServiceBus.Authorization.Roles; using Abp.NServiceBus.EntityFramework; using Abp.NServiceBus.Users; namespace Abp.NServiceBus.Migrations.Seed...
mit
travis-ci/vsphere-janitor
mock/virtual_machine.go
2535
package mock import ( "context" "errors" "sync" "time" vspherejanitor "github.com/travis-ci/vsphere-janitor" ) type VMLister struct { VMData map[string][]*VMData mutex sync.Mutex poweredOff map[string][]string destroyed map[string][]string } func NewVMLister(data map[string][]*VMData) *VMLister { p...
mit
mathiasbynens/unicode-data
6.1.0/blocks/Kaithi-symbols.js
1421
// All symbols in the Kaithi block as per Unicode v6.1.0: [ '\uD804\uDC80', '\uD804\uDC81', '\uD804\uDC82', '\uD804\uDC83', '\uD804\uDC84', '\uD804\uDC85', '\uD804\uDC86', '\uD804\uDC87', '\uD804\uDC88', '\uD804\uDC89', '\uD804\uDC8A', '\uD804\uDC8B', '\uD804\uDC8C', '\uD804\uDC8D', '\uD804\uDC8E', '\uD...
mit