repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
dmytrokuzmin/RepairisCore
src/Repairis.Application/Sessions/Dto/GetCurrentLoginInformationsOutput.cs
269
namespace Repairis.Sessions.Dto { public class GetCurrentLoginInformationsOutput { public ApplicationInfoDto Application { get; set; } public UserLoginInfoDto User { get; set; } public TenantLoginInfoDto Tenant { get; set; } } }
mit
waynemunro/orleans
src/Orleans.Runtime/Catalog/ActivationData.cs
35365
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading; using System.Threading.Tasks; using Orleans.CodeGeneration; using Orleans.Core; using Orleans.GrainDirectory; using Orleans.Runtime.Configuration; using Orleans.Runtime.Scheduler; using...
mit
mikechernev/grumphp
spec/GrumPHP/Linter/Xml/XmlLintErrorSpec.php
831
<?php namespace spec\GrumPHP\Linter\Xml; use GrumPHP\Linter\LintError; use PhpSpec\ObjectBehavior; use Prophecy\Argument; class XmlLintErrorSpec extends ObjectBehavior { function let() { $this->beConstructedWith(LintError::TYPE_ERROR, 0, 'error', 'file.txt', 1, 1); } function it_is_initializ...
mit
robertusengel/aoemod
network/TowncenterMessage.java
1753
package com.robert.aoemod.network; import com.robert.aoemod.blocks.towncentergui.TileEntityTowncenter; import io.netty.buffer.ByteBuf; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.util.math.BlockPos; import net.minecraftforge.fml.common.network.simpleimpl.IMessage; import net.minecraftforge...
mit
demoiselle/generator-demoiselle
Utils/templates/backend/src/main/java/app/dao/_pojoDAO.java
558
package <%= package.lower %>.<%= project.lower %>.dao; import <%= package.lower %>.<%= project.lower %>.entity.<%= name.capital %>; import java.util.UUID; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import org.demoiselle.jee.crud.AbstractDAO; public class <%= name.capital %>DA...
mit
aattsai/Pathway
pipeline/app/assets/javascripts/controllers/ProjectController.js
1452
'use strict' angular.module('pathwayApp') .controller('ProjectController', function ($scope, $http, $stateParams, $state) { $http({method: 'GET', url: '/api/pathways/' + $stateParams.pathway_id + '/projects/' + $stateParams.id }).success(function(data, status){ $scope.project = data }) $scope.proj...
mit
vbence86/fivenations
src/js/map/FogOfWar.js
4036
import Util from '../common/Util'; import FogOfWarMasks from './FogOfWarMasks'; import EventEmitter from '../sync/EventEmitter'; const FAKE_ROW = []; const FAKE_VALUE = 0; function addFakeRows(map) { for (let i = map.getWidth() - 1; i >= 0; i -= 1) { FAKE_ROW.push(FAKE_VALUE); } } class FogOfWar { construc...
mit
Grosloup/multisite3
src/ZPB/AdminBundle/Listener/Entities/GodparentListener.php
1867
<?php /** * Created by PhpStorm. * User: Nicolas Canfrere * Date: 14/08/2014 * Time: 23:53 */ /* ____________________ __ / ______ \ { \ ___/___ / } \ { / / # } | {/ ô ô ; __} | / \__} / \ /\ <=(_ __<=...
mit
sharpninja/WorldBankBBS
WorldBankBBS.Data/IrcSystem.cs
827
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated. //...
mit
valyala/fastrpc
coarseTime.go
322
package fastrpc import ( "sync/atomic" "time" ) func coarseTimeNow() time.Time { tp := coarseTime.Load().(*time.Time) return *tp } func init() { t := time.Now() coarseTime.Store(&t) go func() { for { time.Sleep(time.Second) t := time.Now() coarseTime.Store(&t) } }() } var coarseTime atomic.Valu...
mit
google-code/banshee32
Banshee/Banshee.TrackView.Columns/Columns.cs
434
using System; using System.Collections.Generic; using System.Text; namespace Banshee.TrackView.Columns { public static class Columns { public enum PlaylistColumns { Track=0, Title, Artist, Album, Duration, Ge...
mit
aroelke/deck-editor-java
src/main/java/editor/gui/generic/TristateCheckBox.java
5325
package editor.gui.generic; import java.awt.Color; import java.awt.Component; import java.awt.Graphics; import java.awt.event.ActionListener; import java.util.HashSet; import java.util.Set; import javax.swing.Icon; import javax.swing.JCheckBox; import javax.swing.UIManager; /** * This class represents a check box w...
mit
hegistva/angular-visual
src/ts/main.ts
279
/// <amd-dependency path="ngapp" /> /// <amd-dependency path="bootstrap" /> /// <reference path="../typings/tsd.d.ts" /> import angular = require('angular'); import ngapp = require('ngapp'); export function runApp() { angular.bootstrap(document,['demoApp']); }; runApp();
mit
Shahlal47/nits
lib/Cake/Console/Command/AclShell.php
19120
<?php /** * Acl Shell provides Acl access in the CLI environment * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.tx...
mit
qodeboy/laravel-mailman
tests/ExampleTest.php
148
<?php class ExampleTest extends Orchestra\Testbench\TestCase { public function testTrueIsTrue() { $this->assertTrue(true); } }
mit
todorm85/TelerikAcademy
Projects/HikingPlanAndRescue/Source/Web/HikingPlanAndRescue.Web/App_Start/WebApiConfig.cs
616
namespace HikingPlanAndRescue.Web { using System; using System.Collections.Generic; using System.Linq; using System.Web.Http; public static class WebApiConfig { public static void Register(HttpConfiguration config) { // Web API configuration and services ...
mit
CB9TOIIIA/MyJBZooStat
views/auhorsprofile/tmpl/default.php
32788
<?php /** @var $this MyjbzoostatViewAutors */ defined( '_JEXEC' ) or die; // No direct access // dump($_POST,0,'post'); /* add Class 'JFolder */ JLoader::register('JFile', JPATH_LIBRARIES . '/joomla/filesystem/file.php'); JLoader::register('JFolder', JPATH_LIBRARIES . '/joomla/filesystem/folder.php'); if (JFol...
mit
goto-bus-stop/deku-material-svg-icons
lib/communication/contacts.js
551
var Icon = require('../icon'); var element = require('magic-virtual-element'); var clone = require('../clone'); exports.render = function render(component) { var props = clone(component.props); delete props.children; return element( Icon, props, element('path', { d: 'M20 0H4v2h16V0zM4 24h16v-2H4v2zM2...
mit
tensberg/atarist
atarist/UCE/MODULE/U_DO_EVN.C
528
/* do_evnt() wird von ne_multi() aufgerufen und verarbeitet eine AES-Message */ #define UCE_DO_EVNT 1 #include <stdio.h> #include <gemfast.h> #include <window.h> #include <uceinc.h> WORD do_evnt( e_multi) register E_MULTI *e_multi; { WORD not_done; register WORD *mbuf; mbuf = e_multi->m...
mit
loungcingzeon/library
src/index.js
326
<<<<<<< HEAD export default class sparrow{ constructor(){ this.name = "sparrow" } getname(){ return `Hello, ${this.name} !` } ======= export default class sparrow{ constructor(){ this.name = "sparrow" } getname(){ return `Hello, ${this.name} !`; } >>>>>>> 6ce8409a6ec931e47b2ef2df6878021b27abd...
mit
hisuley/Durian
releases/v1.0/framework/i18n/data/cgg_ug.php
11092
<?php /** * Locale data for 'cgg_UG'. * * This file is automatically generated by yiic cldr command. * * Copyright © 1991-2007 Unicode, Inc. All rights reserved. * Distributed under the Terms of Use in http://www.unicode.org/copyright.html. * * Copyright © 2008-2011 Yii Software LLC (http://www.yiifram...
mit
cjmarkham/param_check
lib/param_check/engine.rb
78
require 'rails' module ParamCheck class Engine < ::Rails::Engine end end
mit
calcinai/xero-php
src/XeroPHP/Models/Accounting/Receipt.php
9520
<?php namespace XeroPHP\Models\Accounting; use XeroPHP\Remote; use XeroPHP\Traits\HistoryTrait; use XeroPHP\Traits\AttachmentTrait; use XeroPHP\Models\Accounting\LineItem; class Receipt extends Remote\Model { use AttachmentTrait; use HistoryTrait; /** * Date of receipt – YYYY-MM-DD. * * @...
mit
michael-reichenauer/GitMind
GitMind/ApplicationHandling/Private/WorkingFolderService.cs
2505
using System; using GitMind.Utils; using GitMind.Utils.Git; namespace GitMind.ApplicationHandling.Private { [SingleInstance] internal class WorkingFolderService : IWorkingFolderService { private readonly ICommandLine commandLine; private readonly Lazy<IGitInfoService> gitInfo; private string workingFolder;...
mit
glipecki/watson
watson-rest/src/test/java/net/lipecki/watson/receipt/AddSameProductOnceTest.java
1912
package net.lipecki.watson.receipt; import net.lipecki.watson.event.Event; import net.lipecki.watson.product.AddProductData; import net.lipecki.watson.product.ProductAdded; import org.junit.Test; import java.util.ArrayList; import java.util.List; import static org.assertj.core.api.Assertions.assertThat; import stati...
mit
vikkio88/mister
src/main/java/com/mister/lib/model/Coach.java
474
package com.mister.lib.model; import com.mister.lib.model.enums.Module; import com.mister.lib.model.enums.Nationality; import com.mister.lib.model.generic.Person; public class Coach extends Person { private Module module; public Coach(String name, String surname, int age, Nationality nationality, Module modu...
mit
Git-Live/git-live
tests/Tests/GitLive/Command/SelfUpdateCommandTest.php
2199
<?php /** * This file is part of Git-Live * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. * * @category GitCommand * @package Git-Live * @subpackage Core * @author akito<akito-artisan@five-foxes.com> * @author suzunone<suzunone.elev...
mit
bshaffer/sfServiceContainerPlugin
lib/ServiceContainer/LoaderFileYaml.class.php
2990
<?php /* * This file is part of the symfony framework. * * (c) Fabien Potencier <fabien.potencier@symfony-project.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ /** * sfServiceContainerLoaderFileXml loads YAML files service definitions. ...
mit
mvezer/aquaman
src/server/infrastructure/RestServer.js
1201
const restify = require('restify'); const path = require('path'); const ALLOWED_VERBS = ['del', 'get', 'head', 'opts', 'post', 'put', 'patch']; class RestServer { constructor(port, name) { this.port = port; this.name = name; this.server = restify.createServer({ name }); } init() { this.server.u...
mit
neophob/lwip
lib/ImagePrototypeInit.js
20463
(function(undefined) { var Image = require('./Image'), path = require('path'), fs = require('fs'), decree = require('decree'), defs = require('./defs'), util = require('./util'), encoder = require('../build/Release/lwip_encoder'), lwip_image = require('../bui...
mit
ringoteam/Og
src/Og/Bundle/AdminBundle/Entity/CustomerHasMediaRepository.php
284
<?php namespace Og\Bundle\AdminBundle\Entity; use Doctrine\ORM\EntityRepository; /** * CustomerHasMediaRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class CustomerHasMediaRepository extends EntityRepository { }
mit
dubeme/2048-from-scratch
index.js
4835
window.onload = function() { var gameBoard = [[0,0,0,0], [0,0,0,0], [0,0,0,0], [0,0,0,0]]; var htmlGameBoard = [[0,0,0,0], [0,0,0,0], [0,0,0,0], [0,0,0,0]]; var DIR_LEFT = 0; var DIR_RIGHT = 1; var DIR_UP = 2; var DIR_DOWN = 3; var maxDouble = 0; var score = 0; var freeSpaces = 16; var moved = false; var l...
mit
alfu32/angular-mdl
src/badge/BadgeOverlap.js
883
angular.module("mdl") .directive("mdlBadgeOverlap",function mdlBadgeOverlap(mdl){ var stl=angular.element('<style id="mdlBadgeOverlap">\n\ </style>\n\ '); mdl.applyStyle(stl[0]); return { priority: 1, restrict: 'A', transclude:false, //class="material-icons mdl-badge mdl-badge--overlap" data-badge="...
mit
pebble-dev/rebblestore-api
rebbleHandlers/routehandler.go
1703
package rebbleHandlers import ( "log" "net/http" "pebble-dev/rebblestore-api/db" ) // HandlerContext is our struct for storing the data we want to inject in to each handler // we can also add things like authorization level, user information, templates, etc. type HandlerContext struct { Database *db.Handler } /...
mit
madumlao/oxAuth
Server/src/test/java/org/xdi/oxauth/uma/ws/rs/UmaScopeWSTest.java
1950
/* * oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. * * Copyright (c) 2014, Gluu */ package org.xdi.oxauth.uma.ws.rs; import static org.testng.Assert.assertEquals; import java.net.URI; import javax.ws.rs.client.Invocation.Builder; import javax.ws.rs.core....
mit
cjo9900/condition-checker-plugin
src/main/java/org/jenkinsci/plugins/conditionchecker/CheckCondition.java
3155
package org.jenkinsci.plugins.conditionchecker; /* The MIT License * * Copyright (c) 2011 Chris Johnson * * 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 ...
mit
quill18/MostlyCivilizedHexEngine
Assets/QPath/IQPathTile.cs
300
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace QPath { public interface IQPathTile { IQPathTile[] GetNeighbours(); float AggregateCostToEnter( float costSoFar, IQPathTile sourceTile, IQPathUnit theUnit ); } }
mit
verticalgrain/cookbook
config.rb
457
require 'susy' require 'compass/import-once/activate' # Require any additional compass plugins here. http_path = "/" css_dir = "stylesheets/css" sass_dir = "stylesheets/scss" images_dir = "images" javascripts_dir = "js" fonts_dir = "fonts" output_style = :expanded sourcemap = true relative_assets = true # To disab...
mit
Pragmatists/atm-example-cucumber
src/test/java/pl/pragmatists/atm/support/dsl/CashDispenserDomainInterface.java
506
package pl.pragmatists.atm.support.dsl; import org.assertj.core.api.AssertionsForInterfaceTypes; import pl.pragmatists.atm.domain.CashDispenser; public class CashDispenserDomainInterface { private CashDispenser cashDispenser; public CashDispenserDomainInterface(CashDispenser cashDispenser) { this.ca...
mit
sstarcher/sensu-plugins-consul
bin/check-consul-leader.rb
2028
#! /usr/bin/env ruby # # check-consul-leader # # DESCRIPTION: # This plugin checks if consul is up and reachable. It then checks # the status/leader and ensures there is a current leader. # # OUTPUT: # plain text # # PLATFORMS: # Linux # # DEPENDENCIES: # gem: sensu-plugin # gem: rest-client # # USAGE: # ...
mit
jiadaizhao/LeetCode
0101-0200/0146-LRU Cache/0146-LRU Cache.cpp
1095
class LRUCache { public: LRUCache(int capacity) { this->capacity = capacity; } int get(int key) { if (cacheMap.find(key) == cacheMap.end()) { return -1; } cacheList.splice(cacheList.begin(), cacheList, cacheMap[key]); cacheMap[key] = cacheLis...
mit
Zefiros-Software/ZPM
src/common/github.lua
3585
--[[ @cond ___LICENSE___ -- Copyright (c) 2017 Zefiros Software. -- -- 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
lengthofrope/create-jsonld
src/Schema/ArtGallerySchema.php
1492
<?php /* * The MIT License * * Copyright 2016 LengthOfRope, Bas de Kort <bdekort@gmail.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 without restriction, including without l...
mit
JBZoo/Utils
tests/SerTest.php
5003
<?php /** * JBZoo Toolbox - Utils * * This file is part of the JBZoo Toolbox project. * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @package Utils * @license MIT * @copyright Copyright (C) JBZoo.com, All rights reserved....
mit
hpautonomy/java-aci-types
src/main/java/com/hp/autonomy/types/requests/Warnings.java
697
/* * Copyright 2015 Hewlett-Packard Development Company, L.P. * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. */ package com.hp.autonomy.types.requests; import lombok.AllArgsConstructor; import lombok.Data; import java.io.Serializable; import java...
mit
pincopallino93/QuokkaChallenge
app/src/main/java/it/scripto/quokkachallenge/model/User.java
5102
/* * The MIT License (MIT) * * Copyright (c) 2015 Claudio Pastorini * * 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...
mit
mkaguilera/yesquel
src/server-splitter-nop.cpp
1862
// // server-splitter-nop.cpp // // Local dummy implementation of splits, when the local version of the server // that runs at the client. This implementation does not actually perform // the split. // /* Original code: Copyright (c) 2014 Microsoft Corporation Modified code: Copyright (c) 2015-2016 VMware, Inc A...
mit
calvindcw/PetitionTemplater
application/logs/log-2013-12-13.php
190894
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?> DEBUG - 2013-12-13 08:51:35 --> Config Class Initialized DEBUG - 2013-12-13 08:51:35 --> Hooks Class Initialized DEBUG - 2013-12-13 08:51:35 --> Utf8 Class Initialized DEBUG - 2013-12-13 08:51:35 --> UTF-8 Support Enabled DEBUG - 2013-12-13...
mit
edubega0707/Calendar-v1
public/js/script.js
2273
/* ======================================================================== * Site Javascript * * ======================================================================== * Copyright 2016 Bootbites.com (unless otherwise stated) * For license information see: http://bootbites.com/license * =======================...
mit
degica/barcelona
db/migrate/20150925074004_rename_value_to_encrypted_value.rb
169
class RenameValueToEncryptedValue < ActiveRecord::Migration def change remove_column :env_vars, :value add_column :env_vars, :encrypted_value, :text end end
mit
tapomayukh/projects_in_python
sandbox_tapo/src/refs/Python Examples_Pygame/Python Examples/move_with_walls_example.py
4201
# Sample Python/Pygame Programs # Simpson College Computer Science # http://cs.simpson.edu import pygame black = (0,0,0) white = (255,255,255) blue = (0,0,255) # This class represents the bar at the bottom that the player controls class Wall(pygame.sprite.Sprite): # Constructor function def __init__(self,x,y...
mit
husainaloos/ranker
config/db.js
69
const url = 'mongodb://localhost/ranker'; module.exports.url = url;
mit
ignatandrei/stankins
stankinsV1/Transformers/TransformRowRemainsKeys.cs
1327
using StankinsInterfaces; using System.Linq; using System.Threading.Tasks; namespace Transformers { public class TransformRowRemainsProperties : ITransform { public TransformRowRemainsProperties(params string[] properties) { Properties = properties; string all = ""; ...
mit
wmira/react-icons-kit
src/md/ic_local_movies.js
331
export const ic_local_movies = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"},"child...
mit
DimitarSD/Telerik-Academy
03. Software Technologies/02. Web Services and Cloud/01. Introduction To ASP.NET Web API/Student System/StudentSystem.Web/App_Start/BundleConfig.cs
1130
namespace StudentSystem.Web { using System.Web; using System.Web.Optimization; public class BundleConfig { // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bun...
mit
iwillspeak/IronRure
test/IronRureTests/RegexTests.cs
8593
using System; using System.Linq; using System.Threading.Tasks; using Xunit; using System.Globalization; using IronRure; namespace IronRureTests { public class RegexTests { [Fact] public void Regex_CreateWithEmptyPattern_Succeeds() { var regex = new Regex(""); } ...
mit
ratimid/SoftUni
C#/ProgrammingBasicsAugust2016/05.SimpleLoops/06.MinNumber/Properties/AssemblyInfo.cs
1436
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: AssemblyTi...
mit
HendricksK/geoblocking-angular
server/server.js
502
var app = require('express')(); var http = require('http').Server(app); var io = require('socket.io')(http); io.on('connection', (socket) => { console.log('User Connected'); socket.on('disconnect', () => { console.log('User Disconnected...'); }); socket.on('add-message', (message, username) =...
mit
frangucc/chicago_ideas
db/migrate/20130221014955_add_projected_members_and_max_members_to_member_types.rb
241
class AddProjectedMembersAndMaxMembersToMemberTypes < ActiveRecord::Migration def change add_column :member_types, :projected_members, :integer, default: 0 add_column :member_types, :maximum_members, :integer, default: 0 end end
mit
borwahs/natalieandrob.com
server/server.js
414
var Hapi = require("hapi"); var Joi = require("joi"); var Config = require("./config"); var Routes = require("./routes"); var server = Hapi.createServer(Config.host, Config.port); // register all the routes server.route(Routes.endpoints); server.start(function() { console.log("Hapi server started:", server.info.ur...
mit
codeactual/sinon-doublist-fs
test/lib/co-fs.js
506
/* eslint func-names: 0 */ 'use strict'; require('..'); const T = require('../t'); T.sinonDoublist(T.sinon, 'mocha'); T.sinonDoublistFs('mocha'); describe('co-fs compatibility', function() { it('should include #writeFile and #readFile', function *() { const fs = require('co-fs'); this.stubFile(this.paths[0...
mit
Jheysoon/lcis
application/views/edp/preview.php
8685
<!DOCTYPE html> <html lang="en" class="no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Leyte Colleges Information System</title> <link rel="icon" type="image/jpg" href="<?php e...
mit
fjpavm/ChilliSource
Projects/Tools/CSFontBuilder/src/com/chilliworks/chillisource/csfontbuilder/fontfromglyphsbuilder/GlyphsReader.java
6588
/** * GlyphsReader.java * Chilli Source * Created by Ian Copland on 21/10/2014. * * The MIT License (MIT) * * Copyright (c) 2014 Tag Games Limited * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
mit
catalinmiron/hackathon-granditude
app/stores/posts.js
2930
import request from "superagent"; var geocoder = require('google-geocoder'); var geo = geocoder({ key: 'AIzaSyBR0Vq80nxm-dwOueLvaw2wUmSC0vGFmHU' }); let _currentUserPosts = null; let _post = []; let _myPosts=null; let _publicPosts = null; let _postByProfileId = [] let _changeListeners = []; let _initCalled = false; ...
mit
Syafiqq/spk.edu
application/config/config.php
18507
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically this will be your base URL, | WITH...
mit
jonguan/cmpe273-project1
SimpleProxyServer.js
1548
var httpProxy = require('http-proxy') var proxy = httpProxy.createProxy(); var http = require('http'); var connect = require('connect'); var gzip = require('connect-gzip'); var compression = require('compression'); var app = connect() app.use(gzip.gzip()); //app.use(compression()) app.use( function(req, res) {...
mit
kibiluzbad/aria4net
src/Aria4net/Common/Aria2cInfo.cs
193
namespace Aria4net.Common { // ReSharper disable InconsistentNaming public class Aria2cInfo // ReSharper restore InconsistentNaming { public string Name { get; set; } } }
mit
garymabin/YGOMobile
apache-async-http-HC4/src/org/apache/http/HC4/client/protocol/RequestDefaultHeaders.java
3080
/* * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this ...
mit
enzor/couch_talk
vendor/gems/simply_stored-0.3.6/test/vendor/dhaka-2.2.1/test/arithmetic_precedence/arithmetic_precedence_grammar.rb
648
class ArithmeticPrecedenceGrammar < Dhaka::Grammar precedences do left %w| + - | left %w| * / | nonassoc %w| ^ | end for_symbol(Dhaka::START_SYMBOL_NAME) do expression %w| E | end for_symbol('E') do addition ...
mit
mrpau/kolibri
kolibri/core/content/urls.py
583
from django.conf.urls import url from .views import ContentPermalinkRedirect from .views import DownloadContentView from .views import ZipContentView urlpatterns = [ url( r"^zipcontent/(?P<zipped_filename>[^/]+)/(?P<embedded_filepath>.*)", ZipContentView.as_view(), {}, "zipcontent"...
mit
nebulab/lita-pulsar
lib/lita-pulsar.rb
251
require "lita" Lita.load_locales Dir[File.expand_path( File.join("..", "..", "locales", "*.yml"), __FILE__ )] require "lita/handlers/pulsar" Lita::Handlers::Pulsar.template_root File.expand_path( File.join("..", "..", "templates"), __FILE__ )
mit
jtorresfabra/osgjs
sources/osg/Object.js
1154
import utils from 'osg/utils'; /** * Object class * @class Object */ var Object = function() { this._name = undefined; this._userdata = undefined; this._instanceID = Object.getInstanceID(); }; /** @lends Object.prototype */ utils.createPrototypeObject( Object, { // this method works o...
mit
lfuelling/gtasa-savegame-editor
savegame-editor/src/main/java/nl/paulinternet/gtasaveedit/view/selectable/SelectableItems.java
1373
package nl.paulinternet.gtasaveedit.view.selectable; import nl.paulinternet.gtasaveedit.model.SavegameModel; import nl.paulinternet.gtasaveedit.event.ReportableEvent; import java.util.List; public class SelectableItems<T extends SelectableItem> { private List<T> items; private SelectedItems<T> selec...
mit
PaulBGD/MiniMiniGames
src/main/java/me/paulbgd/mmgames/items/ItemListener.java
1837
package me.paulbgd.mmgames.items; import me.paulbgd.mmgames.events.MMListener; import me.paulbgd.mmgames.kits.Kits.Click; import me.paulbgd.mmgames.player.MMPlayer; import me.paulbgd.mmgames.utils.Particles; import org.bukkit.event.block.Action; import org.bukkit.inventory.ItemStack; public class ItemListener extend...
mit
JacobFischer/CS6604-HW2
utils.js
936
function randomInt(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; }; function DefaultNumber(num, def) { return typeof(num) === "number" && !isNaN(num) ? num : def; }; var seed = 123896; function random() { var x = Math.sin(seed++) * 10000; return x - Math.floor(x); } Array.pro...
mit
ReactiveX/IxJS
jest.config.js
1682
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
mit
demo-cards-trading-game/game
src/extra/rain.java
3979
package extra; import javax.swing.*; import java.awt.*; import java.awt.geom.Ellipse2D; import java.awt.geom.Line2D; import java.util.ArrayList; import java.util.Iterator; import java.util.Random; public class rain extends JPanel{ private float mGravity = 9.8f; private int mRepaintTimeMS = 20; ...
mit
marneborn/cook-http
common/tcp.js
121
/* * Common package to send and receive over TCP. */ 'use strict'; let net = require('net'); let Q = require('q');
mit
fdzjuancarlos/Physicorum
src/PlayState.cpp
19771
#include "PlayState.h" #include "PauseState.h" #include "Shapes/OgreBulletCollisionsTrimeshShape.h" #include "Shapes/OgreBulletCollisionsSphereShape.h" #include "Utils/OgreBulletCollisionsMeshToShapeConverter.h" using namespace Ogre; template<> PlayState* Ogre::Singleton<PlayState>::msSingleton = 0; bool inAbsolut...
mit
dnguyen0304/tuxedo-mask
tuxedo_mask/utilities.py
3479
# -*- coding: utf-8 -*- import logging import sys import time class StackTraceFilter(logging.Filter): def filter(self, record): """ Filter log records with stack traces. Multi-line messages must be processed differently than those of standard application logs. Paramete...
mit
lolleko/donkey
app/src/PackageManager.js
2194
const path = require('path') const fs = require('fs') const Package = require('./Package') const ipc = require('electron').ipcRenderer class PackageManager { constructor () { this.packages = {} this.appData = require('electron').remote.app.getPath('userData') // ensure packages directory exists try ...
mit
imbo/imboclient-java
src/test/java/io/imbo/client/Images/QueryTest.java
4210
/** * This file is part of the imboclient-java package * * (c) Espen Hovlandsdal <espen@hovlandsdal.com> * * For the full copyright and license information, please view the LICENSE file that was * distributed with this source code. */ package io.imbo.client.Images; import static org.junit.Assert.assertEquals; i...
mit
yoggy/mqtt_tiny_clock_pub
mqtt_tiny_clock_pub.rb
1211
#!/usr/bin/ruby # # mqtt_tiny_clock_pub.rb - publish the local time using the MQTT. # # $ sudo gem install mqtt # $ sudo gem install pit # require 'rubygems' require 'mqtt' require 'json' require 'time' require 'pit' $stdout.sync = true $config = Pit.get("mqtt_tiny_clock_pub", :require => { "remote_host" => "mq...
mit
automatizo/huckleberry
db/migrate/3_create_huckleberry_fats.rb
605
class CreateHuckleberryFats < ActiveRecord::Migration def change create_table :huckleberry_fats do |t| t.string :nutrient_databank_number, null: false, index: true t.float :total_fat t.float :saturated_fat t.float :monounsaturated_fat t.float :polyunsaturated_fat t.float :omega...
mit
chanzuckerberg/idseq-web
db/migrate/20171130180955_add_level_concordance_to_taxon_counts.rb
340
class AddLevelConcordanceToTaxonCounts < ActiveRecord::Migration[5.1] def change add_column :taxon_counts, :percent_concordant, :float add_column :taxon_counts, :species_total_concordant, :float add_column :taxon_counts, :genus_total_concordant, :float add_column :taxon_counts, :family_total_concordan...
mit
koofr/csharp-koofr
Koofr.SDK/Api.V2.Resources/Version.cs
317
using Newtonsoft.Json; namespace Koofr.Sdk.Api.V2.Resources { public class Version { [JsonProperty("version")] public string VersionInfo { get; set; } public bool CanUpdate { get; set; } public bool ShouldUpdate { get; set; } public bool Outdated { get; set; } } }
mit
errorstudio/contentful_model
lib/contentful_model/migrations/errors.rb
106
module ContentfulModel module Migrations class InvalidFieldTypeError < StandardError; end end end
mit
enriquedacostacambio/iotake-suller
iotake-sullerj/src/test/java/com/iotake/suller/sullerj/binder/value/BigDecimalValueConverterFactoryTest.java
1046
package com.iotake.suller.sullerj.binder.value; import static org.junit.Assert.assertThat; import java.math.BigDecimal; import org.hamcrest.CoreMatchers; import org.junit.Test; import com.iotake.suller.sullerj.binder.util.TestDocument; import com.iotake.suller.sullerj.binder.value.BigDecimalValueConverterFactory; i...
mit
DarvinStudio/DarvinImageBundle
Validation/Constraints/DarvinImageValidator.php
1399
<?php declare(strict_types=1); /** * @author Igor Nikolaev <igor.sv.n@gmail.com> * @copyright Copyright (c) 2017-2020, Darvin Studio * @link https://www.darvin-studio.ru * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ name...
mit
skipmumba/betgame
application/config/autoload.php
4105
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | AUTO-LOADER | ------------------------------------------------------------------- | This file specifies which systems should be loaded by default. | | In order to keep the fr...
mit
jgsmith/wlc
db/migrate/006_create_transition_defs.rb
312
class CreateTransitionDefs < ActiveRecord::Migration def self.up create_table :transition_defs do |t| t.references :from_state t.references :to_state t.text :process_fn t.text :validate_fn t.timestamps end end def self.down drop_table :transition_defs end end
mit
uramonk/OxyPlotSample
OxyPlotSample/OxyPlotSample/MainViewModel.cs
1528
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using OxyPlot; using System.ComponentModel; namespace OxyPlotSample { public class MainViewModel : INotifyPropertyChanged { private string title; private IList<DataPoint> points;...
mit
robn/jmap-rs
src/types.rs
1366
use std::collections::BTreeMap; use std::string::ToString; use std::default::Default; use std::ops::Deref; use rustc_serialize::json::{Json,ToJson}; use chrono::{DateTime,UTC,NaiveDateTime}; use parse::*; // subtypes shared across record types make_prop_type!(File, "File", blob_id: String => "blobId", ...
mit
vCaesar/gitea
integrations/release_test.go
4018
// Copyright 2017 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package integrations import ( "fmt" "net/http" "testing" "time" "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/test" "github.co...
mit
hansarnevartdal/CacheUpFront
CacheUpFront.Autofac/AppBuilderExtensions.cs
551
using Autofac; using CacheUpFront.Models; using CacheUpFront.Services; using Microsoft.AspNetCore.Builder; namespace CacheUpFront.Autofac { public static class AppBuilderExtensions { public static IApplicationBuilder UseEntityCache<TEntity>(this IApplicationBuilder app, IContainer container) where TEn...
mit
SpongePowered/Sponge
src/main/java/org/spongepowered/common/command/brigadier/tree/SpongePermissionWrappedLiteralCommandNode.java
2484
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
mit
quchunguang/test
testpy3/test_more.py
594
""" Created on 2012-12-11 @author: qcg """ def get_error(): return (2, 'error message') errno, errmsg = get_error() print(errno, errmsg) a, *b = [1, 2, 3, 4, 5] print(b) a = 1 b = 2 a, b = b, a print(a, b) if True: print('HI') points = [{'x': 2, 'y': 3}, {'x': 4, 'y': 1}] points.sort(key=lambda i: i['y']) ...
mit
renber/SecondaryTaskbarClock
CalendarWeekView/Windows/SettingsWindow.Designer.cs
17362
namespace CalendarWeekView.Windows { partial class SettingsWindow { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summar...
mit
frappe/frappe
frappe/printing/doctype/letter_head/letter_head.py
2095
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: MIT. See LICENSE import frappe from frappe.utils import is_image, flt from frappe.model.document import Document from frappe import _ class LetterHead(Document): def before_insert(self): # for better UX, let user set from attachment ...
mit
babel/babel-preset-env
test/fixtures/preset-options/use-builtins-node/expected.js
131
import "core-js/modules/es7.string.pad-start"; import "core-js/modules/es7.string.pad-end"; import "regenerator-runtime/runtime";
mit