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 |
|---|---|---|---|---|---|---|---|---|
056155ccdad2da881782948ef860b8fedc9e5ec75ebc7918ae788a133145445b | /**
* $Id: QuestionManagerImpl.java 3951 2010-11-02 10:13:17Z orangeforjava $
*/
package org.openuap.cms.survey.manager.impl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.openuap.base.util.QueryInfo;
import org.openuap.base.util.context.PageBuilder;
i... | Java | src/org/openuap/cms/survey/manager/impl/QuestionManagerImpl.java | juweiping/ocms | apache-2.0 | 12,754 | 456 | codeparrot/github-code |
f563c3f5c621c5fd9503c44a149ed79a5cce3646e842095b97df542cbc7b5f23 | package pl.com.turski.service.shipment;
import com.google.appengine.repackaged.com.google.common.collect.Lists;
import org.hibernate.validator.constraints.NotBlank;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereot... | Java | src/main/java/pl/com/turski/service/shipment/ShipmentStatusServiceImpl.java | trak17/Trak | apache-2.0 | 2,100 | 54 | codeparrot/github-code |
cc7c1c255a71d61fe0daf50baa39e4d63c4473562fc8517612f42048f939a291 | /*
* 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 | zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookServer.java | Madhuka/incubator-zeppelin | apache-2.0 | 54,280 | 1,459 | codeparrot/github-code |
56654bcf03a67aee89b41d9b6e6f39e5a2895ec2b2effc032ac7b0a2d6373936 | /******************************************************************************
* Copyright 2018 The Apollo 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
*... | C++ | modules/perception/camera/lib/obstacle/transformer/multicue/multicue_obstacle_transformer.cc | msbeta/apollo | apache-2.0 | 11,290 | 280 | codeparrot/github-code |
1b5c3ef9ec005313d044de39a24c7ccc15442cb728f782a7590ddbe1751bd340 | package mobi.cloudymail.mailclient;
import mobi.cloudymail.mailclient.net.ServerAgent;
import mobi.cloudymail.util.MyApp;
import mobi.cloudymail.util.Utils;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import a... | Java | CloudyMail/src/mobi/cloudymail/mailclient/AlarmReceiver.java | glorycloud/GloryMail | apache-2.0 | 2,155 | 65 | codeparrot/github-code |
4d3ccc3b5cd178e67cee6bd9fd13231d8a64ef29632c148fdf2cf9b1b667292c | package com.Android2.model;
import android.os.Parcel;
import android.os.Parcelable;
import com.Android2.controller.IMapNodeController;
import com.google.android.gms.maps.model.LatLng;
/**
* Created by cirkus on 24.07.2017.
*/
public class MapNode implements Parcelable {
public LatLng location = null;
publ... | Java | app/src/main/java/com/Android2/model/MapNode.java | j0rg3n/skattejakt | apache-2.0 | 954 | 41 | codeparrot/github-code |
d8b1b507ec1454dc4d4dcabfbdb4129fdcd4c7069ed8b4f19f058068f9487ab4 | package fr.free.nrw.commons.utils;
import fr.free.nrw.commons.location.LatLng;
import java.text.NumberFormat;
public class LengthUtils {
/** Returns a formatted distance string between two points.
* @param point1 LatLng type point1
* @param point2 LatLng type point2
* @return string distance
... | Java | app/src/main/java/fr/free/nrw/commons/utils/LengthUtils.java | tobias47n9e/apps-android-commons | apache-2.0 | 2,208 | 64 | codeparrot/github-code |
902581f0de988c31b0ead777767f9cc9ab471a7471b12f7acc57ee77f2baaca6 | # http://remotescripts.blogspot.com
"""
Track Control User Modes component originally designed for use with the APC40.
Copyright (C) 2010 Hanz Petrov <hanz.petrov@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Fre... | Python | remote-scripts/samples/APC_64_40_r1b/APC_64_40/EncoderUserModesComponent.py | jim-cooley/abletonremotescripts | apache-2.0 | 6,872 | 170 | codeparrot/github-code |
e2892666d4aae05b79a7b4d16e0baaeb888f6c6524a537242b786cac9ab8ded2 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using StructureMap.Pipeline;
using StructureMap.Testing;
using StructureMap.Testing.Widget;
namespace StructureMap.Web.Testing
{
[TestFixture]
public class ThreadLocalStorageLifecycleTester... | C# | src/StructureMap.Web.Testing/ThreadLocalStorageLifecycleTester_with_nested_containers.cs | HenrikDK/structuremap | apache-2.0 | 1,837 | 70 | codeparrot/github-code |
52060d0fe23a59c950b2206f91f13e88586b0960a435816fc213fb3b6b4463a6 | /*
* Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.imageio.plugins.gif;
import javax.imageio.ImageTypeSpecifier;
import javax.imageio.met... | Java | src/com/sun/imageio/plugins/gif/GIFStreamMetadata.java | haikuowuya/android_system_code | apache-2.0 | 11,058 | 321 | codeparrot/github-code |
498bb98eaa147cb8f6a47ef0f056a071af25cfdf5a99a18b2287f2a73ea48bda | /*
* Copyright 2017-present Open Networking 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 required by appli... | Java | core/store/primitives/src/main/java/org/onosproject/store/primitives/resources/impl/AtomixAtomicCounterMapCommands.java | sdnwiselab/onos | apache-2.0 | 8,989 | 333 | codeparrot/github-code |
c773ef61ab791c9c9439acb4eb1d7854df34c864ace86aaf0bc658b0fae31a18 | {% extends 'exp/base.html' %}
{% load bootstrap3 %}
{% block title %}Create Study{% endblock %}
{% block head %}
{{ block.super }}
<script type="application/javascript">
/* Fix for ace-editor. It thinks it's in the admin only */
(function (){
if (window.jQuery !== undefined) {
... | HTML | studies/templates/studies/study_form.html | CenterForOpenScience/lookit-api | apache-2.0 | 3,218 | 82 | codeparrot/github-code |
029a09732763b20f5218f67f9052d525ca97427f1cbc1bbc31774558fb625945 | /*
* Copyright (C) Scott Cranton, Jakub Korab, and Christian Posta
* https://github.com/CamelCookbook
*
* 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/lice... | Java | 06-splitting-aggregating/src/test/java/org/camelcookbook/splitjoin/splitaggregate/SplitAggregateExceptionHandlingSpringTest.java | CamelCookbook/camel-cookbook-examples | apache-2.0 | 2,164 | 58 | codeparrot/github-code |
54860c2423012e7a9e96111b16ca9c527549ba1f30c7b2d95badebe342d4d98a | package com.zhongshu.maintenanceexpert.bean;
import java.io.Serializable;
import java.util.List;
/**
* Created by a on 2017/4/25.
*/
public class CameraOrderBean implements Serializable {
/**
* status : 调取成功
* data : [{"order_id":"1","uid":"654","title":"biaoti","details":"问题描述","address":"Jordan",... | Java | app/src/main/java/com/zhongshu/maintenanceexpert/bean/CameraOrderBean.java | officerteam/zhongshuyunwei | apache-2.0 | 3,499 | 163 | codeparrot/github-code |
d9b0b0e7d7a9fe5fa207bb99c1a88b64f6116b693f2bda7d2af6d7898ec5980f | /*
Copyright 2021 The Matrix.org Foundation C.I.C.
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 ... | TypeScript | src/components/views/elements/JoinRuleDropdown.tsx | matrix-org/matrix-react-sdk | apache-2.0 | 1,851 | 69 | codeparrot/github-code |
9fa60962dd61bf3a989b0be691dda03ba91ebccc1cefb9bb0aba83e6700b1fa2 | // Copyright 2015-2017 trivago GmbH
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | GO | consumer/syslogd.go | mre/gollum | apache-2.0 | 4,404 | 149 | codeparrot/github-code |
b982ed0b38a9a125eade0fdb78dfbccec61795a4451cf1d88220e970b0968fa6 | /*
* BTrie Sedna specialization
* Copyright (c) 2010 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS)
*/
#ifndef SEDNABTRIE_H
#define SEDNABTRIE_H
#include <string.h>
#include "btrie.h"
#include <stdint.h>
void btrie_collect_stat(xptr entry_point);
inline
static btrie_record_t sb... | C | kernel/tr/bstrie/sednabtrie.h | sedna/sedna | apache-2.0 | 1,732 | 65 | codeparrot/github-code |
869e9cfa7679555eff9f415d21d443ae6fb29712aab9757a95da97ab1040bdcd | // $Id: Futures.cpp 94312 2011-07-11 00:39:42Z schmidt $
#include "ace/config-lite.h"
#if defined (ACE_HAS_THREADS)
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_time.h"
#include "ace/Task.h"
#include "ace/Unbounded_Queue.h"
#include "ace/Synch.h"
#include "ace/SString.h"
#include "ace/Method_Request.h"
#include ... | C++ | ACE_wrappers/examples/APG/ThreadPools/Futures.cpp | batmancn/TinySDNController | apache-2.0 | 6,457 | 323 | codeparrot/github-code |
de45154a0566f3fdda892b7a71fab0766c32bdd09d74db1f66fa702e417ba9fd | /*
* Copyright Strimzi authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.strimzi.systemtest.resources.kubernetes;
import io.fabric8.kubernetes.api.model.rbac.ClusterRoleBinding;
import io.fabric8.kubernetes.api.model.rbac.ClusterRoleBindingBu... | Java | systemtest/src/main/java/io/strimzi/systemtest/resources/kubernetes/ClusterRoleBindingResource.java | scholzj/barnabas | apache-2.0 | 2,773 | 66 | codeparrot/github-code |
84d779c6223decb075f6994bf0b0390071059478c494fbc0d84ca05a535ef8ff | /*
* Copyright 2017 IBM Corp. 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 o... | Java | library/src/main/java/com/ibm/watson/developer_cloud/android/library/audio/StreamPlayer.java | lpatino10/android-sdk | apache-2.0 | 3,143 | 100 | codeparrot/github-code |
18205429e38017cd2100825b69095c2a09711b3ad7216e2e4fa4c523f7931c89 | /*
* 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/plugins/embeddedjsp/src/main/java/org/apache/struts2/el/lang/FunctionMapperImpl.java | Ile2/struts2-showcase-demo | apache-2.0 | 6,042 | 190 | codeparrot/github-code |
0e834f1fe8a713d635a1b07d2f60eb22ea3f30d9826b4ee08d468b8c232bdf05 | package org.funsec.hmac;
import org.junit.Test;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.Instant;
import java.util.Arrays;
import java.util.TimeZone;
impor... | Java | hmac/java/hmac/src/test/java/org/funsec/hmac/TOTPTest.java | gerritjvv/cryptoplayground | apache-2.0 | 4,078 | 89 | codeparrot/github-code |
af5596f9cb01cfff8288bd5545a8a5de51320bed52380536832bd6c621afc2ee | /*
* jupiter-interface
*
* Copyright (c) 2017, Michael Aichler.
* 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... | Java | src/library/src/test/java/net/aichler/jupiter/internal/filter/GlobFilterTest.java | maichler/sbt-jupiter-interface | apache-2.0 | 2,253 | 77 | codeparrot/github-code |
c4d6f28aeb95bb84da559077ce7b097fe2d81d684a2737177fe299c00a81ffdc | /*
* 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-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/transform/CreateDeploymentConfigRequestMarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 3,230 | 65 | codeparrot/github-code |
5a3664074e0bbc6f41755984ad576dd7a8e1bc82a7d11f9bdf35aa50cf496eab | package ca.uhn.fhir.jpa.dao.dstu3;
/*
* #%L
* HAPI FHIR JPA Server
* %%
* Copyright (C) 2014 - 2016 University Health 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
*
... | Java | hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoValueSetDstu3.java | Cloudyle/hapi-fhir | apache-2.0 | 15,946 | 405 | codeparrot/github-code |
c52d5268b5fbcd91aae7c1a6c8ff69e816b60c753f029d6a6a74709dd233ac5d | /*
* 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-cloudfront/src/main/java/com/amazonaws/services/cloudfront/model/transform/DeleteRealtimeLogConfigRequestMarshaller.java | aws/aws-sdk-java | apache-2.0 | 3,291 | 83 | codeparrot/github-code |
e3349bdb44598579ea2e325a24f08913a5cc5d4746082b6d1d477692d4d03917 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | C# | onenotesticky/StickyNote.xaml.cs | I-NOZex/onenotesticky | apache-2.0 | 2,319 | 74 | codeparrot/github-code |
bc5382ddc00940379bbd473ebdca98c10f7fb0ccc1da7dcab70128c718ae77bb | namespace Atata
{
public abstract class VerifyHeadingTriggerAttribute : TermVerificationTriggerAttribute
{
protected VerifyHeadingTriggerAttribute(TermCase termCase)
: base(termCase)
{
}
protected VerifyHeadingTriggerAttribute(TermMatch match, TermCase term... | C# | src/Atata/Attributes/Triggers/VerifyHeadingTriggerAttribute.cs | atata-framework/atata | apache-2.0 | 1,906 | 56 | codeparrot/github-code |
a23482884408dca59975d959909a40139ef3ba95961dc1cb5c80f1b224e8f266 | /* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/legalize_to_linalg.cc | karllessard/tensorflow | apache-2.0 | 40,774 | 972 | codeparrot/github-code |
c0b26c038de8b63f5ba8c46d8c6514c578444987a57458114d624448d97ff46a | package com.github.neuralnetworks.calculation.neuronfunctions;
import com.github.neuralnetworks.architecture.Connections;
import com.github.neuralnetworks.architecture.Layer;
import com.github.neuralnetworks.calculation.ConnectionCalculator;
import com.github.neuralnetworks.calculation.memory.ValuesProvider;
import j... | Java | app/src/main/java/com/github/neuralnetworks/calculation/neuronfunctions/AparapiTanh.java | lehmann/BrainSimulator | apache-2.0 | 1,375 | 39 | codeparrot/github-code |
a2017e566d4e1dcdd1a861784de319136d6a4ae11c46b35bb2112840b95f0139 | package com.clever.presenter.impl;
import com.clever.presenter.SplashPresenter;
import com.clever.ui.interf.SplashView;
/**
* @author liuhea
* @date 2016-12-29</p>
*/
public class SplashPresenterImpl implements SplashPresenter {
private SplashView mSplashView;
public SplashPresenterImpl(... | Java | app/src/main/java/com/clever/presenter/impl/SplashPresenterImpl.java | liuhea/Clever | apache-2.0 | 732 | 32 | codeparrot/github-code |
794aebf598a85fc7edc42f1996e2012bce73fab5d2da820454ade13ae63ae99a | using System;
using System.Collections.Generic;
namespace Twilio.Pricing
{
/// <summary>
/// Represents Twilio Messaging pricing country.
/// </summary>
public class Country : TwilioBase
{
/// <summary>
/// The full name of the country.
/// </summary>
/// <value>Cou... | C# | src/Twilio.Pricing/Model/Country.cs | mplacona/twilio-csharp | apache-2.0 | 876 | 33 | codeparrot/github-code |
5008cd1923600bfc312e8ec7c061311d40b5804cc80df30e49a9632b8c509e0a | /*
* Copyright 2017 Yahoo Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Java | servers/zts/src/main/java/com/yahoo/athenz/zts/cert/X509CertRequest.java | yahoo/athenz | apache-2.0 | 24,840 | 690 | codeparrot/github-code |
a5d6ef8beae941a696d52faa64a9fb81bdd0c5a9cd15aca7b69978cb8227c912 | /*
* Copyright 2014-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Java | src/com/facebook/buck/apple/project_generator/WorkspaceAndProjectGenerator.java | clonetwin26/buck | apache-2.0 | 40,488 | 944 | codeparrot/github-code |
5a0a135ec4624740cb3200aa7a5de6289f3ffa8c0a7e0381749bc8ef842bd9f9 | /* -------------------------------------------------------------------------- */
/* Copyright 2002-2013, OpenNebula Project (OpenNebula.org), C12G Labs */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... | C | include/VirtualMachineManagerDriver.h | gargamelcat/ONE4 | apache-2.0 | 11,752 | 400 | codeparrot/github-code |
feca43b727f44a26112dac7f98af47ae00b9683474cb1db8684686cc4bfdcd81 | /*
Copyright (C) 2012-2014 Xiongfa Li
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 ap... | C++ | dmengine/utils/plugin/private/dmdllloader_unix.cpp | damao1222/dmengine | apache-2.0 | 2,644 | 111 | codeparrot/github-code |
0e918df63fc782e51a8f179e4fddf5c9a60db5811d95383ec2872e1974c4bb11 | /*
* Copyright (c) 2009 Piotr Piastucki
*
* This file is part of Patchca CAPTCHA library.
*
* Patchca is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* ... | Java | common_helper/src/main/java/com/xiongyingqi/captcha/utils/encoder/EncoderHelper.java | blademainer/common_utils | apache-2.0 | 1,317 | 38 | codeparrot/github-code |
8f09bff3ce98ac0e52ed97b31d4fdee8cf3bfa08822aca7be80c986bca6ca52f | package proxy
import (
"context"
"net"
"net/http"
"strings"
"time"
gmux "github.com/gorilla/mux"
v3 "github.com/rancher/rancher/pkg/generated/controllers/management.cattle.io/v3"
managementv3 "github.com/rancher/rancher/pkg/generated/norman/management.cattle.io/v3"
"github.com/rancher/rancher/pkg/settings"
... | GO | pkg/api/steve/proxy/proxy.go | rancherio/rancher | apache-2.0 | 6,387 | 199 | codeparrot/github-code |
833f0308b4a6716bf9d3c608dee2a744569a884ce51f56ae3f76ad4c25a2b7c8 | /**
*
* (c) Copyright Ascensio System SIA 2021
*
* 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 ... | C# | web/documentserver-example/csharp/Default.aspx.cs | ONLYOFFICE/document-server-integration | apache-2.0 | 24,178 | 575 | codeparrot/github-code |
462e4cad6521187bf011e19f2f09ff4baa120a4b6cdb4a30ff2480579fe35155 | /**
* 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 | camel-core/src/test/java/org/apache/camel/impl/DefaultCamelContextAutoStartupTest.java | kingargyle/turmeric-bot | apache-2.0 | 3,088 | 88 | codeparrot/github-code |
a093fa0e4baf269dc47fc763603c0671789d92edba65d5e75665c9c308f59bd1 | /*******************************************************************************
* Copyright 2013-2014 Aerospike, 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://ww... | C++ | src/main/client/udf_register.cc | dohse/aerospike-client-nodejs | apache-2.0 | 10,990 | 371 | codeparrot/github-code |
590e2d229d11f7dd335a22cc7913a0d209cd28ff509a5a78ca26166a56af37d8 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>FST - Benito Nerida</title>
<meta name="description" content="Keep track of the statistics from Benito Nerid... | HTML | surfers/mlt/bner.html | chicofilho/fst | apache-2.0 | 11,171 | 285 | codeparrot/github-code |
af165e1cfcfab825e5bab6df9a008fbc7d489ca5e96b56f6f0562c97f22b635b | /**
* Created by Rory on 12/14/2015.
*/
Template.MessagesPage.helpers({
getMessages: function () {
if (Meteor.user()) {
return Messages.find({owner:Meteor.user().username});
}
},
getSender: function () {
return {username:this.sender};
},
getTextbook: function () {
return {_title:this.t... | JavaScript | app/client/templates/pages/Messages/MessagesPage.js | textbookmania/LightSteelBlue | apache-2.0 | 968 | 48 | codeparrot/github-code |
cec7c161a64be02be58af797c280de455c1db593d56424fcc4aaa21162e11aea | /*
* Copyright 2011 Henry Coles
*
* 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 ... | Java | pitest/src/test/java/org/pitest/mutationtest/engine/gregor/MethodInfoTest.java | tectronics/pitestrunner | apache-2.0 | 6,688 | 178 | codeparrot/github-code |
b75d7238755fa8f2da91f8b8cc207a3ec127509bc43ea8776aec9e2cf7e85178 | declare module '@stratumn/canonicaljson' {
export function stringify(obj: any): string;
}
declare module '@stratumn/js-crypto' {
export namespace sig {
class SigningPrivateKey {
constructor(opts: { algo?: string; pemPrivateKey?: string });
export: (password?: string) => Uint8Array;
sign: (
... | TypeScript | src/modules.d.ts | stratumn/sdk | apache-2.0 | 1,721 | 71 | codeparrot/github-code |
15a10be97eda7308bdafc4c297ba307f134c3e1b171cf3a19d32926c7234f789 | /**
* Copyright 2014 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | Java | src/main/java/rx/internal/operators/OnSubscribeUsing.java | akarnokd/RxJavaFlow | apache-2.0 | 4,699 | 139 | codeparrot/github-code |
c72a79fb30ebc394299aecaa7321a36d8b5a3493c8fe507c168ba054c71b0aa3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SuperSocket.Common.Logging;
namespace SuperSocket.Common
{
/// <summary>
/// Async extension class
/// </summary>
public static class Async
{
/// <summary... | C# | mainline/Common/Async.cs | mdavid/SuperSocket | apache-2.0 | 4,478 | 120 | codeparrot/github-code |
f5df7c608acc1a87865f86b0d87bcb15efc56720eafa65639bf89a2d8609a7c9 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/keyspaces/model/TableSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namesp... | C++ | aws-cpp-sdk-keyspaces/source/model/TableSummary.cpp | aws/aws-sdk-cpp | apache-2.0 | 1,617 | 90 | codeparrot/github-code |
977dd5e02f12f62c812f4a350cb02d2ce6aa5715875568e8d204a95b1c2e3739 | package org.marketcetera.marketdata.yahoo;
import java.util.HashMap;
import java.util.Map;
import org.marketcetera.util.misc.ClassVersion;
/* $License$ */
/**
* Represents a field in a Yahoo market data request.
*
* @author <a href="mailto:colin@marketcetera.com">Colin DuPlantis</a>
* @version $Id: YahooField.... | Java | trunk/modules/marketdata/yahoo/src/main/java/org/marketcetera/marketdata/yahoo/YahooField.java | nagyist/marketcetera | apache-2.0 | 5,271 | 150 | codeparrot/github-code |
4997ba371761efbd6bcb10316f40abf9f65403bc1b7b9d50c0f3893b4d2a1891 | import React from 'react';
import { action } from '@storybook/addon-actions';
import MultiColumnList from '../MultiColumnList';
import Button from '../../Button';
import { asyncGenerate } from './service';
export default class ClickableRows extends React.Component {
constructor() {
super();
this.state = {
... | JavaScript | lib/MultiColumnList/stories/ClickableRows.js | folio-org/stripes-components | apache-2.0 | 1,633 | 61 | codeparrot/github-code |
56c4d98c010a904380bcf5105810ddb0c054670fd4c2bceaddc37175c46be070 | /*
* Copyright © 2015 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | Java | cdap-explore-client/src/main/java/co/cask/cdap/explore/utils/ExploreTableNaming.java | caskdata/cdap | apache-2.0 | 1,817 | 55 | codeparrot/github-code |
1c755b6e617e470020945bf6dde8382524a8b48ea8aee5cc030948d66a719cb3 | /**
* @author 54chen(陈臻) [chenzhen@xiaomi.com czhttp@gmail.com]
* @since 2012-5-19 下午02:27:24
*/
package com.chen.controllers;
import com.chen.model.Chen;
import net.paoding.rose.web.Invocation;
import net.paoding.rose.web.paramresolver.ParamMetaData;
import net.paoding.rose.web.paramresolver.ParamResolver;
publi... | Java | src/main/java/com/chen/controllers/ChenBeanResolver.java | xiaowen118/test | apache-2.0 | 1,018 | 37 | codeparrot/github-code |
a3c3cb918beb24a7b97576af6fee9b5792188f94b49f1eec58347e4e7cbefacd | /*
* Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | C++ | folly/io/async/ssl/SSLErrors.cpp | Orvid/folly | apache-2.0 | 3,897 | 131 | codeparrot/github-code |
32ce480ff424fc2d8a3c9dcc2c36b7b4e02f98106b5d853e451bb7376864ccb1 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | Java | presto-main/src/test/java/com/facebook/presto/sql/planner/iterative/rule/TestPickTableLayout.java | nezihyigitbasi/presto | apache-2.0 | 10,572 | 220 | codeparrot/github-code |
d36d9e04c6a548b4c9e07d3853db165245bcf7e80acfe077e034f73fb3f349b2 | // Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_PPC_LITHIUM_CODEGEN_PPC_H_
#define V8_PPC_LITHIUM_CODEGEN_PPC_H_
#include "src/ppc/lithium-ppc.h"
#include "src/ppc/lithium-gap-resolver-pp... | C | deps/v8/src/ppc/lithium-codegen-ppc.h | dreamllq/node | apache-2.0 | 13,536 | 365 | codeparrot/github-code |
84d1945977b78af6b6386c3929e08b32e28670794fdf395b6cbc798585dbe9c2 | package org.johnnei.javatorrent.bittorrent.tracker;
import java.time.Clock;
import java.time.Duration;
import org.junit.jupiter.api.Test;
import org.johnnei.javatorrent.test.DummyEntity;
import org.johnnei.javatorrent.test.TestClock;
import org.johnnei.javatorrent.torrent.Torrent;
import static org.junit.jupiter.ap... | Java | bittorrent/src/test/java/org/johnnei/javatorrent/bittorrent/tracker/TorrentInfoTest.java | Johnnei/JavaTorrent | apache-2.0 | 2,213 | 69 | codeparrot/github-code |
90dc98441650d3bfb122e483a25def8f92759c4af0df8d7ffaf2033d339eb9dc | /* Copyright (©) 2012 Sense Observation Systems 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
*
* Unless required by applicable law... | C | sense platform/sensors/CSRotationSensor.h | senseobservationsystems/sense-ios-library | apache-2.0 | 991 | 39 | codeparrot/github-code |
1741577e6afacaed6f6ab91fa7a63e5421e0791c47290d5b5da75350cdcf062c | using SelectelSharp.Requests;
using System;
using System.Net;
using System.Threading.Tasks;
namespace SelectelSharp
{
public class SelectelClient
{
public string StorageUrl { get; private set; }
public string CDNUrl { get; private set; }
public string AuthToke... | C# | redistributable/SelectelSharp/SelectelClient.cs | ONLYOFFICE/CommunityServer | apache-2.0 | 2,015 | 66 | codeparrot/github-code |
f3741ada0063f11cadd7e2800c8f1fe9c96ce262d27f3f3644e577db6ed3a88a | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
namespace Navier_Boats.Engine.Pathfinding
{
public class SearchNode
{
public PathNode Node
{
get;
set;
}
public SearchNode Parent
... | C# | Navier-Boats/Navier-Boats/Navier-Boats/Engine/Pathfinding/SearchNode.cs | liam-middlebrook/Navier-Boats | apache-2.0 | 950 | 59 | codeparrot/github-code |
1a96af1caa2f4bd853ec266e2000968ad367d1a3edf26b12ce96dbd78a836c6c | package com.box.l10n.mojito.aws.s3;
import com.amazonaws.services.s3.AmazonS3;
import org.junit.Assume;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.... | Java | webapp/src/test/java/com/box/l10n/mojito/aws/s3/AmazonS3ConfigurationTest.java | box/mojito | apache-2.0 | 1,267 | 40 | codeparrot/github-code |
11296abc0b190d06cd71629e88a39e6e5ea82e0133d4080584c8e0f30b52275d | package il.co.topq.kpi.client;
import java.io.IOException;
import il.co.topq.kpi.view.DataTable;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
public class Issues extends AbstractResource {
public Issues(OkHttpClient client, String baseUrl) {
super(client, baseUrl);
}
public D... | Java | src/test/java/il/co/topq/kpi/client/Issues.java | Top-Q/kpi-editor | apache-2.0 | 825 | 34 | codeparrot/github-code |
c757461b55f3f83bdb2805c5425bee3c696999839dc65ce83900141b190b0cbc | /*
* Copyright (C) 2013 75py
*
* 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 | src/com/nagopy/android/xposed/utilities/setting/ModNotificationExpandedClockSettings.java | 75py/XUtilities | apache-2.0 | 3,919 | 121 | codeparrot/github-code |
764d16aee260a8a3d08d7f7cd17d859bb45eccf6f4f4b6c8d367bbacdbb4569a | <!DOCTYPE html>
<html>
<head><title>Carbonara Recipe Results</title></head>
<meta charset="UTF-8">
<body bgcolor=ccddff>
<?
include "config.php";
$link = mysql_connect($CONFIG["database"]["host"],$CONFIG["database"]["user"],$CONFIG["database"]["pass"])or die("Connect Error: ".mysql_error());
//print "Successfully conn... | PHP | carb_query.php | paskino/carbonara | apache-2.0 | 12,062 | 479 | codeparrot/github-code |
0edddaddd7f9a7f0e0e60b1b95e265dbd975e9f3fd410ba36309965d93d19c57 | // The island of misfit toys... for functions
var path = require('path'),
fs = require('fs'),
colors = require('colors'),
crypto = require('crypto'),
util = require('util'),
wrench = require('wrench'),
jsonlint = require('jsonlint'),
resolve = require('resolve'),
paths = require('global-paths'),
logger = requ... | JavaScript | Alloy/utils.js | mobilehero/adamantium | apache-2.0 | 18,249 | 632 | codeparrot/github-code |
869da5379ac7b76677b26e7fccdef970452a1e29ec4870a44d0f596ac635c7fc | /*
Copyright 2015-2017 Artem Stasiuk
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, softw... | Java | src/main/java/com/github/terma/fastselect/MultiShortRequest.java | terma/fast-select | apache-2.0 | 1,937 | 66 | codeparrot/github-code |
8d81f069e9eadf51dbc07dd4170b3ef6bddb1da4211cfcb3d3240ec9bed8d25f | /*
* Copyright (C) 2009 JavaRosa
*
* 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 | javarosa/j2me/media/src/org/javarosa/media/audio/service/J2MEAudioCaptureService.java | dimagi/javarosa | apache-2.0 | 10,141 | 343 | codeparrot/github-code |
1d2aafe6779492a4c563da2e3c670117345921450e683311c6adf3187081a49e | /*global angular*/
(function () {
angular
.module('simplAdmin.vendors')
.controller('VendorListCtrl', ['vendorService', 'translateService', VendorListCtrl]);
function VendorListCtrl(vendorService, translateService) {
var vm = this;
vm.tableStateRef = {};
vm.vendors = []... | JavaScript | src/Modules/SimplCommerce.Module.Vendors/wwwroot/admin/vendors/vendor-list.js | simplcommerce/SimplCommerce | apache-2.0 | 1,541 | 40 | codeparrot/github-code |
79d3f4daa089fde0b52dccd2b1a1ac76ea2720604b1c9d8e6cb725c1760e3b3f | // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | Rust | src/libstd/semver.rs | jeltz/rust-debian-package | apache-2.0 | 10,488 | 395 | codeparrot/github-code |
9b36a7a49a05ab1b3d46be5087ac3bd63c287f2a2ef8f6de41b161add4f7070e | /*******************************************************************************
* Copyright 2008-2013 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... | C# | AWSSDK/Amazon.EC2/Model/AccountAttribute.cs | emcvipr/dataservices-sdk-dotnet | apache-2.0 | 3,818 | 113 | codeparrot/github-code |
58b4f27582b80902dcdfa242cca3254c235ea25e11c372ffe29d064f660ca028 | package docker_registry
import (
"context"
"net/http"
neturl "net/url"
"path"
)
type harborApi struct{}
func newHarborApi() harborApi {
return harborApi{}
}
func (api *harborApi) DeleteRepository(ctx context.Context, hostname, repository, username, password string) (*http.Response, error) {
u, err := neturl.P... | GO | pkg/docker_registry/harbor_api.go | flant/dapp | apache-2.0 | 788 | 38 | codeparrot/github-code |
5b06fb3ed5234345abae56dd2d6b82bff87770acdc3fc02bc1789136f7a0b6ee | /*
* 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")... | Java | Source4Tomcat/src/org/apache/tomcat/util/bcel/classfile/AnnotationDefault.java | pistolove/sourcecode4junit | apache-2.0 | 3,166 | 97 | codeparrot/github-code |
54f91c4341cd6eca3892c1329976ac38514526f9aca784a16b56a1bcba9669be | /*
* This file is part of the PDF Split And Merge source code
* Copyright 2020 by Sober Lemur S.a.s di Vacondio Andrea (info@pdfsam.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... | Java | src/test/java/org/pdfsam/injector/TransitiveDependencyTest.java | torakiki/sejda-injector | apache-2.0 | 1,375 | 55 | codeparrot/github-code |
efad4544930b3560aafda42520322aa87587b6b542c60fb613aa8a1fc17e6017 | /*
* Copyright 2017 PayPal
*
* 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 writin... | Scala | squbs-unicomplex/src/test/scala/org/squbs/unicomplex/MaterializerSpec.scala | anilgursel/squbs | apache-2.0 | 13,894 | 334 | codeparrot/github-code |
0cac8fde40ef58979ce2134558d756bb361dfe5e05d0d8515cf3444c43442afb | //---------------------------------------------------------------------------------------------
// Torque Game Builder
// Copyright (C) GarageGames.com, Inc.
//---------------------------------------------------------------------------------------------
function addMessageCallback(%msgType, %func)
{
$MSGCB[%msgType... | C# | Bin/common/gameScripts/client/message.cs | zhengxiaoyao0716/ARPGPal-In-Funcode- | apache-2.0 | 1,560 | 51 | codeparrot/github-code |
8742b4bac7265014cd6c4f093cadab7a7a8aebd47335e9034fa1c0a0b9fe8991 | # Copyright 2015 CareerBuilder, LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing,... | Ruby | lib/smartling_rails/smartling_processor.rb | careerbuilder/smartling-rails | apache-2.0 | 3,663 | 94 | codeparrot/github-code |
741673acc8b49fee31527784a374fe4b437e731fae21e4c15d5e013aafee62a9 | import React, { Component } from 'react';
import MePanel from '../components/panels/MePanel';
import { Segment } from 'semantic-ui-react'
import DetailedActivity from './activities/DetailedActivity';
import ActivityGraph from './activities/ActivityGraph';
class ActivityOverview extends Component {
constructor(prop... | JavaScript | frontend/src/components/ActivityOverview.js | jeroen-visser/strava | apache-2.0 | 1,666 | 59 | codeparrot/github-code |
a929336797155cb4a42c63694a06afa12468ad9ae16de8f59c62f5c39c73fb43 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/timestream-query/model/TargetDestination.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace ... | C++ | aws-cpp-sdk-timestream-query/source/model/TargetDestination.cpp | aws/aws-sdk-cpp | apache-2.0 | 1,165 | 60 | codeparrot/github-code |
d25c2e3057edb5a2c699082fb0de8fa4aafe7845e6b5db0ae1be43fd0f1772cb | package cn.felord.wepay.ali.sdk.api.request;
import java.util.Map;
import cn.felord.wepay.ali.sdk.api.AlipayRequest;
import cn.felord.wepay.ali.sdk.api.internal.util.AlipayHashMap;
import cn.felord.wepay.ali.sdk.api.response.AlipayMarketingCampaignCashDetailQueryResponse;
import cn.felord.wepay.ali.sdk.api.AlipayObje... | Java | src/main/java/cn/felord/wepay/ali/sdk/api/request/AlipayMarketingCampaignCashDetailQueryRequest.java | NotFound403/WePay | apache-2.0 | 4,843 | 216 | codeparrot/github-code |
2768e26e78108a607742bb1c83bfb53bec0e79046a02f4ed999897e0942fd367 | // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed... | JavaScript | samples/quickstart.js | max-mathieu/nodejs-channel | apache-2.0 | 5,053 | 137 | codeparrot/github-code |
f0a818410e791a9ad054d3a91197e2658834766b3f5bd41fce95ad0d553d83ee | /*
* Copyright 2007 the project originators.
*
* 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 appl... | Java | src/java/com/teletalk/jserver/tcp/http/HttpMessage.java | tolo/JServer | apache-2.0 | 17,857 | 589 | codeparrot/github-code |
1fd70bb7f4e1fdc77d3eaaa129c680531f519a5fc4d12fda3235a12b20eaece7 | /**
* 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-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/ContainerPreemptEvent.java | srijeyanthan/hops | apache-2.0 | 2,020 | 60 | codeparrot/github-code |
a40300fda257f817146fc0944d62227e4f66f1304005ec841cead1d9055a252b | /*
* testlistfmt_ka_GE.js - test the list formatter object
*
* Copyright © 2020, JEDLSoft
*
* 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/LICEN... | JavaScript | js/test/strings-ext/testlistfmt_ka_GE.js | iLib-js/iLib | apache-2.0 | 7,454 | 253 | codeparrot/github-code |
960e27d418219d1d0ec872ff3de3f58e75d26d51940a289eace045365f58bb81 | import { LoggingEvent } from "log4js";
import { EventEmitter } from "events";
import { EMIT_APPENDER_EVENT_NAME } from "../../../constants";
function emitAppender(layout: Function, emitter: EventEmitter) {
const appender = (loggingEvent: LoggingEvent) => {
emitter.emit(EMIT_APPENDER_EVENT_NAME, {
loggingEvent,
... | TypeScript | lib/common/logger/appenders/emit-appender.ts | NativeScript/nativescript-cli | apache-2.0 | 1,120 | 43 | codeparrot/github-code |
f8e2b69696555ece31c31867ab51ec53f432ddfa1e8b928657a6e7f76340d7de | package edu.jhu.pacaya.sch.tasks;
import static edu.jhu.pacaya.sch.util.Indexed.enumerate;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.function.DoubleConsumer;
import org.apache.commons.math3.linear.RealVector;
import edu.jhu.pacaya.sch.Schedule;
import edu.jhu.pa... | Java | src/main/java/edu/jhu/pacaya/sch/tasks/SumPaths.java | mgormley/pacaya | apache-2.0 | 10,231 | 270 | codeparrot/github-code |
96cca6cddb8905acecaf385ccf3746bafdad7a90b27a9b15bab4c04a5546dc78 | /*
* Copyright 2014 Avanza Bank AB
*
* 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... | Java | astrix-metrics/src/test/java/com/avanza/astrix/metrics/DropwizardMetricsTest.java | AvanzaBank/astrix | apache-2.0 | 2,943 | 100 | codeparrot/github-code |
456a3ec89d7caebe8cf90dacfbdd940ad60f886e7be7020f139bf27ade98c4fd | /*
* Copyright 2019 Baidu, Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | Java | src/main/java/com/baidubce/services/cfc/model/UpdateTriggerRequest.java | baidubce/bce-sdk-java | apache-2.0 | 3,724 | 158 | codeparrot/github-code |
185d800819004ecc63f2205af0b90a0522a024bd96741f9676623fd4463111f4 | /**
* @copyright Copyright 2016 The J-PET Framework 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 find a copy of the License in the LICENCE file.
*
* Unless required by applicable la... | C | JPetScopeParamGetter/JPetScopeParamGetter.h | kmuzalewska/j-pet-framework | apache-2.0 | 1,457 | 41 | codeparrot/github-code |
bf8a8210c3f6c0cc4dd6d84d404119b9717695927b8354c97ed7d5cf28a59508 | /*global define*/
define([
'../Core/BoundingSphere',
'../Core/Cartesian3',
'../Core/clone',
'../Core/Color',
'../Core/ComponentDatatype',
'../Core/defaultValue',
'../Core/defined',
'../Core/defineProperties',
'../Core/destroyObject',
'../Co... | JavaScript | Source/Scene/ModelInstanceCollection.js | omh1280/cesium | apache-2.0 | 43,075 | 1,001 | codeparrot/github-code |
596a4ebad6536fce56b3122be3a0bef1ddef72972d09204f8ec1c5862f7612c5 | #import In.entity
class RelationHistory(In.entity.Entity):
'''RelationHistory Entity class.
'''
def __init__(self, data = None, items = None, **args):
# default
self.relation_id = 0
self.action = ''
self.actor_entity_type = ''
self.actor_entity_id = 0
self.message = ''
super().__init__(data, item... | Python | relation/entity_relation_history.py | vinoth3v/In_addon_relation | apache-2.0 | 1,675 | 70 | codeparrot/github-code |
7fc616168fd53e0cdc606c3862063d7fa1be2c84a4ce31f338b101a295a73924 | package com.gaborpeto.androidexercise.api.model;
import com.google.gson.annotations.SerializedName;
public class RemoteComment {
@SerializedName("id") public int id;
@SerializedName("postId") public int postId;
@SerializedName("name") public String name;
@SerializedName("email") public String email;
... | Java | api/src/main/java/com/gaborpeto/androidexercise/api/model/RemoteComment.java | GaborPeto/android-exercise | apache-2.0 | 1,573 | 48 | codeparrot/github-code |
ef07814460f92f1b9f56603716f3a036bd3060f4e8a208237b6e3954fc4aca0f | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | Java | core/src/main/java/org/elasticsearch/index/mapper/GeoPointFieldMapperLegacy.java | girirajsharma/elasticsearch | apache-2.0 | 14,641 | 359 | codeparrot/github-code |
2911364e3070d7583ada1eb6a2d195c3891f0424bd33d527943da6707ec35c08 | {% extends "privilege/privilege_base.html" %}
{% load i18n %}
{% load static %}
{% load pagination %}
{% block privilege_content %}
<form role="form" method="POST" id="form" action="{% url 'privilege.views.permission.delete_permissions' %}">
<div class="panel panel-default">
<div class="panel-heading">
<div cla... | HTML | privilege/templates/privilege/permission_list.html | luodaihong/django-privilege | apache-2.0 | 2,295 | 75 | codeparrot/github-code |
9f605ea534e7c3e000acc6f31089ae6176e36e72605e33fc055a81c4d6edc368 | /*
* Copyright 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" file ... | Java | services/s3/src/test/java/software/amazon/awssdk/services/s3/internal/resource/S3AccessPointResourceTest.java | aws/aws-sdk-java-v2 | apache-2.0 | 17,352 | 327 | codeparrot/github-code |
b8acd91c7a46fea72553a924f9ec1acb81405de7a168e0327bdf42f013d722d5 | package app
import (
"fmt"
"sort"
"strings"
"github.com/fsouza/go-dockerclient"
kapi "github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api/errors"
utilerrors "github.com/GoogleCloudPlatform/kubernetes/pkg/util/errors"
"github.com/golang/glog"
"github.com/ope... | GO | pkg/generate/app/imagelookup.go | stefwalter/origin | apache-2.0 | 9,331 | 340 | codeparrot/github-code |
ad8db8aeca2abda7ce111cd4ca12a17d8886711e6927dd19ac47811e44b63b2b | package com.quollwriter.exporter;
import java.util.*;
import javax.swing.*;
import javax.swing.tree.*;
import com.quollwriter.data.*;
public class ExportUtils
{
public static Project getSelectedItems (JTree tree,
Project proj)
{
Project p = new Projec... | Java | src/com/quollwriter/exporter/ExportUtils.java | garybentley/quollwriter | apache-2.0 | 1,441 | 72 | codeparrot/github-code |
fc71883c7f9f4eaec64dd6f3c7cbc55edb152a5baf9d53e09a88d3513a4e1b73 | /*
* 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-kinesisanalyticsv2/src/main/java/com/amazonaws/services/kinesisanalyticsv2/model/EnvironmentPropertyDescriptions.java | jentfoo/aws-sdk-java | apache-2.0 | 5,981 | 167 | codeparrot/github-code |
5c774aa4c7a9e349110fc88ff6b7eae3a7adcea386b5f9af626318ff88ca6bcb | package com.kagrana.keyword_driven_framework;
import java.util.HashMap;
/**
* This library helps in automating Selenium tests and makes keyword driven
* framework to execute TestNG tests.
*
* @author mayur
*
*/
public class App {
public static void main(String[] args) throws Exception {
HashMap<String, Str... | Java | src/main/java/com/kagrana/keyword_driven_framework/App.java | selenium-webdriver-software-testing/keyword-driven-framework | apache-2.0 | 1,672 | 51 | codeparrot/github-code |
e09e8e25a041bee2497ee8873cdee6d4903353b4ecb4a0fc9bf7dfb34ca7e1bb | /*
* Copyright 2011 Future Systems
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | Java | araqne-logstorage/src/main/java/org/araqne/logstorage/engine/LogStorageMonitorEngine.java | araqne/logdb | apache-2.0 | 10,490 | 350 | codeparrot/github-code |
cf2c44357d4d634bb8ce45f6a2922fa48cb81967867877de4bcd46b451087b44 | /*
* 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 | digits/src/main/java/com/digits/sdk/android/DigitsCallback.java | jnbt/digits-android | apache-2.0 | 1,660 | 49 | codeparrot/github-code |
b2fde09d82d7786274d950358be15add2927db0ffcf06c93e86544bd63bd8b2c | {% extends "base.html" %}
{% block content %}
<div class="row">
<div class="large-12 columns">
{% if user.is_authenticated %}
<h1>Your stats</h1>
{% if not stats or stats.questions.total == 0 %}
<p>No questions answered yet.</p>
{% else %}
<p>Total questions: {{stats.... | HTML | mathquizweb/mathquizweb/templates/stats.html | jhobbs/mathquizweb | apache-2.0 | 1,463 | 43 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.