repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
iboss-ptk/cuse_theme | front-page.php | 9868 | <header id="header" data-type="background" data-speed="5">
<div id="header-overlay" class="overlay"></div>
<div id="header-label">
<div class="title-name">
<h1 style="color: white">Software Engineering</h1>
<p class="lv0">Master Program, Department of Computer Engineering, Faculty of Engineering</p>
</div>
... | mit |
szelok/twister-android | src/szelok/app/twister/DirectMessageListViewAdapter.java | 3642 | package szelok.app.twister;
import java.util.Date;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.TreeMap;
import android.app.Fragment;
import android.text.SpannableString;
import android.text.Spanned;
impor... | mit |
VKCOM/vk-java-sdk | sdk/src/main/java/com/vk/api/sdk/objects/video/responses/UploadResponse.java | 1700 | // Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.objects.video.responses;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.vk.api.sdk.objects.Validable;
import java.util.Objects;
/**
* UploadResponse object
*/
public class UploadRes... | mit |
Yeyti/Gwen.CS | Gwen.Renderer.OpenTK/OpenTKBase.cs | 13126 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using Gwen.Renderer.OpenTK;
using OpenTK.Graphics.OpenGL;
using OpenTK;
using OpenTK.Graphics;
using Bitmap = System.Drawing.Bitmap;
using PixelFormat = OpenTK.Graphics.OpenGL.PixelFormat;
using SizeF = System.Drawing.S... | mit |
themarshallproject/pony | spec/controllers/templates_controller_spec.rb | 5882 | require 'rails_helper'
# This spec was generated by rspec-rails when you ran the scaffold generator.
# It demonstrates how one might use RSpec to specify the controller code that
# was generated by Rails when you ran the scaffold generator.
#
# It assumes that the implementation code is generated by the rails scaffold... | mit |
PatrickWalker/scullery | lib/scullery/couchdb/monitor.rb | 3545 | module Scullery
module CouchDB
class Monitor
# Creates the CouchDBMonitor
def initialize()
c = ParseConfig.new('conf/scullery.conf') #Read conf File
##read
notification_type=(c.params['notification_type'])
@db_server = Scullery::CouchDB::Server.new( c.params['couchDBHost']... | mit |
telendt/fmaze | cmd/fmaze/integration_test.go | 56 | // +build integration
package main
// TODO: implement
| mit |
alexmon1989/schools_kr | fuel/app/modules/admin/views/template.php | 3555 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo $title; ?></title>
<?php echo Asset::css('//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css'); ?>
<style>
body { margin: 50px; }
</style>
<?php echo Asset::js(array(
'//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.j... | mit |
helixyte/TheLMA | thelma/repositories/rdb/mappers/compoundchemicalstructure.py | 766 | """
This file is part of the TheLMA (THe Laboratory Management Application) project.
See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information.
Compound chemical structure mapper.
"""
from sqlalchemy.orm import mapper
from thelma.entities.chemicalstructure import CHEMICAL_STRUCTURE_TYPE_IDS
from the... | mit |
msieker/MicroBlog | src/Dropbox.Api/Files/SearchResult.cs | 5615 | // <auto-generated>
// Auto-generated by StoneAPI, do not modify.
// </auto-generated>
namespace Dropbox.Api.Files
{
using sys = System;
using col = System.Collections.Generic;
using re = System.Text.RegularExpressions;
using enc = Dropbox.Api.Stone;
/// <summary>
/// <para>The search result ... | mit |
ThetaGroup/JooBase | src/main/java/org/theta/joobase/info/JooMethodInfo.java | 1239 | package org.theta.joobase.info;
import java.lang.reflect.Method;
/**
*
* @author ranger
* @date Jul 13, 2017
*
*/
public abstract class JooMethodInfo {
private Method method;
private String shard;
private JooMethodType methodType;
private Class<?> returnType;
public JooMethodInfo() {
}
public JooM... | mit |
collab-uniba/emotions-online-qa | build_dataset/sentiment/Sentiment.java | 2029 | import uk.ac.wlv.sentistrength.*;
import java.util.Properties;
import edu.stanford.nlp.ling.CoreAnnotations;
import edu.stanford.nlp.pipeline.Annotation;
import edu.stanford.nlp.pipeline.StanfordCoreNLP;
import edu.stanford.nlp.sentiment.SentimentCoreAnnotations;
import edu.stanford.nlp.util.CoreMap;
public class S... | mit |
luoboding/feiyu | app/components/common/directives/quick-date-picker.js | 24840 | "use strict";
module.exports = function (ngModule) {
ngModule.provider("ngQuickDateDefaults", function () {
return {
options: {
dateFormat: 'yyyy-MM-dd',
timeFormat: 'HH:mm',
labelFormat: null,
placeholder: 'Click to Set Date',
... | mit |
nadvamir/forgotten-story-mmorpg | game/modules/loc/pris.php | 2067 | <?php
// TJURMA
$locmap = 'eway';
$w = do_mysql ("SELECT weather FROM maps WHERE map = '".$locmap."';");
$w = mysql_result ($w, 0);
if ($w == 0 || $w == 1 || $w == 0.5) $temperature = -1;
if ($w == 2 || $w == 3 || $w == 4 || $w == 5) $temperature = 0;
if ($w == 6) $temperature = 1;
// vyhod:
... | mit |
IntAlert/chatplayer | app/containers/HomePage/reducer.js | 6910 | /*
*
* Gimp reducer
*
*/
import { fromJS } from 'immutable';
import {
SCRIPT_FETCH_SUCCEEDED,
SCRIPT_FETCH_FAILED,
RESPOND,
BOT_MESSAGE_INVISIBLE,
BOT_MESSAGE_WRITING,
BOT_MESSAGE_VISIBLE,
TIMER_TICK,
PRINT,
} from './constants';
const initialState = fromJS({
script_loaded: false,
current_stag... | mit |
stonelasley/ionic-mocks | src/index.ts | 78 | export * from './native';
export * from './angular';
export * from './ionic';
| mit |
haizi-zh/Draft | nodeProject/routes/locality.js | 5473 | var express = require('express');
var router = express.Router();
var util = require('util')
var Locality = require('../models/locality').Locality;
var Album = require('../models/album').Album;
var Images = require('../models/images').Images;
var User = require('../models/user').User;
var pass = require('../auth/pas... | mit |
alekskorolev/raving.core | auth-access/client/index.js | 583 | /*jslint browser: true, devel: true, node: true, nomen: true*/
/*global angular, $ */
var user = require('./user-collection'),
snippet = require('./auth-snippet');
module.exports = function (config) {
"use strict";
user(config);
snippet(config);
angular.module(config.core.appid)
.run(['$rootScope', 'sock... | mit |
kubii/ng-nativescript-sample | app/pages/login/login.component.ts | 588 | import {Component} from '../../util/Component';
import {LoginService} from '../../services/login.service';
import {Router} from '../../app.metadata';
import {PlatformMetadata} from './login.metadata';
@Component({
selector: 'my-login'
}, PlatformMetadata)
export class Login {
public name: string;
public p... | mit |
Meee32/net2 | src/qt/coincontroldialog.cpp | 30880 | #include "coincontroldialog.h"
#include "ui_coincontroldialog.h"
#include "init.h"
#include "bitcoinunits.h"
#include "walletmodel.h"
#include "addresstablemodel.h"
#include "optionsmodel.h"
#include "coincontrol.h"
#include <QApplication>
#include <QCheckBox>
#include <QClipboard>
#include <QColor>
#include <QCursor... | mit |
a7866353/MySharpNEAT | src/SharpNeatLib/Decoders/FastCyclicNetworkFactory.cs | 11528 | /* ***************************************************************************
* This file is part of SharpNEAT - Evolution of Neural Networks.
*
* Copyright 2004-2016 Colin Green (sharpneat@gmail.com)
*
* SharpNEAT is free software: you can redistribute it and/or modify
* it under the terms of the GNU General P... | mit |
sleepyparadox/SplitHunter.EXE | SplitHunter.EXE/SplitHunter.EXE/Properties/Resources.Designer.cs | 2789 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | mit |
arseniy96/foreman_site | db/migrate/20160424205003_add_inspected.rb | 115 | class AddInspected < ActiveRecord::Migration
def change
add_column :messages, :inspected, :boolean
end
end
| mit |
firebluetom/Backbone-Desktop | public/js/app/collections/Collection.js | 432 | // Collection.js
// -------------
define(["jquery", "backbone", "../models/Model"],
function($, Backbone, Model) {
// Creates a new Backbone Collection class object
var Collection = Backbone.Collection.extend({
// Tells the Backbone Collection that all of it's models will be of type Model (listed up ... | mit |
dblock/slack-ruby-client | spec/slack/web/api/endpoints/oauth_v2_spec.rb | 383 | # frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake
require 'spec_helper'
RSpec.describe Slack::Web::Api::Endpoints::OauthV2 do
let(:client) { Slack::Web::Client.new }
context 'oauth.v2_access' do
it 'requires code' do
expect { client.oauth_v2_access }.to raise_error Argum... | mit |
chrisGoad/prototypejungle | text/solar/naws.js | 475 |
core.require('/diagram/graph.js',function (graphP) {
let graph = graphP.instantiate();
core.setFunction('computeMessage', function (graph) {
if (graph.zub === undefined) {
graph.zub = 0;
}
return "Count "+graph.zub++;
});
graph.computeMessage = function () {
if (this.zum === undefined) {
this.zu... | mit |
crazycodr/data-grouper | src/CrazyCodr/Data/Grouper/GrouperNotFoundException.php | 698 | <?php
namespace CrazyCodr\Data\Grouper;
/**
* This exception is raised when an operation tries to access a grouper that doesn't exist in a grouper container
*
* @uses \OutOfRangeException
*
* @category Exceptions
* @package CrazyCodr/Data-Grouper
* @author CrazyOne@CrazyCoders
* @license MIT
* @link crazy... | mit |
darosh/glt | components/glt/generators/randomParams.js | 1315 | import {randomInt} from './randomInt';
import {rand} from './rand';
import {randomUniform} from 'd3-random';
export function randomParam(type, proto, decimals) {
if ((type === 'int') && proto[3]) {
return randomInt(proto[3][0], proto[3][1]);
} else if ((type === 'float') && proto[3]) {
// retur... | mit |
dannyrdalton/example_signup_flow | src/helpers/redux-form/field_renderers.js | 806 | import React from 'react'
import DropdownList from 'react-widgets/lib/DropdownList'
export const field = (field) => (
<div className={'form-group ' + (field.meta.error && field.meta.touched ? 'has-error ' : '') + (!field.meta.error && field.meta.touched ? 'has-success': '')}>
<label>{field.label}</label>
<di... | mit |
Paulli1989/mfd-angular | src/app/shared/demo-data.service.js | 1428 | "use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | mit |
SkillsFundingAgency/das-commitments | src/SFA.DAS.Commitments.Api.Types/TrainingProgramme/GetAllTrainingProgrammeStandardsResponse.cs | 245 | using System.Collections.Generic;
namespace SFA.DAS.Commitments.Api.Types.TrainingProgramme
{
public class GetAllTrainingProgrammeStandardsResponse
{
public IEnumerable<TrainingProgramme> TrainingProgrammes { get; set; }
}
} | mit |
suripoori/SocialNetwork | src/twitter/Influence.java | 498 | package twitter;
import java.util.List;
public abstract class Influence {
protected TwitterNetwork t;
public Influence(TwitterNetwork t) {
this.t = t;
}
protected TwitterNetwork getTwitterNetwork() {
return t;
}
/* Gets ordering of the Users based on the followers */
public abstract List<Integer> g... | mit |
Nerketur/discordapi | permissions.go | 3051 | package discord
import (
//"fmt"
"encoding/json"
)
type Perm struct{
CreateInstantInvite bool
KickMembers bool
BanMembers bool
ManageRoles bool
ManageChannels bool
ManageGuild bool
// Text
ReadMessages bool
SendMessages bool
Send... | mit |
wallBMW/TrackCat | app/models/item_history.rb | 414 | class ItemHistory < ActiveRecord::Base
belongs_to :item, :foreign_key => "item_id"
belongs_to :user, :foreign_key => "user_id"
belongs_to :old_area, class_name: "Area", :foreign_key => "old_area_id"
belongs_to :new_area, class_name: "Area", :foreign_key => "new_area_id"
def record(user, item, new_value)
... | mit |
CYDpeter/104021003 | 20150805/src/Ex6.java | 576 | import java.util.Scanner;
public class Ex6 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scn = new Scanner(System.in);
System.out.print("½Ð¿é¤J³ÌµuÃä");
int a = scn.nextInt();
System.out.print("½Ð¿é¤J²Ä¤GªøÃä");
int b = scn.nextInt();
System.out.print("½Ð¿é¤J³ÌªøÃ... | mit |
stoplightio/gitlabhq | app/assets/javascripts/blob/template_selectors/type_selector.js | 642 | import FileTemplateSelector from '../file_template_selector';
export default class FileTemplateTypeSelector extends FileTemplateSelector {
constructor({ mediator, dropdownData }) {
super(mediator);
this.mediator = mediator;
this.config = {
dropdown: '.js-template-type-selector',
wrapper: '.js... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/openlayers/2.11/lib/OpenLayers/Control/Snapping.min.js | 129 | version https://git-lfs.github.com/spec/v1
oid sha256:190a9a1406c4f34ec80475c30e47b34333daaad54589164ffd3869afcb2e63b0
size 4545
| mit |
thoughtbit/node-web-starter | bear-api-express/server/src/core/errors/index.js | 504 | const clientError = require('./clientError')
const HttpError = require('./httpError')
const serverError = require('./serverError')
const {
BadRequest,
Unauthorized,
Forbidden,
NotFound,
MethodNotAllowed,
Conflict,
UserNotVerifiedError,
} = clientError
const { InternalServer, NotImplemented } = serverErro... | mit |
austonst/midi | timedivision.cpp | 1146 | /*
Copyright (c) 2014 Auston Sterling
See LICENSE for copying permissions.
-----TimeDivision Class Implementation-----
Auston Sterling
austonst@gmail.com
Contains the implementation for the TimeDivision class, for use in MIDI files.
*/
#include "timedivision.hpp"
namespace midi
{
//Default construc... | mit |
Dewire/dehub-react-native | eslint-plugin-dehub/index.js | 302 |
module.exports.rules = {
'no-props-navigator': context => ({
MemberExpression: (node) => {
if (node.object.name === 'props' && node.property.name === 'navigator') {
context.report(node, 'Do not use props.navigator directly. Use props.navigate() instead.');
}
},
}),
};
| mit |
vapits/jexia-simple-angular-chat | js/app.js | 1208 | angular.module('simpleChat', [
'ngRoute',
'luegg.directives',
'angularMoment',
'ui.bootstrap'])
.run(function($rootScope, $http){
// Let's get the configuration data
// You can edit them to config.js
$rootScope.credentials = angular.copy(jexia);
})
.config(function($routeProvider, $locationProvider, $httpPr... | mit |
aclissold/hooktftp | hooks/http_hook.go | 373 | package hooks
import (
"fmt"
"io"
"net/http"
)
var HTTPHook = HookComponents{
func(url string) (io.ReadCloser, error) {
res, err := http.Get(url)
if err != nil {
return nil, err
}
if res.StatusCode != 200 {
return nil, fmt.Errorf("Bad response '%v' from %v", res.Status, url)
}
return res.Body... | mit |
koobonil/Boss2D | Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/modules/rtp_rtcp/source/rtp_format_vp9.cc | 26575 | /*
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | mit |
anthonyfuentes/hubzero-cms | core/components/com_users/site/controllers/auth.php | 26923 | <?php
/**
* @package hubzero-cms
* @copyright Copyright 2005-2019 HUBzero Foundation, LLC.
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Components\Users\Site\Controllers;
use Hubzero\Component\SiteController;
use Hubzero\Config\Registry;
use Hubzero\Utility\Uri;
use Exception;
use Documen... | mit |
hazah/watchman | lib/watchman/permissions/set.rb | 904 | # encoding: utf-8
module Watchman
module Permissions
class Set
# :api: public
attr_reader :env, :scope, :permissions
include ::Watchman::Mixins::Common
# :api: private
def initialize(permissions, env, scope=nil) # :nodoc:
@env, @scope = env, scope
@permissions = per... | mit |
lmazuel/azure-sdk-for-python | azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/operation_error.py | 1060 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit |
JamesMGreene/nedboose | src/schema-types.js | 59 | function SchemaTypes() {
}
module.exports = SchemaTypes;
| mit |
tronsha/testphp | tests/FunctionStrposTest.php | 436 | <?php
/**
* Class FunctionStrposTest
* @link http://php.net/manual/en/function.strpos.php
*/
class FunctionStrposTest extends PHPUnit_Framework_TestCase
{
public function testFunctionStrpos()
{
$this->assertTrue(strpos('abc', 'a') !== false);
$this->assertEquals(0, strpos('abc', 'a'));
... | mit |
marcaube/hex | tests/EventSourcing/EventSourcedEntityTest.php | 1458 | <?php
namespace Ob\Hex\Tests\EventSourcing;
use Ob\Hex\EventSourcing\EventSourcedEntity;
/**
* @covers Ob\Hex\EventSourcing\EventSourcedEntity
*/
class EventSourcedEntityTest extends \PHPUnit_Framework_TestCase
{
public function testCanBeCreatedFromAListOfEvents()
{
$entity = Entity::createFromEven... | mit |
ARM-software/ComputeLibrary | tests/validation/NEON/DepthwiseConvolutionLayerNative.cpp | 9557 | /*
* Copyright (c) 2019-2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... | mit |
EthanR/HaloSharp | Source/HaloSharp.Test/Config.cs | 5823 | namespace HaloSharp.Test
{
public static class Config
{
public const string CampaignMissionsJsonPath = "JSON/Metadata/campaign-missions.json";
public const string CampaignMissionsJsonSchemaPath = "JSON/Metadata/campaign-missions.schema.json";
public const string CommendationJsonPath = "... | mit |
notjrbauer/iterable-json-schema | common/unsubscriber.js | 175 | module.exports = {
type: 'object',
properties: {
email: {
type: 'string',
format: 'email',
required: true
}
},
additionalProperties: false
}
| mit |
re222dv/1DV402-C-sharp | 1DV402.S2.L3C/Properties/AssemblyInfo.cs | 1420 | 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("1D... | mit |
costassarris/Javabuzz | src/Fizzbuzz.js | 674 | function Fizzbuzz() {
};
Fizzbuzz.prototype._isDivisibleBy = function (number, divisor){
return (number % divisor === 0);
};
Fizzbuzz.prototype.isDivisibleByThree = function(number) {
return this._isDivisibleBy(number, 3);
};
Fizzbuzz.prototype.isDivisibleByFive = function(number) {
return this._isDivisibleBy(... | mit |
Ravenheart/driversolutions | DriverSolutions.BOL/Managers/ModuleDriver/IDriverCatalogManager.cs | 722 | using DriverSolutions.BOL.Models.ModuleDriver;
using DriverSolutions.BOL.Models.ModuleSystem;
using DriverSolutions.DAL;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DriverSolutions.BOL.Managers.ModuleDriver
... | mit |
Aux/NTwitch | src/NTwitch.Core/TwitchConfig.cs | 1218 | using System.Reflection;
namespace NTwitch
{
public class TwitchConfig
{
public static string Version { get; } =
typeof(TwitchConfig).GetTypeInfo().Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion ??
typeof(TwitchConfig).GetTypeInfo().A... | mit |
Exrik/tabell | www-src/scripts/reducers/users.js | 2177 | 'use strict';
const initialState = {
error: false,
loading: false,
data: {},
highscore: []
};
function users(state = initialState, action) {
const newState = JSON.parse(JSON.stringify(state));
switch (action.type) {
case 'USERS_REQUEST':
newState.loading = true;
... | mit |
bleeding182/localized-screenshots | app/src/main/java/at/bleeding182/testing/instrumentationtest/modules/RandomModule.java | 1507 | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 David Medenjak
*
* 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 us... | mit |
TheNoobCompany/NoWhere | HelloWorld.cpp | 101 | #include <iostream>
int main()
{
std::cout << "Hello, new world!" << std::endl;
return 0;
} | mit |
mrmans0n/smart-adapters | sample/src/main/java/io/nlopez/smartadapters/sample/view/PlaceView.java | 1486 | package io.nlopez.smartadapters.sample.view;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.squareup.picasso.Picasso;
import butterknife.ButterKnife;
import butterknife.InjectView;
import io.nlopez.s... | mit |
idlamane/ahgh | src/Amb/ContratBundle/Entity/Contrat.php | 6577 | <?php
namespace Amb\ContratBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* Amb\ContratBundle\Entity\Contrat
*
* @ORM\Table()
* @ORM\Enti... | mit |
zhwsh00/DirectFire-android | directfire_github/trunk/gameui/battle.net/herospage.cpp | 15152 | #include "herospage.h"
#include "herostitle.h"
#include "utils/sysutils.h"
#include "prop/propdef.h"
#include "gamecore/sounds/soundmgr.h"
#include "herositem.h"
#include "gamecore/utils/ccutils.h"
HerosPage::HerosPage(uilib::BasWidget *container) : BasPage(container)
{
m_serverIface = ServerInterface::getInstan... | mit |
shooterman/ideasbulb | db/migrate/20111122074919_create_users_favor_ideas.rb | 246 | class CreateUsersFavorIdeas < ActiveRecord::Migration
def change
create_table :favors do |t|
t.integer :user_id
t.integer :idea_id
t.timestamps
end
add_index :favors,[:user_id,:idea_id],:unique => true
end
end
| mit |
velialarm/PHP-and-MySQL | 18-PHP from scratch/controllers/albums.php | 86 | <?php
namespace Controllers;
class Albums_Controller extends Master_Controller {
} | mit |
Baddum/Factory418 | test/bootstrap.php | 266 | <?php
$composerAutoloadFilePathList = [
__DIR__.'/../vendor/autoload.php',
__DIR__.'/../../../autoload.php',
];
foreach ($composerAutoloadFilePathList as $filePath) {
if (file_exists($filePath)) {
require_once $filePath;
break;
}
}
| mit |
ajbrzoz/Head-First-Design-Patterns | strategy/main.py | 338 | # STRATEGY pattern
from ducks import MallardDuck, ModelDuck
from fly_behaviours import FlyRocketPowered
if __name__ == "__main__":
mallard = MallardDuck()
mallard.perform_quack()
mallard.perform_fly()
model = ModelDuck()
model.perform_fly()
model.set_fly_behaviour(FlyRocketPowered())
mo... | mit |
SanguPackage/TWTactics | TribalWars/Maps/Publisher.cs | 7910 | #region Using
using System;
using System.Collections.Generic;
using System.ComponentModel;
using TribalWars.Browsers.Reporting;
using TribalWars.Maps.AttackPlans;
using TribalWars.Maps.AttackPlans.EventArg;
using TribalWars.Maps.Manipulators;
using TribalWars.Maps.Manipulators.Implementations;
using TribalWars.Maps.Man... | mit |
sundaramss/rcp | index.js | 1356 | #! /usr/bin/env node
var FileReceiver = require('./lib/tar-receiver');
var fileSender = require('./lib/tar-sender');
var commandLineArgs = require('command-line-args');
var cli = commandLineArgs([
{ name: 'server', alias: 's', type: Boolean, description:"Start receive file server" },
{ name: 'fpath', alias: 'f', t... | mit |
ripeCo/citiSell | application/config/config.php | 17777 | <?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 |
christophwille/wlapimonitoring | Source/IsQandoUp/IsQandoUp/Areas/HelpPage/SampleGeneration/HelpPageSampleKey.cs | 6940 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Net.Http.Headers;
namespace IsQandoUp.Areas.HelpPage
{
/// <summary>
/// This is used to identify the place where the sample should be applied.
/// </summary>
public class HelpPageSampleKey
{
/// <summ... | mit |
bdowning/retween | test/preprocessors/colorPreprocessor.spec.js | 2764 | import expect from 'expect';
import { identity } from '../../src/index';
import createColorPreprocessor from '../../src/preprocessors/createColorPreprocessor';
describe('colorPreprocessor', () => {
it('passes states with no strings through unchanged', () => {
const colorPreprocessor = createColorPreprocessor();
... | mit |
h136799711/itboye2015gd | guangda_android/src/com/itboye/guangda/utils/ToastTime.java | 602 | package com.itboye.guangda.utils;
import java.util.Timer;
import java.util.TimerTask;
import android.widget.Toast;
public class ToastTime extends TimerTask {
Toast toast = null;
Timer timer=null;
public ToastTime(Toast toast,Timer timer) {
// TODO Auto-generated constructor stub
this.toast = toast;
th... | mit |
navneetzz/classicware | sandbox/ecommerce/New_folder/admin/users/show.php | 1389 | <?php
/**
* User admin - show a user
*/
// Initialisation
require_once('../../includes/init.php');
// Require the user to be logged in before they can see this page.
Auth::getInstance()->requireLogin();
// Require the user to be an administrator before they can see this page.
Auth::getInstance()->requireAdmin();
... | mit |
Krushelnitskiy/bug_tracker | src/Tracker/IssueBundle/Tests/Controller/DefaultControllerTest.php | 5825 | <?php
namespace Tracker\IssueBundle\Tests\Controller;
use Tracker\TestBundle\Test\WebTestCase;
/**
* Class DefaultControllerTest
* @package Tracker\IssueBundle\Tests\Controller
*/
class DefaultControllerTest extends WebTestCase
{
public function testShow()
{
$client = static::createClient(array(),... | mit |
Titifonky/DXFLibrary | Arc.cs | 472 |
namespace DXFLibrary
{
class Arc : DXFLibrary.Entity
{
public Arc(double x, double y, double radius, double startAngle, double endAngle, string layer):base("ARC",layer)
{
this.dataAcceptanceList.AddRange(new int[] { 39, 10, 20, 30, 40, 100, 50, 51, 210, 220, 230 });
this.AddReplace(10, x);
this.... | mit |
icejs-team/icejs | test/unit/loadModule/module-files/plugin/demo1.js | 84 | am.install ( {
name : "demo1",
build : function () {
return {o:"demo1"};
}
} ); | mit |
amplify-education/test-drive | lib/test/drive/jenkins_client.rb | 1946 | require 'jenkins_api_client'
module Test
module Drive
class JenkinsClient
attr_accessor :client
def initialize jenkins_url, user, api_key
@server_url = jenkins_url
@user = user
@api_key = api_key
@client = JenkinsApi::Client.new :server_url => jenkins_url,
... | mit |
RAStacy/ryanstacy.net | rs_web_dev/template-parts/content-page.php | 1018 | <?php
/**
* Template part for displaying page content in page.php.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package rs_web_dev
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</h... | mit |
daxsorbito/meanMammoth | public/modules/items/controllers/items.client.controller.js | 1443 | 'use strict';
// Items controller
angular.module('items').controller('ItemsController', ['$scope', '$stateParams', '$location', 'Authentication', 'Items',
function($scope, $stateParams, $location, Authentication, Items ) {
$scope.authentication = Authentication;
// Create new Item
$scope.create = function() {
... | mit |
aurelia/ux | packages/slider/dist/amd/index.js | 745 | define(["require", "exports", "aurelia-framework", "./ux-slider-theme", "./ux-slider"], function (require, exports, aurelia_framework_1, ux_slider_theme_1, ux_slider_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.configure = void 0;
Object.defineProperty(export... | mit |
RobinClowers/photo-album | app/assets/javascripts/application.js | 694 | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... | mit |
localfoodnodes/localfoodnodes | resources/views/account/user/product-orders.blade.php | 3023 | @extends('account.layout')
@section('title', join(array_keys($breadcrumbs), ' - '))
@section('content')
@include('account.page-header')
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">{{ $orderDateItemLinks->first()->getItem()->product['n... | mit |
johnhenry/node-uuid | uuid.js | 7332 | // uuid.js
//
// Copyright (c) 2010-2012 Robert Kieffer
// MIT License - http://opensource.org/licenses/mit-license.php
(function() {
var _global = this || global;
// Unique ID creation requires a high quality random # generator. We feature
// detect to determine the best RNG source, normalizing to... | mit |
herschel666/phox | lib/definitions/exif.ts | 453 | declare module 'exif' {
export type TYPE_NO_EXIF_SEGMENT = 'NO_EXIF_SEGMENT';
interface ExifImageArgs {
image: string;
}
export interface Exif {
[x: string]: any;
}
export interface ExifError extends Error {
code: TYPE_NO_EXIF_SEGMENT | string;
}
type callback = (err: ExifError | null, e... | mit |
eileenzhuang1/mozu-java | mozu-java-test/src/main/java/com/mozu/test/framework/datafactory/LocationUsageFactory.java | 5138 | /**
* This code was auto-generated by a tool.
*
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*/
package com.mozu.test.framework.datafactory;
import java.util.List;
import java.util.ArrayList;
import com.mozu.api.ApiException;
import ... | mit |
modmore/ClientConfig | core/components/clientconfig/model/clientconfig/clientconfig.class.php | 6036 | <?php
/**
* ClientConfig
*
* Copyright 2011-2014 by Mark Hamstra <hello@markhamstra.com>
*
* ClientConfig is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your opt... | mit |
tip4commit/tip4commit | features/support/to_ostruct.rb | 378 | # frozen_string_literal: true
require 'ostruct'
class Hash
def to_ostruct
o = OpenStruct.new(self)
each do |k, v|
o.send(:"#{k}=", v.to_ostruct) if v.respond_to? :to_ostruct
end
o
end
end
class Array
def to_ostruct
map do |item|
if item.respond_to? :to_ostruct
item.to_os... | mit |
quepasso/qblog | src/Fil/CoreBundle/Entity/CategoryRepository.php | 262 | <?php
namespace Fil\CoreBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* CategoryRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class CategoryRepository extends EntityRepository
{
}
| mit |
mmiddleton3301/intersproc | Meridian.InterSproc/Meridian.InterSproc/Definitions/IStubClassGenerator.cs | 1601 | // ----------------------------------------------------------------------------
// <copyright file="IStubClassGenerator.cs" company="MTCS">
// Copyright (c) MTCS 2018.
// MTCS is a trading name of Meridian Technology Consultancy Services Ltd.
// Meridian Technology Consultancy Services Ltd is registered in England and... | mit |
peq/rustyeclipse | rustyeclipse_plugin/src/rustyeclipse/editors/autocomplete/RustContentAssistant.java | 5633 | package rustyeclipse.editors.autocomplete;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.resources.IProject;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.jface.text.BadLocationExc... | mit |
tvetan/android | WorkHoursTracker/src/com/cai/workhourstracker/TagsAddDialogFragment.java | 3611 | package com.cai.workhourstracker;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import com.cai.workhourstracker.adapters.TagsArrayAdapter;
import com.cai.workhourstracker.model.TagRow;
import android.ap... | mit |
BorisPenev/TelerikAcademy | CSharp-part1/Operators and Expressions/14.ModifyABitAtGivenPosition/Properties/AssemblyInfo.cs | 1432 | 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("14... | mit |
DzianisPasiukou/StuckPointPlacement | typings/tsd.d.ts | 299 | /// <reference path="angularjs/angular.d.ts" />
/// <reference path="jquery/jquery.d.ts" />
/// <reference path="jasmine/jasmine.d.ts" />
/// <reference path="rx/rx-lite.d.ts" />
/// <reference path="rx/rx.d.ts" />
/// <reference path="d3/d3.d.ts" />
/// <reference path="requirejs/require.d.ts" />
| mit |
aliyun/fc-java-sdk | src/main/java/com/aliyuncs/fc/response/ListCustomDomainsResponse.java | 793 | package com.aliyuncs.fc.response;
import com.aliyuncs.fc.http.HttpResponse;
import com.aliyuncs.fc.model.CustomDomainMetaData;
import com.aliyuncs.fc.model.ServiceMetadata;
public class ListCustomDomainsResponse extends HttpResponse {
private CustomDomainMetaData[] customDomains = null;
private String nextTok... | mit |
ccampo133/TestsAndDesignPatternsDemos | MVPDemo/Models/Capitalizer.cs | 191 | namespace MVPDemo.Models
{
public class Capitalizer : ICapitalizer
{
public string Capitalize(string input)
{
return input.ToUpper();
}
}
}
| mit |
cloverstudio/Spika-Android | app/src/main/java/com/clover_studio/spikachatmodule/models/FileModel.java | 1406 | package com.clover_studio.spikachatmodule.models;
import android.os.Parcel;
import android.os.Parcelable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
/**
* Created by ubuntu_ivo on 22.07.15..
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class FileModel implements Parcelable{
public... | mit |
RealImage/QLedger | controllers/transactions_test.go | 6314 | package controllers
import (
"bytes"
"database/sql"
"log"
"net/http"
"net/http/httptest"
"os"
"testing"
ledgerContext "github.com/RealImage/QLedger/context"
"github.com/RealImage/QLedger/middlewares"
_ "github.com/lib/pq"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)
var (
... | mit |
gregwym/joos-compiler-java | src/ca/uwaterloo/joos/ast/descriptor/ChildDescriptor.java | 215 | /**
*
*/
package ca.uwaterloo.joos.ast.descriptor;
/**
* @author wenzhuman
*
*/
public class ChildDescriptor extends Descriptor {
public ChildDescriptor(Class<?> elementType) {
super(elementType);
}
}
| mit |
ThorConzales/AoE2HDLobbyCompanion | Client/Client/src/app/players/index.ts | 91 | export * from './players.module';
export * from './players-page/players-page.component'; | mit |
dillonliang224/React-CMS | src/common/reducers/articles.js | 288 | import { handleActions } from 'redux-actions';
import { fetchArticles } from '../actions/index.js';
export default handleActions({
FETCH_ARTICLES: (state, action) => {
let payload = action.payload;
return {...state, isFetching: false, articles: payload.articles};
}
}, {});
| mit |