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 |
|---|---|---|---|---|---|---|---|---|
416bdf68ea794121c8b430e8d324589ef5d5351c72ec3976c5c58df711f38c5f | /*
* Copyright 2005-2007 The Kuali Foundation
*
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless require... | Java | impl/src/main/java/org/kuali/rice/kew/stats/Stats.java | sbower/kuali-rice-1 | apache-2.0 | 3,532 | 141 | codeparrot/github-code |
3e9f8160d79e305d46b86372464fd189bd929104328d206c68d5bc2818ac4b47 | /*
* Copyright 2015 JAXIO http://www.jaxio.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 applicable la... | Java | celerio-engine/src/main/java/com/jaxio/celerio/configuration/support/AbstractJibxLoader.java | jaxio/celerio | apache-2.0 | 2,436 | 71 | codeparrot/github-code |
f54075a37c16f93c8c3d6bb7a984b3a7358a6a4dcb8982cd5d9b6e4f636ba51e | /*
* Copyright 2015 Szabolcs Balazs Beres.
*
* 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 | security/java-api-security/src/main/java/com/github/szberes/spring/examples/security/java/TestedService.java | szberes/spring-examples | apache-2.0 | 1,424 | 39 | codeparrot/github-code |
5c7aba21d6657ba6bef2da902fd67e159e43ab7c85cfed7457ed58e89b414b39 | package com.ai.sizzler.scan.component;
import java.sql.Date;
import java.util.Map;
public abstract class AbstractImporter implements Importer{
private long id;
private String name;
private String desc;
private String props;
private Date ctime;
private long dsId;
@Override
public void load(Map map) {
this.... | Java | src/main/java/com/ai/sizzler/scan/component/AbstractImporter.java | playaround88/sizzler | apache-2.0 | 1,183 | 61 | codeparrot/github-code |
f6c67a52d330c7665ca7bf8a2bf65bf8a05367133f7b32528e02c935bd1318b5 | /*
* Copyright 2016 Naver 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 ... | Java | web/src/main/java/com/navercorp/pinpoint/web/dao/hbase/stat/v2/HbaseSampledCpuLoadDaoV2.java | suraj-raturi/pinpoint | apache-2.0 | 2,783 | 61 | codeparrot/github-code |
188773ff5459d3261b570c1660f3068926043330ecf303098d147bbe86eba845 | package com.memory.platform.core.service.impl;
import java.io.Serializable;
import java.lang.reflect.ParameterizedType;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframe... | Java | Server-Platform/Hibernate/3.0/memory-root/modules/memory-core/src/main/java/com/memory/platform/core/service/impl/BaseServiceImpl.java | ShareTeam/Platform | apache-2.0 | 7,111 | 280 | codeparrot/github-code |
00b9309fc780c2074e1daf51dd0cef01f06e261f8128bfb69669de9ac2ae8fbf | /*
Image Uploader - free application for uploading images/files to the Internet
Copyright 2007-2018 Sergey Svistunov (zenden2k@gmail.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
... | C++ | Source/Core/ServerListManager.cpp | zenden2k/image-uploader | apache-2.0 | 5,234 | 134 | codeparrot/github-code |
2d3e4fa95ed8bbd359a6fe9f3152fbeafd82324a973e3732b55190a65b0df91e | package br.com.musicas.opus08.mylonelygirl;
import java.util.Random;
import org.jfugue.Pattern;
public class Bateria extends Estrutura{
@Override
public void inicio() {
partitura.add(new Pattern("V9 X[Volume]=10000"));
partitura.add(new Pattern("[SIDE_STICK]q [SIDE_STICK]q [SIDE_STICK]q [SIDE_STICK]q"), 1); ... | Java | album1/workspace/Memorable/src/br/com/musicas/opus08/mylonelygirl/Bateria.java | christianpeixoto/linguanervosa | apache-2.0 | 5,392 | 75 | codeparrot/github-code |
99bfd26d6bed0e6c18658e2fd40c19180b3e6eca20603753a9649560e6aa2cf6 | /*******************************************************************************
* 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... | Java | applications/accounting/src/org/ofbiz/accounting/thirdparty/valuelink/ValueLinkServices.java | ofbizfriends/vogue | apache-2.0 | 72,092 | 1,541 | codeparrot/github-code |
c9ba1b18cde720000dd9cbdf771860263c31e81179d1087803cff990a08c6731 | package org.apache.commons.ognl;
/*
* 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, Ve... | Java | src/main/java/org/apache/commons/ognl/ASTList.java | mohanaraosv/commons-ognl | apache-2.0 | 7,472 | 229 | codeparrot/github-code |
60137dd8cd39baf169774b89137c77f8ea25399195a782691d8f46fcd832aaee | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | java/java-impl/src/com/intellij/refactoring/introduceparameterobject/IntroduceParameterObjectHandler.java | leafclick/intellij-community | apache-2.0 | 5,868 | 131 | codeparrot/github-code |
56bf767405086b868e9e24bdf999a0af4ffe02b8a0164b686829f1ce2c1aafab | /*
* Copyright 2016-2020 47 Degrees Open Source <https://www.47deg.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | Scala | github4s/src/test/scala/github4s/unit/GitDataSpec.scala | 47deg/github4s | apache-2.0 | 7,508 | 245 | codeparrot/github-code |
fbb897bf23bcce7fe7d0e962dce000a5d468c29b11c113cc0deb79d3330a3702 | /*
* 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 | bundle/core/src/main/java/org/apache/karaf/bundle/core/internal/BundleInfoImpl.java | grgrzybek/karaf | apache-2.0 | 5,929 | 183 | codeparrot/github-code |
0663e568d21f5dd614d2984cd4f5878d8288c32284f6ecb95cade8f9d1d73ed2 | package fiddle.repository;
import java.io.IOException;
import com.google.common.base.Optional;
import com.google.common.collect.ImmutableList;
public class FallbackRepository<ReadRsc, WriteRsc, Id> implements Repository<ReadRsc, WriteRsc, Id> {
private final Repository<ReadRsc, WriteRsc, Id> main;
private final R... | Java | repository/src/main/java/fiddle/repository/FallbackRepository.java | cedricbou/FiddleWith | apache-2.0 | 818 | 34 | codeparrot/github-code |
cac158f50fb483941ccf4f566c1bfb49c94070e2be325dbe16254f631f5c7e26 | #!/usr/bin/env python
"""beanstalkc - A beanstalkd Client Library for Python"""
import logging
import socket
import sys
__license__ = '''
Copyright (C) 2008-2016 Andreas Bolka
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obt... | Python | beanstalkc.py | earl/beanstalkc | apache-2.0 | 10,921 | 318 | codeparrot/github-code |
a52aa5f61d4917597377f2f1569be3106121f63e939f737eec9fe68950541c92 | /*******************************************************************************
* Copyright 2014 See AUTHORS file.
* <p>
* 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
* <p>
* http://www.... | Java | lumm/core/src/main/java/dk/sidereal/lumm/architecture/core/input/ActionData.java | LummECS/Lumm | apache-2.0 | 2,950 | 102 | codeparrot/github-code |
702cbb55fda4688d16c9e6c6b7f7833977083a5b5388d3500ee0afb49a38cbd1 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Scala | src/test/scala/jp/gihyo/spark/ch06/gihyo_6_3_UpdateStateByKeySuite.scala | yu-iskw/gihyo-spark-book-example | apache-2.0 | 1,578 | 43 | codeparrot/github-code |
36507955622a79ba8a31be868d113a1d5742d60a85f5ac91f96c3dc39db6a10c | /*
* Copyright 2015-2016 Red Hat, Inc, and individual contributors.
*
* 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 require... | Java | core/src/main/java/org/jboss/hal/core/finder/Finder.java | hal/hal.next | apache-2.0 | 22,408 | 598 | codeparrot/github-code |
20f1cd1be22d3d4bcec96294cc54298c6c901b7d16b02a1beec1351a1762c8f0 | package io.druid.data.input.impl;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.metamx.common.parsers.JSONToLowerParser;
import com.metamx.common.parsers.Parser;
import java.util.List;
/**
* T... | Java | src/main/java/io/druid/data/input/impl/JSONLowercaseParseSpec.java | ReturnPath/druid-api | apache-2.0 | 1,249 | 52 | codeparrot/github-code |
1153ae2feeec54e3b9d56b8e9610ddeafe720f44dd60e92579e02fc8c6d77700 | package main
import (
"flag"
"io/ioutil"
"log"
"os"
"os/signal"
"strconv"
"syscall"
"code.cloudfoundry.org/cflager"
"code.cloudfoundry.org/lager"
"code.cloudfoundry.org/route-registrar/config"
"code.cloudfoundry.org/route-registrar/healthchecker"
"code.cloudfoundry.org/route-registrar/messagebus"
"code.c... | GO | src/route-registrar/main.go | aerospike/cf-aerospike-service-release | apache-2.0 | 2,027 | 90 | codeparrot/github-code |
607af9b39da287e76fb67c742117cec69c21e5ed84f5f122b0cf18e1852b2045 | package main
import (
"encoding/json"
"flag"
"fmt"
"os"
"reflect"
"strconv"
"strings"
mp "github.com/mackerelio/go-mackerel-plugin-helper"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
)
var graphdef = map[string](mp.Graphs){
"mongodb.background_flushing": mp.Graphs{
Label: "MongoDB Command",
Unit: "float... | GO | mackerel-plugin-mongodb/mongodb.go | naokibtn/mackerel-agent-plugins | apache-2.0 | 7,968 | 260 | codeparrot/github-code |
91d5d10ca3389e3fc2f0043aaad5199827ba690b90a081416d2bcc7e8944b278 | /*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include "viz_collector.h"
#include "viz_constants.h"
#include "OpServerProxy.h"
#include <tbb/mutex.h>
#include <boost/bind.hpp>
#include <boost/assign/list_of.hpp>
#include "base/util.h"
#include "base/logging.h"
#include "base/parse_object.h"
... | C++ | src/analytics/OpServerProxy.cc | sysbot/contrail-controller | apache-2.0 | 12,271 | 350 | codeparrot/github-code |
f45e70fb48270f09a89b87cb554641057157d0bf06282f44fd0d0778d253020b | package com.blankj.subutil.util;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.util.Log;
import com.blankj.utilcode.util.AppUtils;
import com.blankj.utilcode.util.RomUtils;
import com.blankj.utilcode.util.Utils;
... | Java | lib/subutil/src/main/java/com/blankj/subutil/util/AppStoreUtils.java | Blankj/AndroidUtilCode | apache-2.0 | 4,676 | 136 | codeparrot/github-code |
00be26bda65c006f925e00c92d7523faee4a90d9a56358cf17dce943e6c5ae8f | /*
* Copyright 2011 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 ... | Java | java/src/com/google/template/soy/soytree/LetContentNode.java | rpatil26/closure-templates | apache-2.0 | 7,281 | 241 | codeparrot/github-code |
a9f575afaf356c3e1488efce25863872e8993023d6f936277e264e282b0e8727 | /*
* Copyright 2016 Ripple OSI
*
* 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 | hscie-ripple-database/src/test/java/org/rippleosi/audit/search/AuditEntityToAuditSummaryTransformerTest.java | RippleOSI/NE-HSCIE-Core | apache-2.0 | 2,191 | 58 | codeparrot/github-code |
0680862e1b34c229cf11b12ff4672b04d96acc8898b4cd82b55b43ae53a53d3c | /**
* #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
* This file is part of the LDP4j Project:
* http://www.ldp4j.org/
*
* Center for Open Middleware
* http://www.centeropenmiddleware.com/
* #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
* ... | Java | commons/core/src/test/java/org/ldp4j/xml/QualifiedNameTest.java | ldp4j/ldp4j | apache-2.0 | 2,968 | 82 | codeparrot/github-code |
9ce3d309b651852cfa77cee87056fd70784621a1664e6a745a54f967f90d7af9 | package com.intel.analytics.zoo.apps.textclassfication.inference;
import com.intel.analytics.zoo.pipeline.inference.JTensor;
import org.springframework.web.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;
@RestController
public class WebServiceController {
private TextClassificationModel te... | Java | apps/model-inference-examples/text-classification-inference/src/main/java/com/intel/analytics/zoo/apps/textclassfication/inference/WebServiceController.java | intel-analytics/analytics-zoo | apache-2.0 | 2,098 | 59 | codeparrot/github-code |
7f0857885a7914dee685d1d568af277097cbf45f6baa09847e23076d768ce2ef | /*
* 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 | core/src/main/java/tech/tablesaw/sorting/Sort.java | jtablesaw/tablesaw | apache-2.0 | 5,503 | 165 | codeparrot/github-code |
47a0ad34f1f32865b2ae62262933d253af3bf1da6b871d115e10370d2bd10cf8 | /**
* Copyright (C) 2012 Johan Grufman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | Java | convx-core/src/main/java/org/convx/writer/WriterNode.java | johangrufman/convx | apache-2.0 | 1,331 | 41 | codeparrot/github-code |
6ce3526194a1e14d381ef4eb3754fd8371c790cd26c391e5e78ad2dd87a9adfc | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Distributed Systems with NServiceBus</title>
<meta name="description" content="A quick-start on the relative merits of 'monolith' apps vs distributed apps.">
<meta name="author" content="Neil Barnwell">
<meta name="apple-mobile-w... | HTML | Presentation/reveal.js-3.1.0/index.html | nbarnwell/distributed-systems-with-nsb | apache-2.0 | 10,997 | 225 | codeparrot/github-code |
938b4fefafc1ef4d2297ae8e8610d2e3f944622ebaeab3436c929f82fa3fcb37 | using UnityEngine;
using System.Collections;
using UnityEditor;
using System;
using System.Linq.Expressions;
using Ikari.VertexPainter;
using System.Reflection;
public class IVPInterface : EditorWindow {
public static float DrawFloatField(string labelName, float value)
{
EditorGUI.BeginChangeCheck();
... | C# | Assets/Ikari/Vertex Painter/Scripts/Editor/IVPInterface.cs | Belleal/civilization-rise-and-fall | apache-2.0 | 2,940 | 78 | codeparrot/github-code |
92de8573b2895d2297954c441bdf4cab6d33875adaafe682a4bb511b560b71e6 | /**
* 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.sha... | Java | shared/src/main/java/org/opensmartgridplatform/shared/infra/ws/CircuitBreakerInterceptor.java | OSGP/Shared | apache-2.0 | 2,379 | 68 | codeparrot/github-code |
90802bc26a770ab06a4b9544358decfd4486c8ff4119c4e749c555a5c1599a10 | #include <bits/stdc++.h>
template<typename T> T gcd(T a, T b) {
if(!b) return a;
return gcd(b, a % b);
}
template<typename T> T lcm(T a, T b) {
return a * b / gcd(a, b);
}
template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; }
template<typename T> void chmax(T& a, T b) { a = (a < b) ? b : a; ... | C++ | COJ/SortMe.cpp | aajjbb/contest-files | apache-2.0 | 964 | 53 | codeparrot/github-code |
484e5b6f87461c14001ae6a326c8c8d9ee857d2f3c3e035417bdb4d5e5e74d74 | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | C++ | aws-cpp-sdk-dms/source/DatabaseMigrationServiceClient.cpp | JoyIfBam5/aws-sdk-cpp | apache-2.0 | 82,162 | 1,679 | codeparrot/github-code |
fef48f6ea48016014bfa653037440153152d7a14d6e1bf4592c46567b0c056db | /*
* Copyright 2015 Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | Java | core/api/src/main/java/org/onosproject/net/flow/criteria/IPv6FlowLabelCriterion.java | sonu283304/onos | apache-2.0 | 2,063 | 74 | codeparrot/github-code |
acc28461d823bfb64810722640feecd9f057eb4c98d9b5d0347b73ffd7e303da | """.. Ignore pydocstyle D400.
===============
Signal Handlers
===============
"""
from asgiref.sync import async_to_sync
from django.conf import settings
from django.db import transaction
from django.db.models.signals import post_delete, post_save
from django.dispatch import receiver
from resolwe.flow.managers impo... | Python | resolwe/flow/signals.py | genialis/resolwe | apache-2.0 | 2,030 | 59 | codeparrot/github-code |
247bd1d7918f1f0e66639c2e8e8117bf144349ad470bd921545067c368a48fbb | /**
* Copyright 2018 OpenCensus 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 ... | TypeScript | packages/opencensus-exporter-azure/test/test-stats-exporter.ts | census-instrumentation/opencensus-node | apache-2.0 | 6,121 | 201 | codeparrot/github-code |
695cbecf88e2a8f5245efa2a84e93bffc8f1299269fb74d25a4c31f2e7f66389 | #!/usr/bin/env python3
#coding:utf8
# *** TROUBLESHOOTING ***
# 1) If you get the error "ImportError: No module named zope.interface" then add an empty __init__.py file to the PYTHONDIR/Lib/site-packages/zope directory
# 2) It is expected that you will have NSIS 3 NSIS from http://nsis.sourceforge.net installed.
imp... | Python | buildPy2exe.py | alby128/syncplay | apache-2.0 | 31,042 | 773 | codeparrot/github-code |
9d3dd11cdbc84ed707bc8f7b08e1c1ecfb7137f6388db45813557003a24c6148 | class Solution {
public:
int coinChange(vector<int>& coins, int amount) {
const int n = coins.size();
int dp[amount + 1];
for (int i = 1; i <= amount; ++i) {
dp[i] = -1;
}
dp[0] = 0;
for (int i = 0; i <= amount; ++i) {
... | C++ | coin-change/solution-0.cpp | tsenmu/leetcode | apache-2.0 | 858 | 34 | codeparrot/github-code |
238f89424e1349e0a7ebc03d1ccab2cd5ae34ee8375b7c5e8902ec5051e20f9b | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | C | arangod/VocBase/server.h | m0ppers/arangodb | apache-2.0 | 12,233 | 298 | codeparrot/github-code |
808a08fb68e5bbb9530475f7e26c3b41c7e91b6254ca2d02292c4e6be52014a5 | /*
* Copyright 2001-2013 Artima, 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 agre... | Scala | src/test/scala/org/scalatest/PartialFunctionValuesSpec.scala | travisbrown/scalatest | apache-2.0 | 1,621 | 49 | codeparrot/github-code |
d9e6df242eacc0d0bf023f1b2f70e35ca76d1d5aff4466260bc1ffa390a4cf27 | # QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the Lice... | Python | Algorithm.Python/StandardDeviationExecutionModelRegressionAlgorithm.py | Jay-Jay-D/LeanSTP | apache-2.0 | 3,088 | 65 | codeparrot/github-code |
98bb2c935f3a777f3de22a601f6341e101e4e41cc01679431cd39f5c8bea8eee | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | platform/lang-impl/src/com/intellij/usageView/impl/UsageContextCallHierarchyPanel.java | leafclick/intellij-community | apache-2.0 | 5,209 | 135 | codeparrot/github-code |
abe3d48965dd1c3a8df6bf2354bd67828b97b81bda45e86fb8a7a760f27f2dd0 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.siyeh.ig.testFrameworks;
import com.intellij.psi.*;
import com.siyeh.ig.junit.JUnitCommonClassNames;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.ann... | Java | plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/testFrameworks/AssertHint.java | leafclick/intellij-community | apache-2.0 | 8,389 | 215 | codeparrot/github-code |
66c76e03e46f59708b5ba7e48a81dd3a16f9db2057516d28db359c3d6a716ee3 | /*
Copyright 2014 Reo_SP
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
dist... | Java | src/net/sbfmc/modules/mooncraft/MooncraftPlayerSession.java | reo7sp/SBF-Bukkit-Plugin | apache-2.0 | 3,352 | 164 | codeparrot/github-code |
488fcf9a9cb65c76b4467176a1d5975f096281ccd068849fcef12d19ba8f6e73 | package org.github.wpiasecki.graviola.modelo;
import org.github.wpiasecki.graviola.db.Coluna;
import org.github.wpiasecki.graviola.db.Tabela;
import android.provider.BaseColumns;
public class Horario implements Tabela {
public static final String ID = BaseColumns._ID;
public static final String HORA = "hora";
pu... | Java | src/org/github/wpiasecki/graviola/modelo/Horario.java | wpiasecki/graviola-android | apache-2.0 | 846 | 41 | codeparrot/github-code |
5369e6dfbafeaadf1ecd76ba94f1440509f25f96d52143d86bc1a74814b4c61d | /*
* Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html... | Java | dependencies/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/delta/CDORevisionDeltaImpl.java | IHTSDO/snow-owl | apache-2.0 | 15,910 | 587 | codeparrot/github-code |
3edaf85c210b3f99e4f14b895ff3d8ab2254b7643ad9535720f892495ddefbb9 | /**
* Copyright (C) 2006-2013 phloc systems
* http://www.phloc.com
* office[at]phloc[dot]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/license... | Java | phloc-commons/src/test/java/com/phloc/commons/xml/ChildElementIteratorTest.java | lsimons/phloc-schematron-standalone | apache-2.0 | 2,263 | 74 | codeparrot/github-code |
bdf435645d067ebfe98553d848d35f44cf596184a53916d7599731a946b6506a | /*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed W... | C | Modules/ThirdParty/GDCM/src/gdcm/Source/DataStructureAndEncodingDefinition/gdcmExplicitImplicitDataElement.h | RayRuizhiLiao/ITK_4D | apache-2.0 | 1,915 | 60 | codeparrot/github-code |
842e6b6be32fa00b80f4076d98e9d08262b447a0c3a8a6642687d532510eb625 | package com.lachesis.mnisqm.module.qualityForm.domain;
import java.util.Date;
public class QualityIssueManage {
private Long seqId;
private String resultCode;
private String formName;
private String issueContent;
private String issueUserCode;
private Date issueTime;
private String re... | Java | mnisqm/mnisqm-services/src/main/java/com/lachesis/mnisqm/module/qualityForm/domain/QualityIssueManage.java | gavin2lee/incubator | apache-2.0 | 5,353 | 275 | codeparrot/github-code |
60a7055a6041ed76aa67503d08e21dd79855aa17a654d5aa3cc00c22f05287fb | /*
* 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 | asterixdb/asterix-external-data/src/main/java/org/apache/asterix/external/feed/management/FeedLifecycleEventSubscriber.java | kisskys/incubator-asterixdb | apache-2.0 | 2,359 | 67 | codeparrot/github-code |
08da9f9c516deed59045975707cde25f36fc22ecd813084df73ba83a7cc36a2a | package org.cp.monitor.resources;
/**
* Created by: Nappa
* Version: 0.01
* Since: 0.01
*/
public class Resource {
protected int number;
protected boolean isLocked;
public Resource(final Integer number){
this.number=number;
}
public String toString(){
return String.format("%... | Java | CPMonitor/src/main/java/org/cp/monitor/resources/Resource.java | karolgurecki/Concurrent-Programming | apache-2.0 | 584 | 34 | codeparrot/github-code |
10a0fed268b7c52867837bb4cd34b59bdf87b3ae869bf11f7b553cea9d941204 | using UnityEngine;
using System.Collections;
public class attack_bullet : MonoBehaviour {
private float lifetime = .5f;
private float life = 0f;
public float damage;
public float speed;
public Vector3 velocity;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void U... | C# | SeniorProject/Assets/Scripts/attack_bullet.cs | SpencerHastings/SeniorProject | apache-2.0 | 770 | 52 | codeparrot/github-code |
ffb02b2dc2c8ecdb670c00afd3d96d99fdad8930220dfe330d065880c1922da2 | #include "drape_frontend/poi_symbol_shape.hpp"
#include "drape_frontend/color_constants.hpp"
#include "drape_frontend/shader_def.hpp"
#include "drape/attribute_provider.hpp"
#include "drape/batcher.hpp"
#include "drape/texture_manager.hpp"
#include "drape/utils/vertex_decl.hpp"
#include <utility>
namespace
{
df::Col... | C++ | drape_frontend/poi_symbol_shape.cpp | ruilin/RLMap | apache-2.0 | 7,436 | 178 | codeparrot/github-code |
640f8b345481b66155ed2d265c2f513fe14e3594fb6fae3a96215e8c58945fc3 | /*******************************************************************************
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership. ComicGenie licenses this
* file to you under the Apache License, Version 2.0 (the "License");
* you may not use this file e... | Java | src/main/java/org/comicwiki/model/schema/CreativeWorkSeries.java | comicgenie/rdf | apache-2.0 | 1,320 | 35 | codeparrot/github-code |
c3a7bb7d386360bf5d9d2eb4cad88224284919a8c2d1d3d926ac191dc8ccadf1 | # -*- coding: utf-8 -*-
'''
fantastic Add-on
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This pro... | Python | script.module.fantastic/lib/resources/lib/sources/en/sceper.py | TheWardoctor/Wardoctors-repo | apache-2.0 | 6,854 | 187 | codeparrot/github-code |
c038799204b8515e50eca2a33c690d9418ecb79551ec60d323bb2d85dfcbd531 | /*
============================================================================
Name : settings.c
Author : B. Eschrich
Version : 1.00
Copyright : Copyright (c) 2016-2017 by B. Eschrich (EoF)
Description : Global settings and command line options
=================================================... | C | src/settings.c | britus/carprotect | apache-2.0 | 3,476 | 123 | codeparrot/github-code |
23e667cb51f397d5422f1cbbf7a15aacdcdf896244d350717dfba1b343a54d02 | 'use strict';
var ContextHistory = require('./context_history');
var ContextTouch = require('./context_touch');
/**
* @param {!angular.Scope} $rootScope
* @param {!Window} $window
* @param {!Document} $document
* @param {!angular.Attributes} options
* @param {!TouchSurface.TouchChangedHandler} startHandler
* @... | JavaScript | src/lib/touch_surface.js | jzacsh/doodle | apache-2.0 | 13,368 | 495 | codeparrot/github-code |
9ae608eb34c720e06e0111199bb64ece3edbb6ca58c153ac4619a7ae3a8c3ea6 | /*******************************************************************************
* Copyright 2011, 2012 Chris Banes.
*
* 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.apac... | Java | src/com/poomoo/edao/widget/photoview/scrollerproxy/ScrollerProxy.java | poomoo/eDao | apache-2.0 | 1,739 | 49 | codeparrot/github-code |
f0eb90a0591ad540ae436a5a584d741827e61751c8f08fc82b1fed47bc75b5b8 | /*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org... | Java | outbound-endpoints/http-outbound/components/org.wso2.carbon.gateway.outbounds.http/src/main/java/org/wso2/carbon/gateway/outbounds/http/HTTPOutboundEndpoint.java | shafreenAnfar/carbon-gateway-framework | apache-2.0 | 2,619 | 88 | codeparrot/github-code |
0031308c521bde8562b9065d9913586fea0fd036a9184b421e565d23abc3f906 | //===--- SILGenBridging.cpp - SILGen for bridging to Clang ASTs -----------===//
//
// 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/SILGen/SILGenBridging.cpp | OscarSwanros/swift | apache-2.0 | 71,927 | 1,727 | codeparrot/github-code |
974dca428733c649d1c0ae66fcb7633e11053ad4f16a7761cefc2839fbcd8e45 | # #######
# Copyright (c) 2018-2020 Cloudify Platform Ltd. 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... | Python | cloudify_gcp/admin/__init__.py | cloudify-cosmo/cloudify-gcp-plugin | apache-2.0 | 1,945 | 62 | codeparrot/github-code |
2fc1036e21191a3f6d6ed140dd70453cb5dc839cd974a6d0b32ca9dca03e698e | package org.bds.lang;
import org.antlr.v4.runtime.tree.ParseTree;
import org.bds.run.BdsThread;
import org.bds.run.DebugMode;
/**
* An "breakpoint" statement
*
* @author pcingola
*/
public class Breakpoint extends Print {
public Breakpoint(BdsNode parent, ParseTree tree) {
super(parent, tree);
}
/**
* Ru... | Java | src/org/bds/lang/Breakpoint.java | leepc12/BigDataScript | apache-2.0 | 839 | 40 | codeparrot/github-code |
a6dc3bdae2e7eb8494e9a37ca22f46325062a534f72d5270b997f5efc4e77a78 |
package org.springframework.benchmark;
import org.aopalliance.intercept.MethodInterceptor;
import org.springframework.aop.Advisor;
import org.springframework.aop.framework.AbstractAopProxyTests;
import org.springframework.aop.framework.ProxyFactory;
import org.springframework.beans.ITestBean;
import org.springframewo... | Java | load/org/springframework/benchmark/AopPrototypeTest.java | cbeams-archive/spring-framework-2.5.x | apache-2.0 | 2,492 | 85 | codeparrot/github-code |
fd6867dea55bbe29d4c00878093a2670006ac99efd4228e98318159416154704 | package org.commcare.hub.events;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import org.commcare.hub.application.HubApplication;
import java.util.ArrayList;
import java.util.... | Java | CommCareHub/app/src/main/java/org/commcare/hub/events/HubActivity.java | ctsims/andorid-micronode | apache-2.0 | 2,103 | 81 | codeparrot/github-code |
aedbc3a41d0033e6adb9f94a7bfe115f3ad3058fea549b3be77866f163261838 | #!/bin/bash
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | Shell | docs/getting-started-guides/docker-multinode/worker.sh | christian-posta/kubernetes | apache-2.0 | 5,772 | 192 | codeparrot/github-code |
6015c8db95e4406ac5b72e82e91293b90ba6cd471a3db1eb002cfb8a94750856 | package io.joynr.examples.jee;
/*
* #%L
* %%
* Copyright (C) 2011 - 2017 BMW Car IT 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/... | Java | examples/radio-jee/radio-jee-provider/src/main/java/io/joynr/examples/jee/GeoLocationService.java | clive-jevons/joynr | apache-2.0 | 1,645 | 52 | codeparrot/github-code |
10c4ba47d367c79119e66a9af637b6b1757d61e39eb3e9b77941cc090aa12e33 | /*
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
*/
var rest = require('../../../common/rest.api'),
config = require('../../../../../config/config.global.js'),
authApi = require('../../../common/auth.api'),
url = require('url'),
logutils = require('../../../utils/log.utils'),
a... | JavaScript | src/serverroot/orchestration/plugins/openstack/nova.api.js | manojgn/contrail-web-core | apache-2.0 | 16,868 | 465 | codeparrot/github-code |
f48771f7c8e6e6650f7ed0498a6ef62822d35594722761864f3bb6d8483ec111 | /*
* Copyright 2015 Suprema(biostar2@suprema.co.kr)
*
* 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 b... | Java | BioStar2Android/BioStar2Client/src/main/java/com/supremainc/biostar2/adapter/SimpleDataAdapter.java | BioStar2/BioStar2Android | apache-2.0 | 2,741 | 70 | codeparrot/github-code |
46c7d01040ac361e9510034ce9cf5f5a48f6828869594d69d434a7805a522411 | /*
* TopStack (c) Copyright 2012-2013 Transcend Computing, 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 ap... | Java | src/com/msi/tough/utils/VolumeUtil.java | TranscendComputing/TopStackCore | apache-2.0 | 3,590 | 95 | codeparrot/github-code |
194522d793a29ddd730866f83ceb8377435827e77804521084c6c2d5acef6fb9 | /*
* Copyright © 2016 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-data-fabric/src/test/java/co/cask/cdap/data2/dataset2/customds/TopLevelDirectDataset.java | caskdata/cdap | apache-2.0 | 1,348 | 65 | codeparrot/github-code |
cf4470dcc2ecf5e1f4373f58a03b980d5b54522b47341a5c204b5dd995a0df75 | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | Python | google/cloud/appengine_admin_v1/services/instances/transports/grpc.py | googleapis/python-appengine-admin | apache-2.0 | 16,909 | 385 | codeparrot/github-code |
5f6efa3157aebbab4010e085e8b60fbf97baa85056eb534d0c97ef8bf141eac3 | //// For registering Service Worker
// if ('serviceWorker' in navigator) {
// navigator.serviceWorker
// .register('./service-worker.js', { scope: './' })
// .then(function(registration) {
// console.log("Service Worker Registered");
// })
// .catch(function(err) {
// console.log("Service... | JavaScript | WebContent/asset/js/main.js | Pahlaz/E-Mart | apache-2.0 | 1,624 | 65 | codeparrot/github-code |
0e80b497530d50a9c6697e6e7c9ed3eacdb97eeed8ebca8fff95bde93da8bf8a | """Support for RainMachine devices."""
import asyncio
from datetime import timedelta
import logging
from regenmaschine import Client
from regenmaschine.errors import RainMachineError
import voluptuous as vol
from homeassistant.const import (
ATTR_ATTRIBUTION,
CONF_IP_ADDRESS,
CONF_PASSWORD,
CONF_PORT,... | Python | homeassistant/components/rainmachine/__init__.py | balloob/home-assistant | apache-2.0 | 15,955 | 433 | codeparrot/github-code |
2781f9bd929c633e677b565c71cbdb04807d03884953eddbfa68ee9d6546b11c | #
# Copyright (c) 2013 Travis W. Peters
#
# 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 ... | Ruby | TermText.rb | traviswp/T2 | apache-2.0 | 2,879 | 128 | codeparrot/github-code |
6f5782e5920468d6b327de0255efa074e88d7e6c1c00011b9c7159a4aac2fbf0 | <?php
namespace app\models;
use Yii;
use yii\behaviors\TimestampBehavior;
/**
* This is the model class for table "contact_list".
*
* @property integer $id
* @property string $title
* @property integer $created_at
* @property integer $updated_at
*
* @property Contact[] $contacts
* @property SurveyContacts[]... | PHP | models/ContactList.php | luisintosh/surveys | apache-2.0 | 1,644 | 81 | codeparrot/github-code |
2b2e343b774edceff689584ba3362e4de9d18aa4ee65fac714ddb32d87b553e1 | """
Installs and configures Cinder
"""
import os
import re
import uuid
import logging
from packstack.installer import exceptions
from packstack.installer import processors
from packstack.installer import validators
from packstack.installer import basedefs
from packstack.installer import utils
from packstack.modules... | Python | packstack/plugins/cinder_250.py | radez/packstack | apache-2.0 | 16,938 | 373 | codeparrot/github-code |
df5239ac93e98e5da8517a01b497f765a515384a1510927714691a18527c40d5 | package fundamental.games.metropolis.connection.global;
import java.util.LinkedList;
public class MessagesQueue<T>
{
private LinkedList<T> messages = new LinkedList<>();
private Object queueLock = new Object();
//********************************
public MessagesQueue() { }
//********************... | Java | src/main/java/fundamental/games/metropolis/connection/global/MessagesQueue.java | Ragnarokma/metropolis | apache-2.0 | 780 | 39 | codeparrot/github-code |
bcbf7d129d3fb83af599f9fe64b57df3366d260c3b86500ca8ed672fd21b4963 | /******************************************************************************
* 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/transform/static_transform_component.cc | ycool/apollo | apache-2.0 | 3,885 | 105 | codeparrot/github-code |
cc02a9781eb057e2d945c54298b390d2770cb84a59d0f5b2286fe8e95a98e1f6 | from models.tridentnet.builder import TridentFasterRcnn as Detector
from models.tridentnet.builder_v2 import TridentResNetV1bC4 as Backbone
from models.tridentnet.builder import TridentRpnHead as RpnHead
from models.tridentnet.builder import process_branch_outputs, process_branch_rpn_outputs
from symbol.builder import ... | Python | config/resnet_v1b/tridentnet_r152v1bc4_c5_2x.py | TuSimple/simpledet | apache-2.0 | 9,529 | 308 | codeparrot/github-code |
5ebdab9d089cf28f0fced8d3cfd42f3a3e2cfdc0fb280625a7e021006c7c02a8 | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | Python | st2common/st2common/config.py | alfasin/st2 | apache-2.0 | 8,282 | 196 | codeparrot/github-code |
c091adca4ca35328f5844f9022e75f0f9a858a4cebec7035eaca9aafa31a0cf0 | /*
* Copyright (c) 2010-2017 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.repo.sql.data.audit;
import com.evolveum.midpoint.audit.api.AuditService;
import com.evolveum.midp... | Java | repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/data/audit/RAuditPropertyValue.java | bshp/midPoint | apache-2.0 | 4,382 | 158 | codeparrot/github-code |
485d17e46f947eed72f6e596206d4df7612cc6c9e7b2cc1f37ba8c732973568a | package org.luapp.practise.utils;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.apache.commons.io.LineIterator;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* Created by lum on 2015... | Java | practise/src/main/java/org/luapp/practise/utils/SplitText.java | lumeng689/luapp | apache-2.0 | 1,358 | 51 | codeparrot/github-code |
392550ca841599f63678148584fecbebf3e1044c4cf3db27a33f4cc5863836ed | #include <sltbench/Bench.h>
#include <iomanip>
#include <iostream>
namespace {
class MyReporter : public sltbench::reporter::IReporter
{
public:
MyReporter() = default;
~MyReporter() override = default;
public:
void ReportBenchmarkStarted() override
{
// for example, ignore this event
}
void ReportBenchma... | C++ | examples/custom_reporter.cpp | ivafanas/sltbench | apache-2.0 | 969 | 48 | codeparrot/github-code |
34ebfcd70a72ee9c0c85f7f0c5a4f8744d678bd5e6cb41b7ae46b2e5da41d6dd | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | python-impl/src/main/java/com/jetbrains/python/codeInsight/override/PyMethodMember.java | consulo/consulo-python | apache-2.0 | 2,984 | 86 | codeparrot/github-code |
15cc8c7cf762b14414dda7bff84952eba88025336b0527452a3f383b734ce7e6 | /**
* Copyright 2014 Atos
* Contact: Atos <roman.sosa@atos.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | Java | src/main/java/eu/atos/sla/client/ResourceCollection.java | modaclouds/modaclouds-sla-mediator | apache-2.0 | 10,880 | 311 | codeparrot/github-code |
1e2ac0010d4439d77c9230a8684d744407c7dd2e4c1cc630a6b9e602950c7720 | package japgolly.scalajs.react
import scala.concurrent.Future
import scalajs.concurrent.JSExecutionContext.Implicits.queue
import scalaz.{Applicative, Distributive, Functor, Monad, StateT, Traverse, ~>}
import scalaz.effect.IO
import utest._
import japgolly.scalajs.react.test.ReactTestUtils
import japgolly.scalajs.rea... | Scala | test/src/test/scala/japgolly/scalajs/react/ScalazTest.scala | matthughes/scalajs-react | apache-2.0 | 2,405 | 63 | codeparrot/github-code |
f9490a3117d8f67cfc1a0539ce4af8f06371bad77a48b3a980a4150dda0d73db | /*
* 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 | piglet/src/test/java/org/apache/calcite/test/PigRelOpTest.java | jcamachor/calcite | apache-2.0 | 72,776 | 1,679 | codeparrot/github-code |
14ba68530c794c623523845b05212bebdf5c5fa23ebc5ba3018377510997781f | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-GB" xml:lang="en-GB" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>xcomp:subj</title>
<link re... | HTML | pl/dep/xcomp-subj.html | UniversalDependencies/universaldependencies.github.io | apache-2.0 | 9,010 | 220 | codeparrot/github-code |
7b0589bf7f49f2b95fa9b8788f9de45d31c5e991d593c6ee0a27ba0b670d4ee3 | function New-VSApiGatewayMethod {
<#
.SYNOPSIS
Adds an AWS::ApiGateway::Method resource to the template. The AWS::ApiGateway::Method resource creates API Gateway methods that define the parameters and body that clients must send in their requests.
.DESCRIPTION
Adds an AWS::ApiGateway::Metho... | PowerShell | VaporShell/Public/Resource Types/New-VSApiGatewayMethod.ps1 | scrthq/Vaporshell | apache-2.0 | 22,915 | 376 | codeparrot/github-code |
c4094c630d2c50837875b46183f2fb6a24903dba424ae97d96155513c89c704b | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with this
# work for additional information regarding copyright ownership. The ASF
# licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use... | Ruby | lib/buildr/ide/eclipse/scala.rb | assaf/buildr | apache-2.0 | 2,695 | 67 | codeparrot/github-code |
a11357872314fdb9c52c1ddcb57fa9c9e9acd80ed9847c5e1dad58c6282c58c2 | /**********************************************************************
Copyright (c) 2006 Andy Jefferson and others. 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://... | Java | src/main/java/org/datanucleus/samples/jpa/tutorial/Product.java | guci314/DataNucleusJpaSample | apache-2.0 | 3,305 | 142 | codeparrot/github-code |
bae6dbf58ff9dfdeda87df270fbe3267556dfdbd44ba0bc43a26bc08d34b1ac5 | /*
* #%L
* %%
* Copyright (C) 2011 - 2017 BMW Car IT 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... | Java | java/core/libjoynr/src/main/java/io/joynr/dispatching/RequestCaller.java | bmwcarit/joynr | apache-2.0 | 1,828 | 62 | codeparrot/github-code |
2243244bb522e654fba4b48047d3e114fd7cdc5ca16b2648ecf861563051370b | # Copyright 2019 The Sonnet 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 l... | Python | sonnet/src/scale_gradient.py | deepmind/sonnet | apache-2.0 | 1,288 | 42 | codeparrot/github-code |
46d2c6bc6d599726b0e6cf684db7dcce46c8eb7bb192cdbbf2c1dff91892522b | /*
Copyright 2014 Immutables Authors and Contributors
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 | value-processor/src/org/immutables/value/processor/meta/LongBits.java | immutables/immutables | apache-2.0 | 4,078 | 129 | codeparrot/github-code |
6bc808ce6df168f38554b1c7f386471e47d0531fb242af80b69c67e1b33a5e6f | /*
* Copyright 2019 Google LLC. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Java | bigtable-dataflow-parent/bigtable-beam-import/src/test/java/com/google/cloud/bigtable/beam/it/CloudBigtableBeamITTest.java | sduskis/cloud-bigtable-client | apache-2.0 | 10,984 | 255 | codeparrot/github-code |
4e62c69e0cf1b2ed98b4d9c16472b93e59d531cf6e91fbaa0661f46d82d18361 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>numpy.fft.ifft2 — NumPy v1.8 Manual</title>
... | HTML | Documentation/numpy/reference/generated/numpy.fft.ifft2.html | leesavide/pythonista-docs | apache-2.0 | 14,486 | 236 | codeparrot/github-code |
0643e06b5fb81fd7d1c718a7101e4edb976972f3182d33a63fd46403e4a94b3e | /*
* Copyright (C) 2013 salesforce.com, 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 ... | Java | aura-impl/src/main/java/org/auraframework/impl/javascript/controller/JavascriptActionDef.java | DebalinaDey/AuraDevelopDeb | apache-2.0 | 2,770 | 88 | codeparrot/github-code |
b627e006704978f66a0726d84f0c0643d1a234b0d993fcc57db16963ef0c8acc | /*
* Copyright [2016] [Subhabrata Ghosh]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | C | common/includes/__env.h | subhagho/ReactFS | apache-2.0 | 3,837 | 121 | codeparrot/github-code |
b485f67c2ea77d73b1d62b3d37e09db9794ea71d7ced25494208dd163ec073eb | package com.udacity.bakingtime.recipedetail.ingredientlistdialog;
import android.app.DialogFragment;
import android.app.Fragment;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.vi... | Java | app/src/main/java/com/udacity/bakingtime/recipedetail/ingredientlistdialog/IngredientListDialog.java | luanalbineli/baking-time | apache-2.0 | 3,396 | 91 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.