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 |
|---|---|---|---|---|---|
package com.macro.mall.dao;
import com.macro.mall.model.PmsProductLadder;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 会员阶梯价格自定义Dao
* Created by macro on 2018/4/26.
*/
public interface PmsProductLadderDao {
/**
* 批量创建
*/
int insertList(@Param("list") List<PmsProductLa... | macrozheng/mall | mall-admin/src/main/java/com/macro/mall/dao/PmsProductLadderDao.java | Java | apache-2.0 | 374 |
/*
* Copyright 2022 Apollo 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... | nobodyiam/apollo | apollo-configservice/src/main/java/com/ctrip/framework/apollo/metaservice/service/DefaultDiscoveryService.java | Java | apache-2.0 | 2,374 |
__source__ = 'https://leetcode.com/problems/knight-dialer/'
# Time: O(N)
# Space: O(1)
#
# Description: Leetcode # 935. Knight Dialer
#
# A chess knight can move as indicated in the chess diagram below:
#
# This time, we place our chess knight on any numbered key of a phone pad (indicated above),
# and the knight make... | JulyKikuAkita/PythonPrac | cs15211/KnightDialer.py | Python | apache-2.0 | 4,651 |
import { blue6, gold6, grey7, grey9, red6 } from "./colors";
/*
SIZES
*/
export const FONT_SIZE_DEFAULT = "14px";
export const FONT_SIZE_LARGE = "16px";
export const FONT_SIZE_SMALL = "12px";
/*
WEIGHTS
*/
export const FONT_WEIGHT_DEFAULT = 300;
export const FONT_WEIGHT_HEAVY = 500;
/*
COLOURS
*/
export const FON... | phac-nml/irida | src/main/webapp/resources/js/styles/fonts.js | JavaScript | apache-2.0 | 727 |
package algebralearning;
import org.sat4j.specs.TimeoutException;
import algebralearning.equality.EqualityAlgebraLearnerFactory;
import algebralearning.sfa.SFAAlgebraLearner;
import algebralearning.sfa.SFAEquivalenceOracle;
import algebralearning.sfa.SFAMembershipOracle;
import automata.sfa.SFA;
import theory.charact... | lorisdanto/symbolicautomata | benchmarks/src/main/java/algebralearning/RELearning.java | Java | apache-2.0 | 4,269 |
/*
* Copyright 2016 OPEN TONE 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 ... | otsecbsol/linkbinder | linkbinder-framework-core/src/main/java/net/java/amateras/xlsbeans/xml/DynamicAnnotationBuilder.java | Java | apache-2.0 | 4,346 |
/*
* Orika - simpler, better and faster Java bean mapping
*
* Copyright (C) 2011-2013 Orika 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.apach... | orika-mapper/orika | core/src/main/java/ma/glasnost/orika/MapperBase.java | Java | apache-2.0 | 2,814 |
package ru.salauyou.util.collect;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Deque;
import java.util.Iterator;
import java.util.L... | Salauyou/Java-Utils | src/test/java/ru/salauyou/util/collect/TestMinMaxHeapDeque.java | Java | apache-2.0 | 6,052 |
/*
* Copyright 2010-2016 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 "lice... | trasa/aws-sdk-java | aws-java-sdk-cognitosync/src/main/java/com/amazonaws/services/cognitosync/model/DescribeIdentityPoolUsageResult.java | Java | apache-2.0 | 3,879 |
import '@polymer/polymer/polymer-legacy.js';
import {PolymerElement} from '@polymer/polymer/polymer-element.js';
import Dexie from 'dexie';
import EtoolsAjaxRequestMixin from '../etools-ajax-request-mixin.js';
// set logging level
window.EtoolsLogsLevel = window.EtoolsLogsLevel || 'INFO';
// custom dexie db that will b... | unicef-polymer/etools-ajax | demo/direct-etools-ajax-requests.js | JavaScript | apache-2.0 | 6,501 |
/**
* Copyright (c) 2014 SQUARESPACE, 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 agr... | phensley/less-compiler | less-core/src/main/java/com/squarespace/less/parse/VariableCurlyParselet.java | Java | apache-2.0 | 1,496 |
/* Copyright 2016 Mozilla Foundation
*
* 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... | nawawi/pdf.js | web/toolbar.js | JavaScript | apache-2.0 | 9,112 |
/**
* Copyright 2005-2014 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 requ... | ua-eas/ksd-kc5.2.1-rice2.3.6-ua | rice-framework/krad-web-framework/src/main/java/org/kuali/rice/krad/uif/element/Header.java | Java | apache-2.0 | 17,458 |
/**
* Copyright (C) 2016 - 2030 youtongluan.
*
* 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... | youtongluan/sumk | src/main/java/org/yx/db/mapper/SqlXmlBuilderFactory.java | Java | apache-2.0 | 2,429 |
package rds
//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, software
//distribut... | xiaozhu36/terraform-provider | vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/rds/struct_items_in_describe_instance_auto_renewal_attribute.go | GO | apache-2.0 | 879 |
/*
* Copyright 2013-2016 consulo.io
*
* 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 ... | consulo/consulo | modules/base/compiler-impl/src/main/java/consulo/packaging/impl/artifacts/ZipArtifactType.java | Java | apache-2.0 | 1,761 |
package thappstudios.android.miniapps.util;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import thappstudios.android.miniapps.apps.Browser;
public class BrowserViewClient extends WebViewClient {
private Browser mBrowser;
public BrowserViewClient(Browser browser) {
// TODO Aut... | yannick189/Mini-Apps | src/thappstudios/android/miniapps/util/BrowserViewClient.java | Java | apache-2.0 | 682 |
/* Copyright (C) 2013-2020 TU Dortmund
* This file is part of AutomataLib, http://www.automatalib.net/.
*
* 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/li... | misberner/automatalib | util/src/main/java/net/automatalib/util/minimizer/OneSEVPAMinimizer.java | Java | apache-2.0 | 10,006 |
package com.porterhead.oauth2.postgres;
/**
* Created by ctg on 12/1/15.
*/
public class PostgresRepositoryTokenStore {
}
| chithanh12/oauth2 | src/main/java/com/porterhead/oauth2/postgres/PostgresRepositoryTokenStore.java | Java | apache-2.0 | 125 |
package com.github.kubatatami.richedittext.styles.binary;
import android.annotation.SuppressLint;
import android.graphics.Typeface;
import org.xml.sax.Attributes;
import java.util.Map;
public class BoldSpanController extends FontStyleSpanController {
public BoldSpanController() {
super(Typeface.BOLD, "... | kubatatami/RichEditText | lib/src/main/java/com/github/kubatatami/richedittext/styles/binary/BoldSpanController.java | Java | apache-2.0 | 1,167 |
using System;
namespace Merlion.Utils
{
public static class HexEncoder
{
static int DigitFromHex(char c)
{
if (c >= '0' && c <= '9')
return c - '0';
if (c >= 'a' && c <= 'f')
return c - 'a' + 10;
if (c >= 'A' && c <= 'F')
return c - 'A' + 10;
throw new FormatException ("Input string cont... | yvt/Merlion | Merlion/Utils/HexEncoder.cs | C# | apache-2.0 | 1,288 |
/* Copyright 2013-2014 Miguel Vicente Linares
*
* 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... | miviclin/droidengine2d-demos | src/com/miviclin/droidengine2ddemos/input/accelerometer/AccelerometerDemoGame.java | Java | apache-2.0 | 1,102 |
package org.iotp.analytics.ruleengine.core.plugin.telemetry.cmd;
/**
*/
public interface TelemetryPluginCmd {
int getCmdId();
void setCmdId(int cmdId);
String getKeys();
}
| osswangxining/iotplatform | iot-ruleengine/ruleengine-core/src/main/java/org/iotp/analytics/ruleengine/core/plugin/telemetry/cmd/TelemetryPluginCmd.java | Java | apache-2.0 | 184 |
/*
* Copyright 2015 Tom Gibara
*
* 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 ... | tomgibara/bits | src/test/java/com/tomgibara/bits/BytesBitStoreTest.java | Java | apache-2.0 | 970 |
/*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2017 GwtMaterialDesign
* %%
* 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
* ... | GwtMaterialDesign/gwt-material-addins | src/main/java/gwt/material/design/addins/client/iconmorph/MaterialIconMorphDebugClientBundle.java | Java | apache-2.0 | 1,178 |
"use strict";
var utils = exports;
var emitter = require('./emitter');
/**
* @returns {window}
*/
utils.getWindow = function () {
return window;
};
/**
*
* @returns {HTMLDocument}
*/
utils.getDocument = function () {
return document;
};
/**
* Get the current x/y position crossbow
* @returns {{x: *, y... | BrowserSync/browser-sync-core | client/lib/browser.utils.js | JavaScript | apache-2.0 | 3,359 |
<?php
/**
* Description of AlertQueries
*
* @author ben.dokter
*/
require_once('application/model/value/databaseValueConsts.inc.php');
class AlertQueries {
static function getOpenAlertsAsSender($i_employee_id)
{
$sql = 'SELECT
e.ID_E,
COUNT(*) alert_count
... | joris520/broodjesalami | php_cm/modules/model/queries/to_refactor/AlertQueries.class.php | PHP | apache-2.0 | 6,749 |
from setuptools import setup, find_packages
setup(
name = "scorecard",
version = "0.1",
packages = find_packages()
)
| opme/SurgeonScorecard | python/setup.py | Python | apache-2.0 | 135 |
package com.example.weather.gson;
import com.google.gson.annotations.SerializedName;
/**
* Created by johnny on 2017/8/14.
*/
public class Suggestion {
@SerializedName("comf")
public Comfort comfort;
@SerializedName("cw")
public CarWash carWash;
public Sport sport;
public class Comfort{... | MrfrankyLee/Weather | app/src/main/java/com/example/weather/gson/Suggestion.java | Java | apache-2.0 | 571 |
import inspect
import typing as t
from functools import wraps
from .utils import _PassArg
from .utils import pass_eval_context
V = t.TypeVar("V")
def async_variant(normal_func): # type: ignore
def decorator(async_func): # type: ignore
pass_arg = _PassArg.from_obj(normal_func)
need_eval_context... | sonntagsgesicht/regtest | .aux/venv/lib/python3.9/site-packages/jinja2/async_utils.py | Python | apache-2.0 | 1,751 |
<?php
use Aws\Laravel\AwsServiceProvider;
use Illuminate\Foundation\Application;
return [
/*
|--------------------------------------------------------------------------
| AWS SDK Configuration
|--------------------------------------------------------------------------
|
| The configuration op... | phazei/aws-sdk-php-laravel | config/aws.php | PHP | apache-2.0 | 972 |
package org.sunger.net.util;
import android.content.Context;
/**
* 数据转换类
* Created by xuebp on 2016/1/26.
*/
public final class ConvertUtils {
private static final float UNIT = 1000.0F;
/**
* 毫秒转秒
*
* @param time 毫秒
* @return
*/
public static float ms2s(long time) {
re... | XueBaoPeng/ningxiaVideo | app/src/main/java/org/sunger/net/util/ConvertUtils.java | Java | apache-2.0 | 3,896 |
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
import { ActivatedRoute, ParamMap } from '@angular/router';
import 'rxjs/add/operator/switchMap';
import { PhotoService } from '../../services/photo.service';
import { API } from '../../services/api.const';
@Component({
selector: 'app-generato... | CaoYouXin/serveV2 | html/albumConsole/src/app/video/generator/generator.component.ts | TypeScript | apache-2.0 | 2,310 |
/*
* Copyright © 2016 EDDiscovery development team
*
* 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... | jeoffman/EDDiscovery | EDDiscovery/EliteDangerous/JournalEvents/JournalPowerplayJoin.cs | C# | apache-2.0 | 1,258 |
/*******************************************************************************
* Copyright 2010 Dieselpoint, 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:... | Spantree/openpipeline | src/main/java/org/openpipeline/server/pages/SetSchedulePage.java | Java | apache-2.0 | 6,419 |
/*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | equella/Equella | Source/Plugins/Core/com.equella.core/src/com/tle/core/connectors/equella/service/EquellaConnectorService.java | Java | apache-2.0 | 16,829 |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class InventoryManager : MonoBehaviour
{
public List<InventoryItem> inventoryObjects = new List<InventoryItem>();
public int numCells;
public float height;
public float width;
public float yPosition;
public MissionManager m... | nycynik/threecees | 3Cs/Assets/GameItems/InventoryManager.cs | C# | apache-2.0 | 3,720 |
package com.example.SimpleGoogleApp;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import ext.android.utils.AppSettings;
import ext.SimpleGoogle.SimpleGoogle;
import ext.java.threading.Callb... | java-extensions/android-simple-google | android-simple-google-demo/src/com/example/SimpleGoogleApp/MyActivity.java | Java | apache-2.0 | 2,919 |
import pytest
from insights.tests import context_wrap
from insights.parsers import ParseException
from insights.parsers.mongod_conf import MongodbConf
NORMAL_CONF = """
# mongodb.conf - generated from Puppet
#where to log
logpath=/var/log/mongodb/mongodb.log
logappend=true
# Set this option to configure the mongod ... | wcmitchell/insights-core | insights/parsers/tests/test_mongod_conf.py | Python | apache-2.0 | 3,241 |
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2... | falko/camunda-bpm-platform | engine/src/test/java/org/camunda/bpm/engine/test/api/multitenancy/MultiTenancySingleProcessInstanceModificationAsyncTest.java | Java | apache-2.0 | 7,828 |
/*
* Copyright (c) 2016-2018, Christoph Engelbert (aka noctarius) and
* contributors. 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/li... | noctarius/borabora | src/test/java/com/noctarius/borabora/impl/QueryParserCoverageTestCase.java | Java | apache-2.0 | 1,914 |
package ru.spbau.svidchenko.asteroids_project.game_logic.player;
import ru.spbau.svidchenko.asteroids_project.game_logic.world.Entity;
import ru.spbau.svidchenko.asteroids_project.game_logic.world.RelativeWorldModel;
import ru.spbau.svidchenko.asteroids_project.game_logic.world.Ship;
import java.util.List;
public ab... | ArgentumWalker/asteroids-project | game-logic/src/main/java/ru/spbau/svidchenko/asteroids_project/game_logic/player/Player.java | Java | apache-2.0 | 769 |
# Copyright 2022 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 t... | GoogleCloudPlatform/professional-services | tools/iam-permissions-copier/inventory/cai.py | Python | apache-2.0 | 1,851 |
/*
* Copyright 2016 Fixstars Corporation.
*
* 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 ... | fixstars/m3bp | test/util/processors/input_deserializer.hpp | C++ | apache-2.0 | 2,449 |
<?php
/**
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
*/
namespace Magento\Backend\Model\Config\Structure\Element\Group;
class Proxy extends \Magento\Backend\Model\Config\Structure\Element\Group
{
/**
* Object manager
* @var \Magento\Framework\ObjectManagerInterfac... | webadvancedservicescom/magento | app/code/Magento/Backend/Model/Config/Structure/Element/Group/Proxy.php | PHP | apache-2.0 | 5,046 |
/*
* Copyright 2009-2017. DigitalGlobe, 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 ... | ngageoint/mrgeo | mrgeo-core/src/main/java/org/mrgeo/utils/S3Utils.java | Java | apache-2.0 | 30,242 |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.sql.expression.function.scalar.datetime;
impo... | coding0011/elasticsearch | x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/expression/function/scalar/datetime/DatePartPipe.java | Java | apache-2.0 | 1,359 |
/*
* Rittner_Agilent7700_RawDataTemplate
*
* Copyright 2006-2015 James F. Bowring and www.Earth-Time.org
*
* 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... | clementparizot/ET_Redux | src/main/java/org/earthtime/Tripoli/rawDataFiles/templates/Rittner_Agilent7700_RawDataTemplate.java | Java | apache-2.0 | 2,437 |
package org.codehaus.mojo.dashboard.report.plugin.configuration;
/*
* Copyright 2007 David Vicente
*
* 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/licen... | progosch/dashboard-maven-plugin | src/main/java/org/codehaus/mojo/dashboard/report/plugin/configuration/Configuration.java | Java | apache-2.0 | 1,745 |
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.Runtime.Serialization;
namespace InstaSharp.Models
{
[JsonConverter(typeof(StringEnumConverter))]
public enum IncomingStatus
{
[EnumMember(Value = "followed_by")]
FollowedBy,
[EnumMember(Value = "requested_by")]
... | InstaSharp/InstaSharp | src/InstaSharp/Models/IncomingStatus.cs | C# | apache-2.0 | 469 |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
namespace ListMetricsExample
{
// snippet-start:[CloudWatch.dotnetv3.ListMetricsExample]
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Amazon.CloudWat... | awsdocs/aws-doc-sdk-examples | dotnetv3/CloudWatch/ListMetricsExample/ListMetricsExample/ListMetrics.cs | C# | apache-2.0 | 3,087 |
package com.elastisys.scale.commons.rest.auth;
import org.jose4j.jwk.RsaJsonWebKey;
import org.jose4j.jwt.JwtClaims;
import org.jose4j.jwt.NumericDate;
import org.jose4j.jwt.consumer.InvalidJwtException;
import org.jose4j.jwt.consumer.JwtConsumer;
import org.jose4j.jwt.consumer.JwtConsumerBuilder;
import org.slf4j.Log... | elastisys/scale.commons | rest/src/test/java/com/elastisys/scale/commons/rest/auth/AsymmetricKeyAuthTokenValidator.java | Java | apache-2.0 | 2,679 |
/* Copyright 2014 Rick Warren
*
* 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 writ... | rickbw/crud-voldemort | src/main/java/crud/voldemort/VoldemortResourceProvider.java | Java | apache-2.0 | 1,302 |
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.... | wso2/product-mss | core/src/main/java/org/wso2/msf4j/internal/websocket/EndpointValidator.java | Java | apache-2.0 | 14,197 |
package com.monospace.framework;
import com.monospace.framework.Graphics.ImageFormat;
import android.graphics.Paint;
public interface Graphics {
public static enum ImageFormat {
ARGB8888, ARGB4444, RGB565
}
public Image newImage(String fileName, ImageFormat format);
public void clearScreen(int color);
pub... | TaintedWind/MonospaceAndroidEdition | src/com/monospace/framework/Graphics.java | Java | apache-2.0 | 1,122 |
package api
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io"
"net/url"
"os"
"strconv"
)
type DocumentResponse struct {
Id string `json:"id,omitempty"`
Title string `json:"title,omitempty"`
Content string `json:"content,omitempty"`
ContentType string `json:"contentType,omitempty"`
O... | ncarlier/keeper-cli | api/document.go | GO | apache-2.0 | 2,709 |
/*
* Copyright (c) 2005-2013 Clark & Parsia, LLC. <http://www.clarkparsia.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
*
* Unless ... | schwarzmx/cp-common-utils | core/main/src/com/complexible/common/io/ForwardingDataInput.java | Java | apache-2.0 | 3,457 |
/*
* 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-opsworks/src/main/java/com/amazonaws/services/opsworks/model/transform/UnassignVolumeRequestProtocolMarshaller.java | Java | apache-2.0 | 2,683 |
/*
* Copyright 2017 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apa... | agolPL/keycloak | testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/util/saml/CreateLogoutRequestStepBuilder.java | Java | apache-2.0 | 4,074 |
<?php $TRANSLATIONS = array(
"Contacts" => "Kontaktai",
"Save" => "Išsaugoti",
"Uploading..." => "Įkeliama...",
"Importing..." => "Importuojama...",
"Preparing..." => "Ruošiama...",
"Imported {count} of {total} contacts" => "Importuota {count} iš {total} kontaktų",
"Imported {imported} contacts. {failed} failed." => "I... | ArcherCraftStore/ArcherVMPeridot | apps/owncloud/htdocs/apps/contacts/l10n/lt_LT.php | PHP | apache-2.0 | 14,004 |
// Copyright 2013, 2014 MongoDB, 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 agree... | tolsen/slogger | v2/slogger/rolling_file_appender/rolling_file_appender.go | GO | apache-2.0 | 11,316 |
/*
* Copyright 2000-2009 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... | consulo/consulo | modules/base/lang-impl/src/main/java/com/intellij/ide/impl/dataRules/VirtualFileArrayRule.java | Java | apache-2.0 | 5,692 |
package com.nollec.myservice;
<<<<<<< HEAD
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import com.android.volley.toolbox.Volley;
import com.example.myservice.R;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserFactory;
import java.io.Str... | songyang2088/A-week-to-develop-android-app-plan | 001_FeatureGuide/myservice/src/main/java/com/nollec/myservice/MainActivity.java | Java | apache-2.0 | 4,334 |
/*
* Copyright 2014-2019 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... | jentfoo/aws-sdk-java | aws-java-sdk-codecommit/src/main/java/com/amazonaws/services/codecommit/model/transform/GetMergeCommitResultJsonUnmarshaller.java | Java | apache-2.0 | 3,601 |
using Nest;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace _1_RabbitMq_Mapping_ElasticSearch.Mapping
{
public static class GeoUtil
{
public static Dictionary<string, ... | AlexanderMykulych/InterflowFramework | InterflowFramework/1_RabbitMq-Mapping-ElasticSearch/Mapping/GeoUtil.cs | C# | apache-2.0 | 1,399 |
//
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2 generiert
// Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2016.03.16... | milg0/onvif-java-lib | src/org/onvif/ver10/events/wsdl/GetEventPropertiesResponse.java | Java | apache-2.0 | 11,762 |
package com.crawljax.condition;
import net.jcip.annotations.Immutable;
import com.crawljax.browser.EmbeddedBrowser;
/**
* Conditions that returns true iff the browser's current url contains url. Note: Case insesitive
*
* @author dannyroest@gmail.com (Danny Roest)
*/
@Immutable
public class UrlCondition extends ... | saltlab/crawljax-graphdb | core/src/main/java/com/crawljax/condition/UrlCondition.java | Java | apache-2.0 | 603 |
'use strict';
// Convenient Node cluster setup, which monitors and restarts child processes
// as needed. Creates workers, monitors them, restarts them as needed, and
// manages the flow of event messages between the cluster master and the
// workers.
// We use process.exit() intentionally here
/* eslint no-process-e... | sasrin/cf-abacus | lib/utils/cluster/src/index.js | JavaScript | apache-2.0 | 10,064 |
/*
* Copyright 2012-2014 MarkLogic Corporation
*
* 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... | grechaw/java-client-api | src/main/java/com/marklogic/client/impl/TextDocumentImpl.java | Java | apache-2.0 | 1,051 |
/* Copyright 2018 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... | tensorflow/java | tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/EmptyTensorMap.java | Java | apache-2.0 | 2,823 |
/*
Copyright 2014 Google 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 agreed to in ... | Tong-Chen/genomics-tools | readstore-local-java/src/main/java/com/google/cloud/genomics/localrepo/dto/SearchReadsetsRequest.java | Java | apache-2.0 | 1,849 |
export { default as withGuardian } from './withGuardian'
export const holder = 1
| mydearxym/mastani | src/hoc/index.js | JavaScript | apache-2.0 | 81 |
using Esri.ArcGISRuntime.Layers;
using System;
using Windows.UI.Popups;
using Windows.UI.Xaml.Controls;
namespace ArcGISRuntimeSDKDotNet_PhoneSamples.Samples
{
/// <summary>
/// Creates a GeoRssLayer based on the United States Geological Survey earthquake feed.
/// </summary>
/// <title>GeoRSS Layer</title>
/// ... | Tyshark9/arcgis-runtime-samples-dotnet | src/Phone/ArcGISRuntimeSDKDotNet_PhoneSamples/Samples/GraphicsLayers/GeoRssLayerSample.xaml.cs | C# | apache-2.0 | 921 |
#
# Copyright (C) 2010-2016 dtk contributors
#
# This file is part of the dtk project.
#
# 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
#
# Unles... | dtk/dtk-client | lib/client/service_and_component_info/transform_from/info.rb | Ruby | apache-2.0 | 3,187 |
using System.Collections.Generic;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace ManualOAuth.Controllers
{
[Authorize]
public class SecureController : Controller
{
public IActionResult Index()
{
Dictionary<string, string> claimTable = new D... | lozanotek/aspnet-security | src/Providers/ManualOAuth/Controllers/SecureController.cs | C# | apache-2.0 | 536 |
/*
Copyright 2012 -2014 Michael Remond
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... | F0REacH/pac4j-1.5.1 | pac4j-saml/src/main/java/org/pac4j/saml/credentials/Saml2Credentials.java | Java | apache-2.0 | 1,655 |
package astilectron
import (
"encoding/json"
"errors"
)
// Event names
const (
EventNameAppEventReady = "app.event.ready"
EventNameAppClose = "app.close"
EventNameAppCrash = "app.crash"
EventNameAppStop = "app.stop" ... | robjporter/go-functions2 | gui/astilectron/event.go | GO | apache-2.0 | 4,036 |
/*
* 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 ... | nvoron23/incubator-calcite | core/src/main/java/net/hydromatic/optiq/jdbc/OptiqStatement.java | Java | apache-2.0 | 2,496 |
/*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | firebase/firebase-admin-java | src/main/java/com/google/firebase/auth/UserRecord.java | Java | apache-2.0 | 22,304 |
cc.Class({
extends: cc.Component,
properties: {
self: {
default: null, type: cc.Button
},
other1: {
default: null, type: cc.Button
},
other2: {
default: null, type: cc.Button
},
},
// called every frame, uncomment this... | lllyasviel/style2paints | V3/client/assets/script/toggleBTN.js | JavaScript | apache-2.0 | 518 |
/*
* Copyright 2022 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 wr... | googleapis/java-retail | samples/interactive-tutorials/src/main/java/init/RemoveTestResources.java | Java | apache-2.0 | 2,705 |
<?php
/**
* Copyright 2010-2013 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... | meituan/mssapi_php | src/Mss/S3/S3Client.php | PHP | apache-2.0 | 28,775 |
/* $Id: IbisCreationFailedException.java 13036 2011-02-24 16:37:33Z ceriel $ */
package nl.esciencecenter.aether;
/**
* Signals that an Ibis instance could not be created.
*/
public class CreationFailedException extends Exception {
private static final long serialVersionUID = 1L;
/**
* Constructs a <... | NLeSC/Aether | src/nl/esciencecenter/aether/CreationFailedException.java | Java | apache-2.0 | 1,398 |
"""
visit https://morvanzhou.github.io/tutorials/ for more!
Build two networks.
1. Without batch normalization
2. With batch normalization
Run tests on these two networks.
"""
# 23 Batch Normalization
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
ACTIVATION = tf.nn.relu
N_LAYERS = 7
N... | del680202/MachineLearning-memo | src/tensorflow/BN.py | Python | apache-2.0 | 6,157 |
// Copyright 2020 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | googleapis/nodejs-automl | samples/test/delete-model.beta.test.js | JavaScript | apache-2.0 | 1,548 |
package com.stt.portfolio;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
impo... | skarna1/javaportfolio | src/com/stt/portfolio/BookEntryManager.java | Java | apache-2.0 | 10,991 |
require 'pathname'
Puppet::Type.newtype(:dsc_sqlserverconfiguration) do
require Pathname.new(__FILE__).dirname + '../../' + 'puppet/type/base_dsc'
require Pathname.new(__FILE__).dirname + '../../puppet_x/puppetlabs/dsc_type_helpers'
@doc = %q{
The DSC SqlServerConfiguration resource type.
Automatically... | jpogran/puppetlabs-dsc | lib/puppet/type/dsc_sqlserverconfiguration.rb | Ruby | apache-2.0 | 5,497 |
using System;
using Telerik.Data.Core;
using Telerik.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
namespace Telerik.UI.Xaml.Controls.Data
{
internal abstract class DataCurrencyService : ServiceBase<RadControl>
{
// internal bool isSynchronizedWithCurrent;
internal bool ensureCurren... | geotinc/UI-For-UWP | Controls/DataControls/DataControls.UWP/Common/DataCurrencyService.cs | C# | apache-2.0 | 6,338 |
/*
* Copyright 2019 Kantega AS
*
* 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... | kantega/respiro | plugins/core/message-collector/src/main/java/org/kantega/respiro/collector/cxf/MessageCollectorCustomizer.java | Java | apache-2.0 | 4,695 |
/* 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 this fi... | elodina/go-kafka-client-mesos | framework/cluster.go | GO | apache-2.0 | 4,921 |
package ru.job4j.lite.sort;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
/**
* Class SortUser.
*
* @author Aleksey Slivko
* @version $1.0$
* @since 02.06.2017
*/
public class SortUser {
/**
* Convert List of users to TreeSet and sort users by age.
* @param list of users.
... | sllexa/junior | chapter_003/src/main/java/ru/job4j/lite/sort/SortUser.java | Java | apache-2.0 | 1,048 |
/**
* Copyright 2010 - 2022 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | JetBrains/xodus | utils/src/main/java/jetbrains/exodus/util/Random.java | Java | apache-2.0 | 2,585 |
package com.suscipio_solutions.consecro_mud.Abilities.Prayers;
import java.util.Vector;
import com.suscipio_solutions.consecro_mud.Abilities.interfaces.Ability;
import com.suscipio_solutions.consecro_mud.Abilities.interfaces.MendingSkill;
import com.suscipio_solutions.consecro_mud.Common.interfaces.CMMsg;
import com.s... | ConsecroMUD/ConsecroMUD | com/suscipio_solutions/consecro_mud/Abilities/Prayers/Prayer_RockFlesh.java | Java | apache-2.0 | 2,809 |
// 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/NCClient/Web/Caching/CacheItemRemovedReason.cs | C# | apache-2.0 | 1,628 |
# Copyright (c) 2012 Spotify AB
#
# 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, s... | Viktor-Evst/fixed-luigi | setup.py | Python | apache-2.0 | 3,100 |
<?php
$tpl->assign(array(
'L_INDEX' => 'Homepage',
'L_SITEMAP' => 'Sitemap',
'L_ACP' => 'Administrace',
'L_ACP_INDEX' => 'Úvod administrace',
'L_NO' => 'Ne',
'L_YES' => 'Ano',
'L_BACK' => 'Zpět na předchozí stránku',
'L_NEXT' => 'Další »',
'L_PREV' => '« Předchozí',
'L_CONFIG'... | jankuca/geecms | langs/cs/core.lang.php | PHP | apache-2.0 | 1,361 |
// Copyright 2017 The Ray 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... | ray-project/ray | src/ray/core_worker/test/memory_store_test.cc | C++ | apache-2.0 | 8,128 |
//>>built
define("dojox/editor/plugins/nls/it/Blockquote",{blockquote:"Blockquote"});
//# sourceMappingURL=Blockquote.js.map | Caspar12/zh.sw | zh.web.site.admin/src/main/resources/static/js/dojo/dojox/editor/plugins/nls/it/Blockquote.js | JavaScript | apache-2.0 | 124 |
package base.widget;
import android.content.Context;
import android.util.AttributeSet;
import io.vov.vitamio.widget.VideoView;
/**
* Created by shsun on 17/2/25.
*/
public class XBaseVitamioVideoView extends VideoView {
public XBaseVitamioVideoView(Context context) {
super(context);
}
public ... | shsun/AndroidMediaCache | shsunframework/src/main/java/base/widget/XBaseVitamioVideoView.java | Java | apache-2.0 | 1,373 |
<?php
namespace Mtg\Controller;
use Mtg\Model\Repository\RuleRepository;
use Zend\Mvc\Controller\AbstractRestfulController;
use Zend\View\Model\JsonModel;
class RuleController extends AbstractRestfulController
{
/**
* @var RuleRepository
*/
protected $ruleRepository;
/**
* @param RuleRepos... | BreyndotEchse/mtg-bot | module/Mtg/src/Mtg/Controller/RuleController.php | PHP | apache-2.0 | 2,291 |