code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
// Copyright (c) 2017-2021 offa
//
// 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, copy, modify, merge, publish,
// ... | offa/danek | src/danek/internal/ToString.cpp | C++ | mit | 5,007 |
<?php
namespace PHPStrap\Form\Validation;
class BaseValidation{
protected $errormessage;
/**
* @param string $errormessage
* @return void
*/
public function __construct($errormessage){
$this->errormessage = $errormessage;
}
/**
* @return string
*/
public function errorMessage(){
... | kktuax/PHPStrap | src/PHPStrap/Form/Validation/BaseValidation.php | PHP | mit | 364 |
<?php
namespace MindOfMicah\LaravelDatatables\DatatableQuery;
class Sorter
{
private $column_index;
private $direction;
public function __construct($column_index, $direction = 'ASC')
{
$this->column_index = $column_index;
$this->direction = $direction;
}
public function toArr... | mindofmicah/laravel-datatables | src/MindOfMicah/LaravelDatatables/DatatableQuery/Sorter.php | PHP | mit | 459 |
/* jshint unused: false */
/* global describe, before, beforeEach, afterEach, after, it, xdescribe, xit */
'use strict';
var fs = require('fs');
var restify = require('restify');
var orm = require('orm');
var assert = require('assert');
var restormify = require('../');
var dbProps = {host: 'logger', protocol: 'sqlite... | toddself/restormify | test/validation-bubbling.js | JavaScript | mit | 2,293 |
require 'sinatra'
require 'cgi'
require 'json'
require 'sequel'
require 'logger'
require 'zlib'
require 'base64'
require 'digest'
configure :production do
require 'newrelic_rpm'
$production = true
end
DB = Sequel.connect(ENV['MYSQL_DB_URL'] || 'mysql2://root@localhost/android_census',
:max_con... | vlad902/census.tsyrklevich.net | web.rb | Ruby | mit | 12,074 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var Item = function Item() {
_classCallCheck(this, Item);
this.chords = '';
t... | aggiedefenders/aggiedefenders.github.io | node_modules/chordsheetjs/lib/chord_sheet/item.js | JavaScript | mit | 364 |
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
//>>description: A handler for css transition & animation end events to ensure callback is executed
//>>label: Animation Complete
//>>group: Core
define( [
"jquery"
], function( jQuery ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {
var ... | ericsteele/retrospec.js | test/input/projects/jquery-mobile/rev-1.4.1-3455ada/js/jquery.mobile.animationComplete.js | JavaScript | mit | 3,468 |
require "spec_helper"
describe Architect4r::Model::Relationship do
let(:person) { Person.create(:name => 'Niobe', :human => true) }
let(:ship) { Ship.create(:name => 'Logos', :crew_size => 2) }
describe "initialization of new instances" do
it "should accept zero arguments" do
lambda { CrewMe... | namxam/architect4r | spec/model/relationship_spec.rb | Ruby | mit | 2,756 |
package com.cloutteam.jarcraftinator.exceptions;
public class PluginUnloadedException extends RuntimeException {
public PluginUnloadedException(String message){
super(message);
}
}
| Clout-Team/JarCraftinator | src/main/java/com/cloutteam/jarcraftinator/exceptions/PluginUnloadedException.java | Java | mit | 200 |
package demoinfocs
import (
"fmt"
"io"
"math"
"sync"
"time"
"github.com/gogo/protobuf/proto"
"github.com/markus-wa/go-unassert"
dispatch "github.com/markus-wa/godispatch"
"github.com/pkg/errors"
common "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/common"
events "github.com/markus-wa/demoinfoc... | markus-wa/demoinfocs-golang | pkg/demoinfocs/parsing.go | GO | mit | 11,489 |
namespace School
{
using System;
internal class Validator
{
internal static bool ValidateName(string name)
{
bool isNameValid = string.IsNullOrWhiteSpace(name);
return isNameValid;
}
internal static bool ValidateUniqueNumber(int uniqueNumber, int mi... | dushka-dragoeva/Telerik | Homeworks/CSharp/HQC/13. UnitTestingHomeworkMine/School/Validator.cs | C# | mit | 484 |
def tsvread(filename, delimiter = "\t", endline = "\n", **kwargs):
""" Parses tsv file to an iterable of dicts.
Args:
filename (str):
File to read. First line is considered header.
delimiter (str, Optional):
String used to mark fields in file. Defaults to '\\t'
... | btoth/utility | tsvio.py | Python | mit | 1,931 |
<?php
namespace Litmus\Email;
use Litmus\Base\BaseCallback;
/**
* EmailCallback class
*
* @author Benjamin Laugueux <benjamin@yzalis.com>
*/
class EmailCallback extends BaseCallback
{
}
| yzalis/Litmus | src/Litmus/Email/EmailCallback.php | PHP | mit | 196 |
<?php
/**
* The template for displaying CPT download single page
*
* @package llorix-one-lite
*/ ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'content-single-page' ); ?>>
<header class="entry-header single-header">
<?php the_title( '<h1 itemprop="headline" class="entry-title single-title">', '</h1... | WWWCourses/ProgressBG-Front-End-Dev | projects/Templates/Portfolio/llorix-one-lite/content-single-download.php | PHP | mit | 1,027 |
<?php
return array (
'id' => 'ginovo_mid_ver1',
'fallback' => 'generic_android_ver2_2',
'capabilities' =>
array (
'is_tablet' => 'true',
'model_name' => 'MID',
'brand_name' => 'Ginovo',
'can_assign_phone_number' => 'false',
'physical_screen_height' => '153',
'physical_screen_width' => '... | cuckata23/wurfl-data | data/ginovo_mid_ver1.php | PHP | mit | 400 |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="HtmlInputSubmit.cs" company="">
//
// </copyright>
// <summary>
// The html input submit.
// </summary>
// ------------------------------------------------------------... | athlete1/UXTestingFrameworks | UX.Testing.Core/Controls/HtmlInputNumber.cs | C# | mit | 741 |
<?php
namespace Pixelistik;
use \Pixelistik\UrlCampaignify;
class UrlCampaignifyTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
{
$this->uc = new UrlCampaignify();
}
/* Tests for single URLs */
/**
* Test if the conversion works with URLs being fed in that do not h... | pixelistik/url-campaignify | tests/Pixelistik/UrlCampaignify.php | PHP | mit | 11,823 |
/**
* ## The autocomplete is a normal text input enhanced by a panel of suggested options.
*
* You can read more about autocompletes in the [Material Design spec](https://material.io/guidelines/components/text-fields.html#text-fields-auto-complete-text-field).
*
* You can see live examples in the Material [docu... | tomlandau/material2-new | src/lib/autocomplete/index.ts | TypeScript | mit | 8,564 |
/* eslint no-use-before-define: "off" */
import React from 'react';
import { act } from 'react-dom/test-utils';
import { mount } from 'enzyme';
import Transfer from '..';
const listProps = {
dataSource: [
{
key: 'a',
title: 'a',
disabled: true,
},
{
key: 'b',
title: 'b',
... | ant-design/ant-design | components/transfer/__tests__/dropdown.test.js | JavaScript | mit | 3,765 |
addJs('http://10.16.28.75:3000/block.js?v=2');
| SKing7/charted | pub/resource.js | JavaScript | mit | 47 |
namespace Gar.Client.Contracts.Profiles
{
public interface ICsvInputProfile
{
#region methods
void SetCsvInputProfile();
#endregion
}
}
| KatoTek/Gar | Gar.Client.Contracts/Profiles/ICsvInputProfile.cs | C# | mit | 177 |
<?php
namespace Gogol\Admin\Providers;
use Illuminate\Support\ServiceProvider;
class HashServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = true;
/**
* Register the service provider.
*
*... | MarekGogol/crudadmin | src/Providers/HashServiceProvider.php | PHP | mit | 1,017 |
using System.Windows.Controls;
namespace Parakeet.Views.PrimaryWindow
{
/// <summary>
/// Logique d'interaction pour SortByView.xaml
/// </summary>
public partial class SortByView : UserControl
{
public SortByView()
{
InitializeComponent();
}
}
}
| Serasvatie/Parakeet | Parakeet/Parakeet/Views/PrimaryWindow/SortByView.xaml.cs | C# | mit | 266 |
var UserProxy = (function(){
/**
* @license almond 0.2.9 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/almond for details
*/
//Going sloppy to avoid 'use strict' string cost, but strict practices should
//be followed.
/... | YePpHa/UserProxy | UserProxy.js | JavaScript | mit | 55,778 |
export { default as Audience } from './audiences/model'
export { default as Client } from './clients/model'
export { default as Communication } from './communications/model'
export { default as InboundEmail } from './sendgrid/models/inboundEmail'
export { default as Lead } from './leads/model'
export { default as Marke... | LeadGrabr/api | src/components/models.js | JavaScript | mit | 584 |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Consumption::Mgmt::V2017_12_30_preview
#
# A service client - single point of access to the REST API.
#
class ConsumptionManagementCli... | Azure/azure-sdk-for-ruby | management/azure_mgmt_consumption/lib/2017-12-30-preview/generated/azure_mgmt_consumption/consumption_management_client.rb | Ruby | mit | 5,431 |
using System;
using System.Collections.Generic;
using DXFramework.Util;
using Poly2Tri;
using SharpDX;
namespace DXFramework.PrimitiveFramework
{
public class PTriangle : Primitive
{
private Vector2 a;
private Vector2 b;
private Vector2 c;
public PTriangle( PTriangle triangle )
: base( triangle )
{
... | adamxi/SharpDXFramework | DXFramework/PrimitiveFramework/PTriangle.cs | C# | mit | 3,697 |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... | wgerro/sprintko | database/migrations/2014_10_12_000000_create_users_table.php | PHP | mit | 814 |
#include "Math/Math.h"
float Math::Distance(float x0, float y0, float x1, float y1) {
return sqrt(pow(x0 - x1, 2) + pow(y1 - y0, 2));
}
float Math::Distance(Vector &a, Vector &b) {
return sqrt(pow(a.m_x - b.m_x, 2) + pow(a.m_y - b.m_y, 2));
}
bool RangeIntersect(float min0, float max0, float min1, float max1) {
... | vitorfhc/ZebraEngine | src/Math/Math.cpp | C++ | mit | 361 |
/**
* #describe
* Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.
* For example,
* Given [3,2,1,5,6,4] and k = 2, return 5.
* Note:
* You may assume k is always valid, 1 ≤ k ≤ array's length.
* Credits:
* Special thank... | xiguaxigua/leetcode | answers/kth-largest-element-in-an-array.js | JavaScript | mit | 461 |
require 'cases/helper'
class ArrayItemClass < GQL::String
string :upcased, -> { target.upcase }
end
class MyFixnum < GQL::Number
string :whoami, -> { 'I am a number.' }
end
class MyString < GQL::String
string :whoami, -> { 'I am a string.' }
end
class FieldWithArrays < GQL::Field
array :class_as_item_class,... | martinandert/gql | test/cases/array_test.rb | Ruby | mit | 2,274 |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var User = require('./user');
var entitySchema = new Schema({
room: { type: Schema.Types.ObjectId, ref: 'Room' },
x: { type: Number, default: -1 },
y: { type: Number, default: -1 },
body: Schema.Types.Mixed,
character: String,
color: String,... | Huntrr/mp.txt | app/schema/entity.js | JavaScript | mit | 1,017 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="nl" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About TPPcoin</source>
<translation>Over TPPcoin</translation>
</messa... | tppcoin/tppcoin | src/qt/locale/bitcoin_nl.ts | TypeScript | mit | 118,342 |
"""
Django settings for ProgrammerCompetencyMatrix project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.joi... | FiaDot/programmer-competency-matrix | ProgrammerCompetencyMatrix/settings.py | Python | mit | 2,486 |
require 'test_helper'
module Cms
class CategoriesHelperTest < ActionView::TestCase
end
end
| dreamyourweb/dyw-cms | test/unit/helpers/cms/categories_helper_test.rb | Ruby | mit | 96 |
angular.module('backAnd.services')
.constant('CONSTANTS', {
URL: "https://api.backand.com",
DEFAULT_APP: null,
VERSION : '0.1'
}); | backand/angularbknd | app/backand/js/services/constants.js | JavaScript | mit | 162 |
class CommentsController < ApplicationController
before_action :set_comment, only: [:show, :update, :destroy]
def index
render json: { comments: Comment.all }, methods: :post_id
end
def show
render json: { comment: @comment }, methods: :post_id
end
def create
@comment = Comment.new(comment_pa... | brunoocasali/ember-n-rails | blog-backend/app/controllers/comments_controller.rb | Ruby | mit | 769 |
const JSUnit = imports.jsUnit;
const Cairo = imports.cairo;
const Everything = imports.gi.Regress;
function _ts(obj) {
return obj.toString().slice(8, -1);
}
function _createSurface() {
return new Cairo.ImageSurface(Cairo.Format.ARGB32, 1, 1);
}
function _createContext() {
return new Cairo.Context(_create... | danilocesar/gwkjs | installed-tests/js/testCairo.js | JavaScript | mit | 5,061 |
package org.testcontainers.dockerclient;
import com.github.dockerjava.api.DockerClient;
import com.github.dockerjava.core.DockerClientBuilder;
import com.github.dockerjava.core.DockerClientConfig;
import com.github.dockerjava.netty.NettyDockerCmdExecFactory;
import com.google.common.base.Throwables;
import org.apache.... | barrycommins/testcontainers-java | core/src/main/java/org/testcontainers/dockerclient/DockerClientProviderStrategy.java | Java | mit | 8,768 |
package pass.core.scheduling.distributed;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.UUID;
import java.util.logging.Level;
import java.util.logg... | mzohreva/PASS | pass-core/src/main/java/pass/core/scheduling/distributed/Job.java | Java | mit | 1,683 |
<?php
/*
* This file is part of KoolKode Security Database.
*
* (c) Martin Schröder <m.schroeder2007@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace KoolKode\Security\Database;
use KoolKode\Database\Connecti... | koolkode/security-database | src/DatabaseNonceTracker.php | PHP | mit | 6,412 |
Ember.Fuel.Grid.View.Toolbar = Ember.Fuel.Grid.View.ContainerBase.extend({
classNames: ['table-toolbar'],
classNameBindings: ['childViews.length::hide'],
childViewsBinding: 'controller.toolbar'
}); | redfire1539/ember-fuel | Libraries/Grid/Views/Toolbar.js | JavaScript | mit | 203 |
<?php
/*
* This file is part of PHPExifTool.
*
* (c) 2012 Romain Neutron <imprec@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\Flash;
use JMS\Serializer\Annotation\ExclusionPolicy;
u... | romainneutron/PHPExiftool | lib/PHPExiftool/Driver/Tag/Flash/Message.php | PHP | mit | 764 |
angular.module('DashboardModule', ['ui.router', 'toastr', 'ngResource', 'angular-js-xlsx', 'angularFileUpload','ngAnimate'])
//.config(function ($routeProvider, $locationProvider) {
// $routeProvider
//
// .when('/', {
// templateUrl: '/js/private/dashboard/tpl/dashboard.tpl.htm... | SETTER2000/price | assets/js/public/dashboard/DashboardModule.js | JavaScript | mit | 8,259 |
<!--
Safe sample
input : execute a ls command using the function system, and put the last result in $tainted
sanitize : cast via + = 0.0
File : unsafe, use of untrusted data in a comment
-->
<!--Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, m... | stivalet/PHP-Vulnerability-test-suite | XSS/CWE_79/safe/CWE_79__system__CAST-cast_float_sort_of__Unsafe_use_untrusted_data-comment.php | PHP | mit | 1,275 |
# describe 'Users feature', type: :feature do
# let!(:first_user) { create :user, name: 'Admin' }
# let!(:second_user) { create :user, name: 'User' }
# before do
# visit root_path
# click_link 'All users'
# end
# describe '#index' do
# it 'shows page title' do
# expect(page).to have_conte... | vrtsev/LifeLog | spec/features/publications/users_feature_spec.rb | Ruby | mit | 872 |
module App {
/**
* Наследуйте все директивы не имеющие html-темплейта от этого класса.
* Стили будут загружаться относительно папки URL.DIRECTIVES_ROOT/<имя-директивы>.
* Скоуп, элемент и атрибуты директивы доступны через св-ва $scope, $element, $attrs.
* По умолчанию доступны сервисы $parse, ... | lionsoft/SampleSPA | Sam/app/common/Directive.ts | TypeScript | mit | 1,419 |
(function() {
function ce(p, n, id, c, html)
{
var e = document.createElement(n);
p.appendChild(e);
if (id) e.id = id;
if (c) e.className = c;
if (html) e.innerHTML = html;
return e;
}
demoModeGameboard = gameboard.extend
({
... | nbclark/bounding-bandits | bb.demomode.js | JavaScript | mit | 4,865 |
/*global describe, beforeEach, it*/
'use strict';
var path = require('path');
var helpers = require('yeoman-generator').test;
describe('statik generator', function () {
beforeEach(function (done) {
helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
if (err) {
... | balintgaspar/generator-statik | test/test-creation.js | JavaScript | mit | 965 |
<?php
namespace AppBundle\Repository;
/**
* MsvTConsecutivoRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class MsvTConsecutivoRepository extends \Doctrine\ORM\EntityRepository
{
//Obtiene el maximo consecutivo disponible según la sede operativ... | edosgn/colossus-sit | src/AppBundle/Repository/MsvTConsecutivoRepository.php | PHP | mit | 1,887 |
var gulp = require('gulp'),
nodemon = require('gulp-nodemon'),
plumber = require('gulp-plumber'),
livereload = require('gulp-livereload'),
sass = require('gulp-sass');
gulp.task('sass', function () {
gulp.src('./public/stylesheets/*.scss')
.pipe(plumber())
.pipe(sass())
.pipe(gulp.dest('./public/... | draptik/rpi-temperature-website | gulpfile.js | JavaScript | mit | 936 |
"""Common settings and globals."""
from os.path import abspath, basename, dirname, join, normpath
from sys import path
from os import environ
# Normally you should not import ANYTHING from Django directly
# into your settings, but ImproperlyConfigured is an exception.
from django.core.exceptions import ImproperlyConf... | gfavre/beyondthewall.ch | beyondthewall/beyondthewall/settings/base.py | Python | mit | 7,931 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Routing;
namespace SpecFlowHelper.SampleWebApi
{
public class WebApiApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
... | giacomelli/SpecFlowHelper | SpecFlowHelper.SampleWebApi/Global.asax.cs | C# | mit | 402 |
<?php
/**
* aPage filter form base class.
*
* @package symfony
* @subpackage filter
* @author Your name here
* @version SVN: $Id: sfDoctrineFormFilterGeneratedTemplate.php 29570 2010-05-21 14:49:47Z Kris.Wallsmith $
*/
abstract class BaseaPageFormFilter extends BaseFormFilterDoctrine
{
public functi... | samura/asandbox | lib/filter/doctrine/apostrophePlugin/base/BaseaPageFormFilter.class.php | PHP | mit | 7,433 |
package com.charmyin.cmstudio.basic.authorize.service;
import java.util.List;
import org.springframework.stereotype.Service;
import com.charmyin.cmstudio.basic.authorize.vo.TreeItem;
@Service
public interface TreeItemService {
List<TreeItem> getOrganizationWithUsers(int organizationId);
}
| Feolive/EmploymentWebsite | src/main/java/com/charmyin/cmstudio/basic/authorize/service/TreeItemService.java | Java | mit | 300 |
'use strict';
const loadRule = require('../utils/load-rule');
const ContextBuilder = require('../utils/contextBuilder');
const RequestBuilder = require('../utils/requestBuilder');
const AuthenticationBuilder = require('../utils/authenticationBuilder');
const ruleName = 'require-mfa-once-per-session';
describe(ruleNa... | auth0/rules | test/rules/require-mfa-once-per-session.test.js | JavaScript | mit | 1,787 |
# frozen_string_literal: true
require 'numbers_and_words/strategies/figures_converter/languages'
require 'numbers_and_words/strategies/figures_converter/options'
require 'numbers_and_words/strategies/figures_converter/decorators'
module NumbersAndWords
module Strategies
module FiguresConverter
class Base
... | kslazarev/numbers_and_words | lib/numbers_and_words/strategies/figures_converter.rb | Ruby | mit | 883 |
using WebPlatform.Core.Data;
namespace WebPlatform.Tests.Core
{
/// <summary>
/// Defines the test entity.
/// </summary>
public class TestEntity : Entity
{
/// <summary>
/// Gets or sets the caption.
/// </summary>
public string Caption
{
get;
set;
... | urahnung/webplatform | src/Tests/Core/TestEntity.cs | C# | mit | 336 |
let base_x = {}
let dictionaries = {}
/// @name Encode
/// @description Takes a large number and converts it to a shorter encoded string style string i.e. 1TigYx
/// @arg {number} input The number to be encoded to a string
/// @arg {number, string} dictionary ['DICTIONARY_52'] - The dictionary to use for the encoding
... | tjbenton/docs | packages/docs-theme-default/src/base-x.js | JavaScript | mit | 4,443 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Qoollo.PerformanceCounters
{
/// <summary>
/// Контейнер стандартных счётчиков
/// </summary>
public static class PerfCountersDefault
{
private static ... | qoollo/performance-counters | src/Qoollo.PerformanceCounters/PerfCountersDefault.cs | C# | mit | 4,487 |
<?php
/*
* This file is part of the Fidry\AliceDataFixtures package.
*
* (c) Théo FIDRY <theo.fidry@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Fidry\AliceDataFixtures\Bridge\Doc... | furtadodiegos/projeto_cv | vendor/theofidry/alice-data-fixtures/fixtures/Bridge/Doctrine/PhpCrDocument/Dummy.php | PHP | mit | 577 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sneaking
{
class Sneaking
{
static void Main()
{
var roomSize = int.Parse(Console.ReadLine());
char[][] room = new char[roomSize][];
... | radoikoff/SoftUni | C Sharp Advanced/Adv 9 The Exam/Task2/Sneaking.cs | C# | mit | 5,315 |
from wodcraft.api import resources
# Routing
def map_routes(api):
api.add_resource(resources.Activity,
'/api/v1.0/activities/<int:id>',
endpoint='activity')
api.add_resource(resources.Activities,
'/api/v1.0/activities',
endpoi... | the-gigi/wod-craft-server | wodcraft/api/routes.py | Python | mit | 1,064 |
package html
import "fmt"
const (
NodeError NodeType = "error"
NodeText NodeType = "text"
NodeElement NodeType = "element"
NodeComment NodeType = "comment"
)
type NodeType string
type Node struct {
Parent *Node
FirstChild *Node
LastChild *Node
PrevSibling *Node
NextSibling *Node
Type NodeTyp... | lysrt/bro | html/node.go | GO | mit | 829 |
Pony.options = {
via: :smtp,
from: 'HUD Notifier <no-reply@hud-notifier.herokuapp.com>',
via_options: {
address: 'smtp.sendgrid.net',
port: '587',
domain: 'heroku.com',
user_name: ENV['SENDGRID_USERNAME'],
password: ENV['SENDGRID_PASSWORD'],
authentication: :plain,
enable_starttls_auto... | ancorcruz/hud_notifier | lib/hud_notifier/mailer_config.rb | Ruby | mit | 333 |
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2020, Hamdi Douss
*
* 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... | HDouss/jeometry | aljebra/src/test/java/com/aljebra/scalar/mock/SpyScalar.java | Java | mit | 2,523 |
package jeliot.mcode;
/**
* Currently this class is not used in Jeliot 3.
*
* @author Niko Myller
*/
public class Command {
// DOC: document!
/**
*
*/
private int expressionReference = 0;
/**
*
*/
private int type = 0;
/**
*
*/
protected Command() { }
... | moegyver/mJeliot | Jeliot/src/jeliot/mcode/Command.java | Java | mit | 899 |
/*
* Copyright 2007 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | yakovenkodenis/Discounty | src/main/java/com/google/zxing/common/reedsolomon/ReedSolomonDecoder.java | Java | mit | 7,749 |
<?php
$passEnc = '$2y$06$wRkrmRT6gm8g0CqcKnrWYOrLke6waZva11sqfv4RkjuCXCjG0qI56';
$user = 'admin';
?>
| jplsek/Basic-CMS-Project | cms/key.php | PHP | mit | 103 |
package us.corenetwork.tradecraft;
import net.minecraft.server.v1_10_R1.Item;
import net.minecraft.server.v1_10_R1.ItemStack;
import net.minecraft.server.v1_10_R1.MerchantRecipe;
import net.minecraft.server.v1_10_R1.NBTTagCompound;
/**
* Created by Matej on 5.3.2014.
*/
public class CustomRecipe extends MerchantRec... | Kongolan/TradeCraft | src/us/corenetwork/tradecraft/CustomRecipe.java | Java | mit | 2,230 |
package com.tom.util;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraftforge.fluids.FluidStack;
import com.tom.api.research.Research;
import com.tom.recipes.handler.AdvancedCr... | tom5454/Toms-Mod | src/main/java/com/tom/util/RecipeData.java | Java | mit | 4,212 |
using ShopifySharp.Filters;
using System;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace ShopifySharp.Tests
{
[Trait("Category", "InventoryLevel")]
public class InventoryLevel_Tests : IClassFixture<InventoryLevel_Tests_Fixture>
{
private InventoryLevel_Tests_Fixture Fixture... | addsb/ShopifySharp | ShopifySharp.Tests/InventoryLevel_Tests.cs | C# | mit | 5,840 |
//This file makes it easier to import everything from the common folder
export * from './Button';
export * from './Card';
export * from './CardSection';
export * from './Header';
export * from './Input';
export * from './Spinner';
export * from './Confirm';
| srserx/react-native-ui-common | index.js | JavaScript | mit | 259 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Filename : video.py
# Author : Kim K
# Created : Fri, 29 Jan 2016
# Last Modified : Sun, 31 Jan 2016
from sys import exit as Die
try:
import sys
import cv2
from colordetection import ColorDetector
except ImportError as err:
Die(err)
... | muts/qbr | src/video.py | Python | mit | 4,872 |
import React from 'react';
import Example from './Example';
import Icon from '../../src/Icon';
import Button from '../../src/Button';
import IconButton from '../../src/IconButton';
import FABButton from '../../src/FABButton';
export default ( props ) => (
<section { ...props }>
<h3>Buttons</h3>
<... | joshq00/react-mdl | demo/sections/Buttons.js | JavaScript | mit | 1,885 |
using System.Collections;
namespace System.ComponentModel.DataAnnotations
{
public class EnsureMinimumElementsAttribute : ValidationAttribute
{
private readonly int _minElements;
public EnsureMinimumElementsAttribute(int minElements)
{
_minElements = minElements;
}... | orbital7/orbital7.extensions | src/Orbital7.Extensions.Attributes/EnsureMinimumElementsAttribute.cs | C# | mit | 583 |
//
// Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved.
//
// 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
/... | baxtea/Anvil | src/misc/io.cpp | C++ | mit | 8,936 |
var async = require('async');
function _hasher() {
return "_";
}
function accessor(idx) {
return (this.memo._ || [])[idx];
};
module.exports = function mymoize(fn) {
var memoized = async.memoize(fn, _hasher);
memoized.getErr = accessor.bind(memoized, 0);
memoized.getRes = accessor.bind(memoized, 1);
retu... | adrienjoly/npm-mymoize | index.js | JavaScript | mit | 335 |
module Sinkhole
module Commands
class Help < Command
def do_process
Responses::HelpMessage.new(":(... y u no smtp?")
end
end
end
end | andrewstucki/sinkhole | lib/sinkhole/commands/help.rb | Ruby | mit | 164 |
using System;
namespace _03.Mankind
{
public abstract class Human
{
private string firstName;
private string lastName;
protected Human(string firstName, string lastName)
{
this.FirstName = firstName;
this.LastName = lastName;
}
public s... | George221b/SoftUni-Tasks | C#OOP-Basics/03.Inheritance-Exercise/03.Mankind/Human.cs | C# | mit | 1,540 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// La información general sobre un ensamblado se controla mediante el siguiente
// conjunto de atributos. Cambie estos atributos para modificar la información
// asociada con un ensamblado.
[assembly: AssemblyTitle(... | nikeyes/SlackClient | Slack.ServiceLibrary/Properties/AssemblyInfo.cs | C# | mit | 1,558 |
// Karma configuration
// Generated on Fri Jul 05 2013 01:57:57 GMT-0400 (EDT)
/*global basePath:true, exclude:true, reporters:true, files:true*/
/*global coverageReporter:true, junitReporter:true, reporters:true,
preprocessors:true, frameworks:true*/
/*global port:true, runnerPort:true, colors:true, logLevel:true*/
/*... | goliatone/gmodule | karma.conf.js | JavaScript | mit | 2,909 |
var Promise = require('ia-promise');
var XHRPromise = require('./XHRPromise');
var CommandPromise = require('./CommandPromise');
var ProfilePromise = require('./ProfilePromise');
var ViewPromise = require('./ViewPromise');
var FutureViewPromise = require('./FutureViewPromise');
var RoomPromise = require('./RoomPromise'... | nfroidure/Liar | src/RoomsPromise.js | JavaScript | mit | 2,568 |
/**
* ionNavBar
*
* ionNavBar and _ionNavBar are created to overcome Meteor's templating limitations. By utilizing Template.dynamic
* in blaze, we can force ionNavBar to destroy _ionNavBar, enabling css transitions and none of that javascript
* animation.
*/
let _ionNavBar_Destroyed = new ReactiveVar(false);
Te... | JoeyAndres/meteor-ionic | components/ionNavBar/ionNavBar.js | JavaScript | mit | 4,669 |
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("mk... | mk-prg-net/mk-prg-net.lib | mko.Testdata/Properties/AssemblyInfo.cs | C# | mit | 1,447 |
using System;
using System.Collections.Generic;
using System.Reflection;
using WSDL.Models;
using WSDL.Models.Schema;
namespace WSDL.TypeManagement
{
/// <summary>
/// This provides a stateful context for managing the types required to define
/// a web service. It includes all the types, both static and i... | carlos-vicente/Nancy.Soap | src/WSDL/TypeManagement/ITypeContext.cs | C# | mit | 1,193 |
/*
* jobshopConstants.java
*
* Created on February 3, 2001, 12:48 PM
*/
package hugs.apps.jobshop;
import java.lang.*;
import java.util.*;
/**
* This class holds all the constants used in the jobshop project
*
* @author Guy T. Schafer
* @version 1.0
*/
public class jobshopConstants
{
// ... | guwek/HuGS | hugs/apps/jobshop/jobshopConstants.java | Java | mit | 9,091 |
<?php
/**
* This file is loaded automatically by the app/webroot/index.php file after core.php
*
* This file should load/create any application wide configuration settings, such as
* Caching, Logging, loading additional configuration files.
*
* You should also use this file to include any files that provide glob... | Shahlal47/nits | app/Config/bootstrap.php | PHP | mit | 8,502 |
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web serv... | yannvery/ratatime | config/environments/development.rb | Ruby | mit | 2,371 |
/* eslint no-unused-expressions: "off" */
import { expect } from 'chai';
import { Session } from '../utils';
import * as ModelUtils from '../../../src/utils/model-utils';
const session = new Session();
const Vehicle = session.model('Vehicle', {});
const Car = session.model('Car', {}, {
'extends': Vehicle
});
cons... | one-orm/core | test/unit/utils/model-utils-test.js | JavaScript | mit | 5,551 |
#!/usr/bin/python
"""
Author: Mohamed K. Eid (mohamedkeid@gmail.com)
Description: stylizes an image using a generative model trained on a particular style
Args:
--input: path to the input image you'd like to apply a style to
--style: name of style (found in 'lib/generators') to apply to th... | mohamedkeid/Feed-Forward-Style-Transfer | src/test.py | Python | mit | 3,177 |
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res) {
res.render('index', { title: 'Express',reqCsrf:req.csrfToken()});
});
router.post('/regist',function(req,res){
res.send('OK')
});
router.post('/registXhr',function(req,res){
if(req.... | CM-Kajiwara/csurfSample | routes/index.js | JavaScript | mit | 439 |
using Diabhelp.Core.Api;
using Diabhelp.Core.Api.ResponseModels;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls... | DiabHelp/DiabHelp-App-WP | Diabhelp/Core/InscriptionScreen.xaml.cs | C# | mit | 3,398 |
var React = require('react');
var AWSMixin = require('../mixins/aws.mixin');
var AWSActions = require('../actions/AWSActions');
var EC2Item = React.createClass({
render: function() {
return (
<a href="#" onClick={this._onSSHClick} className="col one-fourth ec2-instance">{this.props.instance.Name}</a>
... | sunils34/visualize-aws | www/js/components/EC2.react.js | JavaScript | mit | 865 |
package com.ipacc;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
*
* @author PateL
*
*/
@SpringBootApplication
public class SpringAopPermgenLeakApplication {
} | lucaspate/bugs | SpringAopPermGenLeak/src/main/java/com/ipacc/SpringAopPermgenLeakApplication.java | Java | mit | 194 |
describe('jQuery Plugin', function () {
it('jQuery.fn.plugin should exist', function () {
expect(jQuery.fn.plugin).toBeDefined();
});
}); | angryobject/jquery-plugin-starter | app/jquery.plugin.spec.js | JavaScript | mit | 149 |
using HtmlAgilityPack;
using MagicNewCardsBot.Helpers;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace MagicNewCardsBot
{
public class MTGPicsTasker : Tasker
{
... | vinimk/MagicNewCardsBotForTelegram | TaskersAndControllers/MTGPicsTasker.cs | C# | mit | 15,297 |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace Pickin.Models
{
public class PickinUser : IComparable
{
[Key]
public int PickinUserId { get; set; }
[Required]
public virtual Application... | jbrooks036/Pickin | Pickin/Models/PickinUser.cs | C# | mit | 1,050 |
/* --------------------------------------------------------------------------
*
* File MainScene.cpp
* Description
* Ported By Young-Hwan Mun
* Contact xmsoft77@gmail.com
*
* --------------------------------------------------------------------------
*
* ... | mcodegeeks/OpenKODE-Framework | 04_Sample/BattleCity/Source/Views/MainScene.cpp | C++ | mit | 5,528 |
<?php
/**
* Класс User - предназначен для работы с учетными записями пользователей системы.
* Доступен из любой точки программы.
* Реализован в виде синглтона, что исключает его дублирование.
*
* @author Авдеев Марк <mark-avdeev@mail.ru>
* @package moguta.cms
* @subpackage Libraries
*/
class User {
... | hlogeon/autoryad | mg-core/lib/user.php | PHP | mit | 11,648 |