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 |
|---|---|---|---|---|---|---|---|---|
748382eaf18747b8068ffcff338e26800f59d4241fbccad9a09a2ab9b89a2843 | /*
* 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 n... | Java | log4j-core/src/test/java/org/apache/logging/log4j/core/pattern/PatternParserTest.java | codescale/logging-log4j2 | apache-2.0 | 13,711 | 336 | codeparrot/github-code |
4842e49f2f18023029187f9d0d6a2cd04992d30ce7a4ed96c35f05f07057436f | import logging
import threading
import time
from ballast.discovery import ServerList
from ballast.rule import Rule, RoundRobinRule
from ballast.ping import (
Ping,
SocketPing,
PingStrategy,
SerialPingStrategy
)
class LoadBalancer(object):
DEFAULT_PING_INTERVAL = 30
MAX_PING_TIME = 3
def ... | Python | ballast/core.py | thomasstreet/ballast | apache-2.0 | 4,607 | 167 | codeparrot/github-code |
e0acab830dd3bf5f3b26829bfb825a4869996b81356be3a1ad25bb529ff8dd96 | import os, re, csv
# regular expressions for capturing the interesting quantities
noise_pattern = 'noise: \[(.+)\]'
res_pattern = '^([0-9.]+$)'
search_dir = "output"
results_file = '../results.csv'
os.chdir( search_dir )
files = filter( os.path.isfile, os.listdir( '.' ))
#files = [ os.path.join( search_dir, f ) for ... | Python | spearmint_variable_noise/output2csv.py | jiminliang/msda-denoising | apache-2.0 | 1,028 | 44 | codeparrot/github-code |
b6e820e666465dccc5e838af12848570db0f5b1bbf8fc715687cdfefe2e7a421 | /*
* 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 u... | Java | modules/core/src/main/java/org/apache/ignite/internal/visor/verify/VisorValidateIndexesJobResult.java | ptupitsyn/ignite | apache-2.0 | 4,517 | 127 | codeparrot/github-code |
fee784b55cf979fb359bd96df596e066c895fe8b0614bc97f653d3df81224701 | import os
import logging
from mongodb_consistent_backup.Common import LocalCommand
from mongodb_consistent_backup.Pipeline import PoolThread
class TarThread(PoolThread):
def __init__(self, backup_dir, output_file, compression='none', verbose=False, binary="tar"):
super(TarThread, self).__init__(self.__cl... | Python | mongodb_consistent_backup/Archive/Tar/TarThread.py | Percona-Lab/mongodb_consistent_backup | apache-2.0 | 2,555 | 64 | codeparrot/github-code |
87687573052c19cdb9f1a1925cd6c0f91721273344aba87418a14701d704b50b | /**
* OLAT - Online Learning and Training<br>
* http://www.olat.org
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* ... | Java | olat7.8/src/main/java/org/olat/presentation/group/area/BGAreaEditController.java | huihoo/olat | apache-2.0 | 10,780 | 256 | codeparrot/github-code |
9cbd083ceb5ca85ef8eb33b0ffe05067c7b072129fd3e8e96f866af73d218d27 |
package org.hyperimage.connector.fedora3.ws;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interface ... | Java | hi3-editor/src/org/hyperimage/connector/fedora3/ws/ObjectFactory.java | bitgilde/HyperImage3 | apache-2.0 | 21,077 | 498 | codeparrot/github-code |
3703cc147ef9951c9783dd63d4c8a20d596220cdca2fd6455cecf7265d690a43 | /* 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/org/apache/pig/backend/hadoop/hbase/HBaseTableInputFormat.java | apache/pig | apache-2.0 | 7,754 | 197 | codeparrot/github-code |
e609751e01c48c664fa13183ab00859832898afcef616a138c7784cb1aa7de0d | package app
import (
"net/http"
"time"
"golang.org/x/net/context"
"github.com/weaveworks/scope/probe/host"
"github.com/weaveworks/scope/report"
)
// Raw report handler
func makeRawReportHandler(rep Reporter) CtxHandlerFunc {
return func(ctx context.Context, w http.ResponseWriter, r *http.Request) {
report, ... | GO | app/api_report.go | kinvolk/scope | apache-2.0 | 1,643 | 65 | codeparrot/github-code |
d3c7d6e455ee74d9538c480178dbac77b23b470b85d7088d8649687c9f839fee | /**
* Copyright (c) 2016-present, RxJava 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 l... | Java | src/main/java/io/reactivex/internal/operators/maybe/MaybeSwitchIfEmptySingle.java | NiteshKant/RxJava | apache-2.0 | 3,840 | 127 | codeparrot/github-code |
d7a04745926c6407c4ca1ebd4864dcb43eeeafd8890e6a38e8f77c96885241f0 | /*
* Copyright 2022 ThoughtWorks, 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 | plugin-infra/go-plugin-config-repo/src/test/java/com/thoughtworks/go/plugin/configrepo/contract/material/CRConfigMaterialTest.java | gocd/gocd | apache-2.0 | 2,880 | 80 | codeparrot/github-code |
e6bbc392faf9c4c84012a2be85f0f559d4118baaf36e1bd204485a8f4c15f9b9 | package org.hl7.fhir.dstu3.model.codesystems;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the... | Java | hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/codesystems/ObservationStatusEnumFactory.java | Gaduo/hapi-fhir | apache-2.0 | 3,374 | 83 | codeparrot/github-code |
1a482d64e03f2d1b9a02e1d5ef2c72e9848eea0cf595eb99dedede5c92ba173c | /*
* Copyright 2013 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | optaplanner-examples/src/test/java/org/optaplanner/examples/nqueens/app/BrokenNQueensBenchmarkTest.java | gsheldon/optaplanner | apache-2.0 | 2,156 | 54 | codeparrot/github-code |
61aba9c84670db30c3e21679bcdd11326de9d176942620051bbdce8af9cf8063 | /*
* 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 | server/monitor/src/main/java/org/apache/accumulo/monitor/util/celltypes/CellType.java | adamjshook/accumulo | apache-2.0 | 1,314 | 39 | codeparrot/github-code |
ca23de0282b675f6fee81ed8e6acdb9447b94cae8e48c132521e2a7c4a2ca50d | package net.ros.client.render;
import com.google.common.collect.ImmutableList;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.BakedQuad;
import net.minecraft.client.renderer.block.model.IBakedModel;
import net.minecraft.client.rende... | Java | content/logistic/src/main/java/net/ros/client/render/ModelPipeInventory.java | mantal/Qbar | apache-2.0 | 4,971 | 173 | codeparrot/github-code |
c5d7a34c2f19331ccbf6707d5397a139b1734079b188e504bc6b2067e833bba7 | <?php
declare(strict_types=1);
namespace App\Radio;
use App\Entity;
use App\Environment;
use App\Exception\Supervisor\AlreadyRunningException;
use App\Exception\Supervisor\BadNameException;
use App\Exception\Supervisor\NotRunningException;
use App\Exception\SupervisorException;
use Doctrine\ORM\EntityManagerInterfac... | PHP | src/Radio/AbstractAdapter.php | AzuraCast/AzuraCast | apache-2.0 | 9,344 | 313 | codeparrot/github-code |
d1292393f2ac2f7cb676f6b59624759d1a5147b095e92ccc30f325f8e041be45 | import React, { Component, Fragment } from 'react';
import { navigate } from '@reach/router';
import PropTypes from 'prop-types';
import { Dropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap';
import { siteRoot, gettext, orgID } from '../../utils/constants';
import { seafileAPI } from '../../utils/s... | JavaScript | frontend/src/pages/org-admin/org-groups.js | miurahr/seahub | apache-2.0 | 8,470 | 314 | codeparrot/github-code |
692f1e9adb60a72778cc3d79f1c7785a82aaaa9d671779ea5a69ee333301407c | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package io.github.jass2125.locadora.jpa;
import javax.persistence.EntityManager;
import javax.persistence.Persistence;
/**
*
* @au... | Java | src/main/java/io/github/jass2125/locadora/jpa/EntityManagerJPA.java | ifpb-disciplinas-2015-2/locadora-jpa-web | apache-2.0 | 740 | 34 | codeparrot/github-code |
db2e4f72aa6d8e2dc7cfb79853e092da0100d64319510f9152c6e09a7800d170 | import {boolean, number, object, text, withKnobs} from '@storybook/addon-knobs';
import {
BentoAccordion,
BentoAccordionContent,
BentoAccordionHeader,
BentoAccordionSection,
} from '#bento/components/bento-accordion/1.0/component';
import {BentoVideo} from '#bento/components/bento-video/1.0/component';
import... | JavaScript | extensions/amp-video/1.0/storybook/Basic.js | ampproject/amphtml | apache-2.0 | 4,420 | 160 | codeparrot/github-code |
1ec232939d2fd6138c64f8b5dc297625409586d665e7288bfdb46526b9dc7283 | /*******************************************************************************
* Copyright 2012 Apigee Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.... | Java | core/src/main/java/org/usergrid/persistence/query/tree/ContainsOperand.java | futur/usergrid-stack | apache-2.0 | 1,697 | 62 | codeparrot/github-code |
9754286cb1bbdd230fb535a9572e29d4f61e9a1ba673928ea3e14d545a6e774a | ## array.jl: Dense arrays
typealias Vector{T} Array{T,1}
typealias Matrix{T} Array{T,2}
typealias VecOrMat{T} Union(Vector{T}, Matrix{T})
typealias DenseVector{T} DenseArray{T,1}
typealias DenseMatrix{T} DenseArray{T,2}
typealias DenseVecOrMat{T} Union(DenseVector{T}, DenseMatrix{T})
typealias StridedArray{T,N,A<:De... | Julia | lib/julia/base/array.jl | shubhamg31/columbus_julia | apache-2.0 | 38,769 | 1,450 | codeparrot/github-code |
79088aeba7f1e9b8c3284c4580624417bb1094461e2e1022b9a59f1d1370b53e | /*
* 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 | modules/core/src/main/java/org/apache/ignite/marshaller/jdk/JdkMarshaller.java | leveyj/ignite | apache-2.0 | 5,576 | 159 | codeparrot/github-code |
9133e93a593426266a679a35b55ffb951d5fea71240366bbd046242960c4fbae | package io.cattle.platform.configitem.server.model.impl;
import java.io.IOException;
import io.cattle.platform.configitem.server.model.RefreshableConfigItem;
import io.cattle.platform.configitem.server.resource.ResourceRoot;
import io.cattle.platform.configitem.version.ConfigItemStatusManager;
public abstract class ... | Java | code/iaas/config-item/server/src/main/java/io/cattle/platform/configitem/server/model/impl/AbstractResourceRootConfigItem.java | alena1108/cattle | apache-2.0 | 945 | 33 | codeparrot/github-code |
ce1e1b50b8f1b33a9004f7566869ee5009eff2a1252d6270ed2e42ea4c4d6d96 | /*
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in c... | Java | notification-portlet-webapp/src/main/java/org/jasig/portlet/notice/util/UsernameFinder.java | Jasig/NotificationPortlet | apache-2.0 | 3,039 | 88 | codeparrot/github-code |
c11fb933a514fffb6fffb21090a9063cf8d26679ef020a93b76ca3dff5488fbb | import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
import * as utils from '../src/utils.js';
import { config } from '../src/config.js';
const BIDDER_CODE = 'gothamads';
const ACCOUNTID_MACROS = '[account_id]';
const URL_ENDPOINT = `https://u... | JavaScript | modules/gothamadsBidAdapter.js | tchibirev/Prebid.js | apache-2.0 | 9,383 | 343 | codeparrot/github-code |
5bc1244a93077fe92f2c600883eeac18bd52b0f72185bd402530bb1b06c7cda7 | <?php
/**
* @category SchumacherFM
* @package SchumacherFM_FastIndexer
* @copyright Copyright (c) http://www.schumacher.fm
* @license see LICENSE.md file
* @author Cyrill at Schumacher dot fm @SchumacherFM
*/
class SchumacherFM_FastIndexer_Model_Lock_Session
extends SchumacherFM_FastIndexer_Model_Loc... | PHP | src/app/code/community/SchumacherFM/FastIndexer/Model/Lock/Session.php | mssyogi/Magento-FastIndexer | apache-2.0 | 1,917 | 77 | codeparrot/github-code |
ec298650a73a859801a998b059dd94023cffebf034b38534f4d249a53bb7e127 | /*
* 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 | indexing-service/src/main/java/org/apache/druid/indexing/input/DruidInputSource.java | gianm/druid | apache-2.0 | 17,743 | 478 | codeparrot/github-code |
cbf83a61827e311d32d448071930f409fc32ce120714b39803a1c283769bc5d8 | //
// immer: immutable data structures for C++
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
//
// This software is distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//
#include "fuzzer_gc_guard.hpp"
#include "fuzzer_in... | C++ | 3rdParty/immer/v0.7.0/extra/fuzzer/set-gc.cpp | arangodb/arangodb | apache-2.0 | 2,591 | 90 | codeparrot/github-code |
33012f413dededac60331349e730b708474c7befc88980a8cd9288bd14fc9f29 | package pod
import (
"fmt"
"strings"
lru "github.com/hashicorp/golang-lru"
"github.com/rancher/norman/api/access"
"github.com/rancher/norman/types"
"github.com/rancher/norman/types/values"
"github.com/rancher/rancher/pkg/controllers/managementagent/workload"
"github.com/rancher/rancher/pkg/ref"
schema "githu... | GO | pkg/api/norman/store/pod/owner.go | rancher/rancher | apache-2.0 | 3,140 | 141 | codeparrot/github-code |
b51af1ef6456ca31ae5f5c57e48faa45b4bc65482ec0ea31a3f0a37c6e8fbb58 | /*
* 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 | core/camel-core/src/test/java/org/apache/camel/processor/interceptor/AdviceWithLambdaTest.java | adessaigne/camel | apache-2.0 | 5,390 | 145 | codeparrot/github-code |
332bd8ce526ff7b71f2fab8861c1ec53fd8ade948fcbfc1c9f7ce47dafb0c2e7 | /*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java | src/com/android/launcher3/FolderInfo.java | YAJATapps/FlickLauncher | apache-2.0 | 4,146 | 150 | codeparrot/github-code |
c360334ffbad87ec8ee7a149fd87c482f6413cdfc42bc01bb79043cfd71d83f3 | /*
* MainActivity.java
*
* Copyright (C) 2013 6 Wunderkinder GmbH.
*
* @author Jose L Ugia - @Jl_Ugia
* @author Antonio Consuegra - @aconsuegra
* @author Cesar Valiente - @CesarValiente
* @author Benedikt Lehnert - @blehnert
* @author Timothy Achumba - @iam_timm
* @version 1.0
... | Java | SlidingLayerSample/src/main/java/com/wunderlist/slidinglayersample/MainActivity.java | yadihaoku/android-sliding-layer-lib | apache-2.0 | 6,768 | 207 | codeparrot/github-code |
c2d7abc6c35084902b93ce354d792b2605986dc648775ffaf9125ba4eb1e24d3 | \begin{ManPage}{\label{man-condor-cold-start}\Condor{cold\_start}}{1}
{install and start Condor on this machine}
\Synopsis \SynProg{\Condor{cold\_start}}
\Opt{-help}
\SynProg{\Condor{cold\_start}}
\oOptArg{-basedir}{directory}
\oOpt{-force}
%\oOpt{-dyn}
\oOpt{\Opt{-setuponly} \Bar \Opt{-runonly}}
\oOptArg{-arch}{arch... | TeX | doc/man-pages/condor_cold_start.tex | bbockelm/condor-network-accounting | apache-2.0 | 6,853 | 185 | codeparrot/github-code |
393a3e47d61ff94fc83446d96e94a6a422c673d9a9d238aa7bb7c8aa83d53c76 | #!/bin/bash
# This script runs in a loop (configurable with LOOP), checks for updates to the
# Hugo docs theme or to the docs on certain branches and rebuilds the public
# folder for them. It has be made more generalized, so that we don't have to
# hardcode versions.
# Warning - Changes should not be made on the serve... | Shell | docs/scripts/build.sh | dgraph-io/badger | apache-2.0 | 3,536 | 148 | codeparrot/github-code |
5bdd184c0c59a171001f31d44155e66810e1c9d8413de4b6e821c8c4ae53c386 | /*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... | Java | datavec/datavec-api/src/main/java/org/datavec/api/transform/transform/time/DeriveColumnsFromTimeTransform.java | deeplearning4j/deeplearning4j | apache-2.0 | 15,108 | 400 | codeparrot/github-code |
9412771c6508e12a185b8131d513110e22436c24ea03e4b4b96ab12088a69792 | package com.humbinal.ssm.test;
public class User {
private long user_Id;
private String user_name;
private int user_age;
public User() {
}
public long getUser_Id() {
return user_Id;
}
public void setUser_Id(long user_Id) {
this.user_Id = user_Id;
}
public St... | Java | hum-web/hum-ssm/src/test/java/com/humbinal/ssm/test/User.java | Humbinal/java-items | apache-2.0 | 616 | 36 | codeparrot/github-code |
ac2d728f53ce174a55ba651d0b234eb9e44bb8f9cd68b530ce49ff855bc1f4ae | /**
Copyright (c) 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
**/
require("../base/extension_registry.js");
require("./event.js");
require("./object_snapshot.js");
require("../base/range.js");
require("../base/sorted_... | JavaScript | lib/third_party/tracing/model/object_instance.js | googlearchive/node-big-rig | apache-2.0 | 6,147 | 195 | codeparrot/github-code |
3780adf750eaa8de4db0ddf1e87dfecbba984edcc20b617cc3bde46fea2abcc5 | // 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... | GO | sdks/go/pkg/beam/core/runtime/graphx/coder.go | tgroh/incubator-beam | apache-2.0 | 11,649 | 420 | codeparrot/github-code |
144fbb0850132a6e047a1c3c358598530b72fb102af17e2c4248d11a50632355 | // Copyright 2004 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | Java | tapestry-examples/VlibBeans/src/org/apache/tapestry/vlib/ejb/impl/OperationsBean.java | apache/tapestry3 | apache-2.0 | 33,019 | 1,155 | codeparrot/github-code |
eb6d2f230f027cd61591cab0b16447461e8cfc9c05dd0a3bc03d4a33c9e543b7 | package org.sakaiproject.scorm.ui.player.behaviors;
import org.adl.api.ecmascript.SCORM13APIInterface;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.sakaiproject.scorm.model.api.ScoBean;
import org.sakaiproject.scorm.model.api.SessionBean;
import org.sakaiproject.scorm... | Java | scorm/scorm-tool/src/java/org/sakaiproject/scorm/ui/player/behaviors/SCORM13API.java | marktriggs/nyu-sakai-10.4 | apache-2.0 | 3,425 | 122 | codeparrot/github-code |
6ff2a8f8d57c41de2a741fa30e998f4b6a0821a01ec48964321d0b11be120479 | /*
* 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-alexaforbusiness/include/aws/alexaforbusiness/model/CreateAddressBookResult.h | cedral/aws-sdk-cpp | apache-2.0 | 2,624 | 88 | codeparrot/github-code |
09912fbb7668f963ac808692639358c9565f96f7dbb1db55d4dc1ea273e38b2a | /**
* 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/util/CaseInsensitiveMapTest.java | chicagozer/rheosoft | apache-2.0 | 17,444 | 516 | codeparrot/github-code |
6357ed322a16468a088b0861ebfa0cf809f787ecb9f5b2fecd959f27ce370c7f | /*
* Copyright DbMaintain.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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | Java | dbmaintain/src/main/java/org/dbmaintain/script/parser/impl/DefaultScriptParser.java | fcamblor/dbmaintain-maven-plugin | apache-2.0 | 5,339 | 155 | codeparrot/github-code |
0e118cf959e9fa21e2c98b5e8fee577b47ad3eea12b5f43384bbab8ea795d19e | import logging
import re
import socket
from mopidy.config import validators
from mopidy.internal import log, path
def decode(value):
if isinstance(value, bytes):
value = value.decode(errors="surrogateescape")
for char in ("\\", "\n", "\t"):
value = value.replace(
char.encode(enco... | Python | mopidy/config/types.py | kingosticks/mopidy | apache-2.0 | 9,146 | 324 | codeparrot/github-code |
ae807b179779d1041b67ca553c83a9274977b55edefe1ba6b7f2ad921f718dfe | // AnyChatCallCenterServerDlg.h : header file
//
#if !defined(AFX_ANYCHATCALLCENTERSERVERDLG_H__69ADA4B7_BCD7_435B_A14D_20271C905BA1__INCLUDED_)
#define AFX_ANYCHATCALLCENTERSERVERDLG_H__69ADA4B7_BCD7_435B_A14D_20271C905BA1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <list>
class ... | C | Documents/AnyChat/AnyChatCoreSDK_Win32_r4840/src/server/c++/AnyChatCallCenterServer/AnyChatCallCenterServerDlg.h | alucard263096/AMKRemoteClass | apache-2.0 | 1,901 | 71 | codeparrot/github-code |
c326cb4f45cc3ae79de202ce725f2da38b7fbb66a827f7d1b7e9304ca000d7ff | /*
* 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 | modules/core/src/main/java/org/apache/ignite/internal/processors/platform/PlatformProcessorImpl.java | ptupitsyn/ignite | apache-2.0 | 29,379 | 856 | codeparrot/github-code |
84fb5a4c20038fbb72c3e048b009c8c73497cf0f5666a96a27c41fa3613680e2 | /*
* 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 | core/src/main/scala/org/apache/spark/deploy/RPackageUtils.scala | practice-vishnoi/dev-spark-1 | apache-2.0 | 8,951 | 245 | codeparrot/github-code |
5ec64f46ed278b6da7c1c6882ace05aebe6f8ef31f39013ab063935fb8549483 | //-----------------------------------------------------------------------
// <copyright file="NUnitAssertions.cs" company="Akka.NET Project">
// Copyright (C) 2009-2016 Typesafe Inc. <http://www.typesafe.com>
// Copyright (C) 2013-2016 Akka.NET project <https://github.com/akkadotnet/akka.net>
// </copyright>
//... | C# | src/contrib/testkits/Akka.TestKit.NUnit/NUnitAssertions.cs | skotzko/akka.net | apache-2.0 | 1,786 | 50 | codeparrot/github-code |
17524364f56b4cab3d4122173f46dfaec4ab33ddbbe531defdcc6a00bd75a0fe | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/eks/EKS_EXPORTS.h>
#include <aws/eks/model/Cluster.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
nam... | C | aws-cpp-sdk-eks/include/aws/eks/model/RegisterClusterResult.h | awslabs/aws-sdk-cpp | apache-2.0 | 1,284 | 58 | codeparrot/github-code |
2521e22508be20c27902b1db3906add510ccab6ba5e36eb8ad8fbdf9f8768aa8 | /**
* 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 distributed under ... | Java | src/main/java/org/assertj/core/util/diff/DeleteDelta.java | ChrisCanCompute/assertj-core | apache-2.0 | 1,820 | 63 | codeparrot/github-code |
eeb344200ba4f4edb08500255336b6495d273f8383c3067e2dbf0e78dd8b31ab | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | components/camel-jms/src/test/java/org/apache/camel/component/jms/ConsumeJmsMapMessageTest.java | Fabryprog/camel | apache-2.0 | 4,265 | 121 | codeparrot/github-code |
5d0305602669f29a5c82071a903054c51cd00c15763074b7425658f8be4e284f | /*
* 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 | runners/flink/src/main/java/org/apache/beam/runners/flink/translation/wrappers/streaming/io/UnboundedSourceWrapper.java | dhalperi/beam | apache-2.0 | 18,014 | 493 | codeparrot/github-code |
cc847e57f02924a81c5d4c3ff3a33e59258b0e1d9c5bc69b1559a9ceef185794 | /*
* Copyright (c) 2014 DataTorrent, 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... | JavaScript | src/widgets/nvd3LineChart/nvd3LineChart.js | DataTorrent/malhar-angular-widgets | apache-2.0 | 2,754 | 92 | codeparrot/github-code |
539f2e9cee2f5c73cd06180c62bfdeabd85a1dc441724cb02cab53416eebe830 | /*
Copyright 2018 The Kubernetes 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 agreed to in writing, ... | GO | cluster-autoscaler/cloudprovider/baiducloud/baiducloud-sdk-go/blb/client.go | kubernetes/autoscaler | apache-2.0 | 1,471 | 52 | codeparrot/github-code |
0715d9fedbe71e1c3c1841dbc7b5f9aa94c658f1205c404fc596da7326ce6258 | /*
Copyright 2018 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwa... | JavaScript | agents/modules_meshcore/smbios.js | Ylianst/MeshCentral | apache-2.0 | 13,897 | 348 | codeparrot/github-code |
7fc237d05ffbab13fed4b8efbcc962a46434fa31e9891564a063ca52aa058478 | /*
* Copyright (c) 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/licenses... | Java | carbon-mss/components/org.wso2.carbon.mss/src/test/java/org/wso2/carbon/mss/internal/mime/MimeMapperTest.java | susinda/product-mss | apache-2.0 | 1,232 | 41 | codeparrot/github-code |
02e5d3676968cdd718d13c16105992eaa70312b7bc6212d74d6b4fc17c0c330a | /**
* vue app
* Created by HC on 2016/7/19.
*/
var header = Vue.extend({
template: '#header'
});
// 全局注册组件
Vue.component('my-header', header);
var footer = Vue.extend({
template: '#footer'
});
// 全局注册组件
Vue.component('my-footer', footer);
var index = Vue.extend({
template: '#index'
});
var App = Vu... | JavaScript | src/main/resources/static/front/app.js | jlkm2010/blog | apache-2.0 | 629 | 40 | codeparrot/github-code |
fc40a9ddfc806875b4fa4fac071c66ed9d19dd5ff14ef7d7c6df4e28cc545fc6 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Web.UI.WebControls;
using... | C# | OpenRiaServices.DomainServices.Server/Framework/Data/DomainOperationEntry.cs | STAH/OpenRiaServices | apache-2.0 | 20,258 | 525 | codeparrot/github-code |
b45994df00da81004eafdfd9ed389d47ea22e01dbda9c90baab1d6ff765e96b3 | /*
* 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 | elasticjob-lite/elasticjob-lite-spring/elasticjob-lite-spring-namespace/src/test/java/org/apache/shardingsphere/elasticjob/lite/spring/namespace/job/AbstractOneOffJobSpringIntegrateTest.java | dangdangdotcom/elastic-job | apache-2.0 | 3,370 | 85 | codeparrot/github-code |
929d4f393fc9bd0a988593f5c84aa9028608ad74e2f321c66ac61e268e4ae491 | /*-
* #%L
* ELK Reasoner Core
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2011 - 2016 Department of Computer Science, University of Oxford
* %%
* 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... | Java | elk-reasoner/src/main/java/org/semanticweb/elk/reasoner/entailments/impl/DerivedClassInclusionEntailsObjectPropertyAssertionAxiomImpl.java | liveontologies/elk-reasoner | apache-2.0 | 2,181 | 64 | codeparrot/github-code |
3014c308926c817ab534b4764a89476f5042313de7cbe6e96ac56eee1a079472 | /**
* Copyright (C) 2009-2014 Dell, Inc.
* See annotations for authorship information
*
* ====================================================================
* 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 co... | Java | src/main/java/org/dasein/cloud/AbstractCloud.java | OSS-TheWeatherCompany/dasein-cloud-core | apache-2.0 | 3,068 | 93 | codeparrot/github-code |
90c49f8c82a9b2b443ff80b0237c9d05d7a8a19c86b37fcabad70aa821608680 | #--
# Author:: Daniel DeLeo (<dan@chef.io>)
# Copyright:: Copyright 2012-2018, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# 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
#
# ... | Ruby | lib/chef/node/attribute_collections.rb | juliandunn/chef | apache-2.0 | 5,477 | 214 | codeparrot/github-code |
43e52674a1de636dcd76c07d8fc3382de10c85d11d97a26501ca905bd28aacb3 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et cindent: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/... | C | B2G/gecko/media/webrtc/trunk/src/modules/video_capture/main/source/Windows/BasePin.h | sergecodd/FireFox-OS | apache-2.0 | 6,461 | 207 | codeparrot/github-code |
2e80a55db1eea72886086098cf943892bf2d58ca67e12ef9f6e5376dad318aa5 | 'use strict';
/* global describe, it */
var fs = require('fs');
var expect = require('chai').expect;
var bigrig = require('../');
describe('Big Rig', function () {
it ('throws if no processes are found', function () {
expect(function () {
bigrig.analyze(null);
}).to.throw('Zero processes (tabs) fou... | JavaScript | test/bigrig_tests.js | googlearchive/node-big-rig | apache-2.0 | 6,062 | 269 | codeparrot/github-code |
2dc5f9f6d26ea94d25261473d4673912f006d7d9463bd791d78a2ee6e213950d | package io.katharsis.jpa.meta;
import java.io.Serializable;
import java.util.UUID;
import org.junit.Assert;
import org.junit.Test;
import io.katharsis.meta.model.MetaPrimitiveType;
public class MetaPrimitiveTypeTest {
@Test
public void testString() {
MetaPrimitiveType type = new MetaPrimitiveType();
type.set... | Java | katharsis-jpa/src/test/java/io/katharsis/jpa/meta/MetaPrimitiveTypeTest.java | apetrucci/katharsis-framework | apache-2.0 | 3,187 | 146 | codeparrot/github-code |
f33880aa4f3f3384f392ac5b4c7093fd3c31f91b65f2b539c2fd2fa1bffc783a | /*
* 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 | mllib/src/main/scala/org/apache/spark/ml/clustering/LDA.scala | jianran/spark | apache-2.0 | 36,552 | 963 | codeparrot/github-code |
da8d7bd9e10db44a45ae462c7eab5776c4b89803df2a7dbe805117f0a8f91cfb | function TorneoGolfWindow(Window) {
window1 = Titanium.UI.createWindow({
tabBarHidden : true,
backgroundColor : "white",
width : '100%',
height : '100%',
layout : 'vertical'
});
table = Ti.UI.createTableView({
width : '90%',
height : '100%'
});
scrollView_1 = Titanium.UI.createView(... | JavaScript | Resources/ui/tablet/TorneoGolfWindow.js | emobile/expomobile_mobile | apache-2.0 | 2,863 | 139 | codeparrot/github-code |
0a9f0682ca80c41974f7e1312557154d96c34b8ae0dc8b5c4aee7d6b329617a5 | package eu.atos.sla.dao.jpa;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityNotFoundException;
import javax.persistence.NoResultException;
import javax.persistence.PersistenceContext;
import javax.persistence... | Java | sla-core/sla-repository/src/main/java/eu/atos/sla/dao/jpa/TemplateDAOJpa.java | Atos-FiwareOps/sla-framework | apache-2.0 | 5,164 | 158 | codeparrot/github-code |
02a1e85d16a2d3188cd634df8724d4c7a39902df241379dbec88114231ae0dfa | ////////////////////////////////////////////////////////////////////////////
// Module : movement_manager.h
// Created : 02.10.2001
// Modified : 12.11.2003
// Author : Dmitriy Iassenev
// Description : Movement manager
////////////////////////////////////////////////////////////////////////////
#pragma once
#i... | C | src/xray/xr_3da/xrGame/movement_manager.h | OLR-xray/OLR-3.0 | apache-2.0 | 6,619 | 259 | codeparrot/github-code |
c0de2ff07ff47b7b76711d75393ccb691fb30a1dca71750d4aa5dbbc348a79cb | package org.apereo.cas.ticket.code;
import org.apereo.cas.authentication.Authentication;
import org.apereo.cas.authentication.principal.Service;
import org.apereo.cas.ticket.ExpirationPolicy;
import org.apereo.cas.ticket.Ticket;
import org.apereo.cas.ticket.TicketFactory;
import org.apereo.cas.ticket.UniqueTicketIdGen... | Java | support/cas-server-support-oauth/src/main/java/org/apereo/cas/ticket/code/DefaultOAuthCodeFactory.java | gabedwrds/cas | apache-2.0 | 1,592 | 45 | codeparrot/github-code |
5835092db46ec0a9d5724e23354b0e1c34652b553cd0eed2b40b88e95491e416 | // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInsight.daemon.impl;
import com.intellij.codeHighlighting.EditorBoundHighlightingPass;
import com.intellij.codeHighlighting.HighlightingPass;
import com... | Java | platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/PassExecutorService.java | jwren/intellij-community | apache-2.0 | 25,837 | 575 | codeparrot/github-code |
86f7d1ec10eeeffb79f5db9afb6abeee65efa83a92268edbbf7b1c730280f047 | /*
* 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 | rave-components/rave-jpa/src/main/java/org/apache/rave/portal/repository/impl/JpaApplicationDataRepository.java | kidaa/rave | apache-2.0 | 7,525 | 185 | codeparrot/github-code |
d7489361b710890aebb2273758d0cbc1d74a630043c7250a911ab692f92029fe | # Copyright 2017 Battelle Energy Alliance, 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 t... | Python | framework/SupervisedLearning/ScikitLearn/LinearModel/LassoLarsIC.py | idaholab/raven | apache-2.0 | 6,386 | 107 | codeparrot/github-code |
acab67046b075f64370bee14740f78cf3f22e0fd000f5ea732249397767c7a07 | /*
* Copyright 2015 John Ahlroos
*
* 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 | modules/web-widgets/src/com/haulmont/cuba/web/widgets/client/addons/dragdroplayouts/ui/tabsheet/DDTabSheetState.java | dimone-kun/cuba | apache-2.0 | 1,315 | 36 | codeparrot/github-code |
c1b364680df4424a3d11209ff3f27d3e5853f8d2948e5a1491284b7cdd2fbdb5 | /*
* 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 | fontbox/src/main/java/org/apache/fontbox/ttf/HorizontalMetricsTable.java | apache/pdfbox | apache-2.0 | 4,062 | 142 | codeparrot/github-code |
14db0f1f8011376d47ab79513351dcd250d1f251f80c4a908aced8104b2e43f6 | /* COPYRIGHT (c) 2014 Umut Acar, Arthur Chargueraud, and Michael
* Rainey
* All rights reserved.
*
* \file adjlist.hpp
* \brief Adjacency-list graph format
*
*/
#ifndef _PASL_GRAPH_ADJLIST_H_
#define _PASL_GRAPH_ADJLIST_H_
#include "../../graph/include/graph.hpp"
/*********************************************... | C++ | xytheta/pwsa_project/PWSA/pasl/graph/include/adjlist.hpp | laxmandhulipala/PWSA-Star | apache-2.0 | 8,982 | 365 | codeparrot/github-code |
5feee8567eca752dc9fc692919301f318effd52e8d582d2271fa7d877d9d445c | package org.anddev.andengine.opengl.texture;
import java.util.*;
import org.anddev.andengine.opengl.texture.source.*;
import org.anddev.andengine.util.*;
import org.anddev.andengine.opengl.texture.builder.*;
import android.graphics.*;
public class BuildableTexture extends Texture
{
private final ArrayList<Texture... | Java | decompiled_src/Procyon/org/anddev/andengine/opengl/texture/BuildableTexture.java | rLadia/AttacknidPatch | apache-2.0 | 4,239 | 111 | codeparrot/github-code |
63f2e1965789ae67b84c4f874b1f518805c6ae52960b94164377d7fb7b0a0fb7 | /** vim: et:ts=4:sw=4:sts=4
* @license RequireJS 2.1.15 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
*/
//Not using strict: uneven strict support in browsers, #392, and causes
//problems with requ... | JavaScript | src/js/thirdParty/require.js | suttonj/YoutubePlaylistCuratorChromeExtension | apache-2.0 | 83,052 | 2,076 | codeparrot/github-code |
951bf82a8a0af1774a5d535e8619e6c2fd34e6147562ce3056e915699b027db5 | /* 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 | modules/activiti-dmn-engine/src/main/java/org/activiti/dmn/engine/impl/parser/DmnParse.java | stefan-ziel/Activiti | apache-2.0 | 6,382 | 208 | codeparrot/github-code |
c6296af54927caaab5be4427106e4103eda25a04f7db2591d191c209b7b23ad7 | <?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>groupby - org.saddle.groupby</title>
<meta name="description" content="groupby - org.saddle.groupby" />
<meta name="keywords... | HTML | saddle-core/target/scala-2.10/api/org/saddle/groupby/package.html | saddle/saddle | apache-2.0 | 7,315 | 176 | codeparrot/github-code |
20729b09842e6ef1d4adb7e26c0a79af2edf9bce0cc1fabd5af00eab870e3698 | /*
* 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 | tomcat-8.5.20/java/org/apache/tomcat/util/http/parser/MediaTypeCache.java | IAMTJW/Tomcat-8.5.20 | apache-2.0 | 2,331 | 66 | codeparrot/github-code |
f5b55f3d03342db1ae3b200c36d52fda6262d6b258d089b7d02bd259856200ea | #pragma once
#include "generator/collector_interface.hpp"
#include <fstream>
#include <functional>
#include <memory>
#include <string>
struct OsmElement;
namespace base
{
class GeoObjectId;
} // namespace base
namespace generator
{
namespace cache
{
class IntermediateDataReaderInterface;
} // namespace cache
// ... | C++ | generator/collector_tag.hpp | mpimenov/omim | apache-2.0 | 1,262 | 53 | codeparrot/github-code |
c16769d222bc575b4e03a4fe483d2ee917d07aea85cf92b02466aeab21ffe4ff | ################################################################################
# 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... | Python | flink-python/pyflink/fn_execution/timerservice_impl.py | clarkyzl/flink | apache-2.0 | 4,824 | 131 | codeparrot/github-code |
9983af669e4b0cb3bf35e6136edcb15cc2ef8fc5f18bf569f23ccc48ab3361fa | #!/bin/bash
# Copyright 2014 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 | cluster/vagrant/config-default.sh | bprashanth/kubernetes | apache-2.0 | 2,933 | 82 | codeparrot/github-code |
612cc4a15e68158ea9ee9c15d9a486cfb4344438e9470fea21b6a74cdf3ef96c | <?php
/**
* 模板操作
*
* [WeEngine System] Copyright (c) 2013 WE7.CC
*/
defined('IN_IA') or exit('Access Denied');
/**
* 导入全局变量,并直接显示模板页内容。
* @var int
*/
define('TEMPLATE_DISPLAY', 0);
/**
* 导入全局变量,并返回模板页内容的字符串
* @var int
*/
define('TEMPLATE_FETCH', 1);
/**
* 返回模板编译文件的包含路径
* @var int
*/
define('TEMPLATE_INCLU... | PHP | tpl/User/default/common/wxq/source/function/template.func.php | royalwang/saivi | apache-2.0 | 3,119 | 103 | codeparrot/github-code |
6f3d4e61316c1126665333fbf41ef9ad2f195065d9395a1f22caf205eb9082f6 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.diff.impl.settings;
import com.intellij.icons.AllIcons;
import com.intellij.idea.ActionsBundle;
import com.intellij.openapi.actionSystem.ActionGroup;... | Java | platform/platform-impl/src/com/intellij/openapi/diff/impl/settings/DiffMergeSettingsAction.java | goodwinnk/intellij-community | apache-2.0 | 3,098 | 81 | codeparrot/github-code |
dd8f9ac91189a5410e47a033edf98b30d32771e37372abf47981de24d464919b | /*
* JBoss, Home of Professional Open Source.
* Copyright 2019 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 Licen... | Java | servlet/src/test/java/io/undertow/servlet/test/response/cookies/ResponseCookiesTestCase.java | stuartwdouglas/undertow | apache-2.0 | 7,421 | 161 | codeparrot/github-code |
d026342a17e39b3b9709a3ea55ccc01431d3a0a87bc20c027643846ca9236136 | // Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... | Java | java/server/test/org/openqa/selenium/grid/node/local/CreateSessionTest.java | asolntsev/selenium | apache-2.0 | 7,428 | 198 | codeparrot/github-code |
7a5086a77171ce5c7833b43edd51afaa6000777dc22ea05e4d258ee4d00fbe29 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | components/camel-kubernetes/src/main/java/org/apache/camel/component/openshift/build_configs/OpenshiftBuildConfigsProducer.java | nicolaferraro/camel | apache-2.0 | 6,392 | 131 | codeparrot/github-code |
a5e9a5e22670c036fe9f4cee9496de634e337a1550f19bd79845206d628fb384 | #!/usr/bin/env perl
# $Source: /cvsroot/ensembl/ensembl-personal/genebuilders/ccds/scripts/store_ccds_xrefs.pl,v $
# $Revision: 1.13 $
=pod
=head1 NAME
store_ccds_xrefs.pl
=head1 SYNOPSIS
Make CCDS Xrefs.
=head1 DESCRIPTION
Will store the Ensembl transcript stable_id that matches the ccds structure.
Ori... | Perl | misc-scripts/xref_mapping/store_ccds_xrefs.pl | danstaines/ensembl | apache-2.0 | 11,327 | 340 | codeparrot/github-code |
5b614dc889685acea1e00e188923417d2c2e6fe2502ad65e38b95e6561f5d6cc | /*******************************************************************************
* Copyright 2015 Software Evolution and Architecture Lab, University of Zurich
*
* 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 ... | Java | cw-feedback-handler/src/main/java/CloudWave/CloudWaveJNI.java | harinigunabalan/PerformanceHat | apache-2.0 | 3,270 | 102 | codeparrot/github-code |
84e41d3ba42a85584ecf59d637525962b5a3e6c14deb7fe57db73d93a9699ce9 | /*
* Copyright (c) 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 | components/identity/org.wso2.carbon.identity.entitlement.filter/src/main/java/org/wso2/carbon/identity/entitlement/filter/callback/BasicAuthCallBackHandler.java | wattale/carbon-identity | apache-2.0 | 1,973 | 47 | codeparrot/github-code |
16e640b50a4fdbf0c58d0a7b873995c8114594cd0ceaa4cda3f95ff2405b8603 | package main
import (
"github.com/ActiveState/tail"
"github.com/ugorji/go/codec"
"io/ioutil"
"log"
"os"
"reflect"
"regexp"
"strconv"
"strings"
"time"
)
type inputTail struct {
path string
format string
tag string
pos_file string
offset int64
sync_interval int
codec *codec.J... | GO | in_tail.go | hnlq715/gofluent | apache-2.0 | 4,521 | 231 | codeparrot/github-code |
1ddb8dcfa89c57755be0f6eb53aaf08efe58e04358f2b1b90631c293daaa1b75 | /*
* Copyright 2012-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/DeferredLogTests.java | vakninr/spring-boot | apache-2.0 | 4,690 | 171 | codeparrot/github-code |
16b0ff2967fd59ee7162c8d3afa06b8b100a1186b3c46ca77d0c9cf7aace2508 | # Copyright 2012 OpenStack Foundation
# Copyright 2013 Nebula 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... | Python | openstackclient/identity/v2_0/ec2creds.py | varunarya10/python-openstackclient | apache-2.0 | 5,662 | 187 | codeparrot/github-code |
c605e879ec7550743929fec7fe73e25d0f7a03524dc63c56da00aa98e417b827 | /*******************************************************************************
* Copyright (c) 2015 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... | Java | server/src/test/java/com/ibm/ws/lars/rest/TestUtils.java | antelder/tool.lars | apache-2.0 | 2,655 | 77 | codeparrot/github-code |
0027935164e3a86e4033d19f92f3efadff32325cbf4838c2c0efa5fc6e3913b0 | /*
* Copyright (c) 2008-2020, Hazelcast, 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 ... | Java | hazelcast/src/test/java/com/hazelcast/topic/impl/reliable/SubscriptionMigrationTest.java | mdogan/hazelcast | apache-2.0 | 5,092 | 140 | codeparrot/github-code |
ec7283a97507b6b04ea7e452fc210d39c230099def7fe7432e1ed287cd8f8bd3 | # Copyright 2012 SINA Corporation
# Copyright 2014 Cisco Systems, 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/licens... | Python | climate/openstack/common/config/generator.py | frossigneux/blazar | apache-2.0 | 10,412 | 303 | codeparrot/github-code |
421f4555e4d0e521c16d41ed22c05ce43e87cb80bf6733577ebac72cd04f6265 | registerNpc(1007, {
walk_speed = 0,
run_speed = 0,
scale = 130,
r_weapon = 0,
l_weapon = 0,
level = 10,
hp = 100,
attack = 100,
hit = 100,
def = 100,
res = 100,
avoid ... | Lua | scripts/npcs/ai/[gypsy_jewel_seller]_mina.lua | RavenX8/osIROSE-new | apache-2.0 | 1,070 | 53 | codeparrot/github-code |
2b2733b2b4041667897804600c125f51870d43112665e2056489d6f03913d518 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | Java | geode-core/src/main/java/org/apache/geode/management/internal/cli/commands/CountDurableCQEventsCommand.java | pdxrunner/geode | apache-2.0 | 4,255 | 89 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.