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 |
|---|---|---|---|---|---|
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
namespace GovITHub.Auth.Common.Services.Impl
{
/// <summary>
/// Base email sender
/// </summary>
public abstract class BaseEmailSender : IEmailSender
{
... | gov-ithub/auth-sso | src/GovITHub.Auth.Common/Services/Impl/BaseEmailSender.cs | C# | apache-2.0 | 1,437 |
// 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 writi... | googleads/googleads-java-lib | modules/dfp_appengine/src/main/java/com/google/api/ads/admanager/jaxws/v202202/StatementError.java | Java | apache-2.0 | 2,266 |
using System;
using NUnit.Framework;
using PCLActivitySet.Domain.Recurrence;
using PCLActivitySet.Dto.Recurrence;
namespace PCLActivitySet.Test.Domain.Recurrence
{
[TestFixture]
public class DateProjectionTest
{
[Test]
public void TranslateProjectionType()
{
const int p... | Merlin9999/PCLActivitySet | src/PCLActivitySet/PCLActivitySet.Test/Domain/Recurrence/DateProjectionTest.cs | C# | apache-2.0 | 2,704 |
using System;
using CJia.Net.Communication;
using CJia.Net.Tcp;
using CJia.Net.Communication.Messengers;
using CJia.Net.Client;
namespace CJia.Net.Server
{
/// <summary>
/// Represents a client from a perspective of a server.
/// </summary>
public interface IServerClient : IMessenger
{
///... | leborety/CJia | CJia.Framework/CJia.Net/Server/IServerClient.cs | C# | apache-2.0 | 1,018 |
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: sample-weight-meta.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.p... | FederatedAI/FATE | python/federatedml/protobuf/generated/sample_weight_meta_pb2.py | Python | apache-2.0 | 3,206 |
/*
Copyright 2022 The Kubernetes 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 in writing, softwar... | kubernetes-client/java | fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobSpecFluent.java | Java | apache-2.0 | 3,688 |
package com.github.hayataka.hibernatevalidatorsample.context;
import java.io.Closeable;
/**
* tryでのresourceCloseを行うための仕組
* @author hayakawatakahiko
*/
interface AutoCloseable extends Closeable {
/**
* 開放すべきリソースを閉じる処理.
*/
void close();
}
| hayataka/hibernateValidatorSample | src/main/java/com/github/hayataka/hibernatevalidatorsample/context/AutoCloseable.java | Java | apache-2.0 | 297 |
// +build windows
package handlers
import (
"syscall"
"golang.org/x/crypto/ssh"
)
var SyscallSignals = map[ssh.Signal]syscall.Signal{
ssh.SIGABRT: syscall.SIGABRT,
ssh.SIGALRM: syscall.SIGALRM,
ssh.SIGFPE: syscall.SIGFPE,
ssh.SIGHUP: syscall.SIGHUP,
ssh.SIGILL: syscall.SIGILL,
ssh.SIGINT: syscall.SIGINT... | cloudfoundry-incubator/diego-ssh-windows | handlers/signals_windows.go | GO | apache-2.0 | 867 |
/*
* Copyright 2005-2017 Dozer 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
*
* Unless required by applicable ... | STRiDGE/dozer | core/src/test/java/org/dozer/vo/interfacerecursion/UserPrime.java | Java | apache-2.0 | 973 |
package ludum.mighty.ld36.animations;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import ludum.mighty.ld36.settings.DefaultValues;
public class AnimatorSonicBoom {
private Texture kidTexture;
private TextureRegion[][... | punkto/mightyLD36 | core/src/ludum/mighty/ld36/animations/AnimatorSonicBoom.java | Java | apache-2.0 | 2,485 |
#include "arg_conversion.h"
#include "command_buffer.h"
static command_buffer buffer;
int piss_off(int a, double b) {
return printf("piss_off called with %d, %f\n", a, b);
}
static const char piss_off_usage[] = "piss_off int double\nYell numbers!";
void kill_player(const std::string& name) {
printf("Killing player... | n00btime/gen_wrapper | my_test.cpp | C++ | apache-2.0 | 871 |
package com.joey.bak.base.ui;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AlertDialog;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
im... | JoeSteven/HuaBan | bak/src/main/java/com/joey/bak/base/ui/BaseFragment.java | Java | apache-2.0 | 3,988 |
/*!
* ${copyright}
*/
// Provides control sap.ui.commons.HorizontalDivider.
sap.ui.define([
'./library',
'sap/ui/core/Control',
'./HorizontalDividerRenderer'
],
function(library, Control, HorizontalDividerRenderer) {
"use strict";
// shortcut for sap.ui.commons.HorizontalDividerHeight
var HorizontalDivider... | SAP/openui5 | src/sap.ui.commons/src/sap/ui/commons/HorizontalDivider.js | JavaScript | apache-2.0 | 1,812 |
/*
* 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")... | iloveyou416068/CookNIOServer | demos/mina/src/mina/udp/perf/UdpServer.java | Java | apache-2.0 | 4,387 |
/*
* Copyright (C) 2011-2016 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this li... | shwetasshinde24/Panoply | patched-driver-sdk/customSDK/psw/urts/parser/parserfactory.cpp | C++ | apache-2.0 | 2,856 |
<?php
// Heading
$_['heading_title'] = 'Quốc Gia';
// Text
$_['text_success'] = 'Hoàn tất: Bạn đã sửa đổi các Quốc Gia!';
$_['text_list'] = 'Danh sách các Quốc gia';
$_['text_add'] = 'Thêm Quốc gia';
$_['text_edit'] = 'Sửa Quốc Gia';
// Column
$... | duythanhitc/ShopCartClean | admin/language/vi-vn/localisation/country.php | PHP | apache-2.0 | 2,084 |
<?php
/**
* Copyright 2015 Xenofon Spafaridis
*
* 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... | phramework/examples-api | public/index.php | PHP | apache-2.0 | 1,649 |
/*
* Copyright 2010-2012 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 "l... | frsyuki/aws-sdk-for-java | src/main/java/com/amazonaws/services/storagegateway/model/DescribeMaintenanceStartTimeResult.java | Java | apache-2.0 | 18,484 |
from __future__ import absolute_import
from django.utils.translation import ugettext as _
from django.conf import settings
from django.views.decorators.csrf import csrf_exempt
from django.contrib.auth import authenticate
from zerver.decorator import authenticated_json_post_view, has_request_variables, REQ
from zerver... | peiwei/zulip | zerver/views/user_settings.py | Python | apache-2.0 | 9,076 |
import path from 'path'
import chromedriver from 'chromedriver'
import webdriver from 'selenium-webdriver'
import electronPath from 'electron-prebuilt'
import homeStyles from '../app/components/Home.css'
import counterStyles from '../app/components/Counter.css'
chromedriver.start() // on port 9515
process.on('exit', c... | 3-strand-code/3sc-desktop | test/e2e.js | JavaScript | apache-2.0 | 3,188 |
package com.example.apkdownloadspeedtest;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class DBHelper_downloader extends SQLiteOpenHelper {
public DBHelper_downloader(Context context) {
//"download.db" is the name of databas... | princegyw/Personal-Utils | keep-old/FileDownloader_v5.0/DBHelper_downloader.java | Java | apache-2.0 | 929 |
package com.ogove.hr.Activities.Notification;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import com.ogove.hr.R;
public class NotificationDepartmentCreate extends AppCompatActivity impleme... | LyokoVN/HRManager | app/src/main/java/com/ogove/hr/Activities/Notification/NotificationDepartmentCreate.java | Java | apache-2.0 | 1,077 |
/*
* 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 ... | dashorst/wicket | wicket-core/src/main/java/org/apache/wicket/settings/ResourceSettings.java | Java | apache-2.0 | 26,459 |
/*
* Copyright (C) 2016 Intel 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... | android-art-intel/Nougat | art-extension/opttests/src/OptimizationTests/Devirtualization/InvokeInterfaceIntTryCatchFinally/Main.java | Java | apache-2.0 | 1,187 |
/**
*
*/
package org.apache.hadoop.hdfs.server.namenodeFBT.lock;
import org.apache.hadoop.hdfs.server.namenodeFBT.Response;
/**
* @author hanhlh
*
*/
public final class EndLockResponse extends Response {
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* EndLockReque... | hanhlh/hadoop-0.20.2_FatBTree | src/hdfs/org/apache/hadoop/hdfs/server/namenodeFBT/lock/EndLockResponse.java | Java | apache-2.0 | 646 |
# coding=utf-8
from ..base import BitbucketBase
class BitbucketCloudBase(BitbucketBase):
def __init__(self, url, *args, **kwargs):
"""
Init the rest api wrapper
:param url: string: The base url used for the rest api.
:param *args: list: The fixed arguments for the Atlassian... | MattAgile/atlassian-python-api | atlassian/bitbucket/cloud/base.py | Python | apache-2.0 | 2,467 |
/*
* Copyright 2002-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 ap... | qobel/esoguproject | spring-framework/spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/Header.java | Java | apache-2.0 | 1,673 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("val... | jmhdez/minimal-router | lib/Router.js | JavaScript | apache-2.0 | 5,579 |
package Entity;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by liangchenzhou on 25/08/16.
*/
public class SpeciesKingdom implements Parcelable {
private String kingdom;
private String scientificName;
public SpeciesKingdom() {
}
public SpeciesKingdom(String kingdom, St... | lawrencezcc/Moneco-V6 | app/src/main/java/Entity/SpeciesKingdom.java | Java | apache-2.0 | 1,421 |
/*
* Copyright 2017 Crown Copyright
*
* 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... | gchq/stroom | stroom-pipeline/src/main/java/stroom/pipeline/xslt/XsltResourceImpl.java | Java | apache-2.0 | 2,168 |
package org.mariotaku.menucomponent.internal.menu;
import java.lang.reflect.Method;
import java.util.Collection;
import android.annotation.SuppressLint;
import android.content.Context;
import android.view.Menu;
import android.view.MenuItem;
public class MenuUtils {
public static Menu createMenu(final Context conte... | xiedantibu/Android-MenuComponent | library/src/org/mariotaku/menucomponent/internal/menu/MenuUtils.java | Java | apache-2.0 | 1,243 |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::MobileEngagement
module Models
#
# Defines values for PushModes
#
module PushModes
RealTime = "real-time"
... | devigned/azure-sdk-for-ruby | management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/push_modes.rb | Ruby | apache-2.0 | 389 |
#include "types.hpp"
namespace compiler
{
} | iamOgunyinka/substance-lang | src/types.cpp | C++ | apache-2.0 | 45 |
// Code generated by go-swagger; DO NOT EDIT.
package repositories
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"net/http"
"github.com/go-openapi/errors"
"github.com/go-openapi/runtime"
"github.com/go-openapi/runtim... | gitpods/gitpods | pkg/api/v1/restapi/operations/repositories/get_repository_tree_parameters.go | GO | apache-2.0 | 3,756 |
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
requires = [
'cdo',
'bokeh',
'ocgis',
'pandas',
'nose',
]
classifiers=[
... | sradanov/flyingpigeon | setup.py | Python | apache-2.0 | 1,385 |
/**
* 预存费用
*/
AcctFeeGrid = Ext.extend(Ext.ux.Grid, {
border : false,
acctFeeStore : null,
region : 'center',
pageSize : 10,
constructor : function() {
this.acctFeeStore = new Ext.data.JsonStore({
url:Constant.ROOT_PATH+ "/commons/x/QueryCust!queryAcctPayFee.action",
totalProperty:'totalProperty',
... | leopardoooo/cambodia | boss-core/src/main/webapp/pages/index/center/PayfeePanel.js | JavaScript | apache-2.0 | 18,342 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ServiceModel;
namespace WcfChatServer
{
interface IWcfChatClient
{
[OperationContract(IsOneWay = true)]
void onMessageReceived(string username, string message);
... | jatwigg/wcf-messaging-service | WcfChatServer/Interface1.cs | C# | apache-2.0 | 439 |
/*
* Copyright (C) 2017-2019 Dremio 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 l... | dremio/dremio-oss | dac/ui/src/reducers/resources/entityTypes.js | JavaScript | apache-2.0 | 1,073 |
/**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.interestrate;
import java.util.List;
import java.util.Map;
import com.opengamma.analytics.financial.interestrate.future.derivative.BondFu... | charles-cooper/idylfin | src/com/opengamma/analytics/financial/interestrate/PresentValueCurveSensitivityHullWhiteCalculator.java | Java | apache-2.0 | 1,565 |
# Copyright (c) OpenMMLab. All rights reserved.
import itertools
import numpy as np
import torch
from .general_data import GeneralData
class InstanceData(GeneralData):
"""Data structure for instance-level annnotations or predictions.
Subclass of :class:`GeneralData`. All value in `data_fields`
should h... | open-mmlab/mmdetection | mmdet/core/data_structures/instance_data.py | Python | apache-2.0 | 6,926 |
using Lucene.Net.Documents;
using Lucene.Net.Index.Extensions;
using Lucene.Net.Util.Automaton;
using NUnit.Framework;
using RandomizedTesting.Generators;
using System;
using System.Collections.Generic;
using Console = Lucene.Net.Util.SystemConsole;
namespace Lucene.Net.Search
{
/*
* Licensed to the Apache S... | NightOwl888/lucenenet | src/Lucene.Net.Tests/Search/TestRegexpRandom2.cs | C# | apache-2.0 | 7,611 |
#include <QtGui/QApplication>
#include "GameUI.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
GameUI w(QString("XO4"), QSize(256, 256));
w.show();
return a.exec();
}
| Dovgalyuk/AIBattle | XO4/Visualizer.cpp | C++ | apache-2.0 | 193 |
'use strict'
// ** Constants
const DEFAULT_HOST = 'localhost';
const DEFAULT_PORT = 8080;
// ** Dependencies
const WebSocket = require('ws');
// ** Libraries
const Service = require('../../lib/Service');
// ** Platform
const logger = require('nodus-framework').logging.createLogger();
function logEvents() {
var... | bradserbu/nodus-server | examples/console/console.js | JavaScript | apache-2.0 | 935 |
/**
@file Connection_uLimeSDREntry.cpp
@author Lime Microsystems
@brief Implementation of uLimeSDR board connection.
*/
#include "ConnectionFT601.h"
#include "Logger.h"
using namespace lime;
#ifdef __unix__
void ConnectionFT601Entry::handle_libusb_events()
{
struct timeval tv;
tv.tv_... | romeojulietthotel/LimeSuite | src/ConnectionFTDI/ConnectionFT601Entry.cpp | C++ | apache-2.0 | 5,428 |
from ajenti.api import *
from ajenti.plugins import *
info = PluginInfo(
title='Resource Manager',
icon='link',
dependencies=[
],
)
def init():
import server
| lupyuen/RaspberryPiImage | usr/share/pyshared/ajenti/plugins/resources/__init__.py | Python | apache-2.0 | 182 |
import Ember from 'ember';
/**
* @module ember-osf
* @submodule mixins
*/
/**
* Controller mixin that implements common actions performed on nodes.
* @class NodeActionsMixin
* @extends Ember.Mixin
*/
export default Ember.Mixin.create({
/**
* The node to perform these actions on. If not specified, defa... | pattisdr/ember-osf | addon/mixins/node-actions.js | JavaScript | apache-2.0 | 9,519 |
package act.app.event;
/*-
* #%L
* ACT Framework
* %%
* Copyright (C) 2014 - 2017 ActFramework
* %%
* 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... | actframework/actframework | src/main/java/act/app/event/SysEventListener.java | Java | apache-2.0 | 816 |
/*
* Copyright 2012 hbz NRW (http://www.hbz-nrw.de/)
*
* 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 app... | edoweb/regal-import | edoweb-sync/src/main/java/de/nrw/hbz/regal/sync/ingest/EdowebDigitalEntityBuilder.java | Java | apache-2.0 | 21,427 |
/*
* Copyright 2015 Raffael Herzog
*
* 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 ... | Abnaxos/guards | annotations/src/main/java/ch/raffael/guards/Pure.java | Java | apache-2.0 | 1,167 |
package fr.ebiz.computer_database.model;
import javax.persistence.*;
/**
* Created by ebiz on 31/05/17.
*/
@Entity
@Table(name = "role")
public class Role {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long id;
private String role;
public long getId() {
return id;
}
public void setId(l... | ckeita/training-java | computer-database/core/src/main/java/fr/ebiz/computer_database/model/Role.java | Java | apache-2.0 | 457 |
package com.hs.mail.smtp.processor.hook;
import java.util.StringTokenizer;
import org.junit.AfterClass;
import org.junit.Test;
public class DNSRBLHandlerTest {
@AfterClass
public static void tearDownAfterClass() throws Exception {
}
@Test
public void test() {
String ipAddress = "1.2.3.4";
... | svn2github/hwmail-mirror | hedwig-server/src/test/java/com/hs/mail/smtp/processor/hook/DNSRBLHandlerTest.java | Java | apache-2.0 | 640 |
module Rtree
class BoundingBox < Struct.new(:top_left, :bottom_right)
def self.from_points(points)
x0 = points.min { |a,b| a.x <=> b.x }.x
y0 = points.min { |a,b| a.y <=> b.y }.y
x1 = points.max { |a,b| a.x <=> b.x }.x
y1 = points.max { |a,b| a.y <=> b.y }.y
BoundingBox.new(Point.ne... | newmana/rtree | lib/rtree/bounding_box.rb | Ruby | apache-2.0 | 1,520 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.IdentityModel.Tokens;
namespace Muscularity.Web.Infrastructure
{
public class JwtTokenServiceOptions
{
public TimeSpan TimeToLive { get; set; }
public string Issu... | jbload/Muscularity | Muscularity.Web/Infrastructure/JwtTokenServiceOptions.cs | C# | apache-2.0 | 444 |
/*
* 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-greengrassv2/src/main/java/com/amazonaws/services/greengrassv2/model/transform/EffectiveDeploymentMarshaller.java | Java | apache-2.0 | 5,040 |
/*
* 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-mediatailor/src/main/java/com/amazonaws/services/mediatailor/model/ListTagsForResourceResult.java | Java | apache-2.0 | 4,860 |
/*
* 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 ... | jatin9896/incubator-carbondata | processing/src/main/java/org/apache/carbondata/processing/loading/sort/unsafe/holder/UnsafeSortTempFileChunkHolder.java | Java | apache-2.0 | 10,153 |
package service
import (
"context"
"sync"
artmdl "go-common/app/interface/openplatform/article/model"
accmdl "go-common/app/service/main/account/model"
"go-common/app/service/main/feed/dao"
"go-common/library/log"
"go-common/library/sync/errgroup"
)
const _upsArtBulkSize = 50
// attenUpArticles get new arti... | LQJJ/demo | 126-go-common-master/app/service/main/feed/service/article.go | GO | apache-2.0 | 2,972 |
/*
* 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-redshiftdataapi/src/main/java/com/amazonaws/services/redshiftdataapi/model/transform/BatchExecuteStatementResultJsonUnmarshaller.java | Java | apache-2.0 | 4,194 |
//
// Bitmap.hpp
// GaLiong
//
// Created by Liong on ??/??/??.
//
#include "Include/Bmp.hpp"
_L_BEGIN
namespace Media
{
// Public
Bmp::Bmp(Image& instance)
{
}
Bmp::~Bmp()
{
}
bool Bmp::InitHeader()
{
FileHeader f;
InfoHeader i;
stream.read((char *)&f,... | PENGUINLIONG/GaLiong | GaLiong/Bmp.cpp | C++ | apache-2.0 | 2,500 |
package coreaf.ui.pages;
public class HomePage {
}
| AKSahu/WebAutomationFrameworks | SeleniumUIAutoTest/src/coreaf/ui/pages/HomePage.java | Java | apache-2.0 | 53 |
package com.wjc.slience.mymap.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.widget.TextView;
import com.wjc.slience.mymap.R;
import com.wjc.slience.mymap.common.ActivityCollector;
import com.wjc.slience.mymap.common.LogUtil... | root0301/MyMap | app/src/main/java/com/wjc/slience/mymap/activity/MsgActivity.java | Java | apache-2.0 | 1,450 |
/**
*
*/
package com.sivalabs.demo.security;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.AuthorityUtils;
import com.sivalabs.demo.entities.Role;
imp... | sivaprasadreddy/springboot-learn-by-example | chapter-13/springboot-thymeleaf-security-demo/src/main/java/com/sivalabs/demo/security/AuthenticatedUser.java | Java | apache-2.0 | 1,192 |
/*
* 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 n... | ijuma/kafka | clients/src/main/java/org/apache/kafka/common/utils/ByteUtils.java | Java | apache-2.0 | 11,546 |
/*
* Copyright (c) 2016, 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.or... | lgobinath/siddhi | modules/siddhi-core/src/main/java/org/wso2/siddhi/core/query/output/ratelimit/snapshot/PerSnapshotOutputRateLimiter.java | Java | apache-2.0 | 5,177 |
/* Copyright 2016-2019, SINTEF Ocean.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "cppfmu/cppfmu_cs.hpp"
#include <stdexcept>
namespace cppfmu
{
... | idaholab/raven | framework/contrib/PythonFMU/pythonfmu/pythonfmu-export/cpp/cppfmu_cs.cpp | C++ | apache-2.0 | 2,874 |
package org.baade.eel.core.player;
import org.baade.eel.core.ILifecycle;
import org.baade.eel.core.message.IMessage;
import org.baade.eel.core.processor.IProcessor;
public interface IPlayer extends ILifecycle {
public void send(IMessage message);
public IProcessor getProcessor();
}
| baade-org/eel | eel-core/src/main/java/org/baade/eel/core/player/IPlayer.java | Java | apache-2.0 | 290 |
/*
* Copyright 2019 Qameta Software 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 ... | allure-framework/allure-java | allure-java-commons/src/test/java/io/qameta/allure/testdata/DummyCard.java | Java | apache-2.0 | 1,043 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.Rendering;
namespace Microsoft.AspNetCore.Mvc.RazorPages
{
/// <summary>
/// Provides methods to c... | aspnet/AspNetCore | src/Mvc/Mvc.RazorPages/src/IPageActivatorProvider.cs | C# | apache-2.0 | 1,873 |
/*
* 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 ... | nivanov/ignite | modules/platforms/cpp/odbc-test/src/sql_test_suite_fixture.cpp | C++ | apache-2.0 | 10,627 |
/*
* 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 distributed under t... | hazendaz/assertj-core | src/test/java/org/assertj/core/api/date/DateAssert_isBetween_Test.java | Java | apache-2.0 | 1,673 |
package com.android.base.app.dagger;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import javax.inject.Qualifier;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Qualifier
@Documented
@Retention(RUNTIME)
public @interface ContextType {
String ACTIVITY = "Activity"... | Ztiany/AndroidBase | lib_base/src/main/java/com/android/base/app/dagger/ContextType.java | Java | apache-2.0 | 438 |
/* Copyright 2016 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/tensorboard | tensorboard/plugins/histogram/vz_histogram_timeseries/vz-histogram-timeseries.ts | TypeScript | apache-2.0 | 22,012 |
/*
* Copyright (C) 2013 The Android Open Source 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
*
* Unless required by app... | bojanvu23/android_packages_apps_Trebuchet_Gradle | Trebuchet/src/main/java/com/lite/android/launcher3/Insettable.java | Java | apache-2.0 | 906 |
package examples.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.TableGenerator;
@Entity
public class Address {
@TableGenerator(name="Address_Gen",
table="ID_GEN",
... | velmuruganvelayutham/jpa | examples/Chapter4/11-tableIdGeneration/src/model/examples/model/Address.java | Java | apache-2.0 | 1,622 |
/*
* 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... | zjshen/presto | presto-main/src/main/java/com/facebook/presto/operator/aggregation/AbstractMinMaxByNAggregation.java | Java | apache-2.0 | 8,905 |
# Copyright 2016 gRPC 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 in writing... | donnadionne/grpc | src/python/grpcio_health_checking/grpc_version.py | Python | apache-2.0 | 710 |
package de.mukis.docmatcher.csv;
import java.util.Arrays;
import java.util.Objects;
import de.mukis.docmatcher.csv.matcher.CsvMatcher;
public class Columns {
private final int[] columns;
private Columns(int[] columns) {
this.columns = columns;
}
public static Columns columns(int first, int... | muuki88/docmatcher | src/main/java/de/mukis/docmatcher/csv/Columns.java | Java | apache-2.0 | 1,454 |
// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
//
// Copyright 2016-2018 Pascal ECHEMANN.
//
// 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.apac... | pechemann/jec-glasscat-core | src/com/onsoft/glasscat/security/session/managers/EjpSessionManager.ts | TypeScript | apache-2.0 | 4,312 |
/*
* 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 "license" fil... | ambasta/aws-sdk-cpp | aws-cpp-sdk-autoscaling/source/model/DeleteAutoScalingGroupRequest.cpp | C++ | apache-2.0 | 1,408 |
/**
* Copyright (c) 2010 Abbcc Corp.
* No 225,Wen Yi RD, Hang Zhou, Zhe Jiang, China.
* All rights reserved.
*
* "AdminService.java is the copyrighted,
* proprietary property of Abbcc Company and its
* subsidiaries and affiliates which retain all right, title and interest
* therein."
*
* Revision History
*
... | baowp/platform | biz/src/main/java/com/abbcc/service/CellbindService.java | Java | apache-2.0 | 1,720 |
package com.example.persiandatepicker;
import java.util.Date;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.NumberPicker;
import android.wi... | alibehzadian/Smartlab | Custom Views/PersianDatePicker-Example/src/com/example/persiandatepicker/PersianDatePicker.java | Java | apache-2.0 | 2,282 |
phoxy.internal =
{
ChangeURL : function (url)
{
url = phoxy.ConstructURL(url);
phoxy.Log(4, "History push", url);
if (url[0] !== '/')
url = '/' + url;
history.pushState({}, document.title, url);
return false;
}
,
Reset : function (url)
{
if ((url || true) ... | phoxy/phoxy | subsystem/internal.js | JavaScript | apache-2.0 | 2,785 |
package com.ckt.io.wifidirect.fragment;
import android.app.ListFragment;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.wifi.WifiManager;
import android.net.wifi.p2p.WifiP2pConfig;
import android.net.wifi.p2p.... | lucky-code/Practice | kuaichuan2.0/app/src/main/java/com/ckt/io/wifidirect/fragment/DeviceListFragment.java | Java | apache-2.0 | 6,668 |
/*
* 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 ... | ascrutae/sky-walking | oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/analysis/meter/function/avg/AvgFunction.java | Java | apache-2.0 | 7,837 |
import time
import django
from django import forms
try:
from django.forms.utils import ErrorDict
except ImportError:
from django.forms.util import ErrorDict
from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from django.utils.crypto import salted_hmac, constant_time_c... | sheshkovsky/jaryan | comments/forms.py | Python | apache-2.0 | 9,802 |
######################################################################
# tc_gid.rb
#
# Test case for the Process.gid and Process.gid= module methods.
#
# NOTE: The Process.gid= tests are only run if the test is run as the
# root user.
######################################################################
require 'test/... | google-code/android-scripting | jruby/src/test/externals/ruby_test/test/core/Process/class/tc_gid.rb | Ruby | apache-2.0 | 1,434 |
package C00_data;
/**
* Created by Administrator on 2016/8/30.
* 进制问题
*
* 二进制显示的是补码,计算机接收的直接量也是补码
*/
public class Test_code {
public static void main(String[] args) {
/*
二进制显示的是补码,计算机接收的直接量也是补码
*/
byte a=-5;
System.out.println("a:"+a);
System.out.println("a... | wapalxj/Java | javaworkplace/SXT/src/C00_data/Test_code.java | Java | apache-2.0 | 1,493 |
/**
* Main framework
*/
var http = require('http');
var fs = require('fs');
var url = require('url');
var querystring = require('querystring');
var mime = require('mime');
var engineMod = require('./engine.js')
var WebApp = function(path,config){
console.log('Starting PanzerParty at '+path);
var basepath = path... | theoddbeard/PanzerParty | core/app.js | JavaScript | apache-2.0 | 1,246 |
using Arinna.Northwind.ProductService.Business.Contract;
using Arinna.Northwind.ProductService.Data.Repository.Interface;
using System;
using System.Collections.Generic;
using System.Text;
namespace Arinna.Northwind.ProductService.Business
{
public class CategoryManager: ICategoryManager
{
private rea... | ZGRTech/Arinna | nortwind/Arinna.Northwind.ProductService.Business/CategoryManager.cs | C# | apache-2.0 | 529 |
import Router from 'viewModels/router'
import read from './read'
const router = new Router;
router.get('token/read', '/', read);
export default router
| lian-yue/lianyue-server | app/viewModels/token/routes.js | JavaScript | apache-2.0 | 155 |
/*
* Copyright 2014 Texas A&M Engineering Experiment Station
*
* 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 ... | tcat-tamu/crypto | bundles/edu.tamu.tcat.crypto.bouncycastle/src/edu/tamu/tcat/crypto/bouncycastle/internal/Activator.java | Java | apache-2.0 | 2,300 |
// Copyright 2014-2015 Boundary, 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... | boundary/boundary-event-sdk | src/test/java/com/boundary/sdk/event/esper/NewEmployeeEvent.java | Java | apache-2.0 | 1,889 |
#region Apache License Version 2.0
/*----------------------------------------------------------------
Copyright 2017 Yang Chen (cy2000@gmail.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
htt... | etechi/ServiceFramework | Projects/Server/Common/SF.Common.Abstractions/Auth/Permissions/IRoleManager.cs | C# | apache-2.0 | 1,380 |
/**
* 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/ua-rice-2.1.9 | krad/krad-web-framework/src/main/java/org/kuali/rice/krad/web/form/MaintenanceForm.java | Java | apache-2.0 | 2,006 |
using System;
using System.Collections;
using System.Collections.Generic;
using WizardsChess.Movement;
// Board arranged in A-H, 1-8. where A-H is replaced by 9-16
namespace WizardsChess.Chess.Pieces {
public abstract class ChessPiece{
public ChessPiece(ChessTeam team){
Team = team;
HasMoved = false;
CanJ... | MorganR/wizards-chess | WizardsChess/WizardsChessUtils/Chess/Pieces/ChessPiece.cs | C# | apache-2.0 | 1,218 |
import 'style!../sass/spinner.scss';
const backdrop = `
<div class="js-blocking" id="lightbox-blocking">
<span class="lightbox-spinner"></span>
</div>
`;
const prevControl = `
<div class="lightbox-extra control prev js-control js-prev">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" w... | nemtsov/lightbox | src/templates.js | JavaScript | apache-2.0 | 1,861 |
package com.olmatix.model;
/**
* Created by Rahman on 12/28/2016.
*/
public class SpinnerObject {
private String databaseId;
private String databaseValue;
public SpinnerObject() {
this.databaseId = databaseId;
this.databaseValue = databaseValue;
}
public String getDatabaseId(... | lesjaw/Olmatix | olmatix/src/main/java/com/olmatix/model/SpinnerObject.java | Java | apache-2.0 | 641 |
/*
* 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 "l... | trasa/aws-sdk-java | aws-java-sdk-elasticloadbalancing/src/main/java/com/amazonaws/services/elasticloadbalancing/model/LoadBalancerAttributeNotFoundException.java | Java | apache-2.0 | 1,217 |
package citrixadc
import (
"github.com/citrix/adc-nitro-go/resource/config/transform"
"github.com/citrix/adc-nitro-go/service"
"github.com/hashicorp/terraform/helper/schema"
"fmt"
"log"
)
func resourceCitrixAdcTransformaction() *schema.Resource {
return &schema.Resource{
SchemaVersion: 1,
Create: c... | citrix/terraform-provider-netscaler | citrixadc/resource_citrixadc_transformaction.go | GO | apache-2.0 | 8,186 |
<?php
namespace BuyPlayTix\DataBean;
class ObjectAdapter implements IAdapter
{
public static $DB_DIR;
private $tables = [];
private $queries = [];
public function __construct()
{}
function load($databean, $param = "")
{
$table = $databean->getTable();
$pk = $databean->get... | tthomas48/databean | BuyPlayTix/DataBean/ObjectAdapter.php | PHP | apache-2.0 | 19,538 |