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 Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using SaanSoft.AspNet.Identity3.MongoDB;
using Web.MongoDBIdentitySample.Models;
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
namespace Web.MongoDBIdentitySample.Controllers
{
publ... | Amevacorp/SaanSoft.AspNet.Identity3.MongoDB | samples/Web.MongoDBIdentitySample/Controllers/DiTestController.cs | C# | apache-2.0 | 3,643 |
/*
* Copyright 2014,2016 agwlvssainokuni
*
* 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... | agwlvssainokuni/springapp2 | corelib/elemental/src/test/java/cherry/elemental/util/ToMapUtilTest.java | Java | apache-2.0 | 3,335 |
/**
* Copyright 2015 The AMP HTML 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 require... | nekodo/amphtml | build-system/tasks/presubmit-checks.js | JavaScript | apache-2.0 | 18,988 |
/*
* Copyright 2011-2012 Gregory P. Moyer
*
* 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 ... | syphr42/libmythtv-java | ws/src/main/java/org/syphr/mythtv/ws/backend/impl/GuideService0_25.java | Java | apache-2.0 | 2,555 |
package com.g10.ssm.service;
import java.util.List;
import com.g10.ssm.po.LearningTaskCoursewareKey;
public interface LearningTaskCoursewareService {
public List<LearningTaskCoursewareKey> queryLearningTaskCourseware() throws Exception;
public String[] queryAllCoursewareUrl(Integer learningTaskId) throws Exceptio... | scaug10/NETESP | src/main/java/com/g10/ssm/service/LearningTaskCoursewareService.java | Java | apache-2.0 | 835 |
import { Component, HostListener, Inject } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material';
@Component({
selector: 'cs-volume-delete-dialog',
templateUrl: './volume-delete-dialog.component.html',
styleUrls: ['./volume-delete-dialog.component.scss'],
})
export class VolumeD... | bwsw/cloudstack-ui | src/app/shared/actions/volume-actions/volume-delete/volume-delete-dialog.component.ts | TypeScript | apache-2.0 | 817 |
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.util.lang.api;
import net.sf.mmm.util.lang.api.attribute.AttributeReadValue;
/**
* This enum contains the available values for the orientation.
*
* @see Alignment
*
... | m-m-m/util | lang/src/main/java/net/sf/mmm/util/lang/api/Orientation.java | Java | apache-2.0 | 1,997 |
package io.github.mapstream;
import java.util.Comparator;
import java.util.Iterator;
import java.util.Optional;
import java.util.Spliterator;
import java.util.function.*;
import java.util.stream.*;
class PairEntryStreamImpl<K, V> implements PairEntryStream<K, V> {
private Stream<PairEntry<K, V>> delegate;
P... | mapstream/mapstream | src/main/java/io/github/mapstream/PairEntryStreamImpl.java | Java | apache-2.0 | 6,109 |
package com.github.bingoohuang.excel2beans.annotations;
public enum MergeType {
/**
* 直接合并。
*/
Direct,
/**
* 按相同值合并。
*/
SameValue,
}
| bingoohuang/excel2javabeans | src/main/java/com/github/bingoohuang/excel2beans/annotations/MergeType.java | Java | apache-2.0 | 194 |
/*******************************************************************************
* Copyright (C) 2014 Philipp B. Costa
*
* 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.ap... | ufc-great/mpos | android/MpOS API/src/br/ufc/mdcc/mpos/net/profile/ProfileNetworkFull.java | Java | apache-2.0 | 8,129 |
//
// Copyright (c) Microsoft 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/licenses/LICENSE-2.0
//
// Unless requi... | naveedaz/azure-powershell | src/ResourceManager/Compute/Commands.Compute/Generated/Snapshot/SnapshotDeleteMethod.cs | C# | apache-2.0 | 6,217 |
#!/usr/bin/env python
#
# 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 (th... | Kami/libcloud | contrib/scrape-ec2-prices.py | Python | apache-2.0 | 9,128 |
package com.sap.mlt.xliff12.impl.attribute;
import com.sap.mlt.xliff12.api.attribute.PropType;
import com.sap.mlt.xliff12.impl.base.XliffAttributeImpl;
/**
* @deprecated
*/
public class PropTypeImpl extends XliffAttributeImpl implements PropType {
public PropTypeImpl(String propType) {
super(NAME, pr... | SAP/xliff-1-2 | com.sap.mlt.xliff12.impl/src/main/java/com/sap/mlt/xliff12/impl/attribute/PropTypeImpl.java | Java | apache-2.0 | 340 |
package com.inktomi.cirrus.forecast;
import org.simpleframework.xml.Element;
@Element
public enum TimeCoordinate {
UTC("UTC"),
LOCAL("local");
private final String value;
TimeCoordinate(String v) {
value = v;
}
public String value() {
return value;
}
public static ... | inktomi/cirrus | cirrus-library/src/main/java/com/inktomi/cirrus/forecast/TimeCoordinate.java | Java | apache-2.0 | 558 |
/*
* Copyright (C) 2009 ZXing 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 agr... | aqnote/AndroidTest | app-barcode/src/main/java/com/aqnote/app/barcode/history/DBHelper.java | Java | apache-2.0 | 1,955 |
/*
* Copyright © 2013-2019 camunda services GmbH and various authors (info@camunda.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... | xasx/camunda-bpm-platform | engine-spring/src/test/java/org/camunda/bpm/engine/spring/test/transaction/modification/CalculateTimerDate.java | Java | apache-2.0 | 1,058 |
/*
* 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 no... | jior/glaf | workspace/glaf-mail/src/main/java/com/glaf/mail/mapper/MailStorageMapper.java | Java | apache-2.0 | 1,402 |
/***
* ASM: a very small and fast Java bytecode manipulation framework
* Copyright (c) 2000-2011 INRIA, France Telecom
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistribution... | rikf/Holophonor | src/main/java/holophonor/org/objectweb/asm/commons/AdviceAdapter.java | Java | apache-2.0 | 19,221 |
package gnode
import (
"fmt"
"io"
"sync"
"time"
)
type ReceiverManager struct {
usage int
gnode *GNode
buffer MessageBuffer
receiverList []*MessageReceiver
ioChan chan *AntMes
nbReceiver int
receiver MessageReceiver
answerMap map[string]*AntMes
getChan chan string
... | freignat91/blockchain | server/gnode/receiverManager.go | GO | apache-2.0 | 5,407 |
/**
* 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... | ramonmaruko/camel | components/camel-openshift/src/main/java/org/apache/camel/component/openshift/OpenShiftEndpoint.java | Java | apache-2.0 | 4,430 |
/*
* Copyright 2016-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Minato262/Design-Pattern | src/java/main/org/designpattern/manage/base/creationalpatterns/prototype/Prototype.java | Java | apache-2.0 | 1,057 |
// 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 writ... | googleinterns/cloud-operations-api-mock | internal/validation/mock_trace_validation.go | GO | apache-2.0 | 10,158 |
package org.cnodejs.android.md.ui.jsbridge;
import android.webkit.JavascriptInterface;
import org.cnodejs.android.md.util.FormatUtils;
import org.joda.time.DateTime;
public final class FormatJavascriptInterface {
public static final String NAME = "formatBridge";
@JavascriptInterface
public String getRe... | TakWolf/CNode-Material-Design | app/src/main/java/org/cnodejs/android/md/ui/jsbridge/FormatJavascriptInterface.java | Java | apache-2.0 | 439 |
package com.lingju.assistant.view;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import com.lingju.assistant.R;
import java.util.HashMap;
import java.util.Map;
import butterknife.Bin... | LingjuAI/AssistantBySDK | app/src/main/java/com/lingju/assistant/view/AlarmItemDialog.java | Java | apache-2.0 | 2,902 |
/*
* Copyright (C) 2014 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... | aboukaram/sunshine-version-chadi | app/src/main/java/com/example/android/sunshine/app/data/WeatherProvider.java | Java | apache-2.0 | 14,859 |
/*
* Copyright 2010-2011 Nabeel Mukhtar
*
* 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... | shisoft/LinkedIn-J | core/src/main/java/com/google/code/linkedinapi/schema/InvitationRequest.java | Java | apache-2.0 | 2,192 |
export interface DocItem {
title: string
url?: string
children?: DocItem[]
}
export const DOCS: DocItem[] = [
{
title: 'Projects',
children: [
{
title: 'How to create a project?',
url: 'assets/docs/projects/how_to_create_project.html'
},
{
title: 'How to open, ... | yashdsaraf/reimagined-eureka | frontend/src/app/components/docs/docs-content.ts | TypeScript | apache-2.0 | 2,385 |
package com.wuyin.supermarket.manager;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
/**
* Created by wuyin on 2016/5/2.
* 管理线程池
*/
public class ThreadManager {
ThreadPoolProxy poolProxy;
private static ThreadManager... | wuyinlei/SuperMarket | src/main/java/com/wuyin/supermarket/manager/ThreadManager.java | Java | apache-2.0 | 3,126 |
#
# Author:: Joshua Timberman (<joshua@getchef.com>)
# Copyright (c) 2014, Chef Software, Inc. <legal@getchef.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.or... | jordane/chef | spec/unit/resource/homebrew_package_spec.rb | Ruby | apache-2.0 | 1,212 |
/*
* Copyright 2015 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.ap... | pilhuhn/hawkular-android-client | src/main/java/org/hawkular/client/android/backend/model/Environment.java | Java | apache-2.0 | 1,729 |
/*
* Autopsy Forensic Browser
*
* Copyright 2014 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> 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://ww... | sidheshenator/autopsy | Core/src/org/sleuthkit/autopsy/modules/photoreccarver/PhotoRecCarverOutputParser.java | Java | apache-2.0 | 6,641 |
/*
* gucefVFS: GUCEF module implementing a Virtual File System
* Copyright (C) 2002 - 2007. Dinand Vanvelzen
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
*... | LiberatorUSA/GUCEF | platform/gucefVFS/src/gucefVFS_CVFSHandle.cpp | C++ | apache-2.0 | 4,430 |
// ============================================================================
//
// Copyright (C) 2006-2018 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// https://github.com/Talend/data-prep/blob/master/LICENSE
//
// You should have received a copy of the agreement
//... | Talend/data-prep | dataprep-api/src/main/java/org/talend/dataprep/api/service/command/preparation/PreparationMove.java | Java | apache-2.0 | 2,751 |
/**
* Copyright 2014 Eediom 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 ... | araqne/logdb | araqne-logdb/src/test/java/org/araqne/logdb/query/expr/ArrayTest.java | Java | apache-2.0 | 1,892 |
using dBosque.Stub.Interfaces;
using dBosque.Stub.Services;
using dBosque.Stub.Services.Extensions;
using dBosque.Stub.Services.Types;
using dBosque.Stub.Server.Soap.Interface;
using Microsoft.AspNetCore.Http;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Runtime.... | dbosque/Stub | dBosque.Stub.Server.Soap/Types/SoapStubMessage.cs | C# | apache-2.0 | 8,596 |
package com.hantsylabs.example.spring.jpa.spec;
import java.util.Date;
import com.hantsylabs.example.spring.model.QConference;
import com.querydsl.core.BooleanBuilder;
import com.querydsl.core.types.Predicate;
public class QueryDslPredicates {
public static Predicate inProgressConferences() {
QConference conf = ... | hantsy/spring4-sandbox | data-jpa/src/main/java/com/hantsylabs/example/spring/jpa/spec/QueryDslPredicates.java | Java | apache-2.0 | 1,031 |
// Copyright (c) 2016 Tigera, 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 applica... | projectcalico/calico | libcalico-go/lib/backend/encap/ipip.go | GO | apache-2.0 | 771 |
package com.mjrichardson.teamCity.buildTriggers.Fakes;
import com.mjrichardson.teamCity.buildTriggers.CacheManager;
import java.net.URI;
import java.util.HashMap;
import java.util.UUID;
public class FakeCacheManager implements CacheManager {
private HashMap<String, String> cache = new HashMap<>();
@Override... | matt-richardson/teamcity-octopus-build-trigger-plugin | octopus-build-trigger-server/src/test/java/com/mjrichardson/teamCity/buildTriggers/Fakes/FakeCacheManager.java | Java | apache-2.0 | 773 |
package javaselast.examples.csv;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Reader;
import java.lang.reflect.Field;
public class CsvReader extends Reader {
private BufferedReader bufferedReader;
public CsvReader(Reader reader) {
bufferedReader = new BufferedReader(read... | nesterione/JavaTrainings | src/javaselast/examples/csv/CsvReader.java | Java | apache-2.0 | 945 |
import logging
import pika
import sys
if sys.version[0] == '2':
import Queue as queue
else:
import queue as queue
from .. import rabbitutils
import esgfpid.defaults as defaults
from esgfpid.utils import loginfo, logdebug, logtrace, logerror, logwarn, log_every_x_times
LOGGER = logging.getLogger(__name__)
LOGGE... | IS-ENES-Data/esgf-pid | esgfpid/rabbit/asynchronous/thread_feeder.py | Python | apache-2.0 | 13,289 |
/*
* Copyright (C) 2017 exzogeni.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 required by applicable law or agreed to... | DanielSerdyukov/rxsqlite | alchemy/src/main/java/alchemy/Alchemy.java | Java | apache-2.0 | 1,801 |
package net.community.chest.jmx;
import java.io.IOException;
import java.util.Collection;
import net.community.chest.dom.DOMUtils;
import net.community.chest.io.EOLStyle;
import net.community.chest.jmx.dom.MBeanEntryDescriptor;
/**
* <P>Copyright 2008 as per GPLv2</P>
*
* <P>Definitions of the proprietary JMX pro... | lgoldstein/communitychest | chest/base-utils/jmx/src/main/java/net/community/chest/jmx/JMXProtocol.java | Java | apache-2.0 | 4,647 |
from typing import ClassVar, FrozenSet
from ..config import Config
from .dependency import IngressClassesDependency, SecretDependency, ServiceDependency
from .k8sobject import KubernetesGVK, KubernetesObject
from .k8sprocessor import ManagedKubernetesProcessor
from .resource import NormalizedResource, ResourceManager... | datawire/ambassador | python/ambassador/fetch/ingress.py | Python | apache-2.0 | 11,005 |
package ca.uhn.fhir.rest.server.interceptor.auth;
/*
* #%L
* HAPI FHIR - Server Framework
* %%
* Copyright (C) 2014 - 2017 University Health Network
* %%
* 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 ... | eug48/hapi-fhir | hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/interceptor/auth/AuthorizationInterceptor.java | Java | apache-2.0 | 12,075 |
/**
* Copyright 2016 Netflix, 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 in w... | benjchristensen/RxJava | src/main/java/io/reactivex/internal/observers/BasicIntQueueDisposable.java | Java | apache-2.0 | 1,391 |
package com.facepp.demo.mediacodec;
import android.opengl.EGL14;
import android.opengl.GLSurfaceView;
import android.opengl.Matrix;
import java.io.IOException;
/**
* Created by xiejiantao on 2017/10/27.
*/
public class MediaHelper {
/**
* muxer for audio/video recording
*/
private MediaMuxerW... | FacePlusPlus/MegviiFacepp-Android-SDK | faceppdemo/src/main/java/com/facepp/demo/mediacodec/MediaHelper.java | Java | apache-2.0 | 4,231 |
#include <ap_int.h>
#include "spbits.h"
#include "deltas.h"
#define bw_num 2
void delta::best_delta_seg_ch(
ap_uint<bw_th> dth [seg_ch*seg_ch], //change this when nseg value is changed
ap_uint<seg_ch*seg_ch> sth,//change this when nseg value is changed
ap_uint<seg_ch*seg_ch> dvl,//change this when nseg value... | nikhilghanathe/HLS-for-EMTF | sources_sim/best_delta.cpp | C++ | apache-2.0 | 2,443 |
'use strict';
// Report overall code coverage from Istanbul coverage files.
// Implemented in ES5 for now
/* eslint no-var: 0 */
var _ = require('underscore');
var path = require('path');
var fs = require('fs');
var util = require('util');
var tty = require('tty');
var istanbul = require('istanbul');
var map = _.ma... | stefanschneider/cf-abacus | tools/coverage/src/index.js | JavaScript | apache-2.0 | 5,626 |
// Copyright 2007-2015 Chris Patterson, Dru Sellers, Travis Smith, et. al.
//
// 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 ... | D3-LucaPiombino/MassTransit | src/MassTransit.AzureServiceBusTransport/Contexts/ConnectionContext.cs | C# | apache-2.0 | 2,155 |
package in.notwork.calculator;
import java.io.Serializable;
import java.util.Objects;
/**
* @author rishabh.
*/
public class GeoPoint implements Serializable {
private double latitude;
private double longitude;
public GeoPoint() {
super();
}
public GeoPoint(double latitude, double lon... | rishabh9/distance-calculator | src/main/java/in/notwork/calculator/GeoPoint.java | Java | apache-2.0 | 1,339 |
/**
* Copyright 2015-2018 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 appl... | ralscha/bsoncodec-apt | src/main/java/ch/rasc/bsoncodec/model/FieldModel.java | Java | apache-2.0 | 1,920 |
/**
* Trim leading and trailing whitespace
* @return {String} Returns trimmed string
*/
String.prototype.trim = function() {
return this.replace(/^\s+/, '').replace(/\s+$/, '');
}
/**
* Creates a new string utilizing placeholders defined in the source string
* @param {Object} values Array or object whose indices... | lerwine/JSCookbook | src/TypeExtensions/StringExtensions.js | JavaScript | apache-2.0 | 2,780 |
// Copyright 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | googleapis/dotnet-spanner-entity-framework | Google.Cloud.EntityFrameworkCore.Spanner.Tests/MigrationTests/GenerateCreateScriptTest.cs | C# | apache-2.0 | 5,850 |
/**
* <copyright>
*
* Copyright (c) 2010 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
... | adbrucker/SecureBPMN | designer/src/org.activiti.designer.model.edit/src/org/eclipse/bpmn2/provider/FormValueItemProvider.java | Java | apache-2.0 | 5,555 |
///done, not debug
__g_qrmCmatsize__ = [
undefined,
11, 13, 15, 17
];
///
__g_qrmCdatacodewords__ = {
L:[
undefined,
3, 5, 11, 16
],
M:[
undefined,
0, 4, 9, 14
],
Q:[
undefined,
0, 0, 0, 10
]
};
///
__g_qrmCtotalcodewords__ = {
L:[
undefined,
... | qnq777/matrixcode.js-legacy | public_html/js/qrcode/qrmcdata.js | JavaScript | apache-2.0 | 2,139 |
<?php
/*
* Copyright 2014 Stefan Lorenz
*
* 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... | stlrnz/PHPJsonConverter | lib/stlrnz/json/converter/exception/ConverterException.php | PHP | apache-2.0 | 886 |
/*
* Licensed to the Ted Dunning under one or more contributor license
* agreements. See the NOTICE file that may be
* distributed with this work for additional information
* regarding copyright ownership. Ted Dunning licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may n... | tdunning/log-synth | src/main/java/com/mapr/anomaly/Event.java | Java | apache-2.0 | 4,105 |
# -*- coding: utf-8 -*-
# this file is released under public domain and you can use without limitations
#########################################################################
## This is a samples controller
## - index is the default action of any application
## - user is required for authentication and authorizatio... | dmnfarrell/epitopemap | controllers/default.py | Python | apache-2.0 | 49,804 |
package apimanagement
// Copyright (c) Microsoft 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/licenses/LICENSE-2.0
//
... | stubey/azure-sdk-for-go | arm/apimanagement/loggers.go | GO | apache-2.0 | 20,774 |
// Copyright 2015 The Prometheus 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... | wu8685/prometheus | retrieval/discovery/kubernetes/discovery.go | GO | apache-2.0 | 21,262 |
/*
* 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 ... | windwardadmin/android-awt | src/main/java/org/apache/commons/imaging/common/ImageMetadata.java | Java | apache-2.0 | 2,989 |
<?php
header("location:Login.php");
?> | ThanakornDN/WorkShopI | Logout.php | PHP | apache-2.0 | 38 |
package io.intercom.api;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@SuppressWarnings("UnusedDeclaration")
@JsonIgnoreProperties(ignoreUnknown = true)
public class NoteCollection extends TypedDataCollection<Note> {
... | intercom/intercom-java | intercom-java/src/main/java/io/intercom/api/NoteCollection.java | Java | apache-2.0 | 617 |
/*
* Copyright (C) 2015 The Gravitee team (http://gravitee.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 requi... | gravitee-io/graviteeio-access-management | gravitee-am-ui/src/app/domain/components/emails/email/email.component.ts | TypeScript | apache-2.0 | 6,286 |
/*
* $Header$
* $Revision: 1228 $
* $Date: 2006-11-08 08:00:22 -0800 (Wed, 08 Nov 2006) $
*
* ====================================================================
*
* Copyright 2000-2002 bob mcwhirter & James Strachan.
* All rights reserved.
*
* Redistribution and use in source and binary forms, wit... | hidekatsu-izuno/xmlic | src/main/java/net/arnx/xmlic/internal/org/jaxen/expr/UnionExpr.java | Java | apache-2.0 | 3,019 |
/*
Copyright 2019 Esri
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, ... | Esri/arcobjects-sdk-community-samples | Net/Framework/RecentFilesCommands/CSharp/RecentFilesRegistryHelper.cs | C# | apache-2.0 | 1,930 |
// Copyright 2017 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 applicabl... | GoogleCloudPlatform/stackdriver-reverse-proxy | cmd/stackdriver-reverse-proxy/main.go | GO | apache-2.0 | 3,169 |
/*
* 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-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/transform/DescribeInventoryDeletionsRequestProtocolMarshaller.java | Java | apache-2.0 | 2,897 |
/**
* Copyright 2011-2021 Asakusa Framework 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... | asakusafw/asakusafw | core-project/asakusa-runtime/src/main/java/com/asakusafw/runtime/flow/ListBuffer.java | Java | apache-2.0 | 3,339 |
/**
* Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.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
*
* ... | luoqii/osgi_android_demos_from_network | apkplug/apkplugDemo/bundle/BundleDemoApkplugService/src/net/tsz/afinal/bitmap/core/BaseMemoryCacheImpl.java | Java | apache-2.0 | 1,471 |
using UnityEngine;
using System.Collections;
public class monkey7 : MonoBehaviour {
public float speed = 100f;//英雄速度
public Vector2 current_position;
Animator animator;
public Grid grid = new Grid(14,10);
public AStar astar;
public float time = 0;
public bool finish = false;//是否已经完成
public bool walk = false... | renmaoting/maze-storm | maze storm/Assets/script/level7/monkey7.cs | C# | apache-2.0 | 4,277 |
package org.develnext.jphp.swing.loader.support.propertyreaders;
import org.develnext.jphp.swing.loader.support.PropertyReader;
import org.develnext.jphp.swing.loader.support.Value;
import javax.swing.*;
import java.util.HashMap;
import java.util.Map;
public class JToolBarPropertyReaders extends PropertyReaders<JToo... | livingvirus/jphp | jphp-swing-ext/src/org/develnext/jphp/swing/loader/support/propertyreaders/JToolBarPropertyReaders.java | Java | apache-2.0 | 1,566 |
package android.nfc;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2010 - 2014 Orange SA
* %%
* 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... | Orange-OpenSource/matos-profiles | matos-android/src/main/java/android/nfc/NfcEvent.java | Java | apache-2.0 | 842 |
define(function (require, exports) {
var ko = require('knockout')
var expressionViewer = require('./components/CohortExpressionViewer');
ko.components.register('cohort-expression-viewer', expressionViewer);
var criteriaGroup = require('./components/CriteriaGroup');
ko.components.register('criteria-group-view... | OHDSI/Circe | js/modules/cohortdefinitionviewer/main.js | JavaScript | apache-2.0 | 2,914 |
/*
* Copyright 2010 John Hopper
*
* 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... | zinic/jliocc | src/main/java/net/jps/lioc/context/ContextReferenceAliaser.java | Java | apache-2.0 | 860 |
package com.sushe.service;
import com.sushe.entity.School;
import java.util.List;
/**
* Created by jiangbin on 15/4/23.
*/
public interface SchoolService {
/**
* 查询学校
* @return
*/
public List<School> selectAll();
public School selectByName(String name);
}
| Guitjerry/schoolApp | src/com/sushe/service/SchoolService.java | Java | apache-2.0 | 296 |
/*
* Copyright (C) 2011 The Guava 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 agre... | wspeirs/sop4j-base | src/main/java/com/sop4j/base/google/common/util/concurrent/FutureCallback.java | Java | apache-2.0 | 1,509 |
/**
* Copyright 2012 GroupDocs.
*
* 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... | liosha2007/temporary-groupdocs-java-sdk | src/main/java/com/groupdocs/sdk/common/FileStream.java | Java | apache-2.0 | 2,541 |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle... | carnegiespeech/translations | az/book.php | PHP | apache-2.0 | 4,904 |
package com.coderli.shurnim.storage.plugin;
import java.io.File;
/**
* 插件资源<br>
* 定义了插件的描述信息以及对应的处理器信息(例如: 文件解析器。{@code PluginParser})
*
* @author OneCoder
* @date 2014年4月20日 下午8:53:17
* @website http://www.coderli.com
*/
public interface PluginResource {
/**
* 获取对应的配置文件解析器
*
* @return
* @author On... | lihongzheshuai/shurnim-storage | src/main/java/com/coderli/shurnim/storage/plugin/PluginResource.java | Java | apache-2.0 | 648 |
package migrations
import (
"github.com/fnproject/fn/api/datastore/sql/migratex"
)
// Migrations is the list of fn specific sql migrations to run
var Migrations []migratex.Migration
func vfunc(v int64) func() int64 { return func() int64 { return v } }
| fnproject/fn | api/datastore/sql/migrations/migs.go | GO | apache-2.0 | 256 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
// using System.ServiceProcess;
using System.Text;
using System.Threading;
using System.Security.Cryptography.X509Certificates;
using System.ServiceModel;
using System.ServiceMod... | renyh1013/dp2 | dp2LibraryXE/LibraryHost.cs | C# | apache-2.0 | 17,502 |
/*
* Copyright 2013 Netherlands eScience Center
*
* 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 ... | NLeSC/Xenon | src/main/java/nl/esciencecenter/xenon/filesystems/FileSystem.java | Java | apache-2.0 | 63,280 |
maintainer 'Wesleyan University'
maintainer_email 'software@wesleyan.edu'
license 'Apache 2.0'
description 'Manages file type associations'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.2.0'
depends 'common'
depends 'homebrew'
| wesleyan/chef-cookbooks | cookbooks/launch_association/metadata.rb | Ruby | apache-2.0 | 311 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace Assets.NVR.Interfaces.Elements
{
public interface IElement : IUnit
{
void SetColor(string color);
void SetPosition(float pos);
}
}
| tsvetie/nativescript-cli | resources/vr/Assets/NVR/Interfaces/Elements/IElement.cs | C# | apache-2.0 | 278 |
package org.infinispan.protostream;
/**
* An interface to be implemented by marshaller objects of type {@link MessageMarshaller}) that are able to handle
* unknown fields by storing them into an {@link UnknownFieldSet}.
*
* @author anistor@redhat.com
* @since 3.0
*/
public interface UnknownFieldSetHandler<T> {
... | jmarkos/protostream | core/src/main/java/org/infinispan/protostream/UnknownFieldSetHandler.java | Java | apache-2.0 | 445 |
public struct SomeValue
{
public static SomeValue operator-(SomeValue someValue, SomeValue someValue2)
{
return new SomeValue();
}
}
public class Program
{
public static void Main()
{
SomeValue? nullable = new SomeValue();
SomeValue someValue = new SomeValue();
nullable -= someValue;
}
} | consulo/consulo-csharp | csharp-impl/src/test/resources/resolve/other/Issue424.cs | C# | apache-2.0 | 306 |
package com.fasterxml.jackson.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation that can be used to define one or more alternative names for
* a property, accepted during deser... | FasterXML/jackson-annotations | src/main/java/com/fasterxml/jackson/annotation/JsonAlias.java | Java | apache-2.0 | 1,130 |
package com.example.linxj.tool;
public interface RequestListener {
public static final int EVENT_BASE = 0x100;
/**
* 没有网络的信息提示
* */
public static final int EVENT_NOT_NETWORD = EVENT_BASE + 1;
/**
* 网络异常的信息提示
* */
public static final int EVENT_NETWORD_EEEOR = EVENT_... | lab702-flyme/sweo_android | app/src/main/java/com/example/linxj/tool/RequestListener.java | Java | apache-2.0 | 787 |
package net.joelinn.riot.staticdata.dto;
/**
* Joe Linn
* 2/1/14
*/
public class RuneType {
public boolean isrune;
public String tier;
public String type;
}
| jlinn/riot-api-java | src/main/java/net/joelinn/riot/staticdata/dto/RuneType.java | Java | apache-2.0 | 173 |
package com.example.mohit.tpomnnit.tpo;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bun... | mkfeuhrer/TPO-MNNIT | app/src/main/java/com/example/mohit/tpomnnit/tpo/TpoHome.java | Java | apache-2.0 | 15,187 |
namespace Husky
{
public enum OnOff
{
[Label("关闭", CssClass = "text-danger")]
Off,
[Label("开启", CssClass = "text-success")]
On
}
}
| cwx521/Husky | src/Husky.Helpers/Enums/OnOff.cs | C# | apache-2.0 | 154 |
package com.packt.sfjd.ch11;
import java.io.Serializable;
import scala.runtime.AbstractFunction2;
public class AbsFunc2 extends AbstractFunction2<Object, String, Object> implements Serializable{
@Override
public Object apply(Object arg0, String arg1) {
return true;
}
} | kumarsumit1/learning | src/main/java/com/packt/sfjd/ch11/AbsFunc2.java | Java | apache-2.0 | 283 |
// Copyright 2006 Konrad Twardowski
//
// 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... | stuffer2325/Makagiga | src/org/makagiga/commons/swing/MWindow.java | Java | apache-2.0 | 3,865 |
export default class Shared {
getPrettyDate(time) {
const date = new Date((time || '').replace(/-/g,'/').replace(/[TZ]/g,' '));
const diff = (((new Date()).getTime() - date.getTime()) / 1000);
const day_diff = Math.floor(diff / 86400);
// return date for anything greater than a day
if (i... | beckettkev/react-chat-back | src/utils/shared.js | JavaScript | apache-2.0 | 867 |
package com.amazonaws.fps.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
... | DomDerrien/amazon-fps-gaej | src/com/amazonaws/fps/model/WriteOffDebtResult.java | Java | apache-2.0 | 7,331 |
/*
Copyright 2010 Zhengmao HU (James)
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... | james-hu/jabb-core | src/main/java/net/sf/jabb/util/db/impl/TryDataSourceProvider.java | Java | apache-2.0 | 1,868 |
package org.jboss.resteasy.reactive.server.vertx.test.customproviders;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
@Provider
public class UniExceptionMapper implements ExceptionMapper<UniException> {
@Override
public Response toResponse(UniExcept... | quarkusio/quarkus | independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniExceptionMapper.java | Java | apache-2.0 | 409 |
package utils
import (
"math/rand"
"time"
)
const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
const (
letterIdxBits = 6 // 6 bits to represent a letter index
letterIdxMask = 1<<letterIdxBits - 1 // All 1-bits, as many as letterIdxBits
letterIdxMax = 63 / let... | fiatjaf/summadb | utils/random.go | GO | apache-2.0 | 964 |
# Copyright 2011 OpenStack Foundation
# Copyright 2011 - 2012, Red Hat, 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-... | redhat-cip/openstack-logcollector | openstack-logcollector/openstack/common/rpc/impl_qpid.py | Python | apache-2.0 | 29,688 |