repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
testify-project/testify | modules/junit4/jersey2-system-test/src/test/java/org/testifyproject/junit4/fixture/web/GreetingApplication.java | 1148 | /*
* Copyright 2016-2017 Testify 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 law or... | apache-2.0 |
GoogleCloudPlatform/dotnet-docs-samples | cloud-sql/sql-server/Startup.cs | 6978 | /*
* Copyright (c) 2019 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 ... | apache-2.0 |
leuschel/logen | old_logen/pylogen/MakeLogen.py | 5719 |
#sicstus --goal "set_prolog_flag(single_var_warnings,off), ensure_loaded('sicstus.pl'),ensure_loaded('socket.pl'),ensure_loaded('logen_main.pl'),save_program('logen_main.sav'),halt." 2>&1 | grep -v "^%" | grep -v "from clpq is private"
import os
import development
class PrologSav:
def __init__(self,name, depen... | apache-2.0 |
tgraf/cilium | pkg/hubble/server/serveroption/option.go | 4292 | // Copyright 2020 Authors of Hubble
// Copyright 2020 Authors of Cilium
//
// 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 r... | apache-2.0 |
istio/cni | test/install_k8s_test.go | 6711 | // Copyright 2018 Istio Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | apache-2.0 |
yuzhiping/jeeplus | jeeplus-weixin/src/main/java/com/jeeplus/weixin/fastweixin/company/message/resp/QYVoiceRespMsg.java | 1231 | package com.jeeplus.weixin.fastweixin.company.message.resp;
import com.jeeplus.weixin.fastweixin.message.RespType;
import com.jeeplus.weixin.fastweixin.message.util.MessageBuilder;
/**
* 微信企业号被动响应语音消息
* ====================================================================
* 上海聚攒软件开发有限公司
* ---------------------... | apache-2.0 |
vam-google/google-cloud-java | google-api-grpc/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GetTableRequestOrBuilder.java | 1432 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/bigtable/admin/v2/bigtable_table_admin.proto
package com.google.bigtable.admin.v2;
public interface GetTableRequestOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.GetTableRequest)
com.goo... | apache-2.0 |
tormozz48/2do2go.ru | test/task1/transformers/output/csv.js | 1464 | 'use strict';
const CSVOutputTransformer = require('../../../../src/task1/transformers/output/csv');
describe('src/task1/transformers/output/csv', () => {
it('should properly create output in csv format', () => {
const csvOutputTransformer = new CSVOutputTransformer({});
const inputData = [
... | apache-2.0 |
harryouyang/fristApp | app/src/androidTest/java/com/pangu/fristapp/ApplicationTest.java | 349 | package com.pangu.fristapp;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
supe... | apache-2.0 |
aNNiMON/HotaruFX | app/src/main/java/com/annimon/hotarufx/visual/PropertyTimeline.java | 1059 | package com.annimon.hotarufx.visual;
import java.util.Map;
import java.util.TreeMap;
import javafx.animation.Interpolator;
import javafx.beans.value.WritableValue;
public class PropertyTimeline<T> {
private final WritableValue<T> property;
private final Map<KeyFrame, KeyFrameValue<T>> keyFrames;
public ... | apache-2.0 |
nttlabs/cli | cf/api/authentication/authentication.go | 4328 | package authentication
import (
"encoding/base64"
"fmt"
"net/url"
"strings"
. "github.com/nttlabs/cli/cf/i18n"
"github.com/nttlabs/cli/cf/configuration/core_config"
"github.com/nttlabs/cli/cf/errors"
"github.com/nttlabs/cli/cf/net"
)
type TokenRefresher interface {
RefreshAuthToken() (updatedToken string, ... | apache-2.0 |
Steampunkrue/go | command_interface/command_manager.go | 642 | package main
import "fmt"
type Result struct {
result string
err error
}
var commands = map[string]Command{}
func AppendCommand(c Command) {
commands[c.Name()] = c
}
func CommandInit() {
AppendCommand(NewReplacer())
AppendCommand(NewStringOverwriter())
}
func main() {
// do something he... | apache-2.0 |
emeryotopalik/appinventor-sources | appinventor/appengine/src/com/google/appinventor/server/UserInfoServiceImpl.java | 4168 | // -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2009-2011 Google, All Rights reserved
// Copyright 2011-2012 MIT, All rights reserved
// Released under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
package com.google.appinventor.server;
import com.google.appinventor.server.flags... | apache-2.0 |
lcmanager/gdb | gdb-base/src/main/java/org/lcmanager/gdb/base/NoWeave.java | 1022 | /*
* #%L
* Game Database
* %%
* Copyright (C) 2016 - 2016 LCManager Group
* %%
* 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
* ... | apache-2.0 |
scalyr/scalyr-agent-2 | tests/utils/log_reader.py | 8890 | # Copyright 2014-2020 Scalyr 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 writin... | apache-2.0 |
kxbmap/configs | project/Release.scala | 2115 | import com.jsuereth.sbtpgp.SbtPgp
import mdoc.MdocPlugin.autoImport._
import sbt.Keys._
import sbt._
import sbtrelease.ReleasePlugin
import sbtrelease.ReleasePlugin.autoImport._
import sbtrelease.ReleaseStateTransformations._
import sbtrelease.Version.Bump
import xerial.sbt.Sonatype
import xerial.sbt.Sonatype.SonatypeK... | apache-2.0 |
RonyK/SuaDB | suadb-server/src/suadb/remote/RemoteDriver.java | 383 | package suadb.remote;
import java.rmi.*;
/**
* The RMI suadb.remote interface corresponding to Driver.
* The method is similar to that of Driver,
* except that it takes no arguments and
* throws RemoteExceptions instead of SQLExceptions.
* @author Edward Sciore
*/
public interface RemoteDriver extends Remote {... | apache-2.0 |
kogotko/carburetor | openstack_dashboard/dashboards/admin/snapshots/tests.py | 10310 | # 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... | apache-2.0 |
AlexanderYao/ThreadPool | ThreadPool.Test/TestLongTerm.cs | 1827 | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace ThreadPool.Test
{
[TestClass]
public class TestLongTerm
{
private IThr... | apache-2.0 |
CyR1en/MineCordBot | src/main/java/us/cyrien/minecordbot/chat/listeners/mcListeners/MentionListener.java | 1494 | package us.cyrien.minecordbot.chat.listeners.mcListeners;
import net.dv8tion.jda.core.JDA;
import net.dv8tion.jda.core.entities.Member;
import net.dv8tion.jda.core.entities.TextChannel;
import org.bukkit.event.EventHandler;
import org.bukkit.event.server.TabCompleteEvent;
import us.cyrien.minecordbot.Minecordbot;
imp... | apache-2.0 |
glameyzhou/scaffold | scaffold-web/src/main/java/org/glamey/scaffold/web/util/IpUtils.java | 1619 | package org.glamey.scaffold.web.util;
import org.apache.commons.lang3.StringUtils;
import javax.servlet.http.HttpServletRequest;
/**
* @author by zhouyang.zhou.
*/
public class IpUtils {
public static final String UNKNOWN = "unknown";
public static final String X_REAL_IP = "X-Real-IP";
public static f... | apache-2.0 |
sabob/ratel | ratel/src/com/google/ratel/deps/jackson/databind/jsonFormatVisitors/JsonNullFormatVisitor.java | 394 | package com.google.ratel.deps.jackson.databind.jsonFormatVisitors;
public interface JsonNullFormatVisitor {
/**
* Default "empty" implementation, useful as the base to start on;
* especially as it is guaranteed to implement all the method
* of the interface, even if new methods are getting added.
... | apache-2.0 |
socrata-platform/data-coordinator | coordinator/src/main/scala/com/socrata/datacoordinator/Launch.scala | 354 | package com.socrata.datacoordinator
object Launch extends App {
if(args.length > 0) {
val className = args(0)
val subargs = args.drop(1)
val cls = Class.forName(className)
cls.getMethod("main", classOf[Array[String]]).invoke(null, subargs)
} else {
Console.err.println("Usage: Launch CLASSNAME ... | apache-2.0 |
usgin/geoportal-server-catalog | geoportal/src/main/webapp/viewer/widgets/Search/setting/nls/nl/strings.js | 1985 | define(
({
"sourceSetting": "Broninstellingen zoeken",
"instruction": "Geocodeerservices of objectlagen toevoegen en configureren als zoekbronnen. Deze bepaalde bronnen bepalen wat doorzoekbaar is in het zoekvak.",
"add": "Zoekbron toevoegen",
"addGeocoder": "Geocoder toevoegen",
"geocoder": "Ge... | apache-2.0 |
muatik/logmon | src/LogMon/LogConfig/IFieldMapper.php | 1146 | <?php
namespace LogMon\LogConfig;
interface IFieldMapper
{
/**
* checks whether the mapping is valid or not.
*
* @param object $mapping
* @access public
* @return boolean
*/
public function isMappingValid($mapping);
/**
* sets the given mapping to the field
*
* @param string $field
* @pa... | apache-2.0 |
rrpgfirecast/firecast | Plugins/Sheets/Gerenciador SotDL/output/rdkObjs/GerenciadorSotDL/EfeitoCombatTracker.lfm.lua | 6300 | require("firecast.lua");
local __o_rrpgObjs = require("rrpgObjs.lua");
require("rrpgGUI.lua");
require("rrpgDialogs.lua");
require("rrpgLFM.lua");
require("ndb.lua");
require("locale.lua");
local __o_Utils = require("utils.lua");
local function constructNew_frmEfeitoCombatTracker()
local obj = GUI.fromHandle(_obj_... | apache-2.0 |
CamfedCode/Camfed | db/migrate/20110214170926_create_configurations.rb | 397 | class CreateConfigurations < ActiveRecord::Migration
def self.up
create_table :configurations do |t|
t.string :epi_surveyor_url
t.string :epi_surveyor_user
t.string :epi_surveyor_token
t.string :salesforce_url
t.string :salesforce_user
t.string :salesforce_token
t.timest... | apache-2.0 |
Esri/arcobjects-sdk-community-samples | Net/Raster/CustomRasterFunction/CSharp/WatermarkFunctionUI/WatermarkFunctionUIForm.cs | 8975 | /*
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, ... | apache-2.0 |
youngjun0528/moheeto | CodingTraining/PythonStudy/Chapter02/Question02.py | 151 |
def Question02():
print ('What is the input string?')
strInput = input()
print (strInput + ' has ' + str(len(strInput)) + ' characters.')
| apache-2.0 |
RyanSkraba/beam | sdks/python/apache_beam/runners/pipeline_context.py | 7541 | #
# 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 us... | apache-2.0 |
o3project/openflowj-otn | src/main/java/org/projectfloodlight/openflow/protocol/ver14/OFTableFeaturesVer14.java | 19953 | // Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the sour... | apache-2.0 |
ox-it/ords-ui | src/main/webapp/project/controllers/newMemberController.js | 2975 | 'use strict';
ords.controller('newMemberController', function ($rootScope, $scope, $location, $routeParams, AuthService, Project, User, Member, growl, gettextCatalog, Invitation) {
//
// This page doesm't make sense to view
// without being logged in, so redirect
// back to the home view
//
AuthService.check()... | apache-2.0 |
daryllxd/riant_fronty | application/views/pages/survey.php | 4678 | <section id="survey-form" class="container">
<div class="row">
<div class="span12">
<h1>Post-Usage Evaluation</h1>
<p>Thank you for using our system. Your answers will be completely confidential.</p>
<form action="<?php echo base_url('submit_survey'); ?>" method="post... | apache-2.0 |
YAFNET/YAFNET | yafsrc/Lucene.Net/Lucene.Net.Queries/Function/ValueSources/MinFloatFunction.cs | 1788 | // Lucene version compatibility level 4.8.1
using System;
namespace YAF.Lucene.Net.Queries.Function.ValueSources
{
/*
* 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 r... | apache-2.0 |
mwitkow/go-httpwares | wrapped_responsewriter_go18.go | 1911 | // +build go1.8
package httpwares
import (
"bufio"
"io"
"net"
"net/http"
)
// newWrappedResponseWriter handles the four different methods of upgrading a
// http.ResponseWriter to delegator.
func newWrappedResponseWriter(w http.ResponseWriter) WrappedResponseWriter {
wrapped := &wrappedResponseWriter{ResponseWri... | apache-2.0 |
mrvisser/Hilary | node_modules/oae-authentication/tests/test-cookies.js | 12584 | /*
* Copyright 2015 Apereo Foundation (AF) 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://opensource.org/licenses/ECL-2.0
*
* Unless required by applicabl... | apache-2.0 |
codecentric/elasticsearch-shield-kerberos-realm | src/test/java/de/codecentric/elasticsearch/plugin/kerberosrealm/support/EmbeddedKRBServer.java | 4151 | /*
Copyright 2015 codecentric AG
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 ... | apache-2.0 |
lklong/fuckproject | src/com/zhigu/service/user/IAccountService.java | 2119 | package com.zhigu.service.user;
import java.util.Date;
import java.util.List;
import com.zhigu.model.Account;
import com.zhigu.model.AccountDetail;
import com.zhigu.model.PageBean;
import com.zhigu.model.RechargeRecord;
import com.zhigu.model.dto.MsgBean;
/**
* 用户帐户信息
*
* @author zhouqibing 2014年7月21日上午9:34:39
... | apache-2.0 |
razvanphp/arangodb | js/apps/system/_admin/aardvark/APP/clusterFrontend/build/cluster.js | 127847 | /*jshint unused: false */
/*global window, $, document */
(function() {
"use strict";
var isCoordinator;
window.isCoordinator = function() {
if (isCoordinator === undefined) {
$.ajax(
"cluster/amICoordinator",
{
async: false,
success: function(d) {
isCoo... | apache-2.0 |
jtrobec/pants | src/python/pants/backend/codegen/tasks/simple_codegen_task.py | 12684 | # coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import logging
impor... | apache-2.0 |
emil-wcislo/sbql4j8 | sbql4j8/src/test/openjdk/tools/javac/processing/options/TestImplicitNone.java | 3758 | /*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | apache-2.0 |
yy1300326388/meteor_microscope | microscope/lib/router.js | 2390 | /**
* Created by fitark on 15-3-12.
*/
Router.configure({
layoutTemplate: 'layout',
loadingTemplate: 'loading',
notFoundTemplate: 'notFound',
waitOn: function() {
return [Meteor.subscribe('notifications')]
}
});
//重构 postsLists 路由为 RouteController.
PostsListController = RouteController.ext... | apache-2.0 |
gbanegas/KissECC | attack_ecc/old/window_attack.py | 4626 | import random
import math
from itertools import product
from itertools import chain
from thread_sum import ThreadSum
q = 2**252 + 27742317777372353535851937790883648493
r = []
v = []
alpha = []
def int_to_bin(number):
return [int(x) for x in bin(number)[2:]]
def bin_to_int(bit_list):
output = 0
for bit ... | apache-2.0 |
banerwai/gommon | etcd/direct.go | 760 | package etcd
import (
"github.com/coreos/etcd/client"
"golang.org/x/net/context"
)
// Set etcd direct set a key/value
func Set(key, value string) (*client.Response, error) {
return KeysAPI.Set(context.Background(), key, value, nil)
}
// Get etcd derict get a etcd response by key
func Get(key string) (*client.Resp... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-glue/src/main/java/com/amazonaws/services/glue/model/transform/GetTableRequestMarshaller.java | 2558 | /*
* 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... | apache-2.0 |
nativecode-dev/oss-xamarin | src/Demo/Demo/ViewModels/MainViewModel.cs | 1231 | namespace Demo.ViewModels
{
using System.Windows.Input;
using NativeCode.Mobile.AppCompat.Controls.Platforms;
using PropertyChanged;
using Xamarin.Forms;
public class MainViewModel : ViewModel
{
private int counter;
/// <summary>
/// Initializes a new instance of th... | apache-2.0 |
vujasm/trusthings-compose | trusthings-common/src/main/java/com/inn/util/tuple/ListTupleConvert.java | 1380 | package com.inn.util.tuple;
/*
* #%L
* trusthings-common
* %%
* Copyright (C) 2015 COMPOSE 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... | apache-2.0 |
SocraticGrid/OMS-API | src/main/java/org/socraticgrid/hl7/services/orders/logging/EventLevel.java | 960 | /*
* Copyright 2015 Cognitive Medical Systems, Inc (http://www.cognitivemedciine.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-... | apache-2.0 |
project-chip/connectedhomeip | src/crypto/hsm/nxp/CHIPCryptoPALHsm_SE05X_HKDF.cpp | 3662 | /*
*
* Copyright (c) 2021 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | apache-2.0 |
sarl/sarl | main/coreplugins/io.sarl.lang/src/io/sarl/lang/scoping/SARLScopeProvider.java | 1087 | /*
* $Id$
*
* SARL is an general-purpose agent programming language.
* More details on http://www.sarl.io
*
* Copyright (C) 2014-2021 the original authors 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 ma... | apache-2.0 |
rostam/gradoop | gradoop-flink/src/main/java/org/gradoop/flink/model/impl/operators/count/functions/Tuple1With1L.java | 1337 | /*
* Copyright © 2014 - 2019 Leipzig University (Database Research Group)
*
* 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... | apache-2.0 |
jomolinare/crate-web | src/web/filters.py | 1006 | # vim: set fileencodings=utf-8
# -*- coding: utf-8 -*-
__docformat__ = "reStructuredText"
import json
import datetime
from django.template.base import Library
from django.utils.safestring import mark_safe
register = Library()
class DateTimeJSONEncoder(json.JSONEncoder):
"""Encoder for datetime objects"""
... | apache-2.0 |
jarrodek/polymer-chrome-apps2 | gulpfile.js | 367 | 'use strict';
var gulp = require('gulp');
var crisper = require('gulp-crisper');
/**
* Make all bower_components CSP ready
*/
gulp.task('crisper-bower', function() {
gulp.src('bower_components/**/*.html')
.pipe(crisper({
scriptInHead: false,
onlySplit: false,
alwaysWriteScript: false
}))
... | apache-2.0 |
sawandarekar/JavaHub | src/main/java/ocjp/stringsIOFormattingParsing/StringDiff.java | 1114 | package ocjp.stringsIOFormattingParsing;
import java.util.LinkedList;
import java.util.List;
public class StringDiff {
public static List<int[]> from(String s1, String s2) {
int start = -1;
int pos = 0;
LinkedList<int[]> list = new LinkedList<int[]>();
for(; pos < s1.length() && ... | apache-2.0 |
raywang8341/BTMessenger | app/src/main/java/com/randroid/btmessenger/bluetooth/BluetoothMessage.java | 460 | package com.randroid.btmessenger.bluetooth;
import java.io.Serializable;
/**
* Created by hui on 3/30/15.
*/
public class BluetoothMessage implements Serializable {
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
... | apache-2.0 |
gaamy/android_app_tp3 | app/src/main/java/com/polymt/inf8405/tp3/baseclass/Friend.java | 131 | package com.polymt.inf8405.tp3.baseclass;
/**
* Created by Louis-Philippe on 4/6/2017.
*/
public class Friend extends User {
}
| apache-2.0 |
Alexia23/batfish | projects/batfish/src/org/batfish/representation/cisco/RouteMap.java | 742 | package org.batfish.representation.cisco;
import java.io.Serializable;
import java.util.Map;
import java.util.TreeMap;
public class RouteMap implements Serializable {
private static final long serialVersionUID = 1L;
private Map<Integer, RouteMapClause> _clauses;
private boolean _ignore;
private String _... | apache-2.0 |
wajdihh/HhDroid | src/main/java/com/hh/clientdatatable/TColumn.java | 2374 | package com.hh.clientdatatable;
import com.hh.clientdatatable.TCell.ValueType;
import com.hh.listeners.OnCDTColumnObserver;
public class TColumn {
public enum ColumnType {PrimaryKey,ToIgnoreInDB,JsonParent,JsonField};
private String _mName;
private ValueType _mType;
private TCell.CellType _mCellT... | apache-2.0 |
arcadoss/js-invulnerable | src/com/google/javascript/jscomp/OptimizeReturns.java | 7796 | /*
* Copyright 2009 The Closure Compiler 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... | apache-2.0 |
owlabs/incubator-airflow | tests/www/api/experimental/test_dag_runs_endpoint.py | 6218 | # -*- coding: utf-8 -*-
#
# 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
#... | apache-2.0 |
rorygraves/perf_tester | corpus/shapeless/src/test/scala/shapeless/records.scala | 31568 | /*
* Copyright (c) 2011-14 Miles Sabin
*
* 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... | apache-2.0 |
asmitde/TA-PSU-CMPSC101 | Fall 2016/Homeworks/HW4/Solution/problem5.py | 1132 | month = int(input("Enter month: "))
year = int(input("Enter year: "))
if month == 1:
monthName = "January"
numberOfDaysInMonth = 31
elif month == 2:
monthName = "February"
if year % 400 == 0 or (year % 4 == 0 and year % 100 != 0):
numberOfDaysInMonth = 29
else:
numberOfDa... | apache-2.0 |
nafae/developer | modules/dfp_axis/src/main/java/com/google/api/ads/dfp/axis/v201311/CreativeTemplateVariable.java | 12574 | /**
* CreativeTemplateVariable.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.axis.v201311;
/**
* Represents a variable defined in a creative template.
*/
public abstract class CreativeTemplateVariable ... | apache-2.0 |
griffon/griffon | subprojects/griffon-core-api/src/main/java/griffon/core/env/Environment.java | 3487 | /*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2008-2022 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/license... | apache-2.0 |
bathepawan/workload-automation | wlauto/workloads/googlephotos/__init__.py | 4522 | # Copyright 2014-2016 ARM Limited
#
# 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... | apache-2.0 |
carewebframework/carewebframework-core | org.carewebframework.mvn-parent/org.carewebframework.mvn.plugin-parent/org.carewebframework.mvn.plugin.helpconverter/src/main/java/org/carewebframework/maven/plugin/help/chm/SystemTransform.java | 2310 | /*
* #%L
* carewebframework
* %%
* Copyright (C) 2008 - 2016 Regenstrief Institute, 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/... | apache-2.0 |
Granicus/chef-application_procfile | resources/procfile.rb | 998 | #
# Author:: Matt Kasa <mattk@granicus.com>
# Cookbook Name:: application_procfile
# Provider:: procfile
#
# Copyright:: 2014, Granicus Inc. <mattk@granicus.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... | apache-2.0 |
googleads/google-ads-java | google-ads-stubs-v8/src/main/java/com/google/ads/googleads/v8/enums/FrequencyCapTimeUnitProto.java | 2713 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v8/enums/frequency_cap_time_unit.proto
package com.google.ads.googleads.v8.enums;
public final class FrequencyCapTimeUnitProto {
private FrequencyCapTimeUnitProto() {}
public static void registerAllExtensions(
com.go... | apache-2.0 |
yuri91/overbot | src/errors.rs | 765 | use super::serde_json;
use super::toml;
use std::io;
use super::telegram_bot_client;
error_chain! {
types {
Error, ErrorKind, ResultExt, Result;
}
links {
Bot(telegram_bot_client::errors::Error, telegram_bot_client::errors::ErrorKind);
}
foreign_links {
Json(serde_json::Er... | apache-2.0 |
takashno/lib-java-generate | src/main/java/com/zomu_t/lib/java/generate/java8/util/FieldUtils.java | 14385 | package com.zomu_t.lib.java.generate.java8.util;
import com.zomu_t.lib.java.generate.common.type.DefaultLogicTemplate;
import com.zomu_t.lib.java.generate.java8.model.*;
import com.zomu_t.lib.java.generate.java8.type.AccessModifier;
import com.zomu_t.lib.java.generate.java8.type.MethodModifier;
import lombok.val;
impo... | apache-2.0 |
cloudflare/unsee | assets/static/progress.js | 1037 | "use strict";
const NProgress = require("nprogress");
require("nprogress/nprogress.css");
const unsee = require("./unsee");
var timer;
function init() {
NProgress.configure({
minimum: 0.01,
showSpinner: false,
easing: "linear",
template: "<div class='bar nprogress-flatly' role='b... | apache-2.0 |
GoogleCloudPlatform/terraformer | providers/gcp/securityPolicies_gen.go | 2323 | // Copyright 2018 The Terraformer 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... | apache-2.0 |
lijunyandev/MeetMusic | app/src/main/java/com/lijunyan/blackmusic/activity/BaseActivity.java | 1602 | package com.lijunyan.blackmusic.activity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.lijunyan.blackmusic.R;
import com.lijunyan.blackmusic.util.MyMusicUtil;
public abstract class BaseActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle save... | apache-2.0 |
Onager/plaso | plaso/parsers/sqlite_plugins/hangouts_messages.py | 16072 | # -*- coding: utf-8 -*-
"""SQLite parser plugin for Google Hangouts conversations database files."""
from dfdatetime import posix_time as dfdatetime_posix_time
from plaso.containers import events
from plaso.containers import time_events
from plaso.lib import definitions
from plaso.parsers import sqlite
from plaso.par... | apache-2.0 |
vespa-engine/vespa | searchlib/src/vespa/searchlib/diskindex/field_merger.cpp | 17199 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "field_merger.h"
#include "fieldreader.h"
#include "field_length_scanner.h"
#include "fusion_input_index.h"
#include "fusion_output_index.h"
#include "dictionarywordreader.h"
#include "wordnummapper.h"
#in... | apache-2.0 |
shrimpma/phabricator | src/applications/uiexample/controller/PhabricatorUIExampleRenderController.php | 1574 | <?php
final class PhabricatorUIExampleRenderController extends PhabricatorController {
public function shouldAllowPublic() {
return true;
}
public function handleRequest(AphrontRequest $request) {
$id = $request->getURIData('class');
$classes = id(new PhutilSymbolLoader())
->setAncestorClass... | apache-2.0 |
SURFnet/Stepup-Middleware | src/Surfnet/Stepup/Identity/Event/RegistrationAuthorityRetractedForInstitutionEvent.php | 3228 | <?php
/**
* Copyright 2018 SURFnet bv
*
* 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... | apache-2.0 |
arnost-starosta/midpoint | gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/input/DisplayableValueChoiceRenderer.java | 1279 | package com.evolveum.midpoint.web.component.input;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.apache.wicket.markup.html.form.IChoiceRenderer;
import org.apache.wicket.model.IModel;
import com.evolveum.midpoint.util.DisplayableValue;
public class DisplayableValueChoiceRenderer<T> ... | apache-2.0 |
cjellick/go-machine-service | Godeps/_workspace/src/github.com/rancherio/go-rancher/client/generated_add_remove_service_link_input.go | 2265 | package client
const (
ADD_REMOVE_SERVICE_LINK_INPUT_TYPE = "addRemoveServiceLinkInput"
)
type AddRemoveServiceLinkInput struct {
Resource
ServiceId string `json:"serviceId,omitempty"`
}
type AddRemoveServiceLinkInputCollection struct {
Collection
Data []AddRemoveServiceLinkInput `json:"data,omitem... | apache-2.0 |
freedot/tstolua | tests/cases/fourslash/signatureHelpAnonymousFunction.ts | 647 | /// <reference path='fourslash.ts' />
////var anonymousFunctionTest = function(n: number, s: string): (a: number, b: string) => string {
//// return null;
////}
////anonymousFunctionTest(5, "")(/*anonymousFunction1*/1, /*anonymousFunction2*/"");
goTo.marker('anonymousFunction1');
verify.signatureHelpCountIs(1);
ve... | apache-2.0 |
CouleurCitron/cms-2014 | js/domUtils.js | 5881 | var isNav4, isNav6, isIE4;
/*
* Browser version snooper; determines your browser
* (Navigator 4, Navigator 6, or Internet Explorer 4/5)
*/
function setBrowser()
{
if (navigator.appVersion.charAt(0) == "4")
{
if (navigator.appName.indexOf("Explorer") >= 0)
{
isIE4 = true;
... | apache-2.0 |
X-Sharp/XSharpPublic | VisualStudio/ProjectBase/Tracing.cs | 2467 | /* ****************************************************************************
*
* Copyright (c) Microsoft Corporation.
*
* This source code is subject to terms and conditions of the Apache License, Version 2.0. A
* copy of the license can be found in the License.txt file at the root of this distribution.
*
*... | apache-2.0 |
OpenBEL/openbel-framework | org.openbel.framework.common/src/test/java/org/openbel/framework/common/external/WriteCacheTest.java | 3046 | /**
* Copyright (C) 2012-2013 Selventa, Inc.
*
* This file is part of the OpenBEL Framework.
*
* This program 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 version 3 of the License, or
... | apache-2.0 |
wgrmath/forum | server/engine/application.js | 8934 | /******************************************************************************
Application
*******************************************************************************/
'use strict';
var _ = require('underscore'),
uuid = require('uuid'),
Models = require('../models'),
logger = require('../logger');
... | apache-2.0 |
docker/dockercloud-cli | dockercloudcli/utils.py | 15248 | from __future__ import print_function
import codecs
import datetime
import json
import os
import re
import sys
import ago
import dockercloud
import yaml
from dateutil import tz
from tabulate import tabulate
from exceptions import BadParameter, StreamOutputError
from interpolation import interpolate_environment_varia... | apache-2.0 |
jesshaw/node-sample-project | puppeteer/sample/app/resources/birds.js | 445 | var express = require('express');
var router = express.Router();
// middleware that is specific to this router
router.use(function timeLog(req, res, next) {
console.log('Time: ', Date.now());
next();
});
// define the home page route
router.get('/', function (req, res) {
res.send('Birds home page');
});
//... | apache-2.0 |
codemucker/codemucker-jpattern | src/main/java/org/codemucker/jpattern/generate/GenerateLog.java | 2658 | package org.codemucker.jpattern.generate;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Target(ElementType.TYPE)
@... | apache-2.0 |
MyRobotLab/pyrobotlab | home/Markus/Robyneartest.py | 79853 | sleep(1)#file : InMoov2.Robyn Inmoov
import random
keyboard = Runtime.createAndStart("keyboard", "Keyboard")
keyboard.addListener("keyCommand", python.getName(), "input")
leftPort = "COM3"
rightPort = "COM7"
i01 = Runtime.createAndStart("i01", "InMoov")
cleverbot = Runtime.createAndStart("cleverbot","CleverB... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-waf/src/main/java/com/amazonaws/services/waf/model/ListRulesRequest.java | 9960 | /*
* 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... | apache-2.0 |
stephraleigh/flowable-engine | modules/flowable-engine/src/main/java/org/flowable/engine/impl/persistence/entity/ExecutionEntityManagerImpl.java | 40516 | /* 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... | apache-2.0 |
inovex/rest-client | restclient-lib/src/main/java/org/wiztools/restclient/RoRequestBean.java | 3752 | package org.wiztools.restclient;
import java.net.URL;
import java.util.List;
import org.wiztools.commons.MultiValueMap;
/**
*
* @author schandran
*/
public class RoRequestBean implements Request {
private final URL url;
private final HTTPMethod method;
private final MultiValueMap<String, String> h... | apache-2.0 |
Boggimedes/Dungeon-Master-Pro | angular/app/components/sound-edit/sound-edit.component.spec.ts | 642 | import { ComponentFixture, TestBed } from "@angular/core/testing";
import { SoundEditComponent } from "./sound-edit.component";
describe("SoundEditComponent", () => {
let component: SoundEditComponent;
let fixture: ComponentFixture<SoundEditComponent>;
beforeEach(async () => {
await TestBed.configureTestin... | apache-2.0 |
npmcomponent/josdejong-mathjs | lib/function/statistics/median.js | 2941 | module.exports = function (math) {
var Matrix = require('../../type/Matrix'),
Unit = require('../../type/Unit'),
BigNumber = math.type.BigNumber,
collection = require('../../type/collection'),
isNumber = require('../../util/number').isNumber,
isCollection = collection.isCollection,
... | apache-2.0 |
maruno/collisionsdemo | src/renderer/render/shaderfactory.hpp | 881 | #ifndef SHADERFACTORY_HPP
#define SHADERFACTORY_HPP
#include <map>
#include <string>
#include "glload/gl_3_2.h"
namespace render {
/**
* Flyweight factory class for shaders. Administrates and creates shaders.
*
* @author Michel Bouwmans
*/
class ShaderFactory {
private:
static std::map<const std::strin... | apache-2.0 |
SAP/cloud-sfsf-benefits-ext | src/main/java/com/sap/hana/cloud/samples/benefits/odata/cfg/FunctionImportParameters.java | 592 | package com.sap.hana.cloud.samples.benefits.odata.cfg;
@SuppressWarnings("nls")
public final class FunctionImportParameters {
public static final String NAME = "name";
public static final String CAMPAIGN_ID = "campaignId";
public static final String START_DATE = "startDate";
public static final String USER_ID = "... | apache-2.0 |
openstack/heat | heat/tests/openstack/heat/test_random_string.py | 12486 | #
# 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
# ... | apache-2.0 |
projectjellyfish/jellyfish-aws | public/extensions/aws/states/services/details/aws/rds/rds.state.js | 1375 | (function() {
'use strict';
angular.module('app.states')
.run(appRun);
/** @ngInject */
function appRun(StateOverride) {
StateOverride.override('services.details', function(service) {
if ('JellyfishAws::Service::RDS' == service.type) {
return {
templateUrl: 'extensions/aws/stat... | apache-2.0 |
ivanceras/keywordSQL | src/test/java/com/ivanceras/fluent/TestSQLOrderBy.java | 1035 | package com.ivanceras.fluent;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import com.ivanceras.keyword.sql.Breakdown;
import com.ivanceras.keyword.sql.SQL;
import static com.ivanceras.keyword.sql... | apache-2.0 |
DragonRoman/ovirt-engine-sdk | generator/src/main/java/org/ovirt/engine/sdk/generator/XsdData.java | 12672 | //
// Copyright (c) 2014 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-2.0
//
// Unless required by applicable law or agreed... | apache-2.0 |
johnzeringue/Topsoil | app/src/main/java/org/cirdles/topsoil/app/plot/standard/UncertaintyEllipsePlotPropertiesPanel.java | 4033 | /*
* Copyright 2016 CIRDLES.
*
* 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... | apache-2.0 |