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 |
|---|---|---|---|---|---|
<?php
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Util;
use PHPUnit\Framework\TestCase;
class JsonTest extends TestCase
{... | Thatdamnqa/mancmetfeed2 | vendor/phpunit/phpunit/tests/Util/JsonTest.php | PHP | unlicense | 2,567 |
/*
* Copyright 2003-2005 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.tools.javac.code;
public enum BoundKind {
EXTENDS("? extends "),
SUPER("? super "),
UNBO... | dk00/old-stuff | csie/08design-patterns/src/com/sun/tools/javac/code/BoundKind.java | Java | unlicense | 473 |
package clrs
import (
"reflect"
"testing"
)
func TestBucketSort(t *testing.T) {
cases := []struct {
a []float64
want []float64
}{
{
[]float64{0.78, 0.17, 0.39, 0.26, 0.72, 0.94, 0.21, 0.12, 0.23, 0.68},
[]float64{0.12, 0.17, 0.21, 0.23, 0.26, 0.39, 0.68, 0.72, 0.78, 0.94},
},
{
[]float64{0.7... | en/clrs | bucket_sort_test.go | GO | unlicense | 863 |
// Demo for the template server
package main
import (
"database/sql"
"flag"
"fmt"
"html/template"
"log"
"net/http"
"os"
tmpl "../../go-net-http-tmpl"
_ "github.com/mattn/go-sqlite3"
)
var (
port = flag.String("http", ":6060", "Port to serve http on.")
templates = flag.String("templates", "./*.html",... | lvdlvd/go-net-http-tmpl | demo/main.go | GO | unlicense | 1,273 |
var path = require('path')
var fs = require('fs')
var crypto = require('crypto')
var dirmatch = require('dirmatch')
var _ = require('underscore')
var handlebars = require('handlebars')
var Filter = require('broccoli-glob-filter')
var makePartialName = function(partialPath) {
var name = partialPath
var ext = path.ex... | sunflowerdeath/broccoli-render-handlebars | index.js | JavaScript | unlicense | 2,724 |
package com.jeremybroutin.blogreader2;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.webkit.WebView;
import com.jeremybroutin.blogreader2.R;
public class BlogWebViewActivity extends ... | jeremybroutin/BlogReader | app/src/main/java/com/jeremybroutin/blogreader2/BlogWebViewActivity.java | Java | unlicense | 1,534 |
"""Values export object module."""
class Values(object):
"""Class for Values export object."""
name = None
document = None
def save(self, section, document, graphics=True):
"""Get intro."""
self.document = document
section = self.name
return document
def save_wit... | executive-consultants-of-los-angeles/rsum | rsum/export/sections/values.py | Python | unlicense | 498 |
var express = require('express'),
app = express();
app.use('/', express.static(__dirname + '/static'));
app.listen(process.env.PORT || 8080);
| Hardmath123/quackoverflow | index.js | JavaScript | unlicense | 147 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Linq;
using System.Text;
using ToolGood.ReadyGo3.Gadget.Events;
using ToolGood.ReadyGo3.Gadget.Internals;
using ToolGood.ReadyGo3.Internals;
using ToolGood.ReadyGo3.PetaPoco;
u... | toolgood/ToolGood.ReadyGo | ToolGood.ReadyGo3/SqlHelper.cs | C# | apache-2.0 | 41,728 |
package org.ctnitchie.doclet.freemarker;
import java.io.IOException;
import java.util.Map;
import freemarker.core.Environment;
import freemarker.template.TemplateDirectiveBody;
import freemarker.template.TemplateDirectiveModel;
import freemarker.template.TemplateException;
import freemarker.template.TemplateModel;
@... | ctnitchie/freemarkerdoclet | src/main/java/org/ctnitchie/doclet/freemarker/EchoDirective.java | Java | apache-2.0 | 646 |
// Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the sour... | o3project/openflowj-otn | src/main/java/org/projectfloodlight/openflow/protocol/OFBsnDebugCounterDescStatsReply.java | Java | apache-2.0 | 2,321 |
package com.gdn.venice.server.app.fraud.presenter.commands;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.djarum.raf.utilities.Locator;
import com.gdn.venice.client.app.DataNameTokens;
import com.gdn.venice.facade.FrdParameterR... | yauritux/venice-legacy | Venice/Venice-Web/src/main/java/com/gdn/venice/server/app/fraud/presenter/commands/UpdateFraudParameterRule31DataCommand.java | Java | apache-2.0 | 2,763 |
/**
* Copyright (c) 2015 Intel 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 law or ... | trustedanalytics/hdfs-broker | src/test/java/org/trustedanalytics/servicebroker/hdfs/integration/config/HdfsLocalConfiguration.java | Java | apache-2.0 | 2,976 |
package org.mcupdater.carnivora.render;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.util.ResourceLocation;
import org.mcupdater.carnivora.Version;
public class ModelSmoker extends ModelBase {
public static Mod... | allaryin/Carnivora | src/main/java/org/mcupdater/carnivora/render/ModelSmoker.java | Java | apache-2.0 | 6,215 |
package nl.nn.adapterframework.pipes;
import org.junit.Test;
import nl.nn.adapterframework.core.PipeLineSession;
import nl.nn.adapterframework.core.PipeRunResult;
import nl.nn.adapterframework.extensions.esb.EsbSoapWrapperPipe;
import nl.nn.adapterframework.parameters.Parameter;
import nl.nn.adapterframework.stream.M... | ibissource/iaf | test-integration/src/test/java/nl/nn/adapterframework/pipes/EsbSoapWrapperPipeTest.java | Java | apache-2.0 | 9,165 |
import StringIO
from novaclient.v1_1 import servers
from tests import utils
from tests.v1_1 import fakes
cs = fakes.FakeClient()
class ServersTest(utils.TestCase):
def test_list_servers(self):
sl = cs.servers.list()
cs.assert_called('GET', '/servers/detail')
[self.assertTrue(isinstance... | rcbops/python-novaclient-buildpackage | tests/v1_1/test_servers.py | Python | apache-2.0 | 9,616 |
class CartsController < ApplicationController
before_action :set_cart, only: [:edit, :update]
# GET /carts
# GET /carts.json
def index
@carts = Cart.all
end
# GET /carts/1
# GET /carts/1.json
def show
begin
@cart = Cart.find(params[:id])
rescue ActiveRecord::RecordNotFound
logg... | LewisTao/depot | app/controllers/carts_controller.rb | Ruby | apache-2.0 | 2,122 |
//===--- FunctionOrder.cpp - Utility for function ordering ----------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | ben-ng/swift | lib/SILOptimizer/Analysis/FunctionOrder.cpp | C++ | apache-2.0 | 2,705 |
package io.github.eternalpro.model;
import com.jfinal.ext.plugin.tablebind.TableBind;
import com.jfinal.plugin.activerecord.Model;
import io.github.gefangshuai.wfinal.model.core.WModel;
import java.util.List;
/**
* Created by gefangshuai on 2015-05-18-0018.
*/
@TableBind(tableName = "sec_user", pkName = "id")
publ... | gefangshuai/baseFinal-noshiro | src/main/java/io/github/eternalpro/model/User.java | Java | apache-2.0 | 631 |
package org.interfacedesign.auth.domain.model;
import org.interfacedesign.auth.domain.model.repository.RoleRepository;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springfr... | caterpillar/interfacedesign | design-auth/src/test/java/org/interfacedesign/auth/domain/model/RolesRepositoryTest.java | Java | apache-2.0 | 1,376 |
/**
* 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... | jessemull/MicroFlex | src/main/java/com/github/jessemull/microflex/bigintegerflex/stat/InterquartileRangeBigInteger.java | Java | apache-2.0 | 6,309 |
// Copyright (c) rubicon IT GmbH, www.rubicon.eu
//
// See the NOTICE file distributed with this work for additional information
// regarding copyright ownership. rubicon 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 Lic... | TITcs/TITcs.SharePoint | src/TITcs.SharePoint/Query/LinqProvider/Parsing/ExpressionTreeVisitors/SubQueryFindingExpressionTreeVisitor.cs | C# | apache-2.0 | 3,201 |
/*
* 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 ... | hoge1e3/soyText | src/jp/tonyu/soytext2/servlet/Httpd.java | Java | apache-2.0 | 1,747 |
package com.huawei.esdk.uc.professional.local.impl.autogen;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.b... | eSDK/esdk_uc_native_java | source/esdk_uc_native_professional_java/src/main/java/com/huawei/esdk/uc/professional/local/impl/autogen/ModifyTalkMode.java | Java | apache-2.0 | 3,578 |
package se.uu.it.cs.recsys.ruleminer.util;
/*
* #%L
* CourseRecommenderRuleMiner
* %%
* Copyright (C) 2015 Yong Huang <yong.e.huang@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 ... | yong-at-git/CourseRecommenderParent | CourseRecommenderRuleMiner/src/main/java/se/uu/it/cs/recsys/ruleminer/util/HeaderTableUtil.java | Java | apache-2.0 | 2,270 |
# -*- coding: utf-8 -*-
from dateutil.parser import parse
import json
import os
import yaml
import db_old
# TODO: This function is currently only used by the db.py module,
# imported from serving.py via sys.path modification. Due to the new
# sys.path content, db.py attempts to find the `yaml_load` function in
# thi... | verejnedigital/verejne.digital | obstaravania/utils.py | Python | apache-2.0 | 7,620 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | weld/core | tests-arquillian/src/test/java/org/jboss/weld/tests/decorators/broken/FooDecorator.java | Java | apache-2.0 | 1,152 |
package main;
import view.Tienda;
import view.Principal;
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.UnsupportedLookAndFeelException;
/**
*
* @author Chema_class
*/
public class Main extends JFrame{
private Principal principal;
private Tienda tienda;
private Decorador... | Chemaclass/invaders | src/main/Main.java | Java | apache-2.0 | 2,315 |
/*
* Copyright 2017 Antti Nieminen
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | dimone-kun/cuba | modules/web-toolkit/src/com/haulmont/cuba/web/widgets/client/addons/aceeditor/SuggestPopup.java | Java | apache-2.0 | 7,560 |
/**
* 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/tree/IntInsnNode.java | Java | apache-2.0 | 3,081 |
package org.apache.maven.lifecycle.internal;
/*
* 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... | sonatype/maven-demo | maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleExecutionPlanCalculator.java | Java | apache-2.0 | 2,629 |
<?php
/**
* 主题 upbond
*/
namespace app\themes\upbond;
use yii\web\AssetBundle;
/**
* @author zhanqu.im
*/
class ThemeAsset extends AssetBundle
{
const name = 'upbond';
const themeId = 'upbond';
public $sourcePath = '@app/themes/'.self::themeId.'/assets';
public $css = [
];
public $js ... | zhanqu/yii2adm | app/themes/upbond/ThemeAsset.php | PHP | apache-2.0 | 482 |
/*
* 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-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/ApplicationSettingsResource.java | Java | apache-2.0 | 20,385 |
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 11 23:06:06 2016
@author: DIP
"""
from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer
def build_feature_matrix(documents, feature_type='frequency',
ngram_range=(1, 1), min_df=0.0, max_df=1.0):
feature_type = featur... | dipanjanS/text-analytics-with-python | Old-First-Edition/Ch07_Semantic_and_Sentiment_Analysis/utils.py | Python | apache-2.0 | 3,381 |
/*
* Copyright WSO2 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... | pubudu538/carbon-apimgt | components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/handlers/security/AuthenticationContext.java | Java | apache-2.0 | 5,431 |
# 2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.
#
# What is the sum of the digits of the number 2^1000?
puts (2**1000).to_s.chars.map(&:to_i).reduce(:+) | tyrone-sudeium/project-euler | ruby/0016.rb | Ruby | apache-2.0 | 174 |
// Copyright (C) 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 t... | ek9852/gapid | core/app/run.go | GO | apache-2.0 | 4,928 |
package net.sf.yal10n.charset;
/*
* 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 ... | adangel/yal10n | src/main/java/net/sf/yal10n/charset/UTF8BOM.java | Java | apache-2.0 | 5,421 |
package org.zstack.sdk.sns.platform.dingtalk;
import java.util.HashMap;
import java.util.Map;
import org.zstack.sdk.*;
public class CreateSNSDingTalkEndpointAction extends AbstractAction {
private static final HashMap<String, Parameter> parameterMap = new HashMap<>();
private static final HashMap<String, Pa... | camilesing/zstack | sdk/src/main/java/org/zstack/sdk/sns/platform/dingtalk/CreateSNSDingTalkEndpointAction.java | Java | apache-2.0 | 3,482 |
package org.metaborg.core.completion;
import java.io.Serializable;
public class Completion implements ICompletion, Serializable {
/**
* Serializable because it is necessary to pass an object as a String to Eclipse additional info menu
*/
private static final long serialVersionUID = 6960435974459583... | metaborg/spoofax | org.metaborg.core/src/main/java/org/metaborg/core/completion/Completion.java | Java | apache-2.0 | 4,484 |
/*******************************************************************************
* Copyright 2015 Maximilian Stark | Dakror <mail@dakror.de>
*
* 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... | Dakror/WebcamParser | src/de/dakror/webcamparser/EBookReader.java | Java | apache-2.0 | 2,948 |
package com.guanshuwei.smartstick.data;
import java.util.Calendar;
import java.util.Locale;
import java.util.Vector;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.DatabaseUtils;
import android.database.sqlite.SQLiteDatabase;
import androi... | richarddan/SmartStick | src/com/guanshuwei/smartstick/data/HistoryDatabase.java | Java | apache-2.0 | 17,431 |
package org.tourgune.apptrack.bean;
/**
* AppTrack
*
* Created by CICtourGUNE on 10/04/13.
* Copyright (c) 2013 CICtourGUNE. All rights reserved.
*
* Bean de la tabla variables de la base de datos
*/
public class Variable {
private int idvariable;
private int idaplicacion;
private int idtipo;
private St... | cictourgune/EmocionometroWeb | src/org/tourgune/apptrack/bean/Variable.java | Java | apache-2.0 | 2,054 |
/*
* 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-dialogflow | proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BatchUpdateEntityTypesResponse.java | Java | apache-2.0 | 33,021 |
// Karma configuration
// Generated on Mon Mar 16 2015 13:42:33 GMT-0600 (MDT)
module.exports = function( config ) {
config.set( {
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '..',
// frameworks to use
// available frameworks: https://npm... | ICT4H/dcs-enketo-core | test/karma.conf.js | JavaScript | apache-2.0 | 3,479 |
# Copyright 2012 OpenStack Foundation.
# Copyright 2015 Hewlett-Packard Development Company, L.P.
# Copyright 2017 FUJITSU LIMITED
# 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... | openstack/python-neutronclient | neutronclient/v2_0/client.py | Python | apache-2.0 | 115,185 |
var currPageIndex = 0;
app.initialize();
$(document).ready(function () {
//$('.appV').html('v1.17');
//onDocumentReady();
setMenu();
toggleMenu();
});
function onDocumentReady() {
SetPagesList();
setBackground();
runPinchzoom();
turnPages(currPageIndex);
setPep();
//chan... | Webnology-/cookbook2013VeryLast | www/js/javascript.js | JavaScript | apache-2.0 | 18,944 |
/*
* 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 ... | citrix/terraform-provider-netscaler | vendor/github.com/citrix/adc-nitro-go/resource/config/vpn/vpnglobal_authenticationsamlpolicy_binding.go | GO | apache-2.0 | 2,162 |
/*
* Copyright (C) 2012 Andrew Neal 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, ... | i25ffz/spollo | src/com/spollo/player/menu/DeleteDialog.java | Java | apache-2.0 | 4,090 |
package io.jeffrey.world.things.points;
import org.junit.Test;
import io.jeffrey.world.WorldTestFramework;
public class TestEditEventedPoint2 extends WorldTestFramework {
@Test
public void sanityCheckXEditing() {
final SelectablePoint2 point = new SelectablePoint2(1, 2);
final HasUpdateMock mock = new H... | jeffrey-io/world-bootstrap | src/test/java/io/jeffrey/world/things/points/TestEditEventedPoint2.java | Java | apache-2.0 | 1,345 |
package com.nagopy.android.easyprefs.processor;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import javax.tools.JavaFileObject;
import static com.google.common.truth.Truth.assert_;
import static com.google.testing.compile.JavaSourceSubjectFactory.javaSource;
@RunWith(JUni... | 75py/EasyPrefs | easyprefs-processor/src/test/java/com/nagopy/android/easyprefs/processor/EasyPrefProcessorBoolTest.java | Java | apache-2.0 | 1,259 |
package com.introproventures.graphql.jpa.query.converter.model;
import java.util.Date;
import java.util.Objects;
import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Ma... | introproventures/graphql-jpa-query | graphql-jpa-query-schema/src/test/java/com/introproventures/graphql/jpa/query/converter/model/AbstractVariableEntity.java | Java | apache-2.0 | 4,011 |
"""
Copyright 2017 Deepgram
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
distri... | deepgram/kur | tests/examples/modkurfile.py | Python | apache-2.0 | 1,380 |
#region Copyright
/*Copyright (C) 2015 Konstantin Udilovich
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 applicab... | Kodestruct/Kodestruct.Dynamo | Kodestruct.Dynamo.UI/Nodes/Loads/ASCE7/Lateral/Wind/WindFace.cs | C# | apache-2.0 | 4,968 |
export { default } from 'ember-table-filterable/components/table-filterable'; | clairton/ember-table-filterable | app/components/table-filterable.js | JavaScript | apache-2.0 | 77 |
package org.hitzoft.xml;
/**
*
* @author jesus.espinoza
*/
public enum SignatureMethodAlgorithm {
DSA_SHA1("http://www.w3.org/2000/09/xmldsig#dsa-sha1"),
DSA_SHA256("http://www.w3.org/2009/xmldsig11#dsa-sha256"),
RSA_SHA1("http://www.w3.org/2000/09/xmldsig#rsa-sha1"),
RSA_SHA256("htt... | Chuy288/simple-xml-signer | src/main/java/org/hitzoft/xml/SignatureMethodAlgorithm.java | Java | apache-2.0 | 945 |
import endsWith from 'lodash/endsWith';
import startsWith from 'lodash/startsWith';
import trim from 'lodash/trim';
const VALID_SLUG_PATTERN = /^([a-z0-9]-?)*[a-z0-9]$/;
const VALID_DATED_SLUG_PATTERN = /^([a-z0-9-]|[a-z0-9-][a-z0-9-/]*[a-z0-9-])$/;
/**
* Returns true if the provided value is a slug.
*
* @param {s... | gdbots/common-js | src/isValidSlug.js | JavaScript | apache-2.0 | 767 |
# coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import textwrap
imp... | areitz/pants | tests/python/pants_test/backend/python/tasks/checkstyle/test_noqa.py | Python | apache-2.0 | 3,397 |
package main
import (
"fmt"
"reflect"
)
var (
Int reflect.Type = reflect.TypeOf(0)
String reflect.Type = reflect.TypeOf("")
)
// 可从基本类型获取所对应复合类型。
func main() {
var c reflect.Type
c = reflect.ChanOf(reflect.SendDir, String)
fmt.Println(c)
m := reflect.MapOf(String, Int)
fmt.Println(m)
s := reflect.SliceO... | Anteoy/gtools | test/base/note/reflect/type/base-recombination/main.go | GO | apache-2.0 | 611 |
using System.ComponentModel;
#pragma warning disable 0067
namespace OQF.CommonUiElements.Info.Pages.PageViewModels.TournamentInfoPage
{
internal class TournamentInfoPageViewModelSampleData : ITournamentInfoPageViewModel
{
public event PropertyChangedEventHandler PropertyChanged;
public void Dispose() { }
... | bytePassion/OpenQuoridorFramework | OpenQuoridorFramework/OQF.CommonUiElements/Info/Pages/PageViewModels/TournamentInfoPage/TournamentInfoPageViewModelSampleData.cs | C# | apache-2.0 | 366 |
// Copyright Eagle Legacy Modernization, 2010-date
// Original author: Steven A. O'Hara, Dec 17, 2010
package com.eagle.programmar.Java.Terminals;
import com.eagle.tokens.TerminalPunctuationToken;
public class Java_Punctuation extends TerminalPunctuationToken
{
// Need default constructor for reading from the XML f... | oharasteve/eagle | src/com/eagle/programmar/Java/Terminals/Java_Punctuation.java | Java | apache-2.0 | 495 |
package com.example.cmmdyweather.gson;
import com.google.gson.annotations.SerializedName;
/**
* Created by 夏夜晚凤 on 2017/2/14.
*/
public class Basic {
@SerializedName("city")
public String cityName;
@SerializedName("id")
public String weatherId;
public Update update;
public class Update{
... | cmmdy/cmmdyweather | app/src/main/java/com/example/cmmdyweather/gson/Basic.java | Java | apache-2.0 | 402 |
/*
* Copyright 2012 - 2014 Weald Technology Trading Limited
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | wealdtech/wealdtech-android | wealdtech-tiles/src/main/java/com/wealdtech/android/providers/ProviderState.java | Java | apache-2.0 | 915 |
// Copyright © Microsoft Open Technologies, 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
//
// THIS CODE... | w9jds/azure-activedirectory-library-for-android | src/src/com/microsoft/aad/adal/AuthenticationCancelError.java | Java | apache-2.0 | 1,266 |
/*
* Copyright 2017 MovingBlocks
*
* 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 ... | Sigma-One/DestinationSol | engine/src/main/java/org/destinationsol/game/input/BigObjAvoider.java | Java | apache-2.0 | 2,268 |
package com.hsj.egameserver.server;
public class Crypt {
private static Crypt _instance = null;
private synchronized static void createInstance() {
if (_instance == null) {
_instance = new Crypt();
}
}
public static Crypt getInstance() {
if (_instance == null) {
... | woshihuo12/evilbonefun | egameserver/src/main/java/com/hsj/egameserver/server/Crypt.java | Java | apache-2.0 | 931 |
package info.izumin.android.bletia.core.action;
import info.izumin.android.bletia.core.BleState;
import info.izumin.android.bletia.core.BletiaException;
import info.izumin.android.bletia.core.ResolveStrategy;
import info.izumin.android.bletia.core.StateContainer;
import info.izumin.android.bletia.core.wrapper.Bluetoot... | izumin5210/Bletia | bletia-core/src/main/java/info/izumin/android/bletia/core/action/AbstractDisconnectAction.java | Java | apache-2.0 | 1,026 |
package com.labo.kaji.relativepopupwindow;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.support.annotation.IntDef;
import android.support.annotation.NonNull;
import android.support.v4.widget.PopupWindowCompat;
import android.util.AttributeSet;
import andr... | weiwenqiang/GitHub | Dialog/PopupWindow/RelativePopupWindow-master/relativepopupwindow/src/main/java/com/labo/kaji/relativepopupwindow/RelativePopupWindow.java | Java | apache-2.0 | 6,819 |
// 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
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | firebase/firebase-android-sdk | firebase-perf/src/test/java/com/google/firebase/perf/transport/TransportManagerTest.java | Java | apache-2.0 | 60,225 |
/*
* Copyright 2015 NEC 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 law or agreed ... | y-higuchi/odenos | src/main/java/org/o3project/odenos/core/component/network/topology/Port.java | Java | apache-2.0 | 7,900 |
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | googleads/googleads-dotnet-lib | examples/AdManager/CSharp/v202111/CreativeService/CreateCustomCreative.cs | C# | apache-2.0 | 5,069 |
<?php
namespace Atompulse\Bundle\FusionBundle\Assets\Refiner;
/**
* Class SimpleRefiner
* @package Atompulse\Bundle\FusionBundle\Compiler\Refiner
*
* @author Petru Cojocar <petru.cojocar@gmail.com>
*/
class SimpleRefiner implements RefinerInterface
{
/**
* Very basic content optimizer
* @param strin... | atompulse/atompulse | src/Atompulse/Bundle/FusionBundle/Assets/Refiner/SimpleRefiner.php | PHP | apache-2.0 | 1,051 |
/**
* Copyright 2014 Shape Security, 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... | shapesecurity/shift-parser-js | src/tokenizer.js | JavaScript | apache-2.0 | 46,755 |
import {Component, Inject, ElementRef} from '@angular/core';
import {SlideCommon} from '../../slideCommon/slideCommon';
import {Editor} from '../../../editor/editor';
import {EditorTab} from '../../../editorTab/editorTab';
import {HOST_SLIDE_CONTAINER_CLASS} from '../../../../services/constants';
@Component({
sele... | worldline/TrainingJEEAngular | trainingapp/src/components/slides/preamble/fwksCompare2/fwksCompare2.ts | TypeScript | apache-2.0 | 696 |
/*
* Copyright 2019 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 ... | firebase/firebase-admin-java | src/main/java/com/google/firebase/messaging/internal/package-info.java | Java | apache-2.0 | 661 |
package org.larsworks.bitcoin.app.core.notifications;
import org.larsworks.bitcoin.app.core.notifications.conditions.Condition;
/**
* @author Lars Kleen
* @since 0.0.1
* Date: 01.02.14
* Time: 13:32
*/
public interface NotificationEngine<T> {
void addCondition(Condition<T> conditio... | lkleen/bitcoin-app | core/src/main/java/org/larsworks/bitcoin/app/core/notifications/NotificationEngine.java | Java | apache-2.0 | 405 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using SystemEx.Windows.Forms;
using WastedgeQuerier.Util;
namespace Wasted... | wastedge/wastedge-querier | WastedgeQuerier/JavaScript/NewProjectForm.cs | C# | apache-2.0 | 2,391 |
Rails.application.routes.draw do
devise_for :users, :controllers => { registrations: 'registrations' }
get "/profiles/search" => "profiles#search"
resources :profiles
resources :forums do
resources :posts
end
resources :posts, only: [] do
resources :comments
end
# The priority is based u... | julianche/ixalumninew | config/routes.rb | Ruby | apache-2.0 | 1,895 |
// 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_appengine/src/main/java/com/google/api/ads/admanager/jaxws/v202105/RequiredCollectionErrorReason.java | Java | apache-2.0 | 2,070 |
package publish
import (
"bytes"
"sync"
"github.com/drausin/libri/libri/common/ecid"
"github.com/drausin/libri/libri/common/id"
"github.com/drausin/libri/libri/common/storage"
"github.com/drausin/libri/libri/librarian/api"
"github.com/drausin/libri/libri/librarian/client"
lclient "github.com/drausin/libri/lib... | drausin/libri | libri/author/io/publish/acquirer.go | GO | apache-2.0 | 4,183 |
/*
* Copyright 2015 David Vávra
*
* 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 ... | destil/GPS-Averaging | app/src/main/java/org/destil/gpsaveraging/ui/AdManager.java | Java | apache-2.0 | 1,678 |
/*
Copyright 2017 Ericsson AB.
For a full list of individual contributors, please see the commit history.
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... | AndriyZabavskyy/eiffel-intelligence | src/main/java/com/ericsson/ei/subscriptionhandler/RunSubscription.java | Java | apache-2.0 | 3,706 |
/**
* Package for job4j chapter 2 projects.
*
* @author Nikolai Matveev
* @version 0.1
* @since 14.10.2017
*/
package ru.job4j.professions.doctor; | nikolai-m/nmatveev | chapter_002/src/main/java/ru/job4j/professions/doctor/package-info.java | Java | apache-2.0 | 152 |
/*
VLDocking Framework 3.0
Copyright Lilian Chamontin, 2004-2013
www.vldocking.com
vldocking@googlegroups.com
------------------------------------------------------------------------
This software is distributed under the LGPL license
The fact that you are presently reading this and using this cla... | aragozin/stackviewer | src/main/java/com/vldocking/swing/docking/HeavyWeightDragControler.java | Java | apache-2.0 | 12,546 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Neptuo.Bootstrap.Dependencies
{
[AttributeUsage(AttributeTargets.Property)]
public class ImportAttribute : Attribute
{
public string Name { get; private set; }
pub... | maraf/Money | src/Neptuo/Bootstrap/Dependencies/ImportAttribute.cs | C# | apache-2.0 | 503 |
/**
* JBoss, Home of Professional Open Source.
* Copyright 2014-2020 Red Hat, Inc., and individual 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... | matedo1/pnc | bpm/src/test/java/org/jboss/pnc/bpm/test/RepositoryManagerResultSerializationTest.java | Java | apache-2.0 | 6,189 |
'''
"network": [
{
"index": 0,
"ipv4_gateway": "",
"name": "",
"veth_pair": "",
"mtu": "",
"ipv6_gateway": "",
"flags": "up",
... | dealfonso/lxc-pm | networkmanager.py | Python | apache-2.0 | 8,801 |
/*
* Druid - a distributed column store.
* Copyright 2012 - 2015 Metamarkets Group 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-... | friedhardware/druid | indexing-service/src/test/java/io/druid/indexing/overlord/TaskLifecycleTest.java | Java | apache-2.0 | 37,250 |
# This Python module is part of the PyRate software package.
#
# Copyright 2022 Geoscience Australia
#
# 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/... | GeoscienceAustralia/PyRate | tests/test_mpi_vs_multiprocess_vs_single_process.py | Python | apache-2.0 | 18,387 |
/*
* 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
* distr... | naver/ngrinder | ngrinder-controller/src/main/java/org/ngrinder/perftest/service/samplinglistener/PluginRunListener.java | Java | apache-2.0 | 2,865 |
/*
* @Author: aaronpmishkin
* @Date: 2016-06-07 15:34:15
* @Last Modified by: aaronpmishkin
* @Last Modified time: 2017-06-01 14:05:32
*/
// Import Angular Classes:
import { Injectable } from '@angular/core';
// Import Libraries:
import * as d3 from 'd3';
import { Subject } f... | aaronpmishkin/CUCSC-ValueCharts | client/modules/ValueChart/renderers/ScoreFunction.renderer.ts | TypeScript | apache-2.0 | 21,399 |
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using System;
using System.Linq;
using System.Web;
using System.Web.UI;
using LibraryManager.Models;
using Library;
using System.Data;
namespace LibraryManager.Account... | abhishekdepro/libman | LibraryManager/LibraryManager/Account/Login.aspx.cs | C# | apache-2.0 | 2,903 |
/*
* 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-config/src/main/java/com/amazonaws/services/config/model/transform/EvaluationResultIdentifierMarshaller.java | Java | apache-2.0 | 2,519 |
# Copyright 2015 Isotoma Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | mitchellrj/touchdown | touchdown/ssh/connection.py | Python | apache-2.0 | 3,610 |
/* __ __ __ __ __ ___
* \ \ / / \ \ / / __/
* \ \/ / /\ \ \/ / /
* \____/__/ \__\____/__/
*
* Copyright 2014-2017 Vavr, http://vavr.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 ... | amygithub/vavr | vavr/src/test/java/io/vavr/collection/HashSetTest.java | Java | apache-2.0 | 15,210 |
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/MessageHeader.java | Java | apache-2.0 | 77,040 |
package templatescompiler_test
import (
. "github.com/cloudfoundry/bosh-cli/templatescompiler"
"bytes"
"os"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
mock_template "github.com/cloudfoundry/bosh-cli/templatescompiler/mocks"
"github.com/golang/mock/gomock"
bosherr "github.com/cloudfoundry/bosh-ut... | cppforlife/turbulence-release | src/github.com/cloudfoundry/bosh-cli/templatescompiler/rendered_job_list_archive_test.go | GO | apache-2.0 | 3,889 |
<?php /* Smarty version Smarty-3.0.8, created on 2015-08-20 04:03:50
compiled from "F:\public_html\keding\new/tpl\project.html" */ ?>
<?php /*%%SmartyHeaderCode:163455d535862a48c8-73480281%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency'... | hfutxqd/keding_website | tmp/5f4fb68bba309d0d863177f9178e0d985db412a7.file.project.html.php | PHP | apache-2.0 | 5,303 |
package com.lidchanin.shoppinglist.customview;
import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;
/**
* Created by Alexander Destroyed on 19.08.2017.
*/
public class DesignedEditText extends android.support.v7.widget.AppCompatEditText {
public DesignedEditText(... | Lidchanin/Shopping_List | app/src/main/java/com/lidchanin/shoppinglist/customview/DesignedEditText.java | Java | apache-2.0 | 821 |
# @MUNTJAC_COPYRIGHT@
# @MUNTJAC_LICENSE@
class VOptionGroup(object):
HTML_CONTENT_ALLOWED = "usehtml"
| rwl/muntjac | muntjac/terminal/gwt/client/ui/v_option_group.py | Python | apache-2.0 | 110 |