repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
daibinhua888/Spheniscidae
Codes/Framework/Storage.cs
2030
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Text; using System.Threading.Tasks; namespace Spheniscidae.Framework { public class Storage { private const string filePath = "e:\\wf.txt"; pub...
mit
Lignum/CCEmuX
src/main/java/net/clgd/ccemux/plugins/builtin/CCEmuXAPI.java
7468
package net.clgd.ccemux.plugins.builtin; import java.awt.Desktop; import java.awt.Toolkit; import java.awt.datatransfer.StringSelection; import java.io.IOException; import java.util.*; import javax.annotation.Nonnull; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.google.auto.service.AutoServic...
mit
xuanye/dotbpe
src/DotBPE.Rpc/Client/IRpcClient.cs
298
using Peach.Messaging; using System.Threading; using System.Threading.Tasks; namespace DotBPE.Rpc.Client { public interface IRpcClient<in TMessage> where TMessage : IMessage { Task SendAsync(TMessage message); Task CloseAsync(CancellationToken cancellationToken); } }
mit
Catorpilor/LeetCode
22_generate_parentheses/gp_test.go
572
package gp import ( "reflect" "testing" ) func TestGenerateParenthesis(t *testing.T) { st := []struct { name string n int exp []string }{ {"n=0", 0, []string{}}, {"n=1", 1, []string{"()"}}, {"n=2", 2, []string{"()()", "(())"}}, {"n=3", 3, []string{"()()()", "((()))", "(())()", "()(())", "(()())"...
mit
VladimirRadojcic/Master
BusinessProcessModelingTool/src/bp/details/ConditionalStartEventDetails.java
2268
package bp.details; import javax.swing.JLabel; import javax.swing.JScrollPane; import javax.swing.JTextArea; import bp.event.BPFocusListener; import bp.model.data.ConditionalStartEvent; import bp.model.util.BPKeyWords; import bp.model.util.Controller; public class ConditionalStartEventDetails extends StartEventDetai...
mit
jacklam718/react-native-popup-dialog
example/src/DemoScreen.js
9757
import React, { Component } from 'react'; import { Button, View, Text, StyleSheet } from 'react-native'; import Modal, { ModalTitle, ModalContent, ModalFooter, ModalButton, SlideAnimation, ScaleAnimation, BottomModal, ModalPortal, } from 'react-native-modals'; const styles = StyleSheet.create({ conta...
mit
djsegal/julia_observer
db/migrate/20161219001906_create_readmes.rb
228
class CreateReadmes < ActiveRecord::Migration[5.0] def change create_table :readmes do |t| t.string :file_name t.text :cargo t.references :package, foreign_key: true t.timestamps end end end
mit
JornWildt/Elfisk.ECS
Elfisk.ECS.Core/Properties/AssemblyInfo.cs
1442
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
jasnow/show-me-the-food5
db/schema.rb
1568
# This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # Note that this schema.rb definition is the authoritative source for your # dat...
mit
rdunlop/codeclimate_circle_ci_coverage
lib/codeclimate_circle_ci_coverage/coverage_reporter.rb
3656
# frozen_string_literal: true # from https://github.com/codeclimate/ruby-test-reporter/issues/10 # https://gist.github.com/evanwhalen/f74879e0549b67eb17bb # Possibly look at: # http://technology.indiegogo.com/2015/08/how-we-get-coverage-on-parallelized-test-builds/ # # Questions: # - Why aren't artifacts stored in th...
mit
Jmsg0003/practica
src/app/components/detail/view-detail.js
474
(function(angular) { angular.module('app').component('viewDetail', { templateUrl: 'app/components/detail/view-detail-template.html', controller: ['$stateParams', 'cardsFactory', viewDetail], controllerAs: 'viewDetail' }); function viewDetail($stateParams, cardsFactory) { var vm = this; vm...
mit
SusieBonte/studyProjects
application/views/pages/about.php
61
this is the about page <p> This is Quiz Tool version 2.0 <p>
mit
ljzhong/react-native-hiapp
App/Views/WebView/index.js
1125
import React, { Component, PropTypes } from 'react' import { WebView, StyleSheet, View } from 'react-native' import styleUtils from '../../Styles' import NavbarComp from '../../Components/NavBar' export default class WebViewView extends Component{ constructor(props) { super(...
mit
lessthanthree/wheaton
dist/Randomize.js
2353
var Randomize, slice = [].slice; require('es5-shim'); require('es6-shim'); Randomize = (function() { var _pickFromArray, _pickFromObject, _weightedFromArray, _weightedFromObject; function Randomize() {} Randomize.between = function(min, max) { var rndm; rndm = Math.random(); return rndm * (max ...
mit
ark120202/aabs
game/scripts/vscripts/heroes/hero_cherub/flower_garden.lua
7222
LinkLuaModifier("modifier_cherub_flower_garden_barrier", "heroes/hero_cherub/modifiers/modifier_cherub_flower_garden_barrier", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_cherub_flower_garden_tracker", "heroes/hero_cherub/modifiers/modifier_cherub_flower_garden_tracker", LUA_MODIFIER_MOTION_NONE) function Crea...
mit
mprinc/KnAllEdge
src/frontend/dev_puzzles/knalledge/view_enginee/code/knalledge/mapVisualizationTree.js
47725
(function() { // This prevents problems when concatenating scripts that aren't strict. 'use strict'; /** @classdesc Deals with visualization of the KnAllEdge map. It is a specialization of the `knalledge.MapVisualization` class @class MapVisualizationTree @memberof knalledge */ var MapVis...
mit
pmq20/ruby-compiler
ruby/bootstraptest/test_io.rb
2351
assert_finish 5, %q{ r, w = IO.pipe t1 = Thread.new { r.sysread(1) } t2 = Thread.new { r.sysread(1) } sleep 0.01 until t1.stop? and t2.stop? w.write "a" w.write "a" }, '[ruby-dev:31866]' assert_finish 10, %q{ begin require "io/nonblock" require "timeout" timeout(3) do r, w = IO.pipe ...
mit
pauly4it/laraturk
src/Facades/LaraTurk.php
303
<?php namespace Pauly4it\LaraTurk\Facades; use \Illuminate\Support\Facades\Facade; class Laraturk extends Facade { /** * Get the registered name of the component. * * @return string */ protected static function getFacadeAccessor() { return 'laraturk'; } }
mit
pyqg/pyqg
pyqg/qg_model.py
11090
import numpy as np from numpy import pi from . import model try: import mkl np.use_fastnumpy = True except ImportError: pass try: import pyfftw pyfftw.interfaces.cache.enable() except ImportError: pass class QGModel(model.Model): r"""Two layer quasigeostrophic model. This model is me...
mit
raphaelrubino/nid
nn/bi/run.py
1619
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from __future__ import absolute_import import numpy as np np.random.seed( 1337 ) import data_utils from binid import Bilingual_neural_information_density import sys if __name__ == '__main__': if len( sys.argv ) != 12: print( "\nUsage: ", sys.argv[ 0 ], "<src sente...
mit
iamfreee/laracasts-downloader
App/Exceptions/SubscriptionNotActiveException.php
228
<?php /** * Subscription Not Active Exception */ namespace App\Exceptions; use Exception; /** * Class SubscriptionNotActiveException * @package App\Exceptions */ class SubscriptionNotActiveException extends Exception { }
mit
radiant-persimmons/mockr
src/client/app/core/directives/nav-bar.directive.spec.js
3660
/*jshint -W079 */ /*jshint expr:true */ describe('UNIT: navbar directive', function() { var element; var scope; var $httpBackend; describe('before login', function() { /** * Because it's not clear how to do otherwise, different controller stubs * are provided to represent different states in the...
mit
smathieu/prosperity
lib/prosperity/engine.rb
625
module Prosperity class Engine < ::Rails::Engine isolate_namespace Prosperity config.autoload_paths << File.expand_path("../../", __FILE__) config.after_initialize do require "prosperity/exception" end config.generators do |g| g.test_framework :rspec, :fixtures => false g.view_s...
mit
foolcage/fooltrader
fooltrader/datasource/eos_account.py
2544
# -*- coding: utf-8 -*- import logging from datetime import datetime import elasticsearch.helpers from pymongo import MongoClient from fooltrader import fill_doc_type, es_client from fooltrader.domain.data.es_quote import EosAccount from fooltrader.settings import EOS_MONGODB_URL from fooltrader.utils.es_utils import...
mit
fle-internal/content-curation
contentcuration/contentcuration/static/js/edit_channel/constants/Licenses.js
4313
module.exports = [ { is_custom: false, exists: true, license_name: 'CC BY', license_url: 'https://creativecommons.org/licenses/by/4.0/', copyright_holder_required: true, license_description: 'The Attribution License lets others distribute, remix, tweak, and build upon your work, even com...
mit
salimfadhley/scalamoo
src/test/scala/model/PokemonSpec.scala
1042
package model import model.battle.Status import model.pokedex.Pokedex import org.scalatest.FlatSpec /** * Created by salim on 16/09/2016. */ class PokemonSpec extends FlatSpec { "Pokemon" should "be creatable by id" in { val pokedex: Pokedex = Pokedex.boot val p: Pokemon = Pokemon.spawn(pokedex, 25).nam...
mit
Snayki/in100gram
src/main/webapp/scripts/app/main/main.js
585
'use strict'; angular.module('in100gramApp') .config(function ($stateProvider) { $stateProvider .state('home', { parent: 'site', url: '/', data: { authorities: [] }, views: { ...
mit
lindexi/lindexi_gd
ScrimpNet.Library.Suite Solution/ScrimpNet.Core Project/Configuration/IWcfConfigurationService.cs
1552
/** /// ScrimpNet.Core Library /// Copyright © 2005-2011 /// /// This module is Copyright © 2005-2011 Steve Powell /// All rights reserved. /// /// This library is free software; you can redistribute it and/or /// modify it under the terms of the Microsoft Public License (Ms-PL) /// /// This library is distributed in...
mit
bitrise-io/bitrise-webhooks
vendor/gopkg.in/DataDog/dd-trace-go.v1/contrib/globalsign/mgo/pipe.go
1277
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016-2019 Datadog, Inc. package mgo import ( "github.com/globalsign/mgo" "gopkg.in/DataDog/dd-tra...
mit
enlight/blender-bind-armatures
bind_armatures.py
12449
#------------------------------------------------------------------------------- # The MIT License (MIT) # # Copyright (c) 2014 Vadim Macagon # # 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...
mit
SpongePowered/SpongeAPI
src/main/java/org/spongepowered/api/block/entity/carrier/furnace/Smoker.java
1368
/* * This file is part of SpongeAPI, 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 "Soft...
mit
LWIRC/LWIRC
src/lwirc/github/io/Main.java
2000
package lwirc.github.io; import java.awt.EventQueue; import java.util.Arrays; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; import javax.swing.border.EmptyBorder; public class Main extends JFrame { private JPanel contentP...
mit
Drixmux/siic
src/SIICBundle/Entity/Categoriabien.php
1567
<?php namespace SIICBundle\Entity; /** * Categoriabien */ class Categoriabien { /** * @var integer */ private $id; /** * @var string */ private $categoria; /** * @var boolean */ private $status; /** * @var \DateTime */ private $createdAt; ...
mit
vladimir-trifonov/hackbg-nodejs
week0/2-Chirper/test-client.js
396
var argv = require('minimist')(process.argv.slice(2)), clientApi = require("./client-api"); var handler = null; Object.keys(argv).some(function(key) { if(argv.hasOwnProperty(key) && key !== "_") { if(clientApi.hasOwnProperty(key)) { handler = clientApi[key]; return true; } } }); if(handler) { handler(...
mit
hsabiti/ziki
src/xabx/ZikiBundle/Entity/PlaylistTracks.php
1450
<?php namespace xabx\ZikiBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * xabx\ZikiBundle\Entity\PlaylistTracks */ class PlaylistTracks { /** * @var integer $playlistId */ private $playlistId; /** * @var integer $trackId */ private $trackId; /** * @var integer $o...
mit
jquast/blessed
bin/editor.py
8561
#!/usr/bin/env python """ A Dumb full-screen editor. This example program makes use of many context manager methods: :meth:`~.Terminal.hidden_cursor`, :meth:`~.Terminal.raw`, :meth:`~.Terminal.location`, :meth:`~.Terminal.fullscreen`, and :meth:`~.Terminal.keypad`. Early curses work focused namely around writing scre...
mit
mikeek/FIT
IIS/proj_1/intra/user/reservation.php
3281
<?php include_once("session_check.php"); include("new_rezervation.php"); ?> <html lang="en"> <?php include_once("head.php"); ?> <link href="../../css/jquery-ui-1.10.1.min.css" rel="stylesheet" /> <body class="reservation"> <?php include_once("top_navbar.php"); ?> <div class="container-flu...
mit
stof/manager
tests/Api/Php/ClazzTest.php
18153
<?php /* * This file is part of the puli/manager package. * * (c) Bernhard Schussek <bschussek@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Puli\Manager\Tests\Api\Php; use PHPUnit_Framework_TestCase; use ...
mit
chrisenytc/liv-api
api/__init__.py
2673
# -*- coding: utf-8 -*- """" ProjectName: liv-api Repo: https://github.com/chrisenytc/liv-api Copyright (c) 2014 Christopher EnyTC Licensed under the MIT license. """ # version __version__ = '0.2.0' # Dependencies import os from api.config.development import Development from api.config.production import Production f...
mit
fieldenms/tg
platform-dao/src/main/java/ua/com/fielden/platform/attachment/AttachmentDao.java
12165
package ua.com.fielden.platform.attachment; import static java.lang.String.format; import static java.nio.charset.StandardCharsets.UTF_8; import static java.util.Optional.empty; import static java.util.Optional.of; import static ua.com.fielden.platform.attachment.Attachment.HYPERLINK; import static ua.com.fielden.plat...
mit
viking/collect-js
test/js/models/test_forms.js
1294
define([ 'lib/test', 'lib/sinon', 'lib/maria', 'model', 'models/forms', 'models/form' ], function(test, sinon, maria, Model, FormsModel, FormModel) { return new test.Suite('FormsModel', { 'validates form name uniqueness': sinon.test(function() { var form = new FormModel(); var forms = new ...
mit
jirutka/gitlabhq
spec/javascripts/vue_shared/components/callout_spec.js
1184
import Vue from 'vue'; import callout from '~/vue_shared/components/callout.vue'; import createComponent from 'spec/helpers/vue_mount_component_helper'; describe('Callout Component', () => { let CalloutComponent; let vm; const exampleMessage = 'This is a callout message!'; beforeEach(() => { CalloutCompon...
mit
almin/almin
packages/almin/src/index.ts
1394
// MIT © 2016-present azu "use strict"; export { Dispatcher } from "./Dispatcher"; export { Store } from "./Store"; export { StoreGroup } from "./UILayer/StoreGroup"; export { UseCase } from "./UseCase"; export { Context } from "./Context"; export { FunctionalUseCaseContext } from "./FunctionalUseCaseContext"; // paylo...
mit
RhoInc/Webcharts
src/table/draw/applyFilters.js
1172
export default function applyFilters() { //If there are filters, return a filtered data array of the raw data. //Otherwise return the raw data. if ( this.filters && this.filters.some( filter => (typeof filter.val === 'string' && !(filter.all === true && filter.ind...
mit
xieziyu/ngx-amap
src/app/app.component.ts
235
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'], }) export class AppComponent { isCollapsed = false; constructor() {} }
mit
Willianvdv/layers
layer_pusher/test/layer_pusher_test.rb
138
require 'test_helper' class LayerPusherTest < ActiveSupport::TestCase test "truth" do assert_kind_of Module, LayerPusher end end
mit
madewithlove/laravel-cqrs-es
src/EventHandling/SimpleReplayingEventBus.php
197
<?php namespace Madewithlove\LaravelCqrsEs\EventHandling; use Broadway\EventHandling\SimpleEventBus; class SimpleReplayingEventBus extends SimpleEventBus implements ReplayingEventBusInterface { }
mit
Stonelinks/js-iksolvers
solvers/pr2_rightarm.cpp
308976
/// autogenerated analytical inverse kinematics code from ikfast program part of OpenRAVE /// \author Rosen Diankov /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except in compliance with the License. /// You may obtain a copy of the License at /// http://www....
mit
beyzakokcan/ojs
src/Ojs/ApiBundle/Tests/Controller/JournalArticleRestControllerTest.php
6602
<?php namespace Ojs\ApiBundle\Tests\Controller; use Ojs\CoreBundle\Tests\BaseTestCase; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Filesystem\Exception\IOException; class JournalArticleRestControllerTest extends BaseTestCase { private $sampleArticleHeader = 'http://lorempixel.com/960/200/'...
mit
behzad888/DefinitelyTyped
aurelia/aurelia-metadata.d.ts
6887
// Type definitions for aurelia-metadata v1.0.0-beta.1.2.0 // Project: https://github.com/aurelia/metadata/ // Definitions by: Behzad abbai <https://github.com/behzad888> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference path="./aurelia-pal.d.ts" /> declare module 'aurelia-metadata' {...
mit
HerrLoesch/Trapeze
Code/StackKata/StackKata.Tests/Properties/AssemblyInfo.cs
1406
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("St...
mit
denismaster/dcs
src/Diploms.Dto/Users/UserEditItem.cs
187
namespace Diploms.Dto.Users { public class UserEditDto { public int? Id {get;set;} public string Login {get;set;} public string Password {get;set;} } }
mit
benpickles/js-model
test/tests/plugin_test.js
547
module("Model plugins") test("applied in factory", 3, function() { var obj = {} function Foo(klass, a, b) { klass.foo = "foo" equal(a, "a") ok(b === obj) } var Post = Model("post", function() { this.use(Foo, "a", obj) }) equal(Post.foo, "foo") }) test("applied outside factory", 4, funct...
mit
james-jenkinson/tango-atlas
src/test/components/fom/Button.test.tsx
863
import { should } from "chai"; import { shallow } from "enzyme"; import { noop } from "lodash"; import * as React from "react"; import * as sinon from "sinon"; import Button from "../../../components/form/Button"; describe("Button", () => { should(); it("should render", () => { shallow(<Button click={noop}/>)...
mit
pekkao/opixmanager
application/language/finnish/project_lang.php
2052
<?php /** * Project lang file * * @package CodeIgniter * @category Lang file, translate english * @subpackage Project * @author Antti Aho, Arto Ruonala, Pipsa Korkiakoski */ $lang['title_project'] = "Projektit"; $lang['title_db_error'] = 'Tietokantavirhe'; $lang['title_insert_project'] = "Lisää projekti"; $lang['titl...
mit
shawnblakesley/shawnblakesley.github.io
src/js/alphabet_game/sketch.js
2724
var voice = new p5.Speech(); // speech synthesis object var currentLetter = "A"; var current; var data; const letterRegex = /^[a-zA-Z]$/; let img; let visitTracker = new Array(26); function preload() { data = loadJSON("/data/alphabet_game.json"); } function setup() { canvas = createCanvas(windowWidth, window...
mit
sengsourng/ci_shopingonline.com
application/views/inc/v_footer_home.php
4497
<!-- footer --> <footer id="footer" class="clearfix"> <!-- footer-top --> <section class="footer-top clearfix"> <div class="container"> <div class="row"> <!-- footer-widget --> <div class="col-sm-3"> <div class="footer-widget"> <h3>Quik Links</h3> <ul> <li><a href="#">A...
mit
Kinnay/NintendoClients
nintendo/switch.py
2810
from Crypto.Cipher import AES from Crypto.PublicKey import RSA from anynet import tls import hashlib import struct import base64 import logging logger = logging.getLogger(__name__) def b64encode(data): return base64.b64encode(data, b"-_").decode().rstrip("=") def b64decode(text): length = (len(t...
mit
nguyen-nhat-mulodo/phptraining
fuel/app/classes/controller/LoginUser.php
2065
<?php use \Model_mUser; use \Model_mToken; class Controller_LoginUser extends Controller_Rest { public function action_Login() { //post parameter $mail = Input::post('mail'); $password = Input::post('password'); //check validation if (($mail == "") || ($password == "")) { $t...
mit
ericmuyser/web2f
src/js/jquery.MultiFile.js
17621
/* ### jQuery Multiple File Upload Plugin v1.27 - 2008-03-29 ### By Diego A., http://www.fyneworks.com, diego@fyneworks.com Project: http://jquery.com/plugins/project/MultiFile/ Website: http://www.fyneworks.com/jquery/multiple-file-upload/ Forums: http://www.nabble.com/jQuery-Multiple-File-Upload-f20931....
mit
olavoasantos/unite.js
node_modules/jasmine-expect/src/toBeArray.js
60
const is = require('./lib/is'); module.exports = is.Array;
mit
maqen/contentful_model
lib/contentful_model/associations/has_one.rb
1989
module ContentfulModel module Associations module HasOne def self.included(base) base.extend ClassMethods end module ClassMethods #has_one defines a method on the parent which wraps around the superclass's implementation. In most cases this #will end up at ContentfulMode...
mit
MerlinDS/UniBindRx
Assets/Plugins/UniBindRx/Base/IBinder.cs
1269
// <copyright file="IBinder.cs" company="Near Fancy"> // Copyright (c) 2017 All Rights Reserved // </copyright> // <author>Andrew Salomatin</author> // <date>08/06/2017 11:36</date> using JetBrains.Annotations; using UniRx; namespace UniBindRx.Base { /// <summary> /// IBinder /// </summary> public ...
mit
rodriguesl3/portfolio
app/js/controllers/blogController.js
140
var blogController = function ($rootScope) { $rootScope.bodyImage = "overflow-y:hidden"; }; blogController.$inject = ["$rootScope"];
mit
cego/zfs-cleaner
zfs/Snapshot_test.go
1613
package zfs import ( "testing" "time" ) var ( s0 = Snapshot{"s0", time.Unix(0, 0), false} s1 = Snapshot{"s1", time.Unix(1491918988, 0), false} s2 = Snapshot{"s2", time.Unix(1491918990, 0), false} s3 = Snapshot{"s3", time.Unix(1491919188, 0), false} ) const ( failCommand = "false" ) func TestNewSnapshotFromLi...
mit
adelamtuduce/thesisapp
spec/models/student_teacher_event_spec.rb
355
# == Schema Information # # Table name: student_teacher_events # # id :integer not null, primary key # student_id :integer # teacher_id :integer # event_id :integer # created_at :datetime # updated_at :datetime # require 'spec_helper' describe StudentTeacherEvent do pending "add some exampl...
mit
MatheusFaria/IJE
engine/src/components/text.cpp
2018
#include "components/text.hpp" #include "game.hpp" #include "log.h" #include "sdl_log.h" using namespace engine; bool TextComponent::init() { INFO("Init TextComponent"); if (m_font_path == "") { WARN("Invalid path for font!"); return false; } m_font = Game::instance.assets_manag...
mit
Shabananana/hot-nav
src/components/Notification/Notification.js
564
import React, {Component, PropTypes} from 'react'; export default class Notification extends Component { const NEW = 'NEW'; const VIEWED = 'VIEWED'; const accountStatuses = new Map([NEW, NEW], [VIEWED, VIEWED]); const static propTypes = { profile: PropTypes.shape({ name: PropTypes.string.isRequi...
mit
TomiTakussaari/spreact
src/main/java/com/github/tomitakussaari/SpreactApplication.java
680
package com.github.tomitakussaari; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.support.SpringBootServletInitializer; @SpringBootApplication ...
mit
nicholviton/ImageUpload
requestHandler.js
1822
var exec = require("child_process").exec; var server = require("./server"); var querystring = require("querystring"); var fs = require("fs"); var formidable = require("formidable"); function upload(response, request) { console.log("uploading..."); var form = new formidable.IncomingForm(); console.log("about t...
mit
j-easy/easy-jobs
easy-jobs-core/src/test/java/org/jeasy/jobs/job/JobRepositoryTest.java
378
package org.jeasy.jobs.job; public class JobRepositoryTest { /* * The core module is database agnostic. Testing a repository here makes no sense. * Each database module contains a data source definition and database schema against which this repository is tested. * See tests in easy-jobs-tests modu...
mit
pink-lucifer/preresearch
grpc-playground/grpc-spring-starter-eureka/grpc-spring-consul-server/src/test/java/com/github/lufs/grpc/spring/consul/server/GrpcSpringConsulServerApplicationTests.java
374
package com.github.lufs.grpc.spring.consul.server; 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 GrpcSpringConsulServerApplicati...
mit
getfiteats/gothrive-api
common/models/nutrition-tag-reference.js
55
module.exports = function (NutritionTagReference) { };
mit
repli2dev/nature-quizzer
app/presenters/ConceptPresenter.php
6090
<?php namespace NatureQuizzer\Presenters; use NatureQuizzer\Database\Model\Concept; use NatureQuizzer\Database\Model\Group; use NatureQuizzer\Database\Model\Language; use NatureQuizzer\Database\Model\Organism; use Nette\Application\BadRequestException; use Nette\Application\UI\Form; use Nextras\Datagrid\Datagrid; use...
mit
steamcomputer/aesir
co2cloud/default/Controller/FuelsController.php
4465
<?php App::uses('AppController', 'Controller'); /** * Fuels Controller * * @property Fuel $Fuel */ class FuelsController extends AppController { /** * index method * * @return void */ public function index() { $this->Fuel->recursive = 0; $this->set('fuels', $this->paginate()); } /** * view method * *...
mit
spiderbait90/Step-By-Step-In-Coding
C# Fundamentals/OOP Basic/Inheritance/Person/Child.cs
487
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public class Child : Person { public Child(string name, int age) : base(name, age) { } public override int Age { get { return base.Age; } set ...
mit
telemark/roy
lib/send-documents-to-svarut.js
867
'use strict' const miss = require('mississippi') const svarUt = require('svarut') module.exports = miss.through(function (chunck, encoding, callback) { var item = JSON.parse(chunck) if (item.dsfError) { return callback(null, JSON.stringify(item)) } if (!item.gotRestrictedAddress) { var options = JSO...
mit
CoralineAda/alice
alice/handlers/unknown.rb
130
module Handlers class Unknown include PoroPlus include Behavior::HandlesCommands def process end end end
mit
nelsonmelecio/laravel_5_4_with_adminlte
resources/views/vendor/adminlte/blank.blade.php
837
@extends('adminlte::layouts.sge_layout') @section('htmlheader_title') {{ trans('adminlte_lang::message.home') }} @endsection @section('content-header-v2') @include('vendor.adminlte.layouts.partials.contentheader_v2', [ 'title' => 'Page Under Construction', 'indexes' => 'Not implemented yet' ]) @e...
mit
snsavage/timer-react
src/containers/RoutineForm.js
3583
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux' import { withRouter } from 'react-router'; import { PropTypes } from 'prop-types'; import { Link } from 'react-router-dom'; import RoutineFormRoutineDetails from '../components/RoutineFormRoutine...
mit
iootbob/tyto
application/views/login.php
1201
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Tyto | Login</title> <link href="<?php echo base_url()?>assets/css/login.css" rel="stylesheet" type="text/css"> </head> <body> <h1 class="proj-logo">Tyto</h1> <div class="login-container"> <h2 class="login-title">LOGIN</h2> <?php echo form_ope...
mit
sinfin/folio
db/migrate/20171129121532_make_atoms_polymorphic.rb
589
# frozen_string_literal: true class MakeAtomsPolymorphic < ActiveRecord::Migration[5.1] def up add_reference :folio_atoms, :placement, polymorphic: true Folio::Atom::Base.find_each do |atom| atom.placement_id = atom.node_id atom.placement_type = "Folio::Page" atom.save! end remove...
mit
samael205/ExcelPHP
PhpSpreadsheet/Writer/Xlsx/Drawing.php
22040
<?php namespace PhpOffice\PhpSpreadsheet\Writer\Xlsx; use PhpOffice\PhpSpreadsheet\Chart; /** * Copyright (c) 2006 - 2016 PhpSpreadsheet * * 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 Foun...
mit
darkbasic/angular-meteor
atmosphere-packages/angular-compilers/package.js
753
Package.describe({ name: 'angular-compilers', version: '0.2.9_2', summary: 'Rollup, AOT, SCSS, HTML and TypeScript compilers for Angular Meteor', git: 'https://github.com/Urigo/angular-meteor/tree/master/atmosphere-packages/angular-compilers', documentation: 'README.md' }); Package.registerBuildPlugin({ na...
mit
butane/CodeIgniter
system/libraries/Encryption.php
23327
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2019, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this softw...
mit
hoangductho/original
application/modules/app/controllers/User.php
2468
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class User extends MY_Controller { protected $__ISSERVICE__ = false; protected $__RULES__ = [ 'signin' => [ 'method' => 'GET', 'data' => [] ], 'signup' => [ 'method' => 'GET', 'data' => [] ], 'signout' => [ 'method' => 'G...
mit
revnode/todo
todo-ui/js/pages/login.js
1719
var pages_login = { 'public render_login': function() { r.inject( this.dom.form = form({ c:['table', 'box', 'align_center'], e: { submit: this.event_submit_login.bind(this) } }, div({c:['column', 'title']}, 'Please Login'), this.dom.message = div({c:['column', 'message']...
mit
blairanderson/that-music-blog
lib/publify_textfilter_lightbox.rb
6162
require 'net/http' class PublifyApp class Textfilter class Lightbox < TextFilterPlugin::MacroPost plugin_display_name 'Lightbox' plugin_description 'Automatically generate tags for images displayed in a lightbox' def self.help_text %{ You can use `<publify:lightbox>` to display images ...
mit
thomasvanhorde/self-engine
ext/rockmongo/app/views/index/createDatabase.php
602
<h3><a href="<?php h(url("databases"));?>"><?php hm("databases"); ?></a> &raquo; <?php hm("create_database");?></h3> <?php if(isset($error)):?> <p class="error"><?php h($error);?></p> <?php endif;?> <?php if(isset($message)):?> <p class="message"><?php h($message);?></p> <?php endif;?> <?php if (!empty($_POST)):?> <...
mit
vnguyen94/react-commute
src/components/CommuteDataInput.js
1321
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Button, Input } from 'react-bootstrap'; import { importData } from '../actions'; import calculateStatistics from '../utils/calculateStatistics'; @connect(state => ({ commuteData: state.commuteData })) export default class Commut...
mit
bencallis1/the-shop
node_modules/history/lib/createLocation.js
1420
'use strict'; exports.__esModule = true; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _warning = require('warning'); var _warning2 = _interopRequireDefault(_warning); var _Actions = require('./Actions'); function extractPath(string) { var match = string.m...
mit
dbunibas/Speedy
src/speedy/persistence/xml/operators/IXSDNodeVisitor.java
653
package speedy.persistence.xml.operators; import speedy.persistence.xml.model.AttributeDeclaration; import speedy.persistence.xml.model.ElementDeclaration; import speedy.persistence.xml.model.PCDATA; import speedy.persistence.xml.model.SimpleType; import speedy.persistence.xml.model.TypeCompositor; public interface I...
mit
clay584/chuck
chuck/inventory/migrations/0002_auto_20150410_0013.py
427
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('inventory', '0001_initial'), ] operations = [ migrations.AlterField( model_name='inventory', name='d...
mit
StoychoMihaylov/ShopSystem
ShopSystem.App/ShopSystem.Data/Properties/AssemblyInfo.cs
1406
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Sh...
mit
romainneutron/PHPExiftool
lib/PHPExiftool/Driver/Tag/DICOM/BackProjectorCoefficient.php
822
<?php /* * This file is part of PHPExifTool. * * (c) 2012 Romain Neutron <imprec@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\DICOM; use JMS\Serializer\Annotation\ExclusionPolicy; u...
mit
xsilium-frameworks/xsilium-engine
Engine/Input/KeyboardMap.cpp
3164
/* * \file KeyboardMap.cpp * * Created on: \date 4 aožt 2014 * Author: \author joda * \brief : */ #include "KeyboardMap.h" namespace Engine { KeyboardMap::KeyboardMap() { // TODO Auto-generated constructor stub } KeyboardMap::~KeyboardMap() { // TODO Auto-generated destructor stub } void KeyboardMap...
mit
bsherrill480/website-asd-init
app/containers/UserRegister/constants.js
517
/* * * UserRegister constants * */ export const CHANGE_USERNAME = 'app/UserRegister/CHANGE_USERNAME'; export const CHANGE_PASSWORD = 'app/UserRegister/CHANGE_PASSWORD'; export const CHANGE_VERIFY_PASSWORD = 'app/UserRegister/CHANGE_VERIFY_PASSWORD'; export const DO_REGISTER = 'app/UserRegister/DO_REGISTER'; export...
mit
epfremmer/retrofit-php
tests/Mock/Service/MockServiceBody.php
2710
<?php /* * Copyright (c) Nate Brunette. * Distributed under the MIT License (http://opensource.org/licenses/MIT) */ namespace Tebru\Retrofit\Test\Mock\Service; use Tebru\Retrofit\Annotation as Rest; use Tebru\Retrofit\Test\Mock\MockUser; /** * Interface MockServiceBody * * @author Nate Brunette <n@tebru.net> ...
mit
VIS-ETH/vis-beer
visbeer/test/test_server.py
3409
import unittest from visbeer.server import app from visbeer.test.mocks.coffee_service_mock import CoffeeServiceMock from visbeer.test.mocks.beer_service_mock import BeerServiceMock from visbeer.test.mocks.flag_service_mock import FlagServiceMock class ServerTestCase(unittest.TestCase): def setUp(self): s...
mit
volkd/Opserver
Opserver.Core/Data/Dashboard/Providers/OrionDataProvider.cs
14488
using System; using System.Collections.Generic; using System.Data.Common; using System.Linq; using System.Net; using System.Threading.Tasks; using StackExchange.Opserver.Helpers; using StackExchange.Profiling; namespace StackExchange.Opserver.Data.Dashboard.Providers { public class OrionDataProvider : DashboardDa...
mit