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 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | aws/aws-sdk-java | aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/MqttContext.java | Java | apache-2.0 | 9,309 |
using Messaging.Interfaces.Common;
using Messaging.Interfaces.Popup;
using Splat;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Windows.ApplicationModel.Core;
using Windows.Foundation;
using Windows.UI.Core;
using Windows.UI.Popups;
#if WINDOWS_PHONE_APP
us... | ApplETS/ETSMobile-WindowsPlatforms | Ets.Mobile/Modules/Messaging/Implementations/Messaging.UniversalApp/Popup/PopupManager.cs | C# | apache-2.0 | 5,886 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace @false
{
class Program
{
static void Main(string[] args)
{
}
}
}
| AlanBarber/WinCmdCoreUtilities | false/Program.cs | C# | apache-2.0 | 215 |
package us.ihmc.rosControl.wholeRobot;
public interface ForceTorqueSensorHandle
{
double getTz();
double getTy();
double getTx();
double getFz();
double getFy();
double getFx();
String getName();
}
| ihmcrobotics/ihmc-ros-control | src/main/java/us/ihmc/rosControl/wholeRobot/ForceTorqueSensorHandle.java | Java | apache-2.0 | 228 |
var CLIENT_ID = '';
var CLIENT_SECRET = '';
var OWNER = "";
var REPO = "";
/**
* Manage Form Answer
* Create a trigger by going to Resources > Current projet's triggers
* Select function manageAnswer() and create a trigger at form submission
*/
function manageAnswer(e) {
var form = e.source;
var rep = {
"... | St3ph-fr/my-apps-script-utils | anonymous-issues-github/Code.js | JavaScript | apache-2.0 | 3,674 |
package com.linkedin.automation;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class PeopleY... | sanlingdd/personalLinkedProfilesIn | linkedin-java/src/main/java/com/linkedin/automation/PeopleYouMayKnow.java | Java | apache-2.0 | 2,429 |
"use strict";
let User = require("../../../../persistence").models.User;
let debug = require("debug")("app:auth");
module.exports = (findUserEntity, createUserEntity, methodName) => {
return (tokenA, tokenB, profile, done) => {
return User.findOneQ(findUserEntity(profile))
.then((found) => foun... | atsid/drugfax-18f | server/initialization/sections/passport/strategies/common_oauth_callback.js | JavaScript | apache-2.0 | 571 |
// Copyright 2010-2021 Google LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | google/or-tools | ortools/sat/samples/SolveWithTimeLimitSampleSat.cs | C# | apache-2.0 | 1,644 |
package handlers
import (
"net/http"
"strconv"
log "github.com/sirupsen/logrus"
"github.com/codedellemc/rexray/libstorage/api/types"
)
// queryParamsHandler is an HTTP filter for injecting the store with query
// parameters
type queryParamsHandler struct {
handler types.APIFunc
}
func (h *queryParamsHandler) ... | oppodeldoc/rexray | libstorage/api/server/handlers/handlers_query_params.go | GO | apache-2.0 | 1,397 |
package helpers.db.filter.column;
import org.apache.commons.lang.StringUtils;
import java.util.ArrayList;
import java.util.List;
/**
* Filter on a disjunction of string matches.
* Instead of filtering on "column ~= filter", filters on (columns[0] ~= filter or ... or columns[n - 1] ~= filter).
*
* @author jtremea... | sismics/play-nativedb | app/helpers/db/filter/column/OrStringFilterColumn.java | Java | apache-2.0 | 1,101 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.Web.UI;
namespace LTAF.Engine
{
internal class SystemWebExtensionsWrapper
{
private bool _methodsInitialized;
private readonly object _reflectionLock;
private IAs... | OakRaven/ltaf | src/LTAF/Engine/SystemWebExtensionsWrapper.cs | C# | apache-2.0 | 3,985 |
package main
import (
"log"
"github.com/xitongsys/parquet-go-source/local"
"github.com/xitongsys/parquet-go/parquet"
"github.com/xitongsys/parquet-go/reader"
"github.com/xitongsys/parquet-go/writer"
)
type NameString string
type AgeInt int32
type Student struct {
Name NameString `parquet:"name=name, type=BYTE... | xitongsys/parquet-go | example/type_alias.go | GO | apache-2.0 | 1,684 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.ServiceBus.Messaging;
using System.IO;
using System.Configuration;
using System.Threading;
using Danvy.Azure;
namespace DecoderJob
{
class Program
{
static bool quit = fa... | danvy/sigfox | src/StorageJob/Program.cs | C# | apache-2.0 | 2,508 |
/*
* Waltz - Enterprise Architecture
* Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project
* See README.md for more information
*
* 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 ... | kamransaleem/waltz | waltz-data/src/main/java/com/khartec/waltz/data/complexity/ConnectionComplexityDao.java | Java | apache-2.0 | 5,062 |
/*
Copyright 2016 ElasticBox All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | ElasticBox/elastickube | src/ui/app/instances/ek-instance-filters/ek-instance-filters.controller.js | JavaScript | apache-2.0 | 2,031 |
/*
Copyright (c) 2019 the Octant contributors. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package component
import (
"fmt"
"github.com/vmware-tanzu/octant/internal/util/json"
)
// Error is a component for freetext
//
// +octant:component
type Error struct {
Base
Config ErrorConfig `json:"config... | vmware/octant | pkg/view/component/error.go | GO | apache-2.0 | 1,262 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
namespace HETSAPI.Models
{
/// <summary>
/// User Model Extension
/// </summary>
public static class UserModelExtensions
{
/// <summary>
/// Convert User to ClaimsPrincipal
/// ... | swcurran/hets | Server/src/HETSAPI/Authorization/UserModelExtensions.cs | C# | apache-2.0 | 3,077 |
/*
Copyright IBM Corp. 2016 All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package config
import (
"time"
"github.com/hyperledger/fabric/common/channelconfig"
ab "github.com/hyperledger/fabric/protos/orderer"
)
// Orderer is a mock implementation of channelconfig.Orderer
type Orderer struct {
// C... | mqshen/fabric | common/mocks/config/orderer.go | GO | apache-2.0 | 2,723 |
var fs = require('fs');
fs.readFile('data/file1.txt', function (err, data) {
console.log('Second');
});
console.log('First');
| acoburn/interterm2014 | async/async1.js | JavaScript | apache-2.0 | 130 |
package com.miloshpetrov.sol2.common;
import com.badlogic.gdx.graphics.Color;
public class SolColorUtil {
public static void fromHSB(float hue, float saturation, float brightness, float a, Color dest) {
float r = 0, g = 0, b = 0;
if (saturation == 0) {
r = g = b = brightness;
} else {
float ... | Cervator/DestinationSol | main/src/com/miloshpetrov/sol2/common/SolColorUtil.java | Java | apache-2.0 | 3,119 |
package com.wodejia.myapp.data.contacts;
import java.io.Serializable;
/**
* Created by clarence on 16/9/2.
*/
public class ContactsMenuDO implements Serializable {
private int key;
private String value;
private String title;
public int getKey() {
return key;
}
public void setKey(i... | clarenceV1/MyApp | app/src/main/java/com/wodejia/myapp/data/contacts/ContactsMenuDO.java | Java | apache-2.0 | 634 |
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package scc
import (
"errors"
"fmt"
"github.com/hyperledger/fabric/common/flogging"
"github.com/hyperledger/fabric/common/util"
"github.com/hyperledger/fabric/core/chaincode/shim"
"github.com/hyperledger/fabric/core/common/ccpr... | xixuejia/fabric | core/scc/sysccapi.go | GO | apache-2.0 | 6,802 |
/*
*
* ==============================================================================
* 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
*
*... | rycaon/isis-base | amap_base/src/main/java/org/wicketstuff/gmap/geocoder/pojos/GeocoderAddress.java | Java | apache-2.0 | 2,587 |
namespace F5
{
/// <summary>
/// Represents an iRule on the BIGIP LTM
/// </summary>
public class Rule
{
public string Name { get; set; }
public string Code { get; set; }
}
}
| jstrassburg/F5BIGIP.NET | F5/Rule.cs | C# | apache-2.0 | 189 |
/*******
Copyright 2015 NeuroBASE,Inc. All Rights Reserved.
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... | echopfcom/ECHO-Android-SDK | src/com/echopf/ECHODate.java | Java | apache-2.0 | 2,110 |
/*
Copyright 2014 Dániel Sólyom
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | DSolyom/AndroidDSFramework | FrameworkV4/frameworkv4/src/main/java/ds/framework/v4/widget/LaizyImageFlipAnimationLayout.java | Java | apache-2.0 | 6,588 |
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* 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 agre... | ernestp/consulo | platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/XExpressionImpl.java | Java | apache-2.0 | 3,535 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
function drawSctDiagram(concept, parentDiv) {
parentDiv.svg({settings: {width: '600px', height: '500px'}});
var svg = parentDi... | termMed/ihtsdo-daily-build-browser | js/diagramsTest.js | JavaScript | apache-2.0 | 2,348 |
var win = Ti.UI.createWindow({
backgroundColor:'white'
});
win.open();
var GA = require('analytics.google');
//GA.optOut = true;
GA.debug = true;
GA.trackUncaughtExceptions = true;
var tracker = GA.getTracker("UA-XXXXXX-X");
tracker.trackEvent({
category: "category",
action: "test",
label: "label",
value: 1
});
... | Tipasha/DivinityCraft | modules/iphone/analytics.google/1.0/example/app.js | JavaScript | apache-2.0 | 772 |
<?php
/**
* $Header: /home/rpm/cvs/Comercial/propel/Log/file.php,v 1.1 2007/01/03 20:10:14 rpm Exp $
*
* @version $Revision: 1.1 $
* @package Log
*/
/**
* The Log_file class is a concrete implementation of the Log abstract
* class that logs messages to a text file.
*
* @author Jon Parise <jon@ph... | rodrigoprestesmachado/whiteboard | propel/Log/file.php | PHP | apache-2.0 | 9,393 |
package com.simplegame.server.bus.client.io.action;
import javax.annotation.Resource;
import com.simplegame.core.action.annotation.ActionMapping;
import com.simplegame.core.action.annotation.ActionWorker;
import com.simplegame.core.message.Message;
import com.simplegame.server.bus.client.io.command.ClientIoCommands;
... | zuesgooogle/game-server | src/main/java/com/simplegame/server/bus/client/io/action/BusOutAction.java | Java | apache-2.0 | 640 |
using System.Runtime.InteropServices;
namespace BAP.Loader.PE
{
/// <summary>
/// Every image file has an optional header that provides information to the loader.
/// This header is optional in the sense that some files (specifically, object files) do not have it.
/// For image files, this header is requ... | binsys/bap | Code/BAP/BAP.Loader.PE/IMAGE_OPTIONAL_HEADER32.cs | C# | apache-2.0 | 11,882 |
/*
* Copyright (C) 2013 salesforce.com, 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 ... | badlogicmanpreet/aura | aura-impl/src/main/java/org/auraframework/impl/system/DefinitionImpl.java | Java | apache-2.0 | 11,852 |
package com.planet_ink.fakedb;
import java.io.InputStream;
import java.io.Reader;
import java.sql.NClob;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLXML;
import java.util.Map;
/*
Copyright 2001 Thomas Neumann
Licensed under the Apache License, Version 2.0 (the "License")... | robjcaskey/Unofficial-Coffee-Mud-Upstream | com/planet_ink/fakedb/ResultSet.java | Java | apache-2.0 | 30,543 |
/**
* #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
* This file is part of the Smart Developer Hub Project:
* http://www.smartdeveloperhub.org/
*
* Center for Open Middleware
* http://www.centeropenmiddleware.com/
* #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-... | SmartDeveloperHub/sdh-scm-harvester | frontend/src/test/java/org/smartdeveloperhub/harvesters/scm/frontend/core/util/AbstractCappedContainerHandlerTestHelper.java | Java | apache-2.0 | 4,942 |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | JoyIfBam5/aws-sdk-cpp | aws-cpp-sdk-elasticache/source/model/DescribeReplicationGroupsResult.cpp | C++ | apache-2.0 | 2,624 |
/*
* Copyright 2002-2008 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... | cbeams-archive/spring-framework-2.5.x | src/org/springframework/beans/TypeMismatchException.java | Java | apache-2.0 | 3,697 |
<?php require_once(dirname(__FILE__).'/inc/config.inc.php');IsModelPriv('upload_file'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; char... | CQHanSa/lingang | adminhs/upload_file_do.php | PHP | apache-2.0 | 1,675 |
/*Copyright (c) 2004,University of Illinois at Urbana-Champaign. All rights reserved.
*
* Created on Jun 14, 2006
*
* Developed by: CCT, Center for Computation and Technology,
* NCSA, University of Illinois at Urbana-Champaign
* OSC, Ohio Supercomputing Center
* TACC, Texas Advanced Computing Cen... | SciGaP/SEAGrid-Desktop-GUI | src/main/java/org/gridchem/client/gui/filebrowser/FileBrowser.java | Java | apache-2.0 | 2,787 |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | chiaming0914/awe-cpp-sdk | aws-cpp-sdk-lex-models/source/LexModelBuildingServiceErrorMarshaller.cpp | C++ | apache-2.0 | 1,153 |
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
package dmltestgenerated
import (
json "encoding/json"
easyjson "github.com/mailru/easyjson"
jlexer "github.com/mailru/easyjson/jlexer"
jwriter "github.com/mailru/easyjson/jwriter"
)
// suppress unused package warning
var (
_ *json.RawMessa... | corestoreio/csfw | sql/dmlgen/dmltestgenerated/dmltestgenerated_easyjson.go | GO | apache-2.0 | 58,427 |
/*
* Copyright 2012 The Kuali Foundation.
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by applic... | Ariah-Group/Finance | af_webapp/src/main/java/org/kuali/kfs/sys/businessobject/format/ExplicitKualiDecimalFormatter.java | Java | apache-2.0 | 1,889 |
/*
* Copyright (C) Lightbend Inc. <https://www.lightbend.com>
*/
package com.lightbend.lagom.serialization;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.lightbend.lagom.javadsl.immutable.ImmutableStyle;
import org.immutables.value.Value;
import org.immutables.value.Value.Parameter;
... | lagom/lagom | jackson/src/test/java/com/lightbend/lagom/serialization/AbstractEvent2.java | Java | apache-2.0 | 559 |
package eu.darken.myolib.processor.classifier;
import eu.darken.myolib.processor.BaseDataPacket;
import eu.darken.myolib.tools.ByteHelper;
public class WarmUpResultClassifierEvent extends ClassifierEvent {
/**
* Possible warm-up results for Myo.
*/
public enum WarmUpResult {
UNKNOWN((byte) 0... | d4rken/myolib | myolib/src/main/java/eu/darken/myolib/processor/classifier/WarmUpResultClassifierEvent.java | Java | apache-2.0 | 1,487 |
# frozen_string_literal: true
require 'select2-rails'
require 'nest'
require 'redis-namespace'
require 'mailboxer'
require 'carrierwave'
require 'rails_autolink'
require 'font-awesome-rails'
require 'tinymce-rails'
require 'blacklight'
require 'blacklight/gallery'
require 'iiif_manifest'
require 'noid-rails'
require 'h... | samvera/hyrax | lib/hyrax.rb | Ruby | apache-2.0 | 3,563 |
package org.aisen.download;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import org.aisen.download.core.DownloadInfo;
import org.aisen.download.utils.Constants;
import org.aisen.download.utils.DLogger;
import java.util.Vector;
/**
* 用于刷新UI
*
* Created by wangdan on 16/6/14.
*/... | wangdan/DownloadManager | downloader/src/main/java/org/aisen/download/DownloadController.java | Java | apache-2.0 | 2,163 |
/*
* 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 not use... | t0nyren/spatedb | src/main/java/com/ricemap/spateDB/core/RTree.java | Java | apache-2.0 | 57,963 |
/*
* Copyright 2016 Greg Whitaker
*
* 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 ... | gregwhitaker/catnap | catnap-springboot/src/main/java/com/github/gregwhitaker/catnap/springboot/annotation/EnableCatnap.java | Java | apache-2.0 | 1,203 |
#
# Copyright (c) 2021 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | project-chip/connectedhomeip | scripts/tools/memory/memdf/util/pretty.py | Python | apache-2.0 | 957 |
package pl.dzielins42.dmtools.generator.religion;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import pl.dzielins42.dmtools.model.enumeration.Alignment;
import pl.dzielins42.dmtools.model.enumeration.Gender;
import pl.dzielins42.dmtools.model.religion.Deity;
import pl.dzielins42.dmtools... | dzielins42/urban-bear | src/main/java/pl/dzielins42/dmtools/generator/religion/BasicPantheonGenerator.java | Java | apache-2.0 | 5,109 |
package jp.co.thcomp.bluetoothhelper;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
public class BleReceiveDataProvider extends BleDataProvider {
public static final int AddPacketResultSuccess = -1;
public sta... | thcomp/Android_BluetoothHelper | app/src/main/java/jp/co/thcomp/bluetoothhelper/BleReceiveDataProvider.java | Java | apache-2.0 | 7,875 |
// Copyright (c) 2017, Baidu.com, Inc. All Rights Reserved
// 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 applic... | lingbin/palo | be/src/rpc/reactor_factory.cpp | C++ | apache-2.0 | 2,061 |
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Threading;
using System.Threading.Tasks;
namespace MunkeyIssues.Core.Data
{
public interface IDbContext
{
DbEntityEntry<TEntity> Entry<TEntity>(TEntity entity) where TEntity : class;
int SaveChanges();
... | munumafia/MunkeyIssues | MunkeyIssues.Core/Data/IDbContext.cs | C# | apache-2.0 | 468 |
/*
* Copyright 2021 Solace Corporation. All rights reserved.
*
* 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 ... | SolaceSamples/solace-samples-java | src/main/java/com/solace/samples/java/snippets/HowToConsumeDirectMessage.java | Java | apache-2.0 | 11,744 |
import {Component} from '@angular/core';
import * as $ from "jquery"
import {downgradeComponent} from '@angular/upgrade/static';
import {NotificationService} from "../../core/services/notification.service";
import {AgentService} from "../../core/services/agent.service";
declare var angular:any
@Component({
select... | orientechnologies/orientdb-studio | src/app/administration/scheduler/scheduler.component.ts | TypeScript | apache-2.0 | 804 |
/*
* Copyright 2010-2012 Luca Garulli (l.garulli--at--orientechnologies.com)
*
* 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
*
* Un... | delebash/orientdb-parent | enterprise/src/main/java/com/orientechnologies/orient/enterprise/channel/binary/OAsynchChannelServiceThread.java | Java | apache-2.0 | 2,656 |
import Future = require("fibers/future");
import { AddPlatformCommand } from "./add-platform";
export class BuildCommandBase {
constructor(protected $options: IOptions,
private $platformService: IPlatformService) { }
executeCore(args: string[], buildConfig?: IBuildConfig): IFuture<void> {
return (() => {
let... | tsvetie/nativescript-cli | lib/commands/build.ts | TypeScript | apache-2.0 | 3,172 |
<?php
/************************************************************************/
/* ATutor */
/************************************************************************/
/* Copyright (c) 2002-2010 */
/* Inclusive Design Institute ... | CaviereFabien/Test | ATutor/new_mods/_standard/forums/admin/forum_add.php | PHP | apache-2.0 | 2,711 |
package project2.jdbc.bean;
import org.json.JSONObject;
public class OrderSingleBean {
private int qty;
private double unit_price;
private int movie_id;
private String title;
public int getQty() {
return qty;
}
public void setQty(int qty) {
this.qty = qty;
}
public double getUnit_pri... | CS122B-CWP/cs122b | project2/src/main/java/project2/jdbc/bean/OrderSingleBean.java | Java | apache-2.0 | 1,033 |
/*
* Licensed to GraphHopper GmbH under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* GraphHopper GmbH licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not ... | don-philipe/graphhopper | core/src/main/java/com/graphhopper/util/gpx/GpxFromInstructions.java | Java | apache-2.0 | 10,232 |
package com.coolweather.app.receiver;
import com.coolweather.app.service.AutoUpdateService;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class AutoUpdateReceiver extends BroadcastReceiver{
@Override
public void onReceive(Context context,Intent i... | lpff/coolweather | src/com/coolweather/app/receiver/AutoUpdateReceiver.java | Java | apache-2.0 | 419 |
package com.google.ratel.deps.jackson.databind.jsonschema;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
import com.google.ratel.deps.jackson.annotation.JacksonAnnotation;
/**
* Annotation that can be ... | sabob/ratel | ratel/src/com/google/ratel/deps/jackson/databind/jsonschema/JsonSerializableSchema.java | Java | apache-2.0 | 2,431 |
var __window = window;
var destringify = function(date) {
if (date != null && 'string' === typeof(date)) return new Date(date);
return date;
}
var stringify = function(date) {
if (!date) return null;
return dateFormat(date, "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'");
}
var stringreplaceall = function(target, searc... | KritikalFabric/corefabric.io | a2/static/vendor/unclassified/destringify.js | JavaScript | apache-2.0 | 629 |
// 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 ma... | dafrista/incubator-reef | lang/cs/Org.Apache.REEF.Client/YARN/RESTClient/FileSystemJobResourceUploader.cs | C# | apache-2.0 | 5,169 |
import java.util.Random;
public class _0382LinkedListRandomNode {
ListNode head;
Random r;
public _0382LinkedListRandomNode(ListNode head) {
this.head = head;
r = new Random();
}
public int getRandom() {
ListNode thisN = head;
ListNode result = null;
for (int n = 1; ... | im-sure/LeetCode | src/_0382LinkedListRandomNode.java | Java | apache-2.0 | 550 |
package org.wildfly.swarm.webservices.runtime;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import org.wildfly.swarm.container.Interface;
import org.wildfly.swarm.spi.api.Customizer;
import org.wildfly.swarm.spi.runtime.annotations.Post;
import org.wildfly.swarm.webservices.WebServic... | christian-posta/wildfly-swarm | fractions/javaee/webservices/src/main/java/org/wildfly/swarm/webservices/runtime/WSDLHostCustomizer.java | Java | apache-2.0 | 693 |
package com.thilinamb.mqtt.client.sub;
import org.eclipse.paho.client.mqttv3.IMqttDeliveryToken;
import org.eclipse.paho.client.mqttv3.MqttCallback;
import org.eclipse.paho.client.mqttv3.MqttMessage;
import java.util.logging.Logger;
/**
* Subscriber callback
* Author: Thilina
* Date: 7/19/14
*/
public class Subs... | thilinamb/mqtt-client-example | src/main/java/com/thilinamb/mqtt/client/sub/SubscriberCallback.java | Java | apache-2.0 | 882 |
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.math.matrix;
import java.util.Arrays;
import org.apache.commons.lang.Validate;
/**
* A minimal implementation of a vector (in the mathematical sen... | McLeodMoores/starling | projects/analytics/src/main/java/com/opengamma/analytics/math/matrix/DoubleMatrix1D.java | Java | apache-2.0 | 3,045 |
/*****************************************************************************
* *
* This file is part of the tna framework distribution. *
* Documentation and updates may be get from biaoping.yin the author of *
* ... | shufudong/bboss | bboss-persistent/src/com/frameworkset/common/poolman/sql/PrimaryKeyCache.java | Java | apache-2.0 | 5,515 |
package packages
import (
"testing"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/stretchr/testify/assert"
)
func TestNewPackageFromImage(t *testing.T) {
// with tag
pkg, err := NewPackageFromImage("whalebrew/foo:bar", types.ImageInspect{})
assert.Nil(t, err)
... | 3846masa/whalebrew | packages/package_test.go | GO | apache-2.0 | 1,893 |
package ru.stqa.pft.mantis.appmanager;
import org.apache.http.HttpEntity;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.Ht... | mynewyear/java_pft | mantis-tests/src/test/java/ru/stqa/pft/mantis/appmanager/HttpSession.java | Java | apache-2.0 | 2,406 |
/**
* Copyright (C) 2013 Julian Atienza Herrero <j.atienza at har.mrc.ac.uk>
*
* MEDICAL RESEARCH COUNCIL UK MRC
*
* Harwell Mammalian Genetics Unit
*
* http://www.har.mrc.ac.uk
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the Licens... | mpi2/exportlibrary | exportlibrary.xmlvalidationresourcescollection/src/test/java/org/mousephenotype/dcc/exportlibrary/xmlvalidationresourcescollection/impress/utils/InstantiatorTest.java | Java | apache-2.0 | 3,784 |
# (c) Copyright 2020 Hewlett Packard Enterprise Development LP
#
# 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... | HewlettPackard/oneview-chef | libraries/resource_providers/api2000/synergy/scope_provider.rb | Ruby | apache-2.0 | 803 |
namespace De.Osthus.Ambeth.Ioc
{
public interface IInitializingBean
{
void AfterPropertiesSet();
}
}
| Dennis-Koch/ambeth | ambeth/Ambeth.IoC/ambeth/ioc/IInitializingBean.cs | C# | apache-2.0 | 125 |
package edu.colostate.cs.storm.util;
import java.util.HashSet;
import java.util.Set;
/**
* Author: Thilina
* Date: 12/6/14
*/
public class OutlierTracker {
private Set<String> completeSet = new HashSet<String>();
private Set<String> outlierSet = new HashSet<String>();
public void addMember(String key)... | thilinamb/debs14-grand-challenge | src/main/java/edu/colostate/cs/storm/util/OutlierTracker.java | Java | apache-2.0 | 810 |
/**
* 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... | CesarPantoja/jena | jena-arq/src/main/java/org/apache/jena/riot/system/StreamRDFLib.java | Java | apache-2.0 | 7,950 |
/*
* Copyright 1999-2020 Alibaba Group Holding Ltd.
*
* 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 applica... | alibaba/nacos | api/src/main/java/com/alibaba/nacos/api/remote/response/ResponseCode.java | Java | apache-2.0 | 1,875 |
package cn.springmvc.service;
public interface ShopService {
}
| JoshEliYang/PriceTag | src/main/java/cn/springmvc/service/ShopService.java | Java | apache-2.0 | 65 |
import sys
import cv2
import helper as hp
class MSP():
name = "MSP"
def __init__(self):
self.__patterns_num = []
self.__patterns_sym = []
self.__labels_num = []
self.__labels_sym = []
msp_num, msp_sym = "msp/num", "msp/sym"
self.__load_num_patterns(msp_num)
... | capital-boss/plate-recognition | msp.py | Python | apache-2.0 | 1,393 |
# Copyright 2015 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, sof... | openstack/vitrage-dashboard | vitrage_dashboard/alarms/panel.py | Python | apache-2.0 | 733 |
/**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | is-apps/NotificationPortlet | notification-portlet-webapp/src/main/java/org/jasig/portlet/notice/service/jpa/action/CompleteOnRedirectAction.java | Java | apache-2.0 | 2,861 |
namespace Org.LoadRunner.Core.Models
{
internal class RequestResult : BaseResult
{
public int Id { get; set; }
}
}
| unruledboy/loadrunner | LoadRunner/Core/Models/RequestResult.cs | C# | apache-2.0 | 145 |
/**
* Copyright 2008-2017 Qualogy Solutions B.V.
*
* 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... | qafedev/qafe-platform | qafe-business/src/test/java/test/com/qualogy/qafe/business/integration/adapter/DummyPersonMoreComplexObject.java | Java | apache-2.0 | 1,065 |
/******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* 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
... | startcode/apollo | modules/perception/obstacle/lidar/roi_filter/hdmap_roi_filter/polygon_mask.cc | C++ | apache-2.0 | 4,510 |
// <copyright file="Error.cs" company="Stormpath, Inc.">
// Copyright (c) 2016 Stormpath, 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/L... | stormpath/stormpath-dotnet-owin-middleware | src/Stormpath.Owin.Middleware/Internal/QueryStringParser.cs | C# | apache-2.0 | 2,182 |
/*!
* ${copyright}
*/
sap.ui.define([
"sap/base/Log",
"sap/ui/model/odata/v4/lib/_GroupLock"
], function (Log, _GroupLock) {
"use strict";
//*********************************************************************************************
QUnit.module("sap.ui.model.odata.v4.lib._GroupLock", {
beforeEach : functio... | SAP/openui5 | src/sap.ui.core/test/sap/ui/core/qunit/odata/v4/lib/_GroupLock.qunit.js | JavaScript | apache-2.0 | 7,157 |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... | TatsianaKasiankova/pentaho-kettle | engine/src/main/java/org/pentaho/di/job/entries/deletefolders/JobEntryDeleteFolders.java | Java | apache-2.0 | 15,930 |
/*
* Copyright 2019 EPAM Systems
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | reportportal/service-api | src/main/java/com/epam/ta/reportportal/ws/controller/FileStorageController.java | Java | apache-2.0 | 5,705 |
package org.flysnow.cloud.buildmeta.ui.resteasy.exception;
import java.io.Serializable;
public class BuildMetadataServiceException extends RuntimeException implements Serializable {
private static final long serialVersionUID = 7786141544419367058L;
public BuildMetadataServiceException(){
super();
}
public B... | shensiduanxing/devops-metadata-svc | src/main/java/org/flysnow/cloud/buildmeta/ui/resteasy/exception/BuildMetadataServiceException.java | Java | apache-2.0 | 557 |
// Copyright 2005-2010 Gallio Project - http://www.gallio.org/
// Portions Copyright 2000-2004 Jonathan de Halleux
//
// 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.a... | citizenmatt/gallio | src/Extensions/VisualStudio/Gallio.VisualStudio.Shell/UI/ToolWindows/DefaultToolWindowManager.cs | C# | apache-2.0 | 2,771 |
"""
.. module: lemur.authorizations.models
:platform: unix
:copyright: (c) 2018 by Netflix Inc., see AUTHORS for more
:license: Apache, see LICENSE for more details.
.. moduleauthor:: Netflix Secops <secops@netflix.com>
"""
from sqlalchemy import Column, Integer, String
from sqlalchemy_utils import JSONType... | Netflix/lemur | lemur/authorizations/models.py | Python | apache-2.0 | 1,090 |
// Copyright (c) 2021 Alachisoft
//
// 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... | Alachisoft/NCache | Src/NCStorage/StorageProviders/InMemoryStorageProvider.cs | C# | apache-2.0 | 2,188 |
<?php
/**
* 允许的站内链接
*
* @version $Id: article_allowurl_edit.php 1 11:36 2010年10月8日Z tianya $
* @package DedeCMS.Administrator
* @copyright Copyright (c) 2007 - 2010, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
requ... | jackysong/huolg | nidongde/article_allowurl_edit.php | PHP | apache-2.0 | 1,313 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# Copyright 2013, 2014 Kitware 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... | opadron/girder | plugins/provenance/plugin_tests/provenance_test.py | Python | apache-2.0 | 17,716 |
require 'spec_helper_acceptance'
describe 'ini_setting resource' do
after :all do
shell("rm /tmp/*.ini", :acceptable_exit_codes => [0,1])
end
shared_examples 'has_content' do |path,pp,content|
before :all do
shell("rm #{path}", :acceptable_exit_codes => [0,1])
end
after :all do
shell... | justinstoller/puppetlabs-inifile | spec/acceptance/ini_setting_spec.rb | Ruby | apache-2.0 | 8,942 |
/*
* Copyright 2014 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 applicab... | donbeave/grails-console-charts | src/gwt/grails/plugin/console/charts/client/gin/DesktopModule.java | Java | apache-2.0 | 1,050 |
/*
* In the name of Allah
* This file is part of The "Quran Teacher or Learn Arabic" Project. Use is subject to
* license terms.
*
* @author: Fazle Rabbi Rahat
*
*/
package QuranTeacher;
import javax.swing.ButtonGroup;
import javax.swing.JComboBox;
import javax.swing.JPanel;
import java.... | adeelahmedkhanabbasi/QuranTeacher | QuranTeacher/src/QuranTeacher/ AudioPreferencesPanel.java | Java | apache-2.0 | 6,792 |
/*分页JS*/
var rsss = false;
$(function () {
$(".leftNav_side").css("min-height", $(".leftNav_side").height());
$(window).resize(function () {
$(".leftNav_side").height($(window).height());
}).trigger("resize");//左侧菜单高度自适应,但是保留内容最小高度
//切换左导航一级菜单
$(".Nav_lvl dt").click(function () {
... | iminto/baicai | src/main/webapp/manage/js/navleft.js | JavaScript | apache-2.0 | 4,114 |
import {
store
} from '../store.js';
import {
selectGameCurrentState,
selectGameChest,
selectGameName
} from '../selectors.js';
import {
deepCopy,
getProperty,
setPropertyInClone
} from '../util.js';
export const UPDATE_GAME_ROUTE = 'UPDATE_GAME_ROUTE';
export const UPDATE_GAME_STATIC_INFO = "UPDATE_GA... | jkomoros/boardgame | server/static/src/actions/game.js | JavaScript | apache-2.0 | 7,052 |
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
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 a... | aam-at/tensorflow | tensorflow/core/profiler/utils/event_span.cc | C++ | apache-2.0 | 16,952 |