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 |
|---|---|---|---|---|---|---|---|---|
6c7a5c4787938ea3cf5edf3e519333d85c27899df6f84d3763a42d5aab789f08 | #pragma once
#include "stdafx.h"
class KBoard
{
public:
typedef function<void(KBoard*, unsigned char, bool, void*)> KBoardButtonPressCallback;
typedef function<void(KBoard*, unsigned char, void*)> KBoardBendChangedCallback;
KBoard();
~KBoard();
bool GetIsRunning() { return isRunning; }
bool Startup(KBoardBut... | C | src/KBoardControlLibrary/KBoard.h | dsmithson/KBoardProcessController | apache-2.0 | 972 | 36 | codeparrot/github-code |
6031df946089495c17661e5f4b00f1d8cae3fb3dde91d82e0b24185d92c9d91e | /**
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version
* 2.0 (the "License"); you may not ... | Java | storm-core/src/jvm/org/apache/storm/command/UploadCredentials.java | erikdw/storm | apache-2.0 | 5,278 | 108 | codeparrot/github-code |
94b0d9d51afa5b474cb27bd659b31216bce0dfdf6bc2d86e2ea018dcad669007 | package controladores;
import java.util.List;
import componente.piso.Piso;
import componente.techo.Techo;
import inmueble.Inmueble;
public class Main {
public static void main(String[] args) {
Manager managerInmueble = Manager.getInstance();
managerInmueble.cargarDatos();
List<Inmueble> inmuebles = manag... | Java | src/controladores/Main.java | ramoncenturion/apps-informaticas | apache-2.0 | 1,603 | 55 | codeparrot/github-code |
4d1aee04474ba5d07dc6bd186ee338e776b6f76485247dd6c29fb754d95b87df | package com.cloud.storage.download;
import com.cloud.agent.Listener;
import com.cloud.agent.api.AgentControlAnswer;
import com.cloud.agent.api.AgentControlCommand;
import com.cloud.agent.api.Answer;
import com.cloud.agent.api.Command;
import com.cloud.agent.api.StartupCommand;
import com.cloud.agent.api.StartupRouting... | Java | cosmic-core/server/src/main/java/com/cloud/storage/download/DownloadListener.java | remibergsma/cosmic | apache-2.0 | 13,757 | 383 | codeparrot/github-code |
ed341b9886e77ac40436d2d41745a78cc1b7b36c2cf4a9f7064637d9873107c6 | package com.ijones.riotpojos;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import java.util.List;
/**
* Created with IntelliJ IDEA.
* User: ijones
* Date: 12/11/13
* Time: 3:04 PM
* To change this template use File | Settings | File Templates.
*/
public class PlayerStatsSummaryList {
@... | Java | src/main/java/com/ijones/riotpojos/PlayerStatsSummaryList.java | iaj6/riotAPI | apache-2.0 | 996 | 39 | codeparrot/github-code |
5011bf09abf9918fc91b93c6c60f54ed817bd206fbc11413ca933173702e718d | package org.docksidestage.db2.dbflute.cbean.bs;
import org.dbflute.cbean.AbstractConditionBean;
import org.dbflute.cbean.ConditionBean;
import org.dbflute.cbean.ConditionQuery;
import org.dbflute.cbean.chelper.*;
import org.dbflute.cbean.coption.*;
import org.dbflute.cbean.dream.*;
import org.dbflute.cbean.sqlclause.S... | Java | src/main/java/org/docksidestage/db2/dbflute/cbean/bs/BsWithdrawalReasonCB.java | dbflute-test/dbflute-test-dbms-db2 | apache-2.0 | 27,891 | 501 | codeparrot/github-code |
f2e9f9fa8c6727e2b8f6c764f46f0dc5d2be2ce89cfe50b9a176b3a1c9bd1b3a | import re
from sqlalchemy.sql import func
from sqlalchemy.types import String, TypeDecorator
# https://bitbucket.org/zzzeek/sqlalchemy/issues/3729/using-array_agg-around-row-function-does
class ArrayOfRecord(TypeDecorator):
_array_regexp = re.compile(r"^\{(\".+?\")*\}$")
_chunk_regexp = re.compile(r'"(.*?)"... | Python | zeus/db/func.py | getsentry/zeus | apache-2.0 | 1,373 | 41 | codeparrot/github-code |
be4c059ef1e2327247b99b37200d36507eed85cdc10c73d286651093f3392b15 | /*
* Copyright 2016 DiffPlug
*
* 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 ... | Java | plugin-maven/src/main/java/com/diffplug/spotless/maven/ArtifactResolver.java | jbduncan/spotless | apache-2.0 | 3,170 | 86 | codeparrot/github-code |
6c389e49bc59b93a307f04f786051da23d2d3fe5707503bb76b8428cd2631c96 | namespace Appleseed.Services.Base
{
public static class CollectionItemType
{
//Web/File
public const string PAGE = "Page";
public const string FILE = "File";
//Appleseed
public const string MODULE = "Module";
//Nut... | C# | Projects/Appleseed.Services.Base.Model/CollectionItemType.cs | Appleseed/base | apache-2.0 | 951 | 31 | codeparrot/github-code |
9c5f9c3b09a98f8ac636619d0e4e9f59110c7a3c2c04bcc636ace764ed02692b | /*
* 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 ... | Java | stack/core/src/main/java/org/apache/usergrid/persistence/cassandra/QueryProcessor.java | mesosphere/usergrid | apache-2.0 | 23,442 | 722 | codeparrot/github-code |
d0eea08de344bd79db72fecdeffb892fca42349d8852c8c677c491fdd15f3ebe | /*
* Copyright (c) 2016. Papyrus Electronics, 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 applica... | Java | app/src/main/java/com/taptrack/tcmptappy/utils/DrawableTinter.java | TapTrack/TappyBLE | apache-2.0 | 1,563 | 40 | codeparrot/github-code |
20001a75fd0f7b56304c7bbab1e4283f803645c73108599ccc7066ab357bfa3d | // Copyright 2015 CBS Interactive Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | C++ | src/PathCondModule.C | bgt101/mod_rum | apache-2.0 | 17,312 | 573 | codeparrot/github-code |
5371891e040a1e1baaf160fa73f364e392a4a040e9f84553c4fe1da1b5b29d05 | <!DOCTYPE html >
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>ScalaTest 3.0.1 - org.scalatest.events.IndentedText</title>
<meta n... | HTML | public/scaladoc/3.0.1-2.12/org/scalatest/events/IndentedText.html | scalatest/scalatest-website | apache-2.0 | 58,241 | 905 | codeparrot/github-code |
4cf833dd853b6071604a672088e33272298b4e2becce2cbee9b8dd8ad55bafec | package org.metis.pull;
import static org.junit.Assert.*;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.Map;
import org.junit.BeforeClass;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
import org.springframework.http.HttpEntity;
import org.s... | Java | src/test/java/org/metis/pull/ClientIntegerTest.java | mymetis/metis | apache-2.0 | 7,210 | 179 | codeparrot/github-code |
a2a470f63c94d59f2eccd165be0a6af7df8190407df30440c75a94cf1b44acd0 | -- English localization file for enUS and enGB.
local AceLocale = LibStub:GetLibrary("AceLocale-3.0");
local L = AceLocale:NewLocale("iction", "enUS", true, true);
if not L then return; end
--- Login
L["LOGIN_MSG1"] = "\124c00FFFF44[ictionInfo] Loaded Iction UI. Use /iction options for option ui "
L["LOGIN_MSG2"] = "\1... | Lua | locales/english_ui.lua | jamesbdunlop/iction | apache-2.0 | 2,327 | 51 | codeparrot/github-code |
89609367685fe10a46cede5b05f22ad7e2e1b601b122e44707f7463f01ee1eb6 | <?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>Equality - ScalaTest 2.2.4 - org.scalactic.Equality</title>
<meta name="description" content="Equality - ScalaTest 2.2.4 - org.scalact... | HTML | public/scaladoc/2.2.4/org/scalactic/Equality$.html | scalatest/scalatest-website | apache-2.0 | 25,710 | 484 | codeparrot/github-code |
5cc09596dcf18d48a7ff092338e92309e48d4a465e6be94290489cc3c1100bc2 | package it.gcatania.auctionservice.utils;
import java.text.MessageFormat;
import it.gcatania.auctionservice.dataobjects.Item;
import it.gcatania.auctionservice.dataobjects.User;
public final class Checks {
private Checks() {}
public static IllegalArgumentException e(String message, Object... args) {
return... | Java | impl/src/main/java/it/gcatania/auctionservice/utils/Checks.java | ilCatania/auction-system | apache-2.0 | 957 | 37 | codeparrot/github-code |
177d4145d9a8a0e64e6d1c637e52223ff468f6edc8fe01290a747ca3c3a8b217 | <?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>org.scalatest.ParallelTestExecution</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<li... | HTML | public/scaladoc/1.7/org/scalatest/ParallelTestExecution.html | scalatest/scalatest-website | apache-2.0 | 39,869 | 519 | codeparrot/github-code |
652f7e8e8b16cd55391549d2abeb49ed5b88722c09eb4ea647db005d57b03fd1 | /*
* Copyright 2013 The Error Prone 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 agre... | Java | core/src/main/java/com/google/errorprone/refaster/Unifier.java | cushon/error-prone | apache-2.0 | 7,050 | 203 | codeparrot/github-code |
b6ff6344ceeeb098f4a5ccb79e805b97c94d35ed4e71175dcf2afd80b013583d | /*
* Copyright 2013 Amadeus s.a.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 agreed to i... | JavaScript | test/aria/templates/repeater/testFive/RepeaterTestFiveScript.js | flongo/ariatemplates | apache-2.0 | 1,482 | 39 | codeparrot/github-code |
5b008d1ad83189047829b748922a89e5767cba3006b0da860e06ac9b5474cd9f | # Copyright 2019 The Bazel 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... | Python | utils/logger.py | bazelbuild/bazel-bench | apache-2.0 | 1,409 | 45 | codeparrot/github-code |
b3eb1bdc1511bf742191672edb7998ffd54f0dcfb1ad88b155c76f3923b1529d | package com.tang.study.simpleweather.activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceManager;
import android.support.v4.view.GravityCompat;... | Java | src/main/java/com/tang/study/simpleweather/activity/WeatherActivity.java | shuimingTang/weathertest | apache-2.0 | 11,565 | 289 | codeparrot/github-code |
628f5a206d884f8268827f769a0bc29d2f8614c55dfcced7117e5bb56492209c | /**
* GRAPPELLI UTILS
* functions needed for Grappelli
*/
// grp jQuery namespace
var grp = {
"jQuery": jQuery.noConflict(true)
};
// django jQuery namespace
var django = {
"jQuery": grp.jQuery.noConflict(true)
};
var inputTypes = [
"[type='search']",
"[type='email']",
"[type... | JavaScript | grappelli/static/grappelli/js/grappelli.js | darknight-007/agdss-1 | apache-2.0 | 5,860 | 175 | codeparrot/github-code |
ea2b800cf4982beb16da5d3d4906a04de90c7845a6b2b29c6d5523a37e2e6d1f |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>numpy.round — NumPy v1.8 Manual</title>
<... | HTML | Documentation/numpy/reference/generated/numpy.round_.html | leesavide/pythonista-docs | apache-2.0 | 6,832 | 155 | codeparrot/github-code |
7ec31f82eff83ef64acaa68013d4bf96c3eb83f0d54c8e16dd3ae58ea84a87bf | package com.kartech.locationtracker;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.pm.PackageManager;
import android.location.Criteria;
import android.location.Location;
import android.location.LocationManager;
import android.os.AsyncTask;
import android.os.Bundle;
import an... | Java | MyApplication/app/src/main/java/com/kartech/locationtracker/PlacesActivity.java | aniketk3003/Test | apache-2.0 | 8,260 | 223 | codeparrot/github-code |
9b1d4caf9c1416f2c43bdebfa58b3e34ae797ffead91c706cdc0da2d60502031 | /**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.common.service;
import java.util.List;
import com.thinkgem.jeesite.common.persistence.BaseEntity;
import com.thinkgem.jeesite.common.utils.StringUtils;
import com.thinkgem.... | Java | src/main/java/com/thinkgem/jeesite/common/service/BaseService.java | leiyaoshun/jeesite | apache-2.0 | 7,266 | 195 | codeparrot/github-code |
6bfb8f2ba9ea112f24677a30651b5fec26bdba09164df328b8a92e2be42473ac | package marathon
import (
"fmt"
"github.com/ContainX/depcon/pkg/encoding"
"github.com/donovanhide/eventsource"
"net/http"
)
func (c *MarathonClient) CreateEventStreamListener(channel EventsChannel, filter int) error {
c.Lock()
defer c.Unlock()
// no-op if already listening on a stream
if c.eventStreamState !... | GO | marathon/event.go | gondor/depcon | apache-2.0 | 2,008 | 91 | codeparrot/github-code |
30934a778c87cdbe60d740e403b7203da49a5d92990f3daf0fe34b13a8509b21 | import os
import base64
from requests import Session, Request
from OpenSSL import crypto
url = 'http://ct.googleapis.com/aviator/ct/v1/get-roots'
s = Session()
r = Request('GET',
url)
prepped = r.prepare()
r = s.send(prepped)
if r.status_code == 200:
roots = r.json()
# RFC 6962 defines the cert... | Python | fetchroots.py | wgoulet/CTPyClient | apache-2.0 | 1,184 | 40 | codeparrot/github-code |
5adbb559fb28a970975822f6e7092cfac0f1b51dfec9a8897e20de5590136772 | /**********************************************************************
*<
FILE: shadbuf.h : Shadow buffer renderer.
DESCRIPTION:
CREATED BY: Dan Silva
HISTORY:
*> Copyright (c) 1994, All Rights Reserved.
**********************************************************************/
#ifndef __SHADBUF__H
#define __... | C | Tools/MaxExporter/MaxSDKs/2010/include/shadbuf.h | LiangYue1981816/CrossEngine | apache-2.0 | 5,651 | 123 | codeparrot/github-code |
c3dcd24d19310c26fd2037e138b71e1ee5f3fa6029569adefbda4e175a88f511 | // Copyright 2014 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | GO | container/raw/handler.go | Clever/cadvisor | apache-2.0 | 15,657 | 553 | codeparrot/github-code |
b6f984830172ddf9da0be7eac0644a05d730b743ce2c4a0506aee11ad1cd5734 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you m... | Java | policy/src/main/java/org/apache/wss4j/policy/model/SamlToken.java | clibois/wss4j | apache-2.0 | 5,116 | 130 | codeparrot/github-code |
71cb13082e2eed5d6c8e32b648a1e29326edee57b3e21802409564b7a5065cc3 | <?php
/**
* Copyright (c) 2017-2019 Mastercard
*
* 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 la... | PHP | simplifycommerce.php | simplifycom/simplify-prestashop-module | apache-2.0 | 36,184 | 901 | codeparrot/github-code |
cf59b569de5de4c578a76c8a3795b00d82341881b25226424edc32da1e937033 | /*
* Copyright 2017 Robert Reinhart.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | C | Utility/DataCode.h | RobR89/KayLib | apache-2.0 | 4,536 | 114 | codeparrot/github-code |
531a2da420d746c2225760f798a60795ec3a464b87163958dcacb197cd1a93f0 | /*
* Copyright 2017 Young Digital Planet S.A.
*
* 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... | Java | src/test/java/eu/ydp/empiria/player/client/module/ordering/view/OrderInteractionViewImplJUnitTest.java | YoungDigitalPlanet/empiria.player | apache-2.0 | 5,101 | 124 | codeparrot/github-code |
f461094a3af0b6cdc0a22a76fdbf72dc5f7bf59afff1741a1d3b0c5fd97b5c3b | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | Java | Source/Plugins/Core/com.equella.base/src/com/dytech/edge/wizard/beans/control/HtmlEdit.java | equella/Equella | apache-2.0 | 1,229 | 40 | codeparrot/github-code |
bf5636f6cde818faa0410372fdbb949a43050f6dc02ee5b16827e5265d1e380f | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | Python | airflow/www/decorators.py | dhuang/incubator-airflow | apache-2.0 | 3,563 | 111 | codeparrot/github-code |
64caa245b0057a615fefb255742f7177db448ad59769d0869df3afbc086ab240 | using System.Collections.Generic;
using System.Composition;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Host.Mef;
namespace RoslynPad.Roslyn.Snippets
{
public interface ISnippetInfoService
{
IEnumerable<SnippetInfo> GetSnippets();
}
[ExportLanguageService(typ... | C# | src/RoslynPad.Roslyn/Snippets/SnippetInfoService.cs | aelij/roslynpad | apache-2.0 | 1,362 | 42 | codeparrot/github-code |
0d70749fa60fc207bcfe1a4e1243755e1d2c81dae096d12a18cb3e526c88d2c1 | package imageutil
import (
"image"
"runtime"
"sync"
)
// RP is a rectangle processor, any function that accepts a single
// image.Rectangle value as an argument.
type RP func(image.Rectangle)
// PP is a point processor, any function that accepts a single image.Point
// value as an argument.
type PP func(image.Poi... | GO | rectangle.go | buth/imageutil | apache-2.0 | 5,036 | 206 | codeparrot/github-code |
6a57bd1ff00496e6c52779f40107378904316d398b9f8399b00b845c76edd4c9 | /*
* Orika - simpler, better and faster Java bean mapping
*
* Copyright (C) 2011-2013 Orika 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.apach... | Java | core/src/main/java/ma/glasnost/orika/metadata/MapperKey.java | orika-mapper/orika | apache-2.0 | 2,175 | 87 | codeparrot/github-code |
e3c46fd5af44504da750ac9b3044da39a2b2d5cf1e4f715cdcf580278fae7e62 | /*
* Copyright 2006-2010 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 app... | Java | core/citrus-base/src/test/java/com/consol/citrus/endpoint/direct/DirectEndpointProducerTest.java | christophd/citrus | apache-2.0 | 3,646 | 111 | codeparrot/github-code |
bd332abe4b7a4d77d1e8d2eaef3687b06f523df50f241393a363aa0a48da8014 | <?php
use Slim\Http\Request;
use Slim\Http\Response;
// Routes
$db = new DB();
$app->get('/', function ($request, $response, $args) {
$get=$request->getQueryParams();
if(isset($get["month"]) && isset($get["year"])){
$_SESSION["filter"]["month"]=$get["month"];
$_SESSION["filter"]["year"]=$get["year"];
return... | PHP | src/routes.php | TSGames/MiniKassenbuch | apache-2.0 | 8,009 | 232 | codeparrot/github-code |
a4abad7ac4d7188e45d077451dec1262f49b877e2b20a2e67cd23c817ab7f6dc | /*
* Copyright (c) 2015 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org... | Scala | src/main/scala/com.snowplowanalytics/huskimo/channels/twilio/pricingProtocol.scala | snowplow/huskimo | apache-2.0 | 3,900 | 140 | codeparrot/github-code |
d336f0ac6ed3f168043c83fcdf079d641df5d2a441b1fc641252df1c44802c69 | /*
* Copyright 2012 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Java | wires-core/wires-core-client/src/main/java/org/kie/wires/core/client/factories/ShapeFactoryCache.java | Salaboy/wires | apache-2.0 | 2,154 | 66 | codeparrot/github-code |
4c24f6f20d1ba44c3960f59d688db26f528c58c25b27d708741d34fead4a7da0 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<!--
Smart developers always View Source.
This application was bu... | HTML | SampleCodeiServerJava6R/samplecode/Theme_Unique.html | SuperMap/iClient-for-Flash | apache-2.0 | 5,672 | 109 | codeparrot/github-code |
b0e509afe1f10acb43bbe55b4b16f1a89d6569851fd45a9ca1e5ce8b3c6b38c8 | #ifndef GENETICLINEARTRANSFORM_H
#define GENETICLINEARTRANSFORM_H
#include <vector>
#include <unordered_map>
#include <unordered_set>
#include "../../Assertions.h"
#include "../optimization/NumOptAlgoGenetic.h"
#include "../../misc/gnuplot/Gnuplot.h"
#include "../../misc/gnuplot/GnuplotPlot.h"
#include "../../misc/g... | C | math/linearTransform/GeneticLinearTransform.h | k-a-z-u/KLib | apache-2.0 | 16,296 | 620 | codeparrot/github-code |
0fbbc1e24e13610307e1fd059b15eb0f61ab70a1146620afc933f0c5b747b2ce | package org.fossasia.phimpme.gallery.activities;
import android.os.Bundle;
import android.os.Handler;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
... | Java | app/src/main/java/org/fossasia/phimpme/gallery/activities/ExcludedAlbumsActivity.java | phimpme/android-prototype | apache-2.0 | 7,092 | 211 | codeparrot/github-code |
84ebdf8791fc43fadc8021e6538613a76375e5e9865a50e1f85ac1ebde7b6cc3 | function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
delete obj[key];
}
return arg;
}
function Controller() {
function onWindowOpen() {
initialSetup();
loadComments();
}
function initialSetup() {
$.rightNavButton.addEve... | JavaScript | Resources/iphone/alloy/controllers/eventComments.js | elodimuore/eventhub | apache-2.0 | 5,284 | 165 | codeparrot/github-code |
230a9004a4d481f0aeb08e296b73b2ecae65d06b0d120b6e37bd40e3239171e5 | #define _POSIX_C_SOURCE 200809L
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <math.h>
#include <string.h>
#include <stdbool.h>
#include "rng.h"
#include "benchmark.h"
#include "jaccard_index.h"
void *aligned_malloc(size_t alignment, size_t size) {
void *mem;
if (posix_memalign(&mem, ali... | C | benchmarks/jaccard_benchmark.c | CountOnes/hamming_weight | apache-2.0 | 2,769 | 76 | codeparrot/github-code |
84eb065c0b80f5d6d643c8e89a1788bf14389604fceb517bcc1ac629a778bfef | import * as appInsights from 'applicationinsights';
export class LogHelper {
public static error(id: string, data: any) {
if (!id || !data) {
throw Error('You must provide a id and data');
}
const errorId = `/errors/server/${id}`;
let errorMessage = 'No Data';
if (data && data.message) {
... | TypeScript | server/src/logHelper.ts | projectkudu/WebJobsPortal | apache-2.0 | 1,297 | 52 | codeparrot/github-code |
8bbcc60c6e05eac028920745d0da932d3223cc62c25f54b0a59c15e672262414 | package controllers;
import play.*;
import play.mvc.*;
import play.libs.*;
import play.libs.F.*;
import akka.actor.*;
import java.util.*;
import java.text.*;
import scala.concurrent.duration.Duration;
import static java.util.concurrent.TimeUnit.*;
import static play.libs.EventSource.Event.event;
import views.html.... | Java | play24/java/eventsource-clock/app/controllers/Application.java | play2-maven-plugin/play2-maven-test-projects | apache-2.0 | 2,960 | 92 | codeparrot/github-code |
93705f0f1bf55e73e19afdb8116795ec2f4ea7fa753ab18730fc11011d667522 | package com.fasterxml.jackson.core.util;
import com.fasterxml.jackson.core.io.BigDecimalParser;
public class TestTextBuffer
extends com.fasterxml.jackson.core.BaseTest
{
/**
* Trivially simple basic test to ensure all basic append
* methods work
*/
public void testSimple()
{
Tex... | Java | src/test/java/com/fasterxml/jackson/core/util/TestTextBuffer.java | FasterXML/jackson-core | apache-2.0 | 6,755 | 209 | codeparrot/github-code |
92a23606ba9df9fa665a8da14ba3bfdb34fc6f83f1ad94676d878e4c4c98e98e | /*
* 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-textract/source/model/GetDocumentTextDetectionResult.cpp | cedral/aws-sdk-cpp | apache-2.0 | 2,684 | 95 | codeparrot/github-code |
d75ca36600f86c402d2fcc2f6e4e87b3ab86cad166c927de9b194c17f870527c | /*
* #%L
* ACS AEM Commons Bundle
* %%
* Copyright (C) 2014 Adobe
* %%
* 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 | bundle/src/main/java/com/adobe/acs/commons/replication/status/impl/JcrPackageReplicationStatusEventHandler.java | dfoerderreuther/acs-aem-commons | apache-2.0 | 22,878 | 506 | codeparrot/github-code |
9d39fdec31b2a0d18699531cd0facc9eaf5645d08a26e4b4cb98f83caacd09b9 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using qtools.Core;
using qtools.Core.CLI;
namespace qcat
{
class QCat : ICommand
{
private readonly Options _opts;
public QCat(Options opts)
{
_opts = opts;
}
public boo... | C# | qcat/QCat.cs | jondot/qtools | apache-2.0 | 835 | 40 | codeparrot/github-code |
a1057a5d60534edca38af88efcfd1512b3b8d5bbc75d7e23ef343dfe17ae4601 | /*
* Copyright 1999-2010 Luca Garulli (l.garulli--at--orientechnologies.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
... | Java | core/src/main/java/com/orientechnologies/orient/core/index/OIndexMVRBTreeAbstract.java | cloudsmith/orientdb | apache-2.0 | 17,737 | 668 | codeparrot/github-code |
232f5a5fd2bb279805c71280e33dfdde50f92127f2601a75d7952a1e8620c3e2 | /*
* 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 | flink-runtime/src/test/java/org/apache/flink/runtime/io/network/partition/InputGateFairnessTest.java | gyfora/flink | apache-2.0 | 12,646 | 391 | codeparrot/github-code |
7b8588683eee8580b4aebd215ff2a81b2bcfea36fc473c4a04b8fd6e19f20a43 | /*
*
* 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... | Java | traffic_router/core/src/main/java/com/comcast/cdn/traffic_control/traffic_router/core/router/TrafficRouter.java | knutsel/traffic_control-1 | apache-2.0 | 28,960 | 774 | codeparrot/github-code |
cea2301e4e009a816979ec2f0eb3970f0d6eec6c73673480228885e5da3e3198 | package main
import (
"bufio"
"fmt"
"os"
"regexp"
"strconv"
)
func main() {
if len(os.Args) == 1 {
fmt.Println("Please provide either a file path or a number input")
} else {
input := os.Args[1]
file, err := os.Open(input)
if check(err) == false {
// looks like its a file path input
defer fil... | GO | factorials/main.go | benlaplanche/theregister-bluemix-challenge | apache-2.0 | 1,409 | 97 | codeparrot/github-code |
2a202642ca9782dc589ebd03f5cd2c427bdfcd1a13f6d162f008284855f765fb | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Kiwi - Kiwi.js</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/... | HTML | lib/kiwi.js/docs/modules/Kiwi.html | dfu23/swim-meet | apache-2.0 | 42,444 | 1,036 | codeparrot/github-code |
aec8ce3d02043cb7f06845253785906a71eb8b1f1f5046084e3ab0c1c962c245 | /*
* ====================================================================
* 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
... | Java | httpcomponents-core-4.4/httpcore/src/main/java/org/apache/http/protocol/UriPatternMatcher.java | cictourgune/MDP-Airbnb | apache-2.0 | 5,016 | 166 | codeparrot/github-code |
0a49f413a472b605d76387f882ec0d6b516e34ef78754164362d0fc1e895cc5a | package com.github.TKnudsen.timeseries.test;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import com.github.TKnudsen.timeseries.data.univariate.ITimeSeriesUnivariate;
import com.github.TKnudsen.timeseries.data.univariate.TimeSeriesUnivariate;
import com.github.TKnudsen.timeserie... | Java | src/main/java/com/github/TKnudsen/timeseries/test/TimeSeriesToolsTester.java | TKnudsen/timeSeries | apache-2.0 | 1,295 | 53 | codeparrot/github-code |
96ed886e98a4b0723beecea7351e9815dac986e727b1c8be6147bb9b7fd6e4ba | package main
import (
"fmt"
"math/rand"
"github.com/PalmStoneGames/polymer"
)
func init() {
polymer.Register("name-tag", &NameTag{})
}
type NameTag struct {
*polymer.Proto
ID int64 `polymer:"bind"`
Name string `polymer:"bind"`
NameChange chan *polymer.Event `polymer... | GO | examples/databind-event-channel/main.go | PalmStoneGames/polymer | apache-2.0 | 641 | 38 | codeparrot/github-code |
67cf1df21f9a1f59bac122de83b9d8732f914f437889ff977e3cd9aa3afa8567 | using System;
using System.Collections.Generic;
using System.Reflection;
using System.Reflection.Emit;
using System.Text;
using System.Linq;
using System.Linq.Expressions;
namespace Sofire.Dynamic.Factories
{
/// <summary>
/// 表示动态调用方法的委托。
/// </summary>
/// <param name="instance">方法的实例。<... | C# | src/Core/Sofire.Core/Components/Dynamic/Factories/DynamicMethodFactory.cs | treenew/sofire | apache-2.0 | 6,660 | 170 | codeparrot/github-code |
d731132f64c0c898b3ad852e51e03daf24b3f098a53b54004949fc8178df1a76 | /*
* 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 ... | Java | commons-vfs2-examples/src/main/java/org/apache/commons/vfs2/example/Shell.java | seeburger-ag/commons-vfs | apache-2.0 | 13,010 | 371 | codeparrot/github-code |
1502bb88efc759786a1b448d5967c69384e14527d65707bf727de1428da93189 | package com.sissi.protocol.muc;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import com.sissi.io.read.Collector;
import com.sissi.io.read.Metadata;
import com.sissi.protocol.message.Message;
/**
* @author kim 2014年3月8日
... | Java | src/main/java/com/sissi/protocol/muc/Invite.java | KimShen/sissi | apache-2.0 | 1,762 | 89 | codeparrot/github-code |
77c42eb53606c70c53c207603d15e0d187485fcde972ad3aa01d3d8495a090b0 | <!doctype html>
<html>
<h1>Browserscope OSCON 2011 Demo</h1>
<h2>Embed <a href="http://ua-parser.appspot.com/">UA-Parser</a>:</h2>
<div style="background: #ccc; padding: 5px; font-family: Courier">
<script src="https://www.browserscope.org/ua?o=js"></script>
</div>
<!-- A Simple Test Function: _bRunTest... | HTML | demo/static/oscon2011.html | elsigh/browserscope | apache-2.0 | 1,749 | 53 | codeparrot/github-code |
58e1ac9bd726dab4aa04f22934e08e17608e985db4b63877a03fd1d2f647ef5c | /*
* 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
* distribute... | Java | src/main/java/fontresize/FontSizeController.java | maxstrauch/fontresize | apache-2.0 | 2,626 | 77 | codeparrot/github-code |
2ee5964b4dafe4cdf42e1b46e505d91587a0195e8c047dc4b3ead979f015a589 | package org.gradle.test.performance.mediummonolithicjavaproject.p493;
import org.gradle.test.performance.mediummonolithicjavaproject.p492.Production9857;
public class Production9866 {
private Production9857 property0;
public Production9857 getProperty0() {
return property0;
}
public... | Java | my-app/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p493/Production9866.java | oehme/analysing-gradle-performance | apache-2.0 | 2,048 | 107 | codeparrot/github-code |
7590c5e3c6ad29202907a05237fe4aea320d3253594263428292e2ae451d35c4 | var sinon = require('sinon');
var chai = require("chai");
var expect = chai.expect;
var sinonChai = require("sinon-chai");
var assert = require("../lib/assertion");
chai.use(sinonChai);
describe('assertion', function(){
describe('value', function(){
it('should raise an error if the literal expectation does not ... | JavaScript | test/assertion_unit.js | jolshevski/shelltest | apache-2.0 | 2,217 | 70 | codeparrot/github-code |
16e5af2fba1f1fcaadf925ae4270fd86f8bf21348ff2da4685e8f328693b2baf | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* JFlex 1.6.1 *
* Copyright (C) 1998-2015 Gerwin Klein <lsf@jflex.de> *
* All rights reserved. *
* ... | Java | libraries/JFlex/jflex-1.6.1/src/main/java/jflex/NFA.java | ravileite/Compiladores | apache-2.0 | 30,384 | 1,044 | codeparrot/github-code |
1957cef62bab09540fce50c47afcf5ad2b5361859a28eb1bb5026a3033a5a1b2 | /*
* TrivialLayout.java
*
* Created on 24. September 2006, 09:00
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package org.huberb.httppost.ui;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.... | Java | nb-httppost/src/org/huberb/httppost/ui/TrivialLayout.java | bernhardhuber/netbeansplugins | apache-2.0 | 4,584 | 128 | codeparrot/github-code |
b8b2da21b3f91946eef06550b11b9b4c0430a787f0141b497106d660cf3e2e1e | import { useEffect, useState } from "react";
export enum Status {
Idle = "Idle",
Loading = "Loading",
Loaded = "Loaded",
Error = "Error",
}
/**
* Hook to embed a Unity Loader script.
* @param src The source of the unity loader
* @returns a hook that returns the status of the loader
*/
export function useU... | TypeScript | source/hooks/use-unity-loader.ts | jeffreylanters/react-unity-webgl | apache-2.0 | 2,668 | 88 | codeparrot/github-code |
e04e3c7ed87175bd2106ce79ea0abc00c45eaef4de77dfbfa4444edc044be1d5 | /**
* #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
* This file is part of the LDP4j Project:
* http://www.ldp4j.org/
*
* Center for Open Middleware
* http://www.centeropenmiddleware.com/
* #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
* ... | Java | commons/rmf/bean/src/main/java/org/ldp4j/rdf/bean/impl/TypeProcessorImpl.java | ldp4j/ldp4j | apache-2.0 | 15,202 | 489 | codeparrot/github-code |
5193c9606c00570720cee2746d774649c016acb2e811f4fb9dac840d7680d3ec | /*
* Color Schemes
* Nana C++ Library(http://www.nanapro.org)
* Copyright(C) 2003-2016 Jinhao(cnjinhao@hotmail.com)
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*
* @file: nana/gui/color_schemes.cpp
*/
#includ... | C++ | Brandisher/source/gui/detail/color_schemes.cpp | LiveAsynchronousVisualizedArchitecture/lava | apache-2.0 | 2,236 | 102 | codeparrot/github-code |
90608cdbaa25b886300acb1e29087dd47d23b61c69ffec60d8adedc0d09f24be | """jwzthreading.py
Contains an implementation of an algorithm for threading mail
messages, as described at http://www.jwz.org/doc/threading.html.
To use:
Create a bunch of Message instances, one per message to be threaded,
filling in the .subject, .message_id, and .references attributes.
You can use the .messa... | Python | jwzthreading.py | txsl/mail-trends | apache-2.0 | 10,294 | 354 | codeparrot/github-code |
932f98e0fec17b5a0a16a3b3b41c74940791b5f0f1e2774e96a510bd45040aef | class EmployeesController {
constructor(Employee) {
this.Employee = Employee;
}
getAll(req, res) {
return this.Employee.findAll({})
.then(result => res.send(result))
.catch(err => res.status(400).send(err.message));
}
getById(req, res) {
return this.Employee.findOne({ where: req.par... | JavaScript | controllers/employees.js | AmaralGuincho/api | apache-2.0 | 1,001 | 39 | codeparrot/github-code |
32427a09094328c0bdb1088fb48968cc4157bc37d498b031be1799b7e58573d7 | /*
* Copyright (c) 2009-2018, toby weston & tempus-fugit 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 | src/test/java/com/google/code/tempusfugit/concurrency/InterruptCapturingThreadTest.java | tobyweston/tempus-fugit | apache-2.0 | 4,431 | 97 | codeparrot/github-code |
30301270a32c07fafc08b6e77d8e92704e9354d805431327726c3a2248853a21 | # -*- coding:utf-8 -*-
#
# Copyright (C) 2008 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | Python | git_config.py | couchbasedeps/git-repo | apache-2.0 | 21,644 | 784 | codeparrot/github-code |
62aa4b9bbc138740ea9b1dd662e3ee8f8be7f616e660bb11c47be08f40247ddc |
package com.uwetrottmann.shopr.eval;
import android.content.ContentValues;
import android.content.Context;
import android.net.Uri;
import com.google.analytics.tracking.android.EasyTracker;
import com.uwetrottmann.shopr.provider.ShoprContract.Stats;
/**
* Stores data about the current task.
*/
public class Statist... | Java | Android/Shopr/src/main/java/com/uwetrottmann/shopr/eval/Statistics.java | UweTrottmann/Shopr | apache-2.0 | 2,946 | 99 | codeparrot/github-code |
53b45ac4e77bbb352e9129e77b0b52436859330e6fd8c50f5458bbce63f5b535 | /*
* 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 | java/core/src/test/org/apache/orc/impl/TestOrcFilterContextImpl.java | apache/orc | apache-2.0 | 7,268 | 203 | codeparrot/github-code |
4124484b5df6cc16efe789bd8090d64508ec8bcd59925c63fe725b91b3819aa9 | package jadx.gui.ui.codearea;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java... | Java | jadx-gui/src/main/java/jadx/gui/ui/codearea/FridaAction.java | jpstotz/jadx | apache-2.0 | 7,230 | 194 | codeparrot/github-code |
d71cb9428547bbdecfac4e18c20a041f223f9716075ab4caaf61744f70b06158 | /*
* Copyright 2014 Guy Bedford (http://guybedford.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 requ... | JavaScript | lib/build.js | rwaldron/jspm-cli | apache-2.0 | 17,112 | 569 | codeparrot/github-code |
47d240ab8e9186c3bc690a16179c8bed7883a52c57eb43bd7c830bd74cc3d331 | package pool
import (
// "fmt"
)
type ObjPool struct {
obj chan interface{}
New func() interface{}
}
func NewObjPool() *ObjPool {
return &ObjPool{
obj: make(chan interface{}, 200),
}
}
func (p *ObjPool) Get() interface{} {
select {
case o := <-p.obj:
return o
default:
return p.New()
}
}
func (p *ObjP... | GO | pool/obj_pool.go | noaway/utils | apache-2.0 | 642 | 51 | codeparrot/github-code |
d3433e566effda27b1705ce1b04cb6bad0db221533ac993e73ad64a137f63fac | /**
* Copyright Intellectual Reserve, 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... | Java | extensions/familysearch/familysearch-api-model/src/main/java/org/familysearch/platform/rt/FamilySearchPlatformModelVisitorBase.java | brenthale/gedcomx-java | apache-2.0 | 5,082 | 196 | codeparrot/github-code |
8935dd851508d06f9ce775df9f3796759a5218208d8a82048a7591b561aa22bd | // Copyright 2007-2017 Chris Patterson, Dru Sellers, Travis Smith, et. al.
//
// 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 ... | C# | src/MassTransit/Configuration/EndpointSpecifications/ReceiveEndpointSpecification.cs | jacobpovar/MassTransit | apache-2.0 | 7,545 | 185 | codeparrot/github-code |
a640827db94060aa845167f4064ccc4a00da84d6b217b4fd61ecab15d7a6ba79 | package com.sdl.dxa.modules.model.TSI1856;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.sdl.webapp.common.api.mapping.semantic.annotations.SemanticEntities;
import com.sdl.webapp.common.api.mapping.semantic.annotations.SemanticEntity;
import com.sdl.webapp.common.api.mapping.semantic.annotations.Se... | Java | webapp-java/dxa-module-test/src/main/java/com/sdl/dxa/modules/model/TSI1856/Tsi1856TestEntity.java | sdl/dxa-modules | apache-2.0 | 1,362 | 34 | codeparrot/github-code |
6c3509c57fba1efa57a0b30f1b5886456a0f3147c9f446a4a094c6ef75a366c3 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchdefinition.document;
import java.io.Serializable;
/**
* The rank settings given in a rank clause in the search definition.
*
* @author Vegard Havdal
*/
public class Ranking implements C... | Java | config-model/src/main/java/com/yahoo/searchdefinition/document/Ranking.java | vespa-engine/vespa | apache-2.0 | 2,406 | 77 | codeparrot/github-code |
fc90d8fc1b05d95b339871cec1231eb10238bf695e11c66d5377396976411440 | """Support for Sensibo wifi-enabled home thermostats."""
import asyncio
import logging
import aiohttp
import async_timeout
import voluptuous as vol
from homeassistant.components.climate import ClimateDevice, PLATFORM_SCHEMA
from homeassistant.components.climate.const import (
DOMAIN, SUPPORT_TARGET_TEMPERATURE, ... | Python | homeassistant/components/sensibo/climate.py | aequitas/home-assistant | apache-2.0 | 12,247 | 353 | codeparrot/github-code |
5dc2631e16e720f59f707b1016352645a0db27af988b7b7eff2b86fe0ed382fe | package org.infinispan.loaders.hbase.configuration;
import org.infinispan.configuration.cache.Configuration;
import org.infinispan.configuration.cache.ConfigurationBuilder;
import org.infinispan.loaders.hbase.HBaseCacheStoreConfig;
import org.testng.annotations.Test;
@Test(groups = "unit", testName = "loaders.hbase.c... | Java | src/test/java/org/infinispan/loaders/hbase/configuration/ConfigurationTest.java | infinispan/infinispan-cachestore-hbase | apache-2.0 | 3,249 | 70 | codeparrot/github-code |
c1e9e98096504924577a6ac1088218a4bb60b2b5ca684630f6ec6ba25dbd2519 | /*
* Copyright 2002-2006,2009 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | Java | src/main/java/com/opensymphony/xwork2/validator/ValidatorConfig.java | mikemaal/xwork-core | apache-2.0 | 4,554 | 178 | codeparrot/github-code |
9aa6454674f995764ea715e80eef3cab79071ce933633f15da4c676ded38580b | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.ui;
import com.intellij.CommonBundle;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.open... | Java | platform/platform-api/src/com/intellij/openapi/ui/DialogBuilder.java | leafclick/intellij-community | apache-2.0 | 12,883 | 447 | codeparrot/github-code |
826c628c048f40cde26bed1189e7e850e32a775f520a6841628d6f2793ccb4be | <?php
/**
* User: yongli
* Date: 17/4/26
* Time: 14:36
* Email: 626375290@qq.com
* Copyright: 川雪工作室
*/
namespace App\Libraries;
use Config\Email;
/**
* 邮件处理类
*
* Class YP_Email
*
* @package App\Libraries
*/
class YP_Email
{
/**
* email对象
*
* @var
*/
private $mail;
/**
... | PHP | app/Libraries/YP_Email.php | ly2513/YPPHP | apache-2.0 | 2,369 | 108 | codeparrot/github-code |
a6a2aee33453f3ee8cf96a4c4d564a32698ceea65f1dc53f18f36d25b0677b45 | /*
* Copyright 2012 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | Java | codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketClientHandshaker13.java | imangry/netty-zh | apache-2.0 | 7,119 | 187 | codeparrot/github-code |
08d165c420eec115f1eb7d2cf646c7fa8086e90c5ab277c7e61014c64642c46f | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.groovy.lang.resolve;
import com.intellij.openapi.util.Key;
import com.intellij.psi.*;
import com.intellij.psi.impl.compiled.ClsClassImpl;
import com... | Java | plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/resolve/CollectClassMembersUtil.java | leafclick/intellij-community | apache-2.0 | 8,303 | 195 | codeparrot/github-code |
15db08efc4eca51d65ff8d85efaa5ed6da21c59222965f9eae94216e920cef23 | /*
* Copyright 2014 The Error Prone 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 | core/src/main/java/com/google/errorprone/refaster/PlaceholderUnificationVisitor.java | cushon/error-prone | apache-2.0 | 28,125 | 735 | codeparrot/github-code |
5687eff206d2b4e56cdfbd573ef5be26158a68979f51a848f3b46e98468eb1f5 | 'use strict';
/**
* @ngdoc function
* @name mesFrontendApp.controller:processShiftAnalyzeController
* @description
* # processShiftAnalyzeController
* Controller of the mesFrontendApp
*/
var app = angular.module('mesFrontendApp');
app.controller('processShiftAnalyzeController', ['$scope','$filter',... | JavaScript | app/scripts/controllers/processTask/processErrorTab/processShiftAnalyzeController.js | weilinghsu/mesFrontend | apache-2.0 | 8,973 | 280 | codeparrot/github-code |
ddff31fa6bb1289ab06af6bb1c344bbee8d27446e981b64ed0ba2222d24ccf76 | package com.baidubce.services.doc.model;
import com.baidubce.model.AbstractBceResponse;
import java.util.Date;
/**
* Created by baidu on 15/12/31.
*/
public class ReadDocumentResponse extends AbstractBceResponse {
private String documentId;
private String host;
private String docId;
private String t... | Java | src/main/java/com/baidubce/services/doc/model/ReadDocumentResponse.java | baidubce/bce-sdk-java | apache-2.0 | 1,972 | 85 | codeparrot/github-code |
279889dd7c00b065ed71aec0c2620ffa9460ac66a2e14c71c0f67f21d29c6fac | package com.sequenceiq.cloudbreak.domain.view;
import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.InstanceStatu... | Java | core-model/src/main/java/com/sequenceiq/cloudbreak/domain/view/InstanceMetaDataView.java | hortonworks/cloudbreak | apache-2.0 | 1,469 | 62 | codeparrot/github-code |
8b07f56009aaef3f166b21bcdc05affcdd459b1a562b12d9c81e2e01aab09110 | {% extends "base.html" %}
{% block title %}{{ article.title }} - {{ SITENAME }}{% endblock %}
{% block content %}
<article class="full">
<h1>{{ article.title }}</h1>
{% include 'metadata.inc.html' %}
{{ article.content }}
</article>
<p>
<a href="https://twitter.com/share" class="twitter-share-... | HTML | theme/templates/article.html | mrunge/blog | apache-2.0 | 1,265 | 34 | codeparrot/github-code |
7c5b9ed6e01770050e12e226b541716e45ef0d2e49663a5a45745880506968ff | /*
Copyright 2016 Skippbox, Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | GO | config/config.go | edevil/kubewatch | apache-2.0 | 2,278 | 80 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.