repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
hptruong93/Finance-Tracker | src/Utilities/DateUtility.java | 4670 | package utilities;
import java.sql.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Locale;
public class DateUtility {
public static final DateFormat DEFAULT_DISPLAY_FORMAT = new SimpleDateFormat("yyyy - MM - dd", Locale.EN... | mit |
zachhuff386/react-boilerplate | app/actions/ItemActions.ts | 1124 | /// <reference path="../References.d.ts"/>
import Dispatcher from '../dispatcher/Dispatcher';
import * as ItemTypes from '../types/ItemTypes';
export function sync(): Promise<void> {
Dispatcher.dispatch({
type: ItemTypes.LOADING,
});
return new Promise<void>((resolve): void => {
let data: ItemTypes.Item[] = [
... | mit |
jsoverson/rcl | test/rcl_test.js | 853 | 'use strict';
var grunt = require('grunt');
/*
======== A Handy Little Nodeunit Reference ========
https://github.com/caolan/nodeunit
Test methods:
test.expect(numAssertions)
test.done()
Test assertions:
test.ok(value, [message])
test.equal(actual, expected, [message])
test.notEqual(actua... | mit |
martinjmares/javatwo-jaxrs-angular-tools-demo | src/main/java/name/marmar/javatwo/PresentationResource.java | 3172 | package name.marmar.javatwo;
import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
import com.google.common.collect.Collections2;
import com.wordnik.swagger.annotations.*;
import name.marmar.javatwo.model.ConferenceDay;
import name.marmar.javatwo.model.Presentation;
import name.marmar.java... | mit |
johnskopis/syslog_ruby | lib/syslog_ruby/logger.rb | 4142 | require 'socket'
module SyslogRuby
class Logger
attr_accessor :ident, :facility, :socket, :hostname, :mask, :log_uri
class << self
def setup_severity_methods
SyslogRuby::Severity.constants.each do |level_name|
level = SyslogRuby::Severity.const_get level_name
define_method(... | mit |
3tnet/t-cms | app/Models/Traits/Typeable.php | 543 | <?php
namespace App\Models\Traits;
use App\Models\Type;
trait Typeable
{
public function scopeByType($query, $type)
{
if ($type instanceof Type) {
$typeId = $type->id;
} elseif (is_array($type)) {
$typeId = $type['id'];
} elseif (is_null($type)) {
$t... | mit |
Emethium/salsa | angular4-client/src/app/views/components/donator-listing.component.ts | 3082 | import { Observable } from 'rxjs/Observable';
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, ParamMap, Router } from '@angular/router';
import { Location } from '@angular/common';
import { NgxPaginationModule } from 'ngx-pagination';
import { FlashMessagesService } from 'ngx-flash-messages'... | mit |
MrCarlLister/overlay-content-for-Wordpress- | content-overlay.php | 2665 | <?php
/*
Plugin Name: Overlay content with colorbox
Plugin URI: http://www.everythingdifferent.co.uk
Description: Plugin for displaying specific external page content element in an overlay
Author: C Lister
Version: 1.0
Author URI: http://www.everythingdifferent.co.uk
*/
// register all hooks
register_activation_hook(... | mit |
jmthompson2015/rivalry | example/src/main/java/org/rivalry/example/runescape/RivalryDataGrandExchange.java | 2445 | //*****************************************************************************
// Rivalry (http://code.google.com/p/rivalry)
// Copyright (c) 2011 Rivalry.org
// Admin rivalry@jeffreythompson.net
//
// See the file "LICENSE.txt" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL W... | mit |
Vizzuality/gfw | components/map/actions.js | 537 | import { createAction } from 'redux/actions';
export const setMapLoading = createAction('setMapLoading');
export const setMapSettings = createAction('setMapSettings');
export const setMapInteractions = createAction('setMapInteractions');
export const setMapInteractionSelected = createAction(
'setMapInteractionSelect... | mit |
KaSt/equikoin | src/util.cpp | 43213 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef WIN32
// for posix_fallocate
#ifdef __linux__
#define _POSIX_C_SOURCE 2001... | mit |
MiXTelematics/MiX.Integrate.Api.Client | MiX.Integrate.Shared/Entities/DeviceConfiguration/MobileUnitDeviceConfiguration.cs | 876 | using System;
using System.Collections.Generic;
namespace MiX.Integrate.Shared.Entities.DeviceConfiguration
{
public class MobileUnitDeviceConfiguration
{
public string AssetId { get; set; }
public string ConfigurationGroup { get; set; }
public string MobileDeviceType { get; set; }
public DateTimeOffset L... | mit |
4rthem/google-api | src/Domain/Place/VO/Url.php | 346 | <?php
namespace Arthem\GoogleApi\Domain\Place\VO;
class Url
{
/**
* @var string
*/
private $url;
/**
* @param string $url
*/
public function __construct($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
r... | mit |
opentable/ntextcat-http | src/NTextCat-Http/NTextCat.NancyHandler/LanguageDetection/DetectedLanguageResponse.cs | 590 | using System.Collections.Generic;
namespace NTextCat.NancyHandler.LanguageDetection
{
public class DetectedLanguageResponse
{
public DetectedLanguageResponse()
{
RankedMatches = new List<DetectedLangage>();
}
public DetectedLanguageResponse(List<DetectedLangage> la... | mit |
creative2020/kelley | wp-content/plugins/use-any-font/includes/uaf_font_upload_js.php | 8672 | <?php
$allowedFontFormats = array ('ttf','otf');
$uaf_api_key = get_option('uaf_api_key');
if (isset($_POST['submit-uaf-font'])){
$fontUploadFinalMsg = '';
$fontUploadFinalStatus = 'updated';
if (!empty($_POST['font_name'])):
$fontNameToStore = sanitize_file_name(date('ymdhis').$_POST['font_name']);
... | mit |
CedricDumont/CExtensions-Patch | src/CExtensions.Patch/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: AssemblyTitle("CE... | mit |
vhochstein/active_scaffold | app/assets/javascripts/jquery/jquery.editinplace.js | 28678 | /*
A jQuery edit in place plugin
Version 2.3.0
Authors:
Dave Hauenstein
Martin Häcker <spamfaenger [at] gmx [dot] de>
Project home:
http://code.google.com/p/jquery-in-place-editor/
Patches with tests welcomed! For guidance see the tests </spec/unit/>. To submit, attach them to the bug tracker.
License:
This s... | mit |
csrgxtu/xiami-downloader | setup.py | 899 | import codecs
from setuptools import setup
# Get the long description from the relevant file
with codecs.open('README.md', encoding='utf-8') as f:
long_description = f.read()
setup(
name='xiami-downloader',
version="0.3.0",
description='Python script for download preview music from xiami.com.',
lo... | mit |
esther5576/GEO | CODE/Assets/Plugins/Colorful/Components/CC_Levels.cs | 2201 | using UnityEngine;
[ExecuteInEditMode]
[AddComponentMenu("Colorful/Levels")]
public class CC_Levels : CC_Base
{
#region Retro compatibility
public int mode { get { return isRGB ? 1 : 0; } set { isRGB = value > 0 ? true : false; } }
#endregion
public bool isRGB = false;
public float inputMinL = 0;
public float ... | mit |
PagueVeloz/ClientAPI | python/pagueveloz/api/base.py | 1943 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import unirest
from base64 import b64encode
URL_API = 'https://www.pagueveloz.com.br/api/'
class RetornoAPI:
def __init__(self, status, retorno):
self.status = status
self.retorno = retorno
def __repr__(self):
return '%s' % ... | mit |
Mirmik/gxx | tests/HIDE/cstring/main.cpp | 74 | #include <gxx/print.h>
#include <gxx/datastruct/cstring.h>
int main() {
} | mit |
rohitbegani/BrainStorm-Quiz-website-engine | db/migrate/20140130045634_create_levels.rb | 222 | class CreateLevels < ActiveRecord::Migration
def change
create_table :levels do |t|
t.text :answer
t.integer :next_id
t.integer :prev_id
t.text :question
t.timestamps
end
end
end
| mit |
VisualDataWeb/OntoBench | src/main/java/de/linkvt/ontobench/features/datatypemaps/XsdUnsignedIntFeature.java | 320 | package de.linkvt.ontobench.features.datatypemaps;
import org.semanticweb.owlapi.vocab.OWL2Datatype;
import org.springframework.stereotype.Component;
@Component
public class XsdUnsignedIntFeature extends AbstractDatatypeMapFeature {
public XsdUnsignedIntFeature() {
super(OWL2Datatype.XSD_UNSIGNED_INT);
}
}
| mit |
BreeeZe/NuGetPackageExplorer | PackageExplorer/MefServices/SettingsManager.cs | 4011 | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel.Composition;
using System.Linq;
using NuGetPe;
using NuGetPackageExplorer.Types;
using PackageExplorer.Properties;
namespace PackageExplorer
{
[Export(typeof(ISettingsManager))]
internal class Set... | mit |
LBenzahia/cltk | cltk/tests/test_nlp/test_tokenize.py | 23990 | # -*-coding:utf-8-*-
"""Test cltk.tokenize.
"""
from cltk.corpus.utils.importer import CorpusImporter
from cltk.tokenize.sentence import TokenizeSentence
from cltk.tokenize.word import nltk_tokenize_words
from cltk.tokenize.word import WordTokenizer
from cltk.tokenize.line import LineTokenizer
import os
import unitt... | mit |
ingetat2014/www | app/cache/dev/appDevUrlMatcher.php | 88709 | <?php
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\RequestContext;
/**
* appDevUrlMatcher
*
* This class has been auto-generated
* by the Symfony Routing Component.
*/
class appDevUrlMatcher ext... | mit |
superusercode/RTC3 | Real-Time Corruptor/BizHawk_RTC/BizHawk.Client.Common/KeyTurbo.cs | 528 | namespace BizHawk.Client.Common
{
public class TurboKey
{
public void Reset(int downTime, int upTime)
{
Value = false;
_timer = 0;
_upTime = upTime;
_downTime = downTime;
}
public void Tick(bool down)
{
if (!down)
{
Reset(_downTime, _upTime);
return;
}
_timer++;
Value ... | mit |
venwyhk/ikasoa | ikasoa-spring-boot-starter/src/main/java/com/ikasoa/springboot/autoconfigure/ClientAutoConfiguration.java | 4079 | package com.ikasoa.springboot.autoconfigure;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.discovery.DiscoveryClient;
impor... | mit |
wcjohnson/babylon-lightscript | src/parser/node.js | 1921 | import Parser from "./index";
import { SourceLocation } from "../util/location";
// Start an AST node, attaching a start offset.
const pp = Parser.prototype;
const commentKeys = ["leadingComments", "trailingComments", "innerComments"];
class Node {
constructor(pos?: number, loc?: number, filename?: string) {
t... | mit |
hoovercj/vscode | src/vs/base/common/skipList.ts | 4888 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | mit |
flekschas/hipiler | src/components/fragments/fragments-state.js | 2296 | import { Scene } from 'three';
import { scaleLinear } from 'd3';
import {
CELL_SIZE,
COLOR_BW,
COLOR_SCALE_FROM,
COLOR_SCALE_TO,
GRID_SIZE,
LOG_TRANSFORM,
MATRIX_ORIENTATION_INITIAL,
MODE_AVERAGE
} from 'components/fragments/fragments-defaults';
import deepClone from 'utils/deep-clone';
const DEFAULT... | mit |
huruiyi/CPP.Sample | C++进阶STL/05Queue/main.cpp | 448 | #define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include <string>
#include <queue>
using namespace std;
void test01()
{
queue<int>q;
q.push(10);
q.push(30);
q.push(20);
q.push(40);
q.push(60);
while (!q.empty())
{
cout << "¶ÓÍ·ÔªËØ£º " << q.front() << endl;
cout << "¶ÓÎ²ÔªËØ£º " << q.back() << endl;
... | mit |
Blindbuffalo/Hexplore | Assets/Scripts/StrategyCam.cs | 16726 | // StrategyCam v1.0
// 2014-03-04 (YYYY-MM-DD)
// by Fabian Hager
using UnityEngine;
using System.Collections;
[AddComponentMenu("Camera-Control/Strategy Camera")]
public class StrategyCam : MonoBehaviour {
// scroll, zoom, rotate and incline speeds
public float scrollSpeed = 2.5f;
public float zoomSpeed = 4f;
... | mit |
matthewpatterson/acclamation | src/client/temperature.js | 1064 | 'use strict';
var Temperature = function(client) {
var self = this;
var $temperature;
$(function() {
$temperature = $('#temperature');
});
this.on = function() {
$temperature.show();
$temperature.delegate('button', 'click', self.vote);
};
this.off = function() {
$temperature.hide();
... | mit |
ming-codes/ember-ui-kit | tests/dummy/app/models/comment.js | 159 | import DS from 'ember-data';
export default DS.Model.extend({
content: DS.attr('string'),
author: DS.belongsTo('user'),
post: DS.belongsTo('post')
});
| mit |
Vagnerlg/ws_liju_php_mysql_json | app_system_lei/controllers/v2/Cron.php | 633 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Cron extends CI_Controller {
public function __construct() {
parent::__construct();
$this->token->tokenAdm();
}
public function busca_nova_info_lei() {
$this->load->library('updateinfolei');
$relatorio = $this->updateinfolei->sta... | mit |
geometryzen/stemcstudio-workers | test/unit/glsl/literals.spec.ts | 441 | import literals from '../../../src/mode/glsl/literals';
describe("literals", function () {
it("does not contain jabberwocky", function () {
expect(literals.indexOf('jabberwocky') >= 0).toBe(false);
});
it("contains precision", function () {
expect(literals.indexOf('precision') >= 0).toBe(tr... | mit |
allancalderon/checkapp_android_respira | app/src/main/java/mobi/checkapp/epoc/entities/MarkerItem.java | 186 | package mobi.checkapp.epoc.entities;
/**
* Created by luisbanon on 31/05/16.
*/
public class MarkerItem {
public int value;
public String Nombre;
public String nValue;
}
| mit |
ilian1902/TelerikAcademy | C#Part2 - Homework/01. Arrays - Homework/06.MaximalKSum/MaximalKSum.cs | 999 | namespace MaximalKSum
{
using System;
class MaximalKSum
{
// Write a program that reads two integer numbers N and K and an array of N elements from the console.
// Find in the array those K elements that have maximal sum.
static void Main()
{
Console.Write("N =... | mit |
ferhan777/school | application/views/login.php | 8270 |
<div class="container">
<div id="loginbox" style="margin-top:100px;" class="mainbox col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2">
<div class="panel panel-info" >
<div class="panel-heading">
<div class="panel-title">Sign In... | mit |
PutoPtg/SDBDProject | src/RMI/DatabaseImplementation.java | 24319 | package RMI;
import java.rmi.RemoteException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.rmi.server.UnicastRemoteObject;
imp... | mit |
bhishamtrehan/themedconsult | application/language/english/master/health_practitioner/health_practitioner_lang.php | 622 | <?php
$lang['hp_surname'] = 'Surname';
$lang['hp_name'] = 'Name';
$lang['hp_speciality'] = 'Speciality';
$lang['hp_clinics'] = 'Medical Practice/Clinic';
$lang['status'] = 'Status';
$lang['actions_clinic'] = 'Actions';
$lang['hp_d... | mit |
bmmchugh/sequel_migration_task | spec/lib/sequel/migration_task_spec.rb | 7220 | require 'spec_helper'
module Sequel
describe MigrationTask do
# DEBUG = true
before do
@db = mock(Sequel::Database)
@db.stub!(:is_a?).and_return(false)
@db.stub!(:is_a?).with(Sequel::Database).and_return(true)
@directory = 'migrations'
end
after do
if defined?(DB)
... | mit |
vic/ioke-outdated | src/ikc/main/Ioke.Lang/DefaultArgumentsDefinition.cs | 27492 | namespace Ioke.Lang {
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using Ioke.Lang.Util;
public class DefaultArgumentsDefinition {
public static int IndexOf(IList objs, object obj) {
int i = 0;
... | mit |
guilload/progfun | patmat/src/test/scala/patmat/HuffmanSuite.scala | 2110 | package patmat
import org.scalatest.FunSuite
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import patmat.Huffman._
@RunWith(classOf[JUnitRunner])
class HuffmanSuite extends FunSuite {
trait TestTrees {
val t1 = Fork(Leaf('a', 2), Leaf('b', 3), List('a', 'b'), 5)
val t2 = Fork(Fork... | mit |
bekseitn/edu | spec/views/specializations/index.html.erb_spec.rb | 129 | require 'spec_helper'
describe "specializations/index.html.erb" do
pending "add some examples to (or delete) #{__FILE__}"
end
| mit |
lucasdavid/Dust-cleaner | projects/assignment-player-2/src/gatech/mmpm/util/Pair.java | 677 | /* Copyright 2010 Santiago Ontanon and Ashwin Ram */
package gatech.mmpm.util;
public class Pair<T1, T2> implements java.io.Serializable {
/**
* Serial Version ID machine generated.
*/
private static final long serialVersionUID = 7433870752560497552L;
public T1 getFirst() {
return _a;
}
public void s... | mit |
iliyaST/TelerikAcademy | OOP/7-Exams/12-December-2013/01.WarMachines/WarMachines-Skeleton/WarMachines/Machines/Machine.cs | 1877 |
namespace WarMachines.Machines
{
using Common;
using Common.Enum;
using System;
using System.Collections.Generic;
using System.Text;
using WarMachines.Interfaces;
public class Machine : IMachine
{
private string name;
public Machine(string name, double attackPoints, d... | mit |
kitecom/ss_aws | packages/theme_neat/themes/neat/elements/footer.php | 2026 | <?php defined('C5_EXECUTE') or die("Access Denied.");
use Concrete\Core\Validation\CSRF\Token;
?>
<div class="row">
<div class="col-sm-12">
<div class="page-footer-container">
<?php
$a = new Area('Page Footer');
$a->setAreaGridMaximumColumns(12);
$a->display($c);
?>
</div>
... | mit |
Ordinastie/MalisisCore | src/main/java/net/malisis/core/event/user/KeyboardEvent.java | 1307 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 Ordinastie
*
* 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, c... | mit |
reck1610/spodr | lib/tasks/task.push.js | 524 | "use strict";
const BaseTask = require( "./_task" );
const GitWrapper = require( "./../git/git" );
class PushTask extends BaseTask {
// eslint-disable-next-line no-useless-constructor
constructor( repository, config ) {
super( repository, config );
}
process() {
this.git = new GitWrapper( this.repoPath );
... | mit |
sodash/open-code | winterwell.nlp/src/com/winterwell/nlp/io/ATokenStream.java | 3161 | package com.winterwell.nlp.io;
import java.util.ArrayList;
import java.util.List;
import com.winterwell.depot.Desc;
import com.winterwell.depot.IHasDesc;
import com.winterwell.depot.ModularXML;
import com.winterwell.maths.timeseries.ADataStream;
import com.winterwell.utils.ReflectionUtils;
import com.winterwell.utils... | mit |
alv-ch/alv-ch-ng | test/unit/ui/alv-ch-ng.ui-scroll.directive.scrollUp.unit.spec.js | 1661 | ;(function () {
describe('scrollUp directive', function () {
var elem, scope;
beforeEach(module('alv-ch-ng.ui-scroll'));
beforeEach(inject(function ($rootScope, $compile) {
scope = $rootScope;
elem = angular.element('<html><body><div scroll-up="bottom">testContent</... | mit |
Tutu1993/MVC | app/ctrl/focusCtrl.php | 429 | <?php
namespace App\Ctrl;
use Core\Core;
use App\Model\Database;
class focusCtrl extends Core
{
public function __construct()
{
if (!isset(parent::$action)) {
$this->index();
}
}
public function index()
{
// $database = new Database('info');
$data = [
... | mit |
bahrus/xtal | src/xtal-lattice.js | 1647 | var xtal;
(function (xtal) {
var elements;
(function (elements) {
class XtalLattice extends HTMLElement {
constructor() {
super();
this._data = this.data;
}
connectedCallback() {
if (this._data !== undefined)
... | mit |
dolanmiu/ng-color | src/shared/shared.module.ts | 442 | import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { ColorUtilityService } from './color-utility/color-utility.service';
import { MouseHandlerDirective } from './mouse-handler/mouse-handler.directive';
@NgModule({
imports: [CommonModule],
declarations: [MouseHandl... | mit |
ChristianMurphy/nicest | modules/code-project/handler/confirm.js | 5807 | 'use strict';
/**
* @module code-project/handler/confirm
*/
const gatherGithubUsers = require('../task/gather-github-users');
const createGithubRepositories = require('../task/create-github-repositories');
const createTaigaBoards = require('../task/create-taiga-boards');
const gatherSlackMetadata = require('../task... | mit |
Bitcoinsulting/Qora | Qora/src/Start.java | 1922 | import gui.Gui;
import java.util.Scanner;
import javax.swing.JOptionPane;
import javax.swing.UIManager;
import api.ApiClient;
import controller.Controller;
import settings.Settings;
import utils.SysTray;
public class Start {
public static void main(String args[])
{
boolean cli = false;
for(String arg: ar... | mit |
demiurghg/FusionFramework | Fusion/Content/StringArrayLoader.cs | 1585 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace Fusion.Content {
/// <summary>
/// Loads string from text file.
/// </summary>
[ContentLoader(typeof(string[]))]
class StringArrayLoader : ContentLoader {
/// <summar... | mit |
anprogrammer/OpenRoads | OpenRoadsLib/Src/TestRuns/TestSounds.ts | 701 | module TestRuns {
export function TestSounds(): void {
var manager = new Managers.StreamManager(new Stores.AJAXFileProvider()), shaderManager = new Managers.ShaderManager(manager);
var managers = new Managers.ManagerSet(manager, shaderManager);
managers.Sounds = new Managers.SoundManager(ma... | mit |
comm1x/amigro | sample/src/main/java/amigro/tk/sample/MainActivity.java | 1175 | package amigro.tk.sample;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import amigro.tk.amigro.Amigro;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setCon... | mit |
fweber1/Annies-Ancestors | PhpGedView/includes/controllers/clippings_ctrl.php | 27316 | <?php
/**
* Controller for the Clippings Page
*
* phpGedView: Genealogy Viewer
* Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved.
*
* This program 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 Sof... | mit |
NickStrupat/EntityFramework.SoftDeletable | EntityFramework.VersionedSoftDeletable/VersionedUserSoftDeletableExtensions.cs | 2041 | using System;
using EntityFramework.VersionedProperties;
namespace EntityFramework.VersionedSoftDeletable {
public static class VersionedUserSoftDeletableExtensions {
public static void InitializeVersionedUserSoftDeletable<TUserId, TVersionedUserDeleted>(this IVersionedUserSoftDeletable<TUserId, TVersionedUse... | mit |
mitallast/php-rpm | test/JsonParserTest.php | 1040 | <?php
namespace Rpm2;
use Rpm2\Config\JsonParser;
class JsonParserTest extends \PHPUnit_Framework_TestCase
{
public function testParse(){
\Logger::configure(array(
'layouts' => array(
'pattern' => array(
'class' => 'LoggerLayoutPattern',
... | mit |
Carbon/Data | Carbon.Messaging/Messages/Message.cs | 384 | using System;
namespace Carbon.Messaging
{
public class Message<T> : IMessage<T>
{
public Message(T body)
{
if (body == null) throw new ArgumentNullException(nameof(body));
Body = body;
}
public T Body { get; }
publi... | mit |
appleseedez/im2-master | src/test/java/com/weheros/account/front/AccountControllerTest.java | 2233 | /**
* Copyright HZCW (He Zhong Chuang Wei) Technologies Co.,Ltd. 2013-2015. All rights reserved.
*/
package com.weheros.account.front;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print... | mit |
mlanser/prospect-mgr | src/Exceptions/CribbbException.php | 2058 | <?php
namespace Lanser\ProspectManager\Exceptions;
/**
* __
* ____ _________ _________ ___ _____/ /_ ____ ___ ____ ______
* / __ \/ ___/ __ \/ ___/ __ \/ _ \/ ___/ __/_____/ __ `__ \/ __ `/ ___/
* / /_/ / / / /_/ (__ ... | mit |
badoualy/kotlogram | tl/src/main/java/com/github/badoualy/telegram/tl/api/TLPeerNotifyEventsAll.java | 885 | package com.github.badoualy.telegram.tl.api;
/**
* @author Yannick Badoual yann.badoual@gmail.com
* @see <a href="http://github.com/badoualy/kotlogram">http://github.com/badoualy/kotlogram</a>
*/
public class TLPeerNotifyEventsAll extends TLAbsPeerNotifyEvents {
public static final int CONSTRUCTOR_ID = 0x6d1de... | mit |
AlexCAB/FreelanceAnalytics | src/sifters/odesk/apps/rescrape/RescrapeFailureParsedJobs.scala | 821 | package sifters.odesk.apps.rescrape
import java.util.Date
import sifters.odesk.apps.SimpleSifter
import sifters.odesk.db.ODeskSiftersDBProvider
import util.structures.{FoundJobsRow, FoundBy}
/**
* This tool take URLs from 'odesk_excavators_error_pages' and add they to 'odesk_found_jobs' to repeat scraping
* Create... | mit |
lizhaobomb/RNNYT | src/config/onboarding.js | 682 | import {
ACCENT_COLORS,
MUTED_COLOR,
TEXT_COLOR
} from '../styles/global'
const placeholderImage = 'https://placeholdit.imgix.net/' +
'~text?txtsize=24' +
`&bg=${MUTED_COLOR.replace('#', '')}` +
`&txtclr=${TEXT_COLOR.replace('#', '')}` +
'&w=350&h=350&txttrack=0&txt=Placeholder+Image+'
const content ... | mit |
TCSAgile/AgileToolKit | public/modules/retrodea/controllers/retro.client.controller.js | 15418 |
// Declare controllers as module with a controller
//var AppControllers = angular.module('AppControllers',[]);
//AppControllers.controller('ProjectController',function($scope,$location,$cookieStore,$resource,$routeParams,Project,Retro,$rootScope){
angular.module('retro').controller('ProjectController', ['$scope', '$... | mit |
eleks-front-end/evowl-cqrs | cqrs/core/rabbit-mq-rpc/RabbitMQChannel.js | 7138 | import {RabbitMQExchange} from './RabbitMQExchange';
import {RabbitMQQueue} from './RabbitMQQueue';
import {RabbitMQMessage} from './RabbitMQMessage';
/**
* Represents entity of Rabbit MQ channel
*/
export class RabbitMQChannel {
/**
*
* @param {string} name
* @param {object} channel
*/
... | mit |
MylesIsCool/ViaVersion | api/src/main/java/com/viaversion/viaversion/util/PipelineUtil.java | 6008 | /*
* This file is part of ViaVersion - https://github.com/ViaVersion/ViaVersion
* Copyright (C) 2016-2021 ViaVersion and contributors
*
* 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 w... | mit |
PiLogic/ScoreboardStats | src/main/java/com/github/games647/scoreboardstats/variables/LegacyReplaceWrapper.java | 1496 | package com.github.games647.scoreboardstats.variables;
import com.google.common.collect.Lists;
import java.util.List;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
/**
* Represents a wrapper in order to support the usage of the old Replaceable
*/
@SuppressWarnings("deprecation")
public class L... | mit |
JDownloader/GEL-3014_Design3 | questionanswering/filters/national_symbol_filter.py | 896 | from questionanswering import bidictionnary
import nltk
def process(question, query_builder):
mapped_question = next(question)
if ('national' in mapped_question) & ('symbol' in mapped_question):
national_symbols = extract_national_symbol(mapped_question)
query_builder.with_category_data('natio... | mit |
Matthew-Davey/EasyNetQ.Migrations | EasyNetQ.Migrations.ExampleMigrations/Properties/AssemblyInfo.cs | 1450 | 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("Ea... | mit |
hahwul/mad-metasploit | archive/exploits/windows/local/17777.rb | 2547 | ##
# $Id: apple_quicktime_pnsize.rb 13691 2011-09-03 21:17:58Z mc $
##
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.co... | mit |
arvarghese/photo-tiles | assets/js/photo-tiles.spec.js | 143 | describe('PhotoTiles spec', function () {
it('PhotoTiles.js loaded', function () {
expect(!!PhotoTiles).toEqual(true);
});
});
| mit |
deklungel/iRulez | website/irulez/src/components/admin_menu/ValueService.js | 3456 | import AuthService from '../AuthService';
export default class ValueService {
constructor() {
this.Auth = new AuthService();
}
Get_Trigger_Field() {
return new Promise((resolve, reject) => {
this.Auth.fetch(window.GET_FIELD_TRIGGERS)
.then(result => {
... | mit |
csf-dev/CSF.Screenplay | CSF.Screenplay.WebApis/WebApisBuilderExtensions.cs | 3562 | //
// JsonApisBuilderExtensions.cs
//
// Author:
// Craig Fowler <craig@csf-dev.com>
//
// Copyright (c) 2018 Craig Fowler
//
// 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... | mit |
dranawhite/test-java | test-pattern/src/main/java/com/dranawhite/pattern/observer/package-info.java | 330 | /**
* 观察者模式
* <pre>
* 又叫发布/订阅模式,让多个观察者对象同时监控谋一个主题对象;
* 这个主题对象在发生变化时会通知所有的观察者对象
*
* 类图:/docs/observer.png
* </pre>
*
* @author liangyq 2018/3/20
*/
package com.dranawhite.pattern.observer; | mit |
RobertGiesecke/PlainCsv | src/LibraryTests/CsvUtilsTests.cs | 4067 | using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework.Constraints;
using RGiesecke.PlainCsv;
using NUnit.Framework;
namespace RGiesecke.PlainCsv.Tests
{
[TestFixture(... | mit |
EdvinasKilbauskas/Squarie | app/src/main/java/com/edvinaskilbauskas/squarie/Assets.java | 2807 | package com.edvinaskilbauskas.squarie;
import android.util.Log;
import com.edvinaskilbauskas.squarie.EdvGameLib.System.GameSystem;
import com.edvinaskilbauskas.squarie.EdvGameLib.System.RenderableObject2D;
import com.edvinaskilbauskas.squarie.EdvGameLib.System.RenderableObjectFactory;
import com.edvinaskilbauskas.squ... | mit |
cwhite911/Plott | plott/api/models/Passport.js | 3851 | var bcrypt = require('bcryptjs');
/**
* Hash a passport password.
*
* @param {Object} password
* @param {Function} next
*/
function hashPassword (passport, next) {
if (passport.password) {
bcrypt.hash(passport.password, 10, function (err, hash) {
passport.password = hash;
next(err, passport);
... | mit |
ECP-CANDLE/Supervisor | workflows/xcorr/record.py | 603 |
# RECORD PY
# Represent a record in the DB
class Record:
def __init__(self):
self.features = []
self.studies = []
def scan(self, row):
self.rowid, self.ts, self.cutoff_corr, self.cutoff_xcorr = \
row[0:4]
def print(self):
print("record: " + str(se... | mit |
opopeieie/plant-static | plant/src/main.js | 662 |
import 'babel-polyfill';
import './styles/index.css';//TODO:由webpack构建
import React from 'react';
import ReactDom from 'react-dom';
import {Provider} from 'react-redux';
import {Router,browserHistory,hashHistory} from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import configureStore from... | mit |
mdraganov/Telerik-Academy | C#/C# Programming Part I/IntroToProgramming/CurrentDateAndTime/Properties/AssemblyInfo.cs | 1412 | 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("Cu... | mit |
komastar/SGA | WinAPI_Template/WinAPI_Template/ImageManager.cpp | 3684 | #include "stdafx.h"
#include "ImageManager.h"
void ImageManager::AddImageList(string Scene)
{
m_imgList = g_pFileManager->JsonFind(RSC_LIST_KEY);
m_stLoadResult.nHead = 0;
m_stLoadResult.nMax = (int)m_imgList[Scene]["images"].size();
g_pLogManager->WriteLog(EL_INFO, Scene);
}
bool ImageManager::AddI... | mit |
asaed/poc-nancy-at-iadnug | Poc.Nancy.VersionUtil/Data/AppVersion.cs | 302 | using System;
namespace ASaed.POC.Nancy.VersionUtil.Data
{
public class AppVersion
{
public string SemanticVersion { get; set; }
public string CommitHash { get; set; }
public string CommitLink { get; set; }
public DateTime BuildDateTime { get; set; }
}
} | mit |
RapidFiring/kwevebot | crons/abstract.js | 228 | 'use strict';
const evejsapi = require('evejsapi');
class CronAbstract {
constructor() {
this.XmlClient = new evejsapi.client.xml({
cache: new evejsapi.cache.redis(),
});
}
}
module.exports = CronAbstract;
| mit |
NetOfficeFw/NetOffice | Source/Word/Enums/WdNumberForm.cs | 921 | using System;
using NetOffice;
using NetOffice.Attributes;
namespace NetOffice.WordApi.Enums
{
/// <summary>
/// SupportByVersion Word 14, 15, 16
/// </summary>
///<remarks> MSDN Online Documentation: <see href="https://docs.microsoft.com/en-us/office/vba/api/Word.WdNumberForm"/> </remarks>
[SupportByVersion(... | mit |
fiveisprime/iron-cache-cli | lib/iron-cache.js | 2854 | var ironcache = require('iron-cache')
, settings = require('./settings')
, json = require('prettyjson');
//
// Set defaults
// ============
//
//
// Show all defaults.
//
exports.defaults = function() {
writeResult(settings.get());
};
//
// Set the default project.
//
exports.defaultProject = function(pr... | mit |
ashkrishan/golangTest | test1/test/hell.go | 168 | package test
import (
"fmt"
)
var x = "hell text"
// This function test the closures
func Hellfunc() {
fmt.Printf("%v %T\n", x, x)
y := 30
fmt.Printf("%v", y)
}
| mit |
ch1c0t/immu | lib/immu/collection.rb | 316 | require_relative './helpers'
module Immu
class Collection
extend Helpers
include Enumerable
class << self
def create hash
self.new hash
end
end
def initialize hash
@items = Repo.all.select { |item| }
end
def each &b
@items.each &b
end
end
end
| mit |
radicalbear/rad_hoc_rails | query_builder/tests/integration/components/multi-field-select-test.js | 1383 | import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('multi-field-select', 'Integration | Component | multi field select', {
integration: true
});
test('add field - passes field to addField', function(assert) {
this.set('selectableFields', [{ nam... | mit |
tung7/tung_doc | src/main/java/com/tung7/docsys/support/constant/ConfigKeyConstant.java | 378 | package com.tung7.docsys.support.constant;
/**
* TODO Fill The Description!
*
* @author Tung
* @version 1.0
* @date 2017/5/6.
* @update
*/
public interface ConfigKeyConstant {
String INTI_FLAG = "init_flag";
String SLOGAN_TITLE = "slogan_title";
String SLOGAN_CONTENT = "slogan_content";
Str... | mit |
johnson1228/pymatgen | pymatgen/analysis/tests/test_local_env.py | 30933 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import unicode_literals
import numpy as np
import unittest
import os
from pymatgen.analysis.local_env import ValenceIonicRadiusEvaluator, \
VoronoiNN, JMolNN, \
MinimumDistance... | mit |
fuca/fbcmohelnice | libs/Nette/Database/IReflection.php | 1714 | <?php
/**
* This file is part of the Nette Framework (http://nette.org)
*
* Copyright (c) 2004 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/
namespace Nette\Database;
use Ne... | mit |
LargatSeif/kalbi_dev | vendor/hwi/oauth-bundle/OAuth/ResourceOwner/BoxResourceOwner.php | 1829 | <?php
/*
* This file is part of the HWIOAuthBundle package.
*
* (c) Hardware.Info <opensource@hardware.info>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace HWI\Bundle\OAuthBundle\OAuth\ResourceOwner;
use Buzz\Message\... | mit |
peter-obrien/organizer | orm/migrations/0013_guildconfig.py | 754 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-20 03:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orm', '0012_auto_20170916_1520'),
]
operations = [
migrations.CreateModel(
... | mit |