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 |
|---|---|---|---|---|---|
package org.anderes.edu.gui.pm.gui;
import java.awt.Color;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JText... | rene-anderes/edu | oo.basics/src/main/java/org/anderes/edu/gui/pm/gui/View.java | Java | apache-2.0 | 2,276 |
/*
Copyright 2014 The Kubernetes 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 ag... | XiaoningDing/UbernetesPOC | pkg/serviceaccount/jwt_test.go | GO | apache-2.0 | 9,089 |
/*
* Minio Client (C) 2015 Minio, 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 agr... | winchram/mc | ls.go | GO | apache-2.0 | 5,848 |
import angular from 'angular';
import uiRouter from 'angular-ui-router';
import uiModal from 'angular-ui-bootstrap/src/modal';
import forcegraphComponent from './forcegraph.component';
let forcegraphModule = angular.module('forcegraph', [
uiRouter,
uiModal
])
.config(($stateProvider) => {
"ngInject";
$statePr... | garrettwong/GDashboard | client/app/components/d3visualizations/forcegraph/forcegraph.js | JavaScript | apache-2.0 | 510 |
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | googleapis/google-cloud-cpp | google/cloud/iap/identity_aware_proxy_o_auth_connection_idempotency_policy.cc | C++ | apache-2.0 | 3,353 |
/*
* 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 ... | desruisseaux/sis | core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/DefaultConcatenatedOperationTest.java | Java | apache-2.0 | 8,998 |
/*
*
* Copyright 2013 OpenStack Foundation
*
* 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 o... | hudson3-plugins/gearman-plugin | src/main/java/hudson/plugins/gearman/NodeAvailabilityMonitor.java | Java | apache-2.0 | 5,039 |
import java.io.File;
import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import org.apache.log4j.Logger;
import org.yeastrc.ms.parser.DataProviderException;
import org.yeastrc.ms.parser.ms2File.Ms2FileReader;
import org.yeastrc.ms.util.Sha1SumCalculator;
/**
*
*/
public class MS2FileValida... | yeastrc/msdapl | MS_LIBRARY/src/MS2FileValidator.java | Java | apache-2.0 | 2,486 |
package loadBalance;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.zip.Inflater;
/**
* Created by Administrator on 2017/1/17.
*/
public class IpMap {
public static Map<String, Integer> serverMap = new HashMap<String, Integer>();
static {... | yekevin/JavaPractise | src/loadBalance/IpMap.java | Java | apache-2.0 | 563 |
<?php
// Contact
$to = 'jasonekstromdev@gmail.com';
$subject = 'Job Opportunity';
if(isset($_POST['c_name']) && isset($_POST['c_email']) && isset($_POST['c_message'])){
$name = $_POST['c_name'];
$from = $_POST['c_email'];
$message = $_POST['c_message'];
if (mail($to, $subject... | jmekstrom/Portfolio | assets/php/contactForm.php | PHP | apache-2.0 | 628 |
#
# Author:: Shawn Neal <sneal@daptiv.com>
# Cookbook Name:: visualstudio
# Recipe:: install
#
# Copyright 2013, Daptiv Solutions, 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
#
# ... | dthagard/opschef-cookbook-visualstudio | recipes/install.rb | Ruby | apache-2.0 | 2,479 |
/**
* class for student
*/
'use strict'
const util = require('util')
const Person = require('./person');
function Student() {
Person.call(this);
}
// student继承自person
util.inherits(Student, Person);
Student.prototype.study = function() {
console.log('i am learning...');
};
module.exports = Student; | EvanDylan/node | base/mods/inhertis/student.js | JavaScript | apache-2.0 | 318 |
package module
import (
"net"
"sync"
)
type TCP_server struct {
Port uint16
NewAgent func(*TCPConn) Agent
ln net.Listener
mutexConns sync.Mutex
}
func (server *TCP_server) Start() {
}
| swordhell/go_server | src/td.com/module/module.go | GO | apache-2.0 | 210 |
import * as Preact from '#preact';
import {boolean, number, select, withKnobs} from '@storybook/addon-knobs';
import {withAmp} from '@ampproject/storybook-addon';
export default {
title: 'amp-twitter-1_0',
decorators: [withKnobs, withAmp],
parameters: {
extensions: [
{
name: 'amp-twitter',
... | jpettitt/amphtml | extensions/amp-twitter/1.0/storybook/Basic.amp.js | JavaScript | apache-2.0 | 3,469 |
// This is a generated file. Not intended for manual editing.
package com.github.joshholl.intellij.csharp.lang.psi.impl;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiElementVisitor;
import com.intellij.psi.ut... | joshholl/intellij-csharp | gen/com/github/joshholl/intellij/csharp/lang/psi/impl/CSharpImplicitAnonymousFunctionParameterListImpl.java | Java | apache-2.0 | 1,220 |
using System;
using ruibarbo.core.Search;
using ruibarbo.core.Wpf.Base;
namespace ruibarbo.core.Wpf.Helpers
{
public static class ComboBoxExtensions
{
public static void OpenAndClickFirst<TItem>(this IComboBox me)
where TItem : class, IComboBoxItem
{
OpenAndC... | toroso/ruibarbo | ruibarbo.core/Wpf/Helpers/ComboBoxExtensions.cs | C# | apache-2.0 | 879 |
/*
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | jaadds/product-apim | modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/api/lifecycle/APISecurityTestCase.java | Java | apache-2.0 | 14,024 |
using System;
using System.Net;
namespace Exceptionless.Api.Controllers {
public class PermissionResult {
public bool Allowed { get; set; }
public string Id { get; set; }
public string Message { get; set; }
public HttpStatusCode StatusCode { get; set; }
public static Pe... | adamzolotarev/Exceptionless | Source/Api/Controllers/Base/PermissionResult.cs | C# | apache-2.0 | 1,762 |
package org.apache.luke.client;
/**
* 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... | DmitryKey/luke-gwt | src/main/java/org/apache/luke/client/LukeInspector.java | Java | apache-2.0 | 17,271 |
angular.module('app').factory('Entity', function ($resource) {
var __apiBase__ = 'http://localhost:8080/GenericBackend/';
return {
Model : $resource(__apiBase__ + 'api/models/fqns'),
User : $resource(__apiBase__ + 'api/users/:id', {id: '@id', profileId :'@profileId'},{
... | kodero/generic-angular-frontend | app/common/services/EntityFactory.js | JavaScript | apache-2.0 | 2,708 |
// Copyright 2011 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... | nornagon/ninja | src/subprocess-win32.cc | C++ | apache-2.0 | 5,723 |
package org.omg.CosNaming.NamingContextPackage;
/**
* org/omg/CosNaming/NamingContextPackage/NotEmptyHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from /HUDSON3/workspace/8-2-build-linux-amd64/jdk8u121/8372/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
* Monday, Decembe... | wangsongpeng/jdk-src | src/main/java/org/omg/CosNaming/NamingContextPackage/NotEmptyHelper.java | Java | apache-2.0 | 2,045 |
//-------------------------------------------------------------------------------
// <copyright file="InMemoryTraceListener.cs" company="frokonet.ch">
// Copyright (C) frokonet.ch, 2014-2020
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance wi... | froko/SimpleDomain | src/SimpleDomain/Common/InMemoryTraceListener.cs | C# | apache-2.0 | 2,853 |
package com.jan.flc.firstlinecode.activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import... | uzmakinaruto/FirstLineCode | app/src/main/java/com/jan/flc/firstlinecode/activity/UIActivity.java | Java | apache-2.0 | 2,700 |
#!/usr/bin/ruby
#
# Author:: api.sgomes@gmail.com (Sérgio Gomes)
#
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
#
# License:: 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 o... | sylow/google-adwords-api | examples/v201003/add_negative_campaign_criterion.rb | Ruby | apache-2.0 | 3,158 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Xml.Serialization;
using System.Configuration;
using System.IO;
namespace GetServiceInfo
{
class GetOutletServiceInfo
{
static void Main(string[] args)
{
// Your use... | Kiandr/MS | Languages/CSharp/CPCWS_DotNet_Samples/REST/serviceinfo/GetOutletServiceInfo/GetOutletServiceInfo.cs | C# | apache-2.0 | 4,631 |
/*
* Copyright 2011 Google 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... | skyisle/iosched2011 | android/src/com/google/android/apps/iosched/ui/BaseSinglePaneActivity.java | Java | apache-2.0 | 2,149 |
/*
* Copyright 2017-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | GoogleCloudPlatform/spring-cloud-gcp | spring-cloud-gcp-data-datastore/src/main/java/com/google/cloud/spring/data/datastore/core/mapping/event/ReadEvent.java | Java | apache-2.0 | 1,298 |
import logging
from types import FunctionType
import ray
import ray.cloudpickle as pickle
from ray.experimental.internal_kv import _internal_kv_initialized, \
_internal_kv_get, _internal_kv_put
from ray.tune.error import TuneError
TRAINABLE_CLASS = "trainable_class"
ENV_CREATOR = "env_creator"
RLLIB_MODEL = "rlli... | richardliaw/ray | python/ray/tune/registry.py | Python | apache-2.0 | 5,525 |
# Copyright (c) 2018-2021 Micro Focus or one of its affiliates.
# Copyright (c) 2018 Uber Technologies, 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/licen... | uber/vertica-python | vertica_python/vertica/messages/frontend_messages/copy_data.py | Python | apache-2.0 | 2,393 |
"use strict";
require('../core/setup');
var $ = require('jquery'),
L = require('leaflet'),
assert = require('chai').assert,
sinon = require('sinon'),
Marionette = require('../../shim/backbone.marionette'),
App = require('../app'),
models = require('./models'),
utils = require('./utils'),
... | lliss/model-my-watershed | src/mmw/js/src/draw/tests.js | JavaScript | apache-2.0 | 7,248 |
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | gravitee-io/graviteeio-access-management | gravitee-am-service/src/test/java/io/gravitee/am/service/validators/PathValidatorTest.java | Java | apache-2.0 | 2,272 |
<?php
/**
* 支付配置
* @author hfc
* @date 2015-8-31
*/
namespace apps\admin\controllers;
use apps\admin\models\Payment;
use apps\admin\models\PaymentPlugin;
use enums\SystemEnums;
use Phalcon\Db\Profiler;
use Phalcon\Paginator\Adapter\Model as PaginatorModel;
use Phalcon\Validation;
use Phalcon\Validation\Validator... | sxyunfeng/fcms | apps/admin/controllers/PayconfigController.php | PHP | apache-2.0 | 7,003 |
/*
* Licensed to Crate under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership. Crate licenses this file
* to you under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compl... | EvilMcJerkface/crate | server/src/main/java/io/crate/execution/ddl/RelationNameSwap.java | Java | apache-2.0 | 1,976 |
/**
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | conversationai/harassment-manager | src/server/middleware/twitter.middleware.ts | TypeScript | apache-2.0 | 11,910 |
/**
* 添加教师js,主要处理积点的问题。
* 分模块化
* Created by admin on 2016/9/26.
*/
$(function(){
//第一个问题
var work_load = $('#is_work_load').val();
$("#work_load input[type='checkbox']").live('click', function(e){
var is_work_load = $(this).val();
if($(this).is(':checked') && is_work_load == 1){
... | lnc2014/school | template/js/add_per.js | JavaScript | apache-2.0 | 13,016 |
// Copyright 2009-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include "AlphaCompositeTileOperation.h"
#include <memory>
#include "../../fb/DistributedFrameBuffer.h"
#include "fb/DistributedFrameBuffer_ispc.h"
namespace ospray {
struct BufferedTile
{
ospray::Tile tile;
/*! determines order of ... | ospray/OSPRay | modules/mpi/ospray/render/distributed/AlphaCompositeTileOperation.cpp | C++ | apache-2.0 | 4,549 |
/*
* Copyright 2020 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... | pedroigor/keycloak | server-spi/src/main/java/org/keycloak/services/clientpolicy/ClientPolicyEvent.java | Java | apache-2.0 | 1,353 |
var THREE = require('three');
var cgaprocessor = require('./cgaprocessor')
// function t(sizes, size, repeat) {
// console.log(sizes, size, repeat);
// console.log(cgaprocessor._compute_splits( sizes, size, repeat ));
// }
// t([ { size: 2 } ], 4, true);
// t([ { size: 2 } ], 5, true);
// t([ { size: 2 }, { size:... | gromgull/cgajs | test/test_splitting.js | JavaScript | apache-2.0 | 1,531 |
import { Entity } from '../entity/entity';
/*******************************************************************************************************************************************************************************************************
*
* @data FragmentType - FragmentType inherited from Entity it is a speci... | kaular/ArchRef | ArchRefClient/ArchRefClient/src/app/shared/datamodels/types/fragmenttype.ts | TypeScript | apache-2.0 | 1,002 |
// 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 applicable ... | GerritCodeReview/gerrit | java/com/google/gerrit/server/extensions/events/ChangeRestored.java | Java | apache-2.0 | 3,450 |
package net.safedata.spring.boot.training.solace.publisher;
import net.safedata.spring.boot.training.solace.channel.OutboundChannels;
import net.safedata.spring.boot.training.solace.event.AddProductToOrderCommand;
import net.safedata.spring.boot.training.solace.event.OrderUpdatedEvent;
import net.safedata.spring.boot.... | bogdansolga/spring-boot-training | d04/d04s01-async-processing/d04s01e05-async-messaging-using-solace/d04s01e05-product-publisher/src/main/java/net/safedata/spring/boot/training/solace/publisher/MessagePublisher.java | Java | apache-2.0 | 1,255 |
package cn.demoz.www.adapter;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.BaseAdapter;
import android.widget.ListView;
import java.util.List;
import cn.demoz.www.holder.BaseHolder;
import cn.d... | jxent/Demoz | Demoz/app/src/main/java/cn/demoz/www/adapter/DefaultAdapter.java | Java | apache-2.0 | 5,112 |
/*
* Copyright (c) 2005, 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 ... | gstamac/powermock | powermock-modules/powermock-module-javaagent/src/main/java/sun/tools/attach/LinuxVirtualMachine.java | Java | apache-2.0 | 11,227 |
/**
* Copyright 2015 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | kamtschatka/amphtml | src/service/url-replacements-impl.js | JavaScript | apache-2.0 | 42,445 |
package com.chinaweather.android;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.vi... | weiguolong/wglRepository | app/src/main/java/com/chinaweather/android/ChooseAreaFragment.java | Java | apache-2.0 | 10,217 |
package org.niklas.elemental.Elemental.client.elements;
import com.google.gwt.core.client.js.JsProperty;
import com.google.gwt.core.client.js.JsType;
@JsType(
prototype = "DOMTokenList"
)
interface DOMTokenList {
@JsProperty
int getLength();
String item(int index);
boolean contains(String token);
voi... | Nickel671/JsInteropGenerator | target/generated-sources/gwt/org/niklas/elemental/Elemental/client/elements/DOMTokenList.java | Java | apache-2.0 | 423 |
/********************************************************
Copyright 2016 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-... | googlecreativelab/chrome-music-lab | spectrogram/src/javascripts/UI/player.js | JavaScript | apache-2.0 | 5,514 |
/*
* 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... | dadarom/dubbo | dubbo-rpc/dubbo-rpc-api/src/main/java/com/alibaba/dubbo/rpc/filter/GenericImplFilter.java | Java | apache-2.0 | 9,168 |
package rpcd
import (
"github.com/Cloud-Foundations/Dominator/lib/errors"
"github.com/Cloud-Foundations/Dominator/lib/srpc"
"github.com/Cloud-Foundations/Dominator/proto/hypervisor"
)
func (t *srpcType) ChangeAddressPool(conn *srpc.Conn,
request hypervisor.ChangeAddressPoolRequest,
reply *hypervisor.ChangeAddres... | rgooch/Dominator | hypervisor/rpcd/changeAddressPool.go | GO | apache-2.0 | 1,050 |
/**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.wfu.common.utils;
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRe... | 347184068/jybl | src/main/java/com/wfu/common/utils/SystemPath.java | Java | apache-2.0 | 1,970 |
using System;
// ReSharper disable CheckNamespace
namespace DasMulli.Win32.ServiceUtils
{
internal delegate void ServiceControlHandler(ServiceControlCommand control, uint eventType, IntPtr eventData, IntPtr eventContext);
} | tonyredondo/TWCore2 | src/TWCore.Services/DasMulli.Win32.ServiceUtils/ServiceControlHandler.cs | C# | apache-2.0 | 232 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.UI;
using System.Web.UI.Adapters;
using System.Web.UI.WebControls;
namespace FrameworkLibrary.Classes.ControlAdapters
{
public class TreeViewAdapter : ControlAdapter
{
p... | MacdonaldRobinson/FlexDotnetCMS | FrameworkLibrary/Classes/ControlAdapters/TreeViewAdapter.cs | C# | apache-2.0 | 1,555 |
package redis
import (
"encoding/json"
"errors"
"fmt"
"github.com/go-redis/redis"
"github.com/mainflux/mainflux/logger"
"github.com/mainflux/mainflux/lora"
)
const (
keyType = "lora"
keyDevEUI = "dev_eui"
keyAppID = "app_id"
group = "mainflux.lora"
stream = "mainflux.things"
thingPrefix = "thing."
... | Mainflux/mainflux-lite | lora/redis/streams.go | GO | apache-2.0 | 5,245 |
#!/usr/bin/python
"""usage: python stylechecker.py /path/to/the/c/code"""
import os
import sys
import string
import re
WHITE = '\033[97m'
CYAN = '\033[96m'
BLUE = '\033[94m'
GREEN = '\033[92m'
YELLOW = '\033[93m'
RED = '\033[91m'
ENDC = '\033[0m'
def check_file(file):
if re.search('\.[c|h]$', file) == None:
... | izenecloud/nginx | tengine/contrib/stylechecker.py | Python | apache-2.0 | 1,596 |
package com.javaasc.entity.api;
import java.util.List;
public interface JascValues {
List<String> getValues();
}
| alonana/JavaAsc | entity/src/main/java/com/javaasc/entity/api/JascValues.java | Java | apache-2.0 | 119 |
package com.commit451.parcelcheck.sample.brokenModels;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.Date;
/**
* A phone model, which is missing a few parcelable calls
*/
public class Phone implements Parcelable {
private int modelNumber;
private String manufacturer;
private... | Commit451/ParcelCheck | app/src/main/java/com/commit451/parcelcheck/sample/brokenModels/Phone.java | Java | apache-2.0 | 1,342 |
# Copyright (c) 2014 Rackspace, 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... | obulpathi/cdn1 | cdn/transport/validators/stoplight/exceptions.py | Python | apache-2.0 | 1,077 |
import {TaskQueue} from './task-queue.js';
import { Task } from './task.js';
/**
* An object that controls when tasks are executed from a queue or set of
* queues.
*/
export interface QueueScheduler<Q extends TaskQueue<T>, T extends Task<any>> {
schedule(queue: Q): void;
}
| PolymerLabs/async-demos | packages/scheduler/src/lib/queue-scheduler.ts | TypeScript | apache-2.0 | 280 |
// Copyright 2016 The go-github AUTHORS. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// These event types are shared between the Events API and used as Webhook payloads.
package github
// CommitCommentEvent is triggered when a commit... | pulcy/vault-monkey | deps/github.com/hashicorp/vault/vendor/github.com/google/go-github/github/event_types.go | GO | apache-2.0 | 24,483 |
'use strict';
//GetAttribute() returns "boolean" values and will return either "true" or null
describe('Report', function(){
var _ = require('lodash');
var Reports = require('../../app/reports/reports-page');
var Report = require('../../app/report/report-page');
var reports = new Reports();
var re... | 28msec/nolap-report-editor | tests/e2e/basic-scenario.js | JavaScript | apache-2.0 | 4,515 |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | tensorflow/io | tensorflow_io/core/kernels/video_kernels.cc | C++ | apache-2.0 | 5,927 |
/*
* Copyright 2017-present Open Networking Laboratory
*
* 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... | LorenzReinhart/ONOSnew | providers/lisp/mapping/src/main/java/org/onosproject/provider/lisp/mapping/util/MappingAddressBuilder.java | Java | apache-2.0 | 8,703 |
/*
* 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")... | asanka88/apache-synapse | modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/util/RESTUtil.java | Java | apache-2.0 | 16,005 |
// 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 ... | firebase/firebase-android-sdk | firebase-firestore/src/main/java/com/google/firebase/firestore/model/mutation/NumericIncrementTransformOperation.java | Java | apache-2.0 | 4,335 |
/*
* Copyright (C) 2013,2014 Brett Wooldridge
*
* 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 ... | bobwenx/HikariCP | hikaricp-common/src/main/java/com/zaxxer/hikari/pool/BaseHikariPool.java | Java | apache-2.0 | 18,562 |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | googleapis/java-domains | proto-google-cloud-domains-v1beta1/src/main/java/com/google/cloud/domains/v1beta1/RetrieveRegisterParametersRequest.java | Java | apache-2.0 | 27,978 |
package com.sequenceiq.datalake.flow.diagnostics.event;
import static com.sequenceiq.datalake.flow.diagnostics.SdxCmDiagnosticsEvent.SDX_CM_DIAGNOSTICS_COLLECTION_FAILED_EVENT;
import java.util.Map;
import com.sequenceiq.datalake.flow.SdxFailedEvent;
public class SdxCmDiagnosticsFailedEvent extends SdxFailedEvent {... | hortonworks/cloudbreak | datalake/src/main/java/com/sequenceiq/datalake/flow/diagnostics/event/SdxCmDiagnosticsFailedEvent.java | Java | apache-2.0 | 934 |
package com.vint.iblog.web.servlet;
import com.vint.iblog.datastore.define.SequenceManagerDAO;
import com.vint.iblog.datastore.define.StaticDataDAO;
import org.apache.commons.lang3.StringUtils;
import org.vintsie.jcobweb.proxy.ServiceFactory;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServle... | vintsie/iblog | src/main/java/com/vint/iblog/web/servlet/ConfigurationServlet.java | Java | apache-2.0 | 3,565 |
package rest
import (
"bytes"
"encoding/base64"
"fmt"
"io"
"net/url"
"path"
"reflect"
"strconv"
"strings"
"time"
"github.com/datacratic/aws-sdk-go/aws"
)
// RFC822 returns an RFC822 formatted timestamp for AWS protocols
const RFC822 = "Mon, 2 Jan 2006 15:04:05 GMT"
func Build(r *aws.Request) {
if r.Para... | datacratic/aws-sdk-go | internal/protocol/rest/build.go | GO | apache-2.0 | 4,968 |
/**
Copyright 2010 OpenEngSB Division, Vienna University of Technology
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE\-2.0
Unless required by applicabl... | tobster/openengsb | core/workflow/domains/src/main/java/org/openengsb/drools/NotificationDomain.java | Java | apache-2.0 | 784 |
/*
* 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 ... | jcamachor/hive | ql/src/test/org/apache/hadoop/hive/ql/txn/compactor/CompactorTest.java | Java | apache-2.0 | 26,009 |
'use strict';
var app = angular.module('app', [
'ngAnimate',
'ngCookies',
'ui.router',
'ui.bootstrap'
]);
app.config(['$stateProvider', '$httpProvider',
function ($stateProvider, $httpProvider) {
$stateProvider.state('home', {
url: '',
templateUrl: 'App/partials/ho... | trentdm/Foos | src/Foos/App/app.js | JavaScript | apache-2.0 | 4,265 |
/*
* Copyright 2019 VMware, 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | micrometer-metrics/micrometer | micrometer-binders/src/test/java/io/micrometer/binder/jetty/JettyConnectionMetricsTest.java | Java | apache-2.0 | 5,449 |
/*
* Copyright 2016-present Open Networking Laboratory
*
* 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... | lsinfo3/onos | core/store/dist/src/main/java/org/onosproject/store/resource/impl/DiscreteResources.java | Java | apache-2.0 | 1,461 |
<?php
namespace OpenConext\Value\Saml\Metadata;
use OpenConext\Value\Assert\Assertion;
use OpenConext\Value\RegularExpression;
use OpenConext\Value\Serializable;
final class ShibbolethMetadataScope implements Serializable
{
/**
* @var string
*/
private $scope;
/**
* @var bool
*/
... | OpenConext/SamlValueObject | src/OpenConext/Value/Saml/Metadata/ShibbolethMetadataScope.php | PHP | apache-2.0 | 2,613 |
/*jshint camelcase: false */
var common = require('../../lib/common');
var msRestRequest = require('../../lib/common/msRestRequest');
var chai = require('chai');
var should = chai.should();
var util = require('util');
exports.clean = function(provisioningParameters, done) {
var resourceGroupName = provisioningParame... | zhongyi-zhang/meta-azure-service-broker | test/integration/cleaner.js | JavaScript | apache-2.0 | 1,244 |
/*
* Copyright 2014 FIZ Karlsruhe
*
* 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... | escidoc-ng/escidoc-ng | escidocng-backend/src/main/java/de/escidocng/WebInitializer.java | Java | apache-2.0 | 1,132 |
using System;
namespace DotKafka.Prototype.Common.Errors
{
public class UnknownServerException : ApiException
{
public UnknownServerException() { }
public UnknownServerException(string message) : base(message) { }
public UnknownServerException(string message, Exception inner) : base(m... | rudygt/dot-kafka | DotKafka.Prototype/Common/Errors/UnknownServerException.cs | C# | apache-2.0 | 346 |
#!/usr/bin/python
import sys
# try to import from the default place Munki installs it
try:
from munkilib import FoundationPlist, munkicommon
except:
sys.path.append('/usr/local/munki')
from munkilib import FoundationPlist, munkicommon
import os
from datetime import datetime
FILE_LOCATION = "/Users/Shared... | grahamgilbert/munki-dnd | munki-dnd.py | Python | apache-2.0 | 1,572 |
package com.nitorcreations.willow.metrics;
import javax.inject.Named;
@Named("/types")
public class MessageTypesMetric extends TagListMetric {
public MessageTypesMetric() {
super("category");
}
}
| NitorCreations/willow | willow-servers/src/main/java/com/nitorcreations/willow/metrics/MessageTypesMetric.java | Java | apache-2.0 | 206 |
package model
// Pool .
type Pool struct {
Id int64 `json:"id"`
CoinId int64 `json:"coin_id"`
Title string `json:"title"`
Description string `json:"description"`
StartTime int64 `json:"start_time"`
EndTime int64 `json:"end_time"`
Status int64 `json:"status"`
IsBottom int6... | LQJJ/demo | 126-go-common-master/app/job/live/xlottery/internal/model/model.go | GO | apache-2.0 | 2,202 |
/*
* Copyright to 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 applicabl... | khartig/assimilator | rio-resolver/resolver-aether/src/main/java/org/rioproject/resolver/aether/util/ConsoleTransferListener.java | Java | apache-2.0 | 4,898 |
var Canvas = require('canvas');
var Image = Canvas.Image;
// Constants
var canvasWidth = 350;
var canvasHeight = 150;
var cellSize = 30;
var colorMap = {
0: 'rgba(0, 0, 0, 0)',
1: '#F7F6EA',
2: '#E6E6E1',
3: '#EBC000'
};
module.exports = generate;
function generate(title, accuracy) {
var canvas = new Ca... | gw1018/imageservice | images/heatmap.js | JavaScript | apache-2.0 | 1,415 |
package com.cyou.cpush.apns.notification;
import java.util.concurrent.atomic.AtomicInteger;
public class DefaultNotification implements Notification {
private static AtomicInteger IDENTIFIER_GENERATOR = new AtomicInteger(Integer.MAX_VALUE-1);
private int identifier;
private Device device;
private Payload paylo... | beforeeight/cpush-apns | src/main/java/com/cyou/cpush/apns/notification/DefaultNotification.java | Java | apache-2.0 | 1,207 |
package com.craftmend.openaudiomc.spigot.modules.proxy.service;
import com.craftmend.openaudiomc.generic.networking.DefaultNetworkingService;
import com.craftmend.openaudiomc.generic.networking.abstracts.AbstractPacket;
import com.craftmend.openaudiomc.generic.networking.client.objects.player.ClientConnection;
import ... | ApocalypsjeNL/OpenAudioMc | plugin/src/main/java/com/craftmend/openaudiomc/spigot/modules/proxy/service/ProxyNetworkingService.java | Java | apache-2.0 | 3,602 |
package fr.excilys.computerdatabase.service;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframewor... | krmmlsh/Java_Training | service/src/main/java/fr/excilys/computerdatabase/service/UserServices.java | Java | apache-2.0 | 3,492 |
package com.wecan.xhin.studio;
import android.app.Application;
import android.content.Context;
import com.avos.avoscloud.AVOSCloud;
import com.google.gson.FieldNamingPolicy;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.squareup.okhttp.Interceptor;
import com.squareup.okhttp.OkHttpClien... | XhinLiang/Studio | app/src/main/java/com/wecan/xhin/studio/App.java | Java | apache-2.0 | 3,181 |
package com.cantinho.spoonacularexample.retrofit_models;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by samirtf on 14/02/17.
*/
public class Recipe {
@SerializedName("id")
private Integer id;
@SerializedName("image")
private String imag... | Cantinho/spoonaculator-android-example | SpoonacularExample/app/src/main/java/com/cantinho/spoonacularexample/retrofit_models/Recipe.java | Java | apache-2.0 | 923 |
#pragma once
#include <map>
#include "..\..\Defines.hpp"
namespace te
{
class DynamicLibrary;
class TE_EXPORT DynamicLibraryManager
{
protected:
std::map<string, DynamicLibrary*> m_loadedLibraries;
public:
DynamicLibraryManager();
~DynamicLibraryManager();
/*
Loads the library with the specifi... | unpause/TeazelEngine | TeazelEngine/TeazelEngine/core/dynlib/DynamicLibraryManager.hpp | C++ | apache-2.0 | 543 |
/*
* The University of Wales, Cardiff Triana Project Software License (Based
* on the Apache Software License Version 1.1)
*
* Copyright (c) 2007 University of Wales, Cardiff. All rights reserved.
*
* Redistribution and use of the software in source and binary forms, with
* or without modification, are permitted... | CSCSI/Triana | triana-gui/src/main/java/org/trianacode/gui/main/imp/PlusMinusIcon.java | Java | apache-2.0 | 5,724 |
package ru.job4j.profession;
/**
* This class describes student with no parameters and operations.
*
* @author Kucykh Vasily (mailto:basil135@mail.ru)
* @version $Id$
* @since 12.04.2017
*/
public class Student extends Human {
/**
* constructor of Student class.
*
* @param name is name of a s... | Basil135/vkucyh | chapter_002/src/main/java/ru/job4j/profession/Student.java | Java | apache-2.0 | 399 |
package io.datakernel.di.impl;
import java.util.concurrent.atomic.AtomicReferenceArray;
@SuppressWarnings("rawtypes")
public abstract class AbstractUnsyncCompiledBinding<R> implements CompiledBinding<R> {
protected final int scope;
protected final int index;
protected AbstractUnsyncCompiledBinding(int scope, int ... | softindex/datakernel | core-di/src/main/java/io/datakernel/di/impl/AbstractUnsyncCompiledBinding.java | Java | apache-2.0 | 875 |
/*
* 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 ... | DieBauer/flink | flink-connectors/flink-jdbc/src/test/java/org/apache/flink/api/java/io/jdbc/JDBCOutputFormatTest.java | Java | apache-2.0 | 5,607 |
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) 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
*
* Unles... | NuwanSameera/carbon-device-mgt-plugins | components/iot-plugins/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.plugin/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/plugin/impl/AndroidSenseManagerService.java | Java | apache-2.0 | 3,097 |
package com.bestxty.designpattern.decorator;
/**
* @author jiangtaiyang
* Created by jiangtaiyang on 2017/6/29.
*/
public class ConcreteComponent implements Component {
@Override
public void operation() {
System.out.println("real operation.");
}
}
| swjjxyxty/Study | studyjavase/studyjavasedesignpattern/src/main/java/com/bestxty/designpattern/decorator/ConcreteComponent.java | Java | apache-2.0 | 281 |
/*
* Copyright 2003 - 2014 The eFaps Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | eFaps/eFaps-WebApp | src/main/java/org/efaps/ui/wicket/behaviors/dojo/package-info.java | Java | apache-2.0 | 797 |
/*******************************************************************************
* Copyright 2007-2013 See AUTHORS file.
*
* 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:/... | x-meta/xworker | xworker_swt/src/main/java/xworker/swt/xworker/ExtendWidgetCreator.java | Java | apache-2.0 | 3,602 |
package com.psc.vote.vote.domain;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
public class Anchor {
String anchorName;
BigDecimal anchorPrice;
Date creationDate;
String status;
String clientId;
String clientName;
String clientWebsiteAddress;
String clie... | sgudupat/psc-vote-server | src/main/java/com/psc/vote/vote/domain/Anchor.java | Java | apache-2.0 | 2,490 |
package ar.com.larreta.stepper.controllers;
import javax.servlet.ServletContext;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.validation.Errors;
import org.springframework.web.bind.annotation.Request... | llarreta/larretasources | Stepper/src/main/java/ar/com/larreta/stepper/controllers/ParentController.java | Java | apache-2.0 | 3,717 |