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 |
|---|---|---|---|---|---|
<?php defined('C5_EXECUTE') or die('Access denied.');
$form = Core::make('helper/form');
$dh = Core::make('helper/date'); /* @var $dh \Concrete\Core\Localization\Service\Date */
/* @var Concrete\Core\Form\Service\Form $form */
?>
<form class="concrete-login-form" method="post" action="<?= URL::to('/login', 'authentic... | haeflimi/concrete5 | concrete/authentication/concrete/form.php | PHP | mit | 3,065 |
# -*- encoding : utf-8 -*-
module Cequel
module Record
#
# This class represents a subset of records from a particular table. Record
# sets encapsulate a CQL query, and are constructed using a chained builder
# interface.
#
# The primary mechanism for specifying which rows should be returned b... | shaqonline/cequel | lib/cequel/record/record_set.rb | Ruby | mit | 31,987 |
#include <gloperate/painter/Camera.h>
#include <cassert>
#include <gloperate/ext-includes-begin.h>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/matrix_inverse.hpp>
#include <gloperate/ext-includes-end.h>
using namespace glm;
namespace gloperate
{
Camera::Camera(const vec3 & eye, const vec3 & cente... | lanice/gloperate | source/gloperate/source/painter/Camera.cpp | C++ | mit | 4,446 |
<?php
// autoload_namespaces.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'phpDocumentor' => array($vendorDir . '/phpdocumentor/reflection-docblock/src'),
'Psy\\' => array($vendorDir . '/psy/psysh/src'),
'Psr\\Log\\' => array($vendorDir... | fypyuhu/raw | vendor/composer/autoload_namespaces.php | PHP | mit | 1,014 |
package main
import (
"fmt"
"log"
"net/http"
"net/url"
"os"
"os/signal"
"syscall"
"github.com/codegangsta/cli"
)
var wslog *log.Logger
// var (
// mirror = flag.String("mirror", "", "Mirror Web Base URL")
// logfile = flag.String("log", "-", "Set log file, default STDOUT")
// upstream = flag.String("u... | wxdublin/minicdn | main.go | GO | mit | 3,838 |
'use strict';
angular.module('copayApp.controllers').controller('preferencesBwsUrlController',
function($scope, configService, isMobile, isCordova, go, applicationService ) {
this.isSafari = isMobile.Safari();
this.isCordova = isCordova;
this.error = null;
this.success = null;
var config = conf... | xhad/burse | src/js/controllers/preferencesBwsUrl.js | JavaScript | mit | 703 |
import {Aurelia} from 'aurelia-framework';
import * as LogManager from 'aurelia-logging';
let logger = LogManager.getLogger('aurelia-kendoui-plugin');
import {KendoConfigBuilder} from './config-builder';
import 'jquery';
export function configure(aurelia: Aurelia, configCallback?: (builder: KendoConfigBuilder) => void... | smccrea/aurelia-kendoui-plugin | src/index.js | JavaScript | mit | 841 |
import forEach from '../util/forEach'
class JSONConverter {
importDocument(doc, json) {
if (!json.nodes) {
throw new Error('Invalid JSON format.')
}
var schema = doc.getSchema()
if (json.schema && schema.name !== json.schema.name) {
throw new Error('Incompatible schema.')
}
// th... | andene/substance | model/JSONConverter.js | JavaScript | mit | 1,103 |
# coding=utf-8
"""
The Lists API endpoint
Documentation: http://developer.mailchimp.com/documentation/mailchimp/reference/lists/
Schema: https://api.mailchimp.com/schema/3.0/Lists/Instance.json
"""
from __future__ import unicode_literals
from mailchimp3.baseapi import BaseApi
from mailchimp3.entities.listabusereports... | charlesthk/python-mailchimp | mailchimp3/entities/lists.py | Python | mit | 12,424 |
package main
import (
"flag"
"fmt"
"io"
"log"
"net"
"github.com/dustin/gomemcached"
"github.com/dustin/gomemcached/server"
)
var port *int = flag.Int("port", 11212, "Port on which to listen")
type chanReq struct {
req *gomemcached.MCRequest
res chan *gomemcached.MCResponse
}
type reqHandler struct {
ch c... | jj-tyro/raftmcd | vendor/github.com/dustin/gomemcached/gocache/gocache.go | GO | mit | 1,299 |
package main
import (
"fmt"
"os"
"github.com/qiniu/qshell/v2/cmd"
)
func main() {
if err := cmd.RootCmd.Execute(); err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err)
os.Exit(1)
}
}
| qiniu-lab/qshell | main.go | GO | mit | 192 |
/*
* angular-ui-bootstrap
* http://angular-ui.github.io/bootstrap/
* Version: 0.13.3 - 2015-08-09
* License: MIT
*/
angular.module("ui.bootstrap", ["ui.bootstrap.tabs","ui.bootstrap.buttons","ui.bootstrap.dropdown","ui.bootstrap.position","ui.bootstrap.modal","ui.bootstrap.tooltip","ui.bootstrap.bindHtml","ui.boo... | rawrsome/leaddyno_recurly_example | public/ui-bootstrap-custom-build/ui-bootstrap-custom-0.13.3.js | JavaScript | mit | 72,502 |
importScripts('/node_modules/chai/chai.js')
importScripts('/node_modules/mocha/mocha.js')
mocha.setup('tdd')
self.assert = chai.assert
importScripts('/node_modules/promise-polyfill/promise.js')
importScripts('/test/test.js')
importScripts('/fetch.js')
function title(test) {
return test.fullTitle().replace(/#/g, ''... | benestudio/fetch | test/worker.js | JavaScript | mit | 846 |
package tsdb
import (
"context"
"errors"
"fmt"
"io"
"os"
"regexp"
"sort"
"time"
"github.com/influxdata/influxdb/models"
"github.com/influxdata/influxdb/pkg/estimator"
"github.com/influxdata/influxdb/pkg/limiter"
"github.com/influxdata/influxdb/query"
"github.com/influxdata/influxql"
"github.com/uber-go/... | shrutir25/acs-engine | vendor/github.com/influxdata/influxdb/tsdb/engine.go | GO | mit | 5,295 |
package com.viesis.viescraft.network.server.song;
import com.viesis.viescraft.client.gui.airship.music.GuiAirshipMusicPg1;
import com.viesis.viescraft.common.entity.airshipcolors.EntityAirshipBaseVC;
import com.viesis.viescraft.network.packet.MessageBase;
import io.netty.buffer.ByteBuf;
import net.minecraft.entity.pl... | Weisses/Ebonheart-Mods | ViesCraft/1.12.2 - 2555/src/main/java/com/viesis/viescraft/network/server/song/MessageHelperGuiMusicPg1.java | Java | mit | 983 |
"""
The MIT License
Copyright (c) 2009 Vic Fryzel
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... | oauth-xx/python-oauth2 | tests/test_oauth.py | Python | mit | 28,822 |
using System;
namespace SIL.WritingSystems.Migration
{
/// <summary>
/// This class keeps track of a file's name change due to updates in the ieft language tag
/// </summary>
public class LdmlMigrationInfo
{
private readonly string _fileName;
public LdmlMigrationInfo(string fileName)
{
_fileName = fileN... | sillsdev/libpalaso | SIL.WritingSystems/Migration/LdmlMigrationInfo.cs | C# | mit | 754 |
<?php
/**
* Plugin Name: Elementor
* Description: The most advanced frontend drag & drop page builder. Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design.
* Plugin URI: https://elementor.com/
* Author: Elementor.com
* Version: 0.10.7
* Author URI: https://elementor.com/
*
... | abettermap/bike-coop-plugin | framework/vendor/elementor/elementor.php | PHP | mit | 2,059 |
<?php
namespace TYPO3\Flow\Tests\Unit\Core;
/*
* This file is part of the TYPO3.Flow package.
*
* (c) Contributors of the Neos Project - www.neos.io
*
* This package is Open Source Software. For the full copyright and license
* information, please view the LICENSE file which was distributed with this
* source c... | mkeitsch/flow-development-collection | TYPO3.Flow/Tests/Unit/Core/BootstrapTest.php | PHP | mit | 2,534 |
<?php
namespace NodeSearchBundle\Helper;
// here you can define custom actions
// all public methods declared in helper class will be available in $I
class Unit extends \Codeception\Module
{
}
| treeleaf/KunstmaanBundlesCMS | src/Kunstmaan/NodeSearchBundle/Tests/_support/Helper/Unit.php | PHP | mit | 196 |
// AssemblyInfo.cs
// (c) Copyright Cirrious Ltd. http://www.cirrious.com
// MvvmCross is licensed using Microsoft Public License (Ms-PL)
// Contributions and inspirations noted in readme.md and license.txt
//
// Project Lead - Stuart Lodge, @slodge, me@slodge.com
using System.Reflection;
using System.Runtime.Interop... | martijn00/MvvmCross-Plugins | Visibility/MvvmCross.Plugins.Visibility.WindowsStore/Properties/AssemblyInfo.cs | C# | mit | 1,321 |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.recoveryservices.backup.v2017_07_01;
import com.... | selvasingh/azure-sdk-for-java | sdk/recoveryservices.backup/mgmt-v2017_07_01/src/main/java/com/microsoft/azure/management/recoveryservices/backup/v2017_07_01/FeatureSupportRequest.java | Java | mit | 926 |
// Copyright (c) 2012 VMware, Inc.
package sigar
import (
"bytes"
"errors"
"fmt"
"os/exec"
"strconv"
"syscall"
"time"
"unsafe"
)
var (
kernel32DLL = syscall.MustLoadDLL("kernel32")
procGetDiskFreeSpace = kernel32DLL.MustFindProc("GetDiskFreeSpaceW")
procGetSystemTimes = kernel32DLL.MustFindProc... | ocdogan/fluentgo | vendor/github.com/cloudfoundry/gosigar/sigar_windows.go | GO | mit | 4,648 |
/**
* jQuery Accessible combobox v0.1.0
* https://github.com/choi4450/jquery.accessiblecombobox
*
* Copyright 2015 Gyumin Choi Foundation and other contributors
* Released under the MIT license
* https://github.com/choi4450/jquery.accessiblecombobox/blob/master/LICENSE.txt
*/
(function($) {
$.fn.accessibleCom... | choi4450/combobAx | dist/jquery.accessiblecombobox-0.1.0.js | JavaScript | mit | 8,150 |
/****************************************************************************
** Meta object code from reading C++ file 'paymentserver.h'
**
** Created: Wed Jan 15 20:36:01 2014
** by: The Qt Meta Object Compiler version 63 (Qt 4.8.3)
**
** WARNING! All changes made in this file will be lost!
*********************... | BenFromLA/HFRcoin | build/moc_paymentserver.cpp | C++ | mit | 3,334 |
export { default } from 'ember-paper/components/paper-autocomplete/eps-trigger/component';
| bjornharrtell/ember-paper | app/components/paper-autocomplete/eps-trigger.js | JavaScript | mit | 91 |
Blumine::Application.routes.draw do
get 'register' => 'users#new'
get '/search/:keyword' => 'issues#search'
get 'rebuild_index' => 'issues#rebuild_index'
get '/stats' => "pages#stats"
post '/user_sessions' => "user_sessions#create"
get 'logout' => "user_sessions#destroy"
post '/assigned_issues/sort' => ... | forging2012/blumine | config/routes.rb | Ruby | mit | 3,009 |
from hamper.interfaces import ChatCommandPlugin, Command
try:
# Python 2
import HTMLParser
html = HTMLParser.HTMLParser()
except ImportError:
# Python 3
import html.parser
html = html.parser.HTMLParser()
import re
import requests
import json
class Lookup(ChatCommandPlugin):
name = 'looku... | iankronquist/hamper | hamper/plugins/dictionary.py | Python | mit | 3,376 |
class AddLogoToInstitutions < ActiveRecord::Migration
def change
add_column :institutions, :logo, :string
end
end
| CDLUC3/dash-ingest | db/migrate/20140811213557_add_logo_to_institutions.rb | Ruby | mit | 122 |
/*
* The MIT License
*
* Copyright (c) 2004-2010, Sun Microsystems, Inc.
*
* 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
... | sincere520/testGitRepo | hudson-core/src/main/java/hudson/cli/BuildCommand.java | Java | mit | 5,030 |
/**
* ReturnTrue
*/
var returnTrue = function() {
return true;
}; | apiaryio/Amanda | src/utils/returnTrue.js | JavaScript | mit | 69 |
#include <iostream>
auto main() -> int {
std::cout << "abc";
std::cout.flush();
std::cout << "def";
std::cout << std::endl;
return 0;
}
| ordinary-developer/book_professional_c_plus_plus_3_ed_m_gregoire | my_code/chapter_12/04_flush/main.cpp | C++ | mit | 159 |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.autobahn = f()... | Dynalon/autobahn-js | test/detectenvironment/autobahn.js | JavaScript | mit | 441,739 |
#include <cstdio>
#include <string>
#include <cstdlib>
#include <iostream>
#include <sstream>
using namespace std;
int main(int argc, char **argv)
{
/* Method 1 使用sprintf */
char buf[20];
sprintf(buf, "%d", 123);
string s1(buf);
cout << "s1 = " << s1 << endl;
/* Method 2 使用stringstream */
stringstream ss;
ss <... | krystism/leetcode | algorithms/CountandSay/itos.cpp | C++ | mit | 423 |
package com.example.android.gesturesdemo;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
... | TelerikAcademy/Mobile-Applications-for-Android | Topics/resources/14. Gestures/demos/GesturesDemo/app/src/androidTest/java/com/example/android/gesturesdemo/ApplicationTest.java | Java | mit | 355 |
require File.dirname(__FILE__) + '/../spec_helper'
require File.dirname(__FILE__) + '/../fixtures/class'
describe "self in a metaclass body (class << obj)" do
it "is TrueClass for true" do
class << true; self; end.should == TrueClass
end
it "is FalseClass for false" do
class << false; self; end.should =... | ujihisa/rubyspec | language/metaclass_spec.rb | Ruby | mit | 2,812 |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Light3D.cs" company="Helix Toolkit">
// Copyright (c) 2014 Helix Toolkit contributors
// </copyright>
// <summary>
// Direction of the light.
// It applies to Directio... | lcouz/helix-toolkit | Source/HelixToolkit.Wpf.SharpDX/Model/Lights3D/Light3D.cs | C# | mit | 10,093 |
import React from 'react';
import { dummyDate } from '../../../.storybook/helpers';
import { BuildEnvironmentSection } from './BuildEnvironmentSection';
export default {
title: 'admin/info/BuildEnvironmentSection',
component: BuildEnvironmentSection,
decorators: [
(fn) => <div className='rc-old'>{fn()}</div>,
]... | Sing-Li/Rocket.Chat | client/admin/info/BuildEnvironmentSection.stories.js | JavaScript | mit | 599 |
<?php
class wfWAF {
const AUTH_COOKIE = 'wfwaf-authcookie';
/**
* @var wfWAF
*/
private static $instance;
private $blacklistedParams;
private $whitelistedParams;
private $variables = array();
/**
* @return wfWAF
*/
public static function getInstance() {
return self::$instance;
}
/**
* @param ... | creolab/creolab.hr | public/app/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php | PHP | mit | 56,460 |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "ноль", ONE: "один", TWO: "два", FEW: "несколько", MANY: "много", OTHER: "другие"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n... | dwalin93/OSeM-Projekt | dist/translations/angular/angular-locale_ru.js | JavaScript | mit | 3,049 |
# Write your code below!
my_first_symbol = :anyvalidsymbol
| ummahusla/codecademy-exercise-answers | Language Skills/Ruby/Unit 06 Hashes and Symbols/01 Hashes and Symbols/02 The Many Faces of Symbols/07 Symbol Syntax.rb | Ruby | mit | 59 |
namespace MvcLocalization.WebApp.Infrastructure
{
/// <summary>
/// Enumeration for all cookie keys
/// </summary>
public enum CookieKey
{
/// <summary>
/// CookieKey to access the prefered language
/// </summary>
UserLanguage
}
} | Code-Inside/Samples | 2011/mvclocalization/MvcLocalization.WebApp/Infrastructure/CookieKey.cs | C# | mit | 286 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Collections.Generic;
using Microsoft.Common.Core.Imaging;
using Microsoft.Languages.Editor.Completions;
using Microsoft.R.Core.AST;
using Microsoft.R.Co... | AlexanderSher/RTVS | src/R/Editor/Impl/Completions/Providers/UserVariablesCompletionProvider.cs | C# | mit | 2,218 |
# coding: utf-8
require 'date'
require File.expand_path('../../spec_helper', __FILE__)
describe "ListItemDigestor" do
before do
@list_item_digestor = Sevendigital::ListItemDigestor.new(Sevendigital::Client.new(nil))
end
it "should not digest from invalid xml but throw up (exception)" do
xml_response =... | filip7d/7digital | spec/digestion_tract/list_item_digestor_spec.rb | Ruby | mit | 2,414 |
namespace Serenity {
/**
* A mixin that can be applied to a DataGrid for tree functionality
*/
export class TreeGridMixin<TItem> {
private dataGrid: DataGrid<TItem, any>;
private getId: (item: TItem) => any;
constructor(private options: TreeGridMixinOptions<TItem>... | rolembergfilho/Serenity | Serenity.Scripts/CoreLib/UI/DataGrid/TreeGridMixin.ts | TypeScript | mit | 5,052 |
var _ = require('../util.js');
function simpleDiff(now, old){
var nlen = now.length;
var olen = old.length;
if(nlen !== olen){
return true;
}
for(var i = 0; i < nlen ; i++){
if(now[i] !== old[i]) return true;
}
return false
}
function equals(a,b){
return a === b;
}
// array1 - old array
// ... | zyy7259/regular-strap | third/regular/src/helper/diff.js | JavaScript | mit | 3,523 |
import os from 'os';
import debug from 'debug';
import baseGetOptions from './base';
import { GeneralError } from '../../errors/runtime';
import { stat, readFile } from '../promisified-functions';
import renderTemplate from '../../utils/render-template';
import { RUNTIME_ERRORS } from '../../errors/types';
import WARNI... | VasilyStrelyaev/testcafe | src/utils/get-options/ssl.ts | TypeScript | mit | 1,626 |
!((document, $) => {
'use strict';
var keys = {
ARROWS: [37, 38, 39, 40],
ARROW_LEFT: 37,
ARROW_UP: 38,
ARROW_RIGHT: 39,
ARROW_DOWN: 40,
ENTER: 13,
SPACE: 32,
PAGE_UP: 33,
PAGE_DOWN: 34
};
/**
@param {Object} startTab - The tab to start searching from.
@param {Objec... | cehfisher/a11y-style-guide | src/global/js/tabs.js | JavaScript | mit | 4,138 |
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main()
#include "catch.hpp"
#include <memory>
#include <vector>
#include "tclap/ValueArg.h"
#include "Simulation.hpp"
TEST_CASE("The Simulation can be constructed without command line parsing", "[Simulation]") {
std::unique_ptr<warped::Simulation> s;
... | wilseypa/warped2 | test/test_Simulation.cpp | C++ | mit | 397 |
package net.coding.program.common.enter;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.support.v4.view.ViewPager;
import android.view.View;
import android.vie... | CodeHunter2006/Coding-Android | app/src/main/java/net/coding/program/common/enter/EnterEmojiLayout.java | Java | mit | 13,033 |
@extends('layouts._two_columns_left_sidebar')
@section('sidebar')
@include('forum._sidebar')
@stop
@section('content')
<section class="forum">
<h1>Forum</h1>
@if(Input::has('tags'))
<div class="tags">Threads tagged with {{ Input::get('tags') }}.</div>
@else
<di... | svenhaveman/laravelio | app/views/forum/_index.blade.php | PHP | mit | 681 |
using Machine.Specifications;
using ShopifySharp.Tests.Test_Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShopifySharp.Tests
{
[Subject(typeof(ShopifyCustomerService))]
public class When_updating_a_customer
{
Est... | Yitzchok/ShopifySharp | ShopifySharp.Tests/ShopifyCustomerService Tests/When_updating_a_customer.cs | C# | mit | 1,202 |
<div><?=$dontexist?></div>
| lucidphp/template | tests/Fixures/view/error.php | PHP | mit | 27 |
<?php
return [
'loggingin' => 'Aan het inloggen',
'signin_below' => 'Log hier onder in:',
'welcome' => 'Welkom bij Voyager. De missende admin voor Laravel',
];
| handiwijoyo/voyager | publishable/lang/nl/login.php | PHP | mit | 181 |
import pytest
from collections import namedtuple
import jenkinsapi
from jenkinsapi.plugins import Plugins
from jenkinsapi.utils.requester import Requester
from jenkinsapi.jenkins import Jenkins
from jenkinsapi.jenkinsbase import JenkinsBase
from jenkinsapi.job import Job
from jenkinsapi.custom_exceptions import Jenkin... | salimfadhley/jenkinsapi | jenkinsapi_tests/unittests/test_jenkins.py | Python | mit | 12,493 |
# -*- coding: utf-8 -*-
""" S3 Logging Facility
@copyright: (c) 2014 Sahana Software Foundation
@license: MIT
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
rest... | devinbalkind/eden | modules/s3log.py | Python | mit | 11,312 |
#region Copyright
//
// DotNetNuke® - http://www.dotnetnuke.com
// Copyright (c) 2002-2017
// by DotNetNuke Corporation
//
// 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 restrict... | SCullman/Dnn.Platform | DNN Platform/Modules/Groups/GroupsSettingsBase.cs | C# | mit | 1,381 |
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace AnalyseForTime
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
App... | luosz/ai-algorithmplatform | AIAlgorithmPlatform/2007/algorithm/nearestNeighbor/AnalyseForTime/Program.cs | C# | mit | 489 |
/*
* ExpandedResWindow.java Jul 14, 2004
*
* Copyright (c) 2004 Stan Salvador
* stansalvador@hotmail.com
*/
package com.fastdtw.dtw.window;
import com.fastdtw.dtw.WarpPath;
import com.fastdtw.matrix.ColMajorCell;
import com.fastdtw.timeseries.PAA;
import com.fastdtw.timeseries.TimeSeries;
publ... | davidmoten/fastdtw | src/main/java/com/fastdtw/dtw/window/ExpandedResWindow.java | Java | mit | 3,499 |
/**
*
*/
package jkit.io.csv;
/**
* The context of an csv event.
*
* @author Joschi <josua.krause@googlemail.com>
*/
public interface CSVContext {
/**
* Getter.
*
* @return The csv reader.
*/
CSVReader reader();
/**
* Getter.
*
* @return The name of the current column.
*/
St... | JosuaKrause/BusVis | src/main/java/jkit/io/csv/CSVContext.java | Java | mit | 586 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Net.CommandLine;
namespace EasyNetQ.Tests.Tasks.Tasks
{
public class TestSimpleService : ICommandLineTask, IDisposable
{
... | Ascendon/EasyNetQ | Source/EasyNetQ.Tests.Tasks/Tasks/TestSimpleService.cs | C# | mit | 4,089 |
using System;
using System.Diagnostics;
using System.Globalization;
using System.Runtime.InteropServices;
using System.ComponentModel.Design;
using System.ComponentModel.Composition;
using Microsoft.MIDebugEngine;
using Microsoft.Win32;
using Microsoft.VisualStudio;
using Microsoft.VisualStudio.Shell.Interop;
using Mi... | PistonDevelopers/VisualRust | src/VisualRust/VisualRustPackage.cs | C# | mit | 12,355 |
# frozen_string_literal: true
require 'test_helper'
class SearchControllerTest < ActionController::TestCase
test 'should get index' do
get :index
assert_response :success
assert_not_nil assigns(:results)
end
test 'should search by site' do
site = Post.last.site
get :index, params: { site: ... | Charcoal-SE/metasmoke | test/controllers/search_controller_test.rb | Ruby | cc0-1.0 | 1,744 |
<?php
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
*... | qurantools/kurancalis-mobile | ionic/qurantools/www/assets/libs/file-manager/Image_lib.php | PHP | cc0-1.0 | 37,779 |
package p;
public class A {
Object o= new SomeClass().a;
}
| maxeler/eclipse | eclipse.jdt.ui/org.eclipse.jdt.ui.tests.refactoring/resources/MoveInnerToTopLevel/test34/out/A.java | Java | epl-1.0 | 62 |
/*******************************************************************************
* Copyright (c) 2004 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availabl... | sguan-actuate/birt | engine/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/layout/pdf/PDFTableGroupLMTest.java | Java | epl-1.0 | 2,291 |
package org.eclipse.incquery.examples.cps.m2t.proto.distributed.generated.hosts;
import org.eclipse.incquery.examples.cps.m2t.proto.distributed.general.applications.Application;
import org.eclipse.incquery.examples.cps.m2t.proto.distributed.general.communicationlayer.CommunicationNetwork;
import org.eclipse.incquery.e... | lunkpeter/incquery-examples-cps | prototypes/org.eclipse.incquery.examples.cps.m2t.proto.distributed/src/org/eclipse/incquery/examples/cps/m2t/proto/distributed/generated/hosts/Host152661025.java | Java | epl-1.0 | 822 |
/*******************************************************************************
* Copyright (c) 2010 Oak Ridge National Laboratory.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and i... | css-iter/cs-studio | applications/archive/archive-plugins/org.csstudio.archive.engine/src/org/csstudio/archive/engine/server/html/HTMLWriter.java | Java | epl-1.0 | 5,450 |
/*
* Copyright (c) 2012-2018 Red Hat, Inc.
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Red Hat, Inc. - initial API a... | akervern/che | wsmaster/che-core-api-installer/src/main/java/org/eclipse/che/api/installer/server/impl/RemoteInstallerRegistry.java | Java | epl-1.0 | 8,795 |
/*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | boniatillo-com/PhaserEditor | source/thirdparty/jsdt/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/search/JavaSearchScopeFactory.java | Java | epl-1.0 | 18,056 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Mark-Booth/daq-eclipse | uk.ac.diamond.org.apache.activemq/org/apache/activemq/protobuf/MessageBuffer.java | Java | epl-1.0 | 1,583 |
/***********************************************************************
* Copyright (c) 2004 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* ... | sguan-actuate/birt | chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/event/ImageRenderEvent.java | Java | epl-1.0 | 3,737 |
//selection: 6, 29, 6, 36
package invalid;
class PartString {
void bar() {
System.out.println("Charlie Chaplin");
}
void use() {
bar();
}
}
| maxeler/eclipse | eclipse.jdt.ui/org.eclipse.jdt.ui.tests.refactoring/resources/IntroduceParameter/invalid/PartString.java | Java | epl-1.0 | 149 |
/**
* Copyright (c) 2010-2020 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.... | openhab/openhab2 | bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/fields/UInt64Field.java | Java | epl-1.0 | 1,139 |
package com.oa.service.impl;
import com.oa.common.BaseServiceImpl;
import com.oa.service.IToolsTableService;
/**
* ¹¤¾ß±íservice
* @author Administrator
*
*/
public class ToolsTableServiceImpl extends BaseServiceImpl implements
IToolsTableService {
}
| Adlinde/MyAndroidDemo | EasyOA/src/com/oa/service/impl/ToolsTableServiceImpl.java | Java | epl-1.0 | 259 |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright held by original author
\\/ M anipulation |
------------------... | CFDEMproject/OpenFOAM-1.6-ext | src/finiteVolume/fvMesh/fvPatches/constraint/regionCouple/regionCoupleFvPatch.H | C++ | gpl-2.0 | 5,542 |
// Copyright 2016 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "VideoBackends/Vulkan/ShaderCompiler.h"
#include "VideoBackends/Vulkan/VulkanContext.h"
#include <cstddef>
#include <cstdlib>
#include <fstream>
#include <memory>
#include <string>
// glslang inclu... | linkmauve/dolphin | Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp | C++ | gpl-2.0 | 19,541 |
#include "disk.h"
#include <sstream>
#include <string>
#include "log.h"
std::string chrn_to_string(unsigned char* chrn) {
std::ostringstream oss;
oss << static_cast<int>(chrn[0]) << "-"
<< static_cast<int>(chrn[1]) << "-"
<< static_cast<int>(chrn[2]) << "-"
<< static_cast<int>(chrn[3]);
return oss.... | ColinPitrat/caprice32 | src/disk.cpp | C++ | gpl-2.0 | 661 |
using System;
using System.Collections.Generic;
using System.Text;
using datatool;
using System.Drawing;
namespace Maptool
{
public class Map
{
private List<Entity> entities;
public Bitmap Terrain;
public Bitmap Heightmap;
public int Width;
public int Heig... | enjgine/chaotic-rage | maptool/Map.cs | C# | gpl-2.0 | 3,356 |
// 2003-05-01 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// F... | unofficial-opensource-apple/gcc_40 | libstdc++-v3/testsuite/27_io/objects/wchar_t/5268.cc | C++ | gpl-2.0 | 1,659 |
export function isOffline( state ) {
return ( state.application.connectionState === 'OFFLINE' )
}
export function isOnline( state ) {
return ( state.application.connectionState === 'ONLINE' )
}
| Kimsangcheon/wp-calypso | client/state/application/selectors.js | JavaScript | gpl-2.0 | 199 |
<?php
/**
* Braintree Class Instance template
*
* @package Braintree
* @subpackage Utility
* @copyright 2014 Braintree, a division of PayPal, Inc.
*/
/**
* abstract instance template for various objects
*
* @package Braintree
* @subpackage Utility
* @copyright 2014 Braintree, a division of PayPal, I... | fitmoo/drupal_store_ftm | sites/all/modules/custom/commerce_braintree/braintree_php/lib/Braintree/Instance.php | PHP | gpl-2.0 | 1,980 |
/** @file
* Shared Folders: Host service entry points.
*/
/*
* Copyright (C) 2006-2010 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of the GN... | pombredanne/VirtualBox-OSE | src/VBox/HostServices/SharedFolders/service.cpp | C++ | gpl-2.0 | 53,249 |
/*
* Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | arodchen/MaxSim | graal/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/bytecode/BC_newarray.java | Java | gpl-2.0 | 2,018 |
<?php
/**
* The template used for displaying page content in page.php
*
* @package Suits
* @since Suits 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
<div class="entry-thumbnail">
<... | KylePreston/Soft-Hills-Website | wp-content/themes/suits/content-page.php | PHP | gpl-2.0 | 1,031 |
<?php /**
* @file
* Contains \Drupal\view_mode_selector\Plugin\Field\FieldWidget\ViewModeSelectorIcons.
*/
namespace Drupal\view_mode_selector\Plugin\Field\FieldWidget;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Renderer;
/**
* @FieldWidget(
* ... | sanjuacom/sanjua | modules/view_mode_selector/src/Plugin/Field/FieldWidget/ViewModeSelectorIcons.php | PHP | gpl-2.0 | 3,447 |
<?php
/**
* Handles the IPv4/IPv6 to long transformation for text plain
*/
declare(strict_types=1);
namespace PhpMyAdmin\Plugins\Transformations\Input;
use PhpMyAdmin\FieldMetadata;
use PhpMyAdmin\Plugins\IOTransformationsPlugin;
use PhpMyAdmin\Utils\FormatConverter;
use function __;
use function htmlspecialchars... | phpmyadmin/composer | libraries/classes/Plugins/Transformations/Input/Text_Plain_Iptolong.php | PHP | gpl-2.0 | 3,556 |
<?php
/**
* Part of joomla330 project.
*
* @copyright Copyright (C) 2016 LYRASOFT. All rights reserved.
* @license GNU General Public License version 2 or later.
*/
namespace Windwalker\System\Installer;
/**
* Class WindwalkerInstaller
*
* @since 1.0
*/
class WindwalkerInstaller
{
/**
* The bin file ... | FaySie/005_design_joomla | libraries/windwalker/src/System/Installer/WindwalkerInstaller.php | PHP | gpl-2.0 | 1,593 |
<?php
include_once('../../config/symbini.php');
include_once($serverRoot.'/config/dbconnection.php');
header("Content-Type: text/html; charset=".$charset);
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
$con = MySQLiConnectionFactory::getCon('readonly');
/... | seltmann/Symbiota | checklists/rpc/testsql.php | PHP | gpl-2.0 | 869 |
<?php
/**
* Welcome Screen Class
* Sets up the welcome screen page, hides the menu item
* and contains the screen content.
*/
class Storefront_Welcome {
/**
* Constructor
* Sets up the welcome screen
*/
public function __construct() {
add_action( 'admin_menu', array( $this, 'storefront_welcome_register_... | toyo213/linehair | wp-content/themes/storefront/inc/admin/welcome-screen.php | PHP | gpl-2.0 | 16,495 |
<?php
/* Copyright 2005 Flávio Ribeiro
This file is part of OCOMON.
OCOMON is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the Lic... | luizvarela/ocomon-beta | ocomon/geral/encerramentoOld.php | PHP | gpl-2.0 | 37,856 |
/* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2007, by Object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jfreechart/in... | nologic/nabs | client/trunk/shared/libraries/jfreechart-1.0.5/tests/org/jfree/chart/renderer/xy/junit/StandardXYItemRendererTests.java | Java | gpl-2.0 | 7,043 |
<?php
use dokuwiki\Utf8\Sort;
/**
* Plaintext authentication backend
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Andreas Gohr <andi@splitbrain.org>
* @author Chris Smith <chris@jalakai.co.uk>
* @author Jan Schumann <js@schumann-it.com>
*/
class auth_plugin_authplain extend... | mprins/dokuwiki | lib/plugins/authplain/auth.php | PHP | gpl-2.0 | 14,957 |
/*
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | md-5/jdk10 | src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/spi/NodeWithState.java | Java | gpl-2.0 | 1,512 |
<?php
// $Id: box.tpl.php,v 1.3 2007/12/16 21:01:45 goba Exp $
/**
* @file box.tpl.php
*
* Theme implementation to display a box.
*
* Available variables:
* - $title: Box title.
* - $content: Box content.
*
* @see template_preprocess()
*/
?>
<div id="comment-form-wrapper">
<h3 id="comment-form-title"><?php... | fourkitchens/2009.drupalcampaustin.com | sites/all/themes/drupalcampaustin/templates/box-comment_form.tpl.php | PHP | gpl-2.0 | 402 |
/* ----------------------------------------------------------------------
This is the
██╗ ██╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗████████╗███████╗
██║ ██║██╔════╝ ██╔════╝ ██╔════╝ ██║ ██║╚══██╔══╝██╔════╝
██║ ██║██║ ███╗██║ ███╗██║ ███╗███████║ ██║ ███████╗
██║ ██║██║ ██║█... | dineshram2010/Enhanced-Heat-Exchanger-Design-using-Constructal-Networks | src/random_park.cpp | C++ | gpl-2.0 | 5,560 |
# -*- coding: utf-8 -*-
"""
***************************************************************************
ProcessingResults.py
---------------------
Date : August 2012
Copyright : (C) 2012 by Victor Olaya
Email : volayaf at gmail dot com
*********************... | medspx/QGIS | python/plugins/processing/core/ProcessingResults.py | Python | gpl-2.0 | 1,611 |
/* -*- mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: t -*- */
/* AbiSource
*
* Copyright (C) 2007 Philippe Milot <PhilMilot@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Soft... | Distrotech/abiword | plugins/openxml/imp/xp/OXMLi_StreamListener.cpp | C++ | gpl-2.0 | 6,589 |
<?php
/**
* The Template for displaying all single posts.
*
* @package WordPress
* @subpackage Corporate WPExplorer Theme
* @since Corporate 1.0
*/
get_header(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="primary" class="content-area clr">
<div id="content" class="site-content left-content clr... | wuxuejian/xzluomen | wp-content/themes/wpex-corporate/single-staff.php | PHP | gpl-2.0 | 1,133 |
<?php
/*
* @version $Id: networkportinjection.class.php 777 2013-07-17 07:53:45Z yllen $
LICENSE
This file is part of the datainjection plugin.
Datainjection plugin is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foun... | euqip/glpi-smartcities | plugins/datainjection/inc/networkportinjection.class.php | PHP | gpl-2.0 | 13,483 |