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 |
|---|---|---|---|---|---|---|---|---|
87f3df842f1a9741f040dea6da71b3c944af4676ca405417be279857a6065f57 | // Type definitions for Async 0.1.23
// Project: https://github.com/caolan/async
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface Dict<T> { [key: string]: T; }
interface ErrorCallback { (err?: Error): void; }
interface AsyncResu... | TypeScript | typings/async/async.d.ts | avenger-teamave/plywood | apache-2.0 | 6,727 | 123 | codeparrot/github-code |
5638dc4fc67bc059c365d6330fcf3dfc1ea2b42788e2b00b08f0d640d0ae97e9 | /*
* Copyright 2020 Red Hat, Inc. 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 ap... | Java | optaplanner-core/src/test/java/org/optaplanner/core/impl/testdata/domain/pinned/extended/TestdataExtendedPinnedSolution.java | tkobayas/optaplanner | apache-2.0 | 3,252 | 96 | codeparrot/github-code |
4d80edf9fa91b940a32d51dccbe78805cc2f6f74dceb24b5133482bbd4f68fa0 | using System;
using System.CodeDom;
using System.Collections.Generic;
using System.Threading;
using NUnit.Engine;
using NUnit.Engine.Runners;
using System.IO;
using System.Linq;
using CommandLine;
using ApiBestPracticeTestBase = Jab.Test.ApiBestPracticeTestBase;
namespace Jab.Console
{
/// <summary>
/// Entry... | C# | jab/jab.console/Program.cs | DimensionDataCBUSydney/jab | apache-2.0 | 4,635 | 139 | codeparrot/github-code |
fd76b52b813e0530327f4e6696964749336ec0e8d33887e475c59c419c8a7215 | using System;
using System.Collections.Generic;
using JCG = J2N.Collections.Generic;
using SubInfo = YAF.Lucene.Net.Search.VectorHighlight.FieldFragList.WeightedFragInfo.SubInfo;
using TermInfo = YAF.Lucene.Net.Search.VectorHighlight.FieldTermStack.TermInfo;
using WeightedPhraseInfo = YAF.Lucene.Net.Search.VectorHighl... | C# | yafsrc/Lucene.Net/Lucene.Net.Highlighter/VectorHighlight/WeightedFieldFragList.cs | Pathfinder-Fr/YAFNET | apache-2.0 | 3,703 | 83 | codeparrot/github-code |
a6459cb0ca81f0bec43bae63f1f5963842f18194bcb8f2a4b074dca909369187 | package com.flushoutsolutions.foheart.logic;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.ContentValues;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.database.sqlite.SQLiteDatabase;
... | Java | mobile/Foheart/app/src/main/java/com/flushoutsolutions/foheart/logic/PostData.java | FlushOut/foheart | apache-2.0 | 8,622 | 259 | codeparrot/github-code |
4d23d3085d8131b122af2ce721df201f8b6f520f6578ad4ee0164c0dba9bdbcf | /*
* Copyright (c) 2017 Otávio Santana and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
* The Eclipse Public License is available at http://ww... | Java | artemis/artemis-validation/src/test/java/org/eclipse/jnosql/artemis/validation/PersonBuilder.java | JNOSQL/diana | apache-2.0 | 1,354 | 53 | codeparrot/github-code |
521efed7c30f1a81e4e25df87013220143a44f7e487dc71b0703a69665d66c71 |
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Publish databases using disconnected publishing — Google Earth Enterprise 5.3.8 documentation</ti... | HTML | docs/geedocs/5.3.8/answer/fusionAdministration/publishDBWithDiscPublishing.html | tst-ccamp/earthenterprise | apache-2.0 | 19,009 | 327 | codeparrot/github-code |
6b5cc90b67439398415639ad8dc92daf315b803828699740a62d28006ceb82e8 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.mycompany.diplom.profile.authorizationpanel.parentprofilecomponents.changesinprofilebalance;
import com.mycompany.diplom.util.DataSource;
import java.sql.Connection;
import java.sql.SQLException;
import java... | Java | src/main/java/com/mycompany/diplom/profile/authorizationpanel/parentprofilecomponents/changesinprofilebalance/ProfileBalanceChangesDao.java | nortrix/cursovik | apache-2.0 | 1,217 | 41 | codeparrot/github-code |
20ecec72783dcc4cae19e294dd89ddb38f5ed80a130dd0b1bc9c10c26e694c43 | from flask import render_template
from flask.ext.appbuilder.models.sqla.interface import SQLAInterface
from flask.ext.appbuilder import ModelView
from app import appbuilder, db
"""
Create your Views::
class MyModelView(ModelView):
datamodel = SQLAInterface(MyModel)
Next, register your Views::
... | Python | app/old_views.py | msampathkumar/rms | apache-2.0 | 709 | 32 | codeparrot/github-code |
4e8d36779271047d5d62ddca2cc672bc766d61fe64a03b8d5e8643922ab18874 | package com.coolweather.app.model;
/**
* ³ÇÊÐʵÌåÀà
* id£¬³ÇÊÐÃû£¬³ÇÊдúÂ룬¶ÔÓ¦µÄÊ¡·Ýid
* @author µ¾²ÝÈË
*
*/
public class City {
private int id;
private String cityName;
private String cityCode;
private int provinceId;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
p... | Java | src/com/coolweather/app/model/City.java | SeriousWatermelon/coolweather | apache-2.0 | 712 | 40 | codeparrot/github-code |
e8401863e53d5c51d241ebf7d9cc2695c4691108e19bd6ec3fa821a006b9a8d2 | /*
* Copyright 2015-2021 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 | src/main/java/org/docksidestage/remote/maihama/showbase/balletdancers/index/RemoteBalletdancersPutParam.java | lastaflute/lastaflute-test-fortress | apache-2.0 | 1,505 | 52 | codeparrot/github-code |
600d57263af28733198cc37e0c62ce7620b872afdb23c6a21ca70f2d10efc20e | package org.esmerilprogramming.overtown.server.mounters.helpers;
import io.undertow.server.session.SessionListener.SessionDestroyedReason;
import org.esmerilprogramming.overtown.annotation.session.OnSessionCreate;
import org.esmerilprogramming.overtown.annotation.session.OnSessionDestroy;
import org.esmerilprogrammin... | Java | src/test/java/org/esmerilprogramming/overtown/server/mounters/helpers/TestSessionListener.java | EsmerilProgramming/overtown | apache-2.0 | 1,253 | 53 | codeparrot/github-code |
2e1795cadbf53e20b295abf44eed119d1630c338b25e926f251b1727da3a3898 | package apb
import (
logging "github.com/op/go-logging"
"github.com/pkg/errors"
)
// Deprovision - runs the abp with the deprovision action.
func Deprovision(instance *ServiceInstance, clusterConfig ClusterConfig, log *logging.Logger) (string, error) {
log.Notice("==================================================... | GO | pkg/apb/deprovision.go | shawn-hurley/ansible-service-broker | apache-2.0 | 1,816 | 45 | codeparrot/github-code |
ec4cf1e7aca142a7db91ca1ea58077ba9764177c427248b9cef648c75366b43c | package com.technologicaloddity.departments.controller;
import org.springframework.dao.*;
import org.springframework.stereotype.*;
import org.springframework.ui.*;
import org.springframework.validation.*;
import org.springframework.web.bind.annotation.*;
import com.technologicaloddity.departments.dao.*;
import com.te... | Java | src/main/java/com/technologicaloddity/departments/controller/MappedModelFormController.java | technologicaloddity/departments | apache-2.0 | 2,862 | 97 | codeparrot/github-code |
dcc3b2c29529a19c7fe0250feb250a455a9b687ef55b23c4b0f415bb86bf5bba | """
This module calls the AWS ListMetrics() API followed by multiple calls to
GetMetricStatistics() to get metrics from AWS.
A dictionary configured by the 'metrics' key in the configuration file is
used to determine which metrics should lead to a call to GetMetricStatistics().
Each metric value returned from GetMetr... | Python | wavefront/awsmetrics.py | wavefrontHQ/wavefront-collector | apache-2.0 | 18,849 | 477 | codeparrot/github-code |
14c262aa47e5e19783e3f6c1064709354e9c5f4f61921ac80c7d40bfe2260e98 | <?php
/**
* Copyright (c) 2013, Bjoern Schiessle <schiessle@owncloud.com>
* This file is licensed under the Affero General Public License version 3 or later.
* See the COPYING-README file.
*
* Script to change recovery key password
*
*/
\OCP\JSON::checkLoggedIn();
\OCP\JSON::checkAppEnabled('files_encryption')... | PHP | apps/files_encryption/ajax/updatePrivateKeyPassword.php | kebenxiaoming/owncloudRedis | apache-2.0 | 2,047 | 67 | codeparrot/github-code |
6c2a76979ce53a45341ae04d1c09a648bc8ec4980e486c71c1372a3f96365c82 | using System.Text;
using UnityEngine;
namespace SkylineToolkit.Debugging
{
public struct DebugConsoleLogMessage
{
private string _text;
private string _formatted;
private DebugConsoleMessageType _type;
private Color _color;
public Color Color
{
get... | C# | Source/SkylineToolkit/Debugging/DebugConsoleLogMessage.cs | DlkGames/SkylineToolkit | apache-2.0 | 3,876 | 113 | codeparrot/github-code |
57d48b40cffbd5f00bb78030c47fd30b289e1041015d6b44d054325ae3ded20f | package metrics
import (
"crypto/tls"
"crypto/x509"
"github.com/prometheus/client_golang/prometheus/promhttp"
"net/http"
"sync"
)
type Server struct {
certificateCh <-chan tls.Certificate
sync.Mutex
certificate *tls.Certificate
}
func (s *Server) getCertificate(clientHello *tls.ClientHelloInfo) (*tls.Certif... | GO | controller/metrics/server.go | JulianWei/kubernetes-vault | apache-2.0 | 1,221 | 70 | codeparrot/github-code |
6a3a08ae030751d52aef3a7ecad13f2bc2471d72540ae76c2e6a6def70a16bd6 | package com.cell.user.vo;
import java.io.Serializable;
import java.util.Date;
public class RoleVo implements Serializable {
private static final long serialVersionUID = 6413714144333037333L;
private Long id;
private String customerId;
private String name;
private String description;
priva... | Java | src/main/java/com/cell/user/vo/RoleVo.java | TonyYang9527/springboot-mybatis | apache-2.0 | 2,532 | 141 | codeparrot/github-code |
e863a5c8ef062925f2a9a84c912416deff48ad84d406989880f1fa9d97f9931f | <?php
/**
* This is the model class for table "category_translation".
*
* The followings are the available columns in table 'category_translation':
* @property integer $id_category_translation
* @property string $name
* @property integer $id_category
* @property integer $id_language
*/
class CategoryTranslatio... | PHP | models/CategoryTranslation.php | fipumjdeveloper/web | apache-2.0 | 2,935 | 102 | codeparrot/github-code |
59b36e806c7d60207dd2e18ac5a62494397b0054656839be4a929f11edb17c2d | package com.allstar.statistics;
import java.util.List;
import com.allstar.model.StatisResult;
/**
* 求解最小二乘法
* y=ax+b
* **/
public class LeastSquares {
private List<StatisResult> list;
private double a;
private double b;
public LeastSquares(List<StatisResult> list) {
this.list = list;
}
public void anal... | Java | src/com/allstar/statistics/LeastSquares.java | rogetfan/AnotherGraduateProject | apache-2.0 | 731 | 43 | codeparrot/github-code |
9711fc80e696a26e552b7de9f76682fc2d9487745e41d56828ca8cdd71a779a5 | namespace Zu.ChromeDevTools.Runtime
{
using Newtonsoft.Json;
/// <summary>
/// Represents function call argument. Either remote object id `objectId`, primitive `value`,
/// unserializable primitive value or neither of (for undefined) them should be specified.
/// </summary>
public sealed class ... | C# | ChromeDevToolsClient/Runtime/CallArgument.cs | ToCSharp/AsyncChromeDriver | apache-2.0 | 1,170 | 39 | codeparrot/github-code |
adc2c97dcf55232988ef1e51d19bd5d16efb5dad94de682a05f5932831b1ebfb | using System.Net;
using System;
using System.IO;
namespace Open.Sniffer
{
[Flags]
public enum TcpFlags
{
Fin = 1,
Syn = 2,
Rst = 4,
Psh = 8,
Ack = 16,
Urg = 32
}
public class TcpHeader
{
private readonly uint _uiAcknowledgementNumber=55... | C# | TcpHeader.cs | lontivero/Open.Sniffer | apache-2.0 | 3,005 | 86 | codeparrot/github-code |
63cafb326b19e07c18c8f31b8222e19515b895930f3e6db15b314f9871397c49 | // Copyright 2013-2014 Evernote, 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 agree... | JavaScript | ux/panel/Rack.js | proofpoint/cmdb-ui | apache-2.0 | 4,646 | 107 | codeparrot/github-code |
36ccb6cc94141a783a506b50063dd38d60420d6f1d2d1ad9617d727a7a447dc5 | #region License
// Copyright (C) 2015 Alexander Krutov
//
// 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... | C# | Radish/Templates/AbstractTemplateSet.cs | AlexanderKrutov/Radish | apache-2.0 | 8,069 | 164 | codeparrot/github-code |
b2fb5844312d33cfb71e1f9b807f0d96d187d9c64127b1e67d076a9fc72df830 | /*
* Copyright (c) 2010-2018 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.gui.impl.prism;
import java.util.List;
import org.apache.wicket.AttributeModifier;
import org.apac... | Java | gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/prism/ItemPanel.java | bshp/midPoint | apache-2.0 | 10,363 | 314 | codeparrot/github-code |
fff57c4a2c6cb9a4a6f17c8947171049b9013f8410fc5fcfc51a2ebba271d902 | import * as sinon from 'sinon';
import * as Qminder from '../../src/qminder-api';
describe('TicketService', function () {
const JON_SNOW = {
id: 12345,
line: 111111,
firstName: 'Jon',
lastName: 'Snow',
email: 'jon.snow@winterfell.is',
};
let requestStub: sinon.SinonStub;
beforeEach(function... | TypeScript | test/unit/TicketService.test.ts | Qminder/javascript-api | apache-2.0 | 57,078 | 1,829 | codeparrot/github-code |
3ac02341197c4e9632285a544ba1398fd41a52f8b720a26ddd206aba3763849a | <?php
Wind::import('APPS:api.controller.OpenBaseController');
/**
* windid用户接口
* the last known user to change this file in the repository <$LastChangedBy: jieyin $>.
*
* @author $Author: jieyin $ Foxsee@aliyun.com
* @copyright ?2003-2103 phpwind.com
* @license http://www.phpwind.com
*
* @version $Id: UserCo... | PHP | phpwind9/src/applications/windidserver/api/controller/UserController.php | beautifultable/phpwind | apache-2.0 | 12,554 | 375 | codeparrot/github-code |
0e9309a6aba4972a9262de2ca309fa89c3acd58b5c1da7ef61720b0037df2626 | package me.justgame.model;
import java.io.Serializable;
/**
* Created by xcl on 2017-03-06.
*/
public class User implements Serializable {
private static final long serialVersionUID = -8754101160775044576L;
private String id;
private String name;
private String userNo;
@Override
public Str... | Java | src/main/java/me/justgame/model/User.java | justgame/vote | apache-2.0 | 908 | 48 | codeparrot/github-code |
75169eaabfb6d5407c0f6f402681998e33e8bea80d0f3828df5a15e262c8fc27 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Threading;
using System.Threading.Tasks;
using Azure.Core.Amqp;
using Azure.Messaging.Service... | C# | sdk/servicebus/Azure.Messaging.ServiceBus/src/Processor/ServiceBusSessionProcessor.cs | markcowl/azure-sdk-for-net | apache-2.0 | 11,384 | 241 | codeparrot/github-code |
6fe60a148a207bc899636b12d13ca10fb99bd6f14b3af3d3e9a48883928a2e8e | package com.sicdlib.dto;
import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;
/**
* Created by DeMH on 2017/5/11.
*/
@Entity
@Table(name = "clean_data", schema = "socialmind", catalog = "")
public class CleanDataEntity {
private String id;
private String name;
private String fid;
... | Java | src/com/sicdlib/dto/CleanDataEntity.java | V119/spidersManager | apache-2.0 | 2,058 | 80 | codeparrot/github-code |
42d27217dbec6d21a481cb8729319f833fd9d23292129dd0bf4d505ee597824c | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/model/transform/ArchiveFindingsResultJsonUnmarshaller.java | aws/aws-sdk-java | apache-2.0 | 1,627 | 45 | codeparrot/github-code |
85dde5021348a95e95413d8f20595c3e2c35bddc58dc52ec219bdedd9532c59e | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/model/ListAutomaticTapeCreationPoliciesResult.java | aws/aws-sdk-java | apache-2.0 | 7,574 | 173 | codeparrot/github-code |
33e0f95851508e3c6a8b08c54979093bf124c0c02d38ea6b8be223ef5a9ca55e | /*
* Copyright (C) 2014 TopCoder Inc., All Rights Reserved.
*/
package gov.opm.scrd.services.impl.reporting;
import com.itextpdf.text.Font;
import com.itextpdf.text.pdf.PdfPCell;
import com.itextpdf.text.pdf.PdfPTable;
import com.itextpdf.text.pdf.PdfWriter;
import com.lowagie.text.Cell;
import com.lowagie.text.Tabl... | Java | Code/SCRD_BRE/src/java/ejb/gov/opm/scrd/services/impl/reporting/BalancedScorecardPaymentReportService.java | NASA-Tournament-Lab/CoECI-OPM-Service-Credit-Redeposit-Deposit-Application | apache-2.0 | 81,516 | 1,233 | codeparrot/github-code |
32258319edab7cb865f252a01d78e669ddc59fbd3bc8ac6236bbe2d7c147e5bb | using YAF.Lucene.Net.Analysis;
using YAF.Lucene.Net.Index;
using YAF.Lucene.Net.QueryParsers.Classic;
using YAF.Lucene.Net.Search;
using YAF.Lucene.Net.Search.Spans;
using YAF.Lucene.Net.Util;
using System;
using System.Collections.Generic;
using System.Linq;
namespace YAF.Lucene.Net.QueryParsers.ComplexPhrase
{
... | C# | yafsrc/Lucene.Net/Lucene.Net.QueryParser/ComplexPhrase/ComplexPhraseQueryParser.cs | Pathfinder-Fr/YAFNET | apache-2.0 | 19,264 | 469 | codeparrot/github-code |
6a9df111c254fa15a8812a95cf42266d8b08f9350c578c2ccdc16210dd98749b | //
// ip/address_v4.hpp
// ~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2011 Christopher M. Kohlhoff (chris at kohlhoff dot 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)
//
#ifndef BOOST_ASIO_IP_ADDRESS_V4_... | C++ | deps/boost-1.47.0/boost/asio/ip/address_v4.hpp | basho-labs/riak-cxx-client | apache-2.0 | 6,995 | 244 | codeparrot/github-code |
b1a3b064a3f5d620e1cd1c5e21b5a1b6dc40c381c3ca03fcdca245fed5bab054 | #include "Arduino.h"
#include "trace.h"
const int Trace::traceDebugLevel = TRACE_DEBUG_LEVEL_INFO;
void Trace::traceInfo(String str)
{
if (traceDebugLevel == TRACE_DEBUG_LEVEL_INFO)
{
Serial.println("INFO:" + str);
}
}
void Trace::traceWarn(String str)
{
if (traceDebugLevel <= TRACE_DEBUG_LEVEL_WARN)
... | C++ | main/main/trace.cpp | marduino/arduino | apache-2.0 | 650 | 44 | codeparrot/github-code |
23608f2f8806702c89b3100fe531a3621dd39f26d6999a4e5d473bebe259d83c | using System;
using System.Collections.Generic;
using System.Threading;
namespace BusterWood.Ducks
{
/// <summary>A dictionary that is mostly read from, hardly ever written too</summary>
class MostlyReadDictionary<TKey, TValue>
{
readonly ReaderWriterLockSlim _rwLock = new ReaderWriterLockSlim();
... | C# | src/BusterWood.Ducks/MostlyReadDictionary.cs | busterwood/Ducks | apache-2.0 | 1,738 | 58 | codeparrot/github-code |
c3e2ef6a4f7ffcbf2c8b4d07c3ba0d95076b9ff8c6a7e24f4cc4a370a3911424 | package cn.aaronyi.amenweather.v2.modules.domain.weather;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.List;
/**
* Created by yihaimen on 17/3/10.
*/
public class Weather implements Serializable {
//https://free-api.heweather.com/v5/
@SerializedName("... | Java | app/src/main/java/cn/aaronyi/amenweather/v2/modules/domain/weather/Weather.java | haihaio/AmenWeather | apache-2.0 | 2,384 | 114 | codeparrot/github-code |
9ddbc3bbbb45e9a53b756fdc7386508750cc38d89c13829387c28c367ae7c8c3 | ---
layout: page
description: "크리스마스가 왔으면 좋겠어요."
---
{% for post in paginator.posts %}
<div class="post-preview">
<a href="{{ post.url | prepend: site.baseurl }}">
<h2 class="post-title"> {{ post.title }}
</h2>
{% if post.subtitle %}
<h3 class="post-subtitle">
... | HTML | index.html | deplax/step | apache-2.0 | 1,059 | 37 | codeparrot/github-code |
7705a2d3e6fab25c0d6192539552f0339a045738a36fb12c8f7d566314effb26 | /**
* Copyright (c) 2012-2015 Nord Trading Network.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | Java | src/main/java/mobi/nordpos/retail/action/CategoryListActionBean.java | nordpos-mobi/online-retail | apache-2.0 | 2,504 | 71 | codeparrot/github-code |
b5ee66a91e310fb3ffa2f2d49c61356c972c6ec1e8cac19643717207ab41e884 | package com.hazelcast.map.impl.nearcache.invalidation;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.internal.nearcache.impl.invalidation.NonStopInvalidator;
import com.hazelcast.map.impl.MapService;
import com.hazelcast.nio.serialization.Data;
import com.hazelcast.spi.impl.NodeEngineImpl;
import c... | Java | hazelcast/src/test/java/com/hazelcast/map/impl/nearcache/invalidation/NonStopInvalidatorTest.java | lmjacksoniii/hazelcast | apache-2.0 | 1,720 | 49 | codeparrot/github-code |
81000a39c6d7560f3c965bbf113b3ea99b952953816e407cf25cec93cfaf4021 | /*
* 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 | src/test/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMapTest.java | gonmarques/commons-collections | apache-2.0 | 38,710 | 1,140 | codeparrot/github-code |
1f39f6ff24cd58f644c4e20dc18f4db588cba92374542b37e34b396373a4fd27 | package jp.fkmsoft.libs.kiilib.apis;
import org.json.JSONObject;
import jp.fkmsoft.libs.kiilib.entities.KiiBaseBucket;
import jp.fkmsoft.libs.kiilib.entities.KiiBaseGroup;
import jp.fkmsoft.libs.kiilib.entities.KiiBaseObject;
import jp.fkmsoft.libs.kiilib.entities.KiiBaseTopic;
import jp.fkmsoft.libs.kiilib.entities.... | Java | java/src/main/java/jp/fkmsoft/libs/kiilib/apis/AppAPI.java | fkmhrk/KiiLib-Java | apache-2.0 | 1,456 | 51 | codeparrot/github-code |
6641b142ae4a3a0db78d0c1b63f0ecc23f7a94263f7805088d0626cc1dee7270 | package main
import (
"encoding/json"
"fmt"
_ "github.com/mattn/go-oci8"
)
type Impact struct {
Name string `json:"Name"`
Rate float32 `json:"Rate"`
Gain float32 `json:"Gain"`
Q float32 `json:"Q"`
Latitude float32 `json:"Latitude"`
Longitude float32 `json:"Longitude"`
}
var Q = map[... | GO | delta/impact.go | ozym/delta | apache-2.0 | 3,784 | 129 | codeparrot/github-code |
58c230d43ad6caff376347a224e58914e1f80ee589edad42a488d61d884f8956 | from collections import OrderedDict
# Model class for resource elements
class Resource:
def __init__(self,uri,label,support,keyword):
self.uri = uri # URI of the resource.
self.label = label # Label of the resource
self.support = int(support) # Importance/ represents the number ... | Python | src/resourceGraph.py | usc-isi-i2/graph-keyword-search | apache-2.0 | 2,182 | 60 | codeparrot/github-code |
fbc2491b8f59484ea192246b666ced709262c42cb415875782e30d8da553b3e8 | /*
* Copyright (C) 2015 Twitter, 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... | Java | auth/src/main/java/com/firebase/ui/auth/util/ui/BucketedTextChangeListener.java | SUPERCILEX/FirebaseUI-Android | apache-2.0 | 4,640 | 129 | codeparrot/github-code |
cada27aa11aec6189400d1691267d95a83dd912ffafb1a27d5c505753917d4a6 | /*
* Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.basics.value;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementExcepti... | Java | modules/basics/src/main/java/com/opengamma/strata/basics/value/ValueStep.java | OpenGamma/Strata | apache-2.0 | 20,354 | 581 | codeparrot/github-code |
9ef97781673036a792c889bdc23d394c488dca05bc4b34bc3b5732e6c6900067 | package org.cqframework.cql.cql2elm;
import org.hl7.cql.model.IntervalType;
import org.hl7.elm.r1.*;
import org.testng.annotations.Test;
import java.io.File;
import java.io.IOException;
import java.net.URLDecoder;
import java.util.HashMap;
import java.util.Map;
import static org.cqframework.cql.cql2elm.matchers.HasT... | Java | Src/java/cql-to-elm/src/test/java/org/cqframework/cql/cql2elm/TestPointIntervalSignatures.java | cqframework/clinical_quality_language | apache-2.0 | 11,248 | 234 | codeparrot/github-code |
1ec120710d7795bb240b4d04e3e94018ba423c1c4ad368c03d6aec08aa1851b8 | /*
* Copyright 2013 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 appli... | Scala | examples/scalatra-example/src/main/scala/com/jayway/restassured/scalatra/SecuredScalatraRestExample.scala | camunda-third-party/rest-assured | apache-2.0 | 1,295 | 43 | codeparrot/github-code |
1229c664ee2c782b15b885802f388b2a682ee99681f86b99797092bba6b51450 | <?php
/**
* A single product variation
*
* This file is used to load a single product variation for a product
*
* @link http://www.wcvendors.com
* @since 1.3.0
*
* @package WCVendors_Pro
* @subpackage WCVendors_Pro/public/partials
*/
extract( $variation_data );
?>
<div class="wcv_variation w... | PHP | content/plugins/wc-vendors-pro/public/forms/partials/wcvendors-pro-product-variation.php | gorkemyontem/stardomcity | apache-2.0 | 18,831 | 381 | codeparrot/github-code |
f456c21f2cc149de446719db17ec23831fcea9e7b96896fc65878306a49c2121 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-imagebuilder/src/main/java/com/amazonaws/services/imagebuilder/model/transform/PutImageRecipePolicyRequestProtocolMarshaller.java | aws/aws-sdk-java | apache-2.0 | 2,724 | 63 | codeparrot/github-code |
10d30dc35553c92c96dd18dc91565e294f72718d23839e09f833e0616109d078 | /**
* 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 | hadoop-0.23.10/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/NotFoundException.java | moreus/hadoop | apache-2.0 | 1,514 | 45 | codeparrot/github-code |
18433db8f63cb4b42cf0f3b7bb24a5033790b5eb12d2346ea2b8cc8a85b60eef | package com.twitter.algebird
import com.twitter.algebird.BaseProperties._
import org.scalacheck.{Arbitrary, Prop}
class FunctionMonoidTests extends CheckProperties {
property("Linear functions over the integers form a monoid under function composition") {
// TODO: switch the scope of the quantification?
Pro... | Scala | algebird-test/src/test/scala/com/twitter/algebird/FunctionMonoidTests.scala | nevillelyh/algebird | apache-2.0 | 837 | 31 | codeparrot/github-code |
bb70d3249c163a01b372e0a2e48d09b6093da801d9a541ad81b3a6be91e96e89 | <?php
/**
* IO monad STDIN/STDOUT helper functions.
*
* @see http://hackage.haskell.org/package/base-4.11.1.0/docs/Prelude.html#g:26
* @package bingo-functional
* @author Lochemem Bruno Michael
* @license Apache-2.0
*/
namespace Chemem\Bingo\Functional\Functors\Monads\IO;
use Chemem\Bingo\Functional\Functors\... | PHP | src/Functors/Monads/IO/simple.php | ace411/bingo-functional | apache-2.0 | 4,578 | 239 | codeparrot/github-code |
e4f0578225754017a7e96563da6c20633ea6a7d0745a7e89f4a39a6db766ca22 | // Copyright 2021 Oath Inc.
// Licensed under the terms of the Apache license. Please see LICENSE.md file distributed with this work for terms.
package com.yahoo.bard.webservice.web.apirequest.generator.intervals;
import com.yahoo.bard.webservice.data.time.Granularity;
import org.dmfs.rfc5545.recur.InvalidRecurrenceR... | Java | fili-core/src/main/java/com/yahoo/bard/webservice/web/apirequest/generator/intervals/IntervalElement.java | yahoo/fili | apache-2.0 | 2,038 | 62 | codeparrot/github-code |
01b513f2e986ab64ddbe5225b8056ea1f68e3df09722248a97e6eefda79351a7 |
<!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="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<t... | HTML | docs/new-pandas-doc/generated/pandas.PeriodIndex.minute.html | datapythonista/datapythonista.github.io | apache-2.0 | 15,800 | 242 | codeparrot/github-code |
63294dc4f651686ce50c294228e1bc770665e713fb73e6e19a9aab09a31ac2cd | {{define "codes/show"}}
{{$currentMembership := .currentMembership}}
{{$canWrite := $currentMembership.Can rbac.CodeExpire}}
<!doctype html>
<html dir="{{$.textDirection}}" lang="{{$.textLanguage}}">
<head>
{{template "head" .}}
</head>
<body id="codes-show" class="tab-content">
{{template "navbar" .}}
<main... | HTML | assets/server/codes/show.html | google/exposure-notifications-verification-server | apache-2.0 | 3,189 | 92 | codeparrot/github-code |
7cb7ac37e92b7d27110e0f13ae182645ec912c532092b23045c78f83637805a8 | <!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine or request Chrome Frame -->
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Use title if it's i... | HTML | dashboard/fr/index.html | 976112643/manor | apache-2.0 | 7,056 | 164 | codeparrot/github-code |
5455b0ebb9ee8c2e056bce0b5fd726395874fff78e4481e67756186d9b2ab174 | // Copyright (C) 2002-2004 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in Irrlicht.h
#ifndef __IRR_LINE_3D_H_INCLUDED__
#define __IRR_LINE_3D_H_INCLUDED__
#include "irrTypes.h"
#include "vector3d.h"
namespace irr
{
names... | C | sdk/irrlicht/include/line3d.h | aestesis/elektronika | apache-2.0 | 3,746 | 121 | codeparrot/github-code |
e77cbbdde6f345ac78f1bddae7a3aa95ef46df8620c0de637aedcace395b97dc | {% extends "_base.html" %}
{% block extracss %}
input, ul.files li {
font-family: monospace;
}
{% endblock %}
{% block body %}
<div class="row">
<div class="col-lg-12">
<div class="col-lg-3">
<img width="230"... | HTML | templates/profile.html | sivel/turquoise | apache-2.0 | 5,193 | 92 | codeparrot/github-code |
fd86c88a29ae9daacab434e34eb731bc5df48ed210b17570260d946565d0d073 | /*
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | TypeScript | src/shared/components/confirm-dialog/confirm-dialog.component.ts | gravitee-io/gravitee-management-webui | apache-2.0 | 1,514 | 43 | codeparrot/github-code |
a33912e53671d2528804bd182894d9d43308f2b2de4d26f8341966c4ad6c47a0 | // Copyright (C) 2014 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | Java | gerrit-server/src/main/java/com/google/gerrit/server/plugins/AbstractPreloadedPluginScanner.java | midnightradio/gerrit | apache-2.0 | 5,869 | 152 | codeparrot/github-code |
78d7b1590ccddccf206e3775196aec9835ceb8182bc9714a478467c4fb1440f5 | //===--- TypeCheckNameLookup.cpp - Type Checker Name Lookup ---------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | C++ | lib/Sema/TypeCheckNameLookup.cpp | calebd/swift | apache-2.0 | 24,467 | 667 | codeparrot/github-code |
e16db049af79698c19901891bff657db8d0b85d22d003664bd47f8b8152cae37 | package vespa
import "fmt"
// PublicSystem represents the main Vespa Cloud system.
var PublicSystem = System{
Name: "public",
URL: "https://api-ctl.vespa-cloud.com:4443",
ConsoleURL: "https://console.vespa-cloud.com",
DefaultZone: ZoneID{Environment: "dev", Region: "aws-us-east-1c"},
}
// PublicC... | GO | client/go/vespa/system.go | vespa-engine/vespa | apache-2.0 | 2,163 | 69 | codeparrot/github-code |
6f180386f4bfcb11fb8156b679e31cee24af673a18e011456eda0ff9ed08c620 | /*
* 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 | components/camel-bean-validator/src/test/java/org/apache/camel/component/bean/validator/BeanValidatorConfigurationTest.java | davidkarlsen/camel | apache-2.0 | 4,697 | 122 | codeparrot/github-code |
19ed7989e30f7123209506c96663d85844cbb14fd667d0ce10efbe87e8c58dc7 | package org.iotp.server.service.component;
import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Optional;
... | Java | iotplatform/src/main/java/org/iotp/server/service/component/AnnotationComponentDiscoveryService.java | osswangxining/iotplatform | apache-2.0 | 8,562 | 208 | codeparrot/github-code |
1647569e882f7867071bf37ac587c7f7859c89236dcb1fc77d0d1bd952fb5a36 | import { init, captureException, withScope } from '@sentry/node';
import { assertEnv } from './assert-env';
const serviceName = 'api-frameworks';
let sentryInitDone = false;
function initSentry() {
if (sentryInitDone) {
return;
}
sentryInitDone = true;
init({
dsn: assertEnv('SENTRY_DSN'),
envir... | TypeScript | api/_lib/util/error-handler.ts | zeit/now-cli | apache-2.0 | 919 | 44 | codeparrot/github-code |
eebce9c8bcd2f3f9ac83663983eaf7440fa61ef7e6640e6ed50537a23b3474e0 | /*
* Copyright (c) 2008-2022 The Aspectran Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | Java | core/src/main/java/com/aspectran/core/util/SerializationUtils.java | aspectran/aspectran | apache-2.0 | 2,544 | 78 | codeparrot/github-code |
c301c568e2e1ee79b0d3a9993792d35a5fcbb8836de169c1181319db75a74743 | /*
* Jastrology - Copyright 2006 Fengbo Xie, All Rights Reserved.
*
* http://www.ivstars.com/jastrology
* http://sourceforge.net/projects/jastrology
*
* 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 c... | Java | src/com/ivstars/astrology/StringRender.java | fmisa/jastrology | apache-2.0 | 3,382 | 90 | codeparrot/github-code |
f58d459c5eae981b3e54d0074a5a5675f3b229c634c273a9e0dd2fb57d511043 | /*
* 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-logs/src/main/java/com/amazonaws/services/logs/model/transform/CreateLogGroupResultJsonUnmarshaller.java | dagnir/aws-sdk-java | apache-2.0 | 1,606 | 45 | codeparrot/github-code |
f0bc35ad9132961d03d308f53d37e546a4f0694eeccb4ea1eca39e32b4bbad14 | using OPS.Core.Entity;
using RestSharp;
using System;
using System.Text.Json;
using System.Threading;
namespace OPS.Core
{
public class TelegramApi
{
private readonly string _telegramApiToken;
private string UrlTelegram
{
get
{
return "https://a... | C# | OPS.Core/TelegramApi.cs | ops-org/operacao-politica-supervisionada | apache-2.0 | 2,252 | 72 | codeparrot/github-code |
f5ac423148e71ae4e9cd21ebeda64d659d900ebd3def87a2990768c31eb55fa1 | /*
* Copyright 2017-2021 AVSystem <avsystem@avsystem.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 required by ap... | C | src/core/servers/anjay_connections_internal.h | AVSystem/Anjay | apache-2.0 | 2,949 | 81 | codeparrot/github-code |
857cd8a11dd84f599474f2481e833df209f77b11ba9c3fc54bde1dbcff155e6b | package org.tapley.windows.symbolstore.plugin;
import java.io.File;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import org.apache.maven.model.FileSet;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.j... | Java | src/test/java/org/tapley/windows/symbolstore/plugin/TestPurgeAfterDays.java | christapley/windows-symbol-store-mojo | apache-2.0 | 7,075 | 160 | codeparrot/github-code |
207774a88a29ddd648e10f9ae247f9e7a7ba52773c8f09ba58e925caaff7238d | /*
* Copyright (c) 2014 The University of Sheffield
*
* This file is part of the AnnoMarket.com REST client library, and is
* 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:... | Java | cli/src/main/java/com/annomarket/cli/commands/job/RenameJob.java | annomarket/java-client | apache-2.0 | 1,490 | 46 | codeparrot/github-code |
474f5f12ac0edbcc1dece947d36cfaadd3c4e8934002da79af3bd7ac46de76a5 | package com.mapia.s3.network;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import com.mapia.s3.models.TransferModel;
/**
* Created by daehyun on 2015. 5. 10..
*/
public class TransferController {
public static void abort(Context context, TransferModel model) {
... | Java | app/src/main/java/com/mapia/s3/network/TransferController.java | mapia/android | apache-2.0 | 1,700 | 52 | codeparrot/github-code |
c40ee73160f532f63b07f087b62134d34b7970d7486d46880b7c6a003f60de6f | <?php
/**
* 用户关注数据表.
*
* @author Jianmin Chen <sky_hold@163.com>
* @copyright ©2003-2103 phpwind.com
* @license http://www.phpwind.com
*
* @version $Id: PwAttentionDao.php 22660 2012-12-26 07:45:31Z jinlong.panjl $
*/
class PwAttentionDao extends PwBaseDao
{
protected $_table = 'attention';
protected $_... | PHP | phpwind9/src/service/attention/dao/PwAttentionDao.php | beautifultable/phpwind | apache-2.0 | 4,194 | 115 | codeparrot/github-code |
ff2affcf4fdbdc5f8c097f2615bee808ba2513f394377d52400362d0ad465e2d | package org.d2rq.db.schema;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import org.d2rq.db.types.DataType;
import org.d2rq.db.types.DataType.GenericType;
import org.d2rq.db.vendor.Vendor;
import org.junit.Before;
import org.junit.Test;
public class ColumnDefTest {
privat... | Java | src/test/java/org/d2rq/db/schema/ColumnDefTest.java | d2rq/r2rml-kit | apache-2.0 | 1,644 | 56 | codeparrot/github-code |
3ee9c95974b8debcd23dcf03da673d353cc78650def9a2d61c4d69e61223079c | /*
* Copyright 2015 Alexander Koch
* File: AudioEngine.cpp
* Description: Audio engine class implementation.
*
* 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... | C++ | audio/AudioEngine.cpp | alexander-koch/3D-Game-Engine | apache-2.0 | 2,991 | 131 | codeparrot/github-code |
c600366988fcad0d94a1137b8a60206d61301a1928e35f92fa799778051667ca | #! /usr/bin/python
#
# Copyright 2016 IBM Corp.
#
# 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... | Python | hardware/sensehat/sensehat.py | xively/node-red-nodes | apache-2.0 | 6,966 | 242 | codeparrot/github-code |
91b09ec449e27063ca85f69762e4f3f50001ac5eaf65e44584adea0de7578434 | #!/usr/bin/python
#
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
import json
import copy
from netaddr import IPNetwork
from pprint import pformat
from vnc_api.vnc_api import *
from vnc_admin_api import VncApiAdmin
def get_ip(ip_w_pfx):
return str(IPNetwork(ip_w_pfx).ip)
# end get_ip
clas... | Python | src/config/utils/provision_bgp.py | nischalsheth/contrail-controller | apache-2.0 | 7,230 | 199 | codeparrot/github-code |
3af977a90cd03587c3e49071f8da7f8fec23d4c1e7102702d39e318bf093e528 | from __future__ import print_function
from datetime import datetime
import unittest
from mock import patch
import netkraken
from testhelper import myAssertDictEqual
class NetKrakenTests(unittest.TestCase):
def test_get_timestamp(self):
self.assertEquals(("minute", "2042-12-12T12:12"),
... | Python | src/unittest/python/netkraken_tests.py | arnehilmann/netkraken | apache-2.0 | 1,468 | 38 | codeparrot/github-code |
7da2e273a5d97167fe5e2327a8ffdc9fbe1e37a7a26c741d95628b452bf79371 | /**
* Copyright 2018 Smart Society Services B.V.
*
* 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
*/
package org.opensmartgridplatform.ada... | Java | osgp-adapter-domain-smartmetering/src/test/java/org/opensmartgridplatform/adapter/domain/smartmetering/application/services/MonitoringMapperTest.java | OSGP/Platform | apache-2.0 | 3,235 | 62 | codeparrot/github-code |
4e82c7405f81dda3781ff484c52020e1fc89706bd3dcf9deffa33f8aa7ae676f | """
Support for Portage
.. important::
If you feel that Salt should be using this module to manage packages on a
minion, and it is using a different module (or gives an error similar to
*'pkg.install' is not available*), see :ref:`here
<module-provider-override>`.
:optdepends: - portage Python adap... | Python | salt/modules/ebuildpkg.py | saltstack/salt | apache-2.0 | 39,666 | 1,287 | codeparrot/github-code |
65e43c2b55b31cc02bf94b01e028e1adbedca033458e6911afe306ba10876ff9 | // Copyright 2015 The Cockroach 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 ag... | GO | sql/schema_changer.go | il9ue/cockroach | apache-2.0 | 19,717 | 591 | codeparrot/github-code |
731313f84e81b02471f8a386e067d9565e22265839e4c6111589731c4eac6e39 | #pragma once
#include <atomic>
#include <cstdint>
#include <list>
#include <memory>
#include <string>
#include "envoy/network/transport_socket.h"
#include "common/buffer/watermark_buffer.h"
#include "common/event/libevent.h"
#include "common/network/connection_impl_base.h"
#include "common/stream_info/stream_info_im... | C | source/common/network/connection_impl.h | jrajahalme/envoy | apache-2.0 | 7,863 | 200 | codeparrot/github-code |
c1b90e7216a4afa5056b4bccf6afc822c1f1d26da4be8b10ca4ca0c5fc0f1783 | /*
* 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-iot/src/main/java/com/amazonaws/services/iot/model/AuthorizerStatus.java | jentfoo/aws-sdk-java | apache-2.0 | 1,785 | 61 | codeparrot/github-code |
f5d35f202e20d726d0dfc9ec534959b672a2f3c055837826ac29f1d5e896e430 | /*
* Copyright 2009-2013 by The Regents of the University of California
* 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 from
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | Java | asterix-metadata/src/main/java/edu/uci/ics/asterix/metadata/feeds/BuiltinFeedPolicies.java | parshimers/incubator-asterixdb | apache-2.0 | 9,799 | 189 | codeparrot/github-code |
14ff6acd6d2f7b608613fc4bf8134fba102d0851d208b30c88ae7e70339f6405 | package com.link_intersystems.maven.plugin.system;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import org.codehaus.plexus.comp... | Java | maven-plugins/maven-plugin-commons/src/main/java/com/link_intersystems/maven/plugin/system/ComponentValueSetter.java | link-intersystems/maven | apache-2.0 | 9,269 | 305 | codeparrot/github-code |
54bd119c7cc9d33573bf2b4b46b35ea819c9b39ff6a7e0df8c5f740d8854ccd3 | <html>
<head>
<style type='text/css'>
html, body, div, span, p, blockquote, pre {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body{
line-height: 1;
color: black;
background: white;
margin-left: ... | HTML | pitReports/201503061602/org.apache.commons.collections4.functors/SwitchClosure.java.html | krivachy/compgs03_mutation_testing | apache-2.0 | 80,665 | 3,006 | codeparrot/github-code |
ba92cc518ced9841536ca0f065c3ca3dea51fcd3dff3711ea41a43f6af1914da | import { createActions, handleActions } from 'redux-actions';
import { createSelector } from 'reselect';
import { loggerMiddleware } from './v1';
export const initialState = { count: 0 };
export const { increment, decrement } = createActions({}, 'INCREMENT', 'DECREMENT');
export const reducer = handleActions(
{
... | JavaScript | react-hooks_页面层级的一个redux封装/src/v2.js | huang303513/Debug-Instruments | apache-2.0 | 1,030 | 38 | codeparrot/github-code |
17640e2cf8439827d0b06eff87c244fb8232f1380b37ba6c403474a74a8638af | package org.jetbrains.plugins.scala
package lang
package psi
package api
package statements
import org.jetbrains.plugins.scala.lang.psi.api.base.ScPatternList
import org.jetbrains.plugins.scala.lang.psi.api.base.patterns.ScBindingPattern
import org.jetbrains.plugins.scala.lang.psi.api.expr.ScExpression
/**
* @author... | Scala | scala/scala-impl/src/org/jetbrains/plugins/scala/lang/psi/api/statements/ScPatternDefinition.scala | jastice/intellij-scala | apache-2.0 | 887 | 37 | codeparrot/github-code |
84a9b6785d3f1b968108ea121a14d6f96733a82609c508e5d78deba6440e5004 | var EventEmitter = require('events').EventEmitter
,_ = require('underscore')
, fs = require('fs')
, Garam = require('../../Garam')
, Base = require('../../Base')
, async = require('async')
, Net = require('net' )
, domain = require('domain')
, Client = require('./client')
, assert= ... | JavaScript | server/lib/rpc/host/HostServer.js | ssdosso/garam | apache-2.0 | 1,564 | 58 | codeparrot/github-code |
f73b6d7c05d425a1abdd14c29ee86920b42bdea6cfe9c0a04111a0ffc4ca6668 | #!/usr/bin/env python
#
# Copyright 2011 Splunk, 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 ... | Python | examples/handlers/handler_urllib2.py | rmak/splunk-sdk-python | apache-2.0 | 1,492 | 48 | codeparrot/github-code |
25f11603925143441c5dbfe0063584dd146e84455da25e243dc60876eb7d65ee | package net
import (
"crypto/tls"
"fmt"
"net"
"strings"
"sync"
"github.com/sirupsen/logrus"
)
type sharedPortTLSListenerFactory struct {
listener net.Listener
forward map[string]*sharedPortTLSListener
fLock sync.Mutex
logger *logrus.Entry
stopC chan struct{}
}
// SharedPortTLSListenerFactoryArgs pro... | GO | net/single_port_listener_factory.go | superfly/wormhole | apache-2.0 | 4,437 | 203 | codeparrot/github-code |
8d862e4e020adc6ea5b275817e5669a6afa21b6c7ed80b8a64cbf1b65f2d4b30 | <!DOCTYPE html>
<html>
<head>
<!-- The Author meta propagates the byline in a number of social networks -->
<meta name="author" content="Open Source Politics" />
<meta property="og:title"
content="
Téléphérique Urbain Cinor
">
<meta property="og:description"
content="
Outils numérique... | HTML | refs-fr/2016-08-12-telephérique-urbain-cinor/index.html | OpenSourcePolitics/opensourcepolitics.github.io | apache-2.0 | 15,472 | 344 | codeparrot/github-code |
d36f687f96d4473b5a279594dfd859a86847f1e39053a70fec194831be24d046 | package io.vertx.example.reactivex.web.backpressure;
import io.vertx.core.http.HttpMethod;
import io.vertx.example.util.Runner;
import io.vertx.reactivex.RxHelper;
import io.vertx.reactivex.core.AbstractVerticle;
import io.vertx.reactivex.core.http.*;
import io.vertx.reactivex.ext.web.Router;
import io.vertx.reactivex... | Java | rxjava-2-examples/src/main/java/io/vertx/example/reactivex/web/backpressure/Server.java | vert-x3/vertx-examples | apache-2.0 | 3,036 | 85 | codeparrot/github-code |
4bc7dd206fa463e88fbe0314c03495bdc21924b8e1cf4ada483bce64b56139f8 | // -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2009-2011 Google, All Rights reserved
// Copyright 2011-2012 MIT, All rights reserved
// Released under the MIT License https://raw.github.com/mit-cml/app-inventor/master/mitlicense.txt
package com.google.appinventor.shared.rpc.project;
import com.google.gwt.user... | Java | appinventor/appengine/src/com/google/appinventor/shared/rpc/project/Email.java | nmcalabroso/appinventor-sources | apache-2.0 | 2,054 | 97 | codeparrot/github-code |
bb2e36896cd6fdadc21427ec3e81acf3ceebf1977e5b673abbc726ccacc31f75 | /*
* Copyright 2017 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | Java | halyard-deploy/src/main/java/com/netflix/spinnaker/halyard/deploy/spinnaker/v1/service/local/git/LocalGitEchoService.java | spinnaker/halyard | apache-2.0 | 2,234 | 63 | codeparrot/github-code |
908b40451bc15caa2d73317efb5f9a7bd38824fd6e6526185624fada578d1a11 | package de.crunc.hamcrest.json.matcher;
import com.google.gson.JsonPrimitive;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import org.hamcrest.number.OrderingComparison;
import javax.annotation.Nullable;
import java.math.BigDecimal;
/**
* Simple {@link Matcher} for matching a {@link Json... | Java | src/main/java/de/crunc/hamcrest/json/matcher/IsJsonNumber.java | Crunc/hamcrest-json-matchers | apache-2.0 | 2,852 | 73 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.