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) 2012-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "key.h"
#include "base58.h"
#include "script/script.h"
#include "uint256.h"
#include "util.h"
#include "utilstr... | koharjidan/litecoin | src/test/key_tests.cpp | C++ | mit | 9,233 |
package platzi.app;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
public interface InstructorRepository extends JpaRepository<Instructor, Long> {
Optional<Instructor> findByUsername(String username);
}
| erikmr/Java-Api-Rest | src/main/java/platzi/app/InstructorRepository.java | Java | mit | 250 |
import os
ADMINS = (
# ('Eduardo Lopez', 'eduardo.biagi@gmail.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': os.path.join(os.path.dirname(__file__), 'highways.db')... | tapichu/highway-maps | project/settings.py | Python | mit | 3,183 |
<div class="container">
<div class="card-panel darken-2 z-depth-2">
<h5 class="red-text"><i class="fa fa-search-plus"></i> CONSULTA</h5>
<br>
<form action="<?php echo baseUrl ?>home/consultas/index" method="POST" class="col s12">
<?php echo Token::field() ?>
<div class="row">
<div clas... | dexternidia/redcomand | app/home/views/consultas/index.php | PHP | mit | 6,788 |
package com.qiniu.android.dns.http;
import com.qiniu.android.dns.Domain;
import com.qiniu.android.dns.IResolver;
import com.qiniu.android.dns.NetworkInfo;
import com.qiniu.android.dns.Record;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* Create... | longbai/happy-dns-android | library/src/main/java/com/qiniu/android/dns/http/DnspodFree.java | Java | mit | 1,751 |
package com.wabbit.libraries;
import android.content.Context;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.UUID;
public class Installation {
private static String sID = null;
private static final String INSTALLATION = "INS... | DobrinAlexandru/Wabbit-Messenger---android-client | Wabbit/src/com/wabbit/libraries/Installation.java | Java | mit | 1,373 |
<?php get_header(); ?>
<main role="main" class="main-content">
<!-- section -->
<section>
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
<h1><?php the_title();?></h1>
<?php get_template_part( 'template-parts/content', 'single' );?>
<span><... | loschke/sevenx-wordpress-blank | single.php | PHP | mit | 626 |
//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 Ryo Suzuki
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include "Common.hpp"
# include... | Siv3D/OpenSiv3D | Siv3D/include/Siv3D/VertexShaderAssetData.hpp | C++ | mit | 1,971 |
// DATA_TEMPLATE: empty_table
oTest.fnStart("5396 - fnUpdate with 2D arrays for a single row");
$(document).ready(function () {
$('#example thead tr').append('<th>6</th>');
$('#example thead tr').append('<th>7</th>');
$('#example thead tr').append('<th>8</th>');
$('#example thead tr').append('<th>9</th... | hedi103/projet-decision-commerciale | src/Project/Bundle/AceThemeBundle/Resources/public/css/themes/default/assets/advanced-datatable/media/unit_testing/tests_onhold/1_dom/5396-fnUpdate-arrays-mData.js | JavaScript | mit | 2,746 |
package BubbleSort2D;
public class person {
String name;
int age;
boolean sortme = false;
public person(String n, int a) {
name = n;
age = a;
}
public String toString(){
return name + " " + Integer.toString(age);
}
} | mrswoop/BubbleSort2DArrayRange | BubbleSort2D/src/BubbleSort2D/person.java | Java | mit | 253 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ShoNS.Array;
using Rhino.Geometry;
namespace mikity.ghComponents
{
public partial class Mothra2 : Grasshopper.Kernel.GH_Component
{
private DoubleArray[] baseFunction;
priva... | mikity-mikity/Mothra2 | Mothra/Numerics.cs | C# | mit | 9,553 |
using System.ComponentModel.Composition.Hosting;
using System.Threading.Tasks;
using LiteGuard;
using Mileage.Server.Contracts.Commands;
using Mileage.Server.Contracts.Commands.Mileage;
using Mileage.Shared.Results;
using Raven.Client;
using Raven.Client.Indexes;
namespace Mileage.Server.Infrastructure.Commands.Milea... | haefele/Mileage | src/03 Server/Mileage.Server.Infrastructure/Commands/Mileage/ResetIndexesCommandHandler.cs | C# | mit | 1,966 |
/*
* jQuery Touch Optimized Sliders "R"Us
* HTML media
*
* Copyright (c) Fred Heusschen
* www.frebsite.nl
*/
!function(i){var n="tosrus",e="html";i[n].media[e]={filterAnchors:function(n){return"#"==n.slice(0,1)&&i(n).is("div")},initAnchors:function(e,t){i('<div class="'+i[n]._c("html")+'" />').append(i(t)).appen... | Jezfx/rocket-theme | site assets/plugins/smart-grid-gallery/includes/lightboxes/tosrus/js/media/jquery.tosrus.html.min.js | JavaScript | mit | 462 |
/**
* Knook-mailer
* https://github.com/knook/knook.git
* Auhtors: Alexandre Lagrange-Cetto, Olivier Graziano, Olivier Marin
* Created on 15/04/2016.
* version 0.1.0
*/
'use strict';
module.exports = {
Accounts: require('./src/Accounts'),
Email: require('./src/Email'),
Init: require('./src/Init'),
... | knook/knook-mailer | index.js | JavaScript | mit | 396 |
using System;
using System.Diagnostics;
using System.ServiceModel.Channels;
using System.ServiceModel.Dispatcher;
namespace SimpleNet.ServiceHost.Behaviors
{
public class ErrorHandler : IErrorHandler
{
// Provide a fault. The Message fault parameter can be replaced, or set to
// null... | Hem/SimpleNet | SimpleNet.ServiceHost/Behaviors/ErrorHandler.cs | C# | mit | 1,174 |
namespace Enexure.MicroBus
{
public interface IQuery<in TQuery, out TResult> : IQuery, IMessage
where TQuery : IQuery<TQuery, TResult>
{
}
public interface IQuery
{
}
} | Lavinski/Enexure.MicroBus | src/Enexure.MicroBus.MessageContracts/IQuery.cs | C# | mit | 203 |
module.exports = {
KeyQ: {
printable: true,
keyCode: 81,
Default: 'ქ',
Shift: '',
CapsLock: 'Ⴕ',
Shift_CapsLock: '',
Alt: '',
Alt_Shift: ''
},
KeyW: {
printable: true,
keyCode: 87,
Default: 'წ',
Shift: 'ჭ',
CapsLock: 'Ⴜ',
Shift_CapsLock: 'Ⴝ',
Alt: '∑',
... | mijra/georgiankeyboard.com | data.js | JavaScript | mit | 8,583 |
/*
* Copyright 2001-2014 Aspose Pty Ltd. All Rights Reserved.
*
* This file is part of Aspose.Words. The source code in this file
* is only intended as a supplement to the documentation, and is provided
* "as is", without warranty of any kind, either expressed or implied.
*/
package loadingandsaving.loadi... | asposemarketplace/Aspose-Words-Java | src/loadingandsaving/loadingandsavinghtml/splitintohtmlpages/java/Topic.java | Java | mit | 791 |
class <%= class_name %> < ApplicationPage
# self.route = nil # slug
# self.allow_create = true
# self.allow_destroy = true
# self.minimum_children = nil
# self.minimum_children = nil
# self.allowed_children = []
# form do |f|
# f.inputs
# f.buttons
# end
# def static_child... | mrhenry/lalala-ng | lib/generators/lalala/page/templates/page.rb | Ruby | mit | 346 |
/**
* This program and the accompanying materials
* are made available under the terms of the License
* which accompanies this distribution in the file LICENSE.txt
*/
package org.opengroup.archimate.xmlexchange;
/**
* XML Exception
*
* @author Phillip Beauvoir
*/
public class XMLModelParserException extends E... | archimatetool/archi | org.opengroup.archimate.xmlexchange/src/org/opengroup/archimate/xmlexchange/XMLModelParserException.java | Java | mit | 597 |
window.Boid = (function(){
function Boid(x, y, settings){
this.location = new Vector(x, y);
this.acceleration = new Vector(0, 0);
this.velocity = new Vector(Helper.getRandomInt(-1,1), Helper.getRandomInt(-1,1));
this.settings = settings || {};
this.show_connections = settings.show_connections || true;... | innni/hypela | js/simulation/boid.js | JavaScript | mit | 7,239 |
package com.aliumujib.majlis.mkan_report_app.addnew.fragments;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.aliumujib.majlis.mkan_report_app.R;
import com.stepstone.stepper.VerificationError;
public class SihateJismaniPart2 extends ... | MKA-Nigeria/MKAN-Report-Android | mkan_report_app/src/main/java/com/aliumujib/majlis/mkan_report_app/addnew/fragments/SihateJismaniPart2.java | Java | mit | 1,164 |
<?php
/*
* WellCommerce Open-Source E-Commerce Platform
*
* This file is part of the WellCommerce package.
*
* (c) Adam Piotrowski <adam@wellcommerce.org>
*
* For the full copyright and license information,
* please view the LICENSE file that was distributed with this source code.
*/
namespace WellCommerce\... | WellCommerce/LocaleBundle | Copier/LocaleCopier.php | PHP | mit | 3,103 |
/// <reference path="vector2d.ts" />
function fillCircle(x: number, y: number, radius: number, color: string) {
context.beginPath();
context.arc(x, y, radius, 0, Math.PI * 2);
context.fillStyle = color;
context.fill();
}
function fillCircleWithFace(context: CanvasRenderingContext2D, x: number, y: number, rad... | mktange/FFXIV-BattleSimulator | src/engine/DrawingUtils.ts | TypeScript | mit | 704 |
using EdityMcEditface.HtmlRenderer.SiteBuilder;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace EdityMcEditface.Mvc.Config
{
public class SiteBuilderEventArgs
{
/// <summary>
/// The site builder to customize.
/// </summary>
... | threax/EdityMcEditface | EdityMcEditface.Mvc/Config/SiteBuilderEventArgs.cs | C# | mit | 517 |
package com.hypebeast.sdk.api.model.hypebeaststore;
import com.google.gson.annotations.SerializedName;
import com.hypebeast.sdk.api.model.Alternative;
import com.hypebeast.sdk.api.model.symfony.taxonomy;
/**
* Created by hesk on 7/1/2015.
*/
public class ReponseNormal extends Alternative {
@SerializedName("prod... | jjhesk/slideSelectionList | SmartSelectionList/hbsdk/src/main/java/com/hypebeast/sdk/api/model/hypebeaststore/ReponseNormal.java | Java | mit | 438 |
# 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::Network::Mgmt::V2018_06_01
#
# SecurityRules
#
class SecurityRules
include MsRestAzure
#
# Creates and initializes a new ... | Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2018-06-01/generated/azure_mgmt_network/security_rules.rb | Ruby | mit | 30,357 |
require 'nymphia'
require 'optparse'
require 'pathname'
module Nymphia
class CLI
def self.start(argv)
new(argv).run
end
def initialize(argv)
@argv = argv.dup
parser.parse!(@argv)
end
def run
validate_args!
dsl_code_file = File.open(@file_path)
absolute_dsl_f... | mozamimy/nymphia | lib/nymphia/cli.rb | Ruby | mit | 1,155 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerservice.generated;
import com.azure.core.util.Context;
/** Samples for ManagedClusters List. */
public final class Man... | Azure/azure-sdk-for-java | sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java | Java | mit | 875 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.compute.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resou... | Azure/azure-sdk-for-java | sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ProximityPlacementGroupListResult.java | Java | mit | 2,679 |
import MySQLdb as _mysql
from collections import namedtuple
import re
# Only needs to compile one time so we put it here
float_match = re.compile(r'[-+]?\d*\.?\d+(?:[eE][-+]?\d+)?$').match
def is_number(string):
return bool(float_match(string))
class MySQLDatabase(object):
"""
This is the driver class ... | GunnerJnr/_CodeInstitute | Stream-2/Back-End-Development/18.Using-Python-with-MySQL-Part-Three-Intro/3.How-to-Build-an-Update-SQL-String/database/mysql.py | Python | mit | 7,289 |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
usi... | FiveTimesTheFun/corefx | src/System.Collections.Concurrent/tests/ConcurrentDictionaryTests.cs | C# | mit | 37,935 |
/**
* The MIT License
* Copyright (c) 2003 David G Jones
*
* 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, ... | jonesd/st2x | src/main/java/info/dgjones/st2x/transform/method/intra/TransformCreateCall.java | Java | mit | 2,846 |
"""
https://codility.com/programmers/task/equi_leader/
"""
from collections import Counter, defaultdict
def solution(A):
def _is_equi_leader(i):
prefix_count_top = running_counts[top]
suffix_count_top = total_counts[top] - prefix_count_top
return (prefix_count_top * 2 > i + 1) and (suffi... | py-in-the-sky/challenges | codility/equi_leader.py | Python | mit | 707 |
package soa
import (
"encoding/json"
"fmt"
"strconv"
"time"
"github.com/Shark/powerdns-consul/backend/store"
)
type soaEntry struct {
NameServer string
EmailAddr string
Sn uint32
Refresh int32
Retry int32
Expiry int32
Nx int32
}
type soaRevision struct {
SnModifyIndex uint6... | Shark/powerdns-consul | backend/soa/generator.go | GO | mit | 3,613 |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace Pb.TileMap
{
/// <summary>
/// Base class for chunk renderers
/// </summary>
[System.Serializable]
public class ChunkRenderer :
ScriptableObject
{
/// <summary>
/// Renders a chunk with a tile map controller, chunk, an... | djkoloski/pb | Assets/Pb/TileMap/ChunkRenderer.cs | C# | mit | 932 |
class Cd
@@all_Cds = {}
attr_accessor :name, :artist
def initialize(attributes)
@name = attributes[:album_name]
@artist = attributes[:artist_name]
end
def self.all
output_Cds = []
@@all_Cds.each_value do |album|
output_Cds << album
end
output_Cds
end
def save
@@all_... | dianedouglas/CD-Organizer | lib/cd.rb | Ruby | mit | 897 |
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("Ma... | caseywatson/Mantle | v0/Mantle/Mantle.Hosting.WindowsServices/Properties/AssemblyInfo.cs | C# | mit | 1,436 |
class Api::CodeController < Api::BaseController
def create
@code = Code.new
@code.save
end
def status
@success = false
if !params.has_key?(:id) || !params.has_key?(:hash)
return
end
hash = Digest::SHA1.hexdigest "#{params[:id]}#{Rails.application.secrets.twitch_client_secret}"
puts hash
if ... | jameseunson/twitchy-backend | app/controllers/api/code_controller.rb | Ruby | mit | 470 |
package ie.lc.fallApp;
import java.text.DecimalFormat;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.text.Editable;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.*;
public class Activity... | LeeCIT/FallApp | FallApp/src/ie/lc/fallApp/ActivityFallHeight.java | Java | mit | 5,073 |
/*global window*/
(function($){
'use strict';
var Observable = function(){
this.observers = {};
};
Observable.prototype.on = function(event, observer){
(this.observers[event] = this.observers[event] || []).push(observer);
};
Observable.prototype.emit = function(event){
v... | dvberkel/rails.girls.utrecht.2015 | js/heart.js | JavaScript | mit | 4,014 |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
public function run(): void
{
$this->call(SeasonsTableSeeder::class);
$this->call(CompetitionsTableSeeder::class);
$this->call(DivisionsTableSeeder::class);
$this->call(Ven... | troccoli/lva | database/seeders/DatabaseSeeder.php | PHP | mit | 653 |
import root from './_root.js';
import toString from './toString.js';
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeParseInt = root.parseInt;
/**
* Converts `string` to an integer of the specified radix. If `radix` is
* `undefined` or `0`, a `radix` of `10` is use... | jintoppy/react-training | step9-redux/node_modules/lodash-es/parseInt.js | JavaScript | mit | 1,161 |
<?php
return array (
'id' => 'htc_sensation_ver1',
'fallback' => 'htc_pyramid_ver1',
'capabilities' =>
array (
'uaprof' => 'http://www.htcmms.com.tw/Android/Common/PG58/ua-profile.xml',
'model_name' => 'Z710',
'brand_name' => 'HTC',
'marketing_name' => 'Sensation',
'release_date' => '2011_j... | cuckata23/wurfl-data | data/htc_sensation_ver1.php | PHP | mit | 1,299 |
# encoding: utf-8
module Axiom
class Optimizer
class Aggregate
# Abstract base class representing Maximum optimizations
class Maximum < self
Axiom::Aggregate::Maximum.optimizer = chain(
UnoptimizedOperand
)
end # class Maximum
end # class Aggregate
end # class... | dkubb/axiom-optimizer | lib/axiom/optimizer/aggregate/maximum.rb | Ruby | mit | 350 |
import $ from 'jquery';
module.exports = function(root) {
root = root ? root : global;
root.expect = root.chai.expect;
root.$ = $;
beforeEach(() => {
// Using these globally-available Sinon features is preferrable, as they're
// automatically restored for you in the subsequent `afterEach`
root.san... | atd/cartodb.js | test/setup/setup.js | JavaScript | mit | 855 |
const mongoose = require('mongoose');
const UserModel = mongoose.model('User');
module.exports = {
login: (email, password) => {
return UserModel.findOne({email, password});
}
}; | Spardevil/angular-crm | server/server/services/auth.service.js | JavaScript | mit | 184 |
# encoding: utf-8
require 'rubygems'
require 'file_manager'
class SeriesMonitor
DEFAULT_INTERVAL = 7200
attr_accessor :interval
attr_accessor :notification_callback
def initialize(parser)
@parser = parser
end
def call_notification_callback(message, link = nil)
if notification_callback
notification_ca... | renatorp/SeriesMonitor | src/series_monitor.rb | Ruby | mit | 1,278 |
module.exports = {
login: function(user, req)
{
// Parse detailed information from user-agent string
var r = require('ua-parser').parse(req.headers['user-agent']);
// Create new UserLogin row to database
sails.models.loglogin.create({
ip: req.ip,
host: req.host,
agent: req.headers... | modulr/modulr | api/api/services/LogService.js | JavaScript | mit | 1,506 |
package com.maximusvladimir.randomfinder;
import java.awt.Cursor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTex... | maximusvladimir/randomfinder | src/com/maximusvladimir/randomfinder/Test.java | Java | mit | 3,649 |
package com.walkertribe.ian.protocol.core.weap;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import com.walkertribe.ian.enums.BeamFrequency;
import com.walkertribe.ian.enums.Origin;
import com.walkertribe.ian.protocol.AbstractPacketTester;
public class SetBeamFreqPacketTest extends Abstrac... | rjwut/ian | src/test/java/com/walkertribe/ian/protocol/core/weap/SetBeamFreqPacketTest.java | Java | mit | 906 |
// Copyright (c) 2009-2014 The nealcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "uritests.h"
#include "guiutil.h"
#include "walletmodel.h"
#include <QUrl>
void URITests::uriTests()
{
SendC... | appop/bitcoin | src/qt/test/uritests.cpp | C++ | mit | 2,968 |
// ***********************************************************************
// Assembly : MoeThrow
// Author : Siqi Lu
// Created : 2015-03-15 7:44 PM
//
// Last Modified By : Siqi Lu
// Last Modified On : 2015-03-15 8:24 PM
// ***************************************************************... | SiqiLu/MoeThrow | MoeThrow/Properties/AssemblyInfo.cs | C# | mit | 2,005 |
var Command = require("../Command");
var RealDirection = require("../../RealDirection");
var MessageCategory = require("../../MessageCategory");
var _dir = RealDirection.NORTHEAST;
class Northeast extends Command{
constructor(){
super();
this.rule = /^n(?:orth)?e(?:ast)?$/g;
}
exec(){
if(this.step(_dir)){
... | jackindisguise/node-mud | src/handle/command/Northeast.js | JavaScript | mit | 465 |
package soliddomino.game.exceptions;
public class IncorrectMoveFormatException extends Exception {
public IncorrectMoveFormatException(String format) {
super(format + " is not the correct format. Expected \'#number-direction(e.g left, right).\'\nExample: 4-right");
}
}
| Beta-nanos/SolidDomino | SolidDomino/src/soliddomino/game/exceptions/IncorrectMoveFormatException.java | Java | mit | 289 |
#include "expression.h"
#include "opt.h"
#include "vm/instruction.h"
std::vector<vv::vm::command> vv::ast::expression::code() const
{
auto vec = generate();
optimize(vec);
return vec;
}
| jeorgun/Vivaldi | src/expression.cpp | C++ | mit | 194 |
import VueRouter from 'vue-router'
import { mount } from '@vue/test-utils'
import { waitNT, waitRAF } from '../../../tests/utils'
import { Vue } from '../../vue'
import { BPaginationNav } from './pagination-nav'
Vue.use(VueRouter)
// The majority of tests for the core of pagination mixin are performed
// in paginatio... | bootstrap-vue/bootstrap-vue | src/components/pagination-nav/pagination-nav.spec.js | JavaScript | mit | 22,231 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
public class Family
{
private List<Person> familyList;
public List<Person> Names
{
get { return this.familyList; }
set { this.familyList = value; }
}
public Family()
{
this... | giggals/Software-University | Exercises-Defining Classes/03.OldesFamilyMember/Family.cs | C# | mit | 603 |
//proc_ace_acceptor.cpp
#include <proc_mta_ace_acceptor.h>
using namespace proc_mta_ace;
using std::ostringstream;
//----------------------------------------------------------------------------------------------------------------------------
proc_acceptor::proc_acceptor ( concurrency_t concurrency ) : concurrency_... | chromatic-universe/cci-stream-mta | src/proc_ace_acceptor/proc_cci_mta_acceptor.cpp | C++ | mit | 2,580 |
require 'dimension/dimension'
require 'dimension/d2'
require 'dimension/d3' | ismailfaruqi/dimension | lib/dimension.rb | Ruby | mit | 75 |
<?php
namespace HyperionStudios\HumblePickleBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* HyperionStudios\HumblePickleBundle\Entity\Donator
*
* @ORM\Table(name="donators")
* @ORM\Entity
*/
class Donator
{
/**
* @ORM\Id
* @ORM\GeneratedValu... | Curtisdhi/HumblePickle | src/HyperionStudios/HumblePickleBundle/Entity/Donator.php | PHP | mit | 1,963 |
module.exports = (name, node) => (
name === "apply" &&
node.type === "CallExpression" &&
node.callee.type === "Identifier");
| lachrist/aran | test/dead/apply/pointcut.js | JavaScript | mit | 131 |
# 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::Network::Mgmt::V2019_07_01
module Models
#
# Inbound NAT rule of the load balancer.
#
class InboundNatRule < SubResource
... | Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2019-07-01/generated/azure_mgmt_network/models/inbound_nat_rule.rb | Ruby | mit | 6,873 |
package com.giantbomb.main;
public class ListOfGamesGenerator
{
public static void main(final String[] args)
{
}
}
| brentnash/gbecho | src/main/java/com/giantbomb/main/ListOfGamesGenerator.java | Java | mit | 137 |
namespace BatterySync
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param ... | ardaozkal/BatterySync | Client/BatterySync/Form1.Designer.cs | C# | mit | 3,643 |
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2017 The Regents of the University of California
* Author: Jim Robinson
*
* 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 res... | igvteam/igv.js | js/bam/bamReader.js | JavaScript | mit | 5,347 |
var should = require("should");
var Mat3x3 = require("./Mat3x3");
var Barycentric3 = require("./Barycentric3");
var Logger = require("./Logger");
(function(exports) {
var verboseLogger = new Logger({
logLevel: "debug"
});
////////////////// constructor
function XYZ(x, y, z, options) {
... | firepick1/firenodejs | www/js/shared/XYZ.js | JavaScript | mit | 12,537 |
<?php
/**
* Author: Wing Ming Chan
* Copyright (c) 2014 Wing Ming Chan <chanw@upstate.edu>
* MIT Licensed
* Modification history:
*/
class EmptyNameException extends Exception{}
?> | alynch-ece-its/php-cascade-ws | exception_classes/EmptyNameException.class.php | PHP | mit | 189 |
<?php
/**
* Symfony REST Edition.
*
* @link https://github.com/Ingewikkeld/symfony-rest-edition
* @copyright Copyright (c) 2013-2013 Ingewikkeld<info@ingewikkeld.net>
* @license https://github.com/Ingewikkeld/symfony-rest-edition/blob/master/LICENSE MIT License
*/
namespace Ingewikkeld\Rest\OAuthServerBun... | Ingewikkeld/oauth-server-bundle | src/Ingewikkeld/Rest/OAuthServerBundle/Form/ClientType.php | PHP | mit | 1,885 |
#-- copyright
# OpenProject is a project management system.
# Copyright (C) 2012-2013 the OpenProject Foundation (OPF)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
#
# OpenProject is a fork of ChiliProject, which is a fork of ... | mximos/openproject-heroku | db/migrate/20130409133713_migrate_planning_element_type_to_project_association.rb | Ruby | mit | 3,124 |
<?php
require __DIR__.'/../protected/vendor/autoload.php';
require __DIR__.'/../protected/start.php';
| MightyPork/wrack | public/index.php | PHP | mit | 104 |
/*
* oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
*
* Copyright (c) 2014, Gluu
*/
package org.gluu.oxauth.util;
import org.gluu.oxauth.model.common.ResponseMode;
import org.jboss.resteasy.specimpl.ResponseBuilderImpl;
import org.json.JSONException;
import... | GluuFederation/oxAuth | Server/src/main/java/org/gluu/oxauth/util/RedirectUtil.java | Java | mit | 2,806 |
<?php //-->
include __DIR__ . '/src/events.php';
| CradlePHP/sink-faucet | .cradle.php | PHP | mit | 49 |
var mongoose = require('mongoose');
var Shape = require('./Shape');
var User = require('./User');
// Create a session model, _id will be assigned by Mongoose
var CanvasSessionSchema = new mongoose.Schema(
{
_id: String,
users: [User],
dateCreated: Date,
dateUpdated: Date,
// canDraw: Boolean,
... | OpenSketch-Application/OpenSketch | server/db/models/Session.js | JavaScript | mit | 740 |
import os
import shutil
from glob import glob
print 'Content-type:text/html\r\n\r\n'
print '<html>'
found_pages = glob('archive/*.py')
if found_pages:
path = "/cgi-bin/archive/"
moveto = "/cgi-bin/pages/"
files = os.listdir(path)
files.sort()
for f in files:
src = path+f
dst = mov... | neva-nevan/ConfigPy | ConfigPy-Portable/ConfigPy/cgi-bin/restore.py | Python | mit | 516 |
import config from '../components/configLoader';
import { addToDefaultPluginDOM } from '../components/helpers';
const pluginConfig = config.plugins.find(obj => obj.name === 'age');
// DOM setup
const pluginId = 'js-plugin-age';
addToDefaultPluginDOM(pluginId);
const ageDOM = document.getElementById(pluginId);
con... | michaelx/Launchbot | src/js/plugins/age.js | JavaScript | mit | 950 |
package filediff.myers;
public class DifferentiationFailedException extends DiffException {
private static final long serialVersionUID = 1L;
public DifferentiationFailedException() {
}
public DifferentiationFailedException(String msg) {
super(msg);
}
}
| nendhruv/data-dictionary | src/java/filediff/myers/DifferentiationFailedException.java | Java | mit | 294 |
Meteor.startup(function () {
});
Deps.autorun(function(){
Meteor.subscribe('userData');
}); | nikhilpi/klick | client/startup/default.js | JavaScript | mit | 94 |
<?php
namespace Aleste\TrackerBundle\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Output\OutputInterface;
use Doctri... | mgroizard/Tracker | src/Aleste/TrackerBundle/Command/AvisosCommand.php | PHP | mit | 1,400 |
package serial
//go:generate go run v2ray.com/core/common/errors/errorgen
| v2ray/v2ray-core | infra/conf/serial/serial.go | GO | mit | 75 |
<?php
/**
* (c) 2011 - ∞ Vespolina Project http://www.vespolina-project.org
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Vespolina\Tests\Sync\Functional\Entity;
class LocalProductCategory
{
public $name;
public function get... | vespolina/syncer | tests/Vespolina/Tests/Sync/Functional/Entity/LocalProductCategory.php | PHP | mit | 369 |
require 'rubygems'
require 'test/unit'
require 'shoulda'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'ftp-ext'
class Test::Unit::TestCase
end
| zachpendleton/ftp-ext | test/helper.rb | Ruby | mit | 218 |
/*
* Copyright 2012 Google Inc.
*
* 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 to... | zasadnyy/android-hothack-13 | example/source/src/main/java/ua/org/gdg/devfest/iosched/receiver/SessionAlarmReceiver.java | Java | mit | 1,444 |
using System.Text;
public class Engine
{
private const string offset = " ";
public string model;
public int power;
public int displacement;
public string efficiency;
public Engine(string model, int power)
{
this.model = model;
this.power = power;
this.displacemen... | MrPIvanov/SoftUni | 05-Csharp OOP Basics/06-EXERCISE WORKING WITH ABSTRACTION/06-AbstractionExercises/02-CarsSalesman/Engine.cs | C# | mit | 1,294 |
from itertools import permutations
import re
def create_formula(combination,numbers):
formula = ""
index = 0
for op in combination:
formula += str(numbers[index]) + op
index += 1
formula += numbers[index]
return formula
'''
Unnecessary Funtion
'''
def evaluate(form):
result ... | F0lha/UJunior-Projects | DailyProgrammer/Challenge#318/src.py | Python | mit | 2,546 |
// will this be needed?
var getMotionEventName = function(type) {
var t;
var el = document.createElement('fakeelement');
var map = {};
if (type == 'transition') {
map = {
'transition': 'transitionend',
'OTransition': 'oTransitionEnd',
'MozTransition': 'transitionend',
... | mwyatt/dialogue | js/getMotionEventName.js | JavaScript | mit | 710 |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Environment
|--------------------------------------------------------------------------
|
| This value determines the "environment" your application is currently
| running in. This m... | milanbrckalo/cvator | config/app.php | PHP | mit | 8,504 |
package soymsg
import (
"bytes"
"regexp"
"strconv"
"strings"
"github.com/robfig/soy/ast"
)
// setPlaceholderNames generates the placeholder names for all children of the
// given message node, setting the .Name property on them.
func setPlaceholderNames(n *ast.MsgNode) {
// Step 1: Determine representative nod... | robfig/soy | soymsg/placeholder.go | GO | mit | 5,537 |
RSpec.describe "vm_types" do
let(:vm_types) { manifest_with_defaults.fetch("vm_types") }
describe "the router pool" do
let(:pool) { vm_types.find { |p| p["name"] == "router" } }
it "should use the correct elb instance" do
expect(pool["cloud_properties"]["elbs"]).to match_array([
terraform_f... | jimconner/paas-cf | manifests/cf-manifest/spec/cloud-config/vm_types_spec.rb | Ruby | mit | 376 |
// Include gulp
import gulp from 'gulp';
import fs from 'fs';
// Include Our Plugins
import eslint from 'gulp-eslint';
import mocha from 'gulp-mocha';
import browserSyncJs from 'browser-sync';
import sassJs from 'gulp-sass';
import sassCompiler from 'sass';
import rename from "gulp-rena... | fboes/blogophon | gulpfile.js | JavaScript | mit | 2,874 |
// Copyright (c) 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.
#include "main.h"
#include "bitcoinrpc.h"
using namespace json_spirit;
using namespace... | N2ODev/Nitrous | src/rpcblockchain.cpp | C++ | mit | 10,201 |
package helper
const (
// EmojiStar const for unicode code
EmojiStar = "\U00002B50"
// EmojiAlarm const for unicode code
EmojiAlarm = "\U000023F0"
// EmojiDroplet const for unicode code
EmojiDroplet = "\U0001F4A7"
// EmojiGear const for unicode code
EmojiGear = "\U00002699"
// EmojiBell const for unicode ... | vort3x/watery | helper/emoji.go | GO | mit | 747 |
//
// Jala Project [http://opensvn.csie.org/traccgi/jala]
//
// Copyright 2004 ORF Online und Teletext GmbH
//
// 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.or... | hankly/frizione | Frizione/modules/jala/code/AsyncRequest.js | JavaScript | mit | 5,028 |
/**
*
* wxform.cpp
*
* - implementation for main wx-based form
*
**/
#include "wxform.hpp"
#include <wx/aboutdlg.h>
#include "../res/apps.xpm"
#include "../res/exit.xpm"
#include "../res/quest.xpm"
#define MACRO_WXBMP(bmp) wxBitmap(bmp##_xpm)
#define MACRO_WXICO(bmp) wxIcon(bmp##_xpm)
#define MESSAGE_WELCOME "Welco... | my1matrix/my1termw | src/wxform.cpp | C++ | mit | 2,350 |
<?php
/*
* Title: XML
* Purpose:
* Collection of parameters, functions, and classes that expand
* Ditto's output capabilities to include XML
*/
if(!defined('MODX_BASE_PATH') || strpos(str_replace('\\','/',__FILE__), MODX_BASE_PATH)!==0) exit;
// set placeholders
$xml_placeholders['[+xml_copyright+]'] = isset... | win-k/CMSTV | evo/assets/snippets/ditto/formats/xml.format.inc.php | PHP | mit | 3,036 |
const OFF = 0;
const WARN = 1;
const ERROR = 2;
module.exports = {
extends: "../.eslintrc.js",
rules: {
"max-len": [ ERROR, 100 ],
},
env: {
"es6": true,
"node": true,
"mocha": true,
},
};
| deadcee/horizon | cli/.eslintrc.js | JavaScript | mit | 216 |
<?php
namespace Topxia\Service\Article;
interface CategoryService
{
public function getCategory($id);
public function getCategoryByCode($code);
public function getCategoryTree();
public function getCategoryByParentId($parentId);
public function findAllCategoriesByParentId($parentId);
publ... | smeagonline-developers/OnlineEducationPlatform---SMEAGonline | src/Topxia/Service/Article/CategoryService.php | PHP | mit | 852 |
package me.ronggenliu.dp.creation.builder;
/**
* Created by garliu on 2017/5/29.
*/
public class Product {
private String partA;
private String partB;
private String partC;
public String getPartA() {
return partA;
}
public void setPartA(String partA) {
this.partA = partA;
}
public String g... | ronggenliu/DesignPattern | src/me/ronggenliu/dp/creation/builder/Product.java | Java | mit | 544 |
const webdriver = require('selenium-webdriver');
const setupDriver = (browser) => {
const driver = new webdriver
.Builder()
.usingServer('http://localhost:9515/')
.withCapabilities({
browserName: browser,
})
.build();
return driver;
};
module.exports = { se... | TeamYAGNI/BonanzaAlgorithmsCatalogue | tests/browser/utils/setup-driver.js | JavaScript | mit | 333 |
'use strict';
module.exports = function(grunt) {
// Please see the Grunt documentation for more information regarding task
// creation: http://gruntjs.com/creating-tasks
function random(min, max) {
min = min || 0;
max = max || 1;
var result;
if(min === 0 && max === 1) {
re... | doowb/lessbuilder | tasks/random.js | JavaScript | mit | 744 |