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 diskconfig provides information and interaction with the the Disk
// Config extension that works with the OpenStack Compute service.
package diskconfig
| alex/gophercloud | openstack/compute/v2/extensions/diskconfig/doc.go | GO | apache-2.0 | 163 |
package net.wickborn.notebark;
import android.annotation.TargetApi;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceFragment;
import android.preference.PreferenceMa... | fawick/notebark | app/src/main/java/net/wickborn/notebark/SettingsActivity.java | Java | apache-2.0 | 4,227 |
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | dremio/dremio-oss | dac/ui/src/pages/AdminPage/subpages/Provisioning/components/WorkersGrid-spec.js | JavaScript | apache-2.0 | 4,743 |
/*
* Copyright 2008 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | bobmcwhirter/drools | drools-core/src/main/java/org/drools/rule/FactType.java | Java | apache-2.0 | 2,126 |
webpackHotUpdate(0,[
/* 0 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function($) {var React = __webpack_require__(2);
var ReactDOM = __webpack_require__(158);
var bootstrap = __webpack_require__(159);
var pullRight = {
float: "right",
marginRight: "5%"
};
... | JivaGzw/Gaddress | build/0.ce253bb41e20f52ec882.hot-update.js | JavaScript | apache-2.0 | 2,854 |
function updateScreenSize(size) {
return {
type: 'RECEIVE_SIZE',
size
};
}
function setRenderer(renderer) {
return {
type: 'RECEIVE_RENDERER',
renderer
};
}
function setCanvas(canvas) {
return {
type: 'RECEIVE_CANVAS',
canvas
};
}
export defaul... | eventbrite/cartogram | src/actions/core.js | JavaScript | apache-2.0 | 381 |
/*
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | google/shipshape | shipshape/test/test_shipshape_client.go | GO | apache-2.0 | 3,993 |
/*
* 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... | aws/aws-sdk-java | aws-java-sdk-dms/src/main/java/com/amazonaws/services/databasemigrationservice/model/DescribeReplicationTasksResult.java | Java | apache-2.0 | 7,793 |
//
// Program Name - S2_Box.cpp
// Series: GetOnToC++ Step: 2
//
// Purpose: This program demonstrates declaration of Member Variables of Box
// class, creation of Box Object and calculating volume of the Box.
//
// Compile: g++ S2_Box.cpp -o S2_Box
// Execute: ./S2_B... | NarayanMahadevan/MakeTechEz | GetOnToC++/Step_2/S2_Box.cpp | C++ | apache-2.0 | 2,448 |
/*
* Copyright © 2002-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 req... | jakesays/Solenoid-Expressions | SolenoidExpressions/Expression.cs | C# | apache-2.0 | 11,002 |
/*
* Copyright 2018 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 writi... | Esri/arcgis-runtime-samples-android | java/generate-offline-map-with-local-basemap/src/main/java/com/esri/arcgisruntime/sample/generateofflinemapwithlocalbasemap/MainActivity.java | Java | apache-2.0 | 14,060 |
package ua.com.lsd25.controller.handler.register;
import org.apache.log4j.Logger;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.spring... | vzagnitko/BluetoothMusicServer | src/main/java/ua/com/lsd25/controller/handler/register/UserRegisterAlreadyRegisterHandlingController.java | Java | apache-2.0 | 1,032 |
<?php
/**
* Application level Controller
*
* This file is application-wide controller file. You can put all
* application-wide controller-related methods here.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://ca... | vinhle91/elearning | app/Controller/AppController.php | PHP | apache-2.0 | 2,958 |
/*
* Copyright (c) 2010-2014 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.repo.sql;
/**
* @author mederly
*/
public class SerializationRelatedException extends RuntimeExc... | bshp/midPoint | repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/SerializationRelatedException.java | Java | apache-2.0 | 504 |
// [[[[INFO>
// Copyright 2015 Raging Bool (http://ragingbool.org, https://github.com/RagingBool)
//
// 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/licens... | RagingBool/RagingBool.Carcosa | projects/RagingBool.Carcosa.Core_cs/StartMessage.cs | C# | apache-2.0 | 916 |
package com.jobhive.sakimonkey.data.response;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jobhive.sakimonkey.Defaults;
/**
*
* @author Hussachai
*
*/
public class WhitelistEntry {
/**
* the email that is whitelisted
*/
private Str... | JobHive/saki-monkey | src/main/java/com/jobhive/sakimonkey/data/response/WhitelistEntry.java | Java | apache-2.0 | 868 |
/*
* Copyright 1999-2018 Alibaba Group Holding 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 applica... | alibaba/nacos | api/src/main/java/com/alibaba/nacos/api/naming/pojo/ListView.java | Java | apache-2.0 | 1,223 |
sap.ui.define(['sap/ui/webc/common/thirdparty/base/config/Theme', './v5/attachment-video', './v4/attachment-video'], function (Theme, attachmentVideo$2, attachmentVideo$1) { 'use strict';
const pathData = Theme.isThemeFamily("sap_horizon") ? attachmentVideo$1 : attachmentVideo$2;
var attachmentVideo = { pathData };
... | SAP/openui5 | src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/attachment-video.js | JavaScript | apache-2.0 | 351 |
#!/usr/bin/python
#
# Copyright 2010 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 a... | donspaulding/adspygoogle | scripts/adspygoogle/adxbuyer/setup.py | Python | apache-2.0 | 1,720 |
package com.github.danielwegener.logback.kafka.encoding;
import ch.qos.logback.core.Layout;
import java.nio.charset.Charset;
/**
* A KafkaMessageEncoder that can be configured with a {@link Layout} and a {@link Charset} and creates
* a serialized string for each event using the given layout.
* @since 0.1.0
*/
pu... | aerskine/logback-kafka-appender | src/main/java/com/github/danielwegener/logback/kafka/encoding/LayoutKafkaMessageEncoder.java | Java | apache-2.0 | 1,414 |
package bookshop2.supplier.data.supplierOrderCache;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import bookshop2.Book;
import bookshop2.BookCriteria;
import bookshop2.BookKey;
public interface SupplierOrderCache {
public List<Book> getAllBooksInStock();
public Map<BookKey, Book> ... | tfisher1226/ARIES | bookshop2/bookshop2-supplier/bookshop2-supplier-service/src/main/java/bookshop2/supplier/data/supplierOrderCache/SupplierOrderCache.java | Java | apache-2.0 | 1,392 |
namespace ts {
describe("convertCompilerOptionsFromJson", () => {
const formatDiagnosticHost: FormatDiagnosticsHost = {
getCurrentDirectory: () => "/apath/",
getCanonicalFileName: createGetCanonicalFileName(/*useCaseSensitiveFileNames*/ true),
getNewLine: () => "\n"
... | basarat/TypeScript | src/testRunner/unittests/convertCompilerOptionsFromJson.ts | TypeScript | apache-2.0 | 27,605 |
window.MathJax = {
skipStartupTypeset: true,
messageStyle: 'none',
'HTML-CSS': {
imageFont: null,
linebreaks: {
automatic: true,
width: '500px'
},
scale: 91,
showMathMenu: false
}
};
| souravbadami/oppia | core/templates/dev/head/mathjaxConfig.ts | TypeScript | apache-2.0 | 223 |
import os
import tempfile
import unittest
import logging
from pyidf import ValidationLevel
import pyidf
from pyidf.idf import IDF
from pyidf.node import PipeUnderground
log = logging.getLogger(__name__)
class TestPipeUnderground(unittest.TestCase):
def setUp(self):
self.fd, self.path = tempfile.mkstemp()... | rbuffat/pyidf | tests/test_pipeunderground.py | Python | apache-2.0 | 3,135 |
package cn.hugeterry.updatefun.view;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import cn.hugeterry.updatefun.config.DownloadKey;
import c... | hugeterry/UpdateDemo | updatefun/src/main/java/cn/hugeterry/updatefun/view/DownLoadDialog.java | Java | apache-2.0 | 1,492 |
// Copyright 2017 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 i... | googlecreativelab/access-mars | src/js/components/controller-ray.js | JavaScript | apache-2.0 | 2,310 |
/*
* 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 ... | b-slim/calcite | druid/src/main/java/org/apache/calcite/adapter/druid/DruidSqlCastConverter.java | Java | apache-2.0 | 5,454 |
package com.crossge.necessities.Commands;
import com.crossge.necessities.Console;
import com.crossge.necessities.Necessities;
import com.crossge.necessities.RankManager.User;
import com.crossge.necessities.RankManager.UserManager;
import com.crossge.necessities.Variables;
import org.bukkit.Bukkit;
import org.bukkit.Ch... | pupnewfster/Lavasurvival | necessities/src/main/java/com/crossge/necessities/Commands/CmdReply.java | Java | apache-2.0 | 4,844 |
/*
* Copyright (C) 2011 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 law
* or ag... | i25ffz/spollo | src/com/spollo/player/cache/LruCache.java | Java | apache-2.0 | 10,949 |
/*
* Copyright 2015 The UIMaster Project
*
* The UIMaster Project 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/licenses/LICENSE-2.0
*
* Unless req... | shaolinwu/uimaster | modules/uipage/src/main/java/org/shaolin/uimaster/page/ajax/RadioButtonGroup.java | Java | apache-2.0 | 6,859 |
/**
*/
package org.mobadsl.semantic.model.moba.provider;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.II... | florianpirchner/mobadsl | org.mobadsl.semantic.model.edit/src/org/mobadsl/semantic/model/moba/provider/MobaTransportSerializationTypeItemProvider.java | Java | apache-2.0 | 4,084 |
/*
* Copyright 2016-2020 chronicle.software
*
* https://chronicle.software
*
* 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... | OpenHFT/Chronicle-Bytes | src/main/java/net/openhft/chronicle/bytes/RandomDataOutput.java | Java | apache-2.0 | 15,803 |
import { helper } from '@ember/component/helper';
export function runTime(params) {
var s = moment(params[0]);
var e = moment(params[1]);
var time = Math.round(e.diff(s)/100)/10;
if ( time )
{
if ( time > 60 )
{
time = Math.round(time);
}
return `${time} sec`;
}
else
{
retur... | pengjiang80/ui | lib/shared/addon/helpers/run-time.js | JavaScript | apache-2.0 | 409 |
#!/usr/bin/env python
import wx
import logging
import webbrowser
import ConfigParser
import argparse
import wx.lib.delayedresult as dr
import wx.lib.agw.hyperlink as hl
from os import path, makedirs
from distutils.version import LooseVersion
from github3 import GitHub
from GUI import UploaderAppFrame, SettingsDialog
... | phac-nml/irida-miseq-uploader | run_IRIDA_Uploader.py | Python | apache-2.0 | 5,119 |
package sivan.yue.nlp.common.dataAlgo.matrix;
/**
* Created by xiwen.yxw on 2017/3/24.
*/
public abstract class BaseTMatrix implements ITMatrix{
protected int xNum;
protected int yNum;
protected int zNum;
public BaseTMatrix(int xNum, int yNum, int zNum) {
this.xNum = xNum;
this.yN... | FreeSivan/Rorschach | src/main/java/sivan/yue/nlp/common/dataAlgo/matrix/BaseTMatrix.java | Java | apache-2.0 | 1,019 |
package net.sundell.otter;
import java.io.IOException;
import java.io.PushbackReader;
import java.io.Reader;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.xml.namespace.QName;
import javax.xml.stream.Location;
import javax.xml.stream.events.Attribute;
import javax.xml.stream.e... | tingley/otter | src/main/java/net/sundell/otter/Util.java | Java | apache-2.0 | 4,256 |
<?php
namespace formalizer;
error_reporting(E_ALL);
/**
* @todo RadioList/Select, any element with a given set of values, automatically
* add an EnumRule to it
* @todo PhoneRule - check for phone number
* @todo CaptchaRule - check captcha submission
* @todo PasswordRule - needs capital, symbol, number
... | twentylemon/formalizer | formalizer.php | PHP | apache-2.0 | 3,197 |
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... | googleads/googleads-java-lib | modules/dfp_axis/src/main/java/com/google/api/ads/admanager/axis/v202111/LineItemTemplateServiceSoapBindingStub.java | Java | apache-2.0 | 70,200 |
########
# Copyright (c) 2015 GigaSpaces Technologies Ltd. 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... | cloudify-cosmo/cloudify-dsl-parser | dsl_parser/elements/blueprint.py | Python | apache-2.0 | 4,469 |
// Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au)
// Copyright 2008-2016 National ICT Australia (NICTA)
//
// 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... | kumanna/armadillo-debian | include/armadillo_bits/fn_qr.hpp | C++ | apache-2.0 | 3,371 |
//
// ========================================================================
// Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | sdw2330976/Research-jetty-9.2.5 | jetty-monitor/src/main/java/org/eclipse/jetty/monitor/JMXMonitor.java | Java | apache-2.0 | 5,187 |
package org.aieonf.commons.parser;
import java.util.EventObject;
public class ParseEvent<T extends Object> extends EventObject
{
private static final long serialVersionUID = 2113739661852090208L;
private T data;
public ParseEvent( Object source, T data )
{
super( source );
}
public T getDat... | condast/AieonF | Workspace/org.aieonf.commons/src/org/aieonf/commons/parser/ParseEvent.java | Java | apache-2.0 | 358 |
package com.cs446.kluster.views.fragments;
import java.util.Calendar;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.app.TimePickerDialog;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.text.for... | nmcgill/kluster-android | Kluster/src/com/cs446/kluster/views/fragments/FilterDialogFragment.java | Java | apache-2.0 | 4,543 |
package org.ovirt.engine.core.utils;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util... | OpenUniversity/ovirt-engine | backend/manager/modules/utils/src/test/java/org/ovirt/engine/core/utils/ReplacementUtilsTest.java | Java | apache-2.0 | 6,849 |
/*
* Copyright 2014 Miles Chaston
*
* 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 t... | mchaston/OakFunds | src/org/chaston/oakfunds/model/ui/ModelListServlet.java | Java | apache-2.0 | 2,132 |
from setuptools import setup
setup(name='flightPredict',
version='0.3',
description='Python Library for SPark MLLIB Flight Predict sample application',
url='git+https://github.com/ibm-watson-data-lab/simple-data-pipe-connector-flightstats.git',
author='David Taieb',
author_email='david_ta... | ibm-cds-labs/simple-data-pipe-connector-flightstats | setup.py | Python | apache-2.0 | 420 |
/**
* ASM: a very small and fast Java bytecode manipulation framework
* Copyright (c) 2000-2011 INRIA, France Telecom
* All rights reserved.
* <p/>
* Redistribution and use in srccode and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistrib... | actframework/act-asm | src/main/java/act/asm/Frame.java | Java | apache-2.0 | 50,500 |
package origin
import (
"crypto/tls"
"crypto/x509"
"errors"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"path"
"github.com/RangelReale/osin"
"github.com/RangelReale/osincli"
"github.com/golang/glog"
"github.com/pborman/uuid"
kapi "k8s.io/kubernetes/pkg/api"
kerrs "k8s.io/kubernetes/pkg/api/errors"
"k8s.io/... | tdawson/origin | pkg/cmd/server/origin/auth.go | GO | apache-2.0 | 30,809 |
/*
* 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
* distribut... | ebyhr/presto | plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergSplitManager.java | Java | apache-2.0 | 3,938 |
package controllers;
import play.*;
import play.mvc.*;
import java.util.*;
import controllers.shib.Check;
import controllers.shib.Security;
import controllers.shib.Shibboleth;
/**
*
* Example restricted controller. Every action defined in this class
* requires authentication before it can be accessed.
*
* @a... | play1-maven-plugin/play1-maven-test-projects | external-modules/shibboleth/app/controllers/Administrative.java | Java | apache-2.0 | 530 |
package com.sankoudai.java.apix.xstream;
import com.sankoudai.java.apix.xstream.entity.Address;
import com.sankoudai.java.apix.xstream.entity.AnnotatedAddress;
import com.sankoudai.java.apix.xstream.entity.AnnotatedStudent;
import com.sankoudai.java.apix.xstream.entity.Student;
import com.thoughtworks.xstream.XStream;... | sankoudai/java-knowledge-center | java-knowledge-apix/src/main/java/com/sankoudai/java/apix/xstream/TestXstream.java | Java | apache-2.0 | 6,215 |
# Copyright (c) 2013 Altiscale, 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 writi... | Altiscale/perf-framework | lib/decorators.rb | Ruby | apache-2.0 | 3,787 |
package pib.rest;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.met... | mdrobek/PiBell | PiBell-GUI/src/main/java/pib/rest/Rest.java | Java | apache-2.0 | 8,564 |
import { Directive, forwardRef } from '@angular/core';
import { NG_VALIDATORS, Validator, AbstractControl } from '@angular/forms';
import { base64 } from './validator';
const BASE64_VALIDATOR: any = {
provide: NG_VALIDATORS,
useExisting: forwardRef(() => Base64Validator),
multi: true
};
@Directive({
selector... | 1ziton/ng-starter | src/app/shared/validator/base64/directive.ts | TypeScript | apache-2.0 | 561 |
package com.hdu.coolweather.model;
/**
* Created by hdu on 15/4/10.
*/
public class Province {
private int id;
private String provinceName;
private String provinceCode;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getPro... | duhongjin8/CoolWeather | app/src/main/java/com/hdu/coolweather/model/Province.java | Java | apache-2.0 | 651 |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: policy/v1beta1/type.proto
// Describes the rules used to configure Mixer's policy and telemetry features.
package v1beta1
import (
bytes "bytes"
fmt "fmt"
github_com_gogo_protobuf_jsonpb "github.com/gogo/protobuf/jsonpb"
proto "github.com/gogo/protobu... | geeknoid/api | policy/v1beta1/type_json.gen.go | GO | apache-2.0 | 3,458 |
package orchastack.core.event.adapter.hornetq.adapter;
import orchastack.core.event.adapter.hornetq.msg.HornetqMessageUnmarshaller;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.espertech.esper.adapter.AdapterSPI;
import com.espertech.esper.adapter.AdapterSta... | mathews/orchastack-core | orchastack.core.event/orchastack.core.event.adapter.kafka/src/main/java/orchastack/core/event/adapter/hornetq/adapter/HornetqInputAdapter.java | Java | apache-2.0 | 3,925 |
/**
* 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... | vergilchiu/hive | ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/CastStringToDecimal.java | Java | apache-2.0 | 5,154 |
<?php
class themesModel extends db {
function __construct() {
parent::__construct();
}
public function getThemeInformation($data) {
return $this->query($this->selectQuery($data));
}
public function addThemeInformation($data) {
return $this->query($this->insertQuery($data))... | brianpilati/brickslopes | app/php/models/themesModel.php | PHP | apache-2.0 | 1,542 |
/*
* Knetik Platform API Documentation latest
* This is the spec for the Knetik API. Use this in conjunction with the documentation found at https://knetikcloud.com.
*
* OpenAPI spec version: latest
* Contact: support@knetik.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* ... | knetikmedia/knetikcloud-java-client | src/main/java/com/knetikcloud/model/UserItemLogResource.java | Java | apache-2.0 | 5,608 |
// Copyright (c) 2015
// Author: Chrono Law
#include <std.hpp>
//using namespace std;
using std::cout;
using std::endl;
//#define BOOST_THREAD_VERSION 4
#include <boost/thread.hpp>
using namespace boost;
//////////////////////////////////////////
#include <boost/chrono.hpp>
using namespace boost::chrono;
seconds ope... | chronolaw/boost_guide | concurrency/thread1.cpp | C++ | apache-2.0 | 4,025 |
/** \file pos_table.cpp
* Implementation of class POSTable.
*
* \author Jun Jiang
* \version 0.1
* \date Sep 11, 2009
*/
#include "pos_table.h"
#include "jma_dictionary.h"
#include "ijma/knowledge.h" // Knowledge::encodeStr()
#include "iconv_utils.h" // MeCab::Iconv
#include <cassert>
#include <fstream>
#inclu... | izenecloud/ijma | source/src/pos_table.cpp | C++ | apache-2.0 | 7,723 |
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("XAML Magic")]
[assembly: AssemblyDescript... | grochocki/XamlMagic | Service/Properties/AssemblyInfo.cs | C# | apache-2.0 | 1,599 |
namespace MC.MCRF.NLP.DocumentAbstraction
{
partial class AorticAneurysmAssessment
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </sum... | lrasmus/DocumentAbstraction | AorticAneurysm/AorticAneurysmAssessment.Designer.cs | C# | apache-2.0 | 12,098 |
/*
+-----------------------------------------------------------------------------+
@grahamzibar presents:
_______ _______ _______ _______ _______ _______
( )( ___ )( ____ )( ____ )|\ /|( ____ \|\ /|( ____ \
| () () || ( ) || ( )|| ( )|| ) ( || ( \/| ) ... | grahamzibar/AirChat | src/js/ext/morpheus/Morpheus.js | JavaScript | apache-2.0 | 11,243 |
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Web;
using System.Web.Caching;
namespace Smart.Core.Caching
{
/// <summary>
/// 基于当前应用程序的 System.Web.Caching.Cache 的缓存服务
/// </summary>
public class HttpCache : DisposableObject, ICache
{
private static r... | SmallAnts/Smart | Src/Framework/Smart.Core.Shared/Caching/HttpCache.cs | C# | apache-2.0 | 2,071 |
/*
* 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 ... | PurelyApplied/geode | geode-core/src/integrationTest/java/org/apache/geode/cache/client/internal/pooling/ConnectionManagerJUnitTest.java | Java | apache-2.0 | 32,100 |
package org.hl7.fhir.instance.model;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above co... | Nodstuff/hapi-fhir | hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Communication.java | Java | apache-2.0 | 44,529 |
module Dsc
class Resource
attr_accessor :resource_cim_class
def initialize(mof_class, mof_path)
@resource_mof_path = mof_path
@resource_cim_class = mof_class
@name = nil
@friendlyname = nil
@properties = nil
@array_properties = nil
... | cyberious/puppetlabs-dsc | build/dsc/resource.rb | Ruby | apache-2.0 | 3,270 |
/**
* P6Spy
*
* Copyright (C) 2002 P6Spy
*
* 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... | p6spy/p6spy | src/main/java/com/p6spy/engine/logging/P6LogFactory.java | Java | apache-2.0 | 1,609 |
<?php
class Migration_Create_buildings extends CI_Migration {
public function up()
{
$this->dbforge->add_field(array(
'id' => array(
'type' => 'INT',
'constraint' => 11,
'unsigned' => TRUE,
'auto_increment' => TRUE
),
'name' => array(
'type' => 'VARCHA... | jossenino/Roinn | application/migrations/008_Create_buildings.php | PHP | apache-2.0 | 958 |
/*
* 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
* distribut... | albertocsm/presto | presto-main/src/test/java/com/facebook/presto/sql/analyzer/TestAnalyzer.java | Java | apache-2.0 | 51,064 |
package com.jpattern.core.util;
/**
*
* @author Francesco Cina' 09/nov/2010 - 08.51.03
*
*/
public abstract class ValueUtilExt extends com.jpattern.shared.util.ValueUtil {
@SuppressWarnings("unchecked")
public static <E> E castObjectNotNull(Class<E> aClass, Object objectToCast, E defaultValue) {
if (objectT... | ufoscout/jpattern | core/src/main/java/com/jpattern/core/util/ValueUtilExt.java | Java | apache-2.0 | 435 |
define([
'./core',
'./var/indexOf',
'./traversing/var/rneedsContext',
'./core/init',
'./traversing/findFilter',
'./selector'
], function(jQuery, indexOf, rneedsContext) {
var rparentsprev = /^(?:parents|prev(?:Until|All))/,
// Methods guaranteed to produce a unique set when starting... | amido/Amido.VersionDashboard | src/Amido.VersionDashboard.Web/bower_components/jquery/src/traversing.js | JavaScript | apache-2.0 | 6,056 |
package com.waiso.social.framework.io;
import java.io.Serializable;
public class ProgressFileGeneration implements Serializable {
private static final long serialVersionUID = 577962636625103658L;
private String currentFileGeneration = "";
private int currentPercent = 0;
private int totalFiles = 0;
private int p... | g6tech/waiso-social | waiso-social-framework/src/main/java/com/waiso/social/framework/io/ProgressFileGeneration.java | Java | apache-2.0 | 1,519 |
/*
* Copyright 2006 The National Library of New Zealand
*
* 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... | DIA-NZ/webcurator | wct-core/src/main/java/org/webcurator/ui/profiles/renderers/TextFieldRenderer.java | Java | apache-2.0 | 1,481 |
package com.roche.heatseq.process;
import java.io.File;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;... | NimbleGen/bioinformatics | nimblegen_heatseq/src/test/java/com/roche/heatseq/process/H2ReadToProbeFileStore.java | Java | apache-2.0 | 8,044 |
/*******************************************************************************
* Copyright 2017 osswangxining@163.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://... | osswangxining/iotplatform | iot-infomgt/iot-infomgt-dao/src/main/java/org/iotp/infomgt/dao/component/BaseComponentDescriptorService.java | Java | apache-2.0 | 6,382 |
/*
* 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... | aws/aws-sdk-java | aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/transform/H264QvbrSettingsMarshaller.java | Java | apache-2.0 | 2,717 |
package tool.weather;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import net.sf.json.JSONObject;
import sign.Encode;
import util.WeixinUtil;
public class WeatherForcast {
private static String BASE_URL = "http://api.map.baidu.com/telematics/v3/weather";
private static String AK = "XZ... | Chaos777/WeixinT | src/tool/weather/WeatherForcast.java | Java | apache-2.0 | 3,330 |
import {ExecutionOutputGetResponse, ExecutionStatusGetResponse, JobWorkflowGetResponse, ExecutionOutput, ExecutionOutputEntry} from '@rundeck/client/dist/lib/models'
import {Rundeck} from '@rundeck/client'
import {RenderedStepList, JobWorkflow} from './JobWorkflow'
type Omit<T, K extends keyof T> = Pick<T, Exclude<ke... | rundeck/rundeck | rundeckapp/grails-spa/packages/ui-trellis/src/utilities/ExecutionLogConsumer.ts | TypeScript | apache-2.0 | 4,199 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace SendInBlue
{
public enum ResponseTypes
{
[EnumMember(Value = "success")]
Success,
[EnumMember(Value = "failure")]
F... | lademone/sendinblue.net | src/SendInBlue/Core/ResponseTypes.cs | C# | apache-2.0 | 391 |
package com.hss01248.dialog.bottomsheet;
import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.hss01248.dialog.R;
import com.hss01248.dialog.adapter.SuperLvHolder;
/**
* Created by Administrator on 2016/10/19.
*/
public class BsGvHold... | weiwenqiang/GitHub | Dialog/DialogUtil-master/dialog/src/main/java/com/hss01248/dialog/bottomsheet/BsGvHolder.java | Java | apache-2.0 | 1,224 |
'use strict';
angular.module('sproutStudyApp')
.controller('settingsController', function ($scope, $location, $routeParams, settingsService) {
$scope.settings = null;
$scope.user = null;
settingsService.getUser(null, function(data) {
$scope.user = data;
});
});
| stephenlorenz/sproutstudy | sproutStudy_web/src/main/webapp/scripts/controllers/settingsController.js | JavaScript | apache-2.0 | 294 |
/*
* Copyright 2017 ThoughtWorks, 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... | stevem999/gocd | test-utils/src/main/java/com/thoughtworks/go/utils/SvnRepoFixture.java | Java | apache-2.0 | 4,961 |
package org.grobid.core.engines.config;
/**
* Exception for invalid configs
*/
public class InvalidGrobidAnalysisConfig extends RuntimeException {
public InvalidGrobidAnalysisConfig(String message) {
super(message);
}
}
| kermitt2/grobid | grobid-core/src/main/java/org/grobid/core/engines/config/InvalidGrobidAnalysisConfig.java | Java | apache-2.0 | 239 |
/*
* 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 ... | gustavoanatoly/hbase | hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/SpaceQuotaRefresherChore.java | Java | apache-2.0 | 9,262 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Security.Cryptography.X509Certificates;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.Ext... | aspnet/AspNetCore | src/Servers/IIS/IISIntegration/src/ForwardedTlsConnectionFeature.cs | C# | apache-2.0 | 1,776 |
# frozen_string_literal: true
# WARNING ABOUT GENERATED CODE
#
# This file is generated. See the contributing guide for more information:
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
#
# WARNING ABOUT GENERATED CODE
require_relative '../../aws-sdk-core/spec/shared_spec_helper'
$:.unshift(File... | aws/aws-sdk-ruby | gems/aws-sdk-lexmodelsv2/spec/spec_helper.rb | Ruby | apache-2.0 | 561 |
using System.IO;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
namespace hutel
{
public static class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(st... | demyanenko/hutel | server/Program.cs | C# | apache-2.0 | 601 |
class ActionError(RuntimeError):
"""
Raise when something went wrong when doing an action.
"""
class NoValidSCVError(ActionError):
"""
Raise when no valid scv can be selected according to defined rules.
"""
class NoValidBuildingLocationError(ActionError):
"""
Raise when no valid loca... | Xaxetrov/OSCAR | oscar/meta_action/meta_action_error.py | Python | apache-2.0 | 667 |
var mustInputDM = 'Hãy nhập "tên danh mục" !';
var mustNumber = '"Thứ tự sấp xếp" phải là số !';
var mustInput_Name = 'Hãy nhập "họ tên" !';
var mustInput_Company = 'Hãy nhập "tên công ty" !';
var mustInput_Address = 'Hãy nhập "địa chỉ" !';
var mustInput_city = 'Hãy nhập "tỉnh / thành phố" !';
v... | vikigroup/cbuilk | lib/varAlert.vn.unicode.js | JavaScript | apache-2.0 | 819 |
class Hash
def stringify
inject({}) do |options, (key, value)|
options[key.to_s] = value
options
end.sort.flatten.join("-")
end
end | wesabe/pfc | vendor/plugins/wesabe_extensions/lib/collections/stringify_hash.rb | Ruby | apache-2.0 | 155 |
// =================================================================================================
// This file is part of the CLBlast project. The project is licensed under Apache Version 2.0. This
// project loosely follows the Google C++ styleguide and uses a tab-size of two spaces and a max-
// width of 100 char... | dividiti/CLBlast | test/routines/level1/xdotu.hpp | C++ | apache-2.0 | 6,657 |
/*
AngelCode Tool Box Library
Copyright (c) 2004-2014 Andreas Jonsson
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any
damages arising from the use of this software.
Permission is granted to anyone to use this softwar... | cmbasnett/mandala | tools/bmfont/source/acwin_static.cpp | C++ | apache-2.0 | 2,422 |
using System;
using System.Collections.Generic;
using System.Windows.Documents;
namespace BrailleTranslator.Desktop.Model
{
public class RunComponent : InlineComponent
{
public RunComponent()
{
}
public RunComponent(string title) : base(title)
{
}
publ... | ethno2405/BrailleTranslator | src/BrailleTranslator.Desktop/Model/RunComponent.cs | C# | apache-2.0 | 1,224 |
//
// browser.js - client-side engine
//
var isFileProtocol = /^(file|chrome(-extension)?|resource|qrc|app):/.test(location.protocol);
less.env = less.env || (location.hostname == '127.0.0.1' ||
location.hostname == '0.0.0.0' ||
location.hostname == 'localhost' ||
... | wcea/less.js | lib/less/browser.js | JavaScript | apache-2.0 | 17,695 |
/*
Copyright 2012 - 2014 Jerome Leleu
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... | leleuj/pac4j | pac4j-openid/src/main/java/org/pac4j/openid/profile/yahoo/YahooOpenIdAttributesDefinition.java | Java | apache-2.0 | 1,480 |
/*
* Specialized Sub class to handle implementation of LRU using Linked list and
* HashMap
*/
package cache;
import java.util.LinkedList;
/**
*
* @author gk
*/
public class LRUCache<Key,Value> extends Cache<Key,Value> {
LinkedList<Key> list;
public LRUCache(int capacity){
super(capacit... | ganesh-karthick/Cache | src/cache/LRUCache.java | Java | apache-2.0 | 1,428 |
using Elders.Cronus.Projections;
using Machine.Specifications;
namespace Elders.Cronus.Tests.Projections
{
[Subject("Projections")]
public class When_comparing_lt_projection_version_with_different_hashes
{
Establish context = () =>
{
lower = new ProjectionVersion("compare_lt", ... | Elders/Cronus | src/Elders.Cronus.Tests/Projections/When_comparing_lt_projection_version_with_different_hashes.cs | C# | apache-2.0 | 718 |