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) 2008-2014 Maxifier Ltd. All Rights Reserved. */ package com.maxifier.mxcache; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.*; /** * T...
akochurov/mxcache
mxcache-runtime/src/main/java/com/maxifier/mxcache/PublicAPI.java
Java
mit
684
/** * @author mr.doob / http://mrdoob.com/ */ THREE.SoftwareRenderer = function () { console.log( 'THREE.SoftwareRenderer', THREE.REVISION ); var canvas = document.createElement( 'canvas' ); var context = canvas.getContext( '2d' ); var imagedata = context.getImageData( 0, 0, canvas.width, canvas.height ); va...
juhnowski/J_and_K_Softlabs
httpdocs/js/renderers/SoftwareRenderer.js
JavaScript
mit
7,441
var NWM = function() { // Known layouts this.layouts = { tile: tile, wide: wide, grid: grid }; // monitors this.monitors = [ ]; this.windows = { }; // counter this.counter = 1; }; NWM.prototype.addMonitor = function (monitor) { this.monitors.push(new Monitor(this, monitor)); }; NWM.proto...
ellis/nwm
test/nwm.js
JavaScript
mit
1,458
import kol.Error as Error from GenericRequest import GenericRequest from kol.manager import PatternManager from kol.util import Report class SendMessageRequest(GenericRequest): def __init__(self, session, message): super(SendMessageRequest, self).__init__(session) self.url = session.serverURL + "se...
KevZho/buffbot
kol/request/SendMessageRequest.py
Python
mit
2,734
define({ "queries": "Truy vấn", "addNew": "Thêm Mới", "newQuery": "Truy vấn Mới", "queryLayer": "Lớp Truy vấn", "setSource": "Thiết lập", "setDataSource": "Thiết lập Nguồn Dữ liệu", "name": "Tên", "querySource": "Nguồn dữ liệu", "queryName": "Tên tác vụ", "queryDefinition": "Định nghĩa Bộ lọc", ...
cmccullough2/cmv-wab-widgets
wab/2.3/widgets/Query/setting/nls/vi/strings.js
JavaScript
mit
6,905
using System; using System.IO; using System.Security.Cryptography; using System.Text; class EncryptingStream { const string EncryptionKey = "ABCDEFGH"; const string FilePath = "../../encrypted.txt"; static void Main() { SaveEncrypted("Hello world", EncryptionKey, FilePath); string re...
Rusev12/Software-University-SoftUni
C# Advanced/Streams - Lab/Crypto-Stream/EncryptingStream.cs
C#
mit
1,889
# -*- coding: utf-8 -*- # # openMVG documentation build configuration file, created by # sphinx-quickstart on Wed Oct 30 11:05:58 2013. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # A...
Smozeley/openMVG
docs/sphinx/rst/conf.py
Python
mit
10,634
module RKelly module Nodes class BinaryNode < Node attr_reader :left def initialize(left, right) super(right) @left = left end end %w[Subtract LessOrEqual GreaterOrEqual Add Multiply NotEqual DoWhile Switch LogicalAnd UnsignedRightShift Modulus While NotStr...
mat-mo/arch-pkgs
ruby-rkelly-remix/pkg/ruby-rkelly-remix/usr/lib/ruby/gems/2.1.0/gems/rkelly-remix-0.0.6/lib/rkelly/nodes/binary_node.rb
Ruby
mit
531
/* * The MIT License * * Copyright 2013 Oleg Nenashev, Synopsys 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 * t...
jordancoll/ownership-plugin
src/main/java/com/synopsys/arc/jenkins/plugins/ownership/nodes/NodeOwnerWrapper.java
Java
mit
2,090
package stream.flarebot.flarebot.database; public class RedisMessage { private final String messageID; private final String authorID; private final String channelID; private final String guildID; private final String content; private final long timestamp; public RedisMessage(String messag...
FlareBot/FlareBot
src/main/java/stream/flarebot/flarebot/database/RedisMessage.java
Java
mit
1,020
<?php /* * This file is part of the Doctrine\OrientDB package. * * (c) Alessandro Nadalin <alessandro.nadalin@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * This is a central point to manage SQL statements deal...
ruleant/orientdb-odm
src/Doctrine/OrientDB/Query/Command/Property.php
PHP
mit
1,291
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PARTICUL...
baesky/DirectX-Graphics-Samples
Libraries/D3D12RaytracingFallback/src/RayTracingProgramFactory.cpp
C++
mit
2,439
define([ 'extensions/views/view' ], function (View) { var TabView = View.extend({ initialize: function () { View.prototype.initialize.apply(this, arguments); this.listenTo(this.model, 'change:activeIndex', this.setActiveTab, this); }, events: { 'click nav a': 'onTabClick' }, ...
alphagov/spotlight
app/client/views/visualisations/tab.js
JavaScript
mit
968
# This file is part of DEAP. # # DEAP is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation, either version 3 of # the License, or (at your option) any later version. # # DEAP is distributed ...
GrimRanger/GeneticAlgorithm
helps/deap/deap-master/examples/ga/onemax.py
Python
mit
5,221
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rspec' require 'sentimentalizer' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| re...
gveltri/sentimentalizer
spec/spec_helper.rb
Ruby
mit
365
#ifndef BOOST_NETWORK_PROTOCOL_HTTP_MESSAGE_HOST_HPP_20100618 #define BOOST_NETWORK_PROTOCOL_HTTP_MESSAGE_HOST_HPP_20100618 // Copyright 2010 (c) Dean Michael Berris. // Copyright 2010 (c) Sinefunc, Inc. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at ...
demonsaw/Code
ds4/code/0_cppnetlib/boost/network/protocol/http/message/wrappers/host.hpp
C++
mit
1,062
require 'hiera_puppet' module Puppet::Parser::Functions newfunction(:hiera_array, :type => :rvalue, :arity => -2,:doc => "Returns all matches throughout the hierarchy --- not just the first match --- as a flattened array of unique values. If any of the matched values are arrays, they're flattened and included in...
thejonanshow/my-boxen
vendor/bundle/ruby/2.3.0/gems/puppet-3.8.7/lib/puppet/parser/functions/hiera_array.rb
Ruby
mit
1,668
// 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 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. n...
ScottHolden/azure-sdk-for-net
src/SDKs/RecoveryServices.Backup/Management.RecoveryServices.Backup/Generated/Models/AzureIaaSVMProtectedItemExtendedInfo.cs
C#
mit
2,941
<?php declare(strict_types=1); namespace DI\Definition\Dumper; use DI\Definition\Definition; use DI\Definition\ObjectDefinition; use DI\Definition\ObjectDefinition\MethodInjection; use ReflectionException; /** * Dumps object definitions to string for debugging purposes. * * @since 4.1 * @author Matthieu Napoli ...
PHP-DI/PHP-DI
src/Definition/Dumper/ObjectDefinitionDumper.php
PHP
mit
4,409
// Type definitions for node-ipc 9.1 // Project: http://riaevangelist.github.io/node-ipc/ // Definitions by: Arvitaly <https://github.com/arvitaly>, gjurgens <https://github.com/gjurgens> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference types="node" /> import { Socket } from "net"; decl...
georgemarshall/DefinitelyTyped
types/node-ipc/index.d.ts
TypeScript
mit
17,692
import gym import gym.wrappers import gym.envs import gym.spaces import traceback import logging try: from gym.wrappers.monitoring import logger as monitor_logger monitor_logger.setLevel(logging.WARNING) except Exception as e: traceback.print_exc() import os import os.path as osp from rllab.envs.base imp...
brain-research/mirage-rl-qprop
rllab/envs/gym_env.py
Python
mit
4,134
class AuthenticationProvider < ActiveRecord::Base belongs_to :user validates :user_id, :uid, :provider, :token, presence: true validates :uid, uniqueness: true end
askl56/github-awards
app/models/authentication_provider.rb
Ruby
mit
173
<?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\Co...
diversantvlz/WellCommerce
src/WellCommerce/Component/DataSet/Conditions/Condition/In.php
PHP
mit
698
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator\Constraints; use Symfony\Component\Validato...
Nyholm/symfony
src/Symfony/Component/Validator/Constraints/Choice.php
PHP
mit
2,859
import { Component, AfterViewInit } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent implements AfterViewInit { ngAfterViewInit(): void { this.myComboBox1.add(this.myComboBox1).on('select', (event: any): void => { ...
luissancheza/sice
js/jqwidgets/demos/angular/app/toolbar/cascadingcomboboxesintoolbar/app.component.ts
TypeScript
mit
2,286
# -*- 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
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
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
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 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
/**************************************************************************** ** 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
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
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.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
<?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) 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
<?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 /** * 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