repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
kristianenge/ienge | Models/ValidationResponse.cs | 247 | namespace IEnge.Models
{
public class ValidationResponse
{
public bool IsValidated { get; set; }
public string UserName { get; set; }
public string Mail { get; set; }
public string Id { get; set; }
}
}
| mit |
laicasaane/VFW | Assets/Plugins/Vexe/Runtime/Libs/Helpers/RuntimeHelper.cs | 5398 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.CompilerServices;
using UnityEngine;
using UnityEngine.SceneManagement;
using Vexe.Runtime.Extensions;
using Vexe.Runtime.Types;
namespace Vexe.Runtime.Helpers
{
public static class RuntimeHelper
{
pri... | mit |
JannoEsko/q3panel | classes/api/API.php | 9604 | <?php
/**
* API class, handles all of the API calls.
* @author Janno
*/
class API {
private $username;
private $password;
/**
* Constructs the API object.
* @param string $username The username of the requestor.
* @param string $password The password of the requestor.
*/
... | mit |
kleisauke/fullcalendar | locale/hi.js | 1732 | import 'moment/locale/hi';
import * as FullCalendar from 'fullcalendar';
/* Hindi initialisation for the jQuery UI date picker plugin. */
/* Written by Michael Dawart. */
FullCalendar.datepickerLocale('hi', 'hi', {
closeText: "बंद",
prevText: "पिछला",
nextText: "अगला",
currentText: "आज",
monthNames: [ "जनवर... | mit |
msosland/data-structures | array-list/array_list_spec.rb | 4163 | require_relative 'array_list'
describe ArrayList do
let(:list) {ArrayList.new}
describe "#new" do
it "instantiates a new dynamic list with initial capacity of 16" do
expect(FixedArray).to receive(:new).with(16)
ArrayList.new
end
it "instantiates a new dynamic list with a specified initial... | mit |
austinsand/doc-roba | automation/classes/node/ready_checker.js | 3231 | "use strict";
var Future = require("fibers/future"),
_ = require("underscore"),
assert = require("assert"),
log4js = require("log4js"),
logger = log4js.getLogger("ready"),
commands = [
"waitFor",
"waitForChecked",
"waitForEnabled",
"waitForExist",
"waitF... | mit |
luismpsilva/spl-invent | www/scripts/common.js | 20570 | /********************************************* GLOBAL VARIABLES *********************************************/
var app = null, db = null, jsconfirm = null, dataDirectory = null, tempDirectory = "Temp";
/******************************************** GLOBAL OBSERVABELS ********************************************/
var ob... | mit |
oleg-alexandrov/PolyView | geom/polyUtils.cpp | 20206 | // MIT License Terms (http://en.wikipedia.org/wiki/MIT_License)
//
// Copyright (C) 2011 by Oleg Alexandrov
//
// 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, includin... | mit |
webignition/app.simplytestable.com | tests/Unit/Model/User/Summary/TeamTest.php | 1816 | <?php
namespace App\Tests\Unit\User\Summary;
use App\Model\User\Summary\Team as TeamSummary;
class TeamTest extends \PHPUnit\Framework\TestCase
{
/**
* @dataProvider jsonSerializeDataProvider
*
* @param bool $userIsInTeam
* @param bool $hasInvite
* @param array $expectedReturnValue
... | mit |
patmaddox/method_matching | spec/extendable_block_spec.rb | 286 | require File.dirname(__FILE__) + '/spec_helper'
module MethodMatching
describe ExtendableBlock do
it "should give a friendly message when block is called but none is set" do
ExtendableBlock.new { block.call }.
should raise_error(/No block given/)
end
end
end
| mit |
ismaproco/maxtube | maxtube-appserver/app.js | 1806 | var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
// module to enable cross domain
var cors = require('cors')
var routes = require('./routes/index')... | mit |
ndimatteo/7770-theme | assets/js/main.js | 18414 | var map;
var info;
var geocoder;
var markers = {}
var bounds = {}
var dot;
jQuery(function($) {
geocoder = new google.maps.Geocoder();
info = new google.maps.InfoWindow({})
var location = new google.maps.LatLng(38.988469,-77.096562);
var stylesArray = [
{
"featureType": "all",
"ele... | mit |
WebSpanner/track | tests/TestCase.php | 924 | <?php
namespace Tests;
use Config;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
/**
* The base URL to use while testing the application.
*
* @var string
*/
protected $baseUrl = 'http://localhost';
/**
* Creates the ap... | mit |
iliyaST/TelerikAcademy | C#2/6-Strings-And-Text-Processing/05.ParseTags/Program.cs | 835 | using System;
using System.Text;
class ParseTags
{
static void Main()
{
string text = Console.ReadLine();
StringBuilder newText = new StringBuilder();
bool isOpened = false;
for (int i = 0; i < text.Length; i++)
{
if (text[i] == '<')
{
... | mit |
all-trees/tree-domain | src/main/java/nl/dvberkel/tree/Tree.java | 121 | package nl.dvberkel.tree;
import static java.lang.Math.max;
public interface Tree {
int size();
int depth();
}
| mit |
matita/barscan | js/app.min.js | 237142 | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... | mit |
Krigu/bookstore | bookstore-jpa/src/main/java/org/books/data/dto/CustomerInfo.java | 1687 | package org.books.data.dto;
import org.books.data.entity.Customer;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import java.io.Serializable;
@XmlRootElement(name = "customer... | mit |
padosoft/laravel-affiliate-network | src/Networks/Admitad.php | 7821 | <?php
namespace Padosoft\AffiliateNetwork\Networks;
use Padosoft\AffiliateNetwork\Transaction;
use Padosoft\AffiliateNetwork\DealsResultset;
use Padosoft\AffiliateNetwork\Merchant;
use Padosoft\AffiliateNetwork\Stat;
use Padosoft\AffiliateNetwork\Deal;
use Padosoft\AffiliateNetwork\AbstractNetwork;
use Padosoft\Affil... | mit |
Ivanbmstu/angular | src/app/modules/hero/service/hero.service.ts | 3660 | /**
* Created by pohodnaivan on 03.06.17.
*/
import {Injectable} from '@angular/core';
import { Headers, Http } from '@angular/http';
import 'rxjs/add/operator/toPromise';
import {Hero, MagicPower, Power} from '../../../models/Model';
import AuthService = require("../../../service/web/auth.service");
import {User} f... | mit |
sourcegraph/python-langserver | test/test_graphql_core.py | 2331 | from .harness import Harness
import uuid
import pytest
graphql_core_workspace = Harness("repos/graphql-core")
graphql_core_workspace.initialize(
"git://github.com/plangrid/graphql-core?" + str(uuid.uuid4()))
def test_relative_import_definition():
result = graphql_core_workspace.definition("/graphql/__init__... | mit |
Jecma/JecmaBlog | vendor/texy/texy/examples/syntax highlighting/demo-fshl.php | 1818 | <?php
/**
* This demo shows how combine Texy! with syntax highlighter FSHL
* - define user callback (for /--code elements)
*/
// include libs
require_once __DIR__ . '/../../src/texy.php';
$fshlPath = __DIR__.'/fshl/';
@include_once $fshlPath . 'fshl.php';
if (!class_exists('fshlParser')) {
die('DOWNLOAD... | mit |
AdiSai/FRC_Scouting_V2 | FRC_Scouting_V2.Desktop/Events/2015_RecycleRush/RecycleRush_Northbay_Information.cs | 6249 | //*********************************License***************************************
//===============================================================================
//The MIT License (MIT)
//Copyright (c) 2014 FRC_Scouting_V2
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this sof... | mit |
YanZhiwei/DotNet.Utilities | YanZhiwei.DotNet.Core.DownloadExamples/BackHandler/FileDownloadHandler.ashx.cs | 722 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Web;
using YanZhiwei.DotNet.Core.Download;
namespace YanZhiwei.DotNet.Core.DownloadExamples.BackHandler
{
/// <summary>
/// DownloadHandler 的摘要说明
/// </summary>
public class FileDownloadHandler : ... | mit |
bdebor/cine-project | src/CineProject/PublicBundle/Entity/Movie.php | 6706 | <?php
namespace CineProject\PublicBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Movie
*
* @ORM\Table(name="movie")
* @ORM\Entity(repositoryClass="CineProject\PublicBundle\Repository\MovieRepository")
... | mit |
tomaszdurka/CM | client-vendor/after-body-source/cm/tests/media/audioTest.js | 379 | require(['cm/tests/media/common'], function(common) {
require(["cm/media/audio"], function(Audio) {
QUnit.module('cm/media/audio');
if ('HTMLAudioElement' in window) {
var audioUrl = 'client-vendor/after-body-source/cm/tests/resources/opus-48khz.weba';
common.test(Audio, audioUrl);
} else { ... | mit |
LibreGSX/api_server | controllers/v1/public.js | 31219 | var models = require("../../models");
var bcrypt = require('bcrypt');
var jwt = require('jsonwebtoken');
var blacklist = require('express-jwt-blacklist');
var uuid = require('uuid-v4');
var fs = require('fs');
var sg = require('sendgrid')('INSERT SENDGRID API KEY HERE')
var jwtPrivateKey = fs.readFileSync(appRoot + '/... | mit |
AzureAD/microsoft-authentication-library-for-java | src/integrationtest/java/com.microsoft.aad.msal4j/HttpClientIT.java | 1789 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.aad.msal4j;
import labapi.LabUserProvider;
import labapi.User;
import org.testng.Assert;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import java.util.Collections;
... | mit |
hsheth2/gonet | udp/udpWrite.py | 551 | import socket
import sys
import datetime
DST_IP = "127.0.0.1"
if len(sys.argv) <= 1:
UDP_DST_PORT = 20000
else:
UDP_DST_PORT = int(sys.argv[1])
if len(sys.argv) >= 2:
MESSAGE = str(sys.argv[2]).zfill(5)
else:
MESSAGE = "Hello, World!"
#print "UDP target IP:", DST_IP
#print "UDP target port:", UDP_DST... | mit |
MiaoMiaosha/Cocos | SampleFlashImport/cocos2d/cocos/2d/CCSprite.cpp | 29881 | /****************************************************************************
Copyright (c) 2008-2010 Ricardo Quesada
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2011 Zynga Inc.
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any... | mit |
bobdesaunois/emmaphp | config.php | 1647 | <?php
/****************************************************
* Routing engine *
****************************************************/
// Router::get('stateName', 'URI', 'Controller@method')
Router::get('home', '/', 'Index@index');
Router::get("defaultPage", "/page", "Index@page");
... | mit |
markuscandido/estudo-trilha-testes | jasmine(js)/my-app-test/src/MaiorEMenor.js | 404 | function MaiorEMenor(){
var menor;
var maior;
var clazz = {
encontra: function(numeros) {
menor = Number.MAX_VALUE;
maior = Number.MIN_VALUE;
numeros.forEach(function(numero) {
if(numero < menor) menor = numero;
if(numero > maior) maior = numero;
});
},
pegaMenor: function() {
return... | mit |
lpxzz/laravel-shop | app/Admin/Repositories/Presenter/MenuPresenter.php | 2121 | <?php
/**
* Created by PhpStorm.
* User: xzz
* Date: 17-1-11
* Time: 下午8:38
*/
namespace App\Admin\Repositories\Presenter;
class MenuPresenter{
public function getCategory($menu)
{
if ($menu){
}
}
public function getMenuList($menu)
{
if ($menu){
$item = ''... | mit |
juqian/Slithice | Slithice/src/jqian/sootex/dependency/DependencyQuery.java | 2826 | package jqian.sootex.dependency;
import java.util.*;
import jqian.sootex.CFGProvider;
import jqian.sootex.du.IGlobalDUQuery;
import jqian.sootex.du.IReachingDUQuery;
import jqian.sootex.location.Location;
import jqian.sootex.util.SootUtils;
import soot.SootMethod;
import soot.Unit;
import soot.toolkits.g... | mit |
diegocastrolosada/SISTRANS | src/jms/AerolineasMDB.java | 5570 | package jms;
import java.io.IOException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import javax.jms.DeliveryMode;
import javax.jms.ExceptionListener;
import javax.jms.JMSException;
import ... | mit |
aredotna/case | ios/node_modules/ast-types/def/es6.js | 8841 | module.exports = function (fork) {
fork.use(require("./core"));
var types = fork.use(require("../lib/types"));
var def = types.Type.def;
var or = types.Type.or;
var defaults = fork.use(require("../lib/shared")).defaults;
def("Function")
.field("generator", Boolean, defaults["false"])
.field("expres... | mit |
hungpham2511/toppra | cpp/tests/test_spline_parametrizer.cpp | 2494 | #include <toppra/parametrizer/spline.hpp>
#include <toppra/geometric_path/piecewise_poly_path.hpp>
#include "gtest/gtest.h"
#define TEST_PRECISION 1e-15
class ParametrizeSpline : public testing::Test {
public:
ParametrizeSpline() {
toppra::Matrix coeff0{4, 2}, coeff1{4, 2}, coeff2{4, 2};
coeff0 <... | mit |
Symfony-Plugins/sfDIPlugin | lib/DataIntegrator/OAuth/Token.php | 1624 | <?php
/**
* OAuth Model objects
*
* Adapted from Andy Smith's OAuth library for PHP
*
* @link http://oauth.net/core/1.0
* @link http://oauth.googlecode.com/svn/spec/ext/consumer_request/1.0/drafts/1/spec.html
* @link http://oauth.googlecode.com/svn/code/php/
* @link http://term.ie/oauth/example/
*
* @packa... | mit |
unknownzerx/go-mysql | replication/event.go | 8450 | package replication
import (
"encoding/binary"
//"encoding/hex"
"fmt"
"io"
"strconv"
"strings"
"time"
"unicode"
"github.com/satori/go.uuid"
. "github.com/siddontang/go-mysql/mysql"
)
const (
EventHeaderSize = 19
)
type BinlogEvent struct {
// raw binlog data, including crc32 checksum if exists
RawData ... | mit |
andela-iukwuoma/docman | client/tests/components/layouts/Sidebar.spec.js | 2058 | import expect from 'expect';
import sinon from 'sinon';
import React from 'react';
import { shallow, mount } from 'enzyme';
import { Sidebar } from '../../../components/layouts/Sidebar';
const logout = sinon.spy(() => Promise.resolve());
const deleteUser = sinon.spy(() => Promise.resolve());
const swal = sinon.spy(() ... | mit |
shelmesky/raft | protobuf/request_vote_responses.pb.go | 1088 | // Code generated by protoc-gen-go.
// source: request_vote_responses.proto
// DO NOT EDIT!
package protobuf
import proto "github.com/golang/protobuf/proto"
import math "math"
// discarding unused import gogoproto "code.google.com/p/gogoprotobuf/gogoproto/gogo.pb"
// Reference imports to suppress errors if they are... | mit |
giuliopb/ES2 | application/views/backend/login.php | 1673 | <div class="container">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="login-panel panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Entrar no sistema</h3>
</div>
... | mit |
solodeuva/polideportivo | application/libraries/jpgraph/ci_jpgraph.php | 100556 | <?php
//=======================================================================
// File: JPGRAPH.PHP
// Description: PHP Graph Plotting library. Base module.
// Created: 2001-01-08
// Ver: $Id: jpgraph.php 1924 2010-01-11 14:03:26Z ljp $
//
// Copyright (c) Asial Corporation. All rights reserved.
//=... | mit |
apo-j/Projects_Working | Bivi/src/Bivi.FrontOffice/Bivi.FrontOffice.Web.ViewModels/ViewModels/PopinVideoViewModel.cs | 472 | using System;
using Bivi.Domaine;
using Bivi.FrontOffice.Web.ViewModels.Pages.Common;
using Bivi.Infrastructure.Services.Caching;
namespace Bivi.FrontOffice.Web.ViewModels
{
public class PopinVideoViewModel
{
public ICaching TranslatorService { get; set; }
public string Titre { get; ... | mit |
italinux/Authentication | lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query/Part.php | 2067 | <?php
/*
* $Id: Part.php 7490 2010-03-29 19:53:27Z jwage $
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN ... | mit |
jrahlf/3D-Non-Contact-Laser-Profilometer | xpcc/src/xpcc/driver/connectivity/i2c/constants.hpp | 2143 | // coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2012, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
... | mit |
Trancendances/anchor-theme | functions.php | 7704 | <?php
function podcasts_posts() {
// only run on the first call
if( ! Registry::has('trance_post_archive')) {
// capture original article if one is set
if($article = Registry::get('article')) {
Registry::set('original_article', $article);
}
}
if( ! $posts =... | mit |
slhad/FullScreenCheckAndRun | Source/FSCR/Libs/FullscreenChecker.cs | 2253 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using System.Drawing;
[StructLayout(LayoutKind.Sequential)]
public struct RECT
{
public int Left;
public int Top;
public int Right;
public int Bottom;... | mit |
flagship-llc/jq_upload_rails_paperclip | spec/models/upload_spec.rb | 134 | require 'spec_helper'
RSpec.describe JqUploadRailsPaperclip::Upload, :type => :model do
it { should have_attachment(:file) }
end
| mit |
umpirsky/Transliterator | src/Transliterator/data/ru/ALA_LC.php | 1269 | <?php
/*
* This file is part of the Transliterator package.
*
* (c) Саша Стаменковић <umpirsky@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Russian mapping (ALA-LC system).
*
* @see http://en.wikipedia.org/... | mit |
xhhjin/heroku-ghost | node_modules/sqlite3/test/trace.test.js | 1846 | var sqlite3 = require('..');
var assert = require('assert');
describe('tracing', function() {
it('Database tracing', function(done) {
var db = new sqlite3.Database(':memory:');
var create = false;
var select = false;
db.on('trace', function(sql) {
if (sql.matc... | mit |
sergap1812/quiz | controllers/comment_controller.js | 1898 | var models = require('../models');
var Sequelize = require('sequelize');
// Autoload el comentario asociado a :commentId
exports.load = function(req, res, next, commentId) {
models.Comment.findById(commentId).then(function(comment) {
if(comment) {
req.comment = comment;
next();
} else {
ne... | mit |
rdazza/tarea_api_restful | src/main/java/edu/upc/eetac/dsa/grouptalk/entity/User.java | 1072 | package edu.upc.eetac.dsa.grouptalk.entity;
import org.glassfish.jersey.linking.InjectLinks;
import javax.ws.rs.core.Link;
import java.util.List;
/**
* Created by ruben on 24/10/15.
*/
public class User {
@InjectLinks({})
private List<Link> links;
private String id;
private String loginid;
pr... | mit |
extant1/training | items.cs | 34791 | ////
// Armor
////
// Regular Padded Set
function regularpadded(%quality)
{
if(%quality){
echo("## Adding Regular Padded Set - Q" @ %quality @ " ##");
cmChatCommand('@', "/ADD 891 1 " @ %quality @ " 100000");
cmChatCommand('@', "/ADD 892 1 " @ %quality @ " 100000");
cmChatCommand('@', "/ADD 893 1 " @ %quality... | mit |
Ruby-SG/simple_datatable | app/helpers/simple_datatable/application_helper.rb | 480 | module SimpleDatatable
module ApplicationHelper
def simple_datatable(cols = [], html_options = {})
html_options[:class] ||= ''
html_options[:class] << 'dataTable'
content_tag :table, html_options do
content_tag :thead do
content_tag :tr do
cols.each_with_object('') ... | mit |
flowcommerce/delta | www/app/controllers/TokensController.scala | 3195 | package controllers
import io.flow.delta.v0.errors.UnitResponse
import io.flow.delta.v0.models.{Token, TokenForm}
import io.flow.delta.www.lib.DeltaClientProvider
import io.flow.play.controllers.{FlowControllerComponents, IdentifiedRequest}
import io.flow.play.util.{Config, PaginatedCollection, Pagination}
import sca... | mit |
amironov73/ManagedIrbis | Source/Classic/Libs/ManagedIrbis/Source/Quality/Rules/Check10.cs | 2597 | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/* Check10.cs -- ISBN и цена.
* Ars Magna project, http://arsmagna.ru
* -------------------------------------------------------
* Status: poor
*/
#region... | mit |
sosuke-k/cornel-movie-dialogs-corpus-storm | mdcorpus/examples/conversation_and_line.py | 1117 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from storm.locals import *
from mdcorpus.orm import *
database = create_database("sqlite:")
store = Store(database)
store.execute(MovieConversation.CREATE_SQL)
store.execute(MovieLine.CREATE_SQL)
conversation = store.add(MovieConversation(0, 2, 0))
line194 = store.add(... | mit |
seekmas/makoto.local | app/cache/prod/twig/cd/db/19282cb43ee68e0c31ea17292c7e80a739fbdee92fffebcbafc6f482f4d4.php | 1726 | <?php
/* TwigBundle:Exception:error.js.twig */
class __TwigTemplate_cddb19282cb43ee68e0c31ea17292c7e80a739fbdee92fffebcbafc6f482f4d4 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | mit |
kenyonduan/amazon-mws | src/main/java/com/amazonservices/mws/jaxb/BuyerPrice.java | 6758 |
package com.amazonservices.mws.jaxb;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>BuyerPrice complex type的 Java 类。
... | mit |
sapegin/mrm | packages/mrm-core/src/__tests__/npm.spec.js | 14055 | jest.mock('fs');
jest.mock('../util/log', () => ({
info: jest.fn(),
}));
const fs = require('fs-extra');
const vol = require('memfs').vol;
const log = require('../util/log');
const _npm = require('../npm');
const install = _npm.install;
const uninstall = _npm.uninstall;
const modules = ['eslint', 'babel-core'];
cons... | mit |
pwim/docomo_css | test/docomo_css/filter_test.rb | 6838 | require 'test_helper'
require File.join File.dirname(__FILE__), '..', '..', 'lib', 'docomo_css', 'filter'
class DocomoCss::FilterTest < Test::Unit::TestCase
def setup
@filter = DocomoCss::Filter.new
end
def test_invalid_response_content_type
response = mock("invalid_response") do
expects(:content_... | mit |
offmbs/Open-GDR | database/migrations/2014_10_12_000000_create_users_table.php | 1332 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... | mit |
Scottell/salmon-mvc | web/classes/Login.class.php | 308 | <?php
class Login {
public static function isLoggedIn() {
$key = 'loggedin';
session_start();
if (isset($_SESSION[$key])) {
return true;
}
if ($_POST['pw'] == 'password') {
$_SESSION[$key] = true;
Mvcer::postHandled();
return true;
}
return false;
}
}
?>
| mit |
mbuhot/mbuhot-euler-solutions | python/problem-041.py | 687 | #! /usr/bin/env python3
import prime
from itertools import permutations
description = """
Pandigital prime
Problem 41
We shall say that an n-digit number is pandigital if it makes use of all the digits 1 to n exactly once. For example, 2143 is a 4-digit pandigital and is also prime.
What is the largest n-digit pandi... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/mediaelement/2.10.2/mediaelement.js | 130 | version https://git-lfs.github.com/spec/v1
oid sha256:e703012675ae8feb9a5eb413146c4acf4740731a2693e0d51a674096a45e416c
size 53160
| mit |
soulteary/xSwitch.js | demo/assets/preload-1.0.0.js | 29 | console.log('preload 1.0.0'); | mit |
jaysonthepirate/MHGenDatabase | app/src/main/java/com/ghstudios/android/data/database/ItemToSkillTreeCursor.java | 2879 | package com.ghstudios.android.data.database;
import android.database.Cursor;
import android.database.CursorWrapper;
import com.ghstudios.android.data.classes.Item;
import com.ghstudios.android.data.classes.ItemToSkillTree;
import com.ghstudios.android.data.classes.SkillTree;
/**
* A convenience class to wrap a curs... | mit |
hoge1e3/Tonyu2 | www/js/lib/jquery.keyvalueeditor.js | 16328 | // https://github.com/hoge1e3/jQuery-KeyValue-Editor
// Forked from: https://github.com/a85/jQuery-KeyValue-Editor
(function ($) {
var methods = {
//Not sure if this is needed
settings:function () {
},
//Initialization
init:function (options) {
methods.settings ... | mit |
ArthurHoaro/Public-GitLab | spec/requests/api/repositories_spec.rb | 7823 | require 'spec_helper'
describe API::API do
include ApiHelpers
before(:each) { enable_observers }
after(:each) {disable_observers}
let(:user) { create(:user) }
let(:user2) { create(:user) }
let!(:project) { create(:project_with_code, creator_id: user.id) }
let!(:users_project) { create(:users_project, us... | mit |
fCarl/planA | Server/TCPConnection.cpp | 1044 | #include "TCPConnection.h"
TCPConnection::TCPConnection(int connection_handle) {
if (connection_handle < 0) {
//TODO:
//throw exception
}
_connection_handle = connection_handle;
_read_buffer = NULL;
_current_bufsize = 0;
}
int TCPConnection::read(std::string& buffer, int bufsize) {... | mit |
npccoin/npccoin | test/util/bitcoin-util-test.py | 6728 | #!/usr/bin/env python3
# Copyright 2014 BitPay Inc.
# Copyright 2016-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test framework for npccoin utils.
Runs automatically during `make check`.
Ca... | mit |
StefNoMan/twitter-bot | index.php | 134 | <?php
require 'vendor/autoload.php';
require 'app/app.php';
$app = new Stefnoman\Twitterbot\App();
$app->run();
?> | mit |
perminder-klair/kato | backend/views/block/_form.php | 947 | <?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use kato\sirtrevorjs\SirTrevor;
/**
* @var yii\web\View $this
* @var backend\models\Block $model
* @var yii\bootstrap\ActiveForm $form
*/
?>
<div class="block-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'title')->textI... | mit |
karim/adila | database/src/main/java/adila/db/mintss.java | 216 | // This file is automatically generated.
package adila.db;
/*
* Samsung Galaxy Star
*
* DEVICE: mintss
* MODEL: GT-S5280
*/
final class mintss {
public static final String DATA = "Samsung|Galaxy Star|";
}
| mit |
main24/ebayapi-19 | lib/ebay/types/feature_definitions.rb | 46010 | require 'ebay/types/listing_duration_definition'
require 'ebay/types/shipping_term_required_definition'
require 'ebay/types/best_offer_enabled_definition'
require 'ebay/types/dutch_bin_enabled_definition'
require 'ebay/types/user_consent_required_definition'
require 'ebay/types/home_page_featured_enabled_definition'
re... | mit |
mrpapercut/wscript | testfiles/COMobjects/JSclasses/Microsoft.MediaCenter.iTv.CiTvServiceInfo.js | 883 | class microsoft_mediacenter_itv_citvserviceinfo {
constructor() {
// int AudioPID {get;set;}
this.AudioPID = undefined;
// int NID {get;}
this.NID = undefined;
// int ONID {get;}
this.ONID = undefined;
// int PcrPID {get;set;}
this.PcrPID = undefine... | mit |
romka-chev/yii2-swiper | tests/unit/swiper/SwiperTest.php | 17308 | <?php
namespace romkaChev\yii2\swiper\tests\unit\swiper;
use romkaChev\yii2\swiper\Slide;
use romkaChev\yii2\swiper\Swiper;
use romkaChev\yii2\swiper\tests\unit\BaseTestCase;
class SwiperTest extends BaseTestCase
{
public function testInvalidBehaviour()
{
$this->setExpectedException( '\InvalidArgume... | mit |
mikefourie/MSBuildExtensionPack | Solutions/Main/Framework/SqlServer/SqlCmd.cs | 29883 | //-------------------------------------------------------------------------------------------------------------------------------------------------------------------
// <copyright file="SqlCmd.cs">(c) 2017 Mike Fourie and Contributors (https://github.com/mikefourie/MSBuildExtensionPack) under MIT License. See https:/... | mit |
yakirn/YTrack | src/components/Results.js | 1088 | 'use strict';
import React from 'react';
import MovieItem from './MovieItem';
var searchStore = require('stores/SearchStore');
require('styles/Results.scss');
export class Results extends React.Component {
constructor (props) {
super(props);
this.state = {results: searchStore.results};
this.onStoreChang... | mit |
Raymans/config-service | common/api/InboxSvc.js | 129 | import {get} from './utils'
export async function getInboxAPI () {
return get('https://jsonplaceholder.typicode.com/users')
}
| mit |
ridencww/uniroster-server | routes/oneroster/v1_0/enrollments.js | 5085 | var app = require('../../../uniroster-server.js');
var db = require('../../../lib/database.js');
var express = require('express');
var utils = require('../../../lib/onerosterUtils.js');
var router = express.Router();
var buildEnrollment = function(row, hrefBase, metaFields) {
var enrollment = {};
enrollment.sourc... | mit |
gonetcats/betaseries-api-redux-sdk | tests/modules/shows/actions/doFetchMemberShows.js | 1509 | import showsReducer from '../../../../lib/modules/shows/reducers/shows';
import membersShowsReducer
from '../../../../lib/modules/shows/reducers/members';
const actionFile = '../lib/modules/shows/actions/doFetchManyShows';
const showsFixture = require('../../../fixtures/shows.json');
describe('Retrieve member shows... | mit |
CyclopsMC/IntegratedDynamics | src/main/java/org/cyclops/integrateddynamics/api/block/cable/ICableFakeable.java | 687 | package org.cyclops.integrateddynamics.api.block.cable;
/**
* Capability for cables that can become unreal.
* A cable can only become fake for a full block, not just for one side.
* This means that for example parts can exist in that block space without the cable being there.
* @author rubensworks
*/
public inter... | mit |
abhishekkothari09/WebScraping | Clean Wikipedia/Clean_wiki.py | 797 | import bs4
from bs4 import BeautifulSoup as soup
from urllib.request import urlopen as uOpen
from docx import Document
def html_parsing(my_url):
# Open the connection and get the page.
opn = uOpen(my_url)
page_html = opn.read()
opn.close()
# HTML parsing
page_soup = soup(page_html, 'html.pars... | mit |
rachellcarbone/angular-seed | www/app/views/auth/resetPassword/resetPassword.controller.js | 2689 | 'use strict';
/*
* Reset Password Page
*
* Controller for the Reset Password Page.
*/
angular.module('app.auth.resetPassword', [])
.controller('ResetPasswordCtrl', ['$scope', '$state', '$log', '$window', '$timeout', 'AuthService', 'AlertConfirmService', '$stateParams',
function ($scope, $state, ... | mit |
hahoyer/reni.cs | src/ReniUIWithForms/CompilationView/CodeView.cs | 475 | using System;
using System.Collections.Generic;
using System.Linq;
using hw.Scanner;
using Reni.Code;
namespace ReniUI.CompilationView
{
sealed class CodeView : ChildView
{
public CodeView(CodeBase item, SourceView master)
: base(master, "Code: " + item.NodeDump)
{
Clien... | mit |
Narnach/is_the_website_down | lib/is_the_website_down/service.rb | 594 | require 'is_the_website_down'
require 'haml'
root_dir = File.expand_path(File.join(File.dirname(__FILE__),'..','..'))
sites_file = File.join(root_dir,'config','sites.txt')
unless File.exist? sites_file
STDERR.puts "config/sites.txt is missing. Please create it. See config/sites.txt.example for examples"
exit 1
en... | mit |
matudelatower/logiautos | src/CuestionariosBundle/Form/EncuestaOpcionRespuestaType.php | 961 | <?php
namespace CuestionariosBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class EncuestaOpcionRespuestaType extends AbstractType {
/**
* @param FormBuilderInterface $builder
* @param array ... | mit |
HCB2-NPT/QuanLyNhaSach | QuanLyNhaSach/Errors/ErrorTypes/AppErrors.cs | 3630 | using QuanLyNhaSach.Errors;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QuanLyNhaSach.Managers
{
public partial class ErrorManager
{
public Error CantOpenAppMoreTimes
{
get
{
... | mit |
drm/Mystique | src/Mystique/PHP/Token/Tokenizer.php | 583 | <?php
namespace Mystique\PHP\Token;
use Mystique\Common\Token\Tokenizer as BaseTokenizer;
class Tokenizer implements BaseTokenizer {
static function tokenize($str) {
return token_get_all($str);
}
static function tokenizePhp($str) {
return array_slice(token_get_all('<?php ' . $str), 1);
... | mit |
gim-projekt-ai/nano-ai | base/say-no.go | 64 | package main
import "fmt"
func main() {
fmt.Println("No")
}
| mit |
angular/angular-cli-stress-test | src/app/components/comp-1681/comp-1681.component.spec.ts | 847 | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Comp1681Component } from './comp... | mit |
udarapathmin/ApnaDeals | application/views/category/editcategory.php | 1842 | <div class="container">
<div class="row">
<div class="col-md-12">
<h3><i class="fa fa-th-list"></i> Edit Category</h3><hr>
</div>
</div>
<div class="row">
<div class="col-md-12">
<?php if (validation_errors()) { ?>
<div class="alert alert-danger alert-dismissible" role="a... | mit |
MatthewGross/RemoteWAKE | server/RemoteWake.py | 4866 | #!/usr/bin/env python
# RemoteWAKE Python Server
# This server receives responses from the website, authenticates them, parses them, and if everything is in working
# order, creates a alarm of annoyingness set by yourself. Good Luck!
# Now I have to put a disclaimer... Kind of ridiculous... I know...
# Disclaimer: Th... | mit |
mramasco/VG-Soundboard | SoundMixer/SoundContainer.cs | 176 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Soundboard
{
public class SoundContainer
{
}
}
| mit |
nycmobiledev/transit-app-experiments | gtfs/GTFSApi/Domain.GTFS.Static.Subway.Entities/Trip.cs | 398 | using System;
namespace NYCMobileDev.TransitApp.Domain.GTFS.Static.Subway.Entities
{
public class Trip
{
public string RouteId { get; set; }
public string TripId { get; set; }
public string ServiceId { get; set; }
public string TripHeadsign { get; set; }
public string D... | mit |
makcedward/nlpaug | scripts/lambada/data_processing.py | 766 | import argparse
import os
import pandas as pd
def prepare_mlm_data(labels, texts, output_file_path, sep_token):
with open(os.path.join(output_file_path, 'mlm_data.txt'), 'w') as f:
for label, text in zip(labels, texts):
f.write(' '.join([label, sep_token, text]) + '\n')
def main(args):
data = pd.read_csv(args... | mit |
GhassenRjab/wekan | client/components/cards/minicard.js | 717 | // Template.cards.events({
// 'click .member': Popup.open('cardMember')
// });
BlazeComponent.extendComponent({
template() {
return 'minicard';
},
events() {
return [
{
'click .js-linked-link'() {
if (this.data().isLinkedCard()) Utils.goCardId(this.data().linkedId);
e... | mit |
ddki/my_study_project | client/android/demos/WebviewTest/app/src/test/java/com/freekite/android/test/webviewtest/ExampleUnitTest.java | 415 | package com.freekite.android.test.webviewtest;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
... | mit |
nepalez/faceter | spec/unit/functions/clean_spec.rb | 533 | # encoding: utf-8
describe Faceter::Functions, ".clean" do
let(:arguments) { [:clean, Selector.new(options)] }
let(:input) { { foo: { foo: :FOO }, bar: {}, baz: {}, qux: :QUX } }
it_behaves_like :transforming_immutable_data do
let(:options) { {} }
let(:output) { { foo: { foo: :FOO }, qux: :QUX } }
... | mit |