id stringlengths 64 64 | content stringlengths 500 100k | language stringclasses 29
values | path stringlengths 4 333 | repo stringlengths 5 116 | license stringclasses 15
values | size int64 500 100k | lines int64 26 8.06k | source stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|
097f8732fe56d6258d90e6f80cc2c49c5344ff5002818225e0f0882f7721caf2 | /*
* Copyright (c) 2017 Jean-Paul Etienne <fractalclone@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @brief UART driver for the SiFive Freedom Processor
*/
#include <kernel.h>
#include <arch/cpu.h>
#include <uart.h>
#define RXDATA_EMPTY (1 << 31) /* Receive FIFO Empty */
#define RXDATA_MASK ... | C | drivers/serial/uart_sifive.c | GiulianoFranchetto/zephyr | apache-2.0 | 10,616 | 452 | codeparrot/github-code |
8e15dac92ed067fb89ac7a2e04bff54bd821f4aa5000982c4405df9ebe1b4b96 | package com.wareninja.opensource.ip2location.services;
import java.util.List;
import com.google.gson.JsonObject;
import com.wareninja.opensource.ip2location.config.YamlConfiguration;
public interface Provider {
default void transfer(final BulkService bulkService,YamlConfiguration config, final Runnable closeC... | Java | src/main/java/com/wareninja/opensource/ip2location/services/Provider.java | wareninja/ip2location-jsondata | apache-2.0 | 1,025 | 38 | codeparrot/github-code |
a3f48a9d4b1f6c34dc8da1d1ab8b4f747cb4b74ef1d540533c0124904f041682 | from django.shortcuts import render
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.shortcuts import redirect
from main.models import Link
from main.models import Tag
# Create your views here.
def index(request):
context = RequestContext(request)
... | Python | bookmarks/main/views.py | cntnboys/410Lab6 | apache-2.0 | 1,325 | 53 | codeparrot/github-code |
c985d910dd939e34f10203999e09cefea5eba14fab8a8d5073e271d1edd7988d | 'use strict';
var mongoose = require('mongoose');
var mongoose_uuid = require('mongoose-uuid');
var mongoose_relationship = require('mongoose-relationship');
function tierModel () {
var tierSchema = mongoose.Schema({
environment: { type: String, ref: 'Environment', childPath: 'tiers', index: true },
platfo... | JavaScript | models/tier.js | converged/imperator | apache-2.0 | 1,276 | 45 | codeparrot/github-code |
22331d0d6abea2170381b64ac9c9cf5b153881dbf2599aaf2371f041c7c8e663 | package org.jgroups.protocols.jzookeeper.z2pinfinspan;
import org.jgroups.Address;
import org.jgroups.View;
import java.util.*;
/**
* A class to provide a means of reducing a views size in bytes by storing each view in a byte array, and storing past view
* data at each node in the cluster.
*
* @auth... | Java | src/org/jgroups/protocols/jzookeeper/z2pinfinspan/ViewManager.java | ibrahimshbat/JGroups | apache-2.0 | 2,095 | 61 | codeparrot/github-code |
6195e21772493b60deb0eb11ff1a4b68ac95d405b5e925d39ad0b76a75348e8e | // Copyright 2012, 2013 Patrick Wang <kk1fff@patrickz.net>
//
// 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 ap... | JavaScript | template-interface.js | kk1fff/album-generator | apache-2.0 | 6,516 | 218 | codeparrot/github-code |
9a8d2c63cbf2fc86106c66fae143e9b863731249f71a4c1ea508b31834a133de | #
# This source file is part of the EdgeDB open source project.
#
# Copyright 2008-present MagicStack Inc. and the EdgeDB 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... | Python | edb/schema/links.py | edgedb/edgedb | apache-2.0 | 21,887 | 669 | codeparrot/github-code |
16c670bcd4cabf4e73c2583e16ca85c712f8302c50c0b66b38967e6d866946d6 | /**
* Copyright 2016 Netflix, 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 w... | Java | src/test/java/io/reactivex/internal/operators/observable/ObservableSubscribeOnTest.java | benjchristensen/RxJava | apache-2.0 | 6,761 | 208 | codeparrot/github-code |
b5484af28ced59447b33dbdcfe37d814fcbd439193a2c1a0a1bbc10faf5b544c | var gId = '#dataGrid';
var lastIndex;
$(document).ready(function(){
//列表
$(gId).datagrid({
url:getUrlOpt(),
idField:'id',
fitColumns:true,
frozenColumns:[[
{field:'ck',checkbox:true}
]],
columns:[
getTableHeadOpt(),
getColumnsOpt(),
getTotal()
],
rownumbers:true,
pag... | JavaScript | src/main/webapp/scripts/formcenter/orderform/salesummary/list_salesummary.js | shenzeyu/recommend | apache-2.0 | 4,655 | 172 | codeparrot/github-code |
9e380acc717c045963aca2ab6d440891519a9ad7763f28e6d681ae6c2584855f | /* Copyright (c) 2021 PaddlePaddle 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... | C++ | paddle/fluid/operators/truncated_gaussian_random_op_npu.cc | PaddlePaddle/Paddle | apache-2.0 | 4,431 | 112 | codeparrot/github-code |
10bdebf83f3a4c32731094387cb49d6fbf384f229dfa74d36ba450ca7ab383db | import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable, of } from 'rxjs';
import {catchError, map, shareReplay, tap} from 'rxjs/operators';
import {GroupProductionStats} from './gp-stats';
const CACHE_SIZE = 1;
@Injectable({
providedIn: 'root... | TypeScript | atlas/frontendjs/prodsysjs/src/app/derivation-exclusion/gp-stats/gp-stats.service.ts | PanDAWMS/panda-bigmon-atlas | apache-2.0 | 1,920 | 67 | codeparrot/github-code |
596fd0e6886c9598f65a3d1143240be687d72b0929bae6830f43721d95d55f2d | package be.un.odp.services.implementations;
import be.un.odp.dao.PortalTypeDao;
import be.un.odp.models.PortalType;
import be.un.odp.services.PortalTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Created on 13-0... | Java | src/main/java/be/un/odp/services/implementations/PortalTypeServiceImpl.java | Nokorbis/unodp | apache-2.0 | 1,532 | 73 | codeparrot/github-code |
b0dffa38c1d936e27d8fd5d7ad7956f550cefdaf901d22fd1c65d6f2fbb366e5 | /*!
* ${copyright}
*/
// Provides control sap.m.ColumnListItem.
sap.ui.define([
"sap/ui/core/Element",
"sap/ui/core/library",
"./library",
"./ListItemBase",
"./ColumnListItemRenderer",
"sap/ui/thirdparty/jquery",
// jQuery custom selectors ":sapFocusable", ":sapTabbable"
"sap/ui/dom/jquery/Selectors"
],
fun... | JavaScript | src/sap.m/src/sap/m/ColumnListItem.js | SAP/openui5 | apache-2.0 | 9,887 | 346 | codeparrot/github-code |
95dcc75520dc9d718586f07a5eab9fb0c15dbc17436a8de548de19a8bc12ac60 | //
// AutoDetectStream.cpp
//
// $Id: //poco/1.4/Zip/src/AutoDetectStream.cpp#1 $
//
// Library: Zip
// Package: Zip
// Module: AutoDetectStream
//
// Copyright (c) 2007, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Zip/AutoDetectStream.... | C++ | platform/Zip/src/AutoDetectStream.cpp | nextsmsversion/macchina.io | apache-2.0 | 5,092 | 232 | codeparrot/github-code |
f496f5ba642b1dada4ab5c8231d745bca2558245f1f3f09a8f0fefc0dff8c7ae | package test.thread.parallelization.sample;
import org.testng.ITestContext;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import test.thread.parallelization.TestNgRunStateTracker;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import static test.thread.parallelization.T... | Java | src/test/java/test/thread/parallelization/sample/TestClassAFiveMethodsWithDataProviderOnAllMethodsAndNoDepsSample.java | AJ-72/testng | apache-2.0 | 6,668 | 154 | codeparrot/github-code |
85a174cc7d701e1a5717ae750f4f058598b9c1b7662700872e11764686fb935f | #include "NetTreeWidget.h"
NetTreeWidget::NetTreeWidget(QWidget *parent) :
QTreeWidget(parent), vlanCount(0)
{
//setContextMenuPolicy(Qt::CustomContextMenu);
//connect(this, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(contextMenuRequested(QPoint)));
/*treeMenu = new QMenu;
tmAddR... | C++ | source/NetTreeWidget.cpp | Dovgalyuk/QemuGUI | apache-2.0 | 6,332 | 204 | codeparrot/github-code |
aae49807a87de168b554f4eecee636a47fae6c5e9e357eb0af3c9f146d05347b | import bisect
import string
from abc import ABC, abstractmethod
from typing import Optional
from django.conf import settings
class AbstractGrid(ABC):
enabled = False
@abstractmethod
def get_square_for_point(self, x, y) -> Optional[str]:
pass
@abstractmethod
def get_squares_for_bounds(se... | Python | src/c3nav/mapdata/grid.py | c3nav/c3nav | apache-2.0 | 2,343 | 91 | codeparrot/github-code |
86b58d4946699d5e41a50f951a34dcb566968e7111deef45ac906035c12aa11c | /*
* Copyright 2018-2019 B2i Healthcare Pte Ltd, http://b2i.sg
*
* 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... | Java | snomed/com.b2international.snowowl.snomed.reasoner/src/com/b2international/snowowl/snomed/reasoner/converter/ConcreteDomainChangeConverter.java | IHTSDO/snow-owl | apache-2.0 | 14,609 | 318 | codeparrot/github-code |
94716bcc5e7a531e8705b38cc4bb425ee3ae5e5804832c502013c9489389bb51 | // Morris Preorder Traversal
// by hxdone
#include <vector>
#include <iostream>
using namespace std;
// Definition for a binary tree node.
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class Solution {
public:
vector<int>... | C++ | leetcode/Algorithms/BinaryTreePreorderTraversal/solution_1.cpp | hxdone/puzzles | apache-2.0 | 1,319 | 54 | codeparrot/github-code |
0fc76b93c8416e0a11622249f26ef5d45ea2a6b9485c91b18914550e714a00b7 | package root.finance;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
class CurrencyFormatTest {
private CurrencyFormat formatter = new CurrencyFormat();
@Test
public void testPositiveFormat() {
assertEquals("$0.09", formatter.formatMsg(new Money(9)));
assertEquals("$0.75", formatter.for... | Java | test/root/finance/CurrencyFormatTest.java | macvelli/RootFramework | apache-2.0 | 1,561 | 38 | codeparrot/github-code |
43312d3131b6dbef25f1d8a04ddb26df5e4fcfcce376cff0dbc33d1962f9460c | // Copyright 2020 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applica... | GO | python/services/sql/database_server.go | GoogleCloudPlatform/declarative-resource-client-library | apache-2.0 | 4,263 | 116 | codeparrot/github-code |
396add381c85a0fcbcaef0c31f9a8ff6d5aad1a962924b099eff9d6faf1003ad | /*
* Copyright (c) 2015 Cisco and/or its affiliates.
* 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... | C | src/vnet/snap/snap.h | vpp-dev/vpp | apache-2.0 | 5,378 | 207 | codeparrot/github-code |
bd24a9de9ad4d0e8d14cdffcf75924fca0419e7e7a0baebcff3cd88860533546 | package http
import (
"go-common/app/admin/main/cache/model"
bm "go-common/library/net/http/blademaster"
)
// @params OverlordReq
// @router get /x/admin/cache/overlord/clusters
// @response OverlordResp
func overlordClusters(ctx *bm.Context) {
req := new(model.OverlordReq)
if err := ctx.Bind(req); err != nil {
... | GO | 126-go-common-master/app/admin/main/cache/http/overlord.go | LQJJ/demo | apache-2.0 | 4,073 | 167 | codeparrot/github-code |
daf055520adf4ff481d8399c230baf55d0b109ee47eba32332f5d8592e5b7b3b | /* global document */
import test from 'ava'
import { $ } from '../lib/traversal.js'
import { addClass, removeClass, css, chain } from '../lib/manipulation.js'
test.beforeEach(() => { document.body.innerHTML = '' })
/**
* addClass
*/
test('addClass', t => {
t.is(typeof addClass, 'function')
})
test('addClass ... | JavaScript | test/manipulation-test.js | mechanoid/cathedral | apache-2.0 | 2,723 | 129 | codeparrot/github-code |
c1c41aa4efa07517b2eb590faa0410eef39aad21e37ddad46ff74e1efbbd0ad4 | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace AsyncMediator
{
/// <inheritdoc />
public class Mediator : IMediator
{
private readonly ConcurrentBag<Func<Task>> _deferredEvents = new ConcurrentBag<Func<Task>>();
p... | C# | AsyncMediator/Infrastructure/Mediator.cs | jpv001/AsyncMediator | apache-2.0 | 2,368 | 70 | codeparrot/github-code |
9eb7fe0c9158620a50d955f5221f0ea75c620ccb37e4c6b193701573c397b991 | /*
* Copyright 2002-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... | Java | spring-webflux/src/test/java/org/springframework/web/reactive/result/view/script/JythonScriptTemplateTests.java | spring-projects/spring-framework | apache-2.0 | 3,136 | 85 | codeparrot/github-code |
0a4f83483083075a5dc8810e55bfd07bf417cfefc16478105598235e4a94840b | var util = require('../../../utils/util.js');
var check = require('../../../utils/check.js');
var api = require('../../../config/api.js');
var app = getApp();
Page({
data: {
array: ['请选择反馈类型', '商品相关', '功能异常', '优化建议', '其他'],
index: 0,
content: '',
contentLength: 0,
mobile: '',
hasPicture: fal... | JavaScript | pages/ucenter/feedback/feedback.js | leiphp/100txy | apache-2.0 | 3,907 | 184 | codeparrot/github-code |
a6e2bfb751034e8d103bdc741e3d87d50844eb8fa4d7e21afbc1b8ff9ce92b89 | /*
*
* * Copyright 2015 Skymind,Inc.
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * U... | Java | nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/transforms/arithmetic/RDivOp.java | phvu/nd4j | apache-2.0 | 2,954 | 116 | codeparrot/github-code |
124de3b56d08bfd0b3819fc90ac6425143d7b908d64eb4cdd78327857fc762b3 | /**
* 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... | TypeScript | test/unit/compileProtos.ts | googleapis/gax-nodejs | apache-2.0 | 8,402 | 238 | codeparrot/github-code |
afb23a0e561921134e22601c8aaae6f262f919e86c84b5eb960e144ab43f6f05 | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development Company, L.P.
import path from 'path';
import fecha from 'fecha';
import lunr from 'lunr';
import GithubPostDAO from '../persistance/GithubPostDAO';
import PostDAO from '../persistance/PostDAO';
export function loadPosts () {
return new PostDAO().ge... | JavaScript | server/utils/post.js | grommet/grommet-blog | apache-2.0 | 4,081 | 141 | codeparrot/github-code |
d546e86764bbf077f11ae8a73a60dba234943593916923917ade9a0dcca8055d | /*
* Copyright 2005-2010 Ignis Software Tools Ltd. All rights reserved.
*/
package jsystem.treeui.reporter;
import java.util.ArrayList;
import javax.swing.table.DefaultTableModel;
import jsystem.framework.report.Reporter;
/**
* TestReportModel This class implements the table model
*/
public class TestReportMode... | Java | jsystem-core-projects/jsystemApp/src/main/java/jsystem/treeui/reporter/TestReportModel.java | Top-Q/jsystem | apache-2.0 | 3,794 | 214 | codeparrot/github-code |
a4ddecf834ad6473bbe2542256d0900eb389dc1ae88a4f38ec2c05eca582ea47 | using esencialAdmin.Data.Models;
using System;
using System.Linq;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using esencialAdmin.Models.PlanViewModels;
using System.Collections.Generic;
using esencialAdmin.Models.GoodiesViewModels;
namespace esencialAdmin.Services
{
public class PlanService ... | C# | src/esencialAdmin/Services/PlanService.cs | Che4ter/PAWI | apache-2.0 | 5,916 | 173 | codeparrot/github-code |
c9ac3b5aca2ce6d92984f33c5e72ad862dcec7d2c356069b67e2a254d7bf48fb | package com.loadburn.heron.converter;
import com.loadburn.heron.utils.converter.Converter;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
/**
* @author slacrey (scstlinfeng@yahoo.com)
* Date: 13-10-26
*/
public class NumberConverters {
publ... | Java | heron-core/src/main/java/com/loadburn/heron/converter/NumberConverters.java | slacrey/heron-project | apache-2.0 | 1,866 | 57 | codeparrot/github-code |
d22a2f95711f650eb0445523b4211b1749917e98e470715c0e070609a1286277 | /*
* Copyright 2017-2020 47 Degrees, LLC. <http://www.47deg.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | Scala | src/main/scala/sbtorgpolicies/settings/release.scala | 47deg/sbt-org-policies | apache-2.0 | 7,071 | 201 | codeparrot/github-code |
65dca330cad11d1bba43632c6883c8279dec920d7e918496c0fdde00d9551192 | /*!
* FullCalendar v2.2.5 Stylesheet
* Docs & License: http://arshaw.com/fullcalendar/
* (c) 2013 Adam Shaw
*/
.fc {
direction: ltr;
text-align: left;
}
.fc-rtl {
text-align: right;
}
body .fc { /* extra precedence to overcome jqui */
font-size: 1em;
}
/* Colors
-------------------------------------------... | CSS | src/main/webapp/statics/plugins/fullcalendar/fullcalendar.css | ChinaBuilder/Gek | apache-2.0 | 22,518 | 978 | codeparrot/github-code |
bff420b5de7ae2d8d8ef7515daff9bfd8b00423fa674bf7d31a524459a1451d0 | /*
* JBoss, Home of Professional Open Source
* Copyright 2012 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @author tags. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This copyrighted material is made avail... | Java | infinispan/core/src/main/java/org/infinispan/distribution/group/GroupingConsistentHash.java | nmldiegues/stibt | apache-2.0 | 3,779 | 136 | codeparrot/github-code |
50872a9b05d5d5578d13e5fb32b7f88d990998ac4d5ae0582a6f5699cf010030 | package rww.ui.foaf
import japgolly.scalajs.react.ReactComponentB
import japgolly.scalajs.react.vdom.prefix_<^._
import rww.ontology.Mbox
import rww.ui.foaf.{FoafStyles => style}
import scalacss.ScalaCssReact._
/**
* Created by hjs on 17/05/2015.
*/
object MailInfo {
val MailInfo = ReactComponentB[Mbox]("Mail In... | Scala | src/main/scala/rww/ui/foaf/MailInfo.scala | read-write-web/rww-scala-js | apache-2.0 | 686 | 33 | codeparrot/github-code |
b3b6543c8a5f644ef0be4daa34d3689e15a1395e405e3a9f045522ba75b94323 | /*
* Copyright (c) 2017, Kieron Wilkinson
*/
package org.softpres.donkeysql.params;
import org.junit.Test;
import org.softpres.donkeysql.UncheckedSQLException;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.catchThrowable;
import static org.softpres.donkeysql... | Java | src/test/java/org/softpres/donkeysql/params/IndexedParamQueryTest.java | vyadh/donkeysql | apache-2.0 | 2,518 | 78 | codeparrot/github-code |
fe974813acee289810145e92578e160c0a76ff717c6ca4e8ec7de5c629e9f0ed | package pokeraidbot;
import com.jagrosh.jdautilities.command.CommandEvent;
import net.dv8tion.jda.api.entities.User;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;
import pokeraidbot.domain.config.ClockService;
import pokeraidbot.domain.config.LocaleService;
import pokeraidbot.d... | Java | src/main/java/pokeraidbot/Utils.java | magnusmickelsson/pokeraidbot | apache-2.0 | 16,313 | 337 | codeparrot/github-code |
e5fd43c37a8ba7fb95b6dd4350f28d8b89d8bc4195688f00bb2ce609da5ca79e | /**
*
*/
package com.parseeverything.html;
/**
*解析印度尼西亚商报
* @author Mi Jing
* @date 2014-3-18
*/
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.slf4j.Logger;
i... | Java | src/main/java/com/parseeverything/html/IndonesiaShangBaoParser.java | sonyfe25cp/ParseEverything | apache-2.0 | 2,357 | 114 | codeparrot/github-code |
89d502644c7a4faa3855369de6d8306ee29118c385e0ef034c6c0628a7522716 | /*
Copyright 2014-2016 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 agreed to in writing, s... | Java | moe.apple/moe.platform.ios/src/main/java/apple/accelerate/struct/vDSP_uint24.java | multi-os-engine/moe-core | apache-2.0 | 1,516 | 59 | codeparrot/github-code |
10aaa58b554cffa6f014c3452a81eacfc55042aca8c0bc59e737fedd3dc427ff | /* 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-2.0
Unless required by applicable law or agreed to in ... | C++ | tensorflow_serving/model_servers/main.cc | penguin138/serving | apache-2.0 | 23,796 | 525 | codeparrot/github-code |
ffcb6418ffe7d69f3cc1a261672f7b2d0588b5bb8d11069615fc440ed2134335 | package com.dxy.android.statistics.util;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Reader;
import java.io.Writer;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.zip.Chec... | Java | util/IoUtils.java | brokge/AndroidUtilClass | apache-2.0 | 4,873 | 173 | codeparrot/github-code |
0cd45fe47f73c17e4892a4effdd4beac613777c6e27405fa63449319e287c990 | #pragma once
class HuffmanNode
{
public:
HuffmanNode();
HuffmanNode(char c, int freq, HuffmanNode* left, HuffmanNode* right);
HuffmanNode(const HuffmanNode& node);
bool IsLeaf();
public:
char m_c;
int m_freq;
HuffmanNode* m_left;
HuffmanNode* m_right;
friend bool operator>(HuffmanNode& node1, HuffmanNode& n... | C | algorithms-4th-Cplusplus/HuffmanNode.h | kevin00000000/algorithms-4th-Cplusplus | apache-2.0 | 1,208 | 53 | codeparrot/github-code |
af6586c762730b093d4114010e86343c34faeeeb1359729f9642e4c74a57bde1 | // you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARR... | C | components/driver/rtc_module.c | dschaefer/esp-idf | apache-2.0 | 41,837 | 924 | codeparrot/github-code |
24565bc25dd45d5577f78beb754a96f904616877c7cbebc050cfb60438aae0c5 | package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.domain.BeaconDeviceInfo;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.mobile.beacon.device.query response.
*
* @author auto create
* @since 1.0, 2017-02-28 11:12:47
*/
public class AlipayMo... | Java | src/main/java/com/alipay/api/response/AlipayMobileBeaconDeviceQueryResponse.java | wendal/alipay-sdk | apache-2.0 | 1,098 | 58 | codeparrot/github-code |
8209b1e8301fdf03080cc59cedaf36d354ff54392a5a1233c633acf058bdda29 | package com.brightgenerous.fxplayer.url;
import java.nio.charset.Charset;
public class HttpUtilsBuilder {
private String userAgent;
private String contentType;
private Charset encode;
private boolean selfSigned;
private boolean syncCookie;
private HttpUtilsBuilder() {
... | Java | src/main/java/com/brightgenerous/fxplayer/url/HttpUtilsBuilder.java | brightgenerous/fx-player | apache-2.0 | 1,819 | 81 | codeparrot/github-code |
89cd0b8e84af5ecc47e7f20a51f1219b1e01244ac62b8e99ea754b1ccf31827b | package stepdefinitions;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.argThat;
import static org.mockito.Matchers.contains;
import static org.mockito.Matchers.eq;
import static org.mockito.Matchers.ref... | Java | java/src/test/java/stepdefinitions/ReportingTest.java | shell88/bdd_videoannotator | apache-2.0 | 8,104 | 197 | codeparrot/github-code |
9faf25cfb229eb70e26b08624ddc2bd13e68d9fa9060ca43dd7f74346db7c26f | require 'test/minirunit'
test_check "Test Runtime Callbacks:"
$singleton_method_list = []
$instance_method_list = []
class Foo
def Foo.singleton_method_added(id); $singleton_method_list << id.id2name; end
def Foo.method_added(id); $instance_method_list << id.id2name; end
def self.one; end
def two; end
clas... | Ruby | jruby/src/test/testRuntimeCallbacks.rb | google-code/android-scripting | apache-2.0 | 775 | 38 | codeparrot/github-code |
1441fb7e521d8717bca3453d05d7925e669c6849bfc232e4e48ab88b1c6eb73e | // <copyright file="TracerProviderBuilderHosting.cs" company="OpenTelemetry Authors">
// Copyright The OpenTelemetry 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... | C# | src/OpenTelemetry.Extensions.Hosting/Implementation/TracerProviderBuilderHosting.cs | open-telemetry/opentelemetry-dotnet | apache-2.0 | 2,278 | 63 | codeparrot/github-code |
42ddd163f19a9b3cbca8b037254fac2a31a8e23b604e07f21402d8b2dc7ae210 | /*
* Copyright (C) 2010 Chandra Sekar S
*
* 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... | JavaScript | grasshopper/lib/context.js | tuxychandru/grasshopper | apache-2.0 | 16,361 | 528 | codeparrot/github-code |
be11ce06fa2e34e295c094fb3a74670accd625653b47f91ab1dd72ca6c2548ad | package rest
import (
"fmt"
"io"
"net/http"
"github.com/tliron/kutil/ard"
"github.com/tliron/kutil/js"
"github.com/tliron/prudence/platform"
)
//
// RepresentationFunc
//
type RepresentationFunc func(context *Context) error
func NewRepresentationFunc(function interface{}, jsContext *js.Context) (Representati... | GO | rest/representation.go | tliron/prudence | apache-2.0 | 10,452 | 410 | codeparrot/github-code |
912e0fab613daf528ff5d6e936f207e19a71ae0d1ebd09bde2891835cf28b098 | /* Copyright 2014 Open Ag Data Alliance
*
* 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... | JavaScript | error.js | OADA/oada-error-js | apache-2.0 | 3,734 | 145 | codeparrot/github-code |
09b88f479ad3e7c97ef340971e2e60331c3f8f1806fb2c76dd14a0821e2cd079 | /*
* Copyright 2009-2016 European Molecular Biology 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 a... | Java | app/webapp/src/main/java/uk/ac/ebi/fg/annotare2/web/gwt/editor/client/view/EditorLogBarViewImpl.java | arrayexpress/annotare2 | apache-2.0 | 2,651 | 69 | codeparrot/github-code |
82f53eb99fab0a812e79e622a4a0b5ff6583113f37b2efa64628bce1064f9ba1 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Persistent toolbars - jQuery Mobile Demos</title>
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,4... | HTML | axis200-rc/themes/defualt/jquery.mobile-1.4.4/demos/toolbar-fixed-persistent/index.html | udarakr/sketches | apache-2.0 | 4,419 | 87 | codeparrot/github-code |
08cc85a4e3b6c407c415c69145ae45b3b2020047ecbcd4761bcc3924259067d1 | /**
* This file is part of the Iritgo/Aktera Framework.
*
* Copyright (C) 2005-2011 Iritgo Technologies.
* Copyright (C) 2003-2005 BueroByte GbR.
*
* Iritgo 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 m... | Java | aktera-ui/src/main/java/de/iritgo/aktera/ui/el/ExpressionLanguageContext.java | iritgo/iritgo-aktera | apache-2.0 | 6,761 | 251 | codeparrot/github-code |
a7cc98bfa70bf937cecb83d0aa49ee2244b39fda435ffb6a413842e4840c46f3 | <html>
<head>
<title>Not-Yet-Commons-SSL - Utilities</title>
<style type="text/css">
h1, h2, h3 { margin: 0; border: 0; padding: 0; font-size: 100%; }
h1 { float: left; color: red; }
b.n { font-family: arial; font-weight: bold; }
span.hl { color: white; background-color: green; }
div.nav { float: left; margin-left: 20p... | HTML | docs/utilities.html | dvandok/not-yet-commons-ssl-debian | apache-2.0 | 4,118 | 92 | codeparrot/github-code |
edbcc6fd6af437333740b89e7679322b58d1f6bbb8e60568c62230277ad382fa | /*
* 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 ... | Scala | sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/SQLKeywordSuite.scala | vinodkc/spark | apache-2.0 | 8,080 | 205 | codeparrot/github-code |
b6e756724acffb226385875cfb8e6a1425f4c5020ed34fa659535d376cf26e85 | /*
* Copyright 2012-2013 eBay Software Foundation and selendroid committers.
*
* 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... | Java | selendroid-server/src/main/java/io/selendroid/server/model/AndroidNativeElement.java | popwich/test_selendroid | apache-2.0 | 16,268 | 532 | codeparrot/github-code |
45a3d1036842d7f52b51ea5f61bb2c1c5eecb6ae6b70a0a2e030032025c1ff36 | /*******************************************************************************
* Copyright [2014] [Joarder Kamal]
*
* 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
*
* ... | Java | oltpdbsim/src/main/java/utils/Utility.java | joarder/oltpdbsim | apache-2.0 | 11,115 | 406 | codeparrot/github-code |
1d3c3d06b7fdbda280851acef69f1f51cdb610e03c54efec3689b6baf3b59d1e |
package com.netflix.staash.test.core;
import org.apache.cassandra.service.CassandraDaemon;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
public class StaashDeamon extends CassandraDaemon {
private static final Logger logger = LoggerFactory.getLogger(StaashDeamon.class);
... | Java | staash-web/src/test/java/com/netflix/staash/test/core/StaashDeamon.java | Netflix/staash | apache-2.0 | 919 | 43 | codeparrot/github-code |
f279c7d30e52b49b3f2dc4ddbac421cb9d8c63f6a132f13156b72400ebf6edeb | package org.wikiup.plugins.wmdk.action;
import java.util.Iterator;
import org.wikiup.core.Wikiup;
import org.wikiup.core.impl.Null;
import org.wikiup.core.inf.Attribute;
import org.wikiup.core.inf.BeanContainer;
import org.wikiup.core.inf.Document;
import org.wikiup.core.util.Documents;
import org.wikiup.co... | Java | plugins/wmdk/src/org/wikiup/plugins/wmdk/action/ContextServletAction.java | smantinc/wikiup | apache-2.0 | 5,203 | 118 | codeparrot/github-code |
1cdfeed4f620970009237bc841bf150e5d6995a79a6582988574ffaac1e05d6a | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | Java | test/com/facebook/buck/core/model/actiongraph/computation/ActionGraphProviderTest.java | JoelMarcey/buck | apache-2.0 | 18,423 | 430 | codeparrot/github-code |
fc45425a3131cf251599ee6e225bc6687d730721d719e654cdd2c763e3c6082e | package org.apache.flume.interceptor;
import org.apache.flume.Event;
import org.apache.flume.interceptor.service.ICacheService;
import org.springframework.context.ApplicationContext;
import org.testng.Assert;
import org.testng.annotations.Test;
public class CacheableInterceptorTest {
@Test
public void testSp... | Java | src/test/java/org/apache/flume/interceptor/CacheableInterceptorTest.java | keedio/flume-cacheable-interceptor-skeleton | apache-2.0 | 1,147 | 40 | codeparrot/github-code |
de968abc5746c23e0078b116f63143e88a258c34917d11ee692ee6618769f2c2 | /**
* 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... | Java | src/test/org/apache/hadoop/hdfs/TestFileAppend.java | dongpf/hadoop-0.19.1 | apache-2.0 | 11,168 | 300 | codeparrot/github-code |
10c8fe855403a81bc1242781994669175328a57770b87224440268c6d2596659 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/fsx/FSx_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/fsx/model/DataRepositoryLifecycle.h>
#include <utility>
namespace Aws
{
template<typename ... | C | aws-cpp-sdk-fsx/include/aws/fsx/model/DeleteDataRepositoryAssociationResult.h | aws/aws-sdk-cpp | apache-2.0 | 4,430 | 133 | codeparrot/github-code |
685dba2f15d3c0fe7c1edb29031f89938b004f86d7ac5a805e9ded043e31b012 | package com.cloudata.util;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import com.google.common.hash.HashCode;
import com.google.common.hash.HashFunction;
import com.google.common.io.ByteSource;
import com.google.protobuf.ByteString;
public class ByteStrings {
public sta... | Java | cloudata-shared/src/main/java/com/cloudata/util/ByteStrings.java | justinsb/cloudata | apache-2.0 | 1,266 | 53 | codeparrot/github-code |
5838c5c0fa8389a4d6e197db4f2bc192a255c1d54a8cb430e2b11a79a7525963 | package com.JustYY.xiyoulibrary.model;
import java.util.List;
import java.util.Map;
import com.JustYY.xiyoulibrary.R;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
public... | Java | src/com/JustYY/xiyoulibrary/model/SearchResultAdapter.java | yuanguozheng/XiyouLibrary | apache-2.0 | 1,562 | 74 | codeparrot/github-code |
93e3026da936ac9de9a89eb62b51f203b38b0f0ae7f75754fa7578d4db8e6c28 | '''
Created on Feb 3, 2013
@author: bpurgaso
'''
from twisted.words.protocols import irc
from twisted.internet import protocol
from twisted.internet import reactor
from twisted.internet import threads
from ConfigManager import ConfigManager
from Authenticator import Authenticator
from subprocess import PIPE, STDOUT, ... | Python | hydra/Hydra.py | bpurgaso/hydra-ircbot | apache-2.0 | 9,993 | 266 | codeparrot/github-code |
9e1a79eaa2a39bca53966dc32c586a80fe13360f4291edb974ae19b8b4067dbd | //
// Created by Ray Jenkins on 4/27/15.
//
#ifndef CONSERVATOR_GETDATABUILDERIMPL_H
#define CONSERVATOR_GETDATABUILDERIMPL_H
#include <zookeeper.h>
#include "GetDataBuilder.h"
#include <iostream>
using namespace std;
class GetDataBuilderImpl : public GetDataBuilder<string> {
public:
virtual ~GetDataBuilderImp... | C | conservator-framework/src/GetDataBuilderImpl.h | rjenkins/conservator | apache-2.0 | 788 | 33 | codeparrot/github-code |
f4df103bdea0a12129b515c9046c00759137c4a816ebfe8d69eb6fc8162b0ab1 | """Support for Tibber."""
import asyncio
import logging
import aiohttp
import tibber
from homeassistant.const import (
CONF_ACCESS_TOKEN,
CONF_NAME,
EVENT_HOMEASSISTANT_STOP,
Platform,
)
from homeassistant.exceptions import ConfigEntryNotReady
from homeassistant.helpers import discovery
from homeassis... | Python | homeassistant/components/tibber/__init__.py | home-assistant/home-assistant | apache-2.0 | 2,333 | 83 | codeparrot/github-code |
ec4bf64631555e9b8e2333dd451e5fa4d6ca2978ce1ba8e1ac3f092c44710b8f | /*******************************************************************************
* Copyright (c) 2010 JVM Monitor project. All rights reserved.
*
* This code is distributed under the terms of the Eclipse Public License v1.0
* which is available at http://www.eclipse.org/legal/epl-v10.html
***********************... | Java | bundles/org.jvmmonitor.ui/src/org/jvmmonitor/internal/ui/views/JvmTreeLabelProvider.java | TANGO-Project/code-optimiser-plugin | apache-2.0 | 9,589 | 319 | codeparrot/github-code |
168a6e57b849902f5cbee96a09341179d5ba0b64149e16981ceccbb002a9dd19 | package com.dplugin.maven.plugins.properties.source;
import com.alibaba.druid.pool.DruidDataSourceFactory;
import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java... | Java | src/main/java/com/dplugin/maven/plugins/properties/source/JdbcTemplate.java | nayuan/properties-maven-plugin | apache-2.0 | 3,161 | 101 | codeparrot/github-code |
92cf76a5f7e8c511582e15545fb4168a0b9c7f757f0534734c0d6fa5f211d803 | ---
title: "Product Launches"
layout: post
date: 2016-09-15 11:00
tag: thoughts
blog: true
draft: false
author: artiannaswamy
summary: "Thoughts on launching a new product / process"
permalink: product-launches
---
Launching a new process / application / software / widget is so much more than just the development of t... | Markdown | _posts/2016-09-15-product-launches.markdown | aannasw/aannasw.github.io | apache-2.0 | 2,927 | 38 | codeparrot/github-code |
02840bc0794042ef7d6fd0212a00c04506636650a27596a147cf3c6fd34d09a4 | /*
* Copyright 2012-2017 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... | Java | aws-java-sdk-clouddirectory/src/main/java/com/amazonaws/services/clouddirectory/model/TagResourceResult.java | dagnir/aws-sdk-java | apache-2.0 | 2,231 | 72 | codeparrot/github-code |
eef391bc11df1871f7dc53ed8da07e3d2d2194899fb96bff71e4b8d259309dfe | "use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | JavaScript | app/components/transaction/transaction.component.js | helix46/solsof-ng2 | apache-2.0 | 12,623 | 258 | codeparrot/github-code |
16d881780574b12136596a249fcb107cda5b067da8f08dcde7e206380977a024 | package algo1.common;
public class HuiWen {
public static void main(String[] args) {
f2(123454321);
}
// 方法一
public static void f1(int n) {
if (n >= 10000 && n < 100000) {
String s = String.valueOf(n);
char[] c = s.toCharArray();
if (c[0]... | Java | src/test/java/algo1/common/HuiWen.java | lemonJun/Emmet | apache-2.0 | 1,058 | 41 | codeparrot/github-code |
141eeb88bf9d5d5b76666d0538b4d427c4d655e5c92aabd014a4c71f238d057b | /*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-route53resolver/src/main/java/com/amazonaws/services/route53resolver/model/transform/TagResourceResultJsonUnmarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 1,595 | 45 | codeparrot/github-code |
c3f99ed911144044ebc1e39f1cc0d8737009a9348d7c3cc08ed3170da55842cf | /*
* Copyright 2010-2017 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 "license" fil... | C | aws-cpp-sdk-cognito-idp/include/aws/cognito-idp/model/UserPoolPolicyType.h | cedral/aws-sdk-cpp | apache-2.0 | 2,599 | 89 | codeparrot/github-code |
3d9406703e22eb324e8f0ecf4f09ed341308acc59ca3a7cfb38c921d36abfd68 | /**
* Copyright 2017-2018 The OpenTracing Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Java | instrument-starters/opentracing-spring-cloud-jdbc-starter/src/main/java/io/opentracing/contrib/spring/cloud/jdbc/JdbcTracingProperties.java | opentracing-contrib/java-spring-cloud | apache-2.0 | 1,516 | 49 | codeparrot/github-code |
64a357a8b0f872d6b8d4bce31e4efe5417c255d5426e4391faafd6833221a250 | /**
* Opensec OVAL - https://nakamura5akihito.github.io/
* Copyright (C) 2015 Akihito Nakamura
*
* 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/... | Java | src/main/java/io/opensec/oval/model/unix/XinetdState.java | nakamura5akihito/opensec-oval | apache-2.0 | 8,524 | 391 | codeparrot/github-code |
d2df8731c454f00e4156951a5b5844717d1981b1851bc1a9e5a17b8a465c0ff9 | /*
* Copyright 2014,2015 agwlvssainokuni
*
* 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... | Java | goods/src/test/java/cherry/goods/crypto/AESDeterministicCryptoTest.java | agwlvssainokuni/springapp | apache-2.0 | 3,262 | 105 | codeparrot/github-code |
f13bf8673babd09d3a7bc809347884dae00bd34d065b97e3218a66a02094996b | /*
* Licensed under the Apache License, Version 2.0 (the "License") = 0;
* 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... | C | include/interconnect/accumulo/AccumuloServerFacade.h | phrocker/sharkbite | apache-2.0 | 5,675 | 142 | codeparrot/github-code |
b84594af6c722363866a614211acd09736afdb9df25e859d45ee9e322f451472 | /*
* Copyright 2010-2017 Boxfuse GmbH
*
* 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 ... | Java | flyway-core/src/test/java/org/flywaydb/core/internal/dbsupport/saphana/SapHanaSqlStatementBuilderSmallTest.java | IAops/flyway | apache-2.0 | 2,645 | 80 | codeparrot/github-code |
d7d2d4e9a833da8bacb86933eb762848d24240e373bc1a95d5ea0b51f0e5031e | /**
* @Copyright (c) BPulse - http://www.bpulse.me
*/
package me.bpulse.java.client.pulsesrepository;
import java.io.File;
import java.io.InputStream;
import java.sql.BatchUpdateException;
import java.sql.Blob;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java... | Java | src/main/java/me/bpulse/java/client/pulsesrepository/H2PulsesRepository.java | bpulse/bpulse-sdk-java | apache-2.0 | 22,218 | 637 | codeparrot/github-code |
a116d900d956149c4060914f30ba3f954f8b75dfed98c9694ddf78386450885f | /*
Copyright (c) 2011, Siemens Corporate Research a Division of Siemens Corporation
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.... | C++ | src/database/itk/generated/SoItkNaryMaximumImageFilter.cpp | OpenXIP/xip-libraries | apache-2.0 | 7,373 | 274 | codeparrot/github-code |
b79e7d68450d337946aaddd3307195fdce262232786813682b957a6ea309d043 | /*
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://duracloud.org/license/
*/
package org.duracloud.account.app.controller;
import java.util.HashSet;
import java.util.Iterator;
i... | Java | account-management-app/src/test/java/org/duracloud/account/app/controller/UserControllerTest.java | duracloud/management-console | apache-2.0 | 17,113 | 430 | codeparrot/github-code |
31b18e34b0c33001004a068ebd2387b71d8178bc3ba4ca4ff413c4958e7fe64b | using System;
using System.Linq;
namespace NuPattern.Runtime.Comparers
{
/// <summary>
/// A comparer that compares the string value of the first property of an element.
/// </summary>
public class FirstPropertyValueProductElementComparer : ProductElementComparer
{
/// <summary>
/... | C# | Src/Runtime/Source/Runtime.Extensibility/Comparers/FirstPropertyValueProductElementComparer.cs | NuPattern/NuPattern | apache-2.0 | 1,018 | 35 | codeparrot/github-code |
cd23ec0e8c763d32db90e072e3abd0b3292539dee3dfe9b3e4d1d68b9b3c7387 | # Copyright IBM Corp All Rights Reserved.
# Copyright London Stock Exchange Group All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
# -------------------------------------------------------------
# This makefile defines the following targets
#
# - all (default) - builds all targets and runs all tests/che... | Makefile | Makefile | magg/fabric | apache-2.0 | 13,797 | 384 | codeparrot/github-code |
e2ec30f8ca2fc6fd8206ff7b85b56ea7e6134ae192bd7b2e519caf4323c2f515 | /*
Copyright 2016 Goldman Sachs.
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... | Java | reladomo/src/main/java/com/gs/fw/common/mithra/finder/charop/CharEqOperation.java | itohro/reladomo | apache-2.0 | 4,102 | 134 | codeparrot/github-code |
d84c7245d85c691c8a24923e6452da30eb57a0a3723007e962e14f36d8c7b64f | #
# Licensed to Cloudera, Inc. under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# Cloudera, Inc. licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file exc... | Shell | src/main/resources/functions/install_cm_java.sh | cloudera/whirr-cm | apache-2.0 | 2,776 | 88 | codeparrot/github-code |
5b3984a8fea3e5f141201c2764f1dfb525fcd060a9d5a46fc29fd01449155e72 | /**
*
* Copyright (c) 2006-2017, Speedment, 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 requ... | Java | src/main/java/com/speedment/common/codegen/internal/model/EnumImpl.java | Pyknic/CodeGen | apache-2.0 | 3,066 | 109 | codeparrot/github-code |
805525214fa22d6a1d5cabc1e82321301dd479bdac0b1e3663be7de91e688d79 | /*
* Copyright 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 applica... | Java | core/src/test/java/therian/operator/convert/ELCoercionConverterTest.java | mbenson/therian | apache-2.0 | 2,736 | 67 | codeparrot/github-code |
307341090c5fbca11413872b55dca28ec0ad96e0e3733b262f560cdbf1a7ccb6 | /*
* Copyright 2017 Facebook, 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... | C++ | folly/test/RangeFindBenchmark.cpp | Orvid/folly | apache-2.0 | 10,531 | 411 | codeparrot/github-code |
7f397ae88aae9f485f518a5e0fcbd6fbd320824635b3c2b17c7d27997dfe0dd8 | package org.docksidestage.postgresql.dbflute.bsentity.dbmeta;
import java.util.List;
import java.util.Map;
import org.dbflute.Entity;
import org.dbflute.dbmeta.AbstractDBMeta;
import org.dbflute.dbmeta.info.*;
import org.dbflute.dbmeta.name.*;
import org.dbflute.dbmeta.property.PropertyGateway;
import org.dbflute.dbw... | Java | src/main/java/org/docksidestage/postgresql/dbflute/bsentity/dbmeta/MemberStatusDbm.java | dbflute-test/dbflute-test-dbms-postgresql | apache-2.0 | 12,243 | 192 | codeparrot/github-code |
3b94210262be765806e4b3bad77cc95a7b1303a8bdfe290932fa0f4f4ebbd6ac | /*
* 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... | Java | presto-main/src/test/java/com/facebook/presto/sql/planner/TestInterpretedFilterFunction.java | FlxRobin/presto | apache-2.0 | 6,922 | 209 | codeparrot/github-code |
a1b5a620a9f0ae2db69759c42dd8eeaf908affa45575b455a0634e3070be3154 | /*
* Copyright 2016 Davide Maestroni
*
* 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 agree... | Java | stream/src/test/java/com/github/dm/jrt/stream/transform/TransformationsTest.java | davide-maestroni/jroutine | apache-2.0 | 28,083 | 706 | codeparrot/github-code |
c52372fd44cde495114c1fa947c5ba497f85ab306bdff1c2f899a54e478a4e47 | /**
* Copyright 2016 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... | JavaScript | extensions/amp-a4a/0.1/amp-a4a.js | shawnbuso/amphtml | apache-2.0 | 66,004 | 1,809 | codeparrot/github-code |
e4a4da2646a567f4c07c14f7d053a7d8f763bbda8c26d23922ff066391118de6 | /*
* Gap Data
* Copyright (C) 2009 John Pritchard
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This p... | Java | src/json/Primitive.java | syntelos/json | apache-2.0 | 5,415 | 189 | codeparrot/github-code |
77d960289e263e83e76a98fc98896be7be1c8bfd11a4a20588e6c288672fa0f8 | /*
* Copyright 2017 B2i Healthcare Pte Ltd, http://b2i.sg
*
* 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 ... | Java | core/com.b2international.snowowl.datastore/src/com/b2international/snowowl/datastore/request/job/CancelJobRequest.java | IHTSDO/snow-owl | apache-2.0 | 1,322 | 44 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.