code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
/*
* Copyright (C) 2009-2015 Dell, Inc.
* See annotations for authorship information
*
* ====================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a cop... | maksimov/dasein-cloud-aws-old | src/main/java/org/dasein/cloud/aws/identity/IAMCapabilities.java | Java | apache-2.0 | 2,228 |
/*
* 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 ... | a1vanov/ignite | modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCachePreloaderAdapter.java | Java | apache-2.0 | 5,818 |
package fr.javatronic.blog.massive.annotation1;
import fr.javatronic.blog.processor.Annotation_001;
@Annotation_001
public class Class_175 {
}
| lesaint/experimenting-annotation-processing | experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/Class_175.java | Java | apache-2.0 | 145 |
<?php
/**
* Copyright 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 "li... | Smith-and-Associates/amazon-payments-magento-2-plugin | src/Login/Plugin/LoginController.php | PHP | apache-2.0 | 1,249 |
/*-
* -\-\-
* docker-client
* --
* Copyright (C) 2016 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
*
* Unles... | MarcoLotz/docker-client | src/main/java/com/spotify/docker/client/messages/CpuStats.java | Java | apache-2.0 | 3,323 |
package io.sensesecure.hadoop.xz;
import java.io.BufferedInputStream;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import org.apache.hadoop.io.SequenceFile;
import org.apache.hadoop.io.compress.CompressionInputStream;
import org.tukaani.xz.XZInputStream;
/**
*
* @author yongt... | yongtang/hadoop-xz | src/main/java/io/sensesecure/hadoop/xz/XZCompressionInputStream.java | Java | apache-2.0 | 2,173 |
package generics;
//: generics/SuperTypeWildcards.java
import java.util.*;
public class SuperTypeWildcards {
static void writeTo(List<? super Apple> apples) {
apples.add(new Apple());
apples.add(new Jonathan());
// apples.add(new Fruit()); // Error
}
} ///:~
| Shelley132/java-review | thinkinginjava/generics/SuperTypeWildcards.java | Java | apache-2.0 | 276 |
package org.giwi.geotracker.routes.priv;
import io.vertx.core.Vertx;
import io.vertx.ext.web.Router;
import io.vertx.ext.web.RoutingContext;
import org.giwi.geotracker.annotation.VertxRoute;
import org.giwi.geotracker.beans.AuthUtils;
import org.giwi.geotracker.exception.BusinessException;
import org.giwi.geotracker.s... | Giwi/geoTracker | src/main/java/org/giwi/geotracker/routes/priv/ParamRoute.java | Java | apache-2.0 | 1,430 |
// Copyright 2017 The Nomulus 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 a... | google/nomulus | core/src/main/java/google/registry/model/translators/CidrAddressBlockTranslatorFactory.java | Java | apache-2.0 | 1,397 |
describe("", function() {
var rootEl;
beforeEach(function() {
rootEl = browser.rootEl;
browser.get("build/docs/examples/example-example60/index.html");
});
it('should check ng-bind', function() {
var nameInput = element(by.model('name'));
expect(element(by.binding('name')).getText()).toB... | LADOSSIFPB/nutrif | nutrif-web/lib/angular/docs/ptore2e/example-example60/default_test.js | JavaScript | apache-2.0 | 461 |
/*
* ARX: Powerful Data Anonymization
* Copyright 2012 - 2021 Fabian Prasser and contributors
*
* 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... | arx-deidentifier/arx | src/gui/org/deidentifier/arx/gui/view/impl/define/ViewPrivacyModels.java | Java | apache-2.0 | 13,712 |
<?php
namespace Circle314\Component\Data\Persistence\Operation\Cache;
use Circle314\Component\Data\Persistence\Operation\Response\ResponseInterface;
use Circle314\Concept\Identification\IdentifiableInterface;
interface QueryInterface extends IdentifiableInterface
{
/**
* Gets an existing Response for the Qu... | circle314/circle314 | src/Component/Data/Persistence/Operation/Cache/QueryInterface.php | PHP | apache-2.0 | 804 |
import React from 'react';
import { action } from '@storybook/addon-actions';
import Checkbox from '.';
const onChange = action('onChange');
const defaultProps = {
id: 'id1',
onChange,
};
const intermediate = {
id: 'id2',
onChange,
intermediate: true,
};
const checked = {
id: 'id3',
onChange,
checked: true,
... | Talend/ui | packages/components/src/Checkbox/Checkbox.stories.js | JavaScript | apache-2.0 | 1,203 |
/*
* Copyright (c) 2016 Hugo Matalonga & João Paulo Fernandes
*
* 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 ... | hmatalonga/GreenHub | app/src/main/java/com/hmatalonga/greenhub/ui/TaskListActivity.java | Java | apache-2.0 | 25,536 |
/*
*
* * Copyright 2015 Skymind,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
* *
* * U... | GeorgeMe/nd4j | nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/accum/Mean.java | Java | apache-2.0 | 2,853 |
from karld.loadump import dump_dicts_to_json_file
from karld.loadump import ensure_dir
from karld.loadump import ensure_file_path_dir
from karld.loadump import i_get_csv_data
from karld.loadump import is_file_csv
from karld.loadump import i_get_json_data
from karld.loadump import is_file_json
from karld.loadump imp... | johnwlockwood/karl_data | karld/io.py | Python | apache-2.0 | 641 |
package com.fantasy.lulutong.activity.me;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import com.fantasy.lulutong.R;
import com.fantasy.lulutong.activity.BaseActivity;
/**
* “注册”的页面
* @author Fantasy
* @version 1.0, 2017-02-
*/
public class RegisterActi... | FantasyLWX/LuLuTong | app/src/main/java/com/fantasy/lulutong/activity/me/RegisterActivity.java | Java | apache-2.0 | 863 |
package com.blackducksoftware.integration.hub.detect.tool.bazel;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.ArrayList;
import java.util.List;
import org.junit.jupiter.api.Test;
public class BazelVariableSubstitutorTest {
@Test
public void testTargetOnly() {
BazelV... | blackducksoftware/hub-detect | hub-detect/src/test/groovy/com/blackducksoftware/integration/hub/detect/tool/bazel/BazelVariableSubstitutorTest.java | Java | apache-2.0 | 1,618 |
package com.dyhpoon.fodex.navigationDrawer;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import com.dyhpoon.fodex.R;
/**
* Created by darrenpoon on 3/2/15.
*/
public class NavigationDrawerAdapter extends SectionAdapter {
private Context mContext;
public class V... | dyhpoon/Fo.dex | app/src/main/java/com/dyhpoon/fodex/navigationDrawer/NavigationDrawerAdapter.java | Java | apache-2.0 | 4,636 |
package ibmmq
/*
Copyright (c) IBM Corporation 2018
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... | ibm-messaging/mq-golang | ibmmq/mqiCBD.go | GO | apache-2.0 | 1,975 |
package com.jukusoft.libgdx.rpg.engine.story.impl;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.jukusoft.libgdx.rpg.engine.story.StoryPart;
import com.jukusoft.libgdx.rpg.engine.story.StoryTeller;
import com.jukusoft.libgdx.rpg.engine.time.GameTime;
impo... | JuKu/libgdx-test-rpg | engine/src/main/java/com/jukusoft/libgdx/rpg/engine/story/impl/DefaultStoryTeller.java | Java | apache-2.0 | 3,080 |
/*
* Copyright 2014 NAVER Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | wziyong/pinpoint | web/src/main/java/com/navercorp/pinpoint/web/controller/ItemController.java | Java | apache-2.0 | 2,732 |
var editMode = portal.request.mode == 'edit';
var content = portal.content;
var component = portal.component;
var layoutRegions = portal.layoutRegions;
var body = system.thymeleaf.render('view/layout-70-30.html', {
title: content.displayName,
path: content.path,
name: content.name,
editable: editMode,... | RF0/wem-sample-package | modules/xeon-1.0.0/component/layout-70-30/get.js | JavaScript | apache-2.0 | 607 |
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("ASC.Data.Backup.Console")]
[assembl... | ONLYOFFICE/CommunityServer | common/ASC.Data.Backup.Console/Properties/AssemblyInfo.cs | C# | apache-2.0 | 1,460 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Arch.CMessaging.Client.Impl.Consumer
{
public interface IDisposed
{
bool IsDispose { get; }
}
}
| zesus19/hermes.net | Arch.CMessaging.Client/CMessagingV1/Impl/Consumer/IDisposed.cs | C# | apache-2.0 | 216 |
/**
* Solutii Ecommerce, Automatizare, Validare si Analiza | Seava.ro
* Copyright: 2013 Nan21 Electronics SRL. All rights reserved.
* Use is subject to license terms.
*/
Ext.define("seava.ad.ui.extjs.frame.DateFormatMask_Ui", {
extend: "e4e.ui.AbstractUi",
alias: "widget.DateFormatMask_Ui",
/**
* Data-contro... | seava/seava.mod.ad | seava.mod.ad.ui.extjs/src/main/resources/webapp/seava/ad/ui/extjs/frame/DateFormatMask_Ui.js | JavaScript | apache-2.0 | 1,296 |
// modules are defined as an array
// [ module function, map of requireuires ]
//
// map of requireuires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the requireuire for previous bundles
(function outer (modules, cache, entry) {
//... | stdlib-js/www | public/docs/api/latest/@stdlib/utils/every-by/benchmark_bundle.js | JavaScript | apache-2.0 | 750,474 |
package org.renjin.primitives;
import org.renjin.eval.Context;
import org.renjin.eval.EvalException;
import org.renjin.primitives.annotations.processor.ArgumentException;
import org.renjin.primitives.annotations.processor.ArgumentIterator;
import org.renjin.primitives.annotations.processor.WrapperRuntime;
import org.... | bedatadriven/renjin-statet | org.renjin.core/src-gen/org/renjin/primitives/R$primitive$attr$assign.java | Java | apache-2.0 | 3,078 |
/**
--| ADAPTIVE RUNTIME PLATFORM |----------------------------------------------------------------------------------------
(C) Copyright 2013-2015 Carlos Lozano Diez t/a Adaptive.me <http://adaptive.me>.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wi... | AdaptiveMe/adaptive-arp-windows | adaptive-arp-lib/adaptive-arp-lib/Sources/Adaptive.Arp.Api/EmailAttachmentData.cs | C# | apache-2.0 | 6,042 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WpfApplicationLauncher.GUI;
namespace WpfApplicationLauncher.Logging
{
public static class Log
{
public enum EntrySeverity
{
Info,
Warning,
Error,
FatalE... | tlmorgen/WpfApplicationLauncher | WpfApplicationLauncher/WpfApplicationLauncher/Logging/Log.cs | C# | apache-2.0 | 1,668 |
package com.chinare.rop.server;
import javax.servlet.http.HttpServletRequest;
/**
* @author 王贵源(wangguiyuan@chinarecrm.com.cn)
*/
public interface RequestChecker {
public boolean check(HttpServletRequest request);
}
| ZHCS-CLUB/AXE | axe/axe-chinare-rop/axe-chinare-rop-server/src/main/java/com/chinare/rop/server/RequestChecker.java | Java | apache-2.0 | 242 |
using System;
using System.Xml.Serialization;
namespace SvnBridge.Protocol
{
[Serializable]
[XmlRoot("get-locks-report", Namespace = WebDav.Namespaces.SVN)]
public class GetLocksReportData
{
}
} | Dynamsoft/SVN-SourceAnywhere-Bridge | SvnBridgeLibrary/Protocol/GetLocksReportData.cs | C# | apache-2.0 | 215 |
/*
* Generated by the Jasper component of Apache Tomcat
* Version: Apache Tomcat/7.0.53
* Generated at: 2015-06-08 03:36:45 UTC
* Note: The last modified time of this file was set to
* the last modified time of the source file after
* generation to assist with modification tracking.
*/
package org.ap... | freedomkk-qfeng/docker-sakai | demo/10.2-fudan/sakai-demo-10.2/work/Catalina/localhost/sakai-user-tool-prefs/org/apache/jsp/prefs/tab_jsp.java | Java | apache-2.0 | 292,251 |
/********************************************************************************
* Copyright (c) 2019 Stephane Bastian
*
* This program and the accompanying materials are made available under the 2
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-L... | vert-x3/vertx-auth | vertx-auth-common/src/main/java/io/vertx/ext/auth/authorization/impl/PermissionBasedAuthorizationImpl.java | Java | apache-2.0 | 4,026 |
<?php
/**
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
*/
namespace Magento\Framework\Stdlib\DateTime;
interface DateInterface
{
/**
* Sets class wide options, if no option was given, the actual set options will be returned
*
* @param array $options \Options... | webadvancedservicescom/magento | lib/internal/Magento/Framework/Stdlib/DateTime/DateInterface.php | PHP | apache-2.0 | 59,193 |
package org.polyglotted.xpathstax.model;
import com.google.common.base.Splitter;
import com.google.common.collect.Iterables;
import org.codehaus.stax2.XMLStreamReader2;
import org.polyglotted.xpathstax.data.Value;
import javax.annotation.concurrent.ThreadSafe;
import java.util.Iterator;
import java.util.Map.Entry;
im... | polyglotted/xpath-stax | src/main/java/org/polyglotted/xpathstax/model/XmlAttribute.java | Java | apache-2.0 | 4,780 |
package org.javarosa.model.xform;
import org.javarosa.core.data.IDataPointer;
import org.javarosa.core.model.IAnswerDataSerializer;
import org.javarosa.core.model.instance.FormInstance;
import org.javarosa.core.model.instance.TreeElement;
import org.javarosa.core.model.instance.TreeReference;
import org.javarosa.core.... | dimagi/javarosa | javarosa/core/src/main/java/org/javarosa/model/xform/XFormSerializingVisitor.java | Java | apache-2.0 | 8,206 |
package io.silverspoon.bulldog.beagleboneblack.devicetree;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
public class DeviceTreeCompiler {
private static final String FIRMWARE_PATH = "/lib/firmware/";
private static final String OBJECT_FILE_PATTER... | xjaros1/bulldog | bulldog-board-beagleboneblack/src/main/java/io/silverspoon/bulldog/beagleboneblack/devicetree/DeviceTreeCompiler.java | Java | apache-2.0 | 1,303 |
# Copyright 2016 Nuage Netowrks USA 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 l... | naveensan1/nuage-openstack-neutron | nuage_neutron/vpnaas/device_drivers/driver.py | Python | apache-2.0 | 12,933 |
package com.xyp.sapidoc.idoc.enumeration;
import java.util.HashSet;
import java.util.Set;
/**
*
* @author Yunpeng_Xu
*/
public enum TagEnum {
FIELDS("FIELDS"),
RECORD_SECTION("RECORD_SECTION"),
CONTROL_RECORD("CONTROL_RECORD"),
DATA_RECORD("DATA_RECORD"),
STATUS_RECORD("ST... | PeterXyp/sapidoc | src/main/java/com/xyp/sapidoc/idoc/enumeration/TagEnum.java | Java | apache-2.0 | 1,036 |
from django.conf.urls import patterns, include, url
from django.contrib import admin
from api import views
admin.autodiscover()
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register(r'headings', views.HeadingViewSet)
router.register(r'users', views.UserViewSet)
urlpatterns = patte... | timokoola/okrest | okrest/okrest/urls.py | Python | apache-2.0 | 449 |
//
// Ingredient.cs
//
// Author:
// Benito Palacios <benito356@gmail.com>
//
// Copyright (c) 2015 Benito Palacios
//
// This program 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 vers... | pleonex/Ninokuni | Programs/Downlitor/Downlitor/Ingredient.cs | C# | apache-2.0 | 1,310 |
/*
* Copyright (c) 2009, Rickard Öberg. 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 l... | Qi4j/qi4j-core | bootstrap/src/main/java/org/qi4j/bootstrap/AssemblyVisitorAdapter.java | Java | apache-2.0 | 1,820 |
package com.ctrip.framework.cs.enterprise;
import com.ctrip.framework.cs.configuration.ConfigurationManager;
import com.ctrip.framework.cs.configuration.InitConfigurationException;
import com.ctrip.framework.cs.util.HttpUtil;
import com.ctrip.framework.cs.util.PomUtil;
import com.google.gson.Gson;
import org.slf4j.Log... | ctripcorp/cornerstone | cornerstone/src/main/java/com/ctrip/framework/cs/enterprise/NexusEnMaven.java | Java | apache-2.0 | 5,024 |
#
# Copyright 2013 Quantopian, 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 wr... | lsbardel/zipline | zipline/finance/risk/period.py | Python | apache-2.0 | 9,654 |
/*
* 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... | googleapis/google-api-java-client-services | clients/google-api-services-speech/v1/1.31.0/com/google/api/services/speech/v1/model/WordInfo.java | Java | apache-2.0 | 7,866 |
#!/usr/bin/python
#-*-coding:utf8-*-
from bs4 import BeautifulSoup as Soup
#import pandas as pd
import glob
import sys
import re
"""
Version xml de cfdi 3.3
"""
class CFDI(object):
def __init__(self, f):
"""
Constructor que requiere en el parámetro una cadena con el nombre del
cfdi.
... | sergiohzlz/lectorcfdi | extrainfo.py | Python | apache-2.0 | 8,345 |
require "decoplan/algorithm"
require "decoplan/dive_profile"
module Decoplan
class Algorithm
class Buhlmann < Algorithm
attr_accessor :lo
attr_accessor :hi
attr_accessor :compartments
N2_HALF = [ 4.0, 5.0, 8.0, 12.5, 18.5, 27.0, 38.3, 54.3, 77.0, 109.0, 146.0, 187.0, 239.0, 305.0, 390.0... | lamont-granquist/decoplan | lib/decoplan/algorithm/buhlmann.rb | Ruby | apache-2.0 | 2,171 |
#!/usr/bin/python3
from colorama import Fore, Back
class frets:
tuning = list()
max_string_name_len = 0;
frets_count = 0;
strings = dict()
NOTES = ('E', 'F', 'F#', 'G', 'G#', 'A', 'A#', 'B', 'C', 'C#', 'D', 'D#')
def __init__(self,
tuning=('E', 'A', 'D', 'G'),
... | mariuszlitwin/frets | frets.py | Python | apache-2.0 | 4,690 |
/*
* PartitioningOperators.java Feb 3 2014, 03:44
*
* Copyright 2014 Drunken Dev.
*
* 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... | brettryan/jdk8-lambda-samples | src/main/java/com/drunkendev/lambdas/PartitioningOperators.java | Java | apache-2.0 | 6,846 |
package com.esri.mapred;
import com.esri.io.PointFeatureWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.mapred.InputSplit;
import org.apache.hadoop.mapred.JobConf;
import org.apache.hadoop.mapred.RecordReader;
import org.apache.hadoop.mapred.Reporter;
import java.io.IOException;
/**
*/
... | syntelos/shapefile-java | src/com/esri/mapred/PointFeatureInputFormat.java | Java | apache-2.0 | 1,483 |
// -----------------------------------------------------------------------------------------
// <copyright file="TableSasUnitTests.cs" company="Microsoft">
// Copyright 2013 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in comp... | MatthewSteeples/azure-storage-net | Test/ClassLibraryCommon/Table/SAS/TableSasUnitTests.cs | C# | apache-2.0 | 67,776 |
/* Copyright 2018 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 writing... | GoogleCloudPlatform/dlp-rdb-bq-import | src/main/java/com/google/swarm/sqlserver/migration/common/SqlDataType.java | Java | apache-2.0 | 1,596 |
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
usin... | WindyDarian/Art-of-Destiny | CombatLibrary/Spells/SpaceBomb.cs | C# | apache-2.0 | 2,681 |
/**
* echarts组件:孤岛数据
*
* @desc echarts基于Canvas,纯Javascript图表库,提供直观,生动,可交互,可个性化定制的数据统计图表。
* @author Kener (@Kener-林峰, linzhifeng@baidu.com)
*
*/
define(function (require) {
/**
* 构造函数
* @param {Object} messageCenter echart消息中心
* @param {ZRender} zr zrender实例
* @param {Object} option 图表选项
... | ghostry/Gadmin | Public/Lib/echarts/chart/island.js | JavaScript | apache-2.0 | 8,473 |
/*
* Copyright 2004-2013 the Seasar Foundation and the Others.
*
* 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 ... | dbflute-test/dbflute-test-dbms-mysql | src/main/java/org/docksidestage/mysql/dbflute/bsentity/BsWhiteImplicitReverseFkRef.java | Java | apache-2.0 | 10,962 |
class Addon < ActiveRecord::Base
has_many :server_addons
has_many :servers, through: :server_addons
scope :available, -> { where(hidden: false).order(:created_at) }
end
| OnApp/cloudnet | app/models/addon.rb | Ruby | apache-2.0 | 184 |
/**
* Copyright (c) 2016 Lemur Consulting Ltd.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by appli... | flaxsearch/BioSolr | ontology/ontology-annotator/elasticsearch-ontology-annotator/es-ontology-annotator-es2.2/src/main/java/uk/co/flax/biosolr/elasticsearch/OntologyHelperBuilder.java | Java | apache-2.0 | 4,116 |
'use strict';
/**
* @ngdoc function
* @name freshcardUiApp.controller:TemplatesCtrl
* @description
* # TemplatesCtrl
* Controller of the freshcardUiApp
*/
angular.module('freshcardUiApp')
.controller('TemplatesCtrl', function (
$scope,
$rootScope,
$localStorage,
$filter,
$timeout,
FileUploader,
Organizati... | BjoernKW/FreshcardUI | app/scripts/controllers/templates.js | JavaScript | apache-2.0 | 4,492 |
/*
* Copyright 2004-2013 the Seasar Foundation and the Others.
*
* 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 ... | dbflute-test/dbflute-test-dbms-mysql | src/main/java/org/docksidestage/mysql/dbflute/immuhama/bsbhv/loader/ImmuLoaderOfMemberLogin.java | Java | apache-2.0 | 3,938 |
/*
*
* Copyright 2015 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 a... | Netflix/Fido | Fido_Support/Objects/Fido/Object_Fido_ConfigClass.cs | C# | apache-2.0 | 3,292 |
export const VERSION = 1;
/** Same as DexieExportJsonStructure but without the data.data array */
export interface DexieExportJsonMeta {
formatName: 'dexie';
formatVersion: typeof VERSION;
data: {
databaseName: string;
databaseVersion: number;
tables: Array<{
name: string;
schema: string;... | dfahlander/Dexie.js | addons/dexie-export-import/src/json-structure.ts | TypeScript | apache-2.0 | 890 |
/*
* Copyright © 2009 HotPads (admin@hotpads.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... | hotpads/datarouter | datarouter-webapp-instance/src/main/java/io/datarouter/webappinstance/storage/webappinstancelog/DatarouterWebappInstanceLogDao.java | Java | apache-2.0 | 3,351 |
package nl.galesloot_ict.efjenergy.MeterReading;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.util.Array... | fjgalesloot/eFJenergy | Android/app/src/main/java/nl/galesloot_ict/efjenergy/MeterReading/MeterReadingsList.java | Java | apache-2.0 | 794 |
@route += '/' + ARGV[0] + '/' + ARGV[1] + '/'+ ARGV[2] + '/' + ARGV[3]
@route += '/' + ARGV[4] if ARGV.count == 5
perform_get | EnginesOS/System | src/client/commands/schedules.rb | Ruby | apache-2.0 | 128 |
package com.walmart.labs.pcs.normalize.MongoDB.SpringBoot.service;
import com.walmart.labs.pcs.normalize.MongoDB.SpringBoot.entity.Person;
import com.walmart.labs.pcs.normalize.MongoDB.SpringBoot.repository.PersonRepository;
import com.walmart.labs.pcs.normalize.MongoDB.SpringBoot.repository.PersonRepositoryImp;
impor... | ArthurZhong/SparkStormKafkaTest | src/main/java/com/walmart/labs/pcs/normalize/MongoDB/SpringBoot/service/PersonService.java | Java | apache-2.0 | 925 |
package edu.wsu.weather.agweathernet.helpers;
import java.io.Serializable;
public class StationModel implements Serializable {
private static final long serialVersionUID = 1L;
private String unitId;
private String name;
private String county;
private String city;
private String state;
private String installati... | levanlevi/AgWeatherNet | src/edu/wsu/weather/agweathernet/helpers/StationModel.java | Java | apache-2.0 | 2,366 |
#!/usr/bin/env python
# SIM-CITY client
#
# Copyright 2015 Netherlands eScience Center <info@esciencecenter.nl>
#
# 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/l... | nlesc-sherlock/analyzing-corpora | corpora/load_archive.py | Python | apache-2.0 | 1,507 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Qu... | qulia/CrackingTheCodingInterview | Question_04_09_BSTSequences/Properties/AssemblyInfo.cs | C# | apache-2.0 | 1,430 |
package ca.uhn.fhir.jpa.term;
/*
* #%L
* HAPI FHIR JPA Server
* %%
* Copyright (C) 2014 - 2016 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 of the License at
*
* ... | Gaduo/hapi-fhir | hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/term/VersionIndependentConcept.java | Java | apache-2.0 | 1,149 |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | cedral/aws-sdk-cpp | aws-cpp-sdk-states/source/model/Tag.cpp | C++ | apache-2.0 | 1,559 |
/**
* Copyright 2015-2017 The OpenZipkin 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 ... | soundcloud/zipkin | benchmarks/src/main/java/zipkin/benchmarks/Span2ConverterBenchmarks.java | Java | apache-2.0 | 5,211 |
zhangyu | RobbieRain/he | test.py | Python | apache-2.0 | 7 |
// NOTE: this file should only be included when embedding the inspector - no other files should be included (this will do everything)
// If gliEmbedDebug == true, split files will be used, otherwise the cat'ed scripts will be inserted
(function() {
var pathRoot = "";
var useDebug = window["gliEmbedDebug"];
... | freekv/jpip.js | examples/js/embed.js | JavaScript | apache-2.0 | 4,075 |
/*
*
* (c) Copyright Ascensio System Limited 2010-2021
*
* 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 appli... | ONLYOFFICE/CommunityServer | module/ASC.Mail.Autoreply/ASC.Mail.Core/Net/IMAP/Server/Folder_EventArgs.cs | C# | apache-2.0 | 2,169 |
<?php
require_once('auth.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
include '../connect.php';
$result = $db->prepare("SELECT * FROM products where qty < level ORDER BY product_id D... | mathunjoroge/pharmacy | stocktake/stocktake.php | PHP | apache-2.0 | 8,600 |
// <copyright file="CommandInfoRepository.cs" company="WebDriver Committers">
// Copyright 2007-2011 WebDriver committers
// Copyright 2007-2011 Google Inc.
// Portions copyright 2011 Software Freedom Conservancy
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file e... | denis-vilyuzhanin/selenium | dotnet/src/WebDriver/Remote/CommandInfoRepository.cs | C# | apache-2.0 | 13,270 |
/*
* Copyright 2015 Adobe Systems Incorporated
*
* 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... | MyAccInt/aem-project-archetype | src/main/archetype/core/src/main/java/core/servlets/SimpleServlet.java | Java | apache-2.0 | 2,367 |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n... | LADOSSIFPB/nutrif | nutrif-web/lib/angular/i18n/angular-locale_os.js | JavaScript | apache-2.0 | 3,826 |
package com.comp.ninti.sportsmanager;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.MenuItem;
import android.widget.ListView;
import com.comp.ninti.adapter.LeaderBoardAd... | Nintinugga/SportsManager | app/src/main/java/com/comp/ninti/sportsmanager/LeaderBoard.java | Java | apache-2.0 | 2,193 |
/**
* www.bplow.com
*/
package com.bplow.netconn.systemmng.domain;
/**
* @desc 角色
* @author wangxiaolei
* @date 2016年5月8日 下午4:30:39
*/
public class RoleDomain {
private String roleId;
private String userId;
private String roleName;
private String roleDesc;
public String getRoleId() {... | ahwxl/ads | ads/src/main/java/com/bplow/netconn/systemmng/domain/RoleDomain.java | Java | apache-2.0 | 824 |
package it.breex.bus.impl.jms;
import it.breex.bus.event.AbstractResponseEvent;
import it.breex.bus.event.EventData;
import it.breex.bus.event.EventHandler;
import it.breex.bus.event.RequestEvent;
import it.breex.bus.impl.AbstractEventManager;
import java.util.UUID;
import javax.jms.Connection;
import javax.jms.Conn... | breex-it/breex-bus | breex-bus-jms/src/main/java/it/breex/bus/impl/jms/JmsEventManager.java | Java | apache-2.0 | 4,233 |
from .fetch import FetchParser
from .json_ld import JsonLdParser
from .lom import LomParser
from .lrmi import LrmiParser
from .nsdl_dc import NsdlDcParser
__all__ = [
'FetchParser',
'JsonLdParser',
'LomParser',
'LrmiParser',
'NsdlDcParser',
]
| navnorth/LR-Data | src/payload_schema/__init__.py | Python | apache-2.0 | 265 |
/**
* Copyright 2013 Oak Ridge National Laboratory
* Author: James Horey <horeyjl@ornl.gov>
*
* 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/LI... | jhorey/Paja | src/gov/ornl/paja/storage/LogMessage.java | Java | apache-2.0 | 1,764 |
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using SelectelSharp.Headers;
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SelectelSharp.Requests.CDN
{
public class CDNIvalidationRequest : BaseReq... | ONLYOFFICE/CommunityServer | redistributable/SelectelSharp/Requests/CDN/CDNIvalidationRequest.cs | C# | apache-2.0 | 1,707 |
document.write('<div id="terminal" class="terminal-content"></div>');
var session = {};
// return a parameter value from the current URL
function getParam(sname) {
var params = location.search.substr(location.search.indexOf("?") + 1);
var sval = "";
params = params.split("&");
// split param and value... | albertlatacz/java-repl | src/javarepl/console/ui/term.js | JavaScript | apache-2.0 | 8,438 |
angular.module('ssAuth').factory('SessionService', ['$http', '$cookies', '$q', function($http, $cookies, $q){
var currentUser = {};
var currentFetch;
currentUser.isAdmin = function() {
return currentUser && currentUser.groups && currentUser.groups['Admins'];
};
var getCurrentUser = functi... | spaceshipsamurai/samurai-auth | public/app/shared/session.service.js | JavaScript | apache-2.0 | 1,933 |
/**
* @license 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 applicable law or a... | tkadlec/lighthouse | lighthouse-core/test/gather/gatherers/dobetterweb/optimized-images-test.js | JavaScript | apache-2.0 | 5,402 |
/*
* 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 ... | mduerig/json-jerk | src/main/java/michid/jsonjerk/LevelOrderJsonParser.java | Java | apache-2.0 | 6,473 |
/**
* For JavaDocs.
*@author dgagarsky
*@since 01.12.2016
*/
package ru.job4j; | degauhta/dgagarsky | chapter_001/src/test/java/ru/job4j/package-info.java | Java | apache-2.0 | 81 |
using System;
using System.Xml.Serialization;
namespace Aop.Api.Domain
{
/// <summary>
/// AlipayInsAutoAutoinsprodQuoteQueryModel Data Structure.
/// </summary>
[Serializable]
public class AlipayInsAutoAutoinsprodQuoteQueryModel : AopObject
{
/// <summary>
/// 询价ID
/// ... | 329277920/Snail | Snail.Pay.Ali.Sdk/Domain/AlipayInsAutoAutoinsprodQuoteQueryModel.cs | C# | apache-2.0 | 582 |
/**************************************************************************\
* This file is part of CaSPER. *
* *
* Copyright: *
* 2009-20... | marcovc/casper | bindings/xcsp/parser.cpp | C++ | apache-2.0 | 20,252 |
/*
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 f... | ghaskins/obc-peer | openchain/consensus/controller/controller.go | GO | apache-2.0 | 1,587 |
/*
* Copyright 2005-2007 Maarten Billemont
*
* 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 appli... | Lyndir/Opal | discontinued/opal-geo/src/main/java/com/lyndir/lhunath/opal/gui/ListenerAction.java | Java | apache-2.0 | 2,900 |
{$Header}
<main role="main" class="main" contenteditable="false">
<aside id="notifications">
<!-- Notifications -->
{if !empty($error)}<div class="notification-error">{$error}</div>{/if}
{if !empty($success)}<div class="notification-success">{$success}</div>{/if}
</aside>
<section class="frame">
<header>
... | duyetdev/ypCore | apps/admin/view/simple/module/News/Setting.GoogleTrend.php | PHP | apache-2.0 | 655 |
// TODO split modules, controllers, services
// info separate files and concat/uglify them
let remote = require('remote')
let fs = require('fs')
let mysql = require('promise-mysql')
let app = angular.module('ttableinstaller', ['ngRoute'])
photon.start(document)
app.config(($routeProvider) => {
$routeProvider
... | tTables/tTableInstaller | app/app.js | JavaScript | apache-2.0 | 467 |
#region Copyright 2010 by Roger Knapp, Licensed under the Apache License, Version 2.0
/* 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
* ... | csharptest/JiraSVN | src/SvnPlugin/MyPlugin.cs | C# | apache-2.0 | 16,267 |
package org.drools.rule;
/*
* Copyright 2005 JBoss 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 ... | bobmcwhirter/drools | drools-core/src/main/java/org/drools/rule/InvalidRulePackage.java | Java | apache-2.0 | 1,064 |
package com.twu.biblioteca.service.impl;
import com.twu.biblioteca.mapper.BookListMapper;
import com.twu.biblioteca.mapper.MyBatisUtil;
import com.twu.biblioteca.model.Book;
import com.twu.biblioteca.service.BookListService;
import org.apache.ibatis.session.SqlSession;
import java.util.ArrayList;
public class BookLi... | niuwanlu/twu-biblioteca-niuwanlu-tdd | src/main/java/com/twu/biblioteca/service/impl/BookListServiceImpl.java | Java | apache-2.0 | 863 |
/*
* Copyright 2015 Thomas Hoffmann
*
* 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... | j4velin/WiFi-Automatic | src/play/java/de/j4velin/wifiAutoOff/GeoFenceService.java | Java | apache-2.0 | 3,340 |