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('BASEPATH') OR exit('No direct script access allowed');
class Views extends Application
{
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/
* - or -
* http://example.com/welcome/index
*
* So any other public methods not prefixed with an unders... | MVC-todo-list/starter-todo4 | application/controllers/Views.php | PHP | mit | 2,696 |
import Ember from 'ember';
export default Ember.Route.extend({
setupController: function(controller) {
controller.set('setupRoutes', [
{
label: false,
links: [
{
href: 'heatmap.index',
text: 'Setup'
},
{
href: 'heatmap.proper... | Matt-Jensen/ember-cli-g-maps | tests/dummy/app/pods/heatmap/route.js | JavaScript | mit | 499 |
// Copyright (c) 2010-2013 SharpDX - Alexandre Mutel
//
// 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, modi... | wyrover/SharpDX | Source/SharpDX.Direct2D1/WIC/ImageEncoder.cs | C# | mit | 1,969 |
#include "StdAfx.h"
#include "ComponentsList.h"
#include "dotNetInstallerDlg.h"
CComponentsList::CComponentsList()
: m_pConfiguration(NULL)
, m_pExecuteCallback(NULL)
{
}
IMPLEMENT_DYNAMIC(CComponentsList, CCheckListBox)
BEGIN_MESSAGE_MAP(CComponentsList, CCheckListBox)
ON_CONTROL_REFLECT(CLBN_CH... | dblock/dotnetinstaller | dotNetInstaller/ComponentsList.cpp | C++ | mit | 5,456 |
/*
* Copyright (c) 2012 Maciej Walkowiak
*
* 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, pu... | bugix/java-plist-serializer | src/main/java/pl/maciejwalkowiak/plist/handler/MapHandler.java | Java | mit | 1,980 |
package org.deviceconnect.android.libmedia.streaming.mpeg2ts;
/**
* フレームのタイプを定義します.
*/
enum FrameType {
/**
* 音声のフレームタイプを定義.
*/
AUDIO,
/**
* 映像のフレームタイプを定義.
*/
VIDEO,
/**
* 音声と映像の混合のフレームタイプを定義.
*/
MIXED
} | DeviceConnect/DeviceConnect-Android | dConnectSDK/dConnectLibStreaming/libmedia/src/main/java/org/deviceconnect/android/libmedia/streaming/mpeg2ts/FrameType.java | Java | mit | 380 |
package mariculture.core.helpers;
import java.util.Random;
import mariculture.core.tile.base.TileMultiBlock;
import mariculture.core.util.Fluids;
import mariculture.core.util.IItemDropBlacklist;
import net.minecraft.block.Block;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPla... | svgorbunov/Mariculture | src/main/java/mariculture/core/helpers/BlockHelper.java | Java | mit | 7,041 |
(function(){
"use strict";
KC3StrategyTabs.aircraft = new KC3StrategyTab("aircraft");
KC3StrategyTabs.aircraft.definition = {
tabSelf: KC3StrategyTabs.aircraft,
squadNames: {},
_items: {},
_holders: {},
_slotNums: {},
/* INIT
Prepares static data needed
---------------------------------*/
... | c933103/KC3Kai | src/pages/strategy/tabs/aircraft/aircraft.js | JavaScript | mit | 10,605 |
'use strict';
/* This is the primary module of the Ava bot, if you are not using docker to run the bot you can
use another method to run this file as long as you make sure you have the correct dependencies */
const bot = require('./bot.js');
const log = require('./logger.js')(module);
log.info('======== ava.js runni... | JamesLongman/ava-bot | lib/ava.js | JavaScript | mit | 455 |
/**
* @class Jaml
* @author Ed Spencer (http://edspencer.net)
* Jaml is a simple JavaScript library which makes HTML generation easy and pleasurable.
* Examples: http://edspencer.github.com/jaml
* Introduction: http://edspencer.net/2009/11/jaml-beautiful-html-generation-for-javascript.html
*/
Jaml = function() {
... | edspencer/jaml | src/Jaml.js | JavaScript | mit | 1,100 |
require_relative "http_client"
require_relative 'artist'
require_relative 'album'
module Xiami
class Song
include Virtus.model(finalize: false)
attribute :id, Integer
attribute :name, String
attribute :temporary_url, String
attribute :artist, Artist
attribute :albu... | forresty/xiami | lib/xiami/song.rb | Ruby | mit | 1,928 |
module.exports = {
vert: [
'uniform mat4 u_view_matrix;',
'attribute vec2 a_position;',
'attribute vec4 a_color;',
'varying vec4 v_color;',
'void main () {',
' gl_Position = u_view_matrix * vec4(a_position, 1.0, 1.0);',
' v_color = a_color;',
'}'
... | clark-stevenson/phaser | v3/src/renderer/webgl/shaders/UntexturedAndTintedShader.js | JavaScript | mit | 509 |
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("02... | tddold/Telerik-Academy-2 | Csharp-Part2/08.TextFiles/02.ConcatenateTextFiles/Properties/AssemblyInfo.cs | C# | mit | 1,422 |
require "spec_helper"
describe ChefSpec::Matchers::StateAttrsMatcher do
subject { described_class.new(%i{a b}) }
context "when the resource does not exist" do
let(:resource) { nil }
before { subject.matches?(resource) }
it "does not match" do
expect(subject).to_not be_matches(resource)
end
... | chefspec/chefspec | spec/unit/matchers/state_attrs_matcher_spec.rb | Ruby | mit | 2,289 |
<?php
/*
* This file is part of the PagerBundle package.
*
* (c) Marcin Butlak <contact@maker-labs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace MakerLabs\PagerBundle;
use MakerLabs\PagerBundle\Adapter\PagerAdap... | soniar4i/Alood | src/MakerLabs/PagerBundle/Pager.php | PHP | mit | 4,498 |
/*
* Copyright 2002-2016 the original author or 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 ap... | boggad/jdk9-sample | sample-catalog/spring-jdk9/src/spring.aop/org/springframework/aop/config/AbstractInterceptorDrivenBeanDefinitionDecorator.java | Java | mit | 5,744 |
<?php
/*
* This file is part of the PHPExifTool package.
*
* (c) Alchemy <support@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\DICOM;
use JMS\Serializer\Annotation\ExclusionPolicy;... | bburnichon/PHPExiftool | lib/PHPExiftool/Driver/Tag/DICOM/UPSProgressInformationSequence.php | PHP | mit | 844 |
package luhn
import "strings"
func Valid(id string) bool {
if len(strings.TrimSpace(id)) == 1 {
return false
}
d := make([]int, 0, len(id))
for _, r := range id {
if r == ' ' {
continue
}
if r < '0' || r > '9' {
return false
}
d = append(d, int(r-'0'))
}
return sum(d)%10 == 0
}
func sum(d... | exercism/xgo | exercises/luhn/example.go | GO | mit | 461 |
/*
YUI 3.7.2 (build 5639)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('node-base', function (Y, NAME) {
/**
* @module node
* @submodule node-base
*/
var methods = [
/**
* Determines whether each node has the given className.
* @method ... | spadin/coverphoto | node_modules/grunt-contrib/node_modules/grunt-contrib-yuidoc/node_modules/yuidocjs/node_modules/yui/node-base/node-base-debug.js | JavaScript | mit | 33,629 |
## Copyright (c) 2001-2010, Scott D. Peckham
## January 2009 (converted from IDL)
## November 2009 (collected into cfg_files.py
## May 2010 (added read_key_value_pair())
## July 2010 (added read_list()
import numpy
#---------------------------------------------------------------------
#
# unit_test()
#
# skip_h... | mdpiper/topoflow | topoflow/utils/cfg_files.py | Python | mit | 12,732 |
// Copyright (c) 2003 Compaq Corporation. All rights reserved.
// Portions Copyright (c) 2003 Microsoft Corporation. All rights reserved.
// Last modified on Mon 30 Apr 2007 at 13:33:37 PST by lamport
// modified on Fri Sep 22 13:54:35 PDT 2000 by yuanyu
package tlc2.tool.liveness;
import tla2sany.semantic.Lev... | lemmy/tlaplus | tlatools/org.lamport.tlatools/src/tlc2/tool/liveness/LNAll.java | Java | mit | 2,829 |
import os
import shutil
import subprocess
def which(program):
def is_exe(fpath):
return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
fpath, fname = os.path.split(program)
if fpath:
if is_exe(program):
return program
else:
for path in os.environ["PATH"].split(... | liangjg/openmc | tools/ci/travis-install.py | Python | mit | 2,019 |
<?php
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '[2-9]\\d{6}',
'PossibleNumberPattern' => '\\d{7}',
'ExampleNumber' => '',
),
'fixedLine' =>
array (
'NationalNumberPattern' => '
(?:
2(?:
[034789]\\d|
1[0-7]
... | kokone/wp-phone-number | libphonenumber/data/PhoneNumberMetadata_MU.php | PHP | mit | 2,103 |
package org.cdlib.xtf.textIndexer;
/**
* Copyright (c) 2006, Regents of the University of California
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code m... | CDLUC3/dash-xtf | xtf/WEB-INF/src/org/cdlib/xtf/textIndexer/IdxTreeDictMaker.java | Java | mit | 6,314 |
<?php
require_once(lib_path.'PHPMailer_5.2.1/class.phpmailer.php');
class Email{
/**
* sendMsg
*
* Envia um e-mail utilizando a bibliteca PHPMailer.
*
* @version 1.0
* @param string $to E-mail do destinatário.
* @param string $subject Assunto do e-mail.
* @param string $msg Mensa... | AndrePessoa/Topo | topo/app/core/email.class.php | PHP | mit | 3,191 |
'use strict';
var assert = require('assert')
var Promise = require('promise')
var connect = require('../')
var client = connect({
version: 3,
cache: 'file',
auth: '90993e4e47b0fdd1f51f4c67b17368c62a3d6097' // github-basic-js-test
});
describe('async', function () {
it('can make simple api requests', function... | scriptit/github-basic | test/async.js | JavaScript | mit | 5,038 |
class PeopleController < HasAccountsController
def index
set_collection_ivar resource_class.search(
params[:by_text],
:star => true,
:page => params[:page]
)
end
def show
# Invoice scoping by state
@invoices = resource.invoices.where("type != 'Salary'").invoice_state(params[:inv... | hauledev/has_account_engine | spec/dummy/app/controllers/people_controller.rb | Ruby | mit | 624 |
// moment.js locale configuration
// locale : Russian [ru]
// author : Viktorminator : https://github.com/Viktorminator
// Author : Menelion Elensúle : https://github.com/Oire
// author : Коренберг Марк : https://github.com/socketpair
function plural(word, num) {
var forms = word.split('_');
return num % 10 ===... | CatsPoo/ShiftOnline | angular.src/node_modules/ngx-bootstrap/bs-moment/i18n/ru.js | JavaScript | mit | 6,071 |
var express = require('express');
var router = express.Router();
var request = require('request');
// Setup Redis Client
var redis = require("redis");
var client = redis.createClient(process.env.REDISCACHE_SSLPORT, process.env.REDISCACHE_HOSTNAME, { auth_pass: process.env.REDISCACHE_PRIMARY_KEY, tls: { servername: pro... | AzureCAT-GSI/DevCamp | HOL/node/03-azuread-office365/start/routes/dashboard.js | JavaScript | mit | 2,173 |
require 'rails_helper'
RSpec.describe PusherController, :type => :controller do
describe "GET webhook" do
it "returns http success" do
get :webhook
expect(response).to be_success
end
end
end
| nnluukhtn/coffee_run | spec/controllers/pusher_controller_spec.rb | Ruby | mit | 218 |
namespace S22.Xmpp.Extensions {
/// <summary>
/// Defines possible values for the mood of an XMPP user.
/// </summary>
/// <remarks>Refer to XEP-0107 for a detailed listing and description of the
/// various mood values.</remarks>
public enum Mood {
/// <summary>
/// Impressed with fear or apprehension; in ... | smiley22/S22.Xmpp | Extensions/XEP-0107/Mood.cs | C# | mit | 9,671 |
using System.Windows.Controls;
namespace HeroesMatchTracker.Views.RawData
{
/// <summary>
/// Interaction logic for RawMatchReplaysControl.xaml
/// </summary>
public partial class RawMatchReplaysControl : UserControl
{
public RawMatchReplaysControl()
{
InitializeCompone... | koliva8245/HeroesParserData | HeroesMatchTracker/Views/RawData/RawMatchReplaysControl.xaml.cs | C# | mit | 346 |
<?php
return [
'nav-back' => '回上一頁',
'nav-new' => '新增資料夾',
'nav-upload' => '上傳檔案',
'nav-thumbnails' => '縮圖顯示',
'nav-list' => '列表顯示',
'menu-rename' => '重新命名',
'menu-delete' => '刪除',
'menu-view' => '預覽',
'menu-download' =>... | crocodic-studio/simple-stock-manager | vendor/unisharp/laravel-filemanager/src/lang/zh-TW/lfm.php | PHP | mit | 2,606 |
System.register([], function (_export, _context) {
"use strict";
var p;
return {
setters: [],
execute: function () {
_export("p", p = 4);
_export("p", p);
}
};
}); | ModuleLoader/es-module-loader | test/fixtures/register-modules/rebinding.js | JavaScript | mit | 197 |
#!/usr/bin/env python
"""
Apply a surface field to a shape
"""
from __future__ import print_function
import argparse
import time
import sys
import re
from numpy import linspace
from icqsol.shapes.icqShapeManager import ShapeManager
from icqsol import util
# time stamp
tid = re.sub(r'\.', '', str(time.time()))
descr... | gregvonkuster/icqsol | examples/addSurfaceFieldFromExpression.py | Python | mit | 3,166 |
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using Tailviewer.Api;
namespace Tailviewer.Core.Filters.ExpressionEngine
{
internal sealed class IsExpression<T>
: IExpression<bool>
{
private static readonly IEqualityComparer<T> Comparer;
private readonly IExpression<T> _lhs... | Kittyfisto/Tailviewer | src/Tailviewer.Core/Filters/ExpressionEngine/IsExpression.cs | C# | mit | 2,319 |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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 3 of the License, or
// (at your option) any later version.
//
// Moodle... | tesler/cspt-moodle | moodle/lang/ru/enrol_imsenterprise.php | PHP | mit | 11,218 |
module.exports = {
//get global stats
'GET /stat': {
controller: "StatController",
action: "getGlobalStat"
}
}
| badfuture/huoshui-backend-api | api/routes/statRoute.js | JavaScript | mit | 126 |
/**
* Node Native Module for Lib Sodium
*
* @Author Pedro Paixao
* @email paixaop at gmail dot com
* @License MIT
*/
#include "node_sodium.h"
/**
* int crypto_shorthash(
* unsigned char *out,
* const unsigned char *in,
* unsigned long long inlen,
* const unsigned char *key)
*
* Parameters:
* ... | paixaop/node-sodium | src/crypto_shorthash.cc | C++ | mit | 1,709 |
# frozen_string_literal: true
Capybara::SpecHelper.spec '#scroll_to', requires: [:scroll] do
before do
@session.visit('/scroll')
end
it 'can scroll an element to the top of the viewport' do
el = @session.find(:css, '#scroll')
@session.scroll_to(el, align: :top)
expect(el.evaluate_script('this.ge... | jnicklas/capybara | lib/capybara/spec/session/scroll_spec.rb | Ruby | mit | 5,689 |
package main
import (
"context"
"encoding/json"
"log"
"os"
"path/filepath"
"time"
"github.com/mafredri/cdp"
"github.com/mafredri/cdp/devtool"
"github.com/mafredri/cdp/protocol/page"
"github.com/mafredri/cdp/rpcc"
)
func main() {
dir, err := os.Getwd()
if err != nil {
log.Fatal(err)
}
if err := run(c... | mafredri/cdp | protocol/runtime/testdata/log_input_gen.go | GO | mit | 2,730 |
<?php
namespace BeSimple\SoapClient\Tests\AxisInterop;
class TestCase extends \PHPUnit_Framework_TestCase
{
protected function setUp()
{
$ch = curl_init('http://localhost:8080/');
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt(... | MarkThink/OROCRM | vendor/bundles/besimple/soap/src/BeSimple/SoapClient/Tests/AxisInterop/TestCase.php | PHP | mit | 602 |
'use strict';
var digits = require('./../../../utils/number').digits;
// TODO this could be improved by simplifying seperated constants under associative and commutative operators
function factory(type, config, load, typed, math) {
var util = load(require('./util'));
var isCommutative = util.isCommutative;
var i... | ocadni/citychrone | node_modules/mathjs/lib/function/algebra/simplify/simplifyConstant.js | JavaScript | mit | 7,764 |
<?php
/*
If you see this text in your browser, PHP is not configured correctly on this hosting provider.
Contact your hosting provider regarding PHP configuration for your site.
PHP file generated by Adobe Muse CC 2017.1.0.379
*/
function formthrottle_check()
{
if (!is_writable('.'))
{
return '8';... | valesbc/valesbc.github.io | scripts/form_throttle.php | PHP | mit | 2,961 |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2022 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Rotates the vertices of a Face to the given angle.
*
* The actual vertex positions are adjusted, not their transformed positions.
*
*... | photonstorm/phaser | src/geom/mesh/RotateFace.js | JavaScript | mit | 1,512 |
/*******************************************************************************
* Copyright (c) 2013-2016 LAAS-CNRS (www.laas.fr)
* 7 Colonel Roche 31077 Toulouse - France
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
... | cloudcomputinghust/IoT | docker/oneM2M/CSE_IPE/org.eclipse.om2m/org.eclipse.om2m.core/src/main/java/org/eclipse/om2m/core/controller/PollingChannelUriController.java | Java | mit | 1,885 |
/*!
* iCheck v1.0.3, http://git.io/arlzeA
* ===================================
* Powerful jQuery and Zepto plugin for checkboxes and radio buttons customization
*
* (c) 2013 Damir Sultanov, http://fronteed.com
* MIT Licensed
*/
(function($) {
// Cached vars
var _iCheck = 'iCheck',
_iCheckHelper = _iCh... | cdnjs/cdnjs | ajax/libs/iCheck/1.0.3/icheck.js | JavaScript | mit | 14,225 |
module Voting
class Domain
include DataMapper::Resource
property :id, Serial
property :name, String
property :created_at, DateTime
property :updated_at, DateTime
has n, :users, :class_name => "Voting::User", :child_key => [:domain_id]
validates_present :name
vali... | zapnap/voting | lib/voting/domain.rb | Ruby | mit | 352 |
// Type definitions for @ag-grid-community/core v25.0.1
// Project: http://www.ag-grid.com/
// Definitions by: Niall Crosby <https://github.com/ag-grid/>
import { Column } from "../entities/column";
import { CellChangedEvent, RowNode } from "../entities/rowNode";
import { CellEvent, FlashCellsEvent } from "../events";
... | ceolter/angular-grid | community-modules/core/dist/es6/rendering/cellComp.d.ts | TypeScript | mit | 6,950 |
using System;
using Csla;
namespace Invoices.DataAccess.Sql
{
public partial class ProductTypeCachedNVLDal
{
}
}
| CslaGenFork/CslaGenFork | trunk/CoverageTest/Invoices-CS-DAL-DR/Invoices.DataAccess.Sql/ProductTypeCachedNVLDal.cs | C# | mit | 135 |
const Route = require('../../structures/Route');
class usersGET extends Route {
constructor() {
super('/admin/users', 'get', { adminOnly: true });
}
async run(req, res, db) {
try {
const users = await db.table('users')
.select('id', 'username', 'enabled', 'isAdmin', 'createdAt');
return res.json({
... | WeebDev/lolisafe | src/api/routes/admin/usersGET.js | JavaScript | mit | 473 |
import { Autowired, Bean, BeanStub, XmlElement } from '@ag-grid-community/core';
import coreFactory from './files/ooxml/core';
import contentTypesFactory from './files/ooxml/contentTypes';
import officeThemeFactory from './files/ooxml/themes/office';
import sharedStringsFactory from './files/ooxml/sharedStrings';
impo... | ceolter/angular-grid | enterprise-modules/excel-export/src/excelExport/excelXlsxFactory.ts | TypeScript | mit | 3,835 |
function DetailCellRenderer() {}
DetailCellRenderer.prototype.init = function(params) {
this.eGui = document.createElement('div');
this.eGui.innerHTML = '<h1 style="padding: 20px;">My Custom Detail</h1>';
};
DetailCellRenderer.prototype.getGui = function() {
return this.eGui;
};
| ceolter/angular-grid | grid-packages/ag-grid-docs/documentation/src/pages/master-detail-custom-detail/examples/simple-custom-detail/detailCellRenderer_vanilla.js | JavaScript | mit | 294 |
/* *
*
* (c) 2009-2017 Highsoft, Black Label
*
* License: www.highcharts.com/license
*
* */
'use strict';
import H from '../parts/Globals.js';
import U from '../parts/Utilities.js';
var defined = U.defined,
destroyObjectProperties = U.destroyObjectProperties,
erase = U.erase,
extend = U.extend,
... | cdnjs/cdnjs | ajax/libs/highcharts/8.0.0/es-modules/annotations/annotations.src.js | JavaScript | mit | 42,338 |
#!/usr/bin/python3
"""
Simple wrapper to get diff of two schedules
It's able to show different attributes (by 'attrs' kwarg)
and indicate missing phases
Follows 'diff' exit codes:
0 - same
1 - different
2 - other trouble
Test as "python -m schedules_tools.batches.diff"
"""
import argparse
from datetime... | RedHat-Eng-PGM/schedules-tools | schedules_tools/diff.py | Python | mit | 16,312 |
this.primereact = this.primereact || {};
this.primereact.multiselect = (function (exports, React, core, inputtext, virtualscroller, PrimeReact) {
'use strict';
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_in... | cdnjs/cdnjs | ajax/libs/primereact/6.5.1/multiselect/multiselect.js | JavaScript | mit | 72,104 |
/* *
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import H from '../parts/Globals.js';
import U from '../parts/Utilities.js';
var isArray = U.isArray;
import reduceArrayMixin from '../mixins/reduce-array.js';
import mul... | cdnjs/cdnjs | ajax/libs/highcharts/7.2.2/es-modules/indicators/stochastic.src.js | JavaScript | mit | 5,303 |
from __future__ import print_function
class Sequence(object):
def __init__(self, name, seq):
"""
:param seq: the sequence
:type seq: string
"""
self.name = name
self.sequence = seq
def __len__(self):
return len(self.sequence)
def to_fasta(self):
... | C3BI-pasteur-fr/python-course-1 | source/_static/code/inheritance_sequence.py | Python | cc0-1.0 | 1,463 |
/**
* Copyright (c) 2014 openHAB UG (haftungsbeschraenkt) 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, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/... | innoq/smarthome | bundles/core/org.eclipse.smarthome.core.transform.test/src/test/java/org/eclipse/smarthome/core/transform/internal/AbstractTransformationServiceTest.java | Java | epl-1.0 | 2,058 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.9-03/31/2009 04:14 PM(snajper)-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Ge... | McGill-DP-Group/seg.jUCMNav | src/seg/jUCMNav/importexport/z151/generated/Description.java | Java | epl-1.0 | 1,823 |
/******************************************************************************
*
* Copyright 2014 Paphus Solutions Inc.
*
* Licensed under the Eclipse Public License, Version 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... | BOTlibre/BOTlibre | swingdroid/source/android/app/ProgressDialog.java | Java | epl-1.0 | 1,233 |
/*******************************************************************************
* Copyright (c) 2019 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, and is a... | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer_fat/fat/src/com/ibm/ws/jaxws/test/wsr/client/TestUtils.java | Java | epl-1.0 | 7,976 |
/*******************************************************************************
* Copyright (c) 2012-2016 Codenvy, S.A.
* 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 ... | stour/che | plugins/plugin-java/che-plugin-java-ext-lang-client/src/test/java/org/eclipse/che/ide/ext/java/client/action/MarkDirAsSourceActionTest.java | Java | epl-1.0 | 8,195 |
/*******************************************************************************
* Copyright (c) 2006, 2018 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... | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.injection_fat/test-applications/EJB3INJSABean.jar/src/com/ibm/ws/ejbcontainer/injection/ann/ejb/CatEJBLocalHome.java | Java | epl-1.0 | 995 |
/**
* 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/openhab | bundles/binding/org.openhab.binding.zwave/src/main/java/org/openhab/binding/zwave/internal/protocol/commandclass/ZWaveSecureInclusionStateTracker.java | Java | epl-1.0 | 7,375 |
import java.util.logging.Level;
import java.util.logging.Logger;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
Thread t1 = new Hilo(0);
t1.start();
try {
t1.join();
} catch (InterruptedException ex) {
Logger.getLogger(Main.... | davidhmhernandez/ServiciosyProcesos | Concurrencia1Act7/src/Main.java | Java | epl-1.0 | 384 |
package eu.modelwriter.specification.editor.scanner;
import org.eclipse.jface.text.TextAttribute;
import org.eclipse.jface.text.rules.IToken;
import org.eclipse.jface.text.rules.RuleBasedScanner;
import org.eclipse.jface.text.rules.Token;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.widgets.Display;
... | ModelWriter/Tarski | Source/eu.modelwriter.specification.editor/src/eu/modelwriter/specification/editor/scanner/LoadScanner.java | Java | epl-1.0 | 619 |
/**
* 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/openhab | bundles/binding/org.openhab.binding.tinkerforge/src/main/java/org/openhab/binding/tinkerforge/internal/model/impl/ElectrodeImpl.java | Java | epl-1.0 | 3,535 |
/*******************************************************************************
* Copyright (c) 2016 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, and is a... | OpenLiberty/open-liberty | dev/com.ibm.ws.logstash.collector.1.0/src/com/ibm/ws/logstash/collector/v10/LogstashCollector10.java | Java | epl-1.0 | 1,247 |
package com.coverity.ws.v9;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for updateStreamDefects complex type.
*
* <p>The following schema fragmen... | christ66/coverity-plugin | src/main/java/com/coverity/ws/v9/UpdateStreamDefects.java | Java | epl-1.0 | 2,691 |
/*******************************************************************************
* Copyright (C) 2011, Jens Baumgart <jens.baumgart@sap.com>
* Copyright (C) 2011, Stefan Lay <stefan.lay@sap.com>
* Copyright (C) 2015, Thomas Wolf <thomas.wolf@paranor.ch>
*
* All rights reserved. This program and the accompanying ma... | SmithAndr/egit | org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/FormatJob.java | Java | epl-1.0 | 3,809 |
/*
* Copyright (c) 2013 Cisco Systems, Inc. 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,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.... | my76128/controller | opendaylight/config/yang-jmx-generator-plugin/src/main/java/org/opendaylight/controller/config/yangjmxgenerator/plugin/JMXGenerator.java | Java | epl-1.0 | 11,935 |
package de.cooperateproject.modeling.textual.common.naming;
import java.util.List;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.uml2.uml.NamedElement;
import org.eclipse.xtext.nodemodel.INode;
import org.eclipse.xtext.nodemodel.util.NodeModelUtils;
import de.coope... | Cooperate-Project/Cooperate | bundles/de.cooperateproject.modeling.textual.common/src/de/cooperateproject/modeling/textual/common/naming/NameSwitch.java | Java | epl-1.0 | 2,176 |
/*******************************************************************************
* Copyright (c) 2015 UT-Battelle, LLC.
* 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 availab... | jarrah42/eavp | org.eclipse.eavp.viz.modeling/src/org/eclipse/eavp/viz/modeling/factory/IControllerProviderFactory.java | Java | epl-1.0 | 1,456 |
/*******************************************************************************
* Copyright (c) 2015 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, and is a... | OpenLiberty/open-liberty | dev/com.ibm.ws.ui/resources/WEB-CONTENT/unittest/toolbox/toolboxTests.js | JavaScript | epl-1.0 | 14,570 |
/*******************************************************************************
* Copyright (c) 2017, 2021 Red Hat Inc and others
*
* 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/
*... | stzilli/kapua | simulator-kura/src/main/java/org/eclipse/kapua/kura/simulator/Simulator.java | Java | epl-1.0 | 2,615 |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateModuleSectionTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('module_section', function (Blueprint $table) {
... | ImbalanceGaming/imbalance-gaming-laravel | database/migrations/2016_03_14_011932_create_module_section_table.php | PHP | gpl-2.0 | 887 |
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing.Design;
using Microsoft.VisualStudio.Shell;
using NLog;
using System;
using System.Linq.Expressions;
namespace CHeaderGenerator
{
public class CSourceFileOptions : DialogPage, INotifyPropertyChanged
{
private bool sh... | cmc13/CHeaderGenerator | CHeaderGenerator/CSourceFileOptions.cs | C# | gpl-2.0 | 4,992 |
<?php
/**
* 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 Software Foundation; under version 2
* of the License (non-upgradable).
*
* This program is distributed in the hope that it will be useful,
* but W... | dhx/tao-comp | vendor/qtism/qtism/qtism/data/expressions/NullValue.php | PHP | gpl-2.0 | 1,260 |
/*
* Copyright (C) 2010-2012 Project SkyFire <http://www.projectskyfire.org/>
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2005-2011 MaNGOS <http://getmangos.com/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Genera... | SkyFireArchives/SkyFireEMU_433 | src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_epoch.cpp | C++ | gpl-2.0 | 5,315 |
<?php
namespace Google\AdsApi\AdWords\v201702\mcm;
/**
* This file was generated from WSDL. DO NOT EDIT.
*/
class CurrencyCodeErrorReason
{
const UNSUPPORTED_CURRENCY_CODE = 'UNSUPPORTED_CURRENCY_CODE';
}
| renshuki/dfp-manager | vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201702/mcm/CurrencyCodeErrorReason.php | PHP | gpl-2.0 | 216 |
<?php include_partial('stats_header', array('form' => $form, 'title' => $title)); ?>
<?php if ( $sf_user->hasCredential('stats-control') ): ?>
<?php include_partial('global/chart_jqplot', array(
'id' => 'control',
'data' => url_for('statistics/controlJson?type=' . $type),
'width' => '... | Fabrice-li/e-venement | apps/statistics/modules/statistics/templates/controlSuccess.php | PHP | gpl-2.0 | 785 |
<?php
namespace Drupal\jsonapi\Normalizer\Value;
/**
* Helps normalize config entity "fields" in compliance with the JSON API spec.
*
* @internal
*/
class ConfigFieldItemNormalizerValue extends FieldItemNormalizerValue {
/**
* {@inheritdoc}
*
* @var mixed
*/
protected $raw;
/**
* Instantiat... | enslyon/ensl | modules/jsonapi/src/Normalizer/Value/ConfigFieldItemNormalizerValue.php | PHP | gpl-2.0 | 632 |
package org.telegram.messenger;
import android.text.TextUtils;
import android.util.LongSparseArray;
import android.util.SparseBooleanArray;
import org.telegram.tgnet.TLRPC;
import java.util.ArrayList;
public class ForwardingMessagesParams {
public LongSparseArray<MessageObject.GroupedMessages> groupedMessagesM... | Telegram-FOSS-Team/Telegram-FOSS | TMessagesProj/src/main/java/org/telegram/messenger/ForwardingMessagesParams.java | Java | gpl-2.0 | 8,580 |
/**************************************************************
TigrStringMap.H
bmajoros@tigr.org 1/1/2003
TIGR++ : C++ class template library for bioinformatics
Copyright (c) 2003, The Institute for Genomic Research (TIGR),
Rockville, Maryland, U.S.A. All rights reserved.
******************************************... | bmajoros/UnVeil | tigr++/TigrStringMap.H | C++ | gpl-2.0 | 10,179 |
<?php
/*
* Copyright 2014 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 t... | palasthotel/grid-wordpress-box-social | vendor/google/apiclient-services/src/Google/Service/Safebrowsing/GoogleSecuritySafebrowsingV4FindFullHashesRequest.php | PHP | gpl-2.0 | 2,567 |
# -*- coding: utf-8 -*-
#
# This file is part of Zenodo.
# Copyright (C) 2016 CERN.
#
# Zenodo 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
# License, or (at your option) any later v... | slint/zenodo | tests/unit/records/test_schemas_marcxml.py | Python | gpl-2.0 | 13,950 |
<?php
/**
* Contact Form 7 Plugin
* @since 0.1
* @version 1.0
*/
if ( defined( 'myCRED_VERSION' ) ) {
/**
* Register Hook
* @since 0.1
* @version 1.0
*/
add_filter( 'mycred_setup_hooks', 'contact_form_seven_myCRED_Hook' );
function contact_form_seven_myCRED_Hook( $installed ) {
$installed['contact_form... | crowdcreative/cidade.vc | wp-content/plugins/mycred/plugins/mycred-hook-contact-form7.php | PHP | gpl-2.0 | 4,148 |
<?php
# MantisBT - a php based bugtracking system
# MantisBT 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 License, or
# (at your option) any later version.
#
# MantisBT is distribut... | dauclem/Online-Bug-Tracker | private/bt/mantisbt/mantisbt-1.2.15/core/projax_api.php | PHP | gpl-2.0 | 3,293 |
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { environment } from '../../environments/environment';
import { AuthService } from '../../services/auth.service';
import { AuthInfo } from '../../types/api-output';
/**
* Base skeleton for student pages.
*/
@C... | TEAMMATES/teammates | src/web/app/pages-student/student-page.component.ts | TypeScript | gpl-2.0 | 1,999 |
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of ... | alexbevi/scummvm | engines/asylum/system/speech.cpp | C++ | gpl-2.0 | 8,226 |
// Copyright 2016 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "Core/IOS/USB/Bluetooth/BTBase.h"
#include <memory>
#include <string>
#include <vector>
#include "Common/CommonPaths.h"
#include "Common/CommonTypes.h"
#include "Common/File.h"
#include "Common/Fil... | linkmauve/dolphin | Source/Core/Core/IOS/USB/Bluetooth/BTBase.cpp | C++ | gpl-2.0 | 1,428 |
class AddMoreColumnsToUsers < ActiveRecord::Migration
def change
add_column :users, :username, :string
add_column :users, :image, :string
end
end
| kirkokada/hackathon | db/migrate/20150524135324_add_more_columns_to_users.rb | Ruby | gpl-2.0 | 158 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated Thu Dec 1 09:58:36 2011 by generateDS.py version 2.7a.
#
import sys
import getopt
import re as re_
etree_ = None
Verbose_import_ = False
(XMLParser_import_none, XMLParser_import_lxml,
XMLParser_import_elementtree
) = range(3)
XMLParser_import_library ... | joyxu/autotest | client/tools/JUnit_api.py | Python | gpl-2.0 | 65,100 |
#include <QFile>
#include <QMessageBox>
#include "pkg_bind.h"
#include "config.h"
PkgBind *PkgBind::instance = NULL;
/* Constructor
*/
PkgBind::PkgBind()
{
loadCommandList();
};
/* Get the unique instance
* or create it if there isn't any
*/
PkgBind *PkgBind::getInstance()
{
if(instance==NULL)
instance = ... | luisivan/QtOctave | qtoctave/src/pkg_bind.cpp | C++ | gpl-2.0 | 1,792 |
<?php die("Access Denied"); ?>#x#a:2:{s:6:"output";s:0:"";s:6:"result";s:4:"9243";} | jolay/pesatec | cache/mod_vvisit_counter/860aea6b5aac75573e8d7d8ebc839c97-cache-mod_vvisit_counter-12c8414db0decbe26a3df6aa66213421.php | PHP | gpl-2.0 | 83 |
#include "SampleCode.h"
#include "SkView.h"
#include "SkBlurMaskFilter.h"
#include "SkCanvas.h"
#include "SkGradientShader.h"
#include "SkGraphics.h"
#include "SkImageDecoder.h"
#include "SkPath.h"
#include "SkRandom.h"
#include "SkRegion.h"
#include "SkShader.h"
#include "SkUtils.h"
#include "SkXfermode.h"
#include "S... | highfellow/inkscape-remove-duplicates | app/main.cpp | C++ | gpl-2.0 | 2,030 |
// We do this in this rather complicated manner since Joomla groups
// external javascript includes and script declarations seperately
// and this call has to be made right after loading jQuery.
jQuery.noConflict(); | lau-ibarra/ETISIGChacoJoomla | tmp/install_515c4270221dc/plg_system_jquery/site/jquery/no_conflict.js | JavaScript | gpl-2.0 | 218 |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... | tonio-44/tikflak | shop/app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Abstract.php | PHP | gpl-2.0 | 14,799 |
/**
* Copyright (c) 2009 Pyxis Technologies inc.
*
* This 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 License, or
* (at your option) any later version.
*
* This software is ... | hwellmann/greenpepper-core | src/main/java/com/greenpepper/interpreter/flow/scenario/ExpectationTypeConverter.java | Java | gpl-2.0 | 1,216 |