repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
billy1380/markdown4j-gwt-demo | src/markdown4j/gwt/demo/client/MarkdownDemoPage.java | 8530 | //
// MarkdownDemoPage.java
// markdown4j-gwt-demo
//
// Created by William Shakour (billy1380) on 2 Jan 2015.
// Copyright © 2015 SPACEHOPPER STUDIOS Ltd. All rights reserved.
//
package markdown4j.gwt.demo.client;
import java.util.List;
import java.util.Map;
import org.markdown4j.Plugin;
import org.markdown4j.c... | apache-2.0 |
K7Gt/java_pft | sandbox/src/main/java/ru/stqa/pft/sandbox/DiffTests.java | 1031 | package ru.stqa.pft.sandbox;
/**
* Created by Golem on 08.04.2017.
*/
public class DiffTests {
public static void main(String[] args){
String test = "testname testMiddlename testlastname\n" +
"testNick\n" +
"testtitle\n" +
"testCompany\n" +
... | apache-2.0 |
icotting/Phocalstream | Phocalstream_Shared/Data/Model/Photo/TimeLapseFrame.cs | 352 | using Phocalstream_Shared.Data.Model.External;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Phocalstream_Shared.Data.Model.Photo
{
public class TimeLapseFrame
{
public long PhotoID { get; set; }
public DateTime Fr... | apache-2.0 |
PaloAltoNetworks/minemeld-core | minemeld/traced/writer.py | 2567 | # Copyright 2016 Palo Alto Networks, 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 agre... | apache-2.0 |
chenglongwei/trafficserver | iocore/cache/CachePages.cc | 23717 | /** @file
A brief file description
@section license License
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 und... | apache-2.0 |
ronichoudhury-work/resonantlab | legacy/views/overlays/Menu/index.js | 3218 | import d3 from 'd3';
import Backbone from 'backbone';
import template from './template.html';
import './style.scss';
let Menu = Backbone.View.extend({
initialize: function (menuSpec) {
this.menuSpec = menuSpec;
},
render: function () {
if (!this.addedTemplate) {
this.$el.html(template);
this.... | apache-2.0 |
endfalse/EzFramework7 | Tools/ProjTool/ToEntity/ini.cs | 1706 | using System;
using System.Threading;
using System.Windows.Forms;
namespace Ez.ToEntity
{
public partial class ini : Form
{
private Home home;
public ini(Home home)
{
InitializeComponent();
this.home = home;
if (this.home.IniConfigModel != null)
... | apache-2.0 |
marcks28/Sistema | src/controle/ControleTipoMovimentacao.java | 1351 |
package controle;
import java.sql.SQLException;
import java.util.List;
import java.util.function.Predicate;
import modelo.TipoMovimentacao;
import modelo.data.TipoMovimentacaoDAL;
import modelo.data.interfaces.IControle;
public class ControleTipoMovimentacao implements IControle<TipoMovimentacao>{
private TipoM... | apache-2.0 |
google/iree | llvm-external-projects/iree-compiler-api/python/iree/compiler/tools/binaries.py | 10467 | # Lint-as: python3
"""Utilities for locating and invoking compiler tool binaries."""
# Copyright 2020 The IREE Authors
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
import importlib... | apache-2.0 |
acisternino/ticket-downloader | src/main/java/tido/naming/TicketDirectoryNamer.java | 5275 | /*
* Copyright 2013 Andrea Cisternino <a.cisternino@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | apache-2.0 |
denverpost/va-hospital | js/functions.js | 17425 | var href = location.href.split('/');
href.pop();
var adPathRoot = href.join('/') + '/';
var body = document.body, html = document.documentElement;
var docHeight = Math.max( body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight );
var swapped = false;
var adsloaded = [];
/* THIS I... | apache-2.0 |
huangjianke/Gitter | src/pages/account/follow.js | 3351 | import Taro, { Component } from '@tarojs/taro'
import { View } from '@tarojs/components'
import { GLOBAL_CONFIG } from '../../constants/globalConfig'
import FollowItem from '../../components/account/followItem'
import { REFRESH_STATUS } from '../../constants/status'
import Empty from '../../components/index/empty'
impo... | apache-2.0 |
ausaccessfed/saml-service | db/migrate/20151204023033_add_flags_to_raw_entity_descriptors.rb | 251 | Sequel.migration do
change do
alter_table :raw_entity_descriptors do
add_column :idp, TrueClass, default: false
add_column :sp, TrueClass, default: false
add_column :standalone_aa, TrueClass, default: false
end
end
end
| apache-2.0 |
nirvanesque/g5k-api | app/controllers/environments_controller.rb | 862 | # Copyright (c) 2009-2011 Cyril Rohr, INRIA Rennes - Bretagne Atlantique
#
# 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 b... | apache-2.0 |
transcendent-ai-labs/DynaML | dynaml-core/src/main/scala/io/github/mandar2812/dynaml/prototype/Measure.scala | 986 | /*
* 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 ... | apache-2.0 |
jmarin/mesos-proxy | src/main/scala/mesos/dns/client/MesosClient.scala | 870 | package mesos.dns.client
import akka.actor.ActorSystem
import akka.event.{ Logging, LoggingAdapter }
import akka.http.scaladsl.Http
import akka.stream.ActorMaterializer
import com.typesafe.config.ConfigFactory
import mesos.dns.client.http.HttpService
import scala.concurrent.ExecutionContextExecutor
object MesosClien... | apache-2.0 |
consulo/consulo-android | tools-base/sdk-common/src/main/java/com/android/ide/common/blame/parser/LegacyNdkOutputParser.java | 9586 | /*
* Copyright (C) 2015 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... | apache-2.0 |
sunlin901203/example-java | src/main/java/javas/design/decorator/MochaDecorator.java | 701 | package javas.design.decorator;
/**
* @author sunny
* @version 1.0.0
* @since 2013-7-17
*/
public class MochaDecorator extends CondimentDecorator {
private Beverage beverage;
public MochaDecorator(Beverage beverage) {
this.beverage = beverage;
description = "Mocha";
price = 350D;
... | apache-2.0 |
uboot/stromx-opencv | stromx/cvimgproc/test/FloodFillTest.cpp | 1607 | #include "stromx/cvimgproc/test/FloodFillTest.h"
#include <stromx/runtime/OperatorException.h>
#include <stromx/runtime/ReadAccess.h>
#include "stromx/cvsupport/Image.h"
#include "stromx/cvimgproc/FloodFill.h"
CPPUNIT_TEST_SUITE_REGISTRATION (stromx::cvimgproc::FloodFillTest);
namespace stromx
{
namespace cvimgp... | apache-2.0 |
CustomizedTools/CustomizedTools-jar | core/src/main/java/com/customized/tools/util/BundleUtil.java | 8770 | /*
* 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... | apache-2.0 |
BiyuHuang/CodePrototypesDemo | demo/ScalaDemo/src/main/scala/com/wallace/demo/app/multithread/MultiThreadTestDemo.scala | 1448 | package com.wallace.demo.app.multithread
import java.util.concurrent.{ExecutorService, Executors}
import com.wallace.demo.app.common.LogSupport
/**
* com.wallace.demo.app.multithread
* Created by 10192057 on 2017/10/18 0018.
*/
object MultiThreadTestDemo extends LogSupport {
private val maxPoolSiz... | apache-2.0 |
cjqian/traffic_control | traffic_router/core/src/main/java/com/comcast/cdn/traffic_control/traffic_router/core/util/PeriodicResourceUpdater.java | 9553 | /*
* Copyright 2015 Comcast Cable Communications Management, 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 require... | apache-2.0 |
oehme/analysing-gradle-performance | my-app/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p481/Production9632.java | 1963 | package org.gradle.test.performance.mediummonolithicjavaproject.p481;
public class Production9632 {
private Production9629 property0;
public Production9629 getProperty0() {
return property0;
}
public void setProperty0(Production9629 value) {
property0 = value;
}
priv... | apache-2.0 |
cyanide-studio/dialog | Dev/DialogueEditorDLL/Sources/Panels/PanelProperties.cs | 6734 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;
namespace DialogueEditor
{
public partial class Pan... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-ses/src/main/java/com/amazonaws/services/simpleemail/model/transform/DeleteIdentityResultStaxUnmarshaller.java | 2231 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | apache-2.0 |
Tom-Davidson/ruby-sinatra-dependancydiscovery | spec/cartographer_spec.rb | 460 | require 'spec_helper'
describe 'Cartographer' do
let(:cartographer) { DependancyDiscovery::Cartographer.new }
it 'Cartographer accepts a Chronicler with POIs' do
chronicler = double('Chronicler')
allow(chronicler).to receive(:points_of_interest).and_return(
[
{ context: 'r1', uri: 'uri1' },
... | apache-2.0 |
Activiti/Activiti | activiti-core/activiti-image-generator/src/main/java/org/activiti/image/ProcessDiagramGenerator.java | 6016 | /*
* Copyright 2010-2020 Alfresco Software, Ltd.
*
* 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 |
zhml8951/tianhuan | jsDemo/small_demo/fun_demo02.js | 714 | function fun_demo01() {
var a = 0;
function bb(x) {
console.log(x);
}
function timer(time, callback) {
setTimeout(function() {
a = 6;
callback(a);
}, time);
}
console.log(a);
timer(3000, bb);
timer(2000, function(x) {
console.log(x);
});
}
function scope_demo01() {
var ... | apache-2.0 |
tectronics/hyracks | hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/ondisk/OnDiskInvertedIndexOpContext.java | 2502 | /*
* Copyright 2009-2013 by The Regents of the University of California
* 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 from
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | apache-2.0 |
wenxuan-xia/net_info_publisher-SE_1_5 | user_check_model/oa.php | 9488 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Oa extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->library('session');
$this->load->helper('cookie');
$this->load->helper('url');
}
private... | apache-2.0 |
Otaka/mydifferentprojects | nes-java/src/com/nes/processor/commands/impl/Rti.java | 577 | package com.nes.processor.commands.impl;
import com.nes.processor.ALU;
import com.nes.processor.AluUtils;
import com.nes.processor.commands.AbstractCommand;
/**
* @author Dmitry
*/
public class Rti extends AbstractCommand {
@Override
public byte execute(ALU alu, byte input) {
byte flag... | apache-2.0 |
XClouded/t4f-core | java/concurrent/src/main/java/io/aos/concurrent/spl5/Entrepot3.java | 1994 | /****************************************************************
* Licensed to the AOS Community (AOS) under one or more *
* contributor license agreements. See the NOTICE file *
* distributed with this work for additional information *
* regarding copyright ownership. The AOS licenses this... | apache-2.0 |
Xuyuanp/goscheme | lexer/precedure.go | 854 | package lexer
import "fmt"
type precedure func(tokens ...*Token) (*Token, error)
var precedureMap = map[string]precedure{
"+": add,
}
func doPrecedure(tokens ...*Token) (*Token, error) {
token := tokens[0]
if token.typ != typePrecedure {
}
result, err := token.val.(precedure)(tokens[1:]...)
return result, er... | apache-2.0 |
ChineaseMedicine/MedicineFormatInput | ChineseMedicineInputSystem/ChineseMedicineInputSystem/obj/Debug/View/BasicInfo/NavigationBasicInfoView.g.i.cs | 4081 | #pragma checksum "..\..\..\..\View\BasicInfo\NavigationBasicInfoView.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "538145DE93BDD53960E25800FC428B3D"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.... | apache-2.0 |
Juklab/emmaline | html/app/tour/add_tour_promotion.php | 20716 | <!DOCTYPE html>
<?php
require_once ('/var/www/html/app/model/connect.php');
require_once ('/var/www/html/app/library/function.php');
if(!isset($_SESSION['current_user_name']) && !isset($_COOKIE[$cookie_name])) {
header('Location: ../login.php');
exit();
}
$user_name = $_COOKIE["user"];
?>
<html lang="en">
<head>
<... | apache-2.0 |
currying/molecule | molecule/src/main/java/com/toparchy/molecule/bi/report/BirtBean.java | 825 | //package com.toparchy.molecule.bi.report;
//
//import javax.enterprise.context.SessionScoped;
//import javax.inject.Named;
//
//import java.io.Serializable;
//
//import org.eclipse.birt.report.engine.api.EngineException;
//
//@Named
//@SessionScoped
//public class BirtBean implements Serializable {
//
// ... | apache-2.0 |
virtualdataset/metagen-java | virtdata-lib-curves4/src/main/java/org/apache/commons/math4/exception/NullArgumentException.java | 2827 | /*
* 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 ... | apache-2.0 |
rPraml/org.openntf.domino | domino/design-impl/src/main/java/org/openntf/domino/design/impl/AbstractXspResource.java | 3856 | /*
* Copyright 2013
*
* 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 |
k9mail/k-9 | mail/protocols/imap/src/test/java/com/fsck/k9/mail/store/imap/RealImapStoreTest.java | 21362 | package com.fsck.k9.mail.store.imap;
import java.io.IOException;
import java.util.ArrayDeque;
import java.util.Arrays;
import java.util.Collections;
import java.util.Deque;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import android.net.Connec... | apache-2.0 |
llamahunter/docker-java | src/main/java/com/github/dockerjava/core/command/CreateContainerCmdImpl.java | 27658 | package com.github.dockerjava.core.command;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.command.CreateContaine... | apache-2.0 |
dimone-kun/cuba | modules/gui/src/com/haulmont/cuba/gui/ComponentPalette.java | 1308 | /*
* Copyright (c) 2008-2016 Haulmont.
*
* 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 |
getsentry/zeus | tests/zeus/web/test_auth_github.py | 11971 | from urllib.parse import parse_qs
from zeus import auth, factories
from zeus.constants import GITHUB_AUTH_URI, GITHUB_TOKEN_URI, Permission
from zeus.models import Email, Identity, RepositoryAccess, User
def test_login(client):
resp = client.get("/auth/github")
assert resp.status_code == 302
location, qu... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-codegurureviewer/src/main/java/com/amazonaws/services/codegurureviewer/model/transform/ListRecommendationsRequestProtocolMarshaller.java | 2763 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | apache-2.0 |
metasim/ews | src/EWS/app/drawable/CameraController.cpp | 14117 | /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this... | apache-2.0 |
seirion/code | lge/2014/june/3/main.cpp | 3946 | // http://lgecodejam.com
// lge code jam June, 2014
// problem.3
// hyungyu.jang@lge.com
#if defined _EXTERNAL_DEBUGGER && defined _DEBUG
#include <trace/trace.h>
#include <intrin.h>
#else
#define trace printf
#endif
#include <iostream>
#include <cstdio>
#include <cstring>
#include <set>
#include <functi... | apache-2.0 |
zoozooll/MyExercise | meep/MeepStore2/src/com/oregonscientific/meep/store2/CommonDialog.java | 1356 | package com.oregonscientific.meep.store2;
import com.oregonscientific.meep.store2.inapp.PurchaseActivity;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.graphics.drawable.ColorDrawable;
import android.view.View;
import android.view.View.OnClickListener;
import a... | apache-2.0 |
jlannoy/ninja | ninja-core/src/test/java/ninja/params/ControllerMethodInvokerWithDeprecatedValidationTest.java | 63544 | /**
* Copyright (C) 2012-2019 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 b... | apache-2.0 |
arturdm/cppworkshop | 01-KeyProviderTest/src/cpp/android/keyprovider/NativeKeyProviderTest.java | 200 | package cpp.android.keyprovider;
public class NativeKeyProviderTest extends KeyProviderTest<NativeKeyProvider> {
public NativeKeyProviderTest() {
super(NativeKeyProvider.class);
}
}
| apache-2.0 |
samuelfvlcastro/dharma-stations | teste/Assets/script/PlayerBehaviour.cs | 2153 | using UnityEngine;
using System.Collections;
public class PlayerBehaviour : MonoBehaviour {
private Ray rayToInteract;
private RaycastHit hitInteract;
public float rangeInteract;
public Renderer feedBackSlender;
public float scare=0;
public float recoverScare;
public AudioClip walking;
private GameCon... | apache-2.0 |
mlaggner/tinyMediaManager | src/org/tinymediamanager/ui/components/JHintLabel.java | 3088 | /*
* Copyright 2012 - 2015 Manuel Laggner
*
* 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 |
dreamllq/node | deps/v8/src/compiler/register-allocator-verifier.cc | 24534 | // Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/bit-vector.h"
#include "src/compiler/instruction.h"
#include "src/compiler/register-allocator-verifier.h"
namespace v8 {
namespace intern... | apache-2.0 |
VoldemarLeGrand/rest-assured | rest-assured/src/main/java/com/jayway/restassured/authentication/PreemptiveAuthProvider.java | 1388 | /*
* Copyright 2011 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 appli... | apache-2.0 |
ros2/rclpy | rclpy/rclpy/expand_topic_name.py | 1472 | # Copyright 2017 Open Source Robotics Foundation, 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... | apache-2.0 |
larsrh/libisabelle | modules/pide/2017/src/main/scala/ROOT.scala | 864 | /* Title: Pure/ROOT.scala
Author: Makarius
Root of isabelle package.
*/
package object isabelle
{
val ERROR = Exn.ERROR
val error = Exn.error _
val cat_error = Exn.cat_error _
def using[A <: { def close() }, B](x: A)(f: A => B): B = Library.using(x)(f)
val space_explode = Library.space_explod... | apache-2.0 |
Ruwan-Ranganath/wpclone-dating | gulpfile.js | 1950 | var elixir = require('laravel-elixir');
//require('./elixir-extensions');
elixir(function(mix) {
mix
.phpUnit()
//.compressHtml()
/**
* Copy needed files from /node directories
* to /public directory.
*/
.copy(
'node_modules/font-awesome/fonts',
'public/build/fonts/fon... | apache-2.0 |
Likeminded/Likeminded | db/migrate/20140617095329_create_adsenses.rb | 201 | class CreateAdsenses < ActiveRecord::Migration
def change
create_table :adsenses do |t|
t.string :title
t.string :picture
t.integer :order
t.timestamps
end
end
end
| apache-2.0 |
cjduffett/stork | config/config.go | 2026 | package config
// DefaultConfig is the default set of configuration options for Stork.
// Note: with this default configuration Stork has enough information to start,
// but not to make requests to AWS. Those configuration options will need
// to be passed from the command line.
var DefaultConfig = &StorkConfig{
Serv... | apache-2.0 |
stasimus/just.ws | src/main/scala/com/scalaloader/ws/WebSocketClientHandler.scala | 1854 | package com.scalaloader.ws
import io.netty.handler.codec.http.websocketx.{CloseWebSocketFrame, PongWebSocketFrame, TextWebSocketFrame, WebSocketClientHandshaker}
import io.netty.channel.{ChannelHandlerContext, SimpleChannelInboundHandler}
import io.netty.handler.codec.http.FullHttpResponse
import io.netty.util.Charset... | apache-2.0 |
dvanherbergen/robotframework-filelibrary | src/main/java/io/github/dvanherbergen/filelibrary/FileLibrary.java | 1152 | package io.github.dvanherbergen.filelibrary;
import org.robotframework.javalib.library.AnnotationLibrary;
public class FileLibrary extends AnnotationLibrary {
public static final String ROBOT_LIBRARY_SCOPE = "GLOBAL";
// @formatter:off
public static final String LIBRARY_DOCUMENTATION = "FileLibrary is a Robot Fr... | apache-2.0 |
mbohlool/client-python | kubernetes/client/models/apps_v1beta1_rolling_update_deployment.py | 6612 | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.8.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | apache-2.0 |
vcdemon/wechat-framework | wechat-core/src/main/java/com/itfvck/wechatframework/core/util/http/https/HttpsClient.java | 1691 |
/**
*
*/
package com.itfvck.wechatframework.core.util.http.https;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
import org.apache.http.conn.ClientConnectionManag... | apache-2.0 |
Lovin000/AbyssalCraft | src/main/java/com/shinoow/abyssalcraft/common/items/ItemDarkstoneSword.java | 4451 | /**AbyssalCraft
*Copyright 2012-2014 Shinoow
*
*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... | apache-2.0 |
KayLerch/alexa-pokemon | src/main/java/io/klerch/alexa/pokemon/api/What3Words.java | 2423 | package io.klerch.alexa.pokemon.api;
import io.klerch.alexa.pokemon.SkillConfig;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.Validate;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.Pair;
import org.apache.http.HttpResponse;
import org.apache.http.c... | apache-2.0 |
ydc201211/bookdownload | js/register.js | 24 | $(function() {
}); | apache-2.0 |
citrix/terraform-provider-netscaler | vendor/github.com/citrix/adc-nitro-go/resource/config/vpn/vpnvserver_auditnslogpolicy_binding.go | 3863 | /*
* Copyright (c) 2021 Citrix Systems, 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 ... | apache-2.0 |
bjorndm/prebake | code/third_party/bdb/src/com/sleepycat/je/config/ConfigParam.java | 3891 | /*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2000-2010 Oracle. All rights reserved.
*
* $Id: ConfigParam.java,v 1.40 2010/01/04 15:50:40 cwl Exp $
*/
package com.sleepycat.je.config;
import com.sleepycat.je.EnvironmentFailureException;
/**
* A ConfigParam embodies the metadata... | apache-2.0 |
boneman1231/org.apache.felix | trunk/configadmin/src/test/java/org/apache/felix/cm/impl/ConfigurationAdapterTest.java | 6109 | /*
* 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")... | apache-2.0 |
igarashitm/camel | components/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java | 42495 | /**
* 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... | apache-2.0 |
noobyang/AndroidStudy | zmusic/src/main/java/com/noobyang/music/Music.java | 1362 | package com.noobyang.music;
public class Music {
private int id;
private String title;
private String artist;
private long duration;
private String data;
private int albumId;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
pu... | apache-2.0 |
antoniogi/HPC | Python/TACC_HPC/2_cython/test_cython1.py | 240 | #!/usr/bin/env python
#
# Iterative example to show Cython capabilities.
#
#
# agomez (at) tacc.utexas.edu
# 30 Oct 2014
#
# ---------------------------------------------------------------------
import myfunc1
print myfunc1.function(10.0)
| apache-2.0 |
ArloL/liquibase | liquibase-core/src/main/java/liquibase/database/core/DerbyDatabase.java | 6765 | package liquibase.database.core;
import java.sql.*;
import liquibase.CatalogAndSchema;
import liquibase.database.AbstractJdbcDatabase;
import liquibase.database.DatabaseConnection;
import liquibase.database.jvm.JdbcConnection;
import liquibase.structure.DatabaseObject;
import liquibase.exception.DatabaseExce... | apache-2.0 |
shenbaise/mltoy | src/main/scala/org/apache/spark/examples/mllib/BinaryClassification.scala | 5873 | /*
* 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 ... | apache-2.0 |
First-Peoples-Cultural-Council/fv-web-ui | frontend/app_v2/src/components/ShareLinks/index.js | 142 | import ShareLinksPresentation from 'components/ShareLinks/ShareLinksPresentation'
export default {
Presentation: ShareLinksPresentation,
}
| apache-2.0 |
PonIC/PonIC | src/org/apache/pig/impl/io/SPigTextInputFormat.java | 2738 | package org.apache.pig.impl.io;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.charset.CharacterCodingException;
import java.nio.charset.Charset;
import java.nio.charset.CharsetDecoder;
import java.util.Arrays;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactor... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesisfirehose/model/transform/ExtendedS3DestinationDescriptionJsonUnmarshaller.java | 6105 | /*
* 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 |
googleprojectzero/sandbox-attacksurface-analysis-tools | NtObjectManager/Cmdlets/Object/ReceiveNtAlpcMessageCmdlet.cs | 2972 | // Copyright 2019 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 applica... | apache-2.0 |
P7h/CPrograms_Circa2002 | C Programs/CNew/HANOITOW.C | 388 |
// PROGRAM FOR HANOI OF TOWERS
#include<stdio.h>
#include<conio.h>
int main(void)
{
int n = 4;
clrscr();
move(n, 'A', 'B', 'C');
getch();
return 0;
}
int move(int n, char a, char b, char c)
{
if(n == 1)
printf("\n \t Move from %c to %c", a, c);
else
{
move(n-1,a, c, b);
... | apache-2.0 |
osvik/simplecsv | logic.go | 2106 | package simplecsv
// countIndexesInSlices counts how many times an integrer shows up in one or more slices
func countIndexesInSlices(indexes [][]int) map[int]int {
valuesMap := map[int]int{}
var valueExists bool
for _, toCount := range indexes {
for _, v := range toCount {
_, valueExists = valuesMap[v]
if v... | apache-2.0 |
kennyphilp/AutomatedBeanTester | src/test/java/com/kwp/automatedbeantester/utils/StringUtilsTest.java | 742 | package com.kwp.automatedbeantester.utils;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static org.junit.Assert.assertEquals;
/**
* Created by Kenny on 01/10/2017.
*/
public class StringUtilsTest {
private static final Logger LOGGER = LoggerFactory.getLogger(StringUti... | apache-2.0 |
spring-projects/spring-framework | spring-tx/src/main/java/org/springframework/dao/TransientDataAccessException.java | 1602 | /*
* Copyright 2002-2017 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | apache-2.0 |
rezaur86/Coding-competitions | Java/leetcode/MinRotatedSortedArray.java | 943 | package leetcode;
// https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/
public class MinRotatedSortedArray {
public int findMin(int[] nums) {
if (nums.length == 1) return nums[0];
int n = nums.length;
int first = 0;
int last = 1;
while (first != last && n... | apache-2.0 |
machinomy/machinomy | packages/machinomy/src/storage/sqlite/SqliteDatastore.ts | 1058 | import * as sqlite3 from 'sqlite3'
export default class SqliteDatastore {
database: sqlite3.Database
constructor (database: sqlite3.Database) {
this.database = database
}
run (query: string, params?: any): Promise<void> {
return new Promise<void>((resolve, reject) => {
this.database.run(query, ... | apache-2.0 |
cdegroot/river | src/com/sun/jini/reggie/ConstrainableRegistrarProxy.java | 5433 | /*
* 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 m... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/model/transform/HLSFragmentSelectorJsonUnmarshaller.java | 3082 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | apache-2.0 |
1100110/rust | src/librustc/front/intrinsic.rs | 5649 | // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | apache-2.0 |
mariusj/org.openntf.domino | domino/core/src/main/java/org/openntf/domino/formula/NativeEvaluateFunctions.java | 37763 | package org.openntf.domino.formula;
import java.util.Map;
import org.openntf.formula.EvaluateException;
import org.openntf.formula.Function;
import org.openntf.formula.FunctionFactory;
import org.openntf.formula.FunctionSet;
import org.openntf.formula.ValueHolder;
import org.openntf.formula.ValueHolder.DataT... | apache-2.0 |
enigmampc/catalyst | tests/pipeline/test_downsampling.py | 24481 | """
Tests for Downsampled Filters/Factors/Classifiers
"""
import pandas as pd
from pandas.util.testing import assert_frame_equal
from catalyst.pipeline import (
Pipeline,
CustomFactor,
CustomFilter,
CustomClassifier,
)
from catalyst.pipeline.data.testing import TestingDataSet
from catalyst.pipeline.fac... | apache-2.0 |
edeunix/across | across/edit-organization.php | 3237 | <?
include('top.php');
include('maps-load.html');
?>
<h3>Setup and configuration data</h3>
<a href="frontend.php">Back to Frontend</a>
<hr width="90%">
<div class="across" align="center">
<!-- SCORE -->
<div data-pws-tab="organization" data-pws-tab-name="Organization">
<form action="organiza... | apache-2.0 |
sustacek/stripes-4-netbeans | s4n.core/src/org/netbeans/modules/web/stripes/config/StripesWebFrameworkProvider.java | 21981 | /*
* Stripes1.5.java
*
* Created on October 23, 8, 11:21 AM
*/
package org.netbeans.modules.web.stripes.config;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWri... | apache-2.0 |
petewarden/tensorflow | tensorflow/core/kernels/data/finalize_dataset_op.cc | 20067 | /* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | apache-2.0 |
ctripcorp/dal | dal-client/src/main/java/com/ctrip/platform/dal/dao/sqlbuilder/DeleteSqlBuilder.java | 1798 | package com.ctrip.platform.dal.dao.sqlbuilder;
import java.sql.SQLException;
import com.ctrip.platform.dal.common.enums.DatabaseCategory;
import com.ctrip.platform.dal.dao.StatementParameters;
public class DeleteSqlBuilder extends AbstractTableSqlBuilder {
private static final String DELETE_TPL = "DELETE FR... | apache-2.0 |
dgruber/ubercluster | vendor/github.com/dgruber/drmaa2os/reservation.go | 558 | package drmaa2os
import (
"github.com/dgruber/drmaa2interface"
)
type Reservation struct {
}
func (r *Reservation) GetID() (string, error) {
return "", nil
}
func (r *Reservation) GetSessionName() (string, error) {
return "", nil
}
func (r *Reservation) GetTemplate() (drmaa2interface.ReservationTemplate, error)... | apache-2.0 |
ostap0207/remotify.me | remotify.client/src/main/java/remotify/client/ws/processors/CameraProcessor.java | 395 | package remotify.client.ws.processors;
import messages.device.CameraMessage;
import remotify.client.profiles.camera.Camera;
import java.awt.image.BufferedImage;
/**
* .
* User: Ostap
* Date: 5/8/14
* Time: 12:07 AM
*/
public class CameraProcessor extends ImageProcessor<CameraMessage> {
@Override
protect... | apache-2.0 |
jberezanski/choco | src/chocolatey/Properties/AssemblyInfo.cs | 879 | // Copyright © 2017 - 2018 Chocolatey Software, Inc
// Copyright © 2011 - 2017 RealDimensions Software, 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://ww... | apache-2.0 |
mxm/incubator-beam | runners/google-cloud-dataflow-java/worker/src/test/java/org/apache/beam/runners/dataflow/worker/graph/ReplacePgbkWithPrecombineFunctionTest.java | 6613 | /*
* 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 ... | apache-2.0 |
huitseeker/DataVec | datavec-api/src/main/java/org/datavec/api/records/reader/impl/csv/CSVRegexRecordReader.java | 3178 | /*-
* * Copyright 2017 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
* *
* * Un... | apache-2.0 |
alibaba/atlas | atlas-gradle-plugin/dexpatch/src/main/java/com/taobao/android/dx/dex/file/AnnotationSetRefItem.java | 2340 | /*
* Copyright (C) 2008 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... | apache-2.0 |
siemens/ASLanPPConnector | src/aslan-core/src/main/java/org/avantssar/aslan/CompoundType.java | 2229 | // Copyright 2010-2013 (c) IeAT, Siemens AG, AVANTSSAR and SPaCIoS consortia.
// 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 |
aws/aws-sdk-java | aws-java-sdk-globalaccelerator/src/main/java/com/amazonaws/services/globalaccelerator/model/WithdrawByoipCidrRequest.java | 3468 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | apache-2.0 |
simonsoft/cms-item | src/main/java/se/simonsoft/cms/item/export/CmsExportReader.java | 1828 | /**
* Copyright (C) 2009-2017 Simonsoft Nordic AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | apache-2.0 |